smbls 3.14.855 → 3.14.856

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/smbls.cjs +46 -46
  3. package/dist/smbls.cjs.map +3 -3
  4. package/dist/smbls.core.chunk-BHRVYUXM.esm.js +7 -0
  5. package/dist/smbls.core.chunk-BHRVYUXM.esm.js.map +6 -0
  6. package/dist/smbls.core.chunk-FPRKFQFJ.esm.js +36 -0
  7. package/dist/smbls.core.chunk-FPRKFQFJ.esm.js.map +1 -0
  8. package/dist/{smbls.core.chunk-7RWDIF2S.esm.js → smbls.core.chunk-GC6GDPKF.esm.js} +15 -15
  9. package/dist/smbls.core.chunk-GC6GDPKF.esm.js.map +1 -0
  10. package/dist/smbls.core.chunk-J4QHWJGA.esm.js +2 -0
  11. package/dist/smbls.core.chunk-J4QHWJGA.esm.js.map +1 -0
  12. package/dist/smbls.core.chunk-VG333WGF.esm.js +22 -0
  13. package/dist/smbls.core.chunk-VG333WGF.esm.js.map +6 -0
  14. package/dist/{smbls.core.dropdown-PXAJ2VAG.esm.js → smbls.core.dropdown-XABH5ZRW.esm.js} +2 -2
  15. package/dist/smbls.core.esm.js +1 -1
  16. package/dist/{smbls.core.fetch-WPTPOQQO.esm.js → smbls.core.fetch-JWDHRWJY.esm.js} +2 -2
  17. package/dist/{smbls.core.fetchOnCreate-G5SI6QY4.esm.js → smbls.core.fetchOnCreate-IYA76D26.esm.js} +2 -2
  18. package/dist/{smbls.core.inspect-35DHLAA5.esm.js → smbls.core.inspect-LGTX7BS7.esm.js} +2 -2
  19. package/dist/smbls.core.sync-CN2JST7C.esm.js +2 -0
  20. package/dist/smbls.core.sync-CN2JST7C.esm.js.map +6 -0
  21. package/dist/{smbls.core.windows-XMCWCGON.esm.js → smbls.core.windows-MYD3DCHT.esm.js} +2 -2
  22. package/dist/smbls.embed.iife.js.map +1 -1
  23. package/dist/smbls.esm.js +46 -46
  24. package/dist/smbls.esm.js.map +1 -1
  25. package/dist/smbls.iife-string.js +2 -2
  26. package/dist/smbls.iife.js +1 -1
  27. package/dist/smbls.iife.js.map +1 -1
  28. package/dist/smbls.server-utils.esm.js +9 -9
  29. package/dist/smbls.server-utils.esm.js.map +3 -3
  30. package/dist/smbls.socket-io-client.esm.js.map +1 -1
  31. package/package.json +3 -3
  32. package/dist/smbls.core.chunk-7RWDIF2S.esm.js.map +0 -1
  33. package/dist/smbls.core.chunk-CCELIELA.esm.js +0 -2
  34. package/dist/smbls.core.chunk-CCELIELA.esm.js.map +0 -1
  35. package/dist/smbls.core.chunk-F7PSOVLR.esm.js +0 -36
  36. package/dist/smbls.core.chunk-F7PSOVLR.esm.js.map +0 -1
  37. package/dist/smbls.core.chunk-FNPJKVQM.esm.js +0 -22
  38. package/dist/smbls.core.chunk-FNPJKVQM.esm.js.map +0 -6
  39. package/dist/smbls.core.chunk-ULA4ERZ5.esm.js +0 -7
  40. package/dist/smbls.core.chunk-ULA4ERZ5.esm.js.map +0 -6
  41. package/dist/smbls.core.sync-ABZ7ZHXJ.esm.js +0 -2
  42. package/dist/smbls.core.sync-ABZ7ZHXJ.esm.js.map +0 -6
  43. /package/dist/{smbls.core.dropdown-PXAJ2VAG.esm.js.map → smbls.core.dropdown-XABH5ZRW.esm.js.map} +0 -0
  44. /package/dist/{smbls.core.fetch-WPTPOQQO.esm.js.map → smbls.core.fetch-JWDHRWJY.esm.js.map} +0 -0
  45. /package/dist/{smbls.core.fetchOnCreate-G5SI6QY4.esm.js.map → smbls.core.fetchOnCreate-IYA76D26.esm.js.map} +0 -0
  46. /package/dist/{smbls.core.inspect-35DHLAA5.esm.js.map → smbls.core.inspect-LGTX7BS7.esm.js.map} +0 -0
  47. /package/dist/{smbls.core.windows-XMCWCGON.esm.js.map → smbls.core.windows-MYD3DCHT.esm.js.map} +0 -0
package/dist/smbls.esm.js CHANGED
@@ -1,40 +1,40 @@
1
- var MF=Object.defineProperty;var $=(t,e)=>{for(var n in e)MF(t,n,{get:e[n],enumerable:!0});return t};var FA=/*@__PURE__*/$({},{ANIMATION_PROPS:()=>Gx,ARIA_ROLES:()=>a3,ATTR_TRANSFORMS:()=>mr,BARE_SEQUENCE_TOKEN_RE:()=>kn,BLOCK_PROPS:()=>Kx,BREAKPOINTS_CONTAINER_NAME:()=>MR,BREAKPOINT_PROPS:()=>ek,BRENDER_REGISTRY_BLOCK:()=>Zl,BRENDER_REGISTRY_TREE_BLOCK:()=>Ql,BRENDER_STAMP_META:()=>Jp,CDN_PROVIDERS:()=>Ge,COMPOUND_CSS_KEYWORDS:()=>ms,CONFIG:()=>Ss,CONFIG_MERGE_EXL:()=>ne,CSS_LONGHAND_SHORTHANDS:()=>Je,CSS_NAMED_COLOR_HEX:()=>oa,CSS_NATIVE_COLOR_REGEX:()=>po,CSS_PROPS_REGISTRY:()=>St,CSS_SHORTHAND_LONGHANDS:()=>kt,CSS_UNITS:()=>Ti,DEFAULT_CONFIG:()=>Ys,DEFAULT_CSS_PROPERTIES_LIST:()=>Mt,DELEGATED_EVENTS:()=>Ra,DESIGN_SYSTEM_BLOCK:()=>nf,DESIGN_SYSTEM_DEFERRED:()=>ef,DESIGN_SYSTEM_LINK:()=>tf,DESIGN_SYSTEM_OPTIONS:()=>aA,DOMQL_EVENTS:()=>A_,DOMQ_PROPERTIES:()=>jo,DOM_EVENTS:()=>T1,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vi,ENV:()=>q_,FACTORY:()=>De,FLEX_PROPS:()=>Qx,FONT_PROPS:()=>qx,GRID_PROPS:()=>Jx,HOST_REGISTERED_PACKAGES:()=>yF,HTML_ATTRIBUTES:()=>Oo,HTML_TAGS:()=>Ii,LIBRARY_PACKAGES:()=>Qp,LIBRARY_SCOPES_KEY:()=>cs,LIFECYCLE_EVENTS:()=>Vn,LIVE_KEYS:()=>dx,METHODS:()=>Vo,METHODS_EXL:()=>Hc,MISC_PROPS:()=>Yx,MIXINS:()=>og,NODE_ENV:()=>hn,OPTIONS:()=>Tl,PACKAGE_MANAGER_TO_CDN:()=>Qo,PARSED_DOMQ_PROPERTIES:()=>Vc,POLYGLOT_LANG_STORAGE_KEY:()=>Vp,POSITION_PROPS:()=>Xx,PREPARED_FORMAT:()=>xa,PRERENDER_REGISTRY_FORMATS:()=>pA,PROPS_METHODS:()=>Uo,REGISTRY:()=>Ht,RESERVED_STORE_METHODS:()=>qA,REVIVED_MARK:()=>Yc,ROUTER_OPTIONS:()=>xy,SIGNAL_ENGINE_KEY:()=>xi,SIGNAL_INSTANCES_KEY:()=>Si,STANDARD_SCHEME_QUERIES:()=>Oh,STATE_DATA_MERGE_EXL:()=>yp,STATE_PROPERTIES:()=>T_,STORE_METHOD_NAMES:()=>KA,SVG_TAGS:()=>Na,THEME_PROPS:()=>Zx,TILING_POSITION_KEYWORDS:()=>qf,TILING_SIZE_KEYWORDS:()=>Kf,TIMING_PROPS:()=>lu,TYPES:()=>Bc,UNIVERSAL_RESERVED_KEYS:()=>Up,VALUE_TRANSFORMERS:()=>Vh,VERSION:()=>fR,__resetBuiltinMethodWarnings:()=>US,__resetSignalEngine:()=>Qy,__resetSignalInstances:()=>Zy,__resetSkinWarnings:()=>cx,__resetStateShadowWarnings:()=>YA,activateConfig:()=>JC,addCaching:()=>up,addContext:()=>fp,addDelegatedEvent:()=>su,addExtend:()=>mb,addExtends:()=>In,addItemAfterEveryElement:()=>f_,addMethods:()=>Ua,addProtoToArray:()=>Fc,addRef:()=>ap,adoptPrepared:()=>XT,aliasCaseVariants:()=>ua,alternateLinkKey:()=>us,animation:()=>Lw,appendSVGSprite:()=>Hf,appendSvgIconsSprite:()=>Ds,applyAttrTransforms:()=>Ak,applyCSS:()=>QT,applyDependentState:()=>Ib,applyDocument:()=>Vf,applyEvent:()=>Pp,applyEventUpdate:()=>Mp,applyExtends:()=>Pa,applyHeadings:()=>Ph,applyInitialState:()=>xg,applyMediaSequenceVars:()=>sr,applyProps:()=>ll,applyReset:()=>zf,applySequenceGlobalVars:()=>Ef,applySequenceVars:()=>bo,applySkins:()=>Wf,applySpacingSequence:()=>Rf,applyStateMethods:()=>Se,applyThemeRoot:()=>Zf,applyTimingSequence:()=>Uf,applyTrueProps:()=>ik,applyTypographySequence:()=>$f,arrayContainsOtherArray:()=>o_,arraysEqual:()=>d_,arrayzeValue:()=>hs,assertEmitIntegrity:()=>Rx,atSchemes:()=>cr,bareLibraryKey:()=>Hl,batch:()=>Rd,bindLibraryGlobalScopes:()=>Wl,breakpoints:()=>Rw,breakpointsContainerName:()=>gg,brenderStampMeta:()=>YS,buildImgSrcset:()=>sf,buildSkinVarStyles:()=>Ls,buildSourcesAndImg:()=>af,buildThemeVarStyles:()=>Am,cache:()=>lS,cacheNode:()=>hr,call:()=>SS,callStateMethod:()=>gu,camelToAttr:()=>Ro,camelToLowerAttr:()=>C1,captureSnapshot:()=>xS,changeGlobalTheme:()=>Hh,changeLightness:()=>pw,checkAttributeByTagName:()=>sn,checkEventFunctions:()=>Ek,checkForStateTypes:()=>Ob,checkIfBoxSize:()=>Of,checkIfInherits:()=>mp,checkIfStringIsInArray:()=>g_,class:()=>Nw,clone:()=>I_,cloneAndMergeArrayExtend:()=>el,cloneFunction:()=>eb,collectExtendsList:()=>Pi,color:()=>kw,colorPairSchemes:()=>Cf,colorStringToRgbaArray:()=>Ke,components:()=>lc,compositeOverBackdrop:()=>_s,compoundLayers:()=>sa,concatAddExtends:()=>pb,containerBreakpointQuery:()=>tk,contrastRatio:()=>aa,convertSvgToSymbol:()=>vf,copyJavaScriptToClipboard:()=>ew,copyStringToClipboard:()=>tw,countUntrackedReads:()=>Ld,create:()=>MA,createAsync:()=>C7,createBasedOnType:()=>ip,createComputed:()=>WA,createConfig:()=>_f,createDefine:()=>r$,createDomqlElement:()=>_d,createEffect:()=>W,createElement:()=>Cb,createElementExtends:()=>Yd,createExtends:()=>ol,createExtendsFromKeys:()=>Mi,createExtendsStack:()=>Jd,createHTMLNode:()=>Ba,createIfConditionFlag:()=>nb,createInheritedState:()=>Rb,createKey:()=>Jc,createNestedObject:()=>U_,createNestedObjectByKeyPath:()=>Lb,createObjectWithoutPrototype:()=>Hd,createParent:()=>cp,createPath:()=>lp,createPristineConfig:()=>Eh,createProps:()=>fl,createPropsStack:()=>rp,createPrunedLibraryIconLoader:()=>rh,createRoot:()=>vb,createScope:()=>Mb,createScopeStore:()=>Id,createSignal:()=>pn,createSkeleton:()=>R7,createSnapshotId:()=>Qc,createState:()=>bk,createStore:()=>eo,createSync:()=>O7,css:()=>Me,cssCamelName:()=>nu,cssMediaVars:()=>kh,cssPropName:()=>_e,cssShorthandDepth:()=>ka,cssShorthandStatesLonghand:()=>Ta,cssShorthandStatesThemeLonghand:()=>Qf,cssVars:()=>xh,currentPathname:()=>ss,customDecodeURIComponent:()=>k_,customEncodeURIComponent:()=>x_,cutArrayAfterValue:()=>c_,cutArrayBeforeValue:()=>a_,debounce:()=>tl,debounceOnContext:()=>J_,decodeBrenderRegistry:()=>Jl,decodeNewlines:()=>w_,deepClone:()=>ut,deepContains:()=>F_,deepDefaults:()=>Yi,deepDestringifyFunctions:()=>de,deepExtend:()=>qd,deepMerge:()=>mt,deepMergeExtends:()=>Pn,deepStringifyFunctions:()=>Gc,defaultDefine:()=>wc,defineResolvedThemeSignal:()=>rr,defineSetter:()=>_S,defineThemeSignal:()=>or,designSystemBlock:()=>qS,designSystemLink:()=>KS,destringifyGlobalScope:()=>Gr,destroy:()=>pi,detectHeightOnInit:()=>CS,detectInfiniteLoop:()=>W_,detectTag:()=>zn,devices:()=>Dw,dispose:()=>rn,effectiveGlobalTheme:()=>vm,encodeNewlines:()=>S_,error:()=>os,escapeHtml:()=>j,escapeRegExp:()=>m_,evaluateText:()=>Zo,excludeKeysFromObject:()=>K_,exec:()=>bt,executeAttr:()=>m3,exetuteClassPerComponent:()=>FV,exposeBagGlobalScopes:()=>Gl,extendCachedRegistry:()=>hb,extendStackRegistry:()=>rl,extractArrayExtend:()=>il,extractConditionalAttrs:()=>vk,faviconLinkKey:()=>er,fetchLibraryData:()=>Qi,fibonacciNumberByIndex:()=>OS,fileEntryUrl:()=>th,filterArrays:()=>p_,filterArraysFast:()=>h_,filterAttributesByTagName:()=>g3,finalizeExtends:()=>tp,findClosestNumber:()=>eh,findClosestNumberInFactory:()=>JS,findHeadingLetter:()=>vh,findHeadings:()=>Tf,findInheritedState:()=>gp,findKeyPosition:()=>__,flattenExtend:()=>Bi,font:()=>yw,fontFace:()=>Sw,fontFamily:()=>_w,fontFamilyTypes:()=>bw,forcedScheme:()=>vs,formatDate:()=>vS,generateHash:()=>Wd,generateHeadArrayTags:()=>Ji,generateKey:()=>Zc,generateMetaTags:()=>ZS,generateSequence:()=>he,generateSequencePosition:()=>Gw,generateSprite:()=>Af,generateSubSequence:()=>xf,get:()=>hS,getActiveConfig:()=>L,getActiveDocument:()=>Un,getActiveLang:()=>_i,getCDNDirUrl:()=>Kp,getCDNUrl:()=>_n,getCacheSize:()=>Mx,getCapitalCaseKeys:()=>_b,getCdnProviderFromConfig:()=>Ki,getChildStateInKey:()=>hp,getChildren:()=>yS,getColor:()=>ft,getColorShade:()=>lh,getContext:()=>Il,getCookie:()=>ab,getDB:()=>$l,getDefaultOrFirstKey:()=>go,getEmitStats:()=>eg,getEmotionStylesheet:()=>aw,getExtendsInElement:()=>yb,getExtendsStack:()=>nl,getExtendsStackRegistry:()=>Kd,getFnPrefixAndValue:()=>_o,getFontFace:()=>gw,getFontFaceEach:()=>bs,getFontFaceEachString:()=>_h,getFontFaceString:()=>pf,getFontFamily:()=>Nf,getFontFormat:()=>mh,getFontSizeByKey:()=>Ff,getFrequencyInArray:()=>r_,getFunctionSource:()=>Oe,getHashedExtend:()=>sl,getImportMapScript:()=>AS,getInObjectByPath:()=>z_,getLanguages:()=>ud,getLocalStateLang:()=>gd,getLocalStorage:()=>lb,getMediaBorder:()=>If,getMediaColor:()=>Ut,getMediaTheme:()=>Qe,getNev:()=>Q_,getObserver:()=>Ce,getPageMetadata:()=>QS,getParentStateInKey:()=>pp,getPath:()=>vl,getPendingLang:()=>fd,getQuery:()=>Fl,getRef:()=>mS,getResolvedThemeSignal:()=>QC,getRgbTone:()=>xn,getRoot:()=>Rl,getRootContext:()=>Ll,getRootData:()=>Dl,getRootState:()=>Ol,getRootStateInKey:()=>dp,getSafeInk:()=>Lh,getSafeInkInfo:()=>Qw,getSequenceValue:()=>ws,getSequenceValueBySymbols:()=>kf,getSequenceValuePropertyPair:()=>jn,getShadow:()=>Lf,getShapeByKey:()=>jf,getSignals:()=>GA,getSizeValue:()=>da,getSpacingBasedOnRatio:()=>Le,getSpacingByKey:()=>$t,getSpreadChildren:()=>bb,getSubratio:()=>wf,getSubratioDifference:()=>Sf,getSystemGlobalTheme:()=>se,getTheme:()=>nx,getThemeSignal:()=>ZC,getTimingByKey:()=>ge,getTimingFunction:()=>Ie,global:()=>t_,gradient:()=>Tw,grid:()=>Bw,hasFunction:()=>te,hasHandlerPlugin:()=>Di,hasOwnProperty:()=>B_,hashContent:()=>Sn,hexToRgb:()=>lw,hexToRgbArray:()=>sh,hexToRgba:()=>uw,hslToRgb:()=>ch,icons:()=>vw,inForcedColors:()=>xs,inheritChildExtends:()=>Zd,inheritChildPropsExtends:()=>Xd,inheritParentProps:()=>ul,inheritRecursiveChildExtends:()=>Qd,init:()=>to,initPolyglot:()=>Ay,initProps:()=>Eb,injectGlobal:()=>At,insertAfterImportMap:()=>XS,installPrunedLibraryIconLoader:()=>rf,is:()=>ue,isArray:()=>P,isBoolean:()=>Md,isBuiltinElementMethod:()=>E_,isCSSVar:()=>Pt,isContextComponent:()=>Sb,isCyclic:()=>G_,isDOMNode:()=>le,isDate:()=>Nd,isDefined:()=>Nt,isDevelopment:()=>zo,isDomDocument:()=>no,isEmpty:()=>Ud,isEmptyObject:()=>N_,isEnumeratedTrueFalseAttr:()=>Vs,isEqualDeep:()=>Vd,isFailedRevival:()=>zr,isForcedColorsQuery:()=>ks,isFunction:()=>I,isGoogleFontsUrl:()=>ca,isHostObject:()=>oo,isHtmlElement:()=>Mc,isInertCompoundValue:()=>uh,isIntendedSystemColorWord:()=>Ts,isLazyFunction:()=>P_,isLocal:()=>Z_,isLoudDevRuntime:()=>J,isMalformedDependency:()=>is,isMethod:()=>wS,isMobile:()=>sb,isNativeColorToken:()=>ys,isNode:()=>ro,isNot:()=>n_,isNotProduction:()=>so,isNull:()=>Bd,isNumber:()=>fe,isObject:()=>k,isObjectLike:()=>U,isPhoto:()=>RS,isPlainColor:()=>ar,isPolyglotRetranslatableKey:()=>gl,isPolyglotWritableKey:()=>qr,isProduction:()=>Ho,isProtectedElementMethod:()=>Ur,isRawUnitValue:()=>Pc,isResolvedColor:()=>qe,isRevived:()=>Wr,isScalingUnit:()=>$r,isStaging:()=>X_,isState:()=>Db,isStore:()=>xt,isString:()=>E,isStringFunction:()=>Ri,isStringTag:()=>qc,isSvgTag:()=>Co,isTest:()=>zd,isTesting:()=>Y_,isTracking:()=>wk,isUndefined:()=>Wt,isUniversallyReservedKey:()=>kS,isUnresolvableDependency:()=>Jo,isValidDependencyMap:()=>as,isValidHtmlTag:()=>ub,isValidTag:()=>Ma,isWasmLoaded:()=>aB,isWrappedLibrary:()=>Re,isWritableFamilyBucket:()=>Jy,joinArrays:()=>Ei,joinCompoundLayers:()=>ia,jointStacks:()=>gb,jsonForScript:()=>Qr,keyframes:()=>Oa,keys:()=>Fp,libraryIconPruneReplacer:()=>iw,libraryIdentifier:()=>nh,libraryPackageSpecs:()=>Xi,librarySpecsFor:()=>Zp,linearChannelToSrgb:()=>ph,literalPairCompound:()=>Cs,literalSchemeMap:()=>wo,loadCssFile:()=>PS,loadJavascript:()=>MS,loadJavascriptFile:()=>DS,loadJavascriptFileEmbedSync:()=>IS,loadJavascriptFileSync:()=>LS,loadRemoteCSS:()=>BS,loadRemoteScript:()=>qi,loadTranslations:()=>yi,loadWasm:()=>iB,log:()=>bS,logGroupIf:()=>rb,logIf:()=>ob,lookdown:()=>dS,lookdownAll:()=>pS,lookup:()=>uS,lowercaseFirstLetter:()=>Fr,makeObjectWithoutPrototype:()=>$_,map:()=>L_,mapStringsWithContextComponents:()=>al,markPolyglotSeeded:()=>Bn,markRevived:()=>Oi,markTextNotReady:()=>zi,matchesComponentNaming:()=>Mn,media:()=>ww,memoize:()=>tb,merge:()=>Ot,mergeSharedLibraries:()=>Kl,mergeSharedLibraryDesignSystems:()=>ql,mergeStateData:()=>Go,mixTwoColors:()=>cw,mixTwoRgb:()=>dw,mixTwoRgba:()=>fh,nextElement:()=>Ml,normalizeIgnoreList:()=>zl,normalizeLibraryKey:()=>ls,numToLetterMap:()=>Xe,objectToString:()=>Kc,objectizeStringProperty:()=>cl,oklabToLinearSrgb:()=>hh,oklabToOklch:()=>ff,oklchToGamutSafeSrgb:()=>uf,oklchToOklab:()=>gh,opacify:()=>ra,overwrite:()=>Xc,overwriteDeep:()=>ee,overwriteShallow:()=>Kr,overwriteState:()=>Pb,parkHostObject:()=>Fo,parse:()=>jp,parseColorToken:()=>Yt,parseDeep:()=>El,payloadHasComputedIconName:()=>oh,pickStartLang:()=>Wp,pickupElementFromProps:()=>np,pickupPropsFromElement:()=>ep,planLibraryIconPrune:()=>sw,polyglotAddressLang:()=>Hp,polyglotFallbackLang:()=>fo,polyglotFunctions:()=>md,polyglotLangStorageKey:()=>Hi,polyglotLanguages:()=>yn,polyglotPlugin:()=>Tc,polyglotSeededKeys:()=>Ko,polyglotStartLang:()=>rs,polyglotStartRule:()=>zp,polyglotStartupScript:()=>TS,popConfig:()=>dt,popStaticCssPass:()=>hg,prepareContext:()=>IA,previousElement:()=>Bl,promoteActiveRootState:()=>Ui,propExists:()=>kb,propertizeElement:()=>op,propertizeUpdate:()=>xb,pushConfig:()=>ht,pushStaticCssPass:()=>pg,quietColorProbe:()=>Es,quietSequenceProbe:()=>yo,readBrenderStamp:()=>Jr,readJsonDataBlock:()=>$n,recordRules:()=>ou,refreshContextProto:()=>Va,registerEvent:()=>La,registerHostPackages:()=>_F,registerSignalInstance:()=>wi,reinit:()=>ZT,relativeLuminance:()=>gs,remove:()=>ja,removeChars:()=>nw,removeCookie:()=>cb,removeDelegatedEvent:()=>iu,removeDuplicateProps:()=>pl,removeDuplicatesInArray:()=>Ai,removeFromArray:()=>s_,removeFromObject:()=>j_,removeNestedKeyByPath:()=>V_,removeValueFromArray:()=>$c,removeValueFromArrayAll:()=>l_,reorderArrayByValues:()=>u_,repairLegacyArrowScopePreamble:()=>zc,replaceLiteralsWithObjectFields:()=>Gt,replaceOctalEscapeSequences:()=>b_,replayRules:()=>ru,resetEmitStats:()=>Ox,resolveAsset:()=>pe,resolveBorderValue:()=>oe,resolveColorRgb:()=>As,resolveColorsInGradient:()=>fr,resolveCompoundWords:()=>ho,resolveConfigDocument:()=>ki,resolveDesignSystemClass:()=>HR,resolveFileReferences:()=>ps,resolveFileSource:()=>Tk,resolveFileUrl:()=>Ye,resolveGridTracks:()=>PR,resolveHandler:()=>Li,resolvePropValue:()=>gr,resolveShadowNonColorWord:()=>ha,resolveShadowValue:()=>Os,resolveSharedLibraries:()=>Yl,resolveStyleBlockTokens:()=>ck,returnSubThemeOrDefault:()=>hw,returnValueAsText:()=>sp,reviveConfig:()=>Gh,rgbArrayToHex:()=>ih,rgbToHSL:()=>ah,rgbToHex:()=>fw,runPluginHook:()=>Wo,runThroughMedia:()=>Ih,schemeGuardSelector:()=>Dh,schemeMediaQuery:()=>Rh,scopeElementParam:()=>$d,scopeReceiverExpression:()=>R_,scratchDefaultConfig:()=>fa,scratchSystem:()=>_a,scratchUtils:()=>ir,self:()=>e_,semanticIcons:()=>Cw,sequence:()=>mo,serializeAttrValue:()=>Kn,serializeConfig:()=>Wh,set:()=>Ps,setActiveConfig:()=>Th,setActiveDocument:()=>Cx,setActiveRootState:()=>Cl,setAdaptiveSchemeVar:()=>lr,setClass:()=>UW,setClassname:()=>jV,setColor:()=>So,setCookie:()=>ib,setCssEngineHook:()=>Em,setCustomFont:()=>df,setCustomFontMedia:()=>nr,setEach:()=>Xf,setFont:()=>Bf,setFontFamily:()=>ma,setFontImport:()=>la,setGradient:()=>pa,setHashedExtend:()=>Gd,setInCustomFontMedia:()=>yh,setInObjectByPath:()=>H_,setLang:()=>pd,setLocalStorage:()=>fb,setMediaTheme:()=>ga,setNodeStyles:()=>$p,setObserver:()=>Lc,setProps:()=>gS,setPropsPrototype:()=>dl,setSVG:()=>ya,setScalingVar:()=>bf,setShadow:()=>ur,setSubScalingVar:()=>Ah,setSvgIcon:()=>Rs,setTheme:()=>Pf,setValue:()=>ux,setVariables:()=>Kw,setWasmEngine:()=>eu,settled:()=>Dd,shadow:()=>Aw,shape:()=>jw,sharedLibrary:()=>jS,sharedLibraryFiles:()=>fs,sizes:()=>Fw,skins:()=>Uw,spacing:()=>xw,splitCompoundWords:()=>cf,splitPackageSpecifier:()=>jl,splitSelectorList:()=>Ao,splitSpacedValue:()=>Df,splitTopLevelCommas:()=>wn,splitTopLevelSpaces:()=>lt,splitTransition:()=>Uh,spotByPath:()=>Al,srcsetFor:()=>ta,srgbChannelToLinear:()=>dh,srgbToOklab:()=>lf,stringIncludesAny:()=>Uc,stringToObject:()=>M_,stripVersionRangePrefix:()=>Ul,svg:()=>Iw,svgData:()=>bh,svg_data:()=>Pw,swapItemsInArray:()=>i_,syncProps:()=>hl,templates:()=>Mw,theme:()=>Ew,themeColorKey:()=>ds,timing:()=>Ow,toCamel:()=>yf,toCamelCase:()=>uo,toDashCase:()=>of,toDescriptionCase:()=>rw,toLinearChannel:()=>na,toPriorityOrder:()=>He,toTitleCase:()=>ow,toggleFullscreen:()=>ES,transformBackgroundImage:()=>$h,transformBorder:()=>Mh,transformBorderRadius:()=>xo,transformBoxShadow:()=>Gf,transformClassname:()=>WR,transformDuration:()=>Yf,transformGridTemplate:()=>jh,transformShadow:()=>Nh,transformSize:()=>Lt,transformSizeRatio:()=>F,transformTextStroke:()=>Bh,transformTilingValue:()=>Is,transformTransition:()=>fx,transformersByPrefix:()=>ak,transfromGap:()=>Fh,translate:()=>dd,triggerEventOn:()=>lo,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>y_,typography:()=>hf,unit:()=>mw,unstackArrayOfObjects:()=>Nc,untrack:()=>Nr,update:()=>Fa,updateProps:()=>Ab,updateVars:()=>jW,upsertTranslation:()=>hd,useCssInProps:()=>Xt,useHostState:()=>Sk,usePropsAsCSS:()=>VR,useSelectorsAsCSS:()=>zR,variables:()=>Nl,vars:()=>$w,verbose:()=>Vi,viewTransition:()=>Vw,warn:()=>Pl,warnLibraryAliasCollision:()=>Zi,warnStateKeyShadowsMethod:()=>Pd,window:()=>R,wrapHoverRule:()=>Eo});var Ic=/*@__PURE__*/$({},{RESERVED_STORE_METHODS:()=>qA,SIGNAL_ENGINE_KEY:()=>xi,SIGNAL_INSTANCES_KEY:()=>Si,STORE_METHOD_NAMES:()=>KA,VERSION:()=>JF,__resetSignalEngine:()=>Qy,__resetSignalInstances:()=>Zy,__resetStateShadowWarnings:()=>YA,batch:()=>Rd,countUntrackedReads:()=>Ld,createComputed:()=>WA,createEffect:()=>W,createScopeStore:()=>Id,createSignal:()=>pn,createStore:()=>eo,getObserver:()=>Ce,getSignals:()=>GA,isStore:()=>xt,registerSignalInstance:()=>wi,setObserver:()=>Lc,settled:()=>Dd,untrack:()=>Nr,warnStateKeyShadowsMethod:()=>Pd});var zy=/*@__PURE__*/$({},{WRITE_JOURNAL:()=>vc,batch:()=>Rc,countUntrackedReads:()=>$F,createComputed:()=>FF,createEffect:()=>jF,createSignal:()=>Dn,getObserver:()=>Uy,journalWrite:()=>Oc,noteUntrackedRead:()=>ve,setObserver:()=>BF,settled:()=>Hy,untrack:()=>NF});var qt=null,Ec=0,Ac=[],Uy=()=>qt,BF=t=>{qt=t};function NF(t){let e=qt;if(!e)return t();qt=null;try{return t()}finally{qt=e}}var Ny=0,wd=0;function ve(){Ny!==0&&wd++}function $F(t){let e=wd;Ny++;let n;try{t()}finally{n=wd-e,--Ny===0&&(wd=0)}return n}var xd=0,$y=[];function Dn(t){let e=new Set;function n(){return qt&&(e.add(qt),qt._sources.add(s)),t}function o(i){i!==t&&(t=i,KF(e))}function r(){return t}let s={get:n,set:o,peek:r,_subscribers:e,_type:"signal"};return s}function FF(t){let e,n=!0,o=new Set,r={_sources:new Set,_type:"computed",_subscribers:o,_execute(){jy(r);let s=qt;qt=r;try{e=t(),n=!1}finally{qt=s}},_notify(){n=!0,o.size>0&&HA(o)},get(){return qt&&(o.add(qt),qt._sources.add(r)),n&&r._execute(),e},peek(){return n&&r._execute(),e}};return r._execute(),r}var Ve=new Set,kd=!1,vc=[];function Oc(t){vc.push(t),vc.length>32&&vc.shift()}function jF(t,e){let n=e?.depth??0,o={_sources:new Set,_type:"effect",_depth:n,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(o._disposed)return;jy(o);let r=qt;qt=o;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{qt=r}},_notify(){o._disposed||(Ec>0?Ac.push(o):xd>0?$y.push(o):Vy(o))},dispose(){o._disposed=!0,jy(o)}};return o._execute(),o}function Rc(t){Ec++;try{t()}finally{Ec--,Ec===0&&GF()}}var Td=!1,jA=1e3,UF=8,VF=256,HF=4;function UA(){return typeof performance<"u"?performance.now():Date.now()}function Vy(t){Ve.add(t),!Td&&(kd||(kd=!0,queueMicrotask(VA)))}var bi=[];function zF(){if(Ve.size===1){let[e]=Ve;return Ve.clear(),e._disposed?0:(e._execute(),1)}bi.length=0;for(let e of Ve)bi.push(e);Ve.clear(),bi.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<bi.length;e++){let n=bi[e];n._disposed||(n._execute(),t++)}return bi.length=0,t}function VA(t=0,e=0){if(kd=!1,Ve.size===0){Cc.length&&Fy();return}Td=!0;let n=UA(),o=!1;try{for(;Ve.size>0;){if(++t>jA){let r=new Map;for(let c of Ve){let l=c._label;if(typeof l=="function")try{l=l()}catch{l="<label error>"}if(l=l||"<unlabeled>",r.set(l,(r.get(l)||0)+1),r.size>=12)break}let s=[...r.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", "),i=new Map;for(let c of vc)i.set(c,(i.get(c)||0)+1);let a=[...i.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", ");console.error("[smbls] reactive effect cascade exceeded",jA,"passes in a single flush \u2014 breaking to avoid hanging the thread.","This usually means an effect (or an onUpdate/subscribeTo handler","it calls into) unconditionally writes back a signal it depends on.","Still queued at break (the loop participants):",s||"<queue empty>","\u2014 last notifying store writes:",a||"<none recorded>"),Ve.clear();break}if(e+=zF(),Ve.size>0&&(e>=VF||t>=HF)&&UA()-n>UF){o=!0,setTimeout(()=>VA(t,e),0);break}}}finally{o||(Td=!1,Cc.length&&Fy())}}var Cc=[];function WF(){return Ve.size===0&&!kd&&!Td&&Ac.length===0&&Ec===0}function Fy(){if(Cc.length===0||!WF())return;let t=Cc.splice(0);for(let e=0;e<t.length;e++)t[e]()}function Hy(){return new Promise(t=>{Cc.push(t),queueMicrotask(Fy)})}function GF(){for(let t=0;t<Ac.length;t++)Vy(Ac[t]);Ac.length=0}function HA(t){xd++;try{for(let e of t)e._notify()}finally{if(xd--,xd===0&&$y.length>0){let e=$y.splice(0);for(let n=0;n<e.length;n++)Vy(e[n])}}}function KF(t){HA(t)}function jy(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Xy=/*@__PURE__*/$({},{RESERVED_STORE_METHODS:()=>Dc,STORE_METHOD_NAMES:()=>Yy,__resetStateShadowWarnings:()=>qF,createScopeStore:()=>QF,createStore:()=>Ad,getSignals:()=>ZF,isStore:()=>XF,warnStateKeyShadowsMethod:()=>qy});var dn=Symbol("store"),vd=Symbol("signals"),Yy=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],Dc=new Set(Yy),Ky=new Set,Wy=(t,e)=>t?t+"."+e:String(e);function qy(t,e){let n=(e||"")+"::"+t;if(Ky.has(n))return;Ky.add(n);let o=e?`state.${e}`:"state",r=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${o}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${o}.${t}(\u2026)" no longer reaches the store method on this node. Use "${o}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${Yy.join(", ")}.`;typeof console<"u"&&console.warn&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(r))}function qF(){Ky.clear()}var Gy=t=>!t||typeof t!="object"||Array.isArray(t)||t[dn]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!Cd(t),YF=12,Cd=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function Od(t,e,n){if(t===e)return!0;if(n>YF)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Od(t[o],e[o],n+1))return!1;return!0}if(Cd(t)&&Cd(e)){let o=Object.keys(t),r=Object.keys(e);if(o.length!==r.length)return!1;for(let s of o)if(!Object.prototype.hasOwnProperty.call(e,s)||!Od(t[s],e[s],n+1))return!1;return!0}return!1}function Ad(t,e,n,o){n===void 0&&(n=0),o===void 0&&(o="");let r={},s={},i=b=>Object.prototype.hasOwnProperty.call(r,b)&&Object.prototype.hasOwnProperty.call(s,b),a=b=>{if(!o||!e||typeof e.isDataOnlyKey!="function")return!1;let S=o.indexOf(".");return!!e.isDataOnlyKey(S===-1?o:o.slice(0,S),b)},c=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let b in t){if(b==="__proto__"||!Object.prototype.hasOwnProperty.call(t,b))continue;if(b.startsWith("__")){s[b]=t[b];continue}Dc.has(b)&&!a(b)&&qy(b,o);let S=t[b];n<c&&S&&typeof S=="object"&&!Gy(S)?(s[b]=S,r[b]=Dn(Ad(S,e,n+1,Wy(o,b)))):(s[b]=S,r[b]=Dn(S))}let l=new Proxy(s,{get(b,S){if(S===dn)return!0;if(S===vd)return r;if(S==="__raw")return b;if(S==="$update")return u;if(S==="$parse")return g;if(S==="$clean")return h;if(S==="$keys")return m;if(S==="$values")return y;if(S==="$replace")return x;if(S==="$add")return T;if(S==="$remove")return v;if(S==="$destroy")return _;if(S==="$quietUpdate")return d;if(S==="$settled")return p;if(Dc.has(S)&&!Object.prototype.hasOwnProperty.call(r,S))switch(S){case"update":return u;case"parse":return g;case"clean":return h;case"keys":return m;case"values":return y;case"replace":return x;case"add":return T;case"remove":return v;case"destroy":return _;case"quietUpdate":return d}if(S==="__element")return b.__element;if(S==="parent")return b.parent;if(S==="root")return b.root;if(Object.prototype.hasOwnProperty.call(r,S)){let A=r[S].get();if(A!==void 0||!(S!=="root"&&b.root&&b.root!==l))return A}if(b[S]!==void 0)return typeof S=="string"&&ve(),b[S];let w=typeof S=="string"&&!S.startsWith("__")&&S!=="then"&&S!=="constructor"&&Uy()!=null;if(S!=="root"&&b.root&&b.root!==l){let A=b.root[S];return w&&!Object.prototype.hasOwnProperty.call(r,S)&&(r[S]=Dn(void 0),r[S].get()),A}if(w)return r[S]=Dn(void 0),r[S].get();typeof S=="string"&&S.charCodeAt(0)===95&&S.charCodeAt(1)===95&&ve()},set(b,S,w){if(S==="__proto__")return!1;if(S==="__element"||S==="parent"||S==="root"||typeof S=="string"&&S.startsWith("__")&&!Object.prototype.hasOwnProperty.call(r,S))return b[S]=w,!0;Dc.has(S)&&!a(S)&&qy(S,o);let A=Wy(o,S);if(Object.prototype.hasOwnProperty.call(r,S))if(w&&typeof w=="object"&&!Gy(w)){if(w===b[S])return!0;let C=r[S].peek(),O=C&&C[dn]?C.$parse():C;if(Od(w,O,0))return!0;b[S]=w,Oc(A),r[S].set(Ad(w,e,n+1,A))}else{if(Array.isArray(w)&&w!==b[S]&&Array.isArray(r[S].peek())&&Od(w,r[S].peek(),0))return!0;r[S].peek()!==w&&Oc(A),b[S]=w,r[S].set(w)}else b[S]=w,w&&typeof w=="object"&&!Gy(w)?r[S]=Dn(Ad(w,e,n+1,A)):r[S]=Dn(w);return!0},has(b,S){return ve(),typeof S=="string"&&S.charCodeAt(0)===36&&Dc.has(S.slice(1))?!0:S in b},ownKeys(b){return ve(),Object.keys(r).filter(i)},getOwnPropertyDescriptor(b,S){return ve(),i(S)?{enumerable:!0,configurable:!0,value:r[S].peek()}:Object.getOwnPropertyDescriptor(b,S)},deleteProperty(b,S){if(Object.prototype.hasOwnProperty.call(r,S)){let w=r[S];w.peek()!==void 0&&Oc(Wy(o,S)),w.set(void 0),w._subscribers.size===0&&delete r[S]}return delete b[S],!0}});function f(b,S){let w=s.__element;return!w||typeof w.onBeforeStateUpdate!="function"||S?.preventBeforeStateUpdateListener?!0:w.onBeforeStateUpdate(w,l,w.context,{changes:b,options:S})!==!1}function u(b,S){if(b&&typeof b=="object"&&!f(b,S))return l;Rc(()=>{for(let A in b)A!=="__proto__"&&(l[A]=b[A])});let w=s.__element;return w&&w.onUpdate&&!S?.quiet&&w.onUpdate(w,l,w.context),l}function d(b){return u(b,{quiet:!0})}function p(){return Hy().then(()=>l)}function g(b){if(ve(),b||(b=new Set),b.has(l))return"[Circular]";b.add(l);let S={};for(let w in r){if(w==="parent"||w==="root"||w.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,w))continue;let A=r[w].peek();A&&A[dn]?S[w]=A.$parse(b):S[w]=A}return S}function h(){return Rc(()=>{for(let b in r)delete l[b]}),l}function m(){return ve(),Object.keys(r).filter(i)}function y(){return ve(),Object.keys(r).filter(i).map(b=>r[b].peek())}function x(b,S){return b&&typeof b=="object"&&!f(b,S)||Rc(()=>{for(let w in r)w in b||delete l[w];for(let w in b)w!=="__proto__"&&(l[w]=b[w])}),l}function T(b,S){let w=Object.prototype.hasOwnProperty.call(r,b)?r[b].peek():s[b];if(Array.isArray(w))return l[b]=[...w,S],l;if(w&&typeof w=="object"&&!Array.isArray(w)){if(Cd(S))w[dn]?w.$update(S):l[b]={...w,...S};else{let A=String(Object.keys(w).length);w[dn]?w.$update({[A]:S}):l[b]={...w,[A]:S}}return l}return l[b]=S,l}function v(b){return delete l[b],l}function _(){h(),s.__element=null,s.parent=null}return l}function XF(t){return t&&t[dn]===!0}function ZF(t){return t[vd]}function QF(t,e){let n={},o={};if(t&&typeof t=="object")for(let a in t)o[a]=t[a],n[a]=Dn(t[a]);let r=a=>{if(Object.prototype.hasOwnProperty.call(n,a))return n;let c=e;for(;c;){let l=c[vd];if(l&&Object.prototype.hasOwnProperty.call(l,a))return l;c=c[dn]?c[Ed]:null}return null},s=()=>{let a=e;for(;a&&a[dn];)a=a[Ed];return a&&typeof a=="object"?a:null};return new Proxy(o,{get(a,c){return c===dn?!0:c===vd?n:c===Ed?e:c==="__raw"?a:Object.prototype.hasOwnProperty.call(n,c)?n[c].get():e&&c!=="then"&&c!=="constructor"?e[c]:a[c]},set(a,c,l){let f=r(c);if(f)return f===n&&(a[c]=l),f[c].set(l),!0;let u=s();return u&&Object.prototype.hasOwnProperty.call(u,c)?(u[c]=l,!0):(a[c]=l,n[c]=Dn(l),!0)},has(a,c){if(ve(),c in n||c in a)return!0;let l=e;for(;l;){if(c in l)return!0;l=l[dn]?l[Ed]:null}return!1},ownKeys(){return ve(),Object.keys(n)},getOwnPropertyDescriptor(a,c){return ve(),c in n?{enumerable:!0,configurable:!0,value:n[c].peek()}:Object.getOwnPropertyDescriptor(a,c)}})}var Ed=Symbol("scope.parent");var Br="3.14.790";var Si="__SMBLS_SIGNAL_INSTANCES__",wi=(t,e,n)=>{let o=e||(typeof globalThis<"u"?globalThis:null);if(!o)return null;let r=o[Si]||(o[Si]={versions:[],engines:0,reported:!1});return typeof r.engines!="number"&&(r.engines=r.versions.length),r.versions.push(t||Br),n||r.engines++,r.engines>1&&!r.reported&&(r.reported=!0,console.error("[smbls] duplicate @symbo.ls/signal instance \u2014",r.engines,"copies of the reactive engine are loaded on this page:",r.versions.join(", ")+".","Each copy keeps its own observer and effect queue, so an effect created","by one copy never re-fires from another copy's store writes, and one","copy's cascade breaker cannot see the other's queue.","Copies of the SAME version adopt a single engine automatically, so","this means the versions above DIFFER: a fossil copy is resolving beside","the current one. That is a dependency-graph fault, not an application","bug \u2014 align the version wherever @symbo.ls/signal is imported, then","regenerate the lockfile so exactly one version resolves.")),r},Zy=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Si]};var xi="__SMBLS_SIGNAL_ENGINE__",zA=(t,e,n)=>{let o=e||Br,r=n||(typeof globalThis<"u"?globalThis:null);if(!r)return t;let s=r[xi];return s&&s.engine&&s.version===o?(wi(o,r,!0),s.engine):(s||(r[xi]={version:o,engine:t}),wi(o,r,!1),t)},Qy=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[xi]};var It=zA({...zy,...Xy,VERSION:Br},Br),pn=It.createSignal,WA=It.createComputed,W=It.createEffect,Rd=It.batch,Ce=It.getObserver,Lc=It.setObserver,Nr=It.untrack||(t=>{let e=It.getObserver();if(!e)return t();It.setObserver(null);try{return t()}finally{It.setObserver(e)}}),Dd=It.settled||(()=>Promise.resolve()),Ld=It.countUntrackedReads||(t=>(t(),0)),eo=It.createStore,Id=It.createScopeStore,xt=It.isStore,GA=It.getSignals,KA=It.STORE_METHOD_NAMES,qA=It.RESERVED_STORE_METHODS,Pd=It.warnStateKeyShadowsMethod,YA=It.__resetStateShadowWarnings,JF=It.VERSION;var ng=/*@__PURE__*/$({},{CSS_LONGHAND_SHORTHANDS:()=>Je,CSS_SHORTHAND_LONGHANDS:()=>kt,assertEmitIntegrity:()=>Rx,css:()=>Me,cssCamelName:()=>nu,cssPropName:()=>_e,cssShorthandDepth:()=>ka,cssShorthandStatesLonghand:()=>Ta,cssShorthandStatesThemeLonghand:()=>Qf,getActiveDocument:()=>Un,getCacheSize:()=>Mx,getEmitStats:()=>eg,injectGlobal:()=>At,keyframes:()=>Oa,recordRules:()=>ou,replayRules:()=>ru,reset:()=>lR,resetEmitStats:()=>Ox,setActiveDocument:()=>Cx,setWasmEngine:()=>eu,splitSelectorList:()=>Ao,wrapHoverRule:()=>Eo});var px=/*@__PURE__*/$({},{BARE_SEQUENCE_TOKEN_RE:()=>kn,COMPOUND_CSS_KEYWORDS:()=>ms,CONFIG:()=>Ss,CONFIG_MERGE_EXL:()=>ne,CSS_NAMED_COLOR_HEX:()=>oa,CSS_NATIVE_COLOR_REGEX:()=>po,CSS_UNITS:()=>Ti,FACTORY:()=>De,LIVE_KEYS:()=>dx,PREPARED_FORMAT:()=>xa,STANDARD_SCHEME_QUERIES:()=>Oh,TILING_POSITION_KEYWORDS:()=>qf,TILING_SIZE_KEYWORDS:()=>Kf,VALUE_TRANSFORMERS:()=>Vh,__resetSkinWarnings:()=>cx,activateConfig:()=>JC,aliasCaseVariants:()=>ua,animation:()=>Lw,appendSVGSprite:()=>Hf,appendSvgIconsSprite:()=>Ds,applyDocument:()=>Vf,applyHeadings:()=>Ph,applyMediaSequenceVars:()=>sr,applyReset:()=>zf,applySequenceGlobalVars:()=>Ef,applySequenceVars:()=>bo,applySkins:()=>Wf,applySpacingSequence:()=>Rf,applyThemeRoot:()=>Zf,applyTimingSequence:()=>Uf,applyTypographySequence:()=>$f,atSchemes:()=>cr,breakpoints:()=>Rw,buildSkinVarStyles:()=>Ls,changeGlobalTheme:()=>Hh,changeLightness:()=>pw,checkIfBoxSize:()=>Of,class:()=>Nw,color:()=>kw,colorPairSchemes:()=>Cf,colorStringToRgbaArray:()=>Ke,compositeOverBackdrop:()=>_s,compoundLayers:()=>sa,contrastRatio:()=>aa,convertSvgToSymbol:()=>vf,createConfig:()=>_f,createPristineConfig:()=>Eh,cssMediaVars:()=>kh,cssVars:()=>xh,defineResolvedThemeSignal:()=>rr,defineThemeSignal:()=>or,devices:()=>Dw,document:()=>YC,findHeadingLetter:()=>vh,findHeadings:()=>Tf,font:()=>yw,fontFace:()=>Sw,fontFamily:()=>_w,fontFamilyTypes:()=>bw,forcedScheme:()=>vs,generateSequence:()=>he,generateSequencePosition:()=>Gw,generateSprite:()=>Af,generateSubSequence:()=>xf,getActiveConfig:()=>L,getColor:()=>ft,getColorShade:()=>lh,getDefaultOrFirstKey:()=>go,getFnPrefixAndValue:()=>_o,getFontFace:()=>gw,getFontFaceEach:()=>bs,getFontFaceEachString:()=>_h,getFontFaceString:()=>pf,getFontFamily:()=>Nf,getFontFormat:()=>mh,getFontSizeByKey:()=>Ff,getMediaBorder:()=>If,getMediaColor:()=>Ut,getMediaTheme:()=>Qe,getResolvedThemeSignal:()=>QC,getRgbTone:()=>xn,getSafeInk:()=>Lh,getSafeInkInfo:()=>Qw,getSequenceValue:()=>ws,getSequenceValueBySymbols:()=>kf,getSequenceValuePropertyPair:()=>jn,getShadow:()=>Lf,getShapeByKey:()=>jf,getSizeValue:()=>da,getSpacingBasedOnRatio:()=>Le,getSpacingByKey:()=>$t,getSubratio:()=>wf,getSubratioDifference:()=>Sf,getTheme:()=>nx,getThemeSignal:()=>ZC,getTimingByKey:()=>ge,getTimingFunction:()=>Ie,gradient:()=>Tw,grid:()=>Bw,hexToRgb:()=>lw,hexToRgbArray:()=>sh,hexToRgba:()=>uw,hslToRgb:()=>ch,icons:()=>vw,inForcedColors:()=>xs,isCSSVar:()=>Pt,isDomDocument:()=>no,isForcedColorsQuery:()=>ks,isGoogleFontsUrl:()=>ca,isHostObject:()=>oo,isInertCompoundValue:()=>uh,isIntendedSystemColorWord:()=>Ts,isNativeColorToken:()=>ys,isPlainColor:()=>ar,isRawUnitValue:()=>Pc,isResolvedColor:()=>qe,isScalingUnit:()=>$r,isWritableFamilyBucket:()=>Jy,joinCompoundLayers:()=>ia,linearChannelToSrgb:()=>ph,literalPairCompound:()=>Cs,literalSchemeMap:()=>wo,media:()=>ww,mixTwoColors:()=>cw,mixTwoRgb:()=>dw,mixTwoRgba:()=>fh,numToLetterMap:()=>Xe,oklabToLinearSrgb:()=>hh,oklabToOklch:()=>ff,oklchToGamutSafeSrgb:()=>uf,oklchToOklab:()=>gh,opacify:()=>ra,parkHostObject:()=>Fo,parseColorToken:()=>Yt,popConfig:()=>dt,pushConfig:()=>ht,quietColorProbe:()=>Es,quietSequenceProbe:()=>yo,relativeLuminance:()=>gs,reset:()=>XC,resolveBorderValue:()=>oe,resolveColorRgb:()=>As,resolveColorsInGradient:()=>fr,resolveCompoundWords:()=>ho,resolveConfigDocument:()=>ki,resolveFileUrl:()=>Ye,resolveShadowNonColorWord:()=>ha,resolveShadowValue:()=>Os,returnSubThemeOrDefault:()=>hw,reviveConfig:()=>Gh,rgbArrayToHex:()=>ih,rgbToHSL:()=>ah,rgbToHex:()=>fw,runThroughMedia:()=>Ih,schemeGuardSelector:()=>Dh,schemeMediaQuery:()=>Rh,scratchDefaultConfig:()=>fa,scratchSystem:()=>_a,scratchUtils:()=>ir,semanticIcons:()=>Cw,sequence:()=>mo,serializeConfig:()=>Wh,set:()=>Ps,setActiveConfig:()=>Th,setAdaptiveSchemeVar:()=>lr,setColor:()=>So,setCustomFont:()=>df,setCustomFontMedia:()=>nr,setEach:()=>Xf,setFont:()=>Bf,setFontFamily:()=>ma,setFontImport:()=>la,setGradient:()=>pa,setInCustomFontMedia:()=>yh,setMediaTheme:()=>ga,setSVG:()=>ya,setScalingVar:()=>bf,setShadow:()=>ur,setSubScalingVar:()=>Ah,setSvgIcon:()=>Rs,setTheme:()=>Pf,setValue:()=>ux,setVariables:()=>Kw,shadow:()=>Aw,shape:()=>jw,sizes:()=>Fw,skins:()=>Uw,spacing:()=>xw,splitCompoundWords:()=>cf,splitSpacedValue:()=>Df,splitTopLevelCommas:()=>wn,splitTopLevelSpaces:()=>lt,splitTransition:()=>Uh,srgbChannelToLinear:()=>dh,srgbToOklab:()=>lf,svg:()=>Iw,svgData:()=>bh,svg_data:()=>Pw,templates:()=>Mw,theme:()=>Ew,timing:()=>Ow,toCamel:()=>yf,toLinearChannel:()=>na,transformBackgroundImage:()=>$h,transformBorder:()=>Mh,transformBorderRadius:()=>xo,transformBoxShadow:()=>Gf,transformDuration:()=>Yf,transformGridTemplate:()=>jh,transformShadow:()=>Nh,transformSize:()=>Lt,transformSizeRatio:()=>F,transformTextStroke:()=>Bh,transformTilingValue:()=>Is,transformTransition:()=>fx,transfromGap:()=>Fh,typography:()=>hf,unit:()=>mw,vars:()=>$w,viewTransition:()=>Vw});var ir=/*@__PURE__*/$({},{BARE_SEQUENCE_TOKEN_RE:()=>kn,COMPOUND_CSS_KEYWORDS:()=>ms,CSS_NAMED_COLOR_HEX:()=>oa,CSS_NATIVE_COLOR_REGEX:()=>po,CSS_UNITS:()=>Ti,applyMediaSequenceVars:()=>sr,applySequenceGlobalVars:()=>Ef,applySequenceVars:()=>bo,changeLightness:()=>pw,colorStringToRgbaArray:()=>Ke,compositeOverBackdrop:()=>_s,compoundLayers:()=>sa,contrastRatio:()=>aa,convertSvgToSymbol:()=>vf,findHeadingLetter:()=>vh,findHeadings:()=>Tf,generateSequence:()=>he,generateSequencePosition:()=>Gw,generateSprite:()=>Af,generateSubSequence:()=>xf,getColorShade:()=>lh,getDefaultOrFirstKey:()=>go,getFnPrefixAndValue:()=>_o,getFontFace:()=>gw,getFontFaceEach:()=>bs,getFontFaceEachString:()=>_h,getFontFaceString:()=>pf,getFontFormat:()=>mh,getRgbTone:()=>xn,getSequenceValue:()=>ws,getSequenceValueBySymbols:()=>kf,getSequenceValuePropertyPair:()=>jn,getSizeValue:()=>da,getSubratio:()=>wf,getSubratioDifference:()=>Sf,hexToRgb:()=>lw,hexToRgbArray:()=>sh,hexToRgba:()=>uw,hslToRgb:()=>ch,isCSSVar:()=>Pt,isDomDocument:()=>no,isGoogleFontsUrl:()=>ca,isHostObject:()=>oo,isInertCompoundValue:()=>uh,isNativeColorToken:()=>ys,isRawUnitValue:()=>Pc,isResolvedColor:()=>qe,isScalingUnit:()=>$r,isWritableFamilyBucket:()=>Jy,joinCompoundLayers:()=>ia,linearChannelToSrgb:()=>ph,mixTwoColors:()=>cw,mixTwoRgb:()=>dw,mixTwoRgba:()=>fh,numToLetterMap:()=>Xe,oklabToLinearSrgb:()=>hh,oklabToOklch:()=>ff,oklchToGamutSafeSrgb:()=>uf,oklchToOklab:()=>gh,opacify:()=>ra,parkHostObject:()=>Fo,parseColorToken:()=>Yt,quietSequenceProbe:()=>yo,relativeLuminance:()=>gs,resolveCompoundWords:()=>ho,resolveConfigDocument:()=>ki,resolveFileUrl:()=>Ye,returnSubThemeOrDefault:()=>hw,rgbArrayToHex:()=>ih,rgbToHSL:()=>ah,rgbToHex:()=>fw,setCustomFont:()=>df,setCustomFontMedia:()=>nr,setFontImport:()=>la,setInCustomFontMedia:()=>yh,setScalingVar:()=>bf,setSubScalingVar:()=>Ah,setVariables:()=>Kw,splitCompoundWords:()=>cf,splitTopLevelCommas:()=>wn,splitTopLevelSpaces:()=>lt,srgbChannelToLinear:()=>dh,srgbToOklab:()=>lf,toLinearChannel:()=>na});var no=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),oo=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},Jy=t=>t!==null&&typeof t=="object"&&!oo(t),Fo=(t,e,n)=>{if(!t)return;if(no(n)){t.__domDocument||(t.__domDocument=n);return}let o=`__host_${e}`;t[o]||(t[o]=n)},ki=t=>t?no(t.__domDocument)?t.__domDocument:no(t.document)?t.document:null:null;var $r=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Ti=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"],t2=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e2=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${Ti.filter(t=>t!=="auto").map(t2).join("|")})$`),Pc=t=>e2.test(String(t).trim());var ea=/*@__PURE__*/$({},{BRENDER_REGISTRY_BLOCK:()=>Zl,BRENDER_REGISTRY_TREE_BLOCK:()=>Ql,BRENDER_STAMP_META:()=>Jp,CDN_PROVIDERS:()=>Ge,DESIGN_SYSTEM_BLOCK:()=>nf,DESIGN_SYSTEM_DEFERRED:()=>ef,DESIGN_SYSTEM_LINK:()=>tf,DOMQL_EVENTS:()=>A_,DOMQ_PROPERTIES:()=>jo,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vi,ENV:()=>q_,HTML_TAGS:()=>Ii,LIBRARY_PACKAGES:()=>Qp,LIBRARY_SCOPES_KEY:()=>cs,METHODS:()=>Vo,METHODS_EXL:()=>Hc,NODE_ENV:()=>hn,OPTIONS:()=>Tl,PACKAGE_MANAGER_TO_CDN:()=>Qo,PARSED_DOMQ_PROPERTIES:()=>Vc,POLYGLOT_LANG_STORAGE_KEY:()=>Vp,PROPS_METHODS:()=>Uo,REVIVED_MARK:()=>Yc,STATE_DATA_MERGE_EXL:()=>yp,STATE_METHODS:()=>jr,STATE_PROPERTIES:()=>T_,SVG_TAGS:()=>hv,TYPES:()=>Bc,UNIVERSAL_RESERVED_KEYS:()=>Up,__resetBuiltinMethodWarnings:()=>US,addCaching:()=>up,addContext:()=>fp,addExtend:()=>mb,addExtends:()=>In,addItemAfterEveryElement:()=>f_,addProtoToArray:()=>Fc,addRef:()=>ap,alternateLinkKey:()=>us,applyDependentState:()=>Ib,applyEvent:()=>Pp,applyEventUpdate:()=>Mp,applyExtends:()=>yv,applyProps:()=>ll,arrayContainsOtherArray:()=>o_,arraysEqual:()=>d_,arrayzeValue:()=>hs,bareLibraryKey:()=>Hl,bindLibraryGlobalScopes:()=>Wl,brenderStampMeta:()=>YS,buildImgSrcset:()=>sf,buildSourcesAndImg:()=>af,cache:()=>lS,call:()=>SS,captureSnapshot:()=>xS,checkForStateTypes:()=>Ob,checkIfInherits:()=>mp,checkIfStringIsInArray:()=>g_,clone:()=>I_,cloneAndMergeArrayExtend:()=>el,cloneFunction:()=>eb,collectExtendsList:()=>Pi,concatAddExtends:()=>pb,copyJavaScriptToClipboard:()=>ew,copyStringToClipboard:()=>tw,createBasedOnType:()=>ip,createElement:()=>Cb,createElementExtends:()=>Yd,createExtends:()=>ol,createExtendsFromKeys:()=>Mi,createExtendsStack:()=>Jd,createIfConditionFlag:()=>nb,createInheritedState:()=>Rb,createKey:()=>Jc,createNestedObject:()=>U_,createNestedObjectByKeyPath:()=>Lb,createObjectWithoutPrototype:()=>Hd,createParent:()=>cp,createPath:()=>lp,createProps:()=>fl,createPropsStack:()=>rp,createPrunedLibraryIconLoader:()=>rh,createRoot:()=>vb,createScope:()=>Mb,createSnapshotId:()=>Qc,currentPathname:()=>ss,customDecodeURIComponent:()=>k_,customEncodeURIComponent:()=>x_,cutArrayAfterValue:()=>c_,cutArrayBeforeValue:()=>a_,debounce:()=>tl,debounceOnContext:()=>J_,decodeBrenderRegistry:()=>Jl,decodeNewlines:()=>w_,deepClone:()=>ut,deepContains:()=>F_,deepDefaults:()=>Yi,deepDestringifyFunctions:()=>de,deepExtend:()=>qd,deepMerge:()=>mt,deepMergeExtends:()=>Pn,deepStringifyFunctions:()=>Gc,defineSetter:()=>_S,designSystemBlock:()=>qS,designSystemLink:()=>KS,destringifyGlobalScope:()=>Gr,detectHeightOnInit:()=>CS,detectInfiniteLoop:()=>W_,document:()=>wt,encodeNewlines:()=>S_,error:()=>os,escapeHtml:()=>j,escapeRegExp:()=>m_,evaluateText:()=>Zo,excludeKeysFromObject:()=>K_,exec:()=>bt,exposeBagGlobalScopes:()=>Gl,extendCachedRegistry:()=>hb,extendStackRegistry:()=>rl,extractArrayExtend:()=>il,faviconLinkKey:()=>er,fetchLibraryData:()=>Qi,fibonacciNumberByIndex:()=>OS,fileEntryUrl:()=>th,filterArrays:()=>p_,filterArraysFast:()=>h_,finalizeExtends:()=>tp,findClosestNumber:()=>eh,findClosestNumberInFactory:()=>JS,findInheritedState:()=>gp,findKeyPosition:()=>__,flattenExtend:()=>Bi,formatDate:()=>vS,generateHash:()=>Wd,generateHeadArrayTags:()=>Ji,generateKey:()=>Zc,generateMetaTags:()=>ZS,get:()=>hS,getCDNDirUrl:()=>Kp,getCDNUrl:()=>_n,getCapitalCaseKeys:()=>_b,getCdnProviderFromConfig:()=>Ki,getChildStateInKey:()=>hp,getChildren:()=>yS,getContext:()=>Il,getCookie:()=>ab,getDB:()=>$l,getEmotionStylesheet:()=>aw,getExtendsInElement:()=>yb,getExtendsStack:()=>nl,getExtendsStackRegistry:()=>Kd,getFrequencyInArray:()=>r_,getFunctionSource:()=>Oe,getHashedExtend:()=>sl,getImportMapScript:()=>AS,getInObjectByPath:()=>z_,getLocalStorage:()=>lb,getNev:()=>Q_,getPageMetadata:()=>QS,getParentStateInKey:()=>pp,getPath:()=>vl,getQuery:()=>Fl,getRef:()=>mS,getRoot:()=>Rl,getRootContext:()=>Ll,getRootData:()=>Dl,getRootState:()=>Ol,getRootStateInKey:()=>dp,getSpreadChildren:()=>bb,global:()=>t_,hasFunction:()=>te,hasHandlerPlugin:()=>Di,hasOwnProperty:()=>B_,hashContent:()=>Sn,inheritChildExtends:()=>Zd,inheritChildPropsExtends:()=>Xd,inheritParentProps:()=>ul,inheritRecursiveChildExtends:()=>Qd,initProps:()=>Eb,insertAfterImportMap:()=>XS,installPrunedLibraryIconLoader:()=>rf,is:()=>ue,isArray:()=>P,isBoolean:()=>Md,isBuiltinElementMethod:()=>E_,isContextComponent:()=>Sb,isCyclic:()=>G_,isDOMNode:()=>le,isDate:()=>Nd,isDefined:()=>Nt,isDevelopment:()=>zo,isEmpty:()=>Ud,isEmptyObject:()=>N_,isEqualDeep:()=>Vd,isFailedRevival:()=>zr,isFunction:()=>I,isHtmlElement:()=>Mc,isLazyFunction:()=>P_,isLocal:()=>Z_,isLoudDevRuntime:()=>J,isMalformedDependency:()=>is,isMethod:()=>wS,isMobile:()=>sb,isNode:()=>ro,isNot:()=>n_,isNotProduction:()=>so,isNull:()=>Bd,isNumber:()=>fe,isObject:()=>k,isObjectLike:()=>U,isPhoto:()=>RS,isPolyglotRetranslatableKey:()=>gl,isPolyglotWritableKey:()=>qr,isProduction:()=>Ho,isProtectedElementMethod:()=>Ur,isRevived:()=>Wr,isStaging:()=>X_,isState:()=>Db,isString:()=>E,isStringFunction:()=>Ri,isStringTag:()=>qc,isTest:()=>zd,isTesting:()=>Y_,isUndefined:()=>Wt,isUniversallyReservedKey:()=>kS,isUnresolvableDependency:()=>Jo,isValidDependencyMap:()=>as,isValidHtmlTag:()=>ub,isWrappedLibrary:()=>Re,joinArrays:()=>Ei,jointStacks:()=>gb,jsonForScript:()=>Qr,keys:()=>Fp,libraryIconPruneReplacer:()=>iw,libraryIdentifier:()=>nh,libraryPackageSpecs:()=>Xi,librarySpecsFor:()=>Zp,loadCssFile:()=>PS,loadJavascript:()=>MS,loadJavascriptFile:()=>DS,loadJavascriptFileEmbedSync:()=>IS,loadJavascriptFileSync:()=>LS,loadRemoteCSS:()=>BS,loadRemoteScript:()=>qi,log:()=>bS,logGroupIf:()=>rb,logIf:()=>ob,lookdown:()=>dS,lookdownAll:()=>pS,lookup:()=>uS,lowercaseFirstLetter:()=>Fr,makeObjectWithoutPrototype:()=>$_,map:()=>L_,mapStringsWithContextComponents:()=>al,markPolyglotSeeded:()=>Bn,markRevived:()=>Oi,markTextNotReady:()=>zi,matchesComponentNaming:()=>Mn,memoize:()=>tb,merge:()=>Ot,mergeSharedLibraries:()=>Kl,mergeSharedLibraryDesignSystems:()=>ql,mergeStateData:()=>Go,nextElement:()=>Ml,normalizeIgnoreList:()=>zl,normalizeLibraryKey:()=>ls,objectToString:()=>Kc,objectizeStringProperty:()=>cl,overwrite:()=>Xc,overwriteDeep:()=>ee,overwriteShallow:()=>Kr,overwriteState:()=>Pb,parse:()=>jp,parseDeep:()=>El,payloadHasComputedIconName:()=>oh,pickStartLang:()=>Wp,pickupElementFromProps:()=>np,pickupPropsFromElement:()=>ep,planLibraryIconPrune:()=>sw,polyglotAddressLang:()=>Hp,polyglotFallbackLang:()=>fo,polyglotLangStorageKey:()=>Hi,polyglotLanguages:()=>yn,polyglotSeededKeys:()=>Ko,polyglotStartLang:()=>rs,polyglotStartRule:()=>zp,polyglotStartupScript:()=>TS,previousElement:()=>Bl,promoteActiveRootState:()=>Ui,propExists:()=>kb,propertizeElement:()=>op,propertizeUpdate:()=>xb,readBrenderStamp:()=>Jr,readJsonDataBlock:()=>$n,remove:()=>yC,removeChars:()=>nw,removeCookie:()=>cb,removeDuplicateProps:()=>pl,removeDuplicatesInArray:()=>Ai,removeFromArray:()=>s_,removeFromObject:()=>j_,removeNestedKeyByPath:()=>V_,removeValueFromArray:()=>$c,removeValueFromArrayAll:()=>l_,reorderArrayByValues:()=>u_,repairLegacyArrowScopePreamble:()=>zc,replaceLiteralsWithObjectFields:()=>Gt,replaceOctalEscapeSequences:()=>b_,resolveAsset:()=>pe,resolveFileReferences:()=>ps,resolveHandler:()=>Li,resolveSharedLibraries:()=>Yl,returnValueAsText:()=>sp,runPluginHook:()=>Wo,scopeElementParam:()=>$d,scopeReceiverExpression:()=>R_,self:()=>e_,setActiveRootState:()=>Cl,setCookie:()=>ib,setHashedExtend:()=>Gd,setInObjectByPath:()=>H_,setLocalStorage:()=>fb,setNodeStyles:()=>$p,setProps:()=>gS,setPropsPrototype:()=>dl,sharedLibrary:()=>jS,sharedLibraryFiles:()=>fs,splitPackageSpecifier:()=>jl,spotByPath:()=>Al,srcsetFor:()=>ta,stringIncludesAny:()=>Uc,stringToObject:()=>M_,stripVersionRangePrefix:()=>Ul,swapItemsInArray:()=>i_,syncProps:()=>hl,themeColorKey:()=>ds,toCamelCase:()=>uo,toDashCase:()=>of,toDescriptionCase:()=>rw,toPriorityOrder:()=>He,toTitleCase:()=>ow,toggleFullscreen:()=>ES,triggerEventOn:()=>lo,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>y_,unstackArrayOfObjects:()=>Nc,update:()=>Tb,updateProps:()=>Ab,variables:()=>Nl,verbose:()=>Vi,warn:()=>Pl,warnLibraryAliasCollision:()=>Zi,window:()=>R});var t_=globalThis,e_=globalThis,R=globalThis,wt=R.document;var ro=t=>(typeof Node=="object"?t instanceof R.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Mc=t=>(typeof HTMLElement=="object"?t instanceof R.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,le=t=>t===null||typeof t!="object"?!1:typeof R<"u"&&(R.Node&&t instanceof R.Node||R.Window&&t instanceof R.Window||t===R||wt!==void 0&&t===wt);var k=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,E=t=>typeof t=="string",fe=t=>typeof t=="number",I=t=>typeof t=="function",Md=t=>t===!0||t===!1,Bd=t=>t===null,P=t=>Array.isArray(t),Nd=t=>t instanceof Date,U=t=>t===null?!1:typeof t=="object",Nt=t=>t!==void 0,Wt=t=>t===void 0,Bc={boolean:Md,array:P,object:k,string:E,date:Nd,number:fe,null:Bd,function:I,objectLike:U,node:ro,htmlElement:Mc,defined:Nt},ue=t=>(...e)=>e.some(n=>Bc[n](t)),n_=t=>(...e)=>!e.some(n=>Bc[n](t));var o_=(t,e)=>e.every(n=>t.includes(n)),r_=(t,e)=>{let n=0;for(let o=0;o<t.length;o++)t[o]===e&&n++;return n},s_=(t,e)=>{if(E(e)&&(e=parseInt(e)),fe(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},i_=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},Ei=(...t)=>[].concat(...t),Nc=(t,e=[])=>t.reduce((n,o)=>mt(n,ut(o,{exclude:e}),e),{}),a_=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},c_=(t,e)=>{if(!P(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},$c=(t,e)=>{let n=t.indexOf(e);if(n>-1){let o=[...t];return o.splice(n,1),o}return t},l_=(t,e)=>t.filter(n=>n!==e),f_=(t,e)=>{let n=[];for(let o=0;o<t.length;o++)n.push(t[o]),o<t.length-1&&n.push(e);return n},u_=(t,e,n)=>{let o=[...t],r=o.indexOf(e),s=o.indexOf(n);if(r!==-1&&s!==-1){let i=o.splice(r,1)[0],a=s<r?s:s+1;o.splice(a,0,i)}return o},d_=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},p_=(t,e)=>t.filter(n=>!e.includes(n)),h_=(t,e)=>{let n=new Set(e);return t.filter(o=>!n.has(o))},g_=(t,e)=>{if(!t)return 0;let n=0;for(let o=0;o<e.length;o++)t.includes(e[o])&&n++;return n},Ai=t=>P(t)?[...new Set(t)]:t,Fc=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})};var m_=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Uc=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},y_=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},n2={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},jc=(t,e)=>e.split(".").reduce((n,o)=>n?.[o],t),o2=(t,e)=>{if(!t||!t.__ref)return!0;let n=t;for(;n;){if(n.allowRuntimeTemplates===!0)return!0;let o=n.__ref&&n.__ref.__authoredTemplates;if(o&&o.has(e))return!0;n=n.parent}return!1};function Gt(t,e,n={}){let{bracketsLength:o=2,authored:r=!1}=n,s=o===3?"{{{":"{{";if(!t.includes(s)||r!==!0&&!o2(this,t))return t;let i=n2[o],a=e||this.state||{},c=this;return t.replace(i,(l,f,u,d)=>{let p=u.trim();if(d){let g=c?.context,h=g?.functions?.[d]||g?.utils?.[d]||g?.methods?.[d]||g?.snippets?.[d]||c?.[d];if(h&&typeof h=="function")try{return String(h.call(c,p)??"")}catch{return""}return""}if(f){let g=(f.match(/\.\.\//g)||[]).length,h=a;for(let y=0;y<g;y++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=jc(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=jc(a,p);if(g!=null&&typeof g!="object")return String(g);let h=c?.context?.polyglot;if(h?.translations){let m=a?.root?.lang||a?.lang||c?.context?.state?.lang||h.defaultLang||"en",y=h.translations[m];if(y){let T=jc(y,p);if(T!=null&&typeof T!="object")return String(T);for(let v in y){let _=y[v];if(_&&typeof _=="object"&&!Array.isArray(_)){let b=jc(_,p);if(b!=null&&typeof b!="object")return String(b)}}}let x=jc(h.translations,p);if(x!=null&&typeof x!="object")return String(x)}return""}})}var Fr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,__=(t,e)=>{let n=t.split(`
2
- `),o=-1,r=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<n.length;f++)if(a.test(n[f])&&!l){if(l=!0,o=f+1,s=n[f].indexOf(e)+1,n[f].includes("{}")){r=o,i=n[f].indexOf("{}")+3;break}let u=n[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{r=f+1,i=n[f].length+1;break}}else if(l&&(c+=(n[f].match(/{/g)||[]).length,c+=(n[f].match(/\[/g)||[]).length,c-=(n[f].match(/}/g)||[]).length,c-=(n[f].match(/]/g)||[]).length,c===0)){r=f+1,i=n[f].lastIndexOf("}")!==-1?n[f].lastIndexOf("}")+2:n[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:o,endLineNumber:r}},r2=/\\([0-7]{1,3})/g,b_=t=>t.replace(r2,(e,n)=>String.fromCharCode(parseInt(n,8))),S_=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),w_=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),s2=/[^a-zA-Z0-9\s]/g,x_=t=>t.replace(s2,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),k_=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)));var jo=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),Vc=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),T_=["ref","parent","__element","__depends","__ref","__children","root"],jr=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),Uo=new Set(["update","__element"]),Vo=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","whenConnected","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),E_=t=>Vo.has(t),vi=new Set(["log","warn","error","verbose"]),Ur=t=>Vo.has(t)&&!vi.has(t),Hc=new Set(["node","context","extends","__element","__ref",...Vo,...jr,...Uo]),A_=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"]);var C_=["$R?.scope ?? $R?.context?.globalScope ?? {}","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { try { Object.setPrototypeOf(s, g) } catch (_) {} } return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? {}; })()","(() => { const r = $R; const s = r?.scope; const g = r?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? (r && typeof r === 'object' && r !== globalThis ? r : {}); })()"],O_=(t,e)=>t.split("$R").join(e),i2=C_.map(t=>[O_(t,"this"),t]),R_=t=>O_(C_[C_.length-1],t),v_="const __scope = ",a2=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,c2=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,l2=/^[A-Za-z_$][\w$]*$/,Ci=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),$d=(t,e)=>{if(t.length>=2&&Ci(t[0],"el"))return t[0];if(t.length>=2&&Ci(t[1],"el"))return t[1];if(t.length>=1&&Ci(t[0],"el")||Ci(t[0],"element")||Ci(t[0],"node"))return t[0];if(typeof e=="function"){let n=e();if(n&&t.includes(n))return n}return t.find(n=>Ci(n,"element"))||null},zc=t=>{if(typeof t!="string"||t.indexOf(v_)===-1||t.indexOf("this")===-1)return t;let e=c2.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(v_,n))return t;n+=v_.length;let o=a2.exec(t.slice(n,n+400));o&&(n+=o[0].length);let r=i2.find(([l])=>t.startsWith(l,n));if(!r)return t;let s=n+r[0].length;if(t[s]!==(o?")":";"))return t;let a=(e[1]!==void 0?e[1]:e[2]).split(",").map(l=>l.split("=")[0].trim()).filter(Boolean);if(a.some(l=>!l2.test(l)))return t;let c=$d(a);return c?t.slice(0,n)+O_(r[1],c)+t.slice(s):t};var f2=Symbol.for("smbls.serverUtils"),Ln=(t,e)=>{let n=globalThis[f2];return typeof n!="function"?Promise.reject(new Error(`[smbls] ${t} is server-only in this build and no smbls runtime registered its loader`)):n().then(o=>o[t](...e))};var XA="production",Hr=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,bt=(t,e,n,o)=>{if(I(t))return e?typeof t.call!="function"?t:t.call(e,e,n||e.state,o||e.context):void 0;if(t!=null&&e?.context?.plugins&&(P(t)||k(t)&&!le(t))){let r=e.context.plugins;for(let s of r)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return bt(i,e,n,o)}}return t},L_=(t,e,n)=>{for(let o in e)t[o]=bt(e[o],n)},Ot=(t,e,n=[])=>{let o=n instanceof Set;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Hr(r)||(o?n.has(r):n.includes(r))||t[r]===void 0&&(t[r]=e[r]));return t},mt=(t,e,n=Hc)=>rv(t,e,n,null),rv=(t,e,n,o)=>{if(t===e)return t;if(o){for(let s=0;s<o.length;s+=2)if(o[s]===t&&o[s+1]===e)return t}let r=n instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Hr(s)||s==="constructor"||s==="prototype"||(r?n.has(s):n.includes(s)))continue;let i=t[s],a=e[s];if(U(i)&&U(a)){let c=o||[];c.push(t,e),rv(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},I_=(t,e=[])=>{let n=e instanceof Set,o={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(Hr(r)||(n?e.has(r):e.includes(r))||(o[r]=t[r]));return o},ut=(t,e={})=>{let{exclude:n=[],cleanUndefined:o=!1,cleanNull:r=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!U(t)||le(t))return t;if(s.has(t))return s.get(t);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),l=P(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let p in u){if(!Object.prototype.hasOwnProperty.call(u,p)||Hr(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(o&&g===void 0)&&!(r&&g===null)){if(le(g)){d[p]=g;continue}if(i&&p==="extends"&&P(g)){d[p]=Nc(g,n);continue}if(I(g)){d[p]=g;continue}if(U(g))if(s.has(g))d[p]=s.get(g);else{let h=P(g)?[]:{};s.set(g,h),d[p]=h,f.push([g,h])}else d[p]=g}}}return l},Gc=(t,e={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Ln("deepStringifyFunctions",[t,e]);(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let n in t){let o=t[n];if(I(o))e[n]=o.toString();else if(k(o))e[n]={},Gc(o,e[n]);else if(P(o)){let r=e[n]=[];for(let s=0;s<o.length;s++){let i=o[s];k(i)?(r[s]={},Gc(i,r[s])):I(i)?r[s]=i.toString():r[s]=i}}else e[n]=o}return e},u2=/^[A-Za-z_$][A-Za-z0-9_$]*$/,d2=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,ZA=t=>{let e=String(t);return Uc(e,[`
4
- `,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},Kc=(t={},e=0)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Ln("objectToString",[t,e]);if(t===null||typeof t!="object"||t instanceof RegExp)return String(t);let n=!1;for(let s in t){n=!0;break}if(!n)return"{}";let o=" ".repeat(e),r=`{
5
- `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=u2.test(s)?s:d2(s);if(r+=`${o} ${a}: `,i instanceof RegExp)r+=String(i);else if(P(i)){r+=`[
1
+ var GF=Object.defineProperty;var $=(t,e)=>{for(var n in e)GF(t,n,{get:e[n],enumerable:!0});return t};var qA=/*@__PURE__*/$({},{ANIMATION_PROPS:()=>tk,ARIA_ROLES:()=>w3,ATTR_TRANSFORMS:()=>br,BARE_SEQUENCE_TOKEN_RE:()=>En,BLOCK_PROPS:()=>ek,BREAKPOINTS_CONTAINER_NAME:()=>WR,BREAKPOINT_PROPS:()=>lk,BRENDER_REGISTRY_BLOCK:()=>ef,BRENDER_REGISTRY_TREE_BLOCK:()=>nf,BRENDER_STAMP_META:()=>rh,CDN_PROVIDERS:()=>Ye,COMPOUND_CSS_KEYWORDS:()=>_s,CONFIG:()=>xs,CONFIG_MERGE_EXL:()=>re,CSS_LONGHAND_SHORTHANDS:()=>on,CSS_NAMED_COLOR_HEX:()=>ia,CSS_NATIVE_COLOR_REGEX:()=>mo,CSS_PROPS_REGISTRY:()=>St,CSS_SHORTHAND_LONGHANDS:()=>kt,CSS_UNITS:()=>vi,DEFAULT_CONFIG:()=>Zs,DEFAULT_CSS_PROPERTIES_LIST:()=>Mt,DELEGATED_EVENTS:()=>Ia,DESIGN_SYSTEM_BLOCK:()=>af,DESIGN_SYSTEM_DEFERRED:()=>sf,DESIGN_SYSTEM_LINK:()=>rf,DESIGN_SYSTEM_OPTIONS:()=>mA,DOMQL_EVENTS:()=>L_,DOMQ_PROPERTIES:()=>Ho,DOM_EVENTS:()=>P1,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Ri,ENV:()=>tb,FACTORY:()=>Pe,FLEX_PROPS:()=>ik,FONT_PROPS:()=>nk,GRID_PROPS:()=>ak,HOST_REGISTERED_PACKAGES:()=>CF,HTML_ATTRIBUTES:()=>Lo,HTML_TAGS:()=>Bi,LIBRARY_PACKAGES:()=>oh,LIBRARY_SCOPES_KEY:()=>fs,LIFECYCLE_EVENTS:()=>zn,LIVE_KEYS:()=>Sx,METHODS:()=>Wo,METHODS_EXL:()=>Gc,MISC_PROPS:()=>ok,MIXINS:()=>cg,NODE_ENV:()=>_n,OPTIONS:()=>vl,PACKAGE_MANAGER_TO_CDN:()=>er,PARSED_DOMQ_PROPERTIES:()=>Wc,POLYGLOT_LANG_STORAGE_KEY:()=>Gp,POSITION_PROPS:()=>rk,PREPARED_FORMAT:()=>Ea,PRERENDER_REGISTRY_FORMATS:()=>xA,PROPS_METHODS:()=>zo,PROTOTYPE_KEYS:()=>ao,REGISTRY:()=>zt,RESERVED_STORE_METHODS:()=>ov,REVIVED_MARK:()=>Qc,ROUTER_OPTIONS:()=>Cy,SIGNAL_ENGINE_KEY:()=>Ei,SIGNAL_INSTANCES_KEY:()=>ki,STANDARD_SCHEME_QUERIES:()=>Ph,STATE_DATA_MERGE_EXL:()=>wp,STATE_PROPERTIES:()=>R_,STORE_METHOD_NAMES:()=>nv,SVG_TAGS:()=>ja,THEME_PROPS:()=>sk,TILING_POSITION_KEYWORDS:()=>Qf,TILING_SIZE_KEYWORDS:()=>Zf,TIMING_PROPS:()=>pu,TYPES:()=>Fc,UNIVERSAL_RESERVED_KEYS:()=>Wp,VALUE_TRANSFORMERS:()=>Kh,VERSION:()=>SR,__resetBuiltinMethodWarnings:()=>qS,__resetSignalEngine:()=>r_,__resetSignalInstances:()=>o_,__resetSkinWarnings:()=>mx,__resetStateShadowWarnings:()=>rv,activateConfig:()=>lO,addCaching:()=>gp,addContext:()=>hp,addDelegatedEvent:()=>lu,addExtend:()=>xb,addExtends:()=>Mn,addItemAfterEveryElement:()=>m_,addMethods:()=>za,addProtoToArray:()=>Vc,addRef:()=>up,adoptPrepared:()=>rE,aliasCaseVariants:()=>ha,alternateLinkKey:()=>ps,animation:()=>jw,appendSVGSprite:()=>Kf,appendSvgIconsSprite:()=>Is,applyAttrTransforms:()=>Pk,applyCSS:()=>iE,applyDependentState:()=>Fb,applyDocument:()=>Gf,applyEvent:()=>$p,applyEventUpdate:()=>Fp,applyExtends:()=>Na,applyHeadings:()=>Fh,applyInitialState:()=>vg,applyMediaSequenceVars:()=>cr,applyProps:()=>dl,applyReset:()=>qf,applySequenceGlobalVars:()=>Of,applySequenceVars:()=>xo,applySkins:()=>Yf,applySpacingSequence:()=>Pf,applyStateMethods:()=>xe,applyThemeRoot:()=>eu,applyTimingSequence:()=>Wf,applyTrueProps:()=>hk,applyTypographySequence:()=>Vf,arrayContainsOtherArray:()=>l_,arraysEqual:()=>__,arrayzeValue:()=>ms,assertEmitIntegrity:()=>$x,atSchemes:()=>ur,bareLibraryKey:()=>Gl,batch:()=>Pd,bindLibraryGlobalScopes:()=>ql,breakpoints:()=>$w,breakpointsContainerName:()=>Sg,brenderStampMeta:()=>ow,buildImgSrcset:()=>ff,buildSkinVarStyles:()=>Ps,buildSourcesAndImg:()=>uf,buildThemeVarStyles:()=>Dm,cache:()=>gS,cacheNode:()=>yr,call:()=>AS,callStateMethod:()=>bu,camelToAttr:()=>Io,camelToLowerAttr:()=>$1,captureSnapshot:()=>CS,changeGlobalTheme:()=>qh,changeLightness:()=>ww,checkAttributeByTagName:()=>fn,checkEventFunctions:()=>Ik,checkForStateTypes:()=>Mb,checkIfBoxSize:()=>If,checkIfInherits:()=>Sp,checkIfStringIsInArray:()=>w_,class:()=>Ww,clone:()=>F_,cloneAndMergeArrayExtend:()=>rl,cloneFunction:()=>ab,collectExtendsList:()=>Ni,color:()=>Dw,colorPairSchemes:()=>Lf,colorStringToRgbaArray:()=>Ze,components:()=>dc,compositeOverBackdrop:()=>Ss,compoundLayers:()=>ca,concatAddExtends:()=>bb,containerBreakpointQuery:()=>ck,contrastRatio:()=>fa,convertSvgToSymbol:()=>Df,copyJavaScriptToClipboard:()=>lw,copyStringToClipboard:()=>cw,countUntrackedReads:()=>Bd,create:()=>zA,createAsync:()=>VK,createBasedOnType:()=>fp,createComputed:()=>tv,createConfig:()=>xf,createDefine:()=>h$,createDomqlElement:()=>xd,createEffect:()=>W,createElement:()=>Pb,createElementExtends:()=>Jd,createExtends:()=>il,createExtendsFromKeys:()=>$i,createExtendsStack:()=>op,createHTMLNode:()=>Fa,createIfConditionFlag:()=>cb,createInheritedState:()=>Bb,createKey:()=>nl,createNestedObject:()=>K_,createNestedObjectByKeyPath:()=>$b,createObjectWithoutPrototype:()=>Kd,createParent:()=>dp,createPath:()=>pp,createPristineConfig:()=>Rh,createProps:()=>pl,createPropsStack:()=>cp,createPrunedLibraryIconLoader:()=>lh,createRoot:()=>Ib,createScope:()=>Ub,createScopeStore:()=>Nd,createSignal:()=>yn,createSkeleton:()=>zK,createSnapshotId:()=>el,createState:()=>vk,createStore:()=>oo,createSync:()=>HK,css:()=>$e,cssCamelName:()=>iu,cssMediaVars:()=>Ch,cssPropName:()=>Se,cssShorthandDepth:()=>Aa,cssShorthandStatesLonghand:()=>va,cssShorthandStatesThemeLonghand:()=>nu,cssVars:()=>vh,currentPathname:()=>as,customDecodeURIComponent:()=>O_,customEncodeURIComponent:()=>C_,cutArrayAfterValue:()=>h_,cutArrayBeforeValue:()=>p_,debounce:()=>ol,debounceOnContext:()=>sb,decodeBrenderRegistry:()=>of,decodeNewlines:()=>v_,deepClone:()=>ut,deepContains:()=>W_,deepDefaults:()=>Qi,deepDestringifyFunctions:()=>he,deepExtend:()=>Qd,deepMerge:()=>mt,deepMergeExtends:()=>Bn,deepStringifyFunctions:()=>Yc,defaultDefine:()=>yi,defineResolvedThemeSignal:()=>ar,defineSetter:()=>TS,defineThemeSignal:()=>ir,designSystemBlock:()=>nw,designSystemLink:()=>ew,destringifyGlobalScope:()=>qr,destroy:()=>gi,detectHeightOnInit:()=>PS,detectInfiniteLoop:()=>Z_,detectTag:()=>Gn,devices:()=>Fw,dispose:()=>ln,effectiveGlobalTheme:()=>Lm,encodeNewlines:()=>A_,error:()=>ss,escapeHtml:()=>j,escapeRegExp:()=>x_,evaluateText:()=>tr,excludeKeysFromObject:()=>J_,exec:()=>bt,executeAttr:()=>R3,exetuteClassPerComponent:()=>JV,exposeBagGlobalScopes:()=>Yl,extendCachedRegistry:()=>Sb,extendStackRegistry:()=>al,extractArrayExtend:()=>ll,extractConditionalAttrs:()=>Mk,faviconLinkKey:()=>rr,fetchLibraryData:()=>ea,fibonacciNumberByIndex:()=>MS,fileEntryUrl:()=>sh,filterArrays:()=>b_,filterArraysFast:()=>S_,filterAttributesByTagName:()=>O3,finalizeExtends:()=>rp,findClosestNumber:()=>ih,findClosestNumberInFactory:()=>aw,findHeadingLetter:()=>Lh,findHeadings:()=>Cf,findInheritedState:()=>bp,findKeyPosition:()=>T_,flattenExtend:()=>Fi,font:()=>Ew,fontFace:()=>Cw,fontFamily:()=>Aw,fontFamilyTypes:()=>vw,forcedScheme:()=>Os,formatDate:()=>IS,generateHash:()=>Yd,generateHeadArrayTags:()=>na,generateKey:()=>tl,generateMetaTags:()=>sw,generateSequence:()=>me,generateSequencePosition:()=>tx,generateSprite:()=>Rf,generateSubSequence:()=>Af,get:()=>SS,getActiveConfig:()=>L,getActiveDocument:()=>Hn,getActiveLang:()=>wi,getCDNDirUrl:()=>Zp,getCDNUrl:()=>wn,getCacheSize:()=>Hx,getCapitalCaseKeys:()=>Tb,getCdnProviderFromConfig:()=>Xi,getChildStateInKey:()=>_p,getChildren:()=>kS,getColor:()=>ft,getColorShade:()=>hh,getContext:()=>Bl,getCookie:()=>pb,getDB:()=>Ul,getDefaultOrFirstKey:()=>_o,getEmitStats:()=>ig,getEmotionStylesheet:()=>gw,getExtendsInElement:()=>kb,getExtendsStack:()=>sl,getExtendsStackRegistry:()=>Zd,getFnPrefixAndValue:()=>wo,getFontFace:()=>kw,getFontFaceEach:()=>ws,getFontFaceEachString:()=>kh,getFontFaceString:()=>yf,getFontFamily:()=>Uf,getFontFormat:()=>wh,getFontSizeByKey:()=>Hf,getFrequencyInArray:()=>f_,getFunctionSource:()=>De,getHashedExtend:()=>cl,getImportMapScript:()=>LS,getInObjectByPath:()=>X_,getLanguages:()=>gd,getLocalStateLang:()=>bd,getLocalStorage:()=>gb,getMediaBorder:()=>Nf,getMediaColor:()=>Vt,getMediaTheme:()=>nn,getNev:()=>rb,getObserver:()=>Re,getPageMetadata:()=>iw,getParentStateInKey:()=>yp,getPath:()=>Rl,getPendingLang:()=>hd,getQuery:()=>Vl,getRef:()=>xS,getResolvedThemeSignal:()=>cO,getRgbTone:()=>Tn,getRoot:()=>Il,getRootContext:()=>Ml,getRootData:()=>Pl,getRootState:()=>Ll,getRootStateInKey:()=>mp,getSafeInk:()=>Nh,getSafeInkInfo:()=>ix,getSequenceValue:()=>ks,getSequenceValueBySymbols:()=>vf,getSequenceValuePropertyPair:()=>Vn,getShadow:()=>Bf,getShapeByKey:()=>zf,getSignals:()=>ev,getSizeValue:()=>ga,getSpacingBasedOnRatio:()=>Me,getSpacingByKey:()=>Ft,getSpreadChildren:()=>Eb,getSubratio:()=>Ef,getSubratioDifference:()=>Tf,getSystemGlobalTheme:()=>ae,getTheme:()=>fx,getThemeSignal:()=>aO,getTimingByKey:()=>ye,getTimingFunction:()=>Be,global:()=>i_,gradient:()=>Lw,grid:()=>zw,hasFunction:()=>ee,hasHandlerPlugin:()=>Pi,hasOwnProperty:()=>V_,hashContent:()=>xn,hexToRgb:()=>yw,hexToRgbArray:()=>fh,hexToRgba:()=>bw,hslToRgb:()=>ph,icons:()=>Mw,inForcedColors:()=>Ts,inheritChildExtends:()=>ep,inheritChildPropsExtends:()=>tp,inheritParentProps:()=>hl,inheritRecursiveChildExtends:()=>np,init:()=>no,initPolyglot:()=>Ly,initProps:()=>Db,injectGlobal:()=>At,insertAfterImportMap:()=>rw,installPrunedLibraryIconLoader:()=>lf,is:()=>pe,isArray:()=>P,isBoolean:()=>Fd,isBuiltinElementMethod:()=>D_,isCSSVar:()=>Pt,isContextComponent:()=>Ab,isCyclic:()=>Q_,isDOMNode:()=>ue,isDate:()=>Ud,isDefined:()=>Nt,isDevelopment:()=>Ko,isDomDocument:()=>ro,isEmpty:()=>Wd,isEmptyObject:()=>H_,isEnumeratedTrueFalseAttr:()=>zs,isEqualDeep:()=>Gd,isFailedRevival:()=>Gr,isForcedColorsQuery:()=>Es,isFunction:()=>I,isGoogleFontsUrl:()=>ua,isHostObject:()=>so,isHtmlElement:()=>$c,isInertCompoundValue:()=>mh,isIntendedSystemColorWord:()=>As,isLazyFunction:()=>j_,isLocal:()=>ob,isLoudDevRuntime:()=>J,isMalformedDependency:()=>cs,isMethod:()=>vS,isMobile:()=>ub,isNativeColorToken:()=>bs,isNode:()=>io,isNot:()=>c_,isNotProduction:()=>co,isNull:()=>jd,isNumber:()=>de,isObject:()=>k,isObjectLike:()=>U,isPhoto:()=>BS,isPlainColor:()=>fr,isPolyglotRetranslatableKey:()=>_l,isPolyglotWritableKey:()=>Xr,isProduction:()=>Go,isProtectedElementMethod:()=>Hr,isRawUnitValue:()=>Nc,isResolvedColor:()=>Qe,isRevived:()=>Kr,isScalingUnit:()=>jr,isStaging:()=>nb,isState:()=>Nb,isStore:()=>xt,isString:()=>E,isStringFunction:()=>Ii,isStringTag:()=>Zc,isSvgTag:()=>Do,isTest:()=>qd,isTesting:()=>eb,isTracking:()=>Ok,isUndefined:()=>Gt,isUniversallyReservedKey:()=>OS,isUnresolvableDependency:()=>nr,isValidDependencyMap:()=>ls,isValidHtmlTag:()=>yb,isValidTag:()=>$a,isWasmLoaded:()=>yB,isWrappedLibrary:()=>Ie,isWritableFamilyBucket:()=>s_,joinArrays:()=>Ci,joinCompoundLayers:()=>la,jointStacks:()=>wb,jsonForScript:()=>ts,keyframes:()=>La,keys:()=>Hp,libraryIconPruneReplacer:()=>hw,libraryIdentifier:()=>ah,libraryPackageSpecs:()=>Ji,librarySpecsFor:()=>nh,linearChannelToSrgb:()=>_h,literalPairCompound:()=>Rs,literalSchemeMap:()=>To,loadCssFile:()=>jS,loadJavascript:()=>US,loadJavascriptFile:()=>NS,loadJavascriptFileEmbedSync:()=>FS,loadJavascriptFileSync:()=>$S,loadRemoteCSS:()=>VS,loadRemoteScript:()=>Zi,loadTranslations:()=>Si,loadWasm:()=>mB,log:()=>ES,logGroupIf:()=>fb,logIf:()=>lb,lookdown:()=>_S,lookdownAll:()=>bS,lookup:()=>yS,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>z_,map:()=>$_,mapStringsWithContextComponents:()=>fl,markPolyglotSeeded:()=>$n,markRevived:()=>Li,markTextNotReady:()=>Ki,matchesComponentNaming:()=>Nn,media:()=>Ow,memoize:()=>ib,merge:()=>Ot,mergeSharedLibraries:()=>Xl,mergeSharedLibraryDesignSystems:()=>Zl,mergeSharedLibraryTranslations:()=>Ql,mergeStateData:()=>Yo,mixTwoColors:()=>mw,mixTwoRgb:()=>Sw,mixTwoRgba:()=>gh,nextElement:()=>$l,normalizeIgnoreList:()=>Kl,normalizeLibraryKey:()=>us,numToLetterMap:()=>tn,objectToString:()=>Xc,objectizeStringProperty:()=>ul,oklabToLinearSrgb:()=>bh,oklabToOklch:()=>hf,oklchToGamutSafeSrgb:()=>gf,oklchToOklab:()=>Sh,opacify:()=>aa,overwrite:()=>Jc,overwriteDeep:()=>ne,overwriteShallow:()=>Yr,overwriteState:()=>jb,parkHostObject:()=>Vo,parse:()=>zp,parseColorToken:()=>Xt,parseDeep:()=>Cl,payloadHasComputedIconName:()=>ch,pickStartLang:()=>Yp,pickupElementFromProps:()=>ip,pickupPropsFromElement:()=>sp,planLibraryIconPrune:()=>pw,polyglotAddressLang:()=>Kp,polyglotFallbackLang:()=>ho,polyglotFunctions:()=>Sd,polyglotLangStorageKey:()=>Gi,polyglotLanguages:()=>Le,polyglotPlugin:()=>vc,polyglotSeededKeys:()=>Xo,polyglotStartLang:()=>is,polyglotStartRule:()=>qp,polyglotStartupScript:()=>RS,popConfig:()=>dt,popStaticCssPass:()=>bg,prepareContext:()=>VA,previousElement:()=>Fl,promoteActiveRootState:()=>zi,propExists:()=>Ob,propertizeElement:()=>ap,propertizeUpdate:()=>Cb,pushConfig:()=>ht,pushStaticCssPass:()=>_g,quietColorProbe:()=>vs,quietSequenceProbe:()=>So,readBrenderStamp:()=>es,readJsonDataBlock:()=>jn,recordRules:()=>au,refreshContextProto:()=>Wa,registerEvent:()=>Ma,registerHostPackages:()=>OF,registerSignalInstance:()=>Ti,reinit:()=>sE,relativeLuminance:()=>ys,remove:()=>Ha,removeChars:()=>fw,removeCookie:()=>hb,removeDelegatedEvent:()=>fu,removeDuplicateProps:()=>ml,removeDuplicatesInArray:()=>Oi,removeFromArray:()=>u_,removeFromObject:()=>G_,removeNestedKeyByPath:()=>q_,removeValueFromArray:()=>Uc,removeValueFromArrayAll:()=>g_,reorderArrayByValues:()=>y_,repairLegacyArrowScopePreamble:()=>Kc,replaceLiteralsWithObjectFields:()=>Kt,replaceOctalEscapeSequences:()=>E_,replayRules:()=>cu,resetEmitStats:()=>Nx,resolveAsset:()=>ge,resolveBorderValue:()=>se,resolveColorRgb:()=>Cs,resolveColorsInGradient:()=>pr,resolveCompoundWords:()=>yo,resolveConfigDocument:()=>Ai,resolveDesignSystemClass:()=>JR,resolveFileReferences:()=>gs,resolveFileSource:()=>Lk,resolveFileUrl:()=>Je,resolveGridTracks:()=>zR,resolveHandler:()=>Mi,resolvePropValue:()=>_r,resolveShadowNonColorWord:()=>ya,resolveShadowValue:()=>Ds,resolveSharedLibraries:()=>Jl,resolveStyleBlockTokens:()=>mk,returnSubThemeOrDefault:()=>xw,returnValueAsText:()=>lp,reviveConfig:()=>Zh,rgbArrayToHex:()=>uh,rgbToHSL:()=>dh,rgbToHex:()=>_w,runPluginHook:()=>qo,runThroughMedia:()=>$h,schemeGuardSelector:()=>Bh,schemeMediaQuery:()=>Mh,scopeElementParam:()=>Vd,scopeReceiverExpression:()=>B_,scratchDefaultConfig:()=>pa,scratchSystem:()=>wa,scratchUtils:()=>lr,self:()=>a_,semanticIcons:()=>Bw,sequence:()=>bo,serializeAttrValue:()=>Yn,serializeConfig:()=>Xh,set:()=>Bs,setActiveConfig:()=>Oh,setActiveDocument:()=>Bx,setActiveRootState:()=>Dl,setAdaptiveSchemeVar:()=>dr,setClass:()=>e9,setClassname:()=>t3,setColor:()=>ko,setCookie:()=>db,setCssEngineHook:()=>Rm,setCustomFont:()=>mf,setCustomFontMedia:()=>sr,setEach:()=>tu,setFont:()=>jf,setFontFamily:()=>ba,setFontImport:()=>da,setGradient:()=>ma,setHashedExtend:()=>Xd,setInCustomFontMedia:()=>xh,setInObjectByPath:()=>Y_,setLang:()=>yd,setLocalStorage:()=>mb,setMediaTheme:()=>_a,setNodeStyles:()=>Vp,setObserver:()=>Mc,setProps:()=>wS,setPropsPrototype:()=>gl,setSVG:()=>Sa,setScalingVar:()=>kf,setShadow:()=>hr,setSubScalingVar:()=>Dh,setSvgIcon:()=>Ls,setTheme:()=>$f,setValue:()=>bx,setVariables:()=>ex,setWasmEngine:()=>su,settled:()=>Md,shadow:()=>Pw,shape:()=>qw,sharedLibrary:()=>KS,sharedLibraryFiles:()=>ds,sizes:()=>Kw,skins:()=>Yw,spacing:()=>Rw,splitCompoundWords:()=>df,splitPackageSpecifier:()=>Hl,splitSelectorList:()=>Oo,splitSpacedValue:()=>Mf,splitTopLevelCommas:()=>kn,splitTopLevelSpaces:()=>lt,splitTransition:()=>Gh,spotByPath:()=>Ol,srcsetFor:()=>oa,srgbChannelToLinear:()=>yh,srgbToOklab:()=>pf,stringIncludesAny:()=>zc,stringToObject:()=>U_,stripVersionRangePrefix:()=>zl,svg:()=>Uw,svgData:()=>Th,svg_data:()=>Vw,swapItemsInArray:()=>d_,syncProps:()=>yl,templates:()=>Hw,theme:()=>Iw,themeColorKey:()=>hs,timing:()=>Nw,toCamel:()=>wf,toCamelCase:()=>go,toDashCase:()=>cf,toDescriptionCase:()=>dw,toLinearChannel:()=>sa,toPriorityOrder:()=>Ge,toTitleCase:()=>uw,toggleFullscreen:()=>DS,transformBackgroundImage:()=>Hh,transformBorder:()=>jh,transformBorderRadius:()=>Eo,transformBoxShadow:()=>Xf,transformClassname:()=>e1,transformDuration:()=>Jf,transformGridTemplate:()=>Wh,transformShadow:()=>Vh,transformSize:()=>Lt,transformSizeRatio:()=>F,transformTextStroke:()=>Uh,transformTilingValue:()=>Ms,transformTransition:()=>_x,transformersByPrefix:()=>gk,transfromGap:()=>zh,translate:()=>md,triggerEventOn:()=>po,triggerEventOnUpdate:()=>hS,trimStringFromSymbols:()=>k_,typography:()=>_f,unit:()=>Tw,unstackArrayOfObjects:()=>jc,untrack:()=>Fr,update:()=>Va,updateProps:()=>Lb,updateVars:()=>t9,upsertTranslation:()=>_d,useCssInProps:()=>Zt,useHostState:()=>Ck,usePropsAsCSS:()=>QR,useSelectorsAsCSS:()=>t1,variables:()=>jl,vars:()=>Gw,verbose:()=>Wi,viewTransition:()=>Xw,warn:()=>Nl,warnLibraryAliasCollision:()=>ta,warnStateKeyShadowsMethod:()=>$d,window:()=>R,wrapHoverRule:()=>Co});var Bc=/*@__PURE__*/$({},{RESERVED_STORE_METHODS:()=>ov,SIGNAL_ENGINE_KEY:()=>Ei,SIGNAL_INSTANCES_KEY:()=>ki,STORE_METHOD_NAMES:()=>nv,VERSION:()=>f2,__resetSignalEngine:()=>r_,__resetSignalInstances:()=>o_,__resetStateShadowWarnings:()=>rv,batch:()=>Pd,countUntrackedReads:()=>Bd,createComputed:()=>tv,createEffect:()=>W,createScopeStore:()=>Nd,createSignal:()=>yn,createStore:()=>oo,getObserver:()=>Re,getSignals:()=>ev,isStore:()=>xt,registerSignalInstance:()=>Ti,setObserver:()=>Mc,settled:()=>Md,untrack:()=>Fr,warnStateKeyShadowsMethod:()=>$d});var Xy=/*@__PURE__*/$({},{WRITE_JOURNAL:()=>Rc,batch:()=>Ic,countUntrackedReads:()=>YF,createComputed:()=>XF,createEffect:()=>ZF,createSignal:()=>In,getObserver:()=>Ky,journalWrite:()=>Lc,noteUntrackedRead:()=>Oe,setObserver:()=>KF,settled:()=>Yy,untrack:()=>qF});var Yt=null,Cc=0,Oc=[],Ky=()=>Yt,KF=t=>{Yt=t};function qF(t){let e=Yt;if(!e)return t();Yt=null;try{return t()}finally{Yt=e}}var Hy=0,Ed=0;function Oe(){Hy!==0&&Ed++}function YF(t){let e=Ed;Hy++;let n;try{t()}finally{n=Ed-e,--Hy===0&&(Ed=0)}return n}var Ad=0,zy=[];function In(t){let e=new Set;function n(){return Yt&&(e.add(Yt),Yt._sources.add(s)),t}function o(i){i!==t&&(t=i,r2(e))}function r(){return t}let s={get:n,set:o,peek:r,_subscribers:e,_type:"signal"};return s}function XF(t){let e,n=!0,o=new Set,r={_sources:new Set,_type:"computed",_subscribers:o,_execute(){Gy(r);let s=Yt;Yt=r;try{e=t(),n=!1}finally{Yt=s}},_notify(){n=!0,o.size>0&&QA(o)},get(){return Yt&&(o.add(Yt),Yt._sources.add(r)),n&&r._execute(),e},peek(){return n&&r._execute(),e}};return r._execute(),r}var We=new Set,vd=!1,Rc=[];function Lc(t){Rc.push(t),Rc.length>32&&Rc.shift()}function ZF(t,e){let n=e?.depth??0,o={_sources:new Set,_type:"effect",_depth:n,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(o._disposed)return;Gy(o);let r=Yt;Yt=o;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Yt=r}},_notify(){o._disposed||(Cc>0?Oc.push(o):Ad>0?zy.push(o):qy(o))},dispose(){o._disposed=!0,Gy(o)}};return o._execute(),o}function Ic(t){Cc++;try{t()}finally{Cc--,Cc===0&&o2()}}var Cd=!1,YA=1e3,QF=8,JF=256,t2=4;function XA(){return typeof performance<"u"?performance.now():Date.now()}function qy(t){We.add(t),!Cd&&(vd||(vd=!0,queueMicrotask(ZA)))}var xi=[];function e2(){if(We.size===1){let[e]=We;return We.clear(),e._disposed?0:(e._execute(),1)}xi.length=0;for(let e of We)xi.push(e);We.clear(),xi.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<xi.length;e++){let n=xi[e];n._disposed||(n._execute(),t++)}return xi.length=0,t}function ZA(t=0,e=0){if(vd=!1,We.size===0){Dc.length&&Wy();return}Cd=!0;let n=XA(),o=!1;try{for(;We.size>0;){if(++t>YA){let r=new Map;for(let c of We){let l=c._label;if(typeof l=="function")try{l=l()}catch{l="<label error>"}if(l=l||"<unlabeled>",r.set(l,(r.get(l)||0)+1),r.size>=12)break}let s=[...r.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", "),i=new Map;for(let c of Rc)i.set(c,(i.get(c)||0)+1);let a=[...i.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", ");console.error("[smbls] reactive effect cascade exceeded",YA,"passes in a single flush \u2014 breaking to avoid hanging the thread.","This usually means an effect (or an onUpdate/subscribeTo handler","it calls into) unconditionally writes back a signal it depends on.","Still queued at break (the loop participants):",s||"<queue empty>","\u2014 last notifying store writes:",a||"<none recorded>"),We.clear();break}if(e+=e2(),We.size>0&&(e>=JF||t>=t2)&&XA()-n>QF){o=!0,setTimeout(()=>ZA(t,e),0);break}}}finally{o||(Cd=!1,Dc.length&&Wy())}}var Dc=[];function n2(){return We.size===0&&!vd&&!Cd&&Oc.length===0&&Cc===0}function Wy(){if(Dc.length===0||!n2())return;let t=Dc.splice(0);for(let e=0;e<t.length;e++)t[e]()}function Yy(){return new Promise(t=>{Dc.push(t),queueMicrotask(Wy)})}function o2(){for(let t=0;t<Oc.length;t++)qy(Oc[t]);Oc.length=0}function QA(t){Ad++;try{for(let e of t)e._notify()}finally{if(Ad--,Ad===0&&zy.length>0){let e=zy.splice(0);for(let n=0;n<e.length;n++)qy(e[n])}}}function r2(t){QA(t)}function Gy(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var n_=/*@__PURE__*/$({},{RESERVED_STORE_METHODS:()=>Pc,STORE_METHOD_NAMES:()=>e_,__resetStateShadowWarnings:()=>s2,createScopeStore:()=>l2,createStore:()=>Rd,getSignals:()=>c2,isStore:()=>a2,warnStateKeyShadowsMethod:()=>t_});var mn=Symbol("store"),Dd=Symbol("signals"),e_=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],Pc=new Set(e_),Jy=new Set,Zy=(t,e)=>t?t+"."+e:String(e);function t_(t,e){let n=(e||"")+"::"+t;if(Jy.has(n))return;Jy.add(n);let o=e?`state.${e}`:"state",r=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${o}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${o}.${t}(\u2026)" no longer reaches the store method on this node. Use "${o}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${e_.join(", ")}.`;typeof console<"u"&&console.warn&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(r))}function s2(){Jy.clear()}var Qy=t=>!t||typeof t!="object"||Array.isArray(t)||t[mn]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!Ld(t),i2=12,Ld=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function Id(t,e,n){if(t===e)return!0;if(n>i2)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Id(t[o],e[o],n+1))return!1;return!0}if(Ld(t)&&Ld(e)){let o=Object.keys(t),r=Object.keys(e);if(o.length!==r.length)return!1;for(let s of o)if(!Object.prototype.hasOwnProperty.call(e,s)||!Id(t[s],e[s],n+1))return!1;return!0}return!1}function Rd(t,e,n,o){n===void 0&&(n=0),o===void 0&&(o="");let r={},s={},i=b=>Object.prototype.hasOwnProperty.call(r,b)&&Object.prototype.hasOwnProperty.call(s,b),a=b=>{if(!o||!e||typeof e.isDataOnlyKey!="function")return!1;let S=o.indexOf(".");return!!e.isDataOnlyKey(S===-1?o:o.slice(0,S),b)},c=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let b in t){if(b==="__proto__"||!Object.prototype.hasOwnProperty.call(t,b))continue;if(b.startsWith("__")){s[b]=t[b];continue}Pc.has(b)&&!a(b)&&t_(b,o);let S=t[b];n<c&&S&&typeof S=="object"&&!Qy(S)?(s[b]=S,r[b]=In(Rd(S,e,n+1,Zy(o,b)))):(s[b]=S,r[b]=In(S))}let l=new Proxy(s,{get(b,S){if(S===mn)return!0;if(S===Dd)return r;if(S==="__raw")return b;if(S==="$update")return u;if(S==="$parse")return g;if(S==="$clean")return h;if(S==="$keys")return m;if(S==="$values")return y;if(S==="$replace")return x;if(S==="$add")return T;if(S==="$remove")return v;if(S==="$destroy")return _;if(S==="$quietUpdate")return d;if(S==="$settled")return p;if(Pc.has(S)&&!Object.prototype.hasOwnProperty.call(r,S))switch(S){case"update":return u;case"parse":return g;case"clean":return h;case"keys":return m;case"values":return y;case"replace":return x;case"add":return T;case"remove":return v;case"destroy":return _;case"quietUpdate":return d}if(S==="__element")return b.__element;if(S==="parent")return b.parent;if(S==="root")return b.root;if(Object.prototype.hasOwnProperty.call(r,S)){let A=r[S].get();if(A!==void 0||!(S!=="root"&&b.root&&b.root!==l))return A}if(b[S]!==void 0)return typeof S=="string"&&Oe(),b[S];let w=typeof S=="string"&&!S.startsWith("__")&&S!=="then"&&S!=="constructor"&&Ky()!=null;if(S!=="root"&&b.root&&b.root!==l){let A=b.root[S];return w&&!Object.prototype.hasOwnProperty.call(r,S)&&(r[S]=In(void 0),r[S].get()),A}if(w)return r[S]=In(void 0),r[S].get();typeof S=="string"&&S.charCodeAt(0)===95&&S.charCodeAt(1)===95&&Oe()},set(b,S,w){if(S==="__proto__")return!1;if(S==="__element"||S==="parent"||S==="root"||typeof S=="string"&&S.startsWith("__")&&!Object.prototype.hasOwnProperty.call(r,S))return b[S]=w,!0;Pc.has(S)&&!a(S)&&t_(S,o);let A=Zy(o,S);if(Object.prototype.hasOwnProperty.call(r,S))if(w&&typeof w=="object"&&!Qy(w)){if(w===b[S])return!0;let C=r[S].peek(),O=C&&C[mn]?C.$parse():C;if(Id(w,O,0))return!0;b[S]=w,Lc(A),r[S].set(Rd(w,e,n+1,A))}else{if(Array.isArray(w)&&w!==b[S]&&Array.isArray(r[S].peek())&&Id(w,r[S].peek(),0))return!0;r[S].peek()!==w&&Lc(A),b[S]=w,r[S].set(w)}else b[S]=w,w&&typeof w=="object"&&!Qy(w)?r[S]=In(Rd(w,e,n+1,A)):r[S]=In(w);return!0},has(b,S){return Oe(),typeof S=="string"&&S.charCodeAt(0)===36&&Pc.has(S.slice(1))?!0:S in b},ownKeys(b){return Oe(),Object.keys(r).filter(i)},getOwnPropertyDescriptor(b,S){return Oe(),i(S)?{enumerable:!0,configurable:!0,value:r[S].peek()}:Object.getOwnPropertyDescriptor(b,S)},deleteProperty(b,S){if(Object.prototype.hasOwnProperty.call(r,S)){let w=r[S];w.peek()!==void 0&&Lc(Zy(o,S)),w.set(void 0),w._subscribers.size===0&&delete r[S]}return delete b[S],!0}});function f(b,S){let w=s.__element;return!w||typeof w.onBeforeStateUpdate!="function"||S?.preventBeforeStateUpdateListener?!0:w.onBeforeStateUpdate(w,l,w.context,{changes:b,options:S})!==!1}function u(b,S){if(b&&typeof b=="object"&&!f(b,S))return l;Ic(()=>{for(let A in b)A!=="__proto__"&&(l[A]=b[A])});let w=s.__element;return w&&w.onUpdate&&!S?.quiet&&w.onUpdate(w,l,w.context),l}function d(b){return u(b,{quiet:!0})}function p(){return Yy().then(()=>l)}function g(b){if(Oe(),b||(b=new Set),b.has(l))return"[Circular]";b.add(l);let S={};for(let w in r){if(w==="parent"||w==="root"||w.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,w))continue;let A=r[w].peek();A&&A[mn]?S[w]=A.$parse(b):S[w]=A}return S}function h(){return Ic(()=>{for(let b in r)delete l[b]}),l}function m(){return Oe(),Object.keys(r).filter(i)}function y(){return Oe(),Object.keys(r).filter(i).map(b=>r[b].peek())}function x(b,S){return b&&typeof b=="object"&&!f(b,S)||Ic(()=>{for(let w in r)w in b||delete l[w];for(let w in b)w!=="__proto__"&&(l[w]=b[w])}),l}function T(b,S){let w=Object.prototype.hasOwnProperty.call(r,b)?r[b].peek():s[b];if(Array.isArray(w))return l[b]=[...w,S],l;if(w&&typeof w=="object"&&!Array.isArray(w)){if(Ld(S))w[mn]?w.$update(S):l[b]={...w,...S};else{let A=String(Object.keys(w).length);w[mn]?w.$update({[A]:S}):l[b]={...w,[A]:S}}return l}return l[b]=S,l}function v(b){return delete l[b],l}function _(){h(),s.__element=null,s.parent=null}return l}function a2(t){return t&&t[mn]===!0}function c2(t){return t[Dd]}function l2(t,e){let n={},o={};if(t&&typeof t=="object")for(let a in t)o[a]=t[a],n[a]=In(t[a]);let r=a=>{if(Object.prototype.hasOwnProperty.call(n,a))return n;let c=e;for(;c;){let l=c[Dd];if(l&&Object.prototype.hasOwnProperty.call(l,a))return l;c=c[mn]?c[Od]:null}return null},s=()=>{let a=e;for(;a&&a[mn];)a=a[Od];return a&&typeof a=="object"?a:null};return new Proxy(o,{get(a,c){return c===mn?!0:c===Dd?n:c===Od?e:c==="__raw"?a:Object.prototype.hasOwnProperty.call(n,c)?n[c].get():e&&c!=="then"&&c!=="constructor"?e[c]:a[c]},set(a,c,l){let f=r(c);if(f)return f===n&&(a[c]=l),f[c].set(l),!0;let u=s();return u&&Object.prototype.hasOwnProperty.call(u,c)?(u[c]=l,!0):(a[c]=l,n[c]=In(l),!0)},has(a,c){if(Oe(),c in n||c in a)return!0;let l=e;for(;l;){if(c in l)return!0;l=l[mn]?l[Od]:null}return!1},ownKeys(){return Oe(),Object.keys(n)},getOwnPropertyDescriptor(a,c){return Oe(),c in n?{enumerable:!0,configurable:!0,value:n[c].peek()}:Object.getOwnPropertyDescriptor(a,c)}})}var Od=Symbol("scope.parent");var $r="3.14.790";var ki="__SMBLS_SIGNAL_INSTANCES__",Ti=(t,e,n)=>{let o=e||(typeof globalThis<"u"?globalThis:null);if(!o)return null;let r=o[ki]||(o[ki]={versions:[],engines:0,reported:!1});return typeof r.engines!="number"&&(r.engines=r.versions.length),r.versions.push(t||$r),n||r.engines++,r.engines>1&&!r.reported&&(r.reported=!0,console.error("[smbls] duplicate @symbo.ls/signal instance \u2014",r.engines,"copies of the reactive engine are loaded on this page:",r.versions.join(", ")+".","Each copy keeps its own observer and effect queue, so an effect created","by one copy never re-fires from another copy's store writes, and one","copy's cascade breaker cannot see the other's queue.","Copies of the SAME version adopt a single engine automatically, so","this means the versions above DIFFER: a fossil copy is resolving beside","the current one. That is a dependency-graph fault, not an application","bug \u2014 align the version wherever @symbo.ls/signal is imported, then","regenerate the lockfile so exactly one version resolves.")),r},o_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[ki]};var Ei="__SMBLS_SIGNAL_ENGINE__",JA=(t,e,n)=>{let o=e||$r,r=n||(typeof globalThis<"u"?globalThis:null);if(!r)return t;let s=r[Ei];return s&&s.engine&&s.version===o?(Ti(o,r,!0),s.engine):(s||(r[Ei]={version:o,engine:t}),Ti(o,r,!1),t)},r_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Ei]};var It=JA({...Xy,...n_,VERSION:$r},$r),yn=It.createSignal,tv=It.createComputed,W=It.createEffect,Pd=It.batch,Re=It.getObserver,Mc=It.setObserver,Fr=It.untrack||(t=>{let e=It.getObserver();if(!e)return t();It.setObserver(null);try{return t()}finally{It.setObserver(e)}}),Md=It.settled||(()=>Promise.resolve()),Bd=It.countUntrackedReads||(t=>(t(),0)),oo=It.createStore,Nd=It.createScopeStore,xt=It.isStore,ev=It.getSignals,nv=It.STORE_METHOD_NAMES,ov=It.RESERVED_STORE_METHODS,$d=It.warnStateKeyShadowsMethod,rv=It.__resetStateShadowWarnings,f2=It.VERSION;var ag=/*@__PURE__*/$({},{CSS_LONGHAND_SHORTHANDS:()=>on,CSS_SHORTHAND_LONGHANDS:()=>kt,assertEmitIntegrity:()=>$x,css:()=>$e,cssCamelName:()=>iu,cssPropName:()=>Se,cssShorthandDepth:()=>Aa,cssShorthandStatesLonghand:()=>va,cssShorthandStatesThemeLonghand:()=>nu,getActiveDocument:()=>Hn,getCacheSize:()=>Hx,getEmitStats:()=>ig,injectGlobal:()=>At,keyframes:()=>La,recordRules:()=>au,replayRules:()=>cu,reset:()=>bR,resetEmitStats:()=>Nx,setActiveDocument:()=>Bx,setWasmEngine:()=>su,splitSelectorList:()=>Oo,wrapHoverRule:()=>Co});var wx=/*@__PURE__*/$({},{BARE_SEQUENCE_TOKEN_RE:()=>En,COMPOUND_CSS_KEYWORDS:()=>_s,CONFIG:()=>xs,CONFIG_MERGE_EXL:()=>re,CSS_NAMED_COLOR_HEX:()=>ia,CSS_NATIVE_COLOR_REGEX:()=>mo,CSS_UNITS:()=>vi,FACTORY:()=>Pe,LIVE_KEYS:()=>Sx,PREPARED_FORMAT:()=>Ea,STANDARD_SCHEME_QUERIES:()=>Ph,TILING_POSITION_KEYWORDS:()=>Qf,TILING_SIZE_KEYWORDS:()=>Zf,VALUE_TRANSFORMERS:()=>Kh,__resetSkinWarnings:()=>mx,activateConfig:()=>lO,aliasCaseVariants:()=>ha,animation:()=>jw,appendSVGSprite:()=>Kf,appendSvgIconsSprite:()=>Is,applyDocument:()=>Gf,applyHeadings:()=>Fh,applyMediaSequenceVars:()=>cr,applyReset:()=>qf,applySequenceGlobalVars:()=>Of,applySequenceVars:()=>xo,applySkins:()=>Yf,applySpacingSequence:()=>Pf,applyThemeRoot:()=>eu,applyTimingSequence:()=>Wf,applyTypographySequence:()=>Vf,atSchemes:()=>ur,breakpoints:()=>$w,buildSkinVarStyles:()=>Ps,changeGlobalTheme:()=>qh,changeLightness:()=>ww,checkIfBoxSize:()=>If,class:()=>Ww,color:()=>Dw,colorPairSchemes:()=>Lf,colorStringToRgbaArray:()=>Ze,compositeOverBackdrop:()=>Ss,compoundLayers:()=>ca,contrastRatio:()=>fa,convertSvgToSymbol:()=>Df,createConfig:()=>xf,createPristineConfig:()=>Rh,cssMediaVars:()=>Ch,cssVars:()=>vh,defineResolvedThemeSignal:()=>ar,defineThemeSignal:()=>ir,devices:()=>Fw,document:()=>sO,findHeadingLetter:()=>Lh,findHeadings:()=>Cf,font:()=>Ew,fontFace:()=>Cw,fontFamily:()=>Aw,fontFamilyTypes:()=>vw,forcedScheme:()=>Os,generateSequence:()=>me,generateSequencePosition:()=>tx,generateSprite:()=>Rf,generateSubSequence:()=>Af,getActiveConfig:()=>L,getColor:()=>ft,getColorShade:()=>hh,getDefaultOrFirstKey:()=>_o,getFnPrefixAndValue:()=>wo,getFontFace:()=>kw,getFontFaceEach:()=>ws,getFontFaceEachString:()=>kh,getFontFaceString:()=>yf,getFontFamily:()=>Uf,getFontFormat:()=>wh,getFontSizeByKey:()=>Hf,getMediaBorder:()=>Nf,getMediaColor:()=>Vt,getMediaTheme:()=>nn,getResolvedThemeSignal:()=>cO,getRgbTone:()=>Tn,getSafeInk:()=>Nh,getSafeInkInfo:()=>ix,getSequenceValue:()=>ks,getSequenceValueBySymbols:()=>vf,getSequenceValuePropertyPair:()=>Vn,getShadow:()=>Bf,getShapeByKey:()=>zf,getSizeValue:()=>ga,getSpacingBasedOnRatio:()=>Me,getSpacingByKey:()=>Ft,getSubratio:()=>Ef,getSubratioDifference:()=>Tf,getTheme:()=>fx,getThemeSignal:()=>aO,getTimingByKey:()=>ye,getTimingFunction:()=>Be,gradient:()=>Lw,grid:()=>zw,hexToRgb:()=>yw,hexToRgbArray:()=>fh,hexToRgba:()=>bw,hslToRgb:()=>ph,icons:()=>Mw,inForcedColors:()=>Ts,isCSSVar:()=>Pt,isDomDocument:()=>ro,isForcedColorsQuery:()=>Es,isGoogleFontsUrl:()=>ua,isHostObject:()=>so,isInertCompoundValue:()=>mh,isIntendedSystemColorWord:()=>As,isNativeColorToken:()=>bs,isPlainColor:()=>fr,isRawUnitValue:()=>Nc,isResolvedColor:()=>Qe,isScalingUnit:()=>jr,isWritableFamilyBucket:()=>s_,joinCompoundLayers:()=>la,linearChannelToSrgb:()=>_h,literalPairCompound:()=>Rs,literalSchemeMap:()=>To,media:()=>Ow,mixTwoColors:()=>mw,mixTwoRgb:()=>Sw,mixTwoRgba:()=>gh,numToLetterMap:()=>tn,oklabToLinearSrgb:()=>bh,oklabToOklch:()=>hf,oklchToGamutSafeSrgb:()=>gf,oklchToOklab:()=>Sh,opacify:()=>aa,parkHostObject:()=>Vo,parseColorToken:()=>Xt,popConfig:()=>dt,pushConfig:()=>ht,quietColorProbe:()=>vs,quietSequenceProbe:()=>So,relativeLuminance:()=>ys,reset:()=>iO,resolveBorderValue:()=>se,resolveColorRgb:()=>Cs,resolveColorsInGradient:()=>pr,resolveCompoundWords:()=>yo,resolveConfigDocument:()=>Ai,resolveFileUrl:()=>Je,resolveShadowNonColorWord:()=>ya,resolveShadowValue:()=>Ds,returnSubThemeOrDefault:()=>xw,reviveConfig:()=>Zh,rgbArrayToHex:()=>uh,rgbToHSL:()=>dh,rgbToHex:()=>_w,runThroughMedia:()=>$h,schemeGuardSelector:()=>Bh,schemeMediaQuery:()=>Mh,scratchDefaultConfig:()=>pa,scratchSystem:()=>wa,scratchUtils:()=>lr,semanticIcons:()=>Bw,sequence:()=>bo,serializeConfig:()=>Xh,set:()=>Bs,setActiveConfig:()=>Oh,setAdaptiveSchemeVar:()=>dr,setColor:()=>ko,setCustomFont:()=>mf,setCustomFontMedia:()=>sr,setEach:()=>tu,setFont:()=>jf,setFontFamily:()=>ba,setFontImport:()=>da,setGradient:()=>ma,setInCustomFontMedia:()=>xh,setMediaTheme:()=>_a,setSVG:()=>Sa,setScalingVar:()=>kf,setShadow:()=>hr,setSubScalingVar:()=>Dh,setSvgIcon:()=>Ls,setTheme:()=>$f,setValue:()=>bx,setVariables:()=>ex,shadow:()=>Pw,shape:()=>qw,sizes:()=>Kw,skins:()=>Yw,spacing:()=>Rw,splitCompoundWords:()=>df,splitSpacedValue:()=>Mf,splitTopLevelCommas:()=>kn,splitTopLevelSpaces:()=>lt,splitTransition:()=>Gh,srgbChannelToLinear:()=>yh,srgbToOklab:()=>pf,svg:()=>Uw,svgData:()=>Th,svg_data:()=>Vw,templates:()=>Hw,theme:()=>Iw,timing:()=>Nw,toCamel:()=>wf,toLinearChannel:()=>sa,transformBackgroundImage:()=>Hh,transformBorder:()=>jh,transformBorderRadius:()=>Eo,transformBoxShadow:()=>Xf,transformDuration:()=>Jf,transformGridTemplate:()=>Wh,transformShadow:()=>Vh,transformSize:()=>Lt,transformSizeRatio:()=>F,transformTextStroke:()=>Uh,transformTilingValue:()=>Ms,transformTransition:()=>_x,transfromGap:()=>zh,typography:()=>_f,unit:()=>Tw,vars:()=>Gw,viewTransition:()=>Xw});var lr=/*@__PURE__*/$({},{BARE_SEQUENCE_TOKEN_RE:()=>En,COMPOUND_CSS_KEYWORDS:()=>_s,CSS_NAMED_COLOR_HEX:()=>ia,CSS_NATIVE_COLOR_REGEX:()=>mo,CSS_UNITS:()=>vi,applyMediaSequenceVars:()=>cr,applySequenceGlobalVars:()=>Of,applySequenceVars:()=>xo,changeLightness:()=>ww,colorStringToRgbaArray:()=>Ze,compositeOverBackdrop:()=>Ss,compoundLayers:()=>ca,contrastRatio:()=>fa,convertSvgToSymbol:()=>Df,findHeadingLetter:()=>Lh,findHeadings:()=>Cf,generateSequence:()=>me,generateSequencePosition:()=>tx,generateSprite:()=>Rf,generateSubSequence:()=>Af,getColorShade:()=>hh,getDefaultOrFirstKey:()=>_o,getFnPrefixAndValue:()=>wo,getFontFace:()=>kw,getFontFaceEach:()=>ws,getFontFaceEachString:()=>kh,getFontFaceString:()=>yf,getFontFormat:()=>wh,getRgbTone:()=>Tn,getSequenceValue:()=>ks,getSequenceValueBySymbols:()=>vf,getSequenceValuePropertyPair:()=>Vn,getSizeValue:()=>ga,getSubratio:()=>Ef,getSubratioDifference:()=>Tf,hexToRgb:()=>yw,hexToRgbArray:()=>fh,hexToRgba:()=>bw,hslToRgb:()=>ph,isCSSVar:()=>Pt,isDomDocument:()=>ro,isGoogleFontsUrl:()=>ua,isHostObject:()=>so,isInertCompoundValue:()=>mh,isNativeColorToken:()=>bs,isRawUnitValue:()=>Nc,isResolvedColor:()=>Qe,isScalingUnit:()=>jr,isWritableFamilyBucket:()=>s_,joinCompoundLayers:()=>la,linearChannelToSrgb:()=>_h,mixTwoColors:()=>mw,mixTwoRgb:()=>Sw,mixTwoRgba:()=>gh,numToLetterMap:()=>tn,oklabToLinearSrgb:()=>bh,oklabToOklch:()=>hf,oklchToGamutSafeSrgb:()=>gf,oklchToOklab:()=>Sh,opacify:()=>aa,parkHostObject:()=>Vo,parseColorToken:()=>Xt,quietSequenceProbe:()=>So,relativeLuminance:()=>ys,resolveCompoundWords:()=>yo,resolveConfigDocument:()=>Ai,resolveFileUrl:()=>Je,returnSubThemeOrDefault:()=>xw,rgbArrayToHex:()=>uh,rgbToHSL:()=>dh,rgbToHex:()=>_w,setCustomFont:()=>mf,setCustomFontMedia:()=>sr,setFontImport:()=>da,setInCustomFontMedia:()=>xh,setScalingVar:()=>kf,setSubScalingVar:()=>Dh,setVariables:()=>ex,splitCompoundWords:()=>df,splitTopLevelCommas:()=>kn,splitTopLevelSpaces:()=>lt,srgbChannelToLinear:()=>yh,srgbToOklab:()=>pf,toLinearChannel:()=>sa});var ro=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),so=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},s_=t=>t!==null&&typeof t=="object"&&!so(t),Vo=(t,e,n)=>{if(!t)return;if(ro(n)){t.__domDocument||(t.__domDocument=n);return}let o=`__host_${e}`;t[o]||(t[o]=n)},Ai=t=>t?ro(t.__domDocument)?t.__domDocument:ro(t.document)?t.document:null:null;var jr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",vi=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"],u2=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d2=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${vi.filter(t=>t!=="auto").map(u2).join("|")})$`),Nc=t=>d2.test(String(t).trim());var ra=/*@__PURE__*/$({},{BRENDER_REGISTRY_BLOCK:()=>ef,BRENDER_REGISTRY_TREE_BLOCK:()=>nf,BRENDER_STAMP_META:()=>rh,CDN_PROVIDERS:()=>Ye,DESIGN_SYSTEM_BLOCK:()=>af,DESIGN_SYSTEM_DEFERRED:()=>sf,DESIGN_SYSTEM_LINK:()=>rf,DOMQL_EVENTS:()=>L_,DOMQ_PROPERTIES:()=>Ho,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Ri,ENV:()=>tb,HTML_TAGS:()=>Bi,LIBRARY_PACKAGES:()=>oh,LIBRARY_SCOPES_KEY:()=>fs,METHODS:()=>Wo,METHODS_EXL:()=>Gc,NODE_ENV:()=>_n,OPTIONS:()=>vl,PACKAGE_MANAGER_TO_CDN:()=>er,PARSED_DOMQ_PROPERTIES:()=>Wc,POLYGLOT_LANG_STORAGE_KEY:()=>Gp,PROPS_METHODS:()=>zo,PROTOTYPE_KEYS:()=>ao,REVIVED_MARK:()=>Qc,STATE_DATA_MERGE_EXL:()=>wp,STATE_METHODS:()=>Vr,STATE_PROPERTIES:()=>R_,SVG_TAGS:()=>kv,TYPES:()=>Fc,UNIVERSAL_RESERVED_KEYS:()=>Wp,__resetBuiltinMethodWarnings:()=>qS,addCaching:()=>gp,addContext:()=>hp,addExtend:()=>xb,addExtends:()=>Mn,addItemAfterEveryElement:()=>m_,addProtoToArray:()=>Vc,addRef:()=>up,alternateLinkKey:()=>ps,applyDependentState:()=>Fb,applyEvent:()=>$p,applyEventUpdate:()=>Fp,applyExtends:()=>Av,applyProps:()=>dl,arrayContainsOtherArray:()=>l_,arraysEqual:()=>__,arrayzeValue:()=>ms,bareLibraryKey:()=>Gl,bindLibraryGlobalScopes:()=>ql,brenderStampMeta:()=>ow,buildImgSrcset:()=>ff,buildSourcesAndImg:()=>uf,cache:()=>gS,call:()=>AS,captureSnapshot:()=>CS,checkForStateTypes:()=>Mb,checkIfInherits:()=>Sp,checkIfStringIsInArray:()=>w_,clone:()=>F_,cloneAndMergeArrayExtend:()=>rl,cloneFunction:()=>ab,collectExtendsList:()=>Ni,concatAddExtends:()=>bb,copyJavaScriptToClipboard:()=>lw,copyStringToClipboard:()=>cw,createBasedOnType:()=>fp,createElement:()=>Pb,createElementExtends:()=>Jd,createExtends:()=>il,createExtendsFromKeys:()=>$i,createExtendsStack:()=>op,createIfConditionFlag:()=>cb,createInheritedState:()=>Bb,createKey:()=>nl,createNestedObject:()=>K_,createNestedObjectByKeyPath:()=>$b,createObjectWithoutPrototype:()=>Kd,createParent:()=>dp,createPath:()=>pp,createProps:()=>pl,createPropsStack:()=>cp,createPrunedLibraryIconLoader:()=>lh,createRoot:()=>Ib,createScope:()=>Ub,createSnapshotId:()=>el,currentPathname:()=>as,customDecodeURIComponent:()=>O_,customEncodeURIComponent:()=>C_,cutArrayAfterValue:()=>h_,cutArrayBeforeValue:()=>p_,debounce:()=>ol,debounceOnContext:()=>sb,decodeBrenderRegistry:()=>of,decodeNewlines:()=>v_,deepClone:()=>ut,deepContains:()=>W_,deepDefaults:()=>Qi,deepDestringifyFunctions:()=>he,deepExtend:()=>Qd,deepMerge:()=>mt,deepMergeExtends:()=>Bn,deepStringifyFunctions:()=>Yc,defineSetter:()=>TS,designSystemBlock:()=>nw,designSystemLink:()=>ew,destringifyGlobalScope:()=>qr,detectHeightOnInit:()=>PS,detectInfiniteLoop:()=>Z_,document:()=>wt,encodeNewlines:()=>A_,error:()=>ss,escapeHtml:()=>j,escapeRegExp:()=>x_,evaluateText:()=>tr,excludeKeysFromObject:()=>J_,exec:()=>bt,exposeBagGlobalScopes:()=>Yl,extendCachedRegistry:()=>Sb,extendStackRegistry:()=>al,extractArrayExtend:()=>ll,faviconLinkKey:()=>rr,fetchLibraryData:()=>ea,fibonacciNumberByIndex:()=>MS,fileEntryUrl:()=>sh,filterArrays:()=>b_,filterArraysFast:()=>S_,finalizeExtends:()=>rp,findClosestNumber:()=>ih,findClosestNumberInFactory:()=>aw,findInheritedState:()=>bp,findKeyPosition:()=>T_,flattenExtend:()=>Fi,formatDate:()=>IS,generateHash:()=>Yd,generateHeadArrayTags:()=>na,generateKey:()=>tl,generateMetaTags:()=>sw,get:()=>SS,getCDNDirUrl:()=>Zp,getCDNUrl:()=>wn,getCapitalCaseKeys:()=>Tb,getCdnProviderFromConfig:()=>Xi,getChildStateInKey:()=>_p,getChildren:()=>kS,getContext:()=>Bl,getCookie:()=>pb,getDB:()=>Ul,getEmotionStylesheet:()=>gw,getExtendsInElement:()=>kb,getExtendsStack:()=>sl,getExtendsStackRegistry:()=>Zd,getFrequencyInArray:()=>f_,getFunctionSource:()=>De,getHashedExtend:()=>cl,getImportMapScript:()=>LS,getInObjectByPath:()=>X_,getLocalStorage:()=>gb,getNev:()=>rb,getPageMetadata:()=>iw,getParentStateInKey:()=>yp,getPath:()=>Rl,getQuery:()=>Vl,getRef:()=>xS,getRoot:()=>Il,getRootContext:()=>Ml,getRootData:()=>Pl,getRootState:()=>Ll,getRootStateInKey:()=>mp,getSpreadChildren:()=>Eb,global:()=>i_,hasFunction:()=>ee,hasHandlerPlugin:()=>Pi,hasOwnProperty:()=>V_,hashContent:()=>xn,inheritChildExtends:()=>ep,inheritChildPropsExtends:()=>tp,inheritParentProps:()=>hl,inheritRecursiveChildExtends:()=>np,initProps:()=>Db,insertAfterImportMap:()=>rw,installPrunedLibraryIconLoader:()=>lf,is:()=>pe,isArray:()=>P,isBoolean:()=>Fd,isBuiltinElementMethod:()=>D_,isContextComponent:()=>Ab,isCyclic:()=>Q_,isDOMNode:()=>ue,isDate:()=>Ud,isDefined:()=>Nt,isDevelopment:()=>Ko,isEmpty:()=>Wd,isEmptyObject:()=>H_,isEqualDeep:()=>Gd,isFailedRevival:()=>Gr,isFunction:()=>I,isHtmlElement:()=>$c,isLazyFunction:()=>j_,isLocal:()=>ob,isLoudDevRuntime:()=>J,isMalformedDependency:()=>cs,isMethod:()=>vS,isMobile:()=>ub,isNode:()=>io,isNot:()=>c_,isNotProduction:()=>co,isNull:()=>jd,isNumber:()=>de,isObject:()=>k,isObjectLike:()=>U,isPhoto:()=>BS,isPolyglotRetranslatableKey:()=>_l,isPolyglotWritableKey:()=>Xr,isProduction:()=>Go,isProtectedElementMethod:()=>Hr,isRevived:()=>Kr,isStaging:()=>nb,isState:()=>Nb,isString:()=>E,isStringFunction:()=>Ii,isStringTag:()=>Zc,isTest:()=>qd,isTesting:()=>eb,isUndefined:()=>Gt,isUniversallyReservedKey:()=>OS,isUnresolvableDependency:()=>nr,isValidDependencyMap:()=>ls,isValidHtmlTag:()=>yb,isWrappedLibrary:()=>Ie,joinArrays:()=>Ci,jointStacks:()=>wb,jsonForScript:()=>ts,keys:()=>Hp,libraryIconPruneReplacer:()=>hw,libraryIdentifier:()=>ah,libraryPackageSpecs:()=>Ji,librarySpecsFor:()=>nh,loadCssFile:()=>jS,loadJavascript:()=>US,loadJavascriptFile:()=>NS,loadJavascriptFileEmbedSync:()=>FS,loadJavascriptFileSync:()=>$S,loadRemoteCSS:()=>VS,loadRemoteScript:()=>Zi,log:()=>ES,logGroupIf:()=>fb,logIf:()=>lb,lookdown:()=>_S,lookdownAll:()=>bS,lookup:()=>yS,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>z_,map:()=>$_,mapStringsWithContextComponents:()=>fl,markPolyglotSeeded:()=>$n,markRevived:()=>Li,markTextNotReady:()=>Ki,matchesComponentNaming:()=>Nn,memoize:()=>ib,merge:()=>Ot,mergeSharedLibraries:()=>Xl,mergeSharedLibraryDesignSystems:()=>Zl,mergeSharedLibraryTranslations:()=>Ql,mergeStateData:()=>Yo,nextElement:()=>$l,normalizeIgnoreList:()=>Kl,normalizeLibraryKey:()=>us,objectToString:()=>Xc,objectizeStringProperty:()=>ul,overwrite:()=>Jc,overwriteDeep:()=>ne,overwriteShallow:()=>Yr,overwriteState:()=>jb,parse:()=>zp,parseDeep:()=>Cl,payloadHasComputedIconName:()=>ch,pickStartLang:()=>Yp,pickupElementFromProps:()=>ip,pickupPropsFromElement:()=>sp,planLibraryIconPrune:()=>pw,polyglotAddressLang:()=>Kp,polyglotFallbackLang:()=>ho,polyglotLangStorageKey:()=>Gi,polyglotLanguages:()=>Le,polyglotSeededKeys:()=>Xo,polyglotStartLang:()=>is,polyglotStartRule:()=>qp,polyglotStartupScript:()=>RS,previousElement:()=>Fl,promoteActiveRootState:()=>zi,propExists:()=>Ob,propertizeElement:()=>ap,propertizeUpdate:()=>Cb,readBrenderStamp:()=>es,readJsonDataBlock:()=>jn,remove:()=>AC,removeChars:()=>fw,removeCookie:()=>hb,removeDuplicateProps:()=>ml,removeDuplicatesInArray:()=>Oi,removeFromArray:()=>u_,removeFromObject:()=>G_,removeNestedKeyByPath:()=>q_,removeValueFromArray:()=>Uc,removeValueFromArrayAll:()=>g_,reorderArrayByValues:()=>y_,repairLegacyArrowScopePreamble:()=>Kc,replaceLiteralsWithObjectFields:()=>Kt,replaceOctalEscapeSequences:()=>E_,resolveAsset:()=>ge,resolveFileReferences:()=>gs,resolveHandler:()=>Mi,resolveSharedLibraries:()=>Jl,returnValueAsText:()=>lp,runPluginHook:()=>qo,scopeElementParam:()=>Vd,scopeReceiverExpression:()=>B_,self:()=>a_,setActiveRootState:()=>Dl,setCookie:()=>db,setHashedExtend:()=>Xd,setInObjectByPath:()=>Y_,setLocalStorage:()=>mb,setNodeStyles:()=>Vp,setProps:()=>wS,setPropsPrototype:()=>gl,sharedLibrary:()=>KS,sharedLibraryFiles:()=>ds,splitPackageSpecifier:()=>Hl,spotByPath:()=>Ol,srcsetFor:()=>oa,stringIncludesAny:()=>zc,stringToObject:()=>U_,stripVersionRangePrefix:()=>zl,swapItemsInArray:()=>d_,syncProps:()=>yl,themeColorKey:()=>hs,toCamelCase:()=>go,toDashCase:()=>cf,toDescriptionCase:()=>dw,toPriorityOrder:()=>Ge,toTitleCase:()=>uw,toggleFullscreen:()=>DS,triggerEventOn:()=>po,triggerEventOnUpdate:()=>hS,trimStringFromSymbols:()=>k_,unstackArrayOfObjects:()=>jc,update:()=>Rb,updateProps:()=>Lb,variables:()=>jl,verbose:()=>Wi,warn:()=>Nl,warnLibraryAliasCollision:()=>ta,window:()=>R});var i_=globalThis,a_=globalThis,R=globalThis,wt=R.document;var io=t=>(typeof Node=="object"?t instanceof R.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,$c=t=>(typeof HTMLElement=="object"?t instanceof R.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,ue=t=>t===null||typeof t!="object"?!1:typeof R<"u"&&(R.Node&&t instanceof R.Node||R.Window&&t instanceof R.Window||t===R||wt!==void 0&&t===wt);var k=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,E=t=>typeof t=="string",de=t=>typeof t=="number",I=t=>typeof t=="function",Fd=t=>t===!0||t===!1,jd=t=>t===null,P=t=>Array.isArray(t),Ud=t=>t instanceof Date,U=t=>t===null?!1:typeof t=="object",Nt=t=>t!==void 0,Gt=t=>t===void 0,Fc={boolean:Fd,array:P,object:k,string:E,date:Ud,number:de,null:jd,function:I,objectLike:U,node:io,htmlElement:$c,defined:Nt},pe=t=>(...e)=>e.some(n=>Fc[n](t)),c_=t=>(...e)=>!e.some(n=>Fc[n](t));var l_=(t,e)=>e.every(n=>t.includes(n)),f_=(t,e)=>{let n=0;for(let o=0;o<t.length;o++)t[o]===e&&n++;return n},u_=(t,e)=>{if(E(e)&&(e=parseInt(e)),de(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},d_=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},Ci=(...t)=>[].concat(...t),jc=(t,e=[])=>t.reduce((n,o)=>mt(n,ut(o,{exclude:e}),e),{}),p_=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},h_=(t,e)=>{if(!P(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},Uc=(t,e)=>{let n=t.indexOf(e);if(n>-1){let o=[...t];return o.splice(n,1),o}return t},g_=(t,e)=>t.filter(n=>n!==e),m_=(t,e)=>{let n=[];for(let o=0;o<t.length;o++)n.push(t[o]),o<t.length-1&&n.push(e);return n},y_=(t,e,n)=>{let o=[...t],r=o.indexOf(e),s=o.indexOf(n);if(r!==-1&&s!==-1){let i=o.splice(r,1)[0],a=s<r?s:s+1;o.splice(a,0,i)}return o},__=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},b_=(t,e)=>t.filter(n=>!e.includes(n)),S_=(t,e)=>{let n=new Set(e);return t.filter(o=>!n.has(o))},w_=(t,e)=>{if(!t)return 0;let n=0;for(let o=0;o<e.length;o++)t.includes(e[o])&&n++;return n},Oi=t=>P(t)?[...new Set(t)]:t,Vc=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})};var x_=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),zc=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},k_=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},p2={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Hc=(t,e)=>e.split(".").reduce((n,o)=>n?.[o],t),h2=(t,e)=>{if(!t||!t.__ref)return!0;let n=t;for(;n;){if(n.allowRuntimeTemplates===!0)return!0;let o=n.__ref&&n.__ref.__authoredTemplates;if(o&&o.has(e))return!0;n=n.parent}return!1};function Kt(t,e,n={}){let{bracketsLength:o=2,authored:r=!1}=n,s=o===3?"{{{":"{{";if(!t.includes(s)||r!==!0&&!h2(this,t))return t;let i=p2[o],a=e||this.state||{},c=this;return t.replace(i,(l,f,u,d)=>{let p=u.trim();if(d){let g=c?.context,h=g?.functions?.[d]||g?.utils?.[d]||g?.methods?.[d]||g?.snippets?.[d]||c?.[d];if(h&&typeof h=="function")try{return String(h.call(c,p)??"")}catch{return""}return""}if(f){let g=(f.match(/\.\.\//g)||[]).length,h=a;for(let y=0;y<g;y++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=Hc(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=Hc(a,p);if(g!=null&&typeof g!="object")return String(g);let h=c?.context?.polyglot;if(h?.translations){let m=a?.root?.lang||a?.lang||c?.context?.state?.lang||h.defaultLang||"en",y=h.translations[m];if(y){let T=Hc(y,p);if(T!=null&&typeof T!="object")return String(T);for(let v in y){let _=y[v];if(_&&typeof _=="object"&&!Array.isArray(_)){let b=Hc(_,p);if(b!=null&&typeof b!="object")return String(b)}}}let x=Hc(h.translations,p);if(x!=null&&typeof x!="object")return String(x)}return""}})}var Ur=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,T_=(t,e)=>{let n=t.split(`
2
+ `),o=-1,r=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<n.length;f++)if(a.test(n[f])&&!l){if(l=!0,o=f+1,s=n[f].indexOf(e)+1,n[f].includes("{}")){r=o,i=n[f].indexOf("{}")+3;break}let u=n[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{r=f+1,i=n[f].length+1;break}}else if(l&&(c+=(n[f].match(/{/g)||[]).length,c+=(n[f].match(/\[/g)||[]).length,c-=(n[f].match(/}/g)||[]).length,c-=(n[f].match(/]/g)||[]).length,c===0)){r=f+1,i=n[f].lastIndexOf("}")!==-1?n[f].lastIndexOf("}")+2:n[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:o,endLineNumber:r}},g2=/\\([0-7]{1,3})/g,E_=t=>t.replace(g2,(e,n)=>String.fromCharCode(parseInt(n,8))),A_=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),v_=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),m2=/[^a-zA-Z0-9\s]/g,C_=t=>t.replace(m2,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),O_=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)));var Ho=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),Wc=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),R_=["ref","parent","__element","__depends","__ref","__children","root"],Vr=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),zo=new Set(["update","__element"]),Wo=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","whenConnected","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),D_=t=>Wo.has(t),Ri=new Set(["log","warn","error","verbose"]),Hr=t=>Wo.has(t)&&!Ri.has(t),ao=new Set(["__proto__","constructor","prototype"]),Gc=new Set(["node","context","extends","__element","__ref",...Wo,...Vr,...zo]),L_=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"]);var P_=["$R?.scope ?? $R?.context?.globalScope ?? {}","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { try { Object.setPrototypeOf(s, g) } catch (_) {} } return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? {}; })()","(() => { const r = $R; const s = r?.scope; const g = r?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? (r && typeof r === 'object' && r !== globalThis ? r : {}); })()"],M_=(t,e)=>t.split("$R").join(e),y2=P_.map(t=>[M_(t,"this"),t]),B_=t=>M_(P_[P_.length-1],t),I_="const __scope = ",_2=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,b2=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,S2=/^[A-Za-z_$][\w$]*$/,Di=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),Vd=(t,e)=>{if(t.length>=2&&Di(t[0],"el"))return t[0];if(t.length>=2&&Di(t[1],"el"))return t[1];if(t.length>=1&&Di(t[0],"el")||Di(t[0],"element")||Di(t[0],"node"))return t[0];if(typeof e=="function"){let n=e();if(n&&t.includes(n))return n}return t.find(n=>Di(n,"element"))||null},Kc=t=>{if(typeof t!="string"||t.indexOf(I_)===-1||t.indexOf("this")===-1)return t;let e=b2.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(I_,n))return t;n+=I_.length;let o=_2.exec(t.slice(n,n+400));o&&(n+=o[0].length);let r=y2.find(([l])=>t.startsWith(l,n));if(!r)return t;let s=n+r[0].length;if(t[s]!==(o?")":";"))return t;let a=(e[1]!==void 0?e[1]:e[2]).split(",").map(l=>l.split("=")[0].trim()).filter(Boolean);if(a.some(l=>!S2.test(l)))return t;let c=Vd(a);return c?t.slice(0,n)+M_(r[1],c)+t.slice(s):t};var w2=Symbol.for("smbls.serverUtils"),Pn=(t,e)=>{let n=globalThis[w2];return typeof n!="function"?Promise.reject(new Error(`[smbls] ${t} is server-only in this build and no smbls runtime registered its loader`)):n().then(o=>o[t](...e))};var sv="production",Wr=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,bt=(t,e,n,o)=>{if(I(t))return e?typeof t.call!="function"?t:t.call(e,e,n||e.state,o||e.context):void 0;if(t!=null&&e?.context?.plugins&&(P(t)||k(t)&&!ue(t))){let r=e.context.plugins;for(let s of r)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return bt(i,e,n,o)}}return t},$_=(t,e,n)=>{for(let o in e)t[o]=bt(e[o],n)},Ot=(t,e,n=[])=>{let o=n instanceof Set;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Wr(r)||(o?n.has(r):n.includes(r))||t[r]===void 0&&(t[r]=e[r]));return t},mt=(t,e,n=Gc)=>pv(t,e,n,null),pv=(t,e,n,o)=>{if(t===e)return t;if(o){for(let s=0;s<o.length;s+=2)if(o[s]===t&&o[s+1]===e)return t}let r=n instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Wr(s)||s==="constructor"||s==="prototype"||(r?n.has(s):n.includes(s)))continue;let i=t[s],a=e[s];if(U(i)&&U(a)){let c=o||[];c.push(t,e),pv(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},F_=(t,e=[])=>{let n=e instanceof Set,o={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(Wr(r)||(n?e.has(r):e.includes(r))||(o[r]=t[r]));return o},ut=(t,e={})=>{let{exclude:n=[],cleanUndefined:o=!1,cleanNull:r=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!U(t)||ue(t))return t;if(s.has(t))return s.get(t);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),l=P(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let p in u){if(!Object.prototype.hasOwnProperty.call(u,p)||Wr(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(o&&g===void 0)&&!(r&&g===null)){if(ue(g)){d[p]=g;continue}if(i&&p==="extends"&&P(g)){d[p]=jc(g,n);continue}if(I(g)){d[p]=g;continue}if(U(g))if(s.has(g))d[p]=s.get(g);else{let h=P(g)?[]:{};s.set(g,h),d[p]=h,f.push([g,h])}else d[p]=g}}}return l},Yc=(t,e={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Pn("deepStringifyFunctions",[t,e]);(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let n in t){let o=t[n];if(I(o))e[n]=o.toString();else if(k(o))e[n]={},Yc(o,e[n]);else if(P(o)){let r=e[n]=[];for(let s=0;s<o.length;s++){let i=o[s];k(i)?(r[s]={},Yc(i,r[s])):I(i)?r[s]=i.toString():r[s]=i}}else e[n]=o}return e},x2=/^[A-Za-z_$][A-Za-z0-9_$]*$/,k2=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,iv=t=>{let e=String(t);return zc(e,[`
4
+ `,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},Xc=(t={},e=0)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Pn("objectToString",[t,e]);if(t===null||typeof t!="object"||t instanceof RegExp)return String(t);let n=!1;for(let s in t){n=!0;break}if(!n)return"{}";let o=" ".repeat(e),r=`{
5
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=x2.test(s)?s:k2(s);if(r+=`${o} ${a}: `,i instanceof RegExp)r+=String(i);else if(P(i)){r+=`[
6
6
  `;for(let c of i)c instanceof RegExp?r+=`${o} ${String(c)},
7
- `:U(c)&&c!==null?r+=`${o} ${Kc(c,e+2)},
8
- `:E(c)?r+=`${o} ${ZA(c)},
7
+ `:U(c)&&c!==null?r+=`${o} ${Xc(c,e+2)},
8
+ `:E(c)?r+=`${o} ${iv(c)},
9
9
  `:r+=`${o} ${c},
10
- `;r+=`${o} ]`}else U(i)?r+=Kc(i,e+1):E(i)?r+=ZA(i):r+=i;r+=`,
11
- `}return r+=`${o}}`,r},p2=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/,/^(?:\*\s*)?[a-zA-Z_$][\w$]*\s*\((?:[^()]|\([^()]*\))*\)\s*\{[\s\S]*\}$/],h2=/^["[{]/,g2=/^(export|import)\s/,te=t=>{if(!t)return!1;let e=t.trim();if(e===""||e==="{}"||e==="[]")return!1;let n=e.includes("=>");if(!n&&e.charCodeAt(0)!==40&&!e.startsWith("function")&&!e.startsWith("async")&&!(e.charCodeAt(e.length-1)===125&&e.includes("("))||g2.test(e)||!p2.some(s=>s.test(e)))return!1;let r=e.charCodeAt(0);return!(r===123&&!n||r===91||h2.test(e)&&!n)},sv=t=>(0,eval)(t),m2=(t,e)=>{let n=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!n)return null;let o=n[0].length,r=[],s=o,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let u=t[s];if(u==="/"&&t[s+1]==="/"){let d=t.indexOf(`
10
+ `;r+=`${o} ]`}else U(i)?r+=Xc(i,e+1):E(i)?r+=iv(i):r+=i;r+=`,
11
+ `}return r+=`${o}}`,r},T2=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/,/^(?:\*\s*)?[a-zA-Z_$][\w$]*\s*\((?:[^()]|\([^()]*\))*\)\s*\{[\s\S]*\}$/],E2=/^["[{]/,A2=/^(export|import)\s/,ee=t=>{if(!t)return!1;let e=t.trim();if(e===""||e==="{}"||e==="[]")return!1;let n=e.includes("=>");if(!n&&e.charCodeAt(0)!==40&&!e.startsWith("function")&&!e.startsWith("async")&&!(e.charCodeAt(e.length-1)===125&&e.includes("("))||A2.test(e)||!T2.some(s=>s.test(e)))return!1;let r=e.charCodeAt(0);return!(r===123&&!n||r===91||E2.test(e)&&!n)},hv=t=>(0,eval)(t),v2=(t,e)=>{let n=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!n)return null;let o=n[0].length,r=[],s=o,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let u=t[s];if(u==="/"&&t[s+1]==="/"){let d=t.indexOf(`
12
12
  `,s);s=d===-1?c:d;continue}if(u==="/"&&t[s+1]==="*"){let d=t.indexOf("*/",s+2);s=d===-1?c:d+2;continue}if(u==='"'||u==="'"||u==="`"){let d=u;for(s++;s<c;){if(t[s]==="\\"){s+=2;continue}if(t[s]===d){s++;break}if(d==="`"&&t[s]==="$"&&t[s+1]==="{"){s+=2;let p=1;for(;s<c&&p>0;)t[s]==="{"?p++:t[s]==="}"&&p--,s++;continue}s++}continue}if(u==="{"){i++,s++;continue}if(u==="}"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let d=s,p=0,g=s;for(;g<c;){let h=t[g];if(h==='"'||h==="'"||h==="`"){let m=h;for(g++;g<c;){if(t[g]==="\\"){g+=2;continue}if(t[g]===m){g++;break}g++}continue}if(h==="("||h==="["||h==="{"){p++,g++;continue}if(h===")"||h==="]"||h==="}"){if(p===0)break;p--,g++;continue}if(p===0&&(h===";"||h===`
13
- `)){g++;break}g++}r.push([d,g]),s=g;continue}s++}if(!r.length)return null;let f=t;for(let u=r.length-1;u>=0;u--)f=f.slice(0,r[u][0])+f.slice(r[u][1]);return f},Fd=(t,e,n,o)=>{let r=String(t).trimStart();if(/^(export|import)\s/.test(r))return t;t=zc(t);try{return n.window.eval(`(${t})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(t).trim();if(/^function[\s(]/.test(f))try{l=n.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let p=m2(f,u);if(!p||p===f)break;f=p;try{l=n.window.eval("("+f+")");break}catch(g){let h=/Identifier '([^']+)' has already been declared/.exec(g&&g.message||String(g));if(!h||h[1]!==u)break}}}if(!l&&/Unexpected (token '\{'|identifier)/.test(i))try{let f=n.window.eval("({"+t+"})");if(f&&typeof f=="object"){let u=Object.keys(f);u.length===1&&typeof f[u[0]]=="function"&&(l=f[u[0]])}}catch{}return l||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 `+(o?"revived lazily, so its source compiled on this first use; it acts as the string it replaces (a call returns the source text, el.call treats it as not callable). Reason: ":"value will be left as a string. Reason: ")+i+`.
14
- First 200 chars of source: `+String(t).slice(0,200)),t)}},iv=1,D_=2,Vr=new WeakMap,y2=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,_2=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,b2=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,S2=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,w2=new Set(["if","for","while","switch","catch","with","do","return","typeof","void","delete","new","in","of","instanceof","function","class","const","let","var","await","yield","import","export","try","else","throw","case","default","break","continue","debugger","finally","super","this","null","true","false","async","get","set","static"]),QA=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,x2=(t,e,n)=>{let o=t.indexOf(e,n);for(;o!==-1;){let r=o+e.length;if((o===0||!QA(t.charCodeAt(o-1)))&&(r>=t.length||!QA(t.charCodeAt(r))))return!0;o=t.indexOf(e,r)}return!1},JA=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},k2=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let o=y2.exec(e);if(o){if(o[2]||JA(e)!==125)return null;let r=o[3]||"";return r&&x2(e,r,o[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:r,kind:o[1]?D_:iv,async:!!o[1],fn:void 0}}return o=_2.exec(e)||b2.exec(e),o?{src:t,name:"",kind:D_,async:!!o[1],fn:void 0}:(o=S2.exec(e),o&&!w2.has(o[2])&&JA(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:o[2],kind:D_,async:!!o[1],fn:void 0}:null)},tv=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,jd=t=>{let e=Fd(t.src,tv(t),t.opts,!0),n=null;return typeof e=="function"?n=e:(t.value=e,typeof e!="string"&&typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${tv(t)} did not evaluate to a function \u2014 the lazily revived function returns that value.
15
- First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},T2=(t,e,n)=>Reflect.construct(t,e,n);function E2(){let t=Vr.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var A2={length:{get(){let t=Vr.get(this);if(!t)return 0;let e=t.fn===void 0?jd(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=Vr.get(this);return t?t.name:""},configurable:!0},toString:{value:E2,writable:!0,configurable:!0}},v2=Object.getPrototypeOf(async function(){}),C2=t=>{let e;return t.kind===iv?e=function(){let n=t.fn===void 0?jd(t):t.fn;return n===null?t.value:new.target?T2(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?jd(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,Vr.set(e,t),Object.defineProperties(e,A2),t.async&&Object.setPrototypeOf(e,v2),e},ev=(t,e,n,o)=>{let r=k2(t);return r?(r.key=e,r.index=n,r.opts=o,C2(r)):Fd(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,o)},P_=t=>typeof t=="function"&&Vr.has(t),Oe=t=>{let e=Vr.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},zr=t=>{let e=typeof t=="function"?Vr.get(t):void 0;return e?(e.fn===void 0?jd(e):e.fn)===null:!1},O2=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),R2={window:{eval:sv}},de=(t,e={},n=R2)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:sv}});let o=n.lazy===!0,r=n.lazy==="context",s=(a,c,l)=>o||r&&(a===t?O2.has(c):l),i=[[t,e,o]];for(;i.length;){let[a,c,l]=i.pop();for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;let u=a[f];if(E(u))te(u)?c[f]=l?ev(u,f,-1,n):Fd(u,`"${f}"`,n):c[f]=u;else if(P(u)){let d=c[f]=[],p=s(a,f,l);for(let g=0;g<u.length;g++){let h=u[g];if(E(h))d.push(te(h)?p?ev(h,f,g,n):Fd(h,`array index ${g} (prop "${f}")`,n):h);else if(k(h)){let m=ov(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(k(u)){let d=ov(u);if(d!==null){c[f]=d;continue}let p=c[f]&&typeof c[f]=="object"&&!P(c[f])?c[f]:c[f]={};i.push([u,p,s(a,f,l)])}else c[f]=u}}return Oi(e)},av="Set",cv="Map",lv="RegExp",fv="WeakMap",uv="WeakSet",dv="String",pv=t=>{if(!t||typeof t!="object"||t.__type!==dv||!E(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},qc=pv,Yc=Symbol.for("smbls.revived"),Oi=t=>{if(t&&typeof t=="object")try{t[Yc]=!0}catch{}return t},Wr=t=>!!(t&&typeof t=="object"&&t[Yc]===!0),nv=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},Wc=(t,e)=>{if(!t||typeof t!="object")return t;if(pv(t))return t.value;let n=s=>Wc(s,e||(e=new WeakMap));if(t.__type===av&&P(t.values))return new Set(t.values.map(n));if(t.__type===cv&&P(t.entries))return new Map(t.entries.map(s=>P(s)?[n(s[0]),n(s[1])]:s));if(t.__type===fv&&nv(t))return new WeakMap;if(t.__type===uv&&nv(t))return new WeakSet;if(t.__type===lv&&E(t.source))try{return new RegExp(t.source,E(t.flags)?t.flags:"")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let o=!1;if(P(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=Wc(t[i],e),s[i]!==t[i]&&(o=!0);return o||e.set(t,t),o?s:t}let r={};e.set(t,r);for(let s of Object.keys(t))r[s]=Wc(t[s],e),r[s]!==t[s]&&(o=!0);return o||e.set(t,t),o?r:t},ov=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==lv&&e!==av&&e!==cv&&e!==fv&&e!==uv&&e!==dv)return null;let n=Wc(t);return n===t?null:n},Gr=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){let a=t[i];E(a)&&te(a)?n.push([i,a]):e[i]=Wc(a)}if(n.length===0)return e;let o=i=>/^[A-Za-z_$][\w$]*$/.test(i),r=n.filter(([i])=>o(i)),s=Object.keys(e).filter(o).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
13
+ `)){g++;break}g++}r.push([d,g]),s=g;continue}s++}if(!r.length)return null;let f=t;for(let u=r.length-1;u>=0;u--)f=f.slice(0,r[u][0])+f.slice(r[u][1]);return f},Hd=(t,e,n,o)=>{let r=String(t).trimStart();if(/^(export|import)\s/.test(r))return t;t=Kc(t);try{return n.window.eval(`(${t})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(t).trim();if(/^function[\s(]/.test(f))try{l=n.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let p=v2(f,u);if(!p||p===f)break;f=p;try{l=n.window.eval("("+f+")");break}catch(g){let h=/Identifier '([^']+)' has already been declared/.exec(g&&g.message||String(g));if(!h||h[1]!==u)break}}}if(!l&&/Unexpected (token '\{'|identifier)/.test(i))try{let f=n.window.eval("({"+t+"})");if(f&&typeof f=="object"){let u=Object.keys(f);u.length===1&&typeof f[u[0]]=="function"&&(l=f[u[0]])}}catch{}return l||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 `+(o?"revived lazily, so its source compiled on this first use; it acts as the string it replaces (a call returns the source text, el.call treats it as not callable). Reason: ":"value will be left as a string. Reason: ")+i+`.
14
+ First 200 chars of source: `+String(t).slice(0,200)),t)}},gv=1,N_=2,zr=new WeakMap,C2=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,O2=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,R2=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,D2=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,L2=new Set(["if","for","while","switch","catch","with","do","return","typeof","void","delete","new","in","of","instanceof","function","class","const","let","var","await","yield","import","export","try","else","throw","case","default","break","continue","debugger","finally","super","this","null","true","false","async","get","set","static"]),av=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,I2=(t,e,n)=>{let o=t.indexOf(e,n);for(;o!==-1;){let r=o+e.length;if((o===0||!av(t.charCodeAt(o-1)))&&(r>=t.length||!av(t.charCodeAt(r))))return!0;o=t.indexOf(e,r)}return!1},cv=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},P2=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let o=C2.exec(e);if(o){if(o[2]||cv(e)!==125)return null;let r=o[3]||"";return r&&I2(e,r,o[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:r,kind:o[1]?N_:gv,async:!!o[1],fn:void 0}}return o=O2.exec(e)||R2.exec(e),o?{src:t,name:"",kind:N_,async:!!o[1],fn:void 0}:(o=D2.exec(e),o&&!L2.has(o[2])&&cv(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:o[2],kind:N_,async:!!o[1],fn:void 0}:null)},lv=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,zd=t=>{let e=Hd(t.src,lv(t),t.opts,!0),n=null;return typeof e=="function"?n=e:(t.value=e,typeof e!="string"&&typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${lv(t)} did not evaluate to a function \u2014 the lazily revived function returns that value.
15
+ First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},M2=(t,e,n)=>Reflect.construct(t,e,n);function B2(){let t=zr.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var N2={length:{get(){let t=zr.get(this);if(!t)return 0;let e=t.fn===void 0?zd(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=zr.get(this);return t?t.name:""},configurable:!0},toString:{value:B2,writable:!0,configurable:!0}},$2=Object.getPrototypeOf(async function(){}),F2=t=>{let e;return t.kind===gv?e=function(){let n=t.fn===void 0?zd(t):t.fn;return n===null?t.value:new.target?M2(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?zd(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,zr.set(e,t),Object.defineProperties(e,N2),t.async&&Object.setPrototypeOf(e,$2),e},fv=(t,e,n,o)=>{let r=P2(t);return r?(r.key=e,r.index=n,r.opts=o,F2(r)):Hd(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,o)},j_=t=>typeof t=="function"&&zr.has(t),De=t=>{let e=zr.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},Gr=t=>{let e=typeof t=="function"?zr.get(t):void 0;return e?(e.fn===void 0?zd(e):e.fn)===null:!1},j2=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),U2={window:{eval:hv}},he=(t,e={},n=U2)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:hv}});let o=n.lazy===!0,r=n.lazy==="context",s=(a,c,l)=>o||r&&(a===t?j2.has(c):l),i=[[t,e,o]];for(;i.length;){let[a,c,l]=i.pop();for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f)||ao.has(f))continue;let u=a[f];if(E(u))ee(u)?c[f]=l?fv(u,f,-1,n):Hd(u,`"${f}"`,n):c[f]=u;else if(P(u)){let d=c[f]=[],p=s(a,f,l);for(let g=0;g<u.length;g++){let h=u[g];if(E(h))d.push(ee(h)?p?fv(h,f,g,n):Hd(h,`array index ${g} (prop "${f}")`,n):h);else if(k(h)){let m=dv(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(k(u)){let d=dv(u);if(d!==null){c[f]=d;continue}let p=c[f]&&typeof c[f]=="object"&&!P(c[f])?c[f]:c[f]={};i.push([u,p,s(a,f,l)])}else c[f]=u}}return Li(e)},mv="Set",yv="Map",_v="RegExp",bv="WeakMap",Sv="WeakSet",wv="String",xv=t=>{if(!t||typeof t!="object"||t.__type!==wv||!E(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},Zc=xv,Qc=Symbol.for("smbls.revived"),Li=t=>{if(t&&typeof t=="object")try{t[Qc]=!0}catch{}return t},Kr=t=>!!(t&&typeof t=="object"&&t[Qc]===!0),uv=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},qc=(t,e)=>{if(!t||typeof t!="object")return t;if(xv(t))return t.value;let n=s=>qc(s,e||(e=new WeakMap));if(t.__type===mv&&P(t.values))return new Set(t.values.map(n));if(t.__type===yv&&P(t.entries))return new Map(t.entries.map(s=>P(s)?[n(s[0]),n(s[1])]:s));if(t.__type===bv&&uv(t))return new WeakMap;if(t.__type===Sv&&uv(t))return new WeakSet;if(t.__type===_v&&E(t.source))try{return new RegExp(t.source,E(t.flags)?t.flags:"")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let o=!1;if(P(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=qc(t[i],e),s[i]!==t[i]&&(o=!0);return o||e.set(t,t),o?s:t}let r={};e.set(t,r);for(let s of Object.keys(t)){if(ao.has(s)){o=!0;continue}r[s]=qc(t[s],e),r[s]!==t[s]&&(o=!0)}return o||e.set(t,t),o?r:t},dv=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==_v&&e!==mv&&e!==yv&&e!==bv&&e!==Sv&&e!==wv)return null;let n=qc(t);return n===t?null:n},qr=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){if(ao.has(i))continue;let a=t[i];E(a)&&ee(a)?n.push([i,a]):e[i]=qc(a)}if(n.length===0)return e;let o=i=>/^[A-Za-z_$][\w$]*$/.test(i),r=n.filter(([i])=>o(i)),s=Object.keys(e).filter(o).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
16
16
  `);try{let i=r.map(([l,f])=>`var ${l} = (${f});`).join(`
17
17
  `),a="{ "+r.map(([l])=>`${JSON.stringify(l)}: ${l}`).join(", ")+" }",c=R.eval(`(function(__gs__) { ${s}
18
18
  ${i}
19
19
  return ${a}; })`)(e);Object.assign(e,c)}catch{for(let[a,c]of r)try{let l=Object.keys(e).filter(o).map(f=>`var ${f} = __gs__[${JSON.stringify(f)}];`).join(`
20
20
  `);e[a]=R.eval(`(function(__gs__) { ${l}
21
- return (${c}); })`)(e)}catch{try{e[a]=R.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!o(i))try{e[i]=R.eval(`(${a})`)}catch{e[i]=a}return e},M_=(t,e={verbose:!0})=>{try{return t?R.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},B_=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Ud=t=>{for(let e in t)return!1;return!0},N_=t=>k(t)&&Ud(t),$_=()=>Object.create(null),Xc=(t,e,n={})=>{let o=n.exclude||[],r=n.preventUnderscore;for(let s in e)o.includes(s)||!r&&Hr(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},Kr=(t,e,n=[])=>{let o=n instanceof Set;for(let r in e)Hr(r)||r==="constructor"||r==="prototype"||(o?n.has(r):n.includes(r))||(t[r]=e[r]);return t},ee=(t,e,n={},o=new WeakMap)=>{if(!U(t)||!U(e)||le(t)||le(e))return e;if(o.has(t))return o.get(t);o.set(t,t);let r=n.exclude,s=r?r instanceof Set?r:new Set(r):null,i=!n.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Hr(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];le(l)?t[a]=l:U(c)&&U(l)?t[a]=ee(c,l,n,o):l!==void 0&&(t[a]=l)}return t},Vd=(t,e,n=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);let o=Object.keys(t),r=Object.keys(e);if(o.length!==r.length)return!1;for(let s=0;s<o.length;s++){let i=o[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Vd(t[i],e[i],n))return!1}return!0},D2=new Set(["node","__ref"]),F_=(t,e,n=D2)=>{if(t===e)return!0;if(!U(t)||!U(e)||le(t)||le(e))return t===e;let o=n instanceof Set?n:new Set(n),r=new WeakSet;function s(i,a){if(r.has(a))return!0;r.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||o.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(le(l)||le(f)){if(l!==f)return!1}else if(U(l)&&U(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},j_=(t,e)=>{if(e==null)return t;if(ue(e)("string","number"))delete t[e];else if(P(e))for(let n=0;n<e.length;n++)delete t[e[n]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Hd=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Hd(t[n]));return e},U_=(t,e)=>{if(t.length===0)return e;let n={},o=n;for(let r=0;r<t.length;r++)r===t.length-1&&e?o[t[r]]=e:(o[t[r]]={},o=o[t[r]]);return n},V_=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let r=0;r<e.length-1;r++){if(n[e[r]]===void 0)return;n=n[e[r]]}let o=e[e.length-1];n&&Object.prototype.hasOwnProperty.call(n,o)&&delete n[o]},H_=(t,e,n)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let o=t;for(let r=0;r<e.length-1;r++)(!o[e[r]]||typeof o[e[r]]!="object")&&(o[e[r]]={}),o=o[e[r]];return o[e[e.length-1]]=n,t},z_=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length;o++){if(n==null)return;n=n[e[o]]}return n},W_=t=>{let n=[],o=0;for(let r=0;r<t.length;r++)if(n.length<2)n.push(t[r]);else if(t[r]===n[r%2]?o++:(n=[t[r-1],t[r]],o=1),o>=20)return(XA==="test"||XA==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},G_=t=>{let e=new WeakSet;function n(o){if(o&&typeof o=="object"){if(e.has(o))return!0;e.add(o);for(let r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&n(o[r]))return console.log(o,"cycle at "+r),!0}return!1}return n(t)},K_=(t,e)=>{let n=e instanceof Set?e:new Set(e),o={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&!n.has(r)&&(o[r]=t[r]);return o};var Zc=(function(){let t=0;function e(){return t++,t}return e})(),Qc=Zc,Jc=(t,e,n)=>(bt(n,t)||n||t.key||Zc()).toString();var hn="production",q_=hn,Ho=(t=hn)=>t==="production",zd=(t=hn)=>t==="testing"||t==="test",Y_=zd,X_=(t=hn)=>t==="staging",Z_=(t=hn)=>t==="local",zo=(t=hn)=>t==="development"||t==="dev"||t==="local",Q_=(t,e=hn)=>e[t],so=(t=hn)=>!Ho(t),J=t=>{if(!t&&globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__===!0)return!1;let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let n=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof n=="string"&&n?n==="localhost"||n==="127.0.0.1"||n.endsWith(".localhost"):!1};function tl(t,e,n){let o;return function(){let r=this,s=arguments,i=function(){o=null,n||t.apply(r,s)},a=n&&!o;clearTimeout(o),o=setTimeout(i,e),a&&t.apply(r,s)}}var J_=(t,e,n=300)=>{let o;return(...r)=>{clearTimeout(o),o=setTimeout(()=>{e.apply(t,r)},n)}},tb=t=>{let e={};return(...n)=>{let o=n[0];if(o in e)return e[o];{let r=t(o);return e[o]=r,r}}},L2=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,Ri=t=>L2.test(t),Di=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},Li=(t,e)=>{if(typeof t=="function")return t;let n=e?.context?.plugins;if(!n)return t;for(let o of n)if(o.resolveHandler){let r=o.resolveHandler(t,e);if(typeof r=="function")return r}return t},Wo=(t,e,...n)=>{let o=e?.context?.plugins;if(!o)return!1;let r=!1;for(let s of o)typeof s[t]=="function"&&(s[t](e,...n),r=!0);return r};function eb(t,e=window){let n=function(){return t.apply(e,arguments)};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}var nb=(t,e)=>{let{__ref:n}=t,o=t.if;if(I(o)){let r;try{r=o(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete n.__if;return}r?n.__if=!0:delete n.__if}else o!=null&&typeof o=="object"?bt(o,t)?n.__if=!0:delete n.__if:n.__if=!0};var ob=(t,...e)=>{t&&e.map(n=>console.log(n))},rb=(t,e,...n)=>{t&&(console.group(e),n.map(o=>console.log(o)),console.groupEnd(e))};var sb=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),ib=(t,e,n=365)=>{if(Wt(wt)||Wt(wt.cookie))return;let o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3);let r=`expires=${o.toUTCString()}`;wt.cookie=`${t}=${e};${r};path=/`},ab=t=>{if(Wt(wt)||Wt(wt.cookie))return;let e=`${t}=`,o=decodeURIComponent(wt.cookie).split(";");for(let r=0;r<o.length;r++){let s=o[r];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},cb=t=>{Wt(wt)||Wt(wt.cookie)||(wt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")};function lb(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function fb(t,e){if(e!=null)try{if(!window.localStorage)return;let n=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,n)}catch{}}var Ii={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},hv=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),ub=t=>Ii.body.has(t);var db="production",gv=t=>t.sourcemap!==!1&&db!=="production",Pi=t=>{if(!t)return[];let e=[],n=t.extends;n&&(P(n)?e.push(...n):e.push(n));let o=t.extend;return o&&(P(o)?e.push(...o):e.push(o)),e},He=t=>{if(!P(t))return t;let e=[];for(let n=t.length-1;n>=0;n--){let o=t[n];e.push(P(o)?He(o):o)}return e},Mi=t=>{if(t.includes("+"))return t.split("+").filter(Mn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Mn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},ol=(t,e,n)=>{let o=[],r=Mi(n);r&&(o=[...r]);let s=He(Pi(t));return s.length&&(o=[...o,...s]),o},In=(t,e)=>{let{__ref:n}=e,{__extends:o}=n;if(!t)return o;let r=e.variant,s=e.context;if(r&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${r}`;s.components[i]&&(t=i)}return o.includes(t)||(o=Array.isArray(t)?[...o,...t]:[...o,t],n.__extends=o),o},pb=(t,e)=>{if(!t)return e;let{extends:n}=e,o=P(n)?n:[n],r=P(t)?t:[t];return{...e,extends:Ei(r,o)}},Wd=()=>Math.random().toString(36).substring(2),rl={},hb={},sl=t=>rl[t.__hash],Gd=(t,e)=>{let n=Wd();return E(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(rl[n]=e),e},Kd=(t,e)=>t.__hash?e.concat(sl(t)):Gd(t,e),il=(t,e,n,o=new Set,r,s)=>{for(let i of t)P(i)?il(i,e,n,o,r,s):Bi(i,e,n,o,r,void 0,s);return e},qd=(t,e,n,o=new Set,r,s,i)=>{let a=Pi(t),c={...t};delete c.extends,delete c.extend;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),r&&r.push(s)),a.length&&Bi(He(a),e,n,o,r,s,i),e},Bi=(t,e,n,o=new Set,r,s,i)=>{if(!t||o.has(t))return e;if(P(t))return il(t,e,n,o,r,i);let a=s;return E(t)?(a=t,t=al(t,n)):i&&k(t)&&i.has(t)&&(a=i.get(t)),o.has(t)||(o.add(t),t?.extends||t?.extend?qd(t,e,n,o,r,a,i):t&&(e.push(t),r&&r.push(a))),e},I2=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),Pn=(t,e,n,o,r)=>{e=ut(e);for(let s in e){if(I2.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,n&&o?k(a)&&!P(a)?(n[s]=n[s]||{},mv(n[s],a,o)):n[s]=o:n&&r?.[s]&&(n[s]=r[s]);else if(k(i)&&k(a)){let c=n?n[s]=n[s]||{}:void 0,l=r?.[s];Mn(s)?t[s]=Pn(i,a,c,o,l):Pn(i,a,c,o,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(P(i)&&P(a))t[s]=i.concat(a);else if(P(i)&&k(a)){let c=Pn({},i);t[s]=Pn(c,a)}}}}return t},mv=(t,e,n,o)=>{if(o||(o=new WeakSet),!o.has(e)){o.add(e);for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="__proto__"||r==="constructor"||r==="prototype")continue;let s=e[r];k(s)&&!P(s)?(t[r]=t[r]||{},mv(t[r],s,n,o)):t[r]=n}}},el=(t,e,n)=>t.reduce((o,r,s)=>{let i=ut(r),a=n?n[s]:void 0;return Pn(o,i,e,a)},{}),al=(t,e,n={},o)=>{let r=e?.components||n.components,s=e?.pages||n.pages;if(E(t)){let i=r&&(r[t+"."+o]||r[t]||r["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;n.verbose&&(db==="test"||db==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},gb=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),nl=(t,e,n,o)=>{if(!t)return[];if(t.__hash)return sl(t)||[];let s=Bi(t,[],e,new Set,n,void 0,o);return n?s:Kd(t,s)},mb=(t,e)=>{if(!t)return e;let n=P(t)?t:[t];return Ei(n,e)},yb=t=>{let e=[];function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(o,r)&&(Mn(r)&&e.push(r),r==="extends"&&(typeof o[r]=="string"?e.push(o[r]):Array.isArray(o[r])&&(e=e.concat(o[r]))),typeof o[r]=="object"&&o[r]!==null&&n(o[r]))}return n(t),e},Yd=(t,e,n={})=>{let{__ref:o}=t,r=t.context||e.context,s=t.variant,i=Pi(t);if(i.length){let a=He(i),[c,...l]=a,f=typeof c=="string"&&s&&r?.components?`${c}.${s}`:null;f&&r.components[f]?In([f,...l],t):In(a,t)}return Xd(t,e,n),Zd(t,e,n),Qd(t,e,n),t.component&&In(He(bt(t.component,t)),t),r.defaultExtends&&In(He(r.defaultExtends),t),Ai(o.__extends)},Xd=(t,e,n={})=>{let{__ref:o}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&In(He(e.childProps.extends),t),o.__extends},Zd=(t,e,n={})=>{let{__ref:o}=t,r=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!r&&s&&In(He(s),t),o.__extends},Qd=(t,e,n={})=>{let{__ref:o}=t,r=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return r&&!i&&!s&&In(He(r),t),o.__extends},Jd=(t,e,n={})=>{let{__ref:o}=t,r=t.context||e.context,s=t.variant,i=gv(n),a=i?[...o.__extends]:null,c=Ai(o.__extends.map((l,f)=>al(l,r,n,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let p=c[d],g=a[d];p&&k(p)&&E(g)&&l.set(p,g)}let f=[],u=nl(c,r,f,l);o.__extendsStack=u,o.__extendsNames=f}else{let l=nl(c,r);o.__extendsStack=l}return o.__extendsStack},tp=(t,e,n={})=>{let{__ref:o}=t,{__extendsStack:r}=o;if(gv(n)){let s={},i=o.__extendsNames||[],a=el(r,s,i),c={};Pn(t,a,c,void 0,s),o.__sourcemap=c}else{let s=el(r);Pn(t,s)}return t},yv=(t,e,n={})=>(Yd(t,e,n),Jd(t,e,n),tp(t,e,n),t);var Mn=t=>{if(!E(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90};function _b(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function bb(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Sb(t,e,n){let{context:o}=e||{},[r]=Mi(n),s=n||r;return o?.components?.[s]||o?.pages?.[s]}function _v(t,e){let{props:n,on:o}=e,r=Fr(t.split("on")[1]),s=o[r],i=n[t];I(s)?o[r]=(...a)=>{if(s(...a)!==!1&&I(i))return i(...a)}:o[r]=i}var wb=/^[A-Z]/,bv=/^\d+$/,Sv=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),P2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),M2=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(P2.has(e)||wb.test(e))return!0;return!1},fl=(t,e,n)=>{let{props:o,__ref:r}=t;if(r.__propsStack=[],o)r.__initialProps=o;else return{};return U(o)?{...o}:(r.__propsStack.push(o),{})};function ep(t,e={}){let n=e.cachedKeys||[];for(let o in t){let r=t[o];if(o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o[2]===o[2].toUpperCase()&&(I(r)||r!=null&&Di(this.context))){let g=Fr(o.slice(2));t.on&&(t.on[g]=r),delete t[o];continue}if(o==="childProps"){t.props[o]=r,delete t[o],n.push(o);continue}let a=this.define?.[o],c=this.context?.define?.[o],l=k(a)||I(a),f=k(c)||I(c);if(l||f)continue;let u=o.charAt(0);if(Sv.has(u)){t.props[o]=r,delete t[o],n.push(o);continue}let d=wb.test(o)||bv.test(o)||M2(r),p=jo.has(o);!d&&!p&&(o in t.props||(t.props[o]=r),delete t[o],n.push(o))}return t}function np(t=this,e){let n=e.cachedKeys||[];for(let o in t.props){let r=t.props[o],s=o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110,i=I(r)||r!=null&&Di(this.context);if(s&&i){_v(o,t),delete t.props[o];continue}if(n.includes(o)||o==="childProps")continue;let a=o.charAt(0);if(Sv.has(a))continue;let c=this.define?.[o],l=this.context?.define?.[o],f=k(c)||I(c),u=k(l)||I(l),d=wb.test(o)||bv.test(o),p=jo.has(o);(d||p||f||u)&&(t[o]===void 0||r===null)&&(t[o]=r,t.props&&delete t.props[o])}return t}function op(t=this){let e=[];return ep.call(this,t,{cachedKeys:e}),np.call(this,t,{cachedKeys:e}),t}function xb(t={}){return t.on||(t.on={}),t.props||(t.props={}),op.call(this,t)}var cl=t=>ue(t)("string","number")?{inheritedString:t}:t,kb=(t,e)=>!t||!e.length?!1:e.includes(t),ul=(t,e)=>{let{__ref:n}=t,o=n.__propsStack||[],r=e.props;if(!r)return o;let s=r[t.key],i=r.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=cl(i);o.unshift(c)}if(s){let c=cl(s);o.unshift(c)}return o};function Tb(t,e){this.__element.update({props:t},e)}function dl(t){let e={update:Tb.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var pl=t=>{let e=new Set;return t.filter(n=>!n||Uo.has(n)||e.has(n)?!1:(e.add(n),!0))},hl=(t,e,n)=>(e.props=t.reduce((o,r)=>{if(Uo.has(r))return o;for(;I(r);)r=bt(r,e);return mt(o,ut(r,{exclude:Uo}))},{}),dl(e),e.props),rp=(t,e)=>{let{props:n,__ref:o}=t,r=o.__propsStack||[];if(e?.props&&(r=[...ul(t,e)]),k(n)?r.push(n):n==="inherit"&&e?.props?r.push(e.props):n&&r.push(n),P(o.__extendsStack))for(let s=0;s<o.__extendsStack.length;s++){let i=o.__extendsStack[s];i.props&&i.props!==n&&r.push(i.props)}return o.__propsStack=pl(r),o.__propsStack},ll=(t,e)=>{let{__ref:n}=t,o=rp(t,e);o.length?hl(o,t):(n.__propsStack=[],t.props={})},Eb=function(t,e,n){let{__ref:o}=t;if(o.__if)ll(t,e);else try{ll(t,e)}catch(r){t.context?.designSystem?.verbose&&console.warn("initProps error at",o.path?.join("."),r),t.props={},o.__propsStack=[]}return dl(t),t},Ab=(t,e,n)=>{let{__ref:o}=e,s=[...o.__propsStack||[]],i=ul(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),o.__propsStack=pl(s),o.__propsStack.length&&hl(o.__propsStack,e),e};var wv="production",sp=(t,e,n)=>{let o=e.childExtends&&e.childExtends.tag,r=e.childProps&&e.childProps.tag,s=Ii.body.has(n)&&n;return{text:t,tag:o||r||s||"string"}},ip=(t,e,n)=>{if(t===void 0)return(wv==="test"||wv==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:ue(t)("string","number")?sp(t,e,n):I(t)?{props:t}:t},ap=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},cp=(t,e,n,o,r)=>{if(!e)return r;if(ro(e)){let s={key:":root",node:e};return r[`${n}_parent`]=s,s}return e},vb=(t,e)=>{let{__ref:n}=t,{__ref:o}=e,r=e&&e.key===":root";n?.root||(n.root=r?t:o?.root)},lp=(t,e,n)=>{let{__ref:o}=e;return o||(o=e.ref={}),o.path||(o.path=[]),o.path.concat(n)},fp=(t,e,n,o,r)=>(o.context&&!r.context&&!t.context&&(r.context=o.context),o.context||e.context||r.context||t.context),up=(t,e,n)=>{let o=ap(t,e);return t.__ref=o,o.__defineCache||(o.__defineCache={}),o.__exec||(o.__exec={}),o.__execProps||(o.__execProps={}),o.__class||(o.__class={}),o.__classNames||(o.__classNames={}),o.__attr||(o.__attr={}),o.__changes||(o.__changes=[]),o.__children||(o.__children=[]),o.__extends=ol(t,e,n),o.path=lp(t,e,n),o},Cb=(t,e,n,o,r)=>{let i=t?.__hash?{extends:[t]}:ip(t,e,n);if(!i)return;let a=cp(i,e,n,o,r),c=Jc(i,a,n);up(i,a,c);let l=fl(i,a,c),f=fp(i,a,c,o,r),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}};var Ob=t=>{let{state:e,props:n,__ref:o}=t,r=n?.state||e;return ue(r)("string","number")?(o.__state=r,{value:r}):r===!0?(o.__state=t.key,{}):r?(o.__hasRootState=!0,r):!1},dp=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},pp=(t,e)=>{if(!t.includes("../"))return;let o=t.split("../").length-1;for(let r=0;r<o;r++){if(!e.parent)return null;e=e.parent}return e},hp=(t,e,n={})=>{let o=E(t)?t.split("/"):[t],r=o.length-1;for(let s=0;s<r;s++){let i=o[s],a=o[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return n.returnParent?e:e[t]},gp=(t,e,n={})=>{let r=t.__ref.__state;if(!mp(t))return;let s=dp(r,e.state),i=e.state;if(s)i=s,r=r.replaceAll("~/","");else{let a=pp(r,e.state);a&&(i=a,r=r.replaceAll("../",""))}if(i)return hp(r,i,n)},Rb=(t,e)=>{let n=t.__ref,o=gp(t,e);if(o===void 0)return t.state;if(ue(o)("object","array"))return ut(o);if(ue(o)("string","number","boolean"))return n.__stateType=typeof o,{value:o};globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(n.__state,"is not present. Replacing with",{})},mp=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&ue(n)("number","string","boolean"))},Db=function(t){return U(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Lb=(t,e)=>{if(!t)return e||{};let n=t.split("/"),o={},r=o,s=n.length-1;for(let i=0;i<=s;i++)r[n[i]]=i===s?e||{}:{},r=r[n[i]];return o},Ib=(t,e)=>{let{__element:n}=e,o=n?.state;if(!o)return;let r=ut(o,jr),s={[t.key]:r},i=k(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?Fc(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),r},yp=new Set(["parent","root"]),xv=new Set,B2=t=>{xv.has(t)||(xv.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&console.warn(`[smbls/state] the declared state key "${t}" names a state bookkeeping slot (parent / root) and was NOT copied into the state. Rename the key (e.g. "`+t.split(".").pop()+'Data").'))},Ev=(t,e,n,o)=>{if(t===e)return t;for(let r=0;r<o.length;r+=2)if(o[r]===t&&o[r+1]===e)return t;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r.charCodeAt(0)===95&&r.charCodeAt(1)===95||r==="constructor"||r==="prototype")continue;let s=n?n+"."+r:r;if(yp.has(r)){B2(s);continue}let i=t[r],a=e[r];U(i)&&U(a)?(o.push(t,e),Ev(i,a,s,o),o.length-=2):i===void 0&&(t[r]=a)}return t},Go=(t,e)=>!U(t)||!U(e)?t:Ev(t,e,"",[]),Pb=(t,e,n={})=>{let{overwrite:o}=n;if(!o)return;let r=o==="shallow";if(o==="merge"){mt(t,e,jr);return}(r?Kr:ee)(t,e,jr)},kv="__polyglotSeededKeys",Ko=t=>{if(!k(t))return new Set;let e=t[kv];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,kv,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},qr=(t,e,n)=>Ko(t).has(e)?!0:!k(n)||n[e]===void 0,Tv="__polyglotSeededValues",Av=t=>{if(!k(t))return new Map;let e=t[Tv];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,Tv,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},vv=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},gl=(t,e,n)=>{if(!Ko(t).has(e))return!1;let o=Av(t);if(!o.has(e))return!0;let r=k(n)||Array.isArray(n)?n[e]:void 0,s=vv(r);return s!==null&&s===o.get(e)},Bn=(t,e,...n)=>(Ko(t).add(e),n.length&&Av(t).set(e,vv(n[0])),e);var N2=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},Mb=(t,e)=>{let{__ref:n}=t,o=t.context||e.context||n.root?.context;o&&!o.globalScope&&(o.globalScope={});let r=e.scope||n.root?.scope,s=o?.globalScope;if(!t.scope)r?t.scope=r:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=r||s;i&&!N2(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}};var ns=/*@__PURE__*/$({},{EARLY_KEY:()=>Yo,SEED_BLOCK:()=>ml,STALE_ATTRIBUTE:()=>Ub,createAdapter:()=>sj,createEarlySeedBlock:()=>Lv,createEarlySeedScript:()=>Bv,default:()=>Aj,earlyKey:()=>Zr,executeFetch:()=>aS,fetchFunctions:()=>xj,fetchPlugin:()=>Ej,hasAdapter:()=>rj,initAdapterAuth:()=>Ap,parseDuration:()=>qo,queryClient:()=>wj,registerAdapter:()=>oj,requestsInFlight:()=>Hv,resolveDb:()=>oC,revalidateSeed:()=>kj,seedFromPage:()=>hC,seedIsStale:()=>Pv,whenRequestsIdle:()=>zv,whenSeedTaken:()=>Iv});var Bb=/*@__PURE__*/$({},{localAdapter:()=>Cv,setup:()=>F2});var _p=(t,e)=>{if(!e)return!0;for(let n in e){let o=e[n];if(o===null){if(t[n]!==null&&t[n]!==void 0)return!1}else if(Array.isArray(o)){if(!o.includes(t[n]))return!1}else if(typeof o=="object"){for(let r in o)if(r==="gt"&&!(t[n]>o[r])||r==="gte"&&!(t[n]>=o[r])||r==="lt"&&!(t[n]<o[r])||r==="lte"&&!(t[n]<=o[r])||r==="neq"&&t[n]===o[r]||r==="like"&&!String(t[n]).includes(o[r]))return!1}else if(t[n]!==o)return!1}return!0},$2=(t,{order:e,limit:n,offset:o,single:r})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return o&&(s=s.slice(o)),n&&(s=s.slice(0,n)),r?{data:s[0]||null,error:null}:{data:s,error:null}},F2=async({data:t,...e})=>Cv(t,e),Cv=(t={},e={})=>{let n={},o={},r=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!n[f])if(r)try{let u=localStorage.getItem(s+f);n[f]=u?JSON.parse(u):t[f]||[]}catch{n[f]=t[f]||[]}else n[f]=t[f]||[];return n[f]},a=f=>{if(r)try{localStorage.setItem(s+f,JSON.stringify(n[f]))}catch{}},c=(f,u,d,p)=>{let g=o[f];if(g)for(let h of g)h(d,p,{event:u,table:f})},l=Date.now();return{name:"local",store:n,select:async({from:f,params:u,...d})=>{let g=i(f).filter(h=>_p(h,u));return $2(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return d.push(m),m});a(f);for(let h of g)c(f,"INSERT",h,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let p=i(f),g=[];for(let h=0;h<p.length;h++)if(_p(p[h],d)){let m={...p[h]};Object.assign(p[h],u),g.push(p[h]),c(f,"UPDATE",p[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let p=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=d||(m.id!==void 0?{id:m.id}:null),x=y?p.findIndex(T=>_p(T,y)):-1;if(x>-1){let T={...p[x]};Object.assign(p[x],m),h.push(p[x]),c(f,"UPDATE",p[x],T)}else{let T={id:m.id||++l,...m};p.push(T),h.push(T),c(f,"INSERT",T,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),p=[];for(let g=d.length-1;g>=0;g--)_p(d[g],u)&&(p.push(d[g]),d.splice(g,1),c(f,"DELETE",null,p[p.length-1]));return a(f),{data:p,error:null}},subscribe:({from:f,on:u},d)=>{o[f]||(o[f]=[]);let p=(g,h,m)=>{u&&u!=="*"&&u!==m.event||d(g,h,m)};return o[f].push(p),()=>{let g=o[f].indexOf(p);g>-1&&o[f].splice(g,1)}}}};var qo=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let n=parseInt(e[1]),o=e[2];return o==="ms"?n:o==="s"?n*1e3:o==="m"?n*6e4:o==="h"?n*36e5:0};var Yo="@symbo.ls/fetch:EARLY",Xr=3e4,Zr=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},Nb=t=>{if(t==null)return!0;if(typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;for(let n in t){let o=t[n];if(!(o===void 0||typeof o=="string"||typeof o=="boolean")&&!(typeof o=="number"&&isFinite(o)))return!1}return!0};var Nn=()=>Symbol.for(Yo),$b=(t,e)=>{let n=[];for(let o in t||{}){let r=o.toLowerCase(),s={name:o,header:r,param:t[o],found:!1,value:void 0};for(let i in e||{})i.toLowerCase()===r&&(s.found=!0,s.value=e[i]);n.push(s)}return n},Ov=(t,e)=>{if(!t||typeof t!="object"||!e||typeof e!="object")return t;let n={...t};return n.query===void 0&&e.query!==void 0&&(n.query=e.query),n.rpc===void 0&&e.rpc!==void 0&&(n.rpc=e.rpc),n},Rv=(t,e,n)=>{let o=Nn();if(j2(n),!t||typeof t!="object"){let i=globalThis[o];return i&&i.seeded?{carried:{},rpc:!1,maxAge:Xr,seeded:!0}:null}globalThis[o]||(globalThis[o]={entries:{}});let r={};for(let{header:i,found:a,value:c}of $b(t.query,e))a&&(r[i]=c);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:Xr;return{carried:r,rpc:t.rpc==="get",maxAge:s,seeded:!!globalThis[o].seeded}},Fb=(t,e=Xr,n)=>{let o=globalThis[Nn()],r=o&&o.entries&&o.entries[t];return!r||(delete o.entries[t],!(Date.now()-r.time<=e))?null:r.seeded?(o.stale&&n&&(r.seeded.taken=Vb(o,t,n())),Promise.resolve(r.seeded)):Promise.resolve(r.answer).then(s=>s&&s.ok&&!s.bodyUsed?s:null,()=>null)},jb=()=>{let t=globalThis[Nn()];t&&t.entries&&(t.entries={})},Dv=t=>(Array.isArray(t)?t:[]).filter(e=>e&&typeof e.url=="string"&&typeof e.body=="string").map(e=>({k:Zr(e.url,e.lang||""),s:e.status||200,t:e.type||"application/json",b:e.body})),ml='script[type="application/json"][data-fetch-seed]',Lv=t=>{let e=Dv(t);return e.length?'<script type="application/json" data-fetch-seed>'+Qr(e)+"<\/script>":""},j2=t=>{let e=$n(globalThis.document,ml,{remove:!0}),n=t===!1?null:e&&e.value;if(!Array.isArray(n)||!n.length){let c=globalThis[Nn()];c&&c.stale||(Yr=null);return}let o=Nn(),r=globalThis[o]||(globalThis[o]={entries:{}});r.entries||(r.entries={}),r.seeded=!0;let s=Date.now();for(let c of n)!c||typeof c.k!="string"||typeof c.b!="string"||r.entries[c.k]||(r.entries[c.k]={time:s,seeded:{seeded:!0,status:c.s||200,type:c.t||"application/json",body:c.b}});let i=Jr(globalThis.document)||{stamp:null,time:null},a=U2(t,i.stamp,i.time);a?(r.stale=a,r.seedConfig=t&&typeof t=="object"?t:null):Yr=null},Ub="data-smbls-stale",U2=(t,e,n)=>{let o=globalThis.document&&globalThis.document.documentElement;if(o&&typeof o.hasAttribute=="function"&&o.hasAttribute(Ub))return!0;if(!t||typeof t!="object")return!1;if(t.maxAge!=null&&n!==null){let r=qo(t.maxAge);if(r>0&&Date.now()-n>r)return!0}if(typeof t.isStale!="function")return!1;try{let r=t.isStale(e,{time:n});return r&&typeof r.then=="function"?Promise.resolve(r).then(Boolean,()=>!1):!!r}catch{return!1}},Vb=(t,e,n)=>{let o={key:e,again:n,result:null,cacheKey:null};if((t.taken||(t.taken=[])).push(o),Yr){let r=Yr;Yr=null;for(let s of r)try{s()}catch{}}return o},Yr=null,Iv=t=>{let e=globalThis[Nn()];return e&&e.seeded&&!e.stale||e&&e.stale&&e.revalidated?!1:e&&e.stale&&e.taken&&e.taken.length?(t(),!0):((Yr||(Yr=new Set)).add(t),!0)},bp=(t,e)=>{let n=globalThis[Nn()];!n||!t||typeof t!="object"||(e.result=t,(n.results||(n.results=new WeakMap)).set(t,e))},Hb=(t,e)=>{let n=globalThis[Nn()],o=n&&n.results&&t?n.results.get(t):null;o&&(o.cacheKey=e)},Pv=()=>{let t=globalThis[Nn()];return!!(t&&t.stale&&!t.revalidated)},Mv=async()=>{let t=globalThis[Nn()];if(!t||!t.stale||t.revalidated)return null;t.revalidated=!0;let e=await t.stale,n=t.taken||[];return t.taken=[],t.results=null,e?{taken:n,config:t.seedConfig||{}}:null},Bv=t=>{let e=Dv(t);if(!e.length)return"";let n=Qr(e);return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(Yo)+"),r=globalThis[k]||(globalThis[k]={entries:{}}),t=Date.now(),l="+n+';r.seeded=true;r.entries=r.entries||{};for(var i=0;i<l.length;i++){var e=l[i];r.entries[e.k]={time:t,answer:Promise.resolve(new Response(e.b,{status:e.s,headers:{"content-type":e.t}}))}}}catch(e){}})()<\/script>'};var Nv=()=>globalThis[Symbol.for(Yo)],$v=(t,e=Xr,n,o)=>{let r=Nv(),s=r&&r.entries&&r.entries[t];if(!s||!s.seeded||!(Date.now()-s.time<=e))return null;let i=o(s.seeded);return i?(delete r.entries[t],r.stale&&n&&bp(i,Vb(r,t,n())),i):null},Fv=()=>{let t=Nv();if(t&&t.seeded){for(let n in t.entries)if(t.entries[n]&&t.entries[n].seeded)return!0;return!1}let e=globalThis.document;return!!(e&&typeof e.querySelector=="function"&&e.querySelector(ml))};var Kb=/*@__PURE__*/$({},{buildUrl:()=>yl,headerEntries:()=>Xv,restAdapter:()=>wp,selectQuery:()=>Wb,setup:()=>Q2,withQuery:()=>_l});var jv=Symbol.for("@symbo.ls/fetch:IN_FLIGHT"),Sp=()=>globalThis[jv]||(globalThis[jv]={count:0,waiters:[]}),Uv=()=>{Sp().count++},Vv=()=>{let t=Sp();if(t.count=t.count>0?t.count-1:0,t.count===0&&t.waiters.length){let e=t.waiters;t.waiters=[];for(let n of e)n()}},Hv=()=>Sp().count,zv=()=>{let t=Sp();return t.count===0?Promise.resolve():new Promise(e=>{t.waiters.push(e)})};var V2=(t,e)=>{let n=new URL(t);return n.searchParams.delete("limit"),n.searchParams.sort(),n.toString()+" "+(e||"")},Wv=(t,e,n,o=Xr)=>{let r=globalThis[Symbol.for(Yo)],s=r&&r.slices&&r.slices[V2(t,e)];if(!s||!(n>0))return null;for(let i=0;i<s.length;i++){let a=s[i],c=r.entries&&r.entries[a];if(!(!c||!(c.limit>=n)))return s.splice(i,1),delete r.entries[a],Date.now()-c.time<=o?Promise.resolve(c.answer).then(l=>{if(!l||!l.ok||l.bodyUsed)return null;let f=l.headers&&l.headers.get("content-type")||"application/json";return l.json().then(u=>Array.isArray(u)?{seeded:!0,status:l.status,type:f,body:JSON.stringify(u.slice(0,n))}:null)}).catch(()=>null):null}return null};var yl=(t,e,n)=>{let o=e&&!e.startsWith("/")?"/":"",r=new URL(`${t}${o}${e}`);if(n)for(let s in n){let i=n[s];i!=null&&r.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return r.toString()},Wb=({params:t,select:e,limit:n,offset:o,order:r,single:s})=>{let i={...t};return e&&(i.select=e),n&&(i.limit=n),o&&(i.offset=o),s&&(i.single=!0),r&&(typeof r=="string"?i.order=r:Array.isArray(r)?i.order=r.map(a=>`${a.by}:${a.asc===!1?"desc":"asc"}`).join(","):r.by&&(i.order=`${r.by}:${r.asc===!1?"desc":"asc"}`)),i},Kv=t=>Object.prototype.toString.call(t).slice(8,-1),Gb=["auto","json","text","blob","arrayBuffer","stream","response"],H2={json:async t=>{let e=await t.text();return e?JSON.parse(e):null},text:t=>t.text(),blob:t=>t.blob(),arrayBuffer:t=>t.arrayBuffer(),stream:t=>t.body,response:t=>t},z2=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},W2=async t=>{let e=await t.text(),n=t.headers.get("content-type");if(e&&n&&n.includes("json"))try{return JSON.parse(e)}catch{}return e},Gv=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,qv=(t,e)=>{let n=t.body,o=e==="json"||e==="auto"&&/json/i.test(t.type);if(!o&&e!=="auto"&&e!=="text")return null;let r;try{r=o?n?JSON.parse(n):null:n}catch{return!1}return{data:r,error:null,status:t.status}},ze=async(t,e,n,o)=>{let r=n??"auto";if(!Gb.includes(r))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${r}" \u2014 use one of: ${Gb.join(", ")}`);Uv();try{return await Yv(t,e,r,o)}finally{Vv()}},Yv=async(t,e,n,o)=>{let r=o?await o:null;if(r&&r.seeded===!0){let i=qv(r,n);if(r.taken&&i!==!1){let a=i||await Yv(t,e,n,Promise.resolve(new Response(r.body,{status:r.status,headers:{"content-type":r.type}})));return bp(a,r.taken),a}if(i)return i;r=i===!1?null:new Response(r.body,{status:r.status,headers:{"content-type":r.type}})}let s=r||await globalThis.fetch(t,e);if(n==="auto"){let i=await z2(s);return{data:i,error:s.ok?null:Gv(i,s),status:s.status}}if(!s.ok){let i=await W2(n==="response"?s.clone():s);return{data:n==="response"?s:i,error:Gv(i,s),status:s.status}}return{data:await H2[n](s),error:null,status:s.status}},G2=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],K2=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||G2.includes(Kv(t))),Xv=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),zb=(...t)=>{let e={},n=new Map;for(let o of t)if(o)for(let[r,s]of Xv(o)){let i=r.toLowerCase();if(n.has(i)&&delete e[n.get(i)],s==null){n.delete(i);continue}n.set(i,r),e[r]=s}return e},q2={"Content-Type":"application/json"},Y2={"Content-Type":void 0},X2=t=>{if(!t||typeof t!="object")return null;let e={};for(let{header:n,param:o}of $b(t.query))e[n]=o;return{params:e,rpc:t.rpc==="get"}},Z2="content-type",_l=(t,e)=>{let n=Object.keys(e);if(!n.length)return t;let o=new URL(t);for(let r of n)o.searchParams.set(r,e[r]);return o.toString()},Q2=async({url:t,headers:e,auth:n,fetchOptions:o,early:r,reads:s,seed:i})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return wp(t,e,n,o,r,s,i)},wp=(t,e={},n,o={},r,s,i)=>{let a=n?.token||null,c=Rv(Ov(r,s),e,i),l=X2(s),f=_=>{if(!l)return null;let b={},S={},w={};for(let A in _){let C=A.toLowerCase();if(C==="authorization")return null;if(C===Z2)continue;S[A]=_[A];let O=l.params[C];O?w[O]=_[A]:b[A]=_[A]}return{headers:b,adoptHeaders:S,query:w}},u=(_,b,S)=>{if(!c)return null;let w="";for(let A in b){let C=A.toLowerCase();if(C==="accept-language")w=String(b[A]);else if(c.carried[C]!==b[A])return null}try{let A=_();return Fb(Zr(A,w),c.maxAge)||(S>0?Wv(A,w,S,c.maxAge):null)}catch{return null}},d=(_,b,S,w,A,C,O)=>{if(!c||!c.seeded)return null;let N="";for(let B in b){let M=B.toLowerCase();if(M==="accept-language")N=String(b[B]);else if(M!=="accept")return null}try{return Fb(Zr(_,N),c.maxAge,()=>g(S,w,A,_,C,O))}catch{return null}},p=(_,b,S,w,A,C,O)=>{if(!c||!c.seeded)return null;let N="";for(let M in b){let K=M.toLowerCase();if(K==="accept-language")N=String(b[M]);else if(K!=="accept")return null}let B=O??"auto";if(!Gb.includes(B))return null;try{return $v(Zr(_,N),c.maxAge,()=>g(S,w,A,_,C,O),M=>qv(M,B)||null)}catch{return null}},g=(_,b,S,w,A,C)=>({method:_,from:b,params:S,send:()=>ze(w,A,C,null)}),h=()=>a?{Authorization:`Bearer ${a}`}:null,m=_=>zb(e,h(),_),y=_=>({...o,..._}),x=(_,b,S)=>{if(!K2(b))return y({method:_,headers:zb(e,h(),q2,S),body:JSON.stringify(b)});let w={method:_,headers:zb(e,h(),Y2,S),body:b};return Kv(b)==="ReadableStream"&&(w.duplex="half"),y(w)},T=(_,b)=>{let S=b||t;if(_&&(_.startsWith("http://")||_.startsWith("https://")))return _;let w=_&&!_.startsWith("/")?"/":"";return`${S}${w}${_||""}`};return{name:"rest",setToken:_=>{a=_},getSession:async()=>{if(!n?.sessionUrl)return a?{token:a}:null;let _=await ze(T(n.sessionUrl,n.baseUrl),y({headers:m()}));return _.error?null:_.data},signIn:async _=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let b=await ze(T(n.signInUrl,n.baseUrl),x("POST",_));return b.data?.token&&(a=b.data.token),b},signOut:async()=>(n?.signOutUrl&&await ze(T(n.signOutUrl,n.baseUrl),y({method:"POST",headers:m()})),a=null,{error:null}),select:({from:_,params:b,select:S,limit:w,offset:A,order:C,single:O,headers:N,baseUrl:B,responseType:M})=>{let K=yl(B||t,_||"",Wb({params:b,select:S,limit:w,offset:A,order:C,single:O})),q=!A&&!O&&Number(w)>0?Number(w):0,tt=m(N),nt=f(tt);if(nt){let Z=y({headers:nt.headers}),X=_l(K,nt.query);return ze(X,Z,M,d(X,nt.headers,"select",_,b,Z,M)||u(()=>K,nt.adoptHeaders,q))}let ot=y({headers:tt});return ze(K,ot,M,d(K,ot.headers,"select",_,b,ot,M)||u(()=>K,ot.headers,q))},seeded:({method:_,from:b,params:S,select:w,limit:A,offset:C,order:O,single:N,headers:B,baseUrl:M,responseType:K,read:q})=>{if(!c||!c.seeded)return null;if(_==="select"){let tt=yl(M||t,b||"",Wb({params:S,select:w,limit:A,offset:C,order:O,single:N})),nt=m(B),ot=f(nt);if(ot){let X=y({headers:ot.headers});return p(_l(tt,ot.query),ot.headers,"select",b,S,X,K)}let Z=y({headers:nt});return p(tt,Z.headers,"select",b,S,Z,K)}if(_==="rpc"){if(!(q===!0&&l&&l.rpc&&Nb(S)))return null;let tt=f(m(B));if(!tt)return null;let nt;try{nt=yl(M||t,`rpc/${b}`,S)}catch{return null}let ot=y({method:"GET",headers:tt.headers});return p(_l(nt,tt.query),tt.headers,"rpc",b,S,ot,K)}return null},rpc:async({from:_,params:b,headers:S,baseUrl:w,responseType:A,read:C})=>{let O=Nb(b),N=()=>yl(w||t,`rpc/${_}`,b),B=Z=>ze(T(`rpc/${_}`,w),x("POST",b,S),A,Z),M=m(S),K=C===!0&&l&&l.rpc&&O?f(M):null,q=null;if(K)try{q=N()}catch{q=null}if(!q)return B(c&&c.rpc&&O?u(N,M):null);let tt=y({method:"GET",headers:K.headers}),nt=_l(q,K.query),ot=await ze(nt,tt,A,d(nt,K.headers,"rpc",_,b,tt,A)||u(()=>q,K.adoptHeaders));return ot.status===405?B(null):ot},insert:({from:_,data:b,headers:S,baseUrl:w,responseType:A})=>ze(T(_,w),x("POST",b,S),A),update:({from:_,data:b,params:S,method:w,headers:A,baseUrl:C,responseType:O})=>{let N=S?.id||b?.id,B=N?`${_}/${N}`:_;return ze(T(B,C),x(w||"PATCH",b,A),O)},upsert:({from:_,data:b,params:S,method:w,headers:A,baseUrl:C,responseType:O})=>{let N=S?.id||b?.id,B=N?`${_}/${N}`:_;return ze(T(B,C),x(w||"PUT",b,A),O)},delete:({from:_,params:b,headers:S,baseUrl:w,responseType:A})=>{let C=b?.id,O=C?`${_}/${C}`:_;return ze(T(O,w),y({method:"DELETE",headers:m(S)}),A)}}};var J2=()=>Bb,tj=["select","rpc","insert","update","upsert","delete","subscribe"],nC={rest:()=>Promise.resolve(Kb),local:()=>Promise.resolve().then(J2)},xp=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),ts=(()=>{if(typeof globalThis<"u"&&globalThis[xp])return globalThis[xp];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,xp,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[xp]}catch{}return t})(),kp=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Zb=(()=>{if(typeof globalThis<"u"&&globalThis[kp])return globalThis[kp];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,kp,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[kp]}catch{}return t})(),ej=5e3,nj=t=>new Promise(e=>{if(ts[t])return e(ts[t]);let n=Zb[t]||=[],o=!1,r=()=>{o||(o=!0,e(ts[t]||null))};n.push(r),setTimeout(r,ej)}),oj=(t,e)=>{ts[t]=e;let n=Zb[t];if(n&&n.length){Zb[t]=[];for(let o of n)o()}},rj=t=>typeof t=="string"&&!!(ts[t]||nC[t]),sj=t=>{let e={};for(let n of tj)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},oC=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...n}=t,o=typeof e=="string"?e:typeof t=="string"?t:null;if(!o)return null;let r=ts[o]||nC[o];if(!r&&(r=await nj(o),!r))throw new Error(`Unknown db adapter: "${o}". Use registerAdapter() for adapters with optional deps.`);let s=await r();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${o}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(n)},rS=t=>!!t&&!!t.isolateFetchCache,rC=()=>({cache:new Map,subscribers:new Map,active:new Map,invalidatedAt:new Map,mounted:new Set}),gn=rC(),Zv=new WeakMap,We=t=>{if(!rS(t))return gn;let e=Zv.get(t);return e||Zv.set(t,e=rC()),e},Op=0,qb=new WeakMap,Rp=(t,e,n,o,r=t.page,s=t.cursor)=>{if(t.cache?.key)return t.cache.key;let{from:i,method:a,infinite:c}=t,l=n?`${n}:`:"",f=o?`:${o}`:"",u=r?":p"+JSON.stringify(r):"",d=s!=null?":c"+JSON.stringify(s):"";return`${i}:${a}:${l}${JSON.stringify(e||"")}${c?":infinite":""}${u}${d}${f}`},Fi=(t,e)=>t.cache.get(e)||null,$i=(t,e,n,o,r=++Op,s=!1)=>{let i={data:n,error:o,time:Date.now(),stale:s,seq:r};t.cache.set(e,i);let a=t.subscribers.get(e);if(a)for(let c of a)I(c)&&c(i);return i},Ep=(t,e,n)=>{let o=e?t.cache.get(e):null;return o&&!o.error&&o.seq>n?o:null},Qb=(t,e,n)=>(t.invalidatedAt.get(e)||0)>n,vp=(t,e)=>{t.invalidatedAt.set(e,++Op)},sC=(t,e)=>{t.cache.delete(e),vp(t,e)};var Dp=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:E(t)?{staleTime:qo(t),gcTime:3e5}:{staleTime:qo(t.stale||t.staleTime)||6e4,gcTime:qo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},iC=t=>!!t.ref&&t.element.__ref===t.ref,ij=({config:t,element:e,context:n})=>{try{return sS(t,e,n)}catch{return null}},Tp=null,aj=()=>{Tp||(Tp=setInterval(()=>{let t=Date.now(),{cache:e,subscribers:n,active:o,invalidatedAt:r,mounted:s}=gn;for(let[i,a]of e){let c=n.get(i);!(c&&c.size>0)&&t-a.time>(a.gcTime||3e5)&&e.delete(i)}for(let[i]of r)!e.has(i)&&!o.has(i)&&r.delete(i);for(let i of s)iC(i)||s.delete(i)},3e4),Tp.unref&&Tp.unref())};aj();var Qv=3,Yb=t=>Math.min(1e3*2**t,3e4),aC=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:Qv,delay:Yb}:typeof n=="number"?{count:n,delay:Yb}:{count:n.count??Qv,delay:I(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:Yb}},cC=async(t,e)=>{let{count:n,delay:o}=e,r;for(let s=0;s<=n;s++)try{let i=await t();if(i?.error){if(r=i.error,s<n){let a=I(o)?o(s,r):o;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(r=i,s<n){let a=I(o)?o(s,i):o;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:r}},Ni={focus:new Set,online:new Set},Jv=!1,cj=()=>{if(Jv||typeof window>"u")return;Jv=!0;let t=()=>{for(let n of Ni.focus)n()},e=()=>{for(let n of Ni.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},Jb=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(E(t))return{from:t,method:"select",query:!0,on:"create"};if(k(t)){let o={...t};return o.from=o.from||n.__state||e.key,o.method=o.method||"select",o.on=o.on||"create",o.query===void 0&&(o.query=!0),o}return null},lj=["insert","update","upsert","delete"],lC=t=>lj.includes(t),Lp=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,ji=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},Sl=(t,e)=>{let o=(t?.state?.root||e?.state?.root)?.__fetchScope;return o?String(o):void 0},xl=(t,e,n)=>{let o;if(!t)o=void 0;else if(I(t))o=t(e,e.state);else{o={};for(let r in t){let s=t[r];o[r]=I(s)?s(e,e.state):s}}return o},es=(t,e)=>I(t)?t(e,e.state):t,sS=(t,e,n)=>Rp(t,xl(t.params,e,n),Sl(e,n),ji(e,n),es(t.page,e),es(t.cursor,e)),Ap=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let n=(o,r)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:o,session:r,loading:!1}})};try{let o=await t.getSession();n(o?.user||null,o)}catch(o){console.warn("[fetch] Failed to restore auth session:",o.message)}t.onAuthStateChange&&t.onAuthStateChange((o,r)=>{n(r?.user||null,r)})},iS=async(t,e)=>{if(I(t.select))return t.auth!==!1&&await Ap(t,e),t;if(t.__resolved)return t.auth!==!1&&await Ap(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=oC(t);let n=await t.__resolving;return delete t.__resolving,n?(n.auth=t.auth,n.url=t.url,n.key=t.key,t.__resolved=n,e.fetch=n,t.auth!==!1&&await Ap(n,e),n):null},mn=(t,e,...n)=>{let o=I(t[e])?t[e]:null;o&&o.call(t,...n,t,t.state,t.context)},Fn=(t,e,n,...o)=>{let r=t&&I(t[n])?t[n]:null;r&&r.call(e,...o,e,e.state,e.context)},bl=t=>{let e={},n=t.node;if(!n)return e;if(n.tagName==="FORM"){let r=new FormData(n);for(let[s,i]of r.entries())e[s]=i;return e}let o=n.querySelectorAll("input, textarea, select");for(let r=0;r<o.length;r++){let s=o[r],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},kl=t=>t.responseType==="stream"||t.responseType==="response",fj=["Blob","File","ArrayBuffer","ReadableStream","Response"],tS=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||fj.includes(Object.prototype.toString.call(t).slice(8,-1))),io=(t,e,n,o={})=>{if(!n&&tS(e))return;let r=n&&n.startsWith("~/"),s=r&&t.state?.root||t.state;if(s?.update)if(r){let i=n.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&!tS(e)&&i in e?s.update(e,{preventFetch:!0,...o}):s.update({[i]:e},{preventFetch:!0,...o})}else{let i=n?{[n]:e}:e;s.update(i,{preventFetch:!0,...o})}},Cp=Object.freeze({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),eS=t=>({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:t,status:"error",fetchStatus:"idle"}),ao=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},tC=(t,e,n)=>{let o=t.__pages&&t.__pages.length?t.__pages:[n];I(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(o[o.length-1],o),t.__hasNextPage=t.__nextPageParam!=null),I(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(o[0],o),t.__hasPreviousPage=t.__prevPageParam!=null)},fC=(t,e,n,o,r,s)=>{let{from:i,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d,responseType:p}=t,g={from:i,select:e,params:n,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d};if(p!==void 0&&(g.responseType=p),o&&(g.headers={...g.headers,"Accept-Language":o}),r!==void 0){if(k(r))r.offset!==void 0&&(g.offset=r.offset),r.limit!==void 0&&(g.limit=r.limit),r.cursor!==void 0&&(g.params={...g.params,cursor:r.cursor});else if(typeof r=="number"){let h=t.pageSize||c||20;g.offset=(r-1)*h,g.limit=h}}return s!==void 0&&(g.params={...g.params,cursor:s}),g},co=async(t,e,n,o={})=>{let r=n?.fetch;if(!r||!e||!e.__ref)return;let s=e.__ref,i=Sl(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&Sl(e,n)===i;if(t.enabled===!1||I(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||I(t.skip)&&t.skip(e,e.state))return;let l=await iS(r,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:x,as:T,limit:v,offset:_,order:b,headers:S,baseUrl:w,responseType:A,page:C,cursor:O,infinite:N,placeholderData:B,initialData:M,select:K,keepPreviousData:q}=t,tt=H=>(I(K)&&(H=K(H,e,e.state)),h&&(H=h(H,e,e.state)),H),nt=H=>{ao(e,eS(H)),mn(e,"onFetchError",H),Fn(t,e,"onFetchError",H)},ot=E(K)?K:void 0;if(d&&I(e.getQuery)){let H=e.getQuery(l.name||"paths");H&&(ot=H.select||H.length&&H.join(",")||ot)}let Z=xl(p,e,n),X=es(C,e),Q=es(O,e),rt=Lp(t),et=kl(t)||rt?null:Dp(g),pt=aC(t,rt||lC(u)),G=ji(e,n),z=et?Rp(t,Z,i,G,X,Q):null,vt=We(n);if(!s.__fetchInitialized&&z&&(s.__fetchInitialized=!0,M!==void 0)){let H=I(M)?M():M;$i(vt,z,H,null)}if((u==="select"||u==="rpc")&&z&&et&&!o.refresh&&!o.force){let H=Fi(vt,z);if(H&&!H.error){let Et=Date.now()-H.time,Y=H.stale||Et>(et.staleTime||0);N&&P(H.data)&&!s.__pages&&(s.__pages=[H.data],tC(s,t,H.data));let st=tt(H.data);if(!c())return;if(!Y){ao(e,Cp),io(e,st,T),s.__seededOnCreate===z&&(s.__seededOnCreate=null,mn(e,"onFetchComplete",st),Fn(t,e,"onFetchComplete",st));return}io(e,st,T)}else if(B!==void 0){let Et=I(B)?B(e,e.state):B;Et!==void 0&&io(e,Et,T)}}let gt=z&&!o.force?vt.active.get(z):null;if(gt&&!Qb(vt,z,qb.get(gt)||0)){try{let H=await Promise.race([gt,new Promise((Et,Y)=>setTimeout(()=>Y("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(H?.error)nt(H.error);else if(H?.data!==void 0){let Et=!N&&Ep(vt,z,qb.get(gt)||0),Y=tt(Et?Et.data:H.data);if(!c())return;io(e,Y,T),mn(e,"onFetchComplete",Y),Fn(t,e,"onFetchComplete",Y)}}catch(H){if(!c())return;H!=="DEDUP_TIMEOUT"&&nt(H)}return}let Bt=!Fi(vt,z)?.data;ao(e,{isFetching:!0,isLoading:Bt,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),mn(e,"onFetchStart"),Fn(t,e,"onFetchStart");let Tt=n?.analyze?.emitNetwork,Ct=Tt?typeof performance<"u"?performance.now():Date.now():0;Tt&&Tt({phase:"start",mode:"query",from:f,method:u,cacheKey:z,lang:G});let je=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let Y=await l.getSession();if(!c())return;if(y===!0&&!Y){let st={message:"Not authenticated"};return nt(st),{data:null,error:st}}}let H=l[u];if(!I(H))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let Et=fC(t,ot,Z,ji(e,n),X,Q);if(u==="insert"||u==="update"||u==="upsert"){let Y;if(x===!0||t.on==="submit")Y=bl(e);else if(P(x)){let st=bl(e);Y={};for(let Ue of x)Y[Ue]=st[Ue]}else e.state?.parse?Y=e.state.parse():k(e.state)&&(Y={...e.state});h&&(Y=h(Y,e,e.state)),Et.data=Y}if(u==="rpc"){let Y=Z;if(t.on==="submit"){let st=bl(e);Y=t.transformParams?t.transformParams(st,e,e.state):st}Et.params=Y,Et.read=!rt&&t.read!==!1}if(u==="subscribe"){if(I(s.__unsubscribe)){let st=s.__unsubscribe;s.__unsubscribe=null;try{st()}catch{}}let Y=l.subscribe({from:f,params:Z,on:t.subscribeOn},(st,Ue,By)=>{c()&&(io(e,st,T),mn(e,"onFetchComplete",st),Fn(t,e,"onFetchComplete",st))});return c()?(s.__unsubscribe=Y,{data:null,error:null,subscribed:!0}):(I(Y)&&Y(),{data:null,error:null,subscribed:!0})}return H(Et)},Dt=++Op,Ae=cC(je,pt);qb.set(Ae,Dt),z&&vt.active.set(z,Ae);try{let H=await Ae;if(z&&H&&!rt&&Hb(H,z),rt&&t.invalidates&&H&&!H.error&&!H.subscribed&&uC(vt,t.invalidates,f),!c()||H?.subscribed)return;let{data:Et,error:Y}=H||{};if(Y){z&&!Ep(vt,z,Dt)&&$i(vt,z,null,Y,Dt),nt(Y),Tt&&Tt({phase:"error",mode:"query",from:f,method:u,cacheKey:z,error:Y.message||Y,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ct});return}if(Et!==void 0){let st=Et;if((u==="select"||u==="rpc")&&z){let By=!N&&Ep(vt,z,Dt);if(By)st=By.data;else{let PF=$i(vt,z,Et,null,Dt,Qb(vt,z,Dt));PF.gcTime=et?.gcTime||3e5}}let Ue=st;if(N&&P(Et)&&((!s.__pages||!o.direction)&&(s.__pages=[]),o.direction==="previous"?s.__pages.unshift(Et):s.__pages.push(Et),Ue=s.__pages.flat(),tC(s,t,Et)),Ue=tt(Ue),!c())return;ao(e,Cp),(!q||Ue!==void 0)&&io(e,Ue,T),mn(e,"onFetchComplete",Ue),Fn(t,e,"onFetchComplete",Ue),Tt&&Tt({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ct})}}catch(H){if(!c())return;nt(H),Tt&&Tt({phase:"error",mode:"query",from:f,method:u,cacheKey:z,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-Ct})}finally{z&&vt.active.get(z)===Ae&&vt.active.delete(z)}},uj=(t,e,n)=>{let o=t.on,r=e.__ref;if(!r)return;r.__fetchListeners||(r.__fetchListeners=[]);let s=t.__runner||co;if(o==="submit"){let i=c=>{c.preventDefault(),s(t,e,n)},a=e.node;a&&(a.addEventListener("submit",i),r.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(o==="click"){let i=()=>s(t,e,n),a=e.node;a&&(a.addEventListener("click",i),r.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else o==="stateChange"&&dj(t,e,n,s)},dj=(t,e,n,o)=>{let r=e.__ref,s,i=W(()=>{let a;try{a=JSON.stringify([xl(t.params,e,n)??null,I(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,I(t.skip)?!!t.skip(e,e.state):t.skip===!0,es(t.page,e)??null])}catch{return}if(s===void 0){s=a;return}a!==s&&(s=a,queueMicrotask(()=>o(t,e,n)))});Array.isArray(r.__effects)?r.__effects.push(i):r.__fetchListeners.push(()=>i.dispose())},pj=(t,e,n)=>{let o=e.__ref;o.__fetchCleanups||(o.__fetchCleanups=[]),cj();let r=t.refetchInterval;if(r){let c=typeof r=="number"?r:qo(r);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&co(t,e,n,{force:!0})},c);o.__fetchCleanups.push(()=>clearInterval(l))}}let s=kl(t),i=t.refetchOnWindowFocus===void 0?!s:t.refetchOnWindowFocus!==!1,a=t.refetchOnReconnect===void 0?!s:t.refetchOnReconnect!==!1;if(i){let c=()=>{let l=sS(t,e,n),f=Fi(We(n),l),u=Dp(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&co(t,e,n,{force:!0})};Ni.focus.add(c),o.__fetchCleanups.push(()=>Ni.focus.delete(c))}if(a){let c=()=>co(t,e,n,{force:!0});Ni.online.add(c),o.__fetchCleanups.push(()=>Ni.online.delete(c))}},hj=(t,e,n)=>{if(!e.optimistic)return null;let o=t.__ref,r=e.as,s=t.state?.parse?t.state.parse():k(t.state)?{...t.state}:t.state;o.__optimisticSnapshot=s;let i=I(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&io(t,i,r),s},Xb=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let o=n.__optimisticSnapshot;o!==void 0&&(io(t,o,e.as),delete n.__optimisticSnapshot)},wl=t=>{if(!t)return()=>!0;if(E(t))return e=>e.includes(t);if(P(t)){let e=t.join(":");return n=>n.includes(e)}return t instanceof RegExp?e=>(t.lastIndex=0,t.test(e)):I(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},gj=(t,e)=>{let n=[];for(let o of t.mounted){if(!iC(o)){t.mounted.delete(o);continue}let r=ij(o);r&&e(r)&&n.push(co(o.config,o.element,o.context,{refresh:!0}))}return Promise.allSettled(n).then(()=>{})},Ip=(t,e)=>{jb();for(let[n,o]of t.cache)e(n)&&(o.stale=!0,vp(t,n));for(let[n]of t.active)!t.cache.has(n)&&e(n)&&vp(t,n);return gj(t,e)},uC=(t,e,n)=>{let o=(P(e)?e:[e]).map(r=>r===!0||r==="*"?s=>s.startsWith(n+":"):r?wl(r):()=>!1);return Ip(t,r=>o.some(s=>s(r)))},nS=(t,e)=>{for(let[n]of t.cache)e(n)&&sC(t,n);for(let[n]of t.active)e(n)&&vp(t,n)},oS=()=>!0,dC=(t,e)=>Fi(t,e)?.data??void 0,pC=(t,e,n)=>{let o=Fi(t,e),r=I(n)?n(o?.data):n;$i(t,e,r,null)},mj=async(t,e,n)=>{let o=n?.fetch;if(!o)return;let r=await iS(o,n);if(!r)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:p,baseUrl:g,responseType:h,invalidates:m,optimistic:y,onMutate:x,onSuccess:T,onError:v,onSettled:_}=t,b;if(c===!0||u==="submit")b=bl(e);else if(P(c)){let C=bl(e);b={};for(let O of c)b[O]=C[O]}else e.state?.parse?b=e.state.parse():k(e.state)&&(b={...e.state});l&&(b=l(b,e,e.state)),I(x)&&x(b,e,e.state);let S=y?hj(e,t,b):null;ao(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),mn(e,"onFetchStart"),Fn(t,e,"onFetchStart");let w=n?.analyze?.emitNetwork,A=w?typeof performance<"u"?performance.now():Date.now():0;w&&w({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&r.auth!==!1&&r.getSession){let tt=await r.getSession();if(d===!0&&!tt){S!==void 0&&Xb(e,t);let nt={message:"Not authenticated"};mn(e,"onFetchError",nt),Fn(t,e,"onFetchError",nt);return}}let C=r[i];if(!I(C))return;let O={from:a,data:b,headers:p,baseUrl:g};h!==void 0&&(O.responseType=h),t.params&&(O.params=xl(t.params,e,n));let N=ji(e,n);N&&(O.headers={...O.headers,"Accept-Language":N});let B=aC(t,!0),M=await cC(()=>C(O),B),{data:K,error:q}=M||{};if(q){S!==void 0&&Xb(e,t),ao(e,eS(q)),mn(e,"onFetchError",q),I(v)&&v(q,b,e),I(_)&&_(null,q,b,e),w&&w({phase:"error",mode:"mutation",from:a,method:i,error:q.message||String(q),durationMs:(typeof performance<"u"?performance.now():Date.now())-A});return}if(delete s.__optimisticSnapshot,ao(e,Cp),K!==void 0&&(f||!tS(K))){let tt=f?{[f]:K}:K;e.state?.update&&e.state.update(tt,{preventFetch:!0})}mn(e,"onFetchComplete",K),Fn(t,e,"onFetchComplete",K),I(T)&&T(K,b,e),I(_)&&_(K,null,b,e),w&&w({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-A}),m&&uC(We(n),m,a)}catch(C){S!==void 0&&Xb(e,t),ao(e,eS(C)),mn(e,"onFetchError",C),Fn(t,e,"onFetchError",C),I(v)&&v(C,b,e),I(_)&&_(null,C,b,e),w&&w({phase:"error",mode:"mutation",from:a,method:i,error:C.message||String(C),durationMs:(typeof performance<"u"?performance.now():Date.now())-A})}finally{s.__fetching=!1}},yj=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);I(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])We(n.context).mounted.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},_j=(t,e)=>{if(!t)return null;if(I(t.select))return t;if(t.__resolved)return t.__resolved;if(t.__resolving)return null;let n=typeof t.adapter=="string"?t.adapter:null;if(n!=="rest"||ts[n]||!t.url)return null;let{adapter:o,...r}=t,s=wp(r.url,r.headers,r.auth,r.fetchOptions,r.early,r.reads,r.seed);return s.auth=t.auth,s.url=t.url,s.key=t.key,t.__resolved=s,e.fetch=s,s},bj=t=>t.on==="create"&&(t.method==="select"||t.method==="rpc")&&!Lp(t)&&!t.infinite&&!kl(t),hC=t=>{let e=t&&t.context;if(!e||!e.fetch||rS(e))return;let n=t.__ref;if(!n||!t.fetch||!Fv())return;let o;try{o=bt(t.fetch,t)}catch{return}if(!o)return;let r=P(o)?o:[o];for(let s of r){let i;try{i=Jb(bt(s,t),t)}catch{continue}if(!i||!bj(i)||i.enabled===!1||i.skip===!0)continue;try{if(I(i.enabled)&&!i.enabled(t,t.state)||I(i.skip)&&i.skip(t,t.state))continue}catch{continue}let a=Dp(i.cache);if(!a)continue;let c=_j(e.fetch,e);if(!c||!I(c.seeded))return;Sj(i,a,c,t,e,n)}},Sj=(t,e,n,o,r,s)=>{let i=E(t.select)?t.select:void 0,a,c,l,f,u;try{if(t.query&&I(o.getQuery)){let x=o.getQuery(n.name||"paths");x&&(i=x.select||x.length&&x.join(",")||i)}a=xl(t.params,o,r),c=es(t.page,o),l=es(t.cursor,o);let y=ji(o,r);f=Rp(t,a,Sl(o,r),y,c,l),u=fC(t,i,a,y,c,l)}catch{return}let d=We(r),p=Fi(d,f);if(p&&!p.error)return;t.method==="rpc"&&(u.read=t.read!==!1);let g=n.seeded({method:t.method,...u});if(!g||g.error||g.data===void 0)return;let h=$i(d,f,g.data,null);h.gcTime=e.gcTime||3e5,Hb(g,f),s.__fetchInitialized=!0;let m=g.data;try{I(t.select)&&(m=t.select(m,o,o.state)),t.transform&&(m=t.transform(m,o,o.state))}catch{return}ao(o,Cp),io(o,m,t.as),s.__seededOnCreate=f},aS=(t,e,n,o)=>{if(!t||!o?.fetch)return;let s=bt(t,e);if(!s)return;let i=P(s)?s.map(f=>Jb(bt(f,e),e)).filter(Boolean):[Jb(s,e)].filter(Boolean),a=e.__ref,c=We(o);if(a.__fetchMounted)for(let f of a.__fetchMounted)c.mounted.delete(f);a.__fetchMounted=[],!a.__fetchDisposer&&P(a.__effects)&&(a.__fetchDisposer={dispose:()=>yj(a)},a.__effects.push(a.__fetchDisposer));let l=!rS(o);for(let f of i){let u=lC(f.method),d=u?mj:co,p=!u&&!Lp(f)&&f.method!=="subscribe";if(f.on==="create"?d(f,e,o):queueMicrotask(()=>uj({...f,__runner:d},e,o)),p&&f.on==="create"&&(l&&(f.refetchInterval||f.refetchOnWindowFocus!==!1||f.refetchOnReconnect!==!1)&&pj(f,e,o),!kl(f))){let g={element:e,ref:a,config:f,context:o};c.mounted.add(g),a.__fetchMounted.push(g)}}a.refetch=f=>{for(let u of i)co(u,e,o,{force:!0,...f})},a.fetchNextPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__nextPageParam;if(u==null)return;let d={...f,cursor:u};co(d,e,o,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__prevPageParam;if(u==null)return;let d={...f,cursor:u};co(d,e,o,{direction:"previous",force:!0})}},wj={invalidateQueries:t=>Ip(gn,wl(t)),removeQueries:t=>{nS(gn,t?wl(t):oS)},getQueryData:t=>dC(gn,t),setQueryData:(t,e)=>{pC(gn,t,e)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let o=We(e),r=await iS(n,e);if(!r)return;let s=t.method||"select",i=Sl(null,e),a=ji(null,e),c=Rp({...t,method:s},t.params,i,a),l=r[s];if(!I(l))return;let f={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};a&&(f.headers={...f.headers,"Accept-Language":a}),t.responseType!==void 0&&(f.responseType=t.responseType),s==="rpc"&&(f.read=!Lp(t)&&t.read!==!1);let u=++Op,d=await l(f);if(d?.data!==void 0&&!d?.error&&!kl(t)&&!Ep(o,c,u)){let p=$i(o,c,d.data,null,u,Qb(o,c,u));p.gcTime=Dp(t.cache)?.gcTime||3e5}return d},getCache:()=>gn.cache,clear:()=>nS(gn,oS),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of gn.cache)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||sC(gn,n))}},eC=(t,e)=>k(t)?sS({method:"select",...t},e,e?.context):t,xj={invalidateQueries(t){return Ip(We(this?.context),wl(t))},removeQueries(t){nS(We(this?.context),t?wl(t):oS)},getQueryData(t){return dC(We(this?.context),eC(t,this))},setQueryData(t,e){pC(We(this?.context),eC(t,this),e)}},kj=async t=>{let e=await Mv();if(!e)return null;let{taken:n,config:o}=e,r=new Set,s=[];for(let c of n)c.cacheKey?r.add(c.cacheKey):s.push(c);jb();let i=[],a=async c=>{try{let l=await c.again.send();if(!l||l.error)return;let f=c.result?c.result.data:void 0;if(Tj(l.data,f))return;let{method:u,from:d,params:p}=c.again;i.push({method:u,from:d,params:p,data:l.data,previous:f})}catch{}};if(await Promise.all([r.size?Ip(gn,c=>r.has(c)):null,...s.map(a)]),i.length&&I(o.onRefresh))try{o.onRefresh(i,t)}catch(c){console.error("[@symbo.ls/fetch] seed.onRefresh failed:",c)}return{queries:r.size,reads:s.length,changed:i.length}},Tj=(t,e)=>{if(t===e)return!0;try{return JSON.stringify(t)===JSON.stringify(e)}catch{return!1}},Ej={name:"fetch",init(t){t.fetch&&hC(t)},create(t){let e=t.fetch;e&&(t.parent||We(t.context).active.clear(),aS(e,t,t.state,t.context))}};var Aj=aS;var gC=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},Pp=(t,e,n,o,r)=>{if(t=Li(t,e),!!I(t))try{let s=t.call(e,e,n||e.state,o||e.context,r);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},lo=(t,e,n)=>{if(!e)throw new Error("Element is required");Wo(t,e,n);let o=gC(t,e);if(o){let{state:r,context:s}=e;return Pp(o,e,r,s,n)}},Mp=(t,e,n,o,r,s)=>{if(t=Li(t,n),!!I(t))try{let i=t.call(n,e,n,o||n.state,r||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},cS=(t,e,n,o)=>{Wo(t,n,e,o);let r=gC(t,n);if(r){let{state:s,context:i}=n;return Mp(r,e,n,s,i,o)}};var lS={},Tl={};var vj=()=>ns,Xo="production";function Al(t){let e=this,{__ref:n}=e,o=[].concat(t),r=n.root[o[0]];if(!o||!o.length)return console.log(o,"on",e.key,"is undefined");for(;r.key===o[0]&&(o.shift(),!!o.length);)if(r=r[o[0]],!r)return;return r}function uS(t){let e=this,{parent:n}=e;if(I(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function dS(t){let e=this,{__ref:n}=e,o=n?.__children;if(o)for(let r=0;r<o.length;r++){let s=o[r],i=e[s];if(s===t)return i;if(I(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function pS(t,e=[]){let n=this,{__ref:o}=n,r=o?.__children;if(r){for(let s=0;s<r.length;s++){let i=r[s],a=n[i];if(i===t)e.push(a);else if(I(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function $p(t={}){let e=this;if(e.node?.style){for(let n in t){let o=t[n],r=e[n];if(k(o)&&r)$p.call(r,o);else if(o!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function yC(t){let e=this;if(lo("beforeRemove",e,t)===!1)return e;I(e.node.remove)?e.node.remove():Ho()||(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=$c(e.parent.__ref.__children,e.key)),lo("remove",e,t)}function hS(t){return this[t]}function gS(t,e){let n=this;if(t)return n.update(t,e),n}function mS(t){return t?this.__ref&&this.__ref[t]:this.__ref}function yS(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function vl(){return this.getRef().path}var Np=null,Cl=t=>{Np=t||null},Ui=(t,e)=>{t&&e&&Np===t&&(Np=e)},mC=()=>Np||null;function Ol(t){let e=null,n=o=>o.__element&&o.root?.isRootState;if(!this)e=mC();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&n(this.state),r=I(this.state)&&this.parent.state&&n(this.parent.state);(o||r)&&(e=this.state.root||this.parent.state.root)}return e||(e=mC()),t?e?.[t]:e}function Rl(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for "${this?.key||"<unknown>"}" \u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function Dl(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Ll(t){let e=this.getRoot()?.context;return t?e[t]:e}function Il(t){let e=this.context;return t?e[t]:e}var _S=(t,e,n,o)=>Object.defineProperty(t,e,{get:n,set:o});function Fp(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||jo.has(n)&&!Vc.has(n)||e.push(n);return e}function jp(t=[]){let e=this,n={},o=Fp.call(e),r=o.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||r&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=I(c&&c.parse)?c.parse():c;n[a]=I(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];n[a]=u}else Nt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function El(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let o=jp.call(n,t),r=t.length?new Set(t):null;for(let s in o){if(r&&r.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>U(a)?El.call(a,t,e):a):U(i)&&(o[s]=El.call(i,t,e))}return o}function Vi(...t){if(Xo!=="test"&&Xo!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(o=>console.log(`%c${o}:
22
- `,"font-weight: bold",e[o])):(console.log(n.path),e.keys().forEach(r=>console.log(`%c${r}:`,"font-weight: bold",e[r]))),console.log(e),console.groupEnd(e.key),e}function bS(...t){(Xo==="test"||Xo==="development")&&console.log(...t)}function Pl(...t){(Xo==="test"||Xo==="development")&&console.warn(...t)}function os(...t){if(Xo==="test"||Xo==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Vi.call(this),new Error(...t)}}function Ml(){let t=this,{key:e,parent:n}=t,{__children:o}=n.__ref,r=o.indexOf(e),s=o[r+1];return n[s]}function Bl(t){let e=t||this,{key:n,parent:o}=e,{__children:r}=o.__ref;if(!r)return;let s=r.indexOf(n);return o[r[s-1]]}function Nl(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,o={},r;for(let s in t)t[s]!==n[s]&&(r=!0,o[s]=t[s]);return{changed:s=>{if(!r)return;let i=s(o,ut(n));for(let a in o)n[a]=o[a];return i},timeout:(s,i)=>{if(!r)return;let a=setTimeout(()=>{s(o),clearTimeout(a)},i)}}}function SS(t,...e){let n=this.context,o=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(o&&!zr(o))try{let r=o.call(this,...e);return r&&typeof r.then=="function"&&r.catch(s=>{os.call(this,s)}),r}catch(r){if(os.call(this,r),n?.strictMode)throw r}}var Cj="[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.",Bp=()=>Promise.resolve().then(vj).catch(t=>{throw new Error(Cj,{cause:t})});async function $l(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:r}=await Bp();await r(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:r}=await Bp();await r(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=Bp().then(({resolveDb:r})=>r(e));e.__resolving=n;let o=await n;if(e.__resolved=o,t.context.fetch=o,delete e.__resolving,o?.getSession){let{initAdapterAuth:r}=await Bp();await r(o,t.context)}return o}function Fl(t){let e=this,n=t||Tl.useStateQuery||e.context?.useStateQuery;if(!n)return null;let o={};if(fS(e,o),n===!0)return o;let r=Mj[n];return r?r(o):o}var fS=(t,e)=>{let n=t.__ref;if(!n)return;let o=n.__state;o&&typeof o=="string"&&Oj(e,o);let r=n.__children;if(r)for(let a=0;a<r.length;a++){let c=t[r[a]];c&&c.__ref&&fS(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&fS(i,e)},Oj=(t,e)=>{let o=e.replaceAll("../","").replaceAll("~/","").split("/"),r=t;for(let s=0;s<o.length;s++){let i=o[s];s===o.length-1?r[i]||(r[i]=!0):(r[i]===!0&&(r[i]={}),r[i]||(r[i]={}),r=r[i])}},_C=(t,e=0)=>{let n=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
23
- ${_C(i,e+1)}
21
+ return (${c}); })`)(e)}catch{try{e[a]=R.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!o(i))try{e[i]=R.eval(`(${a})`)}catch{e[i]=a}return e},U_=(t,e={verbose:!0})=>{try{return t?R.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},V_=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Wd=t=>{for(let e in t)return!1;return!0},H_=t=>k(t)&&Wd(t),z_=()=>Object.create(null),Jc=(t,e,n={})=>{let o=n.exclude||[],r=n.preventUnderscore;for(let s in e)o.includes(s)||!r&&Wr(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},Yr=(t,e,n=[])=>{let o=n instanceof Set;for(let r in e)Wr(r)||r==="constructor"||r==="prototype"||(o?n.has(r):n.includes(r))||(t[r]=e[r]);return t},ne=(t,e,n={},o=new WeakMap)=>{if(!U(t)||!U(e)||ue(t)||ue(e))return e;if(o.has(t))return o.get(t);o.set(t,t);let r=n.exclude,s=r?r instanceof Set?r:new Set(r):null,i=!n.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Wr(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];ue(l)?t[a]=l:U(c)&&U(l)?t[a]=ne(c,l,n,o):l!==void 0&&(t[a]=l)}return t},Gd=(t,e,n=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);let o=Object.keys(t),r=Object.keys(e);if(o.length!==r.length)return!1;for(let s=0;s<o.length;s++){let i=o[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Gd(t[i],e[i],n))return!1}return!0},V2=new Set(["node","__ref"]),W_=(t,e,n=V2)=>{if(t===e)return!0;if(!U(t)||!U(e)||ue(t)||ue(e))return t===e;let o=n instanceof Set?n:new Set(n),r=new WeakSet;function s(i,a){if(r.has(a))return!0;r.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||o.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(ue(l)||ue(f)){if(l!==f)return!1}else if(U(l)&&U(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},G_=(t,e)=>{if(e==null)return t;if(pe(e)("string","number"))delete t[e];else if(P(e))for(let n=0;n<e.length;n++)delete t[e[n]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Kd=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Kd(t[n]));return e},K_=(t,e)=>{if(t.length===0)return e;let n={},o=n;for(let r=0;r<t.length;r++)r===t.length-1&&e?o[t[r]]=e:(o[t[r]]={},o=o[t[r]]);return n},q_=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let r=0;r<e.length-1;r++){if(n[e[r]]===void 0)return;n=n[e[r]]}let o=e[e.length-1];n&&Object.prototype.hasOwnProperty.call(n,o)&&delete n[o]},Y_=(t,e,n)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let o=t;for(let r=0;r<e.length-1;r++)(!o[e[r]]||typeof o[e[r]]!="object")&&(o[e[r]]={}),o=o[e[r]];return o[e[e.length-1]]=n,t},X_=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length;o++){if(n==null)return;n=n[e[o]]}return n},Z_=t=>{let n=[],o=0;for(let r=0;r<t.length;r++)if(n.length<2)n.push(t[r]);else if(t[r]===n[r%2]?o++:(n=[t[r-1],t[r]],o=1),o>=20)return(sv==="test"||sv==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},Q_=t=>{let e=new WeakSet;function n(o){if(o&&typeof o=="object"){if(e.has(o))return!0;e.add(o);for(let r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&n(o[r]))return console.log(o,"cycle at "+r),!0}return!1}return n(t)},J_=(t,e)=>{let n=e instanceof Set?e:new Set(e),o={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&!n.has(r)&&(o[r]=t[r]);return o};var tl=(function(){let t=0;function e(){return t++,t}return e})(),el=tl,nl=(t,e,n)=>(bt(n,t)||n||t.key||tl()).toString();var _n="production",tb=_n,Go=(t=_n)=>t==="production",qd=(t=_n)=>t==="testing"||t==="test",eb=qd,nb=(t=_n)=>t==="staging",ob=(t=_n)=>t==="local",Ko=(t=_n)=>t==="development"||t==="dev"||t==="local",rb=(t,e=_n)=>e[t],co=(t=_n)=>!Go(t),J=t=>{if(!t&&globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__===!0)return!1;let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let n=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof n=="string"&&n?n==="localhost"||n==="127.0.0.1"||n.endsWith(".localhost"):!1};function ol(t,e,n){let o;return function(){let r=this,s=arguments,i=function(){o=null,n||t.apply(r,s)},a=n&&!o;clearTimeout(o),o=setTimeout(i,e),a&&t.apply(r,s)}}var sb=(t,e,n=300)=>{let o;return(...r)=>{clearTimeout(o),o=setTimeout(()=>{e.apply(t,r)},n)}},ib=t=>{let e={};return(...n)=>{let o=n[0];if(o in e)return e[o];{let r=t(o);return e[o]=r,r}}},H2=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,Ii=t=>H2.test(t),Pi=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},Mi=(t,e)=>{if(typeof t=="function")return t;let n=e?.context?.plugins;if(!n)return t;for(let o of n)if(o.resolveHandler){let r=o.resolveHandler(t,e);if(typeof r=="function")return r}return t},qo=(t,e,...n)=>{let o=e?.context?.plugins;if(!o)return!1;let r=!1;for(let s of o)typeof s[t]=="function"&&(s[t](e,...n),r=!0);return r};function ab(t,e=window){let n=function(){return t.apply(e,arguments)};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}var cb=(t,e)=>{let{__ref:n}=t,o=t.if;if(I(o)){let r;try{r=o(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete n.__if;return}r?n.__if=!0:delete n.__if}else o!=null&&typeof o=="object"?bt(o,t)?n.__if=!0:delete n.__if:n.__if=!0};var lb=(t,...e)=>{t&&e.map(n=>console.log(n))},fb=(t,e,...n)=>{t&&(console.group(e),n.map(o=>console.log(o)),console.groupEnd(e))};var ub=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),db=(t,e,n=365)=>{if(Gt(wt)||Gt(wt.cookie))return;let o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3);let r=`expires=${o.toUTCString()}`;wt.cookie=`${t}=${e};${r};path=/`},pb=t=>{if(Gt(wt)||Gt(wt.cookie))return;let e=`${t}=`,o=decodeURIComponent(wt.cookie).split(";");for(let r=0;r<o.length;r++){let s=o[r];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},hb=t=>{Gt(wt)||Gt(wt.cookie)||(wt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")};function gb(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function mb(t,e){if(e!=null)try{if(!window.localStorage)return;let n=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,n)}catch{}}var Bi={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},kv=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),yb=t=>Bi.body.has(t);var _b="production",Tv=t=>t.sourcemap!==!1&&_b!=="production",Ni=t=>{if(!t)return[];let e=[],n=t.extends;n&&(P(n)?e.push(...n):e.push(n));let o=t.extend;return o&&(P(o)?e.push(...o):e.push(o)),e},Ge=t=>{if(!P(t))return t;let e=[];for(let n=t.length-1;n>=0;n--){let o=t[n];e.push(P(o)?Ge(o):o)}return e},$i=t=>{if(t.includes("+"))return t.split("+").filter(Nn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Nn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},il=(t,e,n)=>{let o=[],r=$i(n);r&&(o=[...r]);let s=Ge(Ni(t));return s.length&&(o=[...o,...s]),o},Mn=(t,e)=>{let{__ref:n}=e,{__extends:o}=n;if(!t)return o;let r=e.variant,s=e.context;if(r&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${r}`;s.components[i]&&(t=i)}return o.includes(t)||(o=Array.isArray(t)?[...o,...t]:[...o,t],n.__extends=o),o},bb=(t,e)=>{if(!t)return e;let{extends:n}=e,o=P(n)?n:[n],r=P(t)?t:[t];return{...e,extends:Ci(r,o)}},Yd=()=>Math.random().toString(36).substring(2),al={},Sb={},cl=t=>al[t.__hash],Xd=(t,e)=>{let n=Yd();return E(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(al[n]=e),e},Zd=(t,e)=>t.__hash?e.concat(cl(t)):Xd(t,e),ll=(t,e,n,o=new Set,r,s)=>{for(let i of t)P(i)?ll(i,e,n,o,r,s):Fi(i,e,n,o,r,void 0,s);return e},Qd=(t,e,n,o=new Set,r,s,i)=>{let a=Ni(t),c={...t};delete c.extends,delete c.extend;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),r&&r.push(s)),a.length&&Fi(Ge(a),e,n,o,r,s,i),e},Fi=(t,e,n,o=new Set,r,s,i)=>{if(!t||o.has(t))return e;if(P(t))return ll(t,e,n,o,r,i);let a=s;return E(t)?(a=t,t=fl(t,n)):i&&k(t)&&i.has(t)&&(a=i.get(t)),o.has(t)||(o.add(t),t?.extends||t?.extend?Qd(t,e,n,o,r,a,i):t&&(e.push(t),r&&r.push(a))),e},z2=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),Bn=(t,e,n,o,r)=>{e=ut(e);for(let s in e){if(z2.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,n&&o?k(a)&&!P(a)?(n[s]=n[s]||{},Ev(n[s],a,o)):n[s]=o:n&&r?.[s]&&(n[s]=r[s]);else if(k(i)&&k(a)){let c=n?n[s]=n[s]||{}:void 0,l=r?.[s];Nn(s)?t[s]=Bn(i,a,c,o,l):Bn(i,a,c,o,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(P(i)&&P(a))t[s]=i.concat(a);else if(P(i)&&k(a)){let c=Bn({},i);t[s]=Bn(c,a)}}}}return t},Ev=(t,e,n,o)=>{if(o||(o=new WeakSet),!o.has(e)){o.add(e);for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="__proto__"||r==="constructor"||r==="prototype")continue;let s=e[r];k(s)&&!P(s)?(t[r]=t[r]||{},Ev(t[r],s,n,o)):t[r]=n}}},rl=(t,e,n)=>t.reduce((o,r,s)=>{let i=ut(r),a=n?n[s]:void 0;return Bn(o,i,e,a)},{}),fl=(t,e,n={},o)=>{let r=e?.components||n.components,s=e?.pages||n.pages;if(E(t)){let i=r&&(r[t+"."+o]||r[t]||r["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;n.verbose&&(_b==="test"||_b==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},wb=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),sl=(t,e,n,o)=>{if(!t)return[];if(t.__hash)return cl(t)||[];let s=Fi(t,[],e,new Set,n,void 0,o);return n?s:Zd(t,s)},xb=(t,e)=>{if(!t)return e;let n=P(t)?t:[t];return Ci(n,e)},kb=t=>{let e=[];function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(o,r)&&(Nn(r)&&e.push(r),r==="extends"&&(typeof o[r]=="string"?e.push(o[r]):Array.isArray(o[r])&&(e=e.concat(o[r]))),typeof o[r]=="object"&&o[r]!==null&&n(o[r]))}return n(t),e},Jd=(t,e,n={})=>{let{__ref:o}=t,r=t.context||e.context,s=t.variant,i=Ni(t);if(i.length){let a=Ge(i),[c,...l]=a,f=typeof c=="string"&&s&&r?.components?`${c}.${s}`:null;f&&r.components[f]?Mn([f,...l],t):Mn(a,t)}return tp(t,e,n),ep(t,e,n),np(t,e,n),t.component&&Mn(Ge(bt(t.component,t)),t),r.defaultExtends&&Mn(Ge(r.defaultExtends),t),Oi(o.__extends)},tp=(t,e,n={})=>{let{__ref:o}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Mn(Ge(e.childProps.extends),t),o.__extends},ep=(t,e,n={})=>{let{__ref:o}=t,r=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!r&&s&&Mn(Ge(s),t),o.__extends},np=(t,e,n={})=>{let{__ref:o}=t,r=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return r&&!i&&!s&&Mn(Ge(r),t),o.__extends},op=(t,e,n={})=>{let{__ref:o}=t,r=t.context||e.context,s=t.variant,i=Tv(n),a=i?[...o.__extends]:null,c=Oi(o.__extends.map((l,f)=>fl(l,r,n,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let p=c[d],g=a[d];p&&k(p)&&E(g)&&l.set(p,g)}let f=[],u=sl(c,r,f,l);o.__extendsStack=u,o.__extendsNames=f}else{let l=sl(c,r);o.__extendsStack=l}return o.__extendsStack},rp=(t,e,n={})=>{let{__ref:o}=t,{__extendsStack:r}=o;if(Tv(n)){let s={},i=o.__extendsNames||[],a=rl(r,s,i),c={};Bn(t,a,c,void 0,s),o.__sourcemap=c}else{let s=rl(r);Bn(t,s)}return t},Av=(t,e,n={})=>(Jd(t,e,n),op(t,e,n),rp(t,e,n),t);var Nn=t=>{if(!E(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90};function Tb(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Eb(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Ab(t,e,n){let{context:o}=e||{},[r]=$i(n),s=n||r;return o?.components?.[s]||o?.pages?.[s]}function vv(t,e){let{props:n,on:o}=e,r=Ur(t.split("on")[1]),s=o[r],i=n[t];I(s)?o[r]=(...a)=>{if(s(...a)!==!1&&I(i))return i(...a)}:o[r]=i}var vb=/^[A-Z]/,Cv=/^\d+$/,Ov=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),W2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),G2=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(W2.has(e)||vb.test(e))return!0;return!1},pl=(t,e,n)=>{let{props:o,__ref:r}=t;if(r.__propsStack=[],o)r.__initialProps=o;else return{};return U(o)?{...o}:(r.__propsStack.push(o),{})};function sp(t,e={}){let n=e.cachedKeys||[];for(let o in t){let r=t[o];if(o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o[2]===o[2].toUpperCase()&&(I(r)||r!=null&&Pi(this.context))){let g=Ur(o.slice(2));t.on&&(t.on[g]=r),delete t[o];continue}if(o==="childProps"){t.props[o]=r,delete t[o],n.push(o);continue}let a=this.define?.[o],c=this.context?.define?.[o],l=k(a)||I(a),f=k(c)||I(c);if(l||f)continue;let u=o.charAt(0);if(Ov.has(u)){t.props[o]=r,delete t[o],n.push(o);continue}let d=vb.test(o)||Cv.test(o)||G2(r),p=Ho.has(o);!d&&!p&&(o in t.props||(t.props[o]=r),delete t[o],n.push(o))}return t}function ip(t=this,e){let n=e.cachedKeys||[];for(let o in t.props){let r=t.props[o],s=o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110,i=I(r)||r!=null&&Pi(this.context);if(s&&i){vv(o,t),delete t.props[o];continue}if(n.includes(o)||o==="childProps")continue;let a=o.charAt(0);if(Ov.has(a))continue;let c=this.define?.[o],l=this.context?.define?.[o],f=k(c)||I(c),u=k(l)||I(l),d=vb.test(o)||Cv.test(o),p=Ho.has(o);(d||p||f||u)&&(t[o]===void 0||r===null)&&(t[o]=r,t.props&&delete t.props[o])}return t}function ap(t=this){let e=[];return sp.call(this,t,{cachedKeys:e}),ip.call(this,t,{cachedKeys:e}),t}function Cb(t={}){return t.on||(t.on={}),t.props||(t.props={}),ap.call(this,t)}var ul=t=>pe(t)("string","number")?{inheritedString:t}:t,Ob=(t,e)=>!t||!e.length?!1:e.includes(t),hl=(t,e)=>{let{__ref:n}=t,o=n.__propsStack||[],r=e.props;if(!r)return o;let s=r[t.key],i=r.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=ul(i);o.unshift(c)}if(s){let c=ul(s);o.unshift(c)}return o};function Rb(t,e){this.__element.update({props:t},e)}function gl(t){let e={update:Rb.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var ml=t=>{let e=new Set;return t.filter(n=>!n||zo.has(n)||e.has(n)?!1:(e.add(n),!0))},yl=(t,e,n)=>(e.props=t.reduce((o,r)=>{if(zo.has(r))return o;for(;I(r);)r=bt(r,e);return mt(o,ut(r,{exclude:zo}))},{}),gl(e),e.props),cp=(t,e)=>{let{props:n,__ref:o}=t,r=o.__propsStack||[];if(e?.props&&(r=[...hl(t,e)]),k(n)?r.push(n):n==="inherit"&&e?.props?r.push(e.props):n&&r.push(n),P(o.__extendsStack))for(let s=0;s<o.__extendsStack.length;s++){let i=o.__extendsStack[s];i.props&&i.props!==n&&r.push(i.props)}return o.__propsStack=ml(r),o.__propsStack},dl=(t,e)=>{let{__ref:n}=t,o=cp(t,e);o.length?yl(o,t):(n.__propsStack=[],t.props={})},Db=function(t,e,n){let{__ref:o}=t;if(o.__if)dl(t,e);else try{dl(t,e)}catch(r){t.context?.designSystem?.verbose&&console.warn("initProps error at",o.path?.join("."),r),t.props={},o.__propsStack=[]}return gl(t),t},Lb=(t,e,n)=>{let{__ref:o}=e,s=[...o.__propsStack||[]],i=hl(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),o.__propsStack=ml(s),o.__propsStack.length&&yl(o.__propsStack,e),e};var Rv="production",lp=(t,e,n)=>{let o=e.childExtends&&e.childExtends.tag,r=e.childProps&&e.childProps.tag,s=Bi.body.has(n)&&n;return{text:t,tag:o||r||s||"string"}},fp=(t,e,n)=>{if(t===void 0)return(Rv==="test"||Rv==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:pe(t)("string","number")?lp(t,e,n):I(t)?{props:t}:t},up=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},dp=(t,e,n,o,r)=>{if(!e)return r;if(io(e)){let s={key:":root",node:e};return r[`${n}_parent`]=s,s}return e},Ib=(t,e)=>{let{__ref:n}=t,{__ref:o}=e,r=e&&e.key===":root";n?.root||(n.root=r?t:o?.root)},pp=(t,e,n)=>{let{__ref:o}=e;return o||(o=e.ref={}),o.path||(o.path=[]),o.path.concat(n)},hp=(t,e,n,o,r)=>(o.context&&!r.context&&!t.context&&(r.context=o.context),o.context||e.context||r.context||t.context),gp=(t,e,n)=>{let o=up(t,e);return t.__ref=o,o.__defineCache||(o.__defineCache={}),o.__exec||(o.__exec={}),o.__execProps||(o.__execProps={}),o.__class||(o.__class={}),o.__classNames||(o.__classNames={}),o.__attr||(o.__attr={}),o.__changes||(o.__changes=[]),o.__children||(o.__children=[]),o.__extends=il(t,e,n),o.path=pp(t,e,n),o},Pb=(t,e,n,o,r)=>{let i=t?.__hash?{extends:[t]}:fp(t,e,n);if(!i)return;let a=dp(i,e,n,o,r),c=nl(i,a,n);gp(i,a,c);let l=pl(i,a,c),f=hp(i,a,c,o,r),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}};var Mb=t=>{let{state:e,props:n,__ref:o}=t,r=n?.state||e;return pe(r)("string","number")?(o.__state=r,{value:r}):r===!0?(o.__state=t.key,{}):r?(o.__hasRootState=!0,r):!1},mp=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},yp=(t,e)=>{if(!t.includes("../"))return;let o=t.split("../").length-1;for(let r=0;r<o;r++){if(!e.parent)return null;e=e.parent}return e},_p=(t,e,n={})=>{let o=E(t)?t.split("/"):[t],r=o.length-1;for(let s=0;s<r;s++){let i=o[s],a=o[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return n.returnParent?e:e[t]},bp=(t,e,n={})=>{let r=t.__ref.__state;if(!Sp(t))return;let s=mp(r,e.state),i=e.state;if(s)i=s,r=r.replaceAll("~/","");else{let a=yp(r,e.state);a&&(i=a,r=r.replaceAll("../",""))}if(i)return _p(r,i,n)},Bb=(t,e)=>{let n=t.__ref,o=bp(t,e);if(o===void 0)return t.state;if(pe(o)("object","array"))return ut(o);if(pe(o)("string","number","boolean"))return n.__stateType=typeof o,{value:o};globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(n.__state,"is not present. Replacing with",{})},Sp=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&pe(n)("number","string","boolean"))},Nb=function(t){return U(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},$b=(t,e)=>{if(!t)return e||{};let n=t.split("/"),o={},r=o,s=n.length-1;for(let i=0;i<=s;i++)r[n[i]]=i===s?e||{}:{},r=r[n[i]];return o},Fb=(t,e)=>{let{__element:n}=e,o=n?.state;if(!o)return;let r=ut(o,Vr),s={[t.key]:r},i=k(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?Vc(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),r},wp=new Set(["parent","root"]),Dv=new Set,K2=t=>{Dv.has(t)||(Dv.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&console.warn(`[smbls/state] the declared state key "${t}" names a state bookkeeping slot (parent / root) and was NOT copied into the state. Rename the key (e.g. "`+t.split(".").pop()+'Data").'))},Pv=(t,e,n,o)=>{if(t===e)return t;for(let r=0;r<o.length;r+=2)if(o[r]===t&&o[r+1]===e)return t;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r.charCodeAt(0)===95&&r.charCodeAt(1)===95||r==="constructor"||r==="prototype")continue;let s=n?n+"."+r:r;if(wp.has(r)){K2(s);continue}let i=t[r],a=e[r];U(i)&&U(a)?(o.push(t,e),Pv(i,a,s,o),o.length-=2):i===void 0&&(t[r]=a)}return t},Yo=(t,e)=>!U(t)||!U(e)?t:Pv(t,e,"",[]),jb=(t,e,n={})=>{let{overwrite:o}=n;if(!o)return;let r=o==="shallow";if(o==="merge"){mt(t,e,Vr);return}(r?Yr:ne)(t,e,Vr)},Lv="__polyglotSeededKeys",Xo=t=>{if(!k(t))return new Set;let e=t[Lv];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,Lv,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Xr=(t,e,n)=>Xo(t).has(e)?!0:!k(n)||n[e]===void 0,Iv="__polyglotSeededValues",Mv=t=>{if(!k(t))return new Map;let e=t[Iv];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,Iv,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Bv=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},_l=(t,e,n)=>{if(!Xo(t).has(e))return!1;let o=Mv(t);if(!o.has(e))return!0;let r=k(n)||Array.isArray(n)?n[e]:void 0,s=Bv(r);return s!==null&&s===o.get(e)},$n=(t,e,...n)=>(Xo(t).add(e),n.length&&Mv(t).set(e,Bv(n[0])),e);var q2=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},Ub=(t,e)=>{let{__ref:n}=t,o=t.context||e.context||n.root?.context;o&&!o.globalScope&&(o.globalScope={});let r=e.scope||n.root?.scope,s=o?.globalScope;if(!t.scope)r?t.scope=r:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=r||s;i&&!q2(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}};var rs=/*@__PURE__*/$({},{EARLY_KEY:()=>Qo,SEED_BLOCK:()=>bl,STALE_ATTRIBUTE:()=>Kb,createAdapter:()=>mj,createEarlySeedBlock:()=>Uv,createEarlySeedScript:()=>Wv,default:()=>Nj,earlyKey:()=>Jr,executeFetch:()=>pS,fetchFunctions:()=>Ij,fetchPlugin:()=>Bj,hasAdapter:()=>gj,initAdapterAuth:()=>Rp,parseDuration:()=>Zo,queryClient:()=>Lj,registerAdapter:()=>hj,requestsInFlight:()=>Qv,resolveDb:()=>dC,revalidateSeed:()=>Pj,seedFromPage:()=>kC,seedIsStale:()=>Hv,whenRequestsIdle:()=>Jv,whenSeedTaken:()=>Vv});var Vb=/*@__PURE__*/$({},{localAdapter:()=>Nv,setup:()=>X2});var xp=(t,e)=>{if(!e)return!0;for(let n in e){let o=e[n];if(o===null){if(t[n]!==null&&t[n]!==void 0)return!1}else if(Array.isArray(o)){if(!o.includes(t[n]))return!1}else if(typeof o=="object"){for(let r in o)if(r==="gt"&&!(t[n]>o[r])||r==="gte"&&!(t[n]>=o[r])||r==="lt"&&!(t[n]<o[r])||r==="lte"&&!(t[n]<=o[r])||r==="neq"&&t[n]===o[r]||r==="like"&&!String(t[n]).includes(o[r]))return!1}else if(t[n]!==o)return!1}return!0},Y2=(t,{order:e,limit:n,offset:o,single:r})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return o&&(s=s.slice(o)),n&&(s=s.slice(0,n)),r?{data:s[0]||null,error:null}:{data:s,error:null}},X2=async({data:t,...e})=>Nv(t,e),Nv=(t={},e={})=>{let n={},o={},r=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!n[f])if(r)try{let u=localStorage.getItem(s+f);n[f]=u?JSON.parse(u):t[f]||[]}catch{n[f]=t[f]||[]}else n[f]=t[f]||[];return n[f]},a=f=>{if(r)try{localStorage.setItem(s+f,JSON.stringify(n[f]))}catch{}},c=(f,u,d,p)=>{let g=o[f];if(g)for(let h of g)h(d,p,{event:u,table:f})},l=Date.now();return{name:"local",store:n,select:async({from:f,params:u,...d})=>{let g=i(f).filter(h=>xp(h,u));return Y2(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return d.push(m),m});a(f);for(let h of g)c(f,"INSERT",h,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let p=i(f),g=[];for(let h=0;h<p.length;h++)if(xp(p[h],d)){let m={...p[h]};Object.assign(p[h],u),g.push(p[h]),c(f,"UPDATE",p[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let p=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=d||(m.id!==void 0?{id:m.id}:null),x=y?p.findIndex(T=>xp(T,y)):-1;if(x>-1){let T={...p[x]};Object.assign(p[x],m),h.push(p[x]),c(f,"UPDATE",p[x],T)}else{let T={id:m.id||++l,...m};p.push(T),h.push(T),c(f,"INSERT",T,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),p=[];for(let g=d.length-1;g>=0;g--)xp(d[g],u)&&(p.push(d[g]),d.splice(g,1),c(f,"DELETE",null,p[p.length-1]));return a(f),{data:p,error:null}},subscribe:({from:f,on:u},d)=>{o[f]||(o[f]=[]);let p=(g,h,m)=>{u&&u!=="*"&&u!==m.event||d(g,h,m)};return o[f].push(p),()=>{let g=o[f].indexOf(p);g>-1&&o[f].splice(g,1)}}}};var Zo=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let n=parseInt(e[1]),o=e[2];return o==="ms"?n:o==="s"?n*1e3:o==="m"?n*6e4:o==="h"?n*36e5:0};var Qo="@symbo.ls/fetch:EARLY",Qr=3e4,Jr=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},Hb=t=>{if(t==null)return!0;if(typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;for(let n in t){let o=t[n];if(!(o===void 0||typeof o=="string"||typeof o=="boolean")&&!(typeof o=="number"&&isFinite(o)))return!1}return!0};var Fn=()=>Symbol.for(Qo),zb=(t,e)=>{let n=[];for(let o in t||{}){let r=o.toLowerCase(),s={name:o,header:r,param:t[o],found:!1,value:void 0};for(let i in e||{})i.toLowerCase()===r&&(s.found=!0,s.value=e[i]);n.push(s)}return n},$v=(t,e)=>{if(!t||typeof t!="object"||!e||typeof e!="object")return t;let n={...t};return n.query===void 0&&e.query!==void 0&&(n.query=e.query),n.rpc===void 0&&e.rpc!==void 0&&(n.rpc=e.rpc),n},Fv=(t,e,n)=>{let o=Fn();if(Z2(n),!t||typeof t!="object"){let i=globalThis[o];return i&&i.seeded?{carried:{},rpc:!1,maxAge:Qr,seeded:!0}:null}globalThis[o]||(globalThis[o]={entries:{}});let r={};for(let{header:i,found:a,value:c}of zb(t.query,e))a&&(r[i]=c);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:Qr;return{carried:r,rpc:t.rpc==="get",maxAge:s,seeded:!!globalThis[o].seeded}},Wb=(t,e=Qr,n)=>{let o=globalThis[Fn()],r=o&&o.entries&&o.entries[t];return!r||(delete o.entries[t],!(Date.now()-r.time<=e))?null:r.seeded?(o.stale&&n&&(r.seeded.taken=qb(o,t,n())),Promise.resolve(r.seeded)):Promise.resolve(r.answer).then(s=>s&&s.ok&&!s.bodyUsed?s:null,()=>null)},Gb=()=>{let t=globalThis[Fn()];t&&t.entries&&(t.entries={})},jv=t=>(Array.isArray(t)?t:[]).filter(e=>e&&typeof e.url=="string"&&typeof e.body=="string").map(e=>({k:Jr(e.url,e.lang||""),s:e.status||200,t:e.type||"application/json",b:e.body})),bl='script[type="application/json"][data-fetch-seed]',Uv=t=>{let e=jv(t);return e.length?'<script type="application/json" data-fetch-seed>'+ts(e)+"<\/script>":""},Z2=t=>{let e=jn(globalThis.document,bl,{remove:!0}),n=t===!1?null:e&&e.value;if(!Array.isArray(n)||!n.length){let c=globalThis[Fn()];c&&c.stale||(Zr=null);return}let o=Fn(),r=globalThis[o]||(globalThis[o]={entries:{}});r.entries||(r.entries={}),r.seeded=!0;let s=Date.now();for(let c of n)!c||typeof c.k!="string"||typeof c.b!="string"||r.entries[c.k]||(r.entries[c.k]={time:s,seeded:{seeded:!0,status:c.s||200,type:c.t||"application/json",body:c.b}});let i=es(globalThis.document)||{stamp:null,time:null},a=Q2(t,i.stamp,i.time);a?(r.stale=a,r.seedConfig=t&&typeof t=="object"?t:null):Zr=null},Kb="data-smbls-stale",Q2=(t,e,n)=>{let o=globalThis.document&&globalThis.document.documentElement;if(o&&typeof o.hasAttribute=="function"&&o.hasAttribute(Kb))return!0;if(!t||typeof t!="object")return!1;if(t.maxAge!=null&&n!==null){let r=Zo(t.maxAge);if(r>0&&Date.now()-n>r)return!0}if(typeof t.isStale!="function")return!1;try{let r=t.isStale(e,{time:n});return r&&typeof r.then=="function"?Promise.resolve(r).then(Boolean,()=>!1):!!r}catch{return!1}},qb=(t,e,n)=>{let o={key:e,again:n,result:null,cacheKey:null};if((t.taken||(t.taken=[])).push(o),Zr){let r=Zr;Zr=null;for(let s of r)try{s()}catch{}}return o},Zr=null,Vv=t=>{let e=globalThis[Fn()];return e&&e.seeded&&!e.stale||e&&e.stale&&e.revalidated?!1:e&&e.stale&&e.taken&&e.taken.length?(t(),!0):((Zr||(Zr=new Set)).add(t),!0)},kp=(t,e)=>{let n=globalThis[Fn()];!n||!t||typeof t!="object"||(e.result=t,(n.results||(n.results=new WeakMap)).set(t,e))},Yb=(t,e)=>{let n=globalThis[Fn()],o=n&&n.results&&t?n.results.get(t):null;o&&(o.cacheKey=e)},Hv=()=>{let t=globalThis[Fn()];return!!(t&&t.stale&&!t.revalidated)},zv=async()=>{let t=globalThis[Fn()];if(!t||!t.stale||t.revalidated)return null;t.revalidated=!0;let e=await t.stale,n=t.taken||[];return t.taken=[],t.results=null,e?{taken:n,config:t.seedConfig||{}}:null},Wv=t=>{let e=jv(t);if(!e.length)return"";let n=ts(e);return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(Qo)+"),r=globalThis[k]||(globalThis[k]={entries:{}}),t=Date.now(),l="+n+';r.seeded=true;r.entries=r.entries||{};for(var i=0;i<l.length;i++){var e=l[i];r.entries[e.k]={time:t,answer:Promise.resolve(new Response(e.b,{status:e.s,headers:{"content-type":e.t}}))}}}catch(e){}})()<\/script>'};var Gv=()=>globalThis[Symbol.for(Qo)],Kv=(t,e=Qr,n,o)=>{let r=Gv(),s=r&&r.entries&&r.entries[t];if(!s||!s.seeded||!(Date.now()-s.time<=e))return null;let i=o(s.seeded);return i?(delete r.entries[t],r.stale&&n&&kp(i,qb(r,t,n())),i):null},qv=()=>{let t=Gv();if(t&&t.seeded){for(let n in t.entries)if(t.entries[n]&&t.entries[n].seeded)return!0;return!1}let e=globalThis.document;return!!(e&&typeof e.querySelector=="function"&&e.querySelector(bl))};var Jb=/*@__PURE__*/$({},{buildUrl:()=>Sl,headerEntries:()=>sC,restAdapter:()=>Ep,selectQuery:()=>Zb,setup:()=>lj,withQuery:()=>wl});var Yv=Symbol.for("@symbo.ls/fetch:IN_FLIGHT"),Tp=()=>globalThis[Yv]||(globalThis[Yv]={count:0,waiters:[]}),Xv=()=>{Tp().count++},Zv=()=>{let t=Tp();if(t.count=t.count>0?t.count-1:0,t.count===0&&t.waiters.length){let e=t.waiters;t.waiters=[];for(let n of e)n()}},Qv=()=>Tp().count,Jv=()=>{let t=Tp();return t.count===0?Promise.resolve():new Promise(e=>{t.waiters.push(e)})};var J2=(t,e)=>{let n=new URL(t);return n.searchParams.delete("limit"),n.searchParams.sort(),n.toString()+" "+(e||"")},tC=(t,e,n,o=Qr)=>{let r=globalThis[Symbol.for(Qo)],s=r&&r.slices&&r.slices[J2(t,e)];if(!s||!(n>0))return null;for(let i=0;i<s.length;i++){let a=s[i],c=r.entries&&r.entries[a];if(!(!c||!(c.limit>=n)))return s.splice(i,1),delete r.entries[a],Date.now()-c.time<=o?Promise.resolve(c.answer).then(l=>{if(!l||!l.ok||l.bodyUsed)return null;let f=l.headers&&l.headers.get("content-type")||"application/json";return l.json().then(u=>Array.isArray(u)?{seeded:!0,status:l.status,type:f,body:JSON.stringify(u.slice(0,n))}:null)}).catch(()=>null):null}return null};var Sl=(t,e,n)=>{let o=e&&!e.startsWith("/")?"/":"",r=new URL(`${t}${o}${e}`);if(n)for(let s in n){let i=n[s];i!=null&&r.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return r.toString()},Zb=({params:t,select:e,limit:n,offset:o,order:r,single:s})=>{let i={...t};return e&&(i.select=e),n&&(i.limit=n),o&&(i.offset=o),s&&(i.single=!0),r&&(typeof r=="string"?i.order=r:Array.isArray(r)?i.order=r.map(a=>`${a.by}:${a.asc===!1?"desc":"asc"}`).join(","):r.by&&(i.order=`${r.by}:${r.asc===!1?"desc":"asc"}`)),i},nC=t=>Object.prototype.toString.call(t).slice(8,-1),Qb=["auto","json","text","blob","arrayBuffer","stream","response"],tj={json:async t=>{let e=await t.text();return e?JSON.parse(e):null},text:t=>t.text(),blob:t=>t.blob(),arrayBuffer:t=>t.arrayBuffer(),stream:t=>t.body,response:t=>t},ej=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},nj=async t=>{let e=await t.text(),n=t.headers.get("content-type");if(e&&n&&n.includes("json"))try{return JSON.parse(e)}catch{}return e},eC=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,oC=(t,e)=>{let n=t.body,o=e==="json"||e==="auto"&&/json/i.test(t.type);if(!o&&e!=="auto"&&e!=="text")return null;let r;try{r=o?n?JSON.parse(n):null:n}catch{return!1}return{data:r,error:null,status:t.status}},Ke=async(t,e,n,o)=>{let r=n??"auto";if(!Qb.includes(r))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${r}" \u2014 use one of: ${Qb.join(", ")}`);Xv();try{return await rC(t,e,r,o)}finally{Zv()}},rC=async(t,e,n,o)=>{let r=o?await o:null;if(r&&r.seeded===!0){let i=oC(r,n);if(r.taken&&i!==!1){let a=i||await rC(t,e,n,Promise.resolve(new Response(r.body,{status:r.status,headers:{"content-type":r.type}})));return kp(a,r.taken),a}if(i)return i;r=i===!1?null:new Response(r.body,{status:r.status,headers:{"content-type":r.type}})}let s=r||await globalThis.fetch(t,e);if(n==="auto"){let i=await ej(s);return{data:i,error:s.ok?null:eC(i,s),status:s.status}}if(!s.ok){let i=await nj(n==="response"?s.clone():s);return{data:n==="response"?s:i,error:eC(i,s),status:s.status}}return{data:await tj[n](s),error:null,status:s.status}},oj=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],rj=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||oj.includes(nC(t))),sC=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),Xb=(...t)=>{let e={},n=new Map;for(let o of t)if(o)for(let[r,s]of sC(o)){let i=r.toLowerCase();if(n.has(i)&&delete e[n.get(i)],s==null){n.delete(i);continue}n.set(i,r),e[r]=s}return e},sj={"Content-Type":"application/json"},ij={"Content-Type":void 0},aj=t=>{if(!t||typeof t!="object")return null;let e={};for(let{header:n,param:o}of zb(t.query))e[n]=o;return{params:e,rpc:t.rpc==="get"}},cj="content-type",wl=(t,e)=>{let n=Object.keys(e);if(!n.length)return t;let o=new URL(t);for(let r of n)o.searchParams.set(r,e[r]);return o.toString()},lj=async({url:t,headers:e,auth:n,fetchOptions:o,early:r,reads:s,seed:i})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return Ep(t,e,n,o,r,s,i)},Ep=(t,e={},n,o={},r,s,i)=>{let a=n?.token||null,c=Fv($v(r,s),e,i),l=aj(s),f=_=>{if(!l)return null;let b={},S={},w={};for(let A in _){let C=A.toLowerCase();if(C==="authorization")return null;if(C===cj)continue;S[A]=_[A];let O=l.params[C];O?w[O]=_[A]:b[A]=_[A]}return{headers:b,adoptHeaders:S,query:w}},u=(_,b,S)=>{if(!c)return null;let w="";for(let A in b){let C=A.toLowerCase();if(C==="accept-language")w=String(b[A]);else if(c.carried[C]!==b[A])return null}try{let A=_();return Wb(Jr(A,w),c.maxAge)||(S>0?tC(A,w,S,c.maxAge):null)}catch{return null}},d=(_,b,S,w,A,C,O)=>{if(!c||!c.seeded)return null;let N="";for(let B in b){let M=B.toLowerCase();if(M==="accept-language")N=String(b[B]);else if(M!=="accept")return null}try{return Wb(Jr(_,N),c.maxAge,()=>g(S,w,A,_,C,O))}catch{return null}},p=(_,b,S,w,A,C,O)=>{if(!c||!c.seeded)return null;let N="";for(let M in b){let K=M.toLowerCase();if(K==="accept-language")N=String(b[M]);else if(K!=="accept")return null}let B=O??"auto";if(!Qb.includes(B))return null;try{return Kv(Jr(_,N),c.maxAge,()=>g(S,w,A,_,C,O),M=>oC(M,B)||null)}catch{return null}},g=(_,b,S,w,A,C)=>({method:_,from:b,params:S,send:()=>Ke(w,A,C,null)}),h=()=>a?{Authorization:`Bearer ${a}`}:null,m=_=>Xb(e,h(),_),y=_=>({...o,..._}),x=(_,b,S)=>{if(!rj(b))return y({method:_,headers:Xb(e,h(),sj,S),body:JSON.stringify(b)});let w={method:_,headers:Xb(e,h(),ij,S),body:b};return nC(b)==="ReadableStream"&&(w.duplex="half"),y(w)},T=(_,b)=>{let S=b||t;if(_&&(_.startsWith("http://")||_.startsWith("https://")))return _;let w=_&&!_.startsWith("/")?"/":"";return`${S}${w}${_||""}`};return{name:"rest",setToken:_=>{a=_},getSession:async()=>{if(!n?.sessionUrl)return a?{token:a}:null;let _=await Ke(T(n.sessionUrl,n.baseUrl),y({headers:m()}));return _.error?null:_.data},signIn:async _=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let b=await Ke(T(n.signInUrl,n.baseUrl),x("POST",_));return b.data?.token&&(a=b.data.token),b},signOut:async()=>(n?.signOutUrl&&await Ke(T(n.signOutUrl,n.baseUrl),y({method:"POST",headers:m()})),a=null,{error:null}),select:({from:_,params:b,select:S,limit:w,offset:A,order:C,single:O,headers:N,baseUrl:B,responseType:M})=>{let K=Sl(B||t,_||"",Zb({params:b,select:S,limit:w,offset:A,order:C,single:O})),q=!A&&!O&&Number(w)>0?Number(w):0,tt=m(N),nt=f(tt);if(nt){let Z=y({headers:nt.headers}),X=wl(K,nt.query);return Ke(X,Z,M,d(X,nt.headers,"select",_,b,Z,M)||u(()=>K,nt.adoptHeaders,q))}let ot=y({headers:tt});return Ke(K,ot,M,d(K,ot.headers,"select",_,b,ot,M)||u(()=>K,ot.headers,q))},seeded:({method:_,from:b,params:S,select:w,limit:A,offset:C,order:O,single:N,headers:B,baseUrl:M,responseType:K,read:q})=>{if(!c||!c.seeded)return null;if(_==="select"){let tt=Sl(M||t,b||"",Zb({params:S,select:w,limit:A,offset:C,order:O,single:N})),nt=m(B),ot=f(nt);if(ot){let X=y({headers:ot.headers});return p(wl(tt,ot.query),ot.headers,"select",b,S,X,K)}let Z=y({headers:nt});return p(tt,Z.headers,"select",b,S,Z,K)}if(_==="rpc"){if(!(q===!0&&l&&l.rpc&&Hb(S)))return null;let tt=f(m(B));if(!tt)return null;let nt;try{nt=Sl(M||t,`rpc/${b}`,S)}catch{return null}let ot=y({method:"GET",headers:tt.headers});return p(wl(nt,tt.query),tt.headers,"rpc",b,S,ot,K)}return null},rpc:async({from:_,params:b,headers:S,baseUrl:w,responseType:A,read:C})=>{let O=Hb(b),N=()=>Sl(w||t,`rpc/${_}`,b),B=Z=>Ke(T(`rpc/${_}`,w),x("POST",b,S),A,Z),M=m(S),K=C===!0&&l&&l.rpc&&O?f(M):null,q=null;if(K)try{q=N()}catch{q=null}if(!q)return B(c&&c.rpc&&O?u(N,M):null);let tt=y({method:"GET",headers:K.headers}),nt=wl(q,K.query),ot=await Ke(nt,tt,A,d(nt,K.headers,"rpc",_,b,tt,A)||u(()=>q,K.adoptHeaders));return ot.status===405?B(null):ot},insert:({from:_,data:b,headers:S,baseUrl:w,responseType:A})=>Ke(T(_,w),x("POST",b,S),A),update:({from:_,data:b,params:S,method:w,headers:A,baseUrl:C,responseType:O})=>{let N=S?.id||b?.id,B=N?`${_}/${N}`:_;return Ke(T(B,C),x(w||"PATCH",b,A),O)},upsert:({from:_,data:b,params:S,method:w,headers:A,baseUrl:C,responseType:O})=>{let N=S?.id||b?.id,B=N?`${_}/${N}`:_;return Ke(T(B,C),x(w||"PUT",b,A),O)},delete:({from:_,params:b,headers:S,baseUrl:w,responseType:A})=>{let C=b?.id,O=C?`${_}/${C}`:_;return Ke(T(O,w),y({method:"DELETE",headers:m(S)}),A)}}};var fj=()=>Vb,uj=["select","rpc","insert","update","upsert","delete","subscribe"],uC={rest:()=>Promise.resolve(Jb),local:()=>Promise.resolve().then(fj)},Ap=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),ns=(()=>{if(typeof globalThis<"u"&&globalThis[Ap])return globalThis[Ap];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ap,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ap]}catch{}return t})(),vp=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),oS=(()=>{if(typeof globalThis<"u"&&globalThis[vp])return globalThis[vp];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,vp,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[vp]}catch{}return t})(),dj=5e3,pj=t=>new Promise(e=>{if(ns[t])return e(ns[t]);let n=oS[t]||=[],o=!1,r=()=>{o||(o=!0,e(ns[t]||null))};n.push(r),setTimeout(r,dj)}),hj=(t,e)=>{ns[t]=e;let n=oS[t];if(n&&n.length){oS[t]=[];for(let o of n)o()}},gj=t=>typeof t=="string"&&!!(ns[t]||uC[t]),mj=t=>{let e={};for(let n of uj)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},dC=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...n}=t,o=typeof e=="string"?e:typeof t=="string"?t:null;if(!o)return null;let r=ns[o]||uC[o];if(!r&&(r=await pj(o),!r))throw new Error(`Unknown db adapter: "${o}". Use registerAdapter() for adapters with optional deps.`);let s=await r();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${o}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(n)},fS=t=>!!t&&!!t.isolateFetchCache,pC=()=>({cache:new Map,subscribers:new Map,active:new Map,invalidatedAt:new Map,mounted:new Set}),bn=pC(),iC=new WeakMap,qe=t=>{if(!fS(t))return bn;let e=iC.get(t);return e||iC.set(t,e=pC()),e},Ip=0,tS=new WeakMap,Pp=(t,e,n,o,r=t.page,s=t.cursor)=>{if(t.cache?.key)return t.cache.key;let{from:i,method:a,infinite:c}=t,l=n?`${n}:`:"",f=o?`:${o}`:"",u=r?":p"+JSON.stringify(r):"",d=s!=null?":c"+JSON.stringify(s):"";return`${i}:${a}:${l}${JSON.stringify(e||"")}${c?":infinite":""}${u}${d}${f}`},Vi=(t,e)=>t.cache.get(e)||null,Ui=(t,e,n,o,r=++Ip,s=!1)=>{let i={data:n,error:o,time:Date.now(),stale:s,seq:r};t.cache.set(e,i);let a=t.subscribers.get(e);if(a)for(let c of a)I(c)&&c(i);return i},Op=(t,e,n)=>{let o=e?t.cache.get(e):null;return o&&!o.error&&o.seq>n?o:null},rS=(t,e,n)=>(t.invalidatedAt.get(e)||0)>n,Dp=(t,e)=>{t.invalidatedAt.set(e,++Ip)},hC=(t,e)=>{t.cache.delete(e),Dp(t,e)};var Mp=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:E(t)?{staleTime:Zo(t),gcTime:3e5}:{staleTime:Zo(t.stale||t.staleTime)||6e4,gcTime:Zo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},gC=t=>!!t.ref&&t.element.__ref===t.ref,yj=({config:t,element:e,context:n})=>{try{return uS(t,e,n)}catch{return null}},Cp=null,_j=()=>{Cp||(Cp=setInterval(()=>{let t=Date.now(),{cache:e,subscribers:n,active:o,invalidatedAt:r,mounted:s}=bn;for(let[i,a]of e){let c=n.get(i);!(c&&c.size>0)&&t-a.time>(a.gcTime||3e5)&&e.delete(i)}for(let[i]of r)!e.has(i)&&!o.has(i)&&r.delete(i);for(let i of s)gC(i)||s.delete(i)},3e4),Cp.unref&&Cp.unref())};_j();var aC=3,eS=t=>Math.min(1e3*2**t,3e4),mC=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:aC,delay:eS}:typeof n=="number"?{count:n,delay:eS}:{count:n.count??aC,delay:I(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:eS}},yC=async(t,e)=>{let{count:n,delay:o}=e,r;for(let s=0;s<=n;s++)try{let i=await t();if(i?.error){if(r=i.error,s<n){let a=I(o)?o(s,r):o;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(r=i,s<n){let a=I(o)?o(s,i):o;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:r}},ji={focus:new Set,online:new Set},cC=!1,bj=()=>{if(cC||typeof window>"u")return;cC=!0;let t=()=>{for(let n of ji.focus)n()},e=()=>{for(let n of ji.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},sS=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(E(t))return{from:t,method:"select",query:!0,on:"create"};if(k(t)){let o={...t};return o.from=o.from||n.__state||e.key,o.method=o.method||"select",o.on=o.on||"create",o.query===void 0&&(o.query=!0),o}return null},Sj=["insert","update","upsert","delete"],_C=t=>Sj.includes(t),Bp=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,Hi=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},kl=(t,e)=>{let o=(t?.state?.root||e?.state?.root)?.__fetchScope;return o?String(o):void 0},El=(t,e,n)=>{let o;if(!t)o=void 0;else if(I(t))o=t(e,e.state);else{o={};for(let r in t){let s=t[r];o[r]=I(s)?s(e,e.state):s}}return o},os=(t,e)=>I(t)?t(e,e.state):t,uS=(t,e,n)=>Pp(t,El(t.params,e,n),kl(e,n),Hi(e,n),os(t.page,e),os(t.cursor,e)),Rp=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let n=(o,r)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:o,session:r,loading:!1}})};try{let o=await t.getSession();n(o?.user||null,o)}catch(o){console.warn("[fetch] Failed to restore auth session:",o.message)}t.onAuthStateChange&&t.onAuthStateChange((o,r)=>{n(r?.user||null,r)})},dS=async(t,e)=>{if(I(t.select))return t.auth!==!1&&await Rp(t,e),t;if(t.__resolved)return t.auth!==!1&&await Rp(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=dC(t);let n=await t.__resolving;return delete t.__resolving,n?(n.auth=t.auth,n.url=t.url,n.key=t.key,t.__resolved=n,e.fetch=n,t.auth!==!1&&await Rp(n,e),n):null},Sn=(t,e,...n)=>{let o=I(t[e])?t[e]:null;o&&o.call(t,...n,t,t.state,t.context)},Un=(t,e,n,...o)=>{let r=t&&I(t[n])?t[n]:null;r&&r.call(e,...o,e,e.state,e.context)},xl=t=>{let e={},n=t.node;if(!n)return e;if(n.tagName==="FORM"){let r=new FormData(n);for(let[s,i]of r.entries())e[s]=i;return e}let o=n.querySelectorAll("input, textarea, select");for(let r=0;r<o.length;r++){let s=o[r],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Al=t=>t.responseType==="stream"||t.responseType==="response",wj=["Blob","File","ArrayBuffer","ReadableStream","Response"],iS=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||wj.includes(Object.prototype.toString.call(t).slice(8,-1))),lo=(t,e,n,o={})=>{if(!n&&iS(e))return;let r=n&&n.startsWith("~/"),s=r&&t.state?.root||t.state;if(s?.update)if(r){let i=n.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&!iS(e)&&i in e?s.update(e,{preventFetch:!0,...o}):s.update({[i]:e},{preventFetch:!0,...o})}else{let i=n?{[n]:e}:e;s.update(i,{preventFetch:!0,...o})}},Lp=Object.freeze({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),aS=t=>({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:t,status:"error",fetchStatus:"idle"}),fo=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},lC=(t,e,n)=>{let o=t.__pages&&t.__pages.length?t.__pages:[n];I(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(o[o.length-1],o),t.__hasNextPage=t.__nextPageParam!=null),I(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(o[0],o),t.__hasPreviousPage=t.__prevPageParam!=null)},bC=(t,e,n,o,r,s)=>{let{from:i,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d,responseType:p}=t,g={from:i,select:e,params:n,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d};if(p!==void 0&&(g.responseType=p),o&&(g.headers={...g.headers,"Accept-Language":o}),r!==void 0){if(k(r))r.offset!==void 0&&(g.offset=r.offset),r.limit!==void 0&&(g.limit=r.limit),r.cursor!==void 0&&(g.params={...g.params,cursor:r.cursor});else if(typeof r=="number"){let h=t.pageSize||c||20;g.offset=(r-1)*h,g.limit=h}}return s!==void 0&&(g.params={...g.params,cursor:s}),g},uo=async(t,e,n,o={})=>{let r=n?.fetch;if(!r||!e||!e.__ref)return;let s=e.__ref,i=kl(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&kl(e,n)===i;if(t.enabled===!1||I(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||I(t.skip)&&t.skip(e,e.state))return;let l=await dS(r,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:x,as:T,limit:v,offset:_,order:b,headers:S,baseUrl:w,responseType:A,page:C,cursor:O,infinite:N,placeholderData:B,initialData:M,select:K,keepPreviousData:q}=t,tt=H=>(I(K)&&(H=K(H,e,e.state)),h&&(H=h(H,e,e.state)),H),nt=H=>{fo(e,aS(H)),Sn(e,"onFetchError",H),Un(t,e,"onFetchError",H)},ot=E(K)?K:void 0;if(d&&I(e.getQuery)){let H=e.getQuery(l.name||"paths");H&&(ot=H.select||H.length&&H.join(",")||ot)}let Z=El(p,e,n),X=os(C,e),Q=os(O,e),rt=Bp(t),et=Al(t)||rt?null:Mp(g),pt=mC(t,rt||_C(u)),G=Hi(e,n),z=et?Pp(t,Z,i,G,X,Q):null,vt=qe(n);if(!s.__fetchInitialized&&z&&(s.__fetchInitialized=!0,M!==void 0)){let H=I(M)?M():M;Ui(vt,z,H,null)}if((u==="select"||u==="rpc")&&z&&et&&!o.refresh&&!o.force){let H=Vi(vt,z);if(H&&!H.error){let Et=Date.now()-H.time,Y=H.stale||Et>(et.staleTime||0);N&&P(H.data)&&!s.__pages&&(s.__pages=[H.data],lC(s,t,H.data));let st=tt(H.data);if(!c())return;if(!Y){fo(e,Lp),lo(e,st,T),s.__seededOnCreate===z&&(s.__seededOnCreate=null,Sn(e,"onFetchComplete",st),Un(t,e,"onFetchComplete",st));return}lo(e,st,T)}else if(B!==void 0){let Et=I(B)?B(e,e.state):B;Et!==void 0&&lo(e,Et,T)}}let gt=z&&!o.force?vt.active.get(z):null;if(gt&&!rS(vt,z,tS.get(gt)||0)){try{let H=await Promise.race([gt,new Promise((Et,Y)=>setTimeout(()=>Y("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(H?.error)nt(H.error);else if(H?.data!==void 0){let Et=!N&&Op(vt,z,tS.get(gt)||0),Y=tt(Et?Et.data:H.data);if(!c())return;lo(e,Y,T),Sn(e,"onFetchComplete",Y),Un(t,e,"onFetchComplete",Y)}}catch(H){if(!c())return;H!=="DEDUP_TIMEOUT"&&nt(H)}return}let Bt=!Vi(vt,z)?.data;fo(e,{isFetching:!0,isLoading:Bt,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Sn(e,"onFetchStart"),Un(t,e,"onFetchStart");let Tt=n?.analyze?.emitNetwork,Ct=Tt?typeof performance<"u"?performance.now():Date.now():0;Tt&&Tt({phase:"start",mode:"query",from:f,method:u,cacheKey:z,lang:G});let He=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let Y=await l.getSession();if(!c())return;if(y===!0&&!Y){let st={message:"Not authenticated"};return nt(st),{data:null,error:st}}}let H=l[u];if(!I(H))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let Et=bC(t,ot,Z,Hi(e,n),X,Q);if(u==="insert"||u==="update"||u==="upsert"){let Y;if(x===!0||t.on==="submit")Y=xl(e);else if(P(x)){let st=xl(e);Y={};for(let ze of x)Y[ze]=st[ze]}else e.state?.parse?Y=e.state.parse():k(e.state)&&(Y={...e.state});h&&(Y=h(Y,e,e.state)),Et.data=Y}if(u==="rpc"){let Y=Z;if(t.on==="submit"){let st=xl(e);Y=t.transformParams?t.transformParams(st,e,e.state):st}Et.params=Y,Et.read=!rt&&t.read!==!1}if(u==="subscribe"){if(I(s.__unsubscribe)){let st=s.__unsubscribe;s.__unsubscribe=null;try{st()}catch{}}let Y=l.subscribe({from:f,params:Z,on:t.subscribeOn},(st,ze,Vy)=>{c()&&(lo(e,st,T),Sn(e,"onFetchComplete",st),Un(t,e,"onFetchComplete",st))});return c()?(s.__unsubscribe=Y,{data:null,error:null,subscribed:!0}):(I(Y)&&Y(),{data:null,error:null,subscribed:!0})}return H(Et)},Dt=++Ip,Ce=yC(He,pt);tS.set(Ce,Dt),z&&vt.active.set(z,Ce);try{let H=await Ce;if(z&&H&&!rt&&Yb(H,z),rt&&t.invalidates&&H&&!H.error&&!H.subscribed&&SC(vt,t.invalidates,f),!c()||H?.subscribed)return;let{data:Et,error:Y}=H||{};if(Y){z&&!Op(vt,z,Dt)&&Ui(vt,z,null,Y,Dt),nt(Y),Tt&&Tt({phase:"error",mode:"query",from:f,method:u,cacheKey:z,error:Y.message||Y,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ct});return}if(Et!==void 0){let st=Et;if((u==="select"||u==="rpc")&&z){let Vy=!N&&Op(vt,z,Dt);if(Vy)st=Vy.data;else{let WF=Ui(vt,z,Et,null,Dt,rS(vt,z,Dt));WF.gcTime=et?.gcTime||3e5}}let ze=st;if(N&&P(Et)&&((!s.__pages||!o.direction)&&(s.__pages=[]),o.direction==="previous"?s.__pages.unshift(Et):s.__pages.push(Et),ze=s.__pages.flat(),lC(s,t,Et)),ze=tt(ze),!c())return;fo(e,Lp),(!q||ze!==void 0)&&lo(e,ze,T),Sn(e,"onFetchComplete",ze),Un(t,e,"onFetchComplete",ze),Tt&&Tt({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ct})}}catch(H){if(!c())return;nt(H),Tt&&Tt({phase:"error",mode:"query",from:f,method:u,cacheKey:z,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-Ct})}finally{z&&vt.active.get(z)===Ce&&vt.active.delete(z)}},xj=(t,e,n)=>{let o=t.on,r=e.__ref;if(!r)return;r.__fetchListeners||(r.__fetchListeners=[]);let s=t.__runner||uo;if(o==="submit"){let i=c=>{c.preventDefault(),s(t,e,n)},a=e.node;a&&(a.addEventListener("submit",i),r.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(o==="click"){let i=()=>s(t,e,n),a=e.node;a&&(a.addEventListener("click",i),r.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else o==="stateChange"&&kj(t,e,n,s)},kj=(t,e,n,o)=>{let r=e.__ref,s,i=W(()=>{let a;try{a=JSON.stringify([El(t.params,e,n)??null,I(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,I(t.skip)?!!t.skip(e,e.state):t.skip===!0,os(t.page,e)??null])}catch{return}if(s===void 0){s=a;return}a!==s&&(s=a,queueMicrotask(()=>o(t,e,n)))});Array.isArray(r.__effects)?r.__effects.push(i):r.__fetchListeners.push(()=>i.dispose())},Tj=(t,e,n)=>{let o=e.__ref;o.__fetchCleanups||(o.__fetchCleanups=[]),bj();let r=t.refetchInterval;if(r){let c=typeof r=="number"?r:Zo(r);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&uo(t,e,n,{force:!0})},c);o.__fetchCleanups.push(()=>clearInterval(l))}}let s=Al(t),i=t.refetchOnWindowFocus===void 0?!s:t.refetchOnWindowFocus!==!1,a=t.refetchOnReconnect===void 0?!s:t.refetchOnReconnect!==!1;if(i){let c=()=>{let l=uS(t,e,n),f=Vi(qe(n),l),u=Mp(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&uo(t,e,n,{force:!0})};ji.focus.add(c),o.__fetchCleanups.push(()=>ji.focus.delete(c))}if(a){let c=()=>uo(t,e,n,{force:!0});ji.online.add(c),o.__fetchCleanups.push(()=>ji.online.delete(c))}},Ej=(t,e,n)=>{if(!e.optimistic)return null;let o=t.__ref,r=e.as,s=t.state?.parse?t.state.parse():k(t.state)?{...t.state}:t.state;o.__optimisticSnapshot=s;let i=I(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&lo(t,i,r),s},nS=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let o=n.__optimisticSnapshot;o!==void 0&&(lo(t,o,e.as),delete n.__optimisticSnapshot)},Tl=t=>{if(!t)return()=>!0;if(E(t))return e=>e.includes(t);if(P(t)){let e=t.join(":");return n=>n.includes(e)}return t instanceof RegExp?e=>(t.lastIndex=0,t.test(e)):I(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},Aj=(t,e)=>{let n=[];for(let o of t.mounted){if(!gC(o)){t.mounted.delete(o);continue}let r=yj(o);r&&e(r)&&n.push(uo(o.config,o.element,o.context,{refresh:!0}))}return Promise.allSettled(n).then(()=>{})},Np=(t,e)=>{Gb();for(let[n,o]of t.cache)e(n)&&(o.stale=!0,Dp(t,n));for(let[n]of t.active)!t.cache.has(n)&&e(n)&&Dp(t,n);return Aj(t,e)},SC=(t,e,n)=>{let o=(P(e)?e:[e]).map(r=>r===!0||r==="*"?s=>s.startsWith(n+":"):r?Tl(r):()=>!1);return Np(t,r=>o.some(s=>s(r)))},cS=(t,e)=>{for(let[n]of t.cache)e(n)&&hC(t,n);for(let[n]of t.active)e(n)&&Dp(t,n)},lS=()=>!0,wC=(t,e)=>Vi(t,e)?.data??void 0,xC=(t,e,n)=>{let o=Vi(t,e),r=I(n)?n(o?.data):n;Ui(t,e,r,null)},vj=async(t,e,n)=>{let o=n?.fetch;if(!o)return;let r=await dS(o,n);if(!r)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:p,baseUrl:g,responseType:h,invalidates:m,optimistic:y,onMutate:x,onSuccess:T,onError:v,onSettled:_}=t,b;if(c===!0||u==="submit")b=xl(e);else if(P(c)){let C=xl(e);b={};for(let O of c)b[O]=C[O]}else e.state?.parse?b=e.state.parse():k(e.state)&&(b={...e.state});l&&(b=l(b,e,e.state)),I(x)&&x(b,e,e.state);let S=y?Ej(e,t,b):null;fo(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Sn(e,"onFetchStart"),Un(t,e,"onFetchStart");let w=n?.analyze?.emitNetwork,A=w?typeof performance<"u"?performance.now():Date.now():0;w&&w({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&r.auth!==!1&&r.getSession){let tt=await r.getSession();if(d===!0&&!tt){S!==void 0&&nS(e,t);let nt={message:"Not authenticated"};Sn(e,"onFetchError",nt),Un(t,e,"onFetchError",nt);return}}let C=r[i];if(!I(C))return;let O={from:a,data:b,headers:p,baseUrl:g};h!==void 0&&(O.responseType=h),t.params&&(O.params=El(t.params,e,n));let N=Hi(e,n);N&&(O.headers={...O.headers,"Accept-Language":N});let B=mC(t,!0),M=await yC(()=>C(O),B),{data:K,error:q}=M||{};if(q){S!==void 0&&nS(e,t),fo(e,aS(q)),Sn(e,"onFetchError",q),I(v)&&v(q,b,e),I(_)&&_(null,q,b,e),w&&w({phase:"error",mode:"mutation",from:a,method:i,error:q.message||String(q),durationMs:(typeof performance<"u"?performance.now():Date.now())-A});return}if(delete s.__optimisticSnapshot,fo(e,Lp),K!==void 0&&(f||!iS(K))){let tt=f?{[f]:K}:K;e.state?.update&&e.state.update(tt,{preventFetch:!0})}Sn(e,"onFetchComplete",K),Un(t,e,"onFetchComplete",K),I(T)&&T(K,b,e),I(_)&&_(K,null,b,e),w&&w({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-A}),m&&SC(qe(n),m,a)}catch(C){S!==void 0&&nS(e,t),fo(e,aS(C)),Sn(e,"onFetchError",C),Un(t,e,"onFetchError",C),I(v)&&v(C,b,e),I(_)&&_(null,C,b,e),w&&w({phase:"error",mode:"mutation",from:a,method:i,error:C.message||String(C),durationMs:(typeof performance<"u"?performance.now():Date.now())-A})}finally{s.__fetching=!1}},Cj=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);I(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])qe(n.context).mounted.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},Oj=(t,e)=>{if(!t)return null;if(I(t.select))return t;if(t.__resolved)return t.__resolved;if(t.__resolving)return null;let n=typeof t.adapter=="string"?t.adapter:null;if(n!=="rest"||ns[n]||!t.url)return null;let{adapter:o,...r}=t,s=Ep(r.url,r.headers,r.auth,r.fetchOptions,r.early,r.reads,r.seed);return s.auth=t.auth,s.url=t.url,s.key=t.key,t.__resolved=s,e.fetch=s,s},Rj=t=>t.on==="create"&&(t.method==="select"||t.method==="rpc")&&!Bp(t)&&!t.infinite&&!Al(t),kC=t=>{let e=t&&t.context;if(!e||!e.fetch||fS(e))return;let n=t.__ref;if(!n||!t.fetch||!qv())return;let o;try{o=bt(t.fetch,t)}catch{return}if(!o)return;let r=P(o)?o:[o];for(let s of r){let i;try{i=sS(bt(s,t),t)}catch{continue}if(!i||!Rj(i)||i.enabled===!1||i.skip===!0)continue;try{if(I(i.enabled)&&!i.enabled(t,t.state)||I(i.skip)&&i.skip(t,t.state))continue}catch{continue}let a=Mp(i.cache);if(!a)continue;let c=Oj(e.fetch,e);if(!c||!I(c.seeded))return;Dj(i,a,c,t,e,n)}},Dj=(t,e,n,o,r,s)=>{let i=E(t.select)?t.select:void 0,a,c,l,f,u;try{if(t.query&&I(o.getQuery)){let x=o.getQuery(n.name||"paths");x&&(i=x.select||x.length&&x.join(",")||i)}a=El(t.params,o,r),c=os(t.page,o),l=os(t.cursor,o);let y=Hi(o,r);f=Pp(t,a,kl(o,r),y,c,l),u=bC(t,i,a,y,c,l)}catch{return}let d=qe(r),p=Vi(d,f);if(p&&!p.error)return;t.method==="rpc"&&(u.read=t.read!==!1);let g=n.seeded({method:t.method,...u});if(!g||g.error||g.data===void 0)return;let h=Ui(d,f,g.data,null);h.gcTime=e.gcTime||3e5,Yb(g,f),s.__fetchInitialized=!0;let m=g.data;try{I(t.select)&&(m=t.select(m,o,o.state)),t.transform&&(m=t.transform(m,o,o.state))}catch{return}fo(o,Lp),lo(o,m,t.as),s.__seededOnCreate=f},pS=(t,e,n,o)=>{if(!t||!o?.fetch)return;let s=bt(t,e);if(!s)return;let i=P(s)?s.map(f=>sS(bt(f,e),e)).filter(Boolean):[sS(s,e)].filter(Boolean),a=e.__ref,c=qe(o);if(a.__fetchMounted)for(let f of a.__fetchMounted)c.mounted.delete(f);a.__fetchMounted=[],!a.__fetchDisposer&&P(a.__effects)&&(a.__fetchDisposer={dispose:()=>Cj(a)},a.__effects.push(a.__fetchDisposer));let l=!fS(o);for(let f of i){let u=_C(f.method),d=u?vj:uo,p=!u&&!Bp(f)&&f.method!=="subscribe";if(f.on==="create"?d(f,e,o):queueMicrotask(()=>xj({...f,__runner:d},e,o)),p&&f.on==="create"&&(l&&(f.refetchInterval||f.refetchOnWindowFocus!==!1||f.refetchOnReconnect!==!1)&&Tj(f,e,o),!Al(f))){let g={element:e,ref:a,config:f,context:o};c.mounted.add(g),a.__fetchMounted.push(g)}}a.refetch=f=>{for(let u of i)uo(u,e,o,{force:!0,...f})},a.fetchNextPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__nextPageParam;if(u==null)return;let d={...f,cursor:u};uo(d,e,o,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__prevPageParam;if(u==null)return;let d={...f,cursor:u};uo(d,e,o,{direction:"previous",force:!0})}},Lj={invalidateQueries:t=>Np(bn,Tl(t)),removeQueries:t=>{cS(bn,t?Tl(t):lS)},getQueryData:t=>wC(bn,t),setQueryData:(t,e)=>{xC(bn,t,e)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let o=qe(e),r=await dS(n,e);if(!r)return;let s=t.method||"select",i=kl(null,e),a=Hi(null,e),c=Pp({...t,method:s},t.params,i,a),l=r[s];if(!I(l))return;let f={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};a&&(f.headers={...f.headers,"Accept-Language":a}),t.responseType!==void 0&&(f.responseType=t.responseType),s==="rpc"&&(f.read=!Bp(t)&&t.read!==!1);let u=++Ip,d=await l(f);if(d?.data!==void 0&&!d?.error&&!Al(t)&&!Op(o,c,u)){let p=Ui(o,c,d.data,null,u,rS(o,c,u));p.gcTime=Mp(t.cache)?.gcTime||3e5}return d},getCache:()=>bn.cache,clear:()=>cS(bn,lS),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of bn.cache)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||hC(bn,n))}},fC=(t,e)=>k(t)?uS({method:"select",...t},e,e?.context):t,Ij={invalidateQueries(t){return Np(qe(this?.context),Tl(t))},removeQueries(t){cS(qe(this?.context),t?Tl(t):lS)},getQueryData(t){return wC(qe(this?.context),fC(t,this))},setQueryData(t,e){xC(qe(this?.context),fC(t,this),e)}},Pj=async t=>{let e=await zv();if(!e)return null;let{taken:n,config:o}=e,r=new Set,s=[];for(let c of n)c.cacheKey?r.add(c.cacheKey):s.push(c);Gb();let i=[],a=async c=>{try{let l=await c.again.send();if(!l||l.error)return;let f=c.result?c.result.data:void 0;if(Mj(l.data,f))return;let{method:u,from:d,params:p}=c.again;i.push({method:u,from:d,params:p,data:l.data,previous:f})}catch{}};if(await Promise.all([r.size?Np(bn,c=>r.has(c)):null,...s.map(a)]),i.length&&I(o.onRefresh))try{o.onRefresh(i,t)}catch(c){console.error("[@symbo.ls/fetch] seed.onRefresh failed:",c)}return{queries:r.size,reads:s.length,changed:i.length}},Mj=(t,e)=>{if(t===e)return!0;try{return JSON.stringify(t)===JSON.stringify(e)}catch{return!1}},Bj={name:"fetch",init(t){t.fetch&&kC(t)},create(t){let e=t.fetch;e&&(t.parent||qe(t.context).active.clear(),pS(e,t,t.state,t.context))}};var Nj=pS;var TC=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},$p=(t,e,n,o,r)=>{if(t=Mi(t,e),!!I(t))try{let s=t.call(e,e,n||e.state,o||e.context,r);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},po=(t,e,n)=>{if(!e)throw new Error("Element is required");qo(t,e,n);let o=TC(t,e);if(o){let{state:r,context:s}=e;return $p(o,e,r,s,n)}},Fp=(t,e,n,o,r,s)=>{if(t=Mi(t,n),!!I(t))try{let i=t.call(n,e,n,o||n.state,r||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},hS=(t,e,n,o)=>{qo(t,n,e,o);let r=TC(t,n);if(r){let{state:s,context:i}=n;return Fp(r,e,n,s,i,o)}};var gS={},vl={};var $j=()=>rs,Jo="production";function Ol(t){let e=this,{__ref:n}=e,o=[].concat(t),r=n.root[o[0]];if(!o||!o.length)return console.log(o,"on",e.key,"is undefined");for(;r.key===o[0]&&(o.shift(),!!o.length);)if(r=r[o[0]],!r)return;return r}function yS(t){let e=this,{parent:n}=e;if(I(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function _S(t){let e=this,{__ref:n}=e,o=n?.__children;if(o)for(let r=0;r<o.length;r++){let s=o[r],i=e[s];if(s===t)return i;if(I(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function bS(t,e=[]){let n=this,{__ref:o}=n,r=o?.__children;if(r){for(let s=0;s<r.length;s++){let i=r[s],a=n[i];if(i===t)e.push(a);else if(I(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function Vp(t={}){let e=this;if(e.node?.style){for(let n in t){let o=t[n],r=e[n];if(k(o)&&r)Vp.call(r,o);else if(o!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function AC(t){let e=this;if(po("beforeRemove",e,t)===!1)return e;I(e.node.remove)?e.node.remove():Go()||(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Uc(e.parent.__ref.__children,e.key)),po("remove",e,t)}function SS(t){return this[t]}function wS(t,e){let n=this;if(t)return n.update(t,e),n}function xS(t){return t?this.__ref&&this.__ref[t]:this.__ref}function kS(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function Rl(){return this.getRef().path}var Up=null,Dl=t=>{Up=t||null},zi=(t,e)=>{t&&e&&Up===t&&(Up=e)},EC=()=>Up||null;function Ll(t){let e=null,n=o=>o.__element&&o.root?.isRootState;if(!this)e=EC();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&n(this.state),r=I(this.state)&&this.parent.state&&n(this.parent.state);(o||r)&&(e=this.state.root||this.parent.state.root)}return e||(e=EC()),t?e?.[t]:e}function Il(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for "${this?.key||"<unknown>"}" \u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function Pl(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Ml(t){let e=this.getRoot()?.context;return t?e[t]:e}function Bl(t){let e=this.context;return t?e[t]:e}var TS=(t,e,n,o)=>Object.defineProperty(t,e,{get:n,set:o});function Hp(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||Ho.has(n)&&!Wc.has(n)||e.push(n);return e}function zp(t=[]){let e=this,n={},o=Hp.call(e),r=o.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||r&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=I(c&&c.parse)?c.parse():c;n[a]=I(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];n[a]=u}else Nt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function Cl(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let o=zp.call(n,t),r=t.length?new Set(t):null;for(let s in o){if(r&&r.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>U(a)?Cl.call(a,t,e):a):U(i)&&(o[s]=Cl.call(i,t,e))}return o}function Wi(...t){if(Jo!=="test"&&Jo!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(o=>console.log(`%c${o}:
22
+ `,"font-weight: bold",e[o])):(console.log(n.path),e.keys().forEach(r=>console.log(`%c${r}:`,"font-weight: bold",e[r]))),console.log(e),console.groupEnd(e.key),e}function ES(...t){(Jo==="test"||Jo==="development")&&console.log(...t)}function Nl(...t){(Jo==="test"||Jo==="development")&&console.warn(...t)}function ss(...t){if(Jo==="test"||Jo==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Wi.call(this),new Error(...t)}}function $l(){let t=this,{key:e,parent:n}=t,{__children:o}=n.__ref,r=o.indexOf(e),s=o[r+1];return n[s]}function Fl(t){let e=t||this,{key:n,parent:o}=e,{__children:r}=o.__ref;if(!r)return;let s=r.indexOf(n);return o[r[s-1]]}function jl(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,o={},r;for(let s in t)t[s]!==n[s]&&(r=!0,o[s]=t[s]);return{changed:s=>{if(!r)return;let i=s(o,ut(n));for(let a in o)n[a]=o[a];return i},timeout:(s,i)=>{if(!r)return;let a=setTimeout(()=>{s(o),clearTimeout(a)},i)}}}function AS(t,...e){let n=this.context,o=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(o&&!Gr(o))try{let r=o.call(this,...e);return r&&typeof r.then=="function"&&r.catch(s=>{ss.call(this,s)}),r}catch(r){if(ss.call(this,r),n?.strictMode)throw r}}var Fj="[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.",jp=()=>Promise.resolve().then($j).catch(t=>{throw new Error(Fj,{cause:t})});async function Ul(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:r}=await jp();await r(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:r}=await jp();await r(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=jp().then(({resolveDb:r})=>r(e));e.__resolving=n;let o=await n;if(e.__resolved=o,t.context.fetch=o,delete e.__resolving,o?.getSession){let{initAdapterAuth:r}=await jp();await r(o,t.context)}return o}function Vl(t){let e=this,n=t||vl.useStateQuery||e.context?.useStateQuery;if(!n)return null;let o={};if(mS(e,o),n===!0)return o;let r=Gj[n];return r?r(o):o}var mS=(t,e)=>{let n=t.__ref;if(!n)return;let o=n.__state;o&&typeof o=="string"&&jj(e,o);let r=n.__children;if(r)for(let a=0;a<r.length;a++){let c=t[r[a]];c&&c.__ref&&mS(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&mS(i,e)},jj=(t,e)=>{let o=e.replaceAll("../","").replaceAll("~/","").split("/"),r=t;for(let s=0;s<o.length;s++){let i=o[s];s===o.length-1?r[i]||(r[i]=!0):(r[i]===!0&&(r[i]={}),r[i]||(r[i]={}),r=r[i])}},vC=(t,e=0)=>{let n=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
23
+ ${vC(i,e+1)}
24
24
  ${n}}`).join(`
25
- `):""},Rj=t=>`{
26
- ${_C(t,1)}
27
- }`,Dj=t=>{let e={fields:{},include:[]},n=(o,r)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=r?`${r}.${i}`:i;e.include.push(a),n(o[i],a)}s.length&&(e.fields[r||"_root"]=s)};return n(t,""),e},Lj=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:o}=e(t),r=[];return n&&r.push(`$select=${n}`),o&&r.push(`$expand=${o}`),r.join("&")},Ij=(t,e)=>{let n=[],o=[],r=new Set,s=(f,u,d)=>{r.add(u),d&&o.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):s(f[p],p,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...r][0]||"_root",c=n.length?n.join(", "):"*",l=o.length?`
25
+ `):""},Uj=t=>`{
26
+ ${vC(t,1)}
27
+ }`,Vj=t=>{let e={fields:{},include:[]},n=(o,r)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=r?`${r}.${i}`:i;e.include.push(a),n(o[i],a)}s.length&&(e.fields[r||"_root"]=s)};return n(t,""),e},Hj=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:o}=e(t),r=[];return n&&r.push(`$select=${n}`),o&&r.push(`$expand=${o}`),r.join("&")},zj=(t,e)=>{let n=[],o=[],r=new Set,s=(f,u,d)=>{r.add(u),d&&o.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):s(f[p],p,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...r][0]||"_root",c=n.length?n.join(", "):"*",l=o.length?`
28
28
  `+o.join(`
29
29
  `):"";return`SELECT ${c}
30
- FROM ${a}${l}`},Pj=t=>{let e=[],n=(o,r)=>{for(let s in o){let i=r?`${r}/${s}`:s;o[s]===!0?e.push(i):n(o[s],i)}};return n(t,""),e},Mj={graphql:Rj,"json-api":Dj,odata:Lj,sql:Ij,paths:Pj};function wS(t,e){return!!(Vo.has(t)||e?.context?.methods?.[t])}var Bj={snapshotId:Qc},xS=(t,e)=>{let n=t.__ref,{currentSnapshot:o,calleeElement:r}=e;if(!r||r===t){let a=Bj.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=r.__ref.__currentSnapshot;return o<i?[i,r,!0]:[i,r]};var Up=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),kS=t=>typeof t=="string"&&Up.has(t);var Vp="smbls_lang",Hi=t=>t&&t.storageLangKey||Vp,fo=(t,e)=>t||e&&e.defaultLang||"en",yn=(t,e=!0)=>{let n=t&&t.languages;if(typeof n=="function")try{n=n(t)}catch{n=null}return Array.isArray(n)&&n.length?n.filter(o=>typeof o=="string"):e?Object.keys(t&&t.translations||{}):[]},Hp=(t,e)=>{if(!e)return null;let n=yn(e),o=/^\/([^/?#]+)/.exec(String(t||""));if(!o)return null;let r=o[1].toLowerCase();for(let s of n)if(typeof s=="string"&&s.toLowerCase()===r)return s;return null},zp=(t,e)=>{let n=yn(t),o=t&&t.addressLang,r=o&&typeof o=="object"&&!Array.isArray(o),s=r?o.mode:o,i={languages:n,address:s===!1?!1:s==="fallback"||s==="strict"?s:!0,fallback:fo(e,t)},a=r&&Array.isArray(o.except)?o.except.filter(c=>typeof c=="string"&&c):[];return a.length&&(i.except=a),i},Wp=(t,e,n)=>{if(t&&t.except&&t.except.length){let r=String(e||"").split(/[?#]/)[0].split("/").filter(Boolean);for(let s=0;s<t.except.length;s++){let i=String(t.except[s]).split("/").filter(Boolean);if(i[i.length-1]==="*"&&i.pop(),i.length>r.length)continue;let a=!0;for(let c=0;c<i.length&&a;c++)i[c].charAt(0)!==":"&&i[c]!==r[c]&&(a=!1);if(a){t={languages:t.languages,address:t.address!==!1,fallback:t.fallback};break}}}let o=null;if(t&&t.address!==!1){let r=/^\/([^/?#]+)/.exec(String(e||"")),s=t&&t.languages||[];if(r){let i=r[1].toLowerCase();for(let a=0;a<s.length&&!o;a++)String(s[a]).toLowerCase()===i&&(o=s[a])}}return o&&(t.address!=="fallback"||!n)?o:t&&t.address==="strict"?t.fallback||"":n||t&&t.fallback||""},rs=({polyglot:t,pathname:e,stored:n,stateLang:o}={})=>Wp(zp(t,o),e,n),ss=t=>{try{let e=t&&t.location||typeof globalThis<"u"&&globalThis.location;return e&&typeof e.pathname=="string"?e.pathname:""}catch{return""}},TS=({polyglot:t,translations:e,lang:n,pathname:o,attrs:r=""}={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Ln("polyglotStartupScript",[{polyglot:t,translations:e,lang:n,pathname:o,attrs:r}]);if(!e||typeof e!="object")return"";let s=t&&t.storagePrefix||"",i=t&&t.storageLangKey||"",a=[];for(let c in e){let l=e[c];l&&typeof l=="object"&&a.push(`localStorage.setItem(${JSON.stringify(s+c)},${JSON.stringify(JSON.stringify(l))})`)}if(i){let c=n||Hp(o,t)||fo(void 0,t);a.push(`if(!localStorage.getItem(${JSON.stringify(i)}))localStorage.setItem(${JSON.stringify(i)},${JSON.stringify(c)})`)}return a.length?`<script${r}>try{${a.join(";")}}catch(e){}<\/script>`:""};var Gp=Symbol.for("@symbo.ls/utils:textReady"),Nj=()=>{let t=globalThis[Gp];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,Gp,{value:t,configurable:!0})}catch{globalThis[Gp]=t}}return t};function Zo(t){let e=Nj(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function zi(){let t=globalThis[Gp];t&&t.depth>0&&(t.ready=!1)}async function ES(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var Wi=t=>t!=="latest"?`@${t}`:"",Gi=t=>t?`/${t}`:"",jl=t=>{let e=typeof t=="string"?t.replace(/\/+$/,""):"";if(!e)return{name:"",subpath:""};let n=e.split("/"),o=e.startsWith("@")?2:1;return{name:n.slice(0,o).join("/"),subpath:n.slice(o).join("/")}},Ge={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${Ge.skypack.url}/${t}${Wi(e)}${Gi(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${Ge.esmsh.url}/${t}${Wi(e)}${Gi(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${Ge.unpkg.url}/${t}${Wi(e)}${Gi(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${Ge.jsdelivr.url}/${t}${Wi(e)}${Gi(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${Ge.symbols.url}/${t}${Wi(e)}${Gi(n)}/+esm`}},Qo={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Ki=(t={})=>{let{packageManager:e}=t;return Qo[e]||null},Ul=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},_n=(t,e="latest",n="esmsh")=>{let o=Ge[n]||Ge.esmsh,{name:r,subpath:s}=jl(t);return o.formatUrl(r||t,Ul(e),s)},Kp=(t,e="latest",n="esmsh")=>{let o=Ge[n]||Ge.esmsh,r=Ul(e),{name:s,subpath:i}=jl(t);return`${o.url}/${s||t}${Wi(r)}${Gi(i)}/`},$j=/^node:|^@symbo-ls\//,Jo=t=>typeof t=="string"&&$j.test(t),Fj=/[<>…]/,is=t=>typeof t=="string"&&Fj.test(t),as=t=>!!t&&typeof t=="object"&&!Array.isArray(t),AS=(t,e="skypack",n={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Ln("getImportMapScript",[t,e,n]);let o=t.dependencies;if(!as(o))return"";let r=Object.keys(o);if(!r.length)return"";let s=n.pin||{},i={};for(let f of r){if(Jo(f)||is(f))continue;let u=s[f]||o[f]||"latest";i[f]=_n(f,u,e),f.endsWith("/")||(i[f+"/"]=Kp(f,u,e))}if(!Object.keys(i).length)return"";let a='<script type="importmap">',c="<\/script>",l=`{
30
+ FROM ${a}${l}`},Wj=t=>{let e=[],n=(o,r)=>{for(let s in o){let i=r?`${r}/${s}`:s;o[s]===!0?e.push(i):n(o[s],i)}};return n(t,""),e},Gj={graphql:Uj,"json-api":Vj,odata:Hj,sql:zj,paths:Wj};function vS(t,e){return!!(Wo.has(t)||e?.context?.methods?.[t])}var Kj={snapshotId:el},CS=(t,e)=>{let n=t.__ref,{currentSnapshot:o,calleeElement:r}=e;if(!r||r===t){let a=Kj.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=r.__ref.__currentSnapshot;return o<i?[i,r,!0]:[i,r]};var Wp=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),OS=t=>typeof t=="string"&&Wp.has(t);var Gp="smbls_lang",Gi=t=>t&&t.storageLangKey||Gp,ho=(t,e)=>t||e&&e.defaultLang||"en",Le=(t,e=!0)=>{let n=t&&t.languages;if(typeof n=="function")try{n=n(t)}catch{n=null}return Array.isArray(n)&&n.length?n.filter(o=>typeof o=="string"):e?Object.keys(t&&t.translations||{}):[]},Kp=(t,e)=>{if(!e)return null;let n=Le(e),o=/^\/([^/?#]+)/.exec(String(t||""));if(!o)return null;let r=o[1].toLowerCase();for(let s of n)if(typeof s=="string"&&s.toLowerCase()===r)return s;return null},qp=(t,e)=>{let n=Le(t),o=t&&t.addressLang,r=o&&typeof o=="object"&&!Array.isArray(o),s=r?o.mode:o,i={languages:n,address:s===!1?!1:s==="fallback"||s==="strict"?s:!0,fallback:ho(e,t)},a=r&&Array.isArray(o.except)?o.except.filter(c=>typeof c=="string"&&c):[];return a.length&&(i.except=a),i},Yp=(t,e,n)=>{if(t&&t.except&&t.except.length){let r=String(e||"").split(/[?#]/)[0].split("/").filter(Boolean);for(let s=0;s<t.except.length;s++){let i=String(t.except[s]).split("/").filter(Boolean);if(i[i.length-1]==="*"&&i.pop(),i.length>r.length)continue;let a=!0;for(let c=0;c<i.length&&a;c++)i[c].charAt(0)!==":"&&i[c]!==r[c]&&(a=!1);if(a){t={languages:t.languages,address:t.address!==!1,fallback:t.fallback};break}}}let o=null;if(t&&t.address!==!1){let r=/^\/([^/?#]+)/.exec(String(e||"")),s=t&&t.languages||[];if(r){let i=r[1].toLowerCase();for(let a=0;a<s.length&&!o;a++)String(s[a]).toLowerCase()===i&&(o=s[a])}}return o&&(t.address!=="fallback"||!n)?o:t&&t.address==="strict"?t.fallback||"":n||t&&t.fallback||""},is=({polyglot:t,pathname:e,stored:n,stateLang:o}={})=>Yp(qp(t,o),e,n),as=t=>{try{let e=t&&t.location||typeof globalThis<"u"&&globalThis.location;return e&&typeof e.pathname=="string"?e.pathname:""}catch{return""}},RS=({polyglot:t,translations:e,lang:n,pathname:o,attrs:r=""}={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Pn("polyglotStartupScript",[{polyglot:t,translations:e,lang:n,pathname:o,attrs:r}]);if(!e||typeof e!="object")return"";let s=t&&t.storagePrefix||"",i=t&&t.storageLangKey||"",a=[];for(let c in e){let l=e[c];l&&typeof l=="object"&&a.push(`localStorage.setItem(${JSON.stringify(s+c)},${JSON.stringify(JSON.stringify(l))})`)}if(i){let c=n||Kp(o,t)||ho(void 0,t);a.push(`if(!localStorage.getItem(${JSON.stringify(i)}))localStorage.setItem(${JSON.stringify(i)},${JSON.stringify(c)})`)}return a.length?`<script${r}>try{${a.join(";")}}catch(e){}<\/script>`:""};var Xp=Symbol.for("@symbo.ls/utils:textReady"),qj=()=>{let t=globalThis[Xp];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,Xp,{value:t,configurable:!0})}catch{globalThis[Xp]=t}}return t};function tr(t){let e=qj(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function Ki(){let t=globalThis[Xp];t&&t.depth>0&&(t.ready=!1)}async function DS(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var qi=t=>t!=="latest"?`@${t}`:"",Yi=t=>t?`/${t}`:"",Hl=t=>{let e=typeof t=="string"?t.replace(/\/+$/,""):"";if(!e)return{name:"",subpath:""};let n=e.split("/"),o=e.startsWith("@")?2:1;return{name:n.slice(0,o).join("/"),subpath:n.slice(o).join("/")}},Ye={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${Ye.skypack.url}/${t}${qi(e)}${Yi(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${Ye.esmsh.url}/${t}${qi(e)}${Yi(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${Ye.unpkg.url}/${t}${qi(e)}${Yi(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${Ye.jsdelivr.url}/${t}${qi(e)}${Yi(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${Ye.symbols.url}/${t}${qi(e)}${Yi(n)}/+esm`}},er={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Xi=(t={})=>{let{packageManager:e}=t;return er[e]||null},zl=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},wn=(t,e="latest",n="esmsh")=>{let o=Ye[n]||Ye.esmsh,{name:r,subpath:s}=Hl(t);return o.formatUrl(r||t,zl(e),s)},Zp=(t,e="latest",n="esmsh")=>{let o=Ye[n]||Ye.esmsh,r=zl(e),{name:s,subpath:i}=Hl(t);return`${o.url}/${s||t}${qi(r)}${Yi(i)}/`},Yj=/^node:|^@symbo-ls\//,nr=t=>typeof t=="string"&&Yj.test(t),Xj=/[<>…]/,cs=t=>typeof t=="string"&&Xj.test(t),ls=t=>!!t&&typeof t=="object"&&!Array.isArray(t),LS=(t,e="skypack",n={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Pn("getImportMapScript",[t,e,n]);let o=t.dependencies;if(!ls(o))return"";let r=Object.keys(o);if(!r.length)return"";let s=n.pin||{},i={};for(let f of r){if(nr(f)||cs(f))continue;let u=s[f]||o[f]||"latest";i[f]=wn(f,u,e),f.endsWith("/")||(i[f+"/"]=Zp(f,u,e))}if(!Object.keys(i).length)return"";let a='<script type="importmap">',c="<\/script>",l=`{
31
31
  "imports": ${JSON.stringify(i,null,2)}
32
- }`;return`${a}${l}${c}`};var vS=t=>{if(!t)return"";let e=new Date(t),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),o=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${o}, ${n}`};var CS=(t,e)=>{let n=setTimeout(()=>{let{props:o}=t;if(!e.clientHeight){let{node:{clientHeight:r}}=t;r&&(e.clientHeight=r)}if(e.active){if(o.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let r=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(r)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(n)})};var OS=function(e){let n=[0,1];for(let o=2;o<=e;o++)n[o]=n[o-1]+n[o-2];return n[e]};var RS=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);var DS=(t,e=!1,n=document,o="text/javascript")=>new Promise((r,s)=>{try{let i=n.createElement("script");i.type=o,i.async=e,i.src=t,i.addEventListener("load",a=>{r({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),n.body.appendChild(i)}catch(i){s(i)}}),LS=(t,e=document,n="text/javascript")=>new Promise((o,r)=>{let s=e.createElement("script");s.type=n,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),o()},s.onerror=()=>{e.body.removeChild(i),r(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),IS=(t,e=document,n,o="text/javascript")=>{let r=new window.XMLHttpRequest;if(r.open("GET",t,!1),r.send(),r.status===200){let s=e.createElement("script");s.type=o,s.text=r.responseText,e.body.appendChild(s),typeof n=="function"&&n()}else throw new Error(`Failed to load the script ${t}`)},PS=(t,e=!1,n=document,o="text/javascript")=>new Promise((r,s)=>{try{let i=n.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{r({status:!0})}),n.head.appendChild(i)}catch(i){s(i)}}),MS=(t,e=!1,n=document,o="text/javascript",r="smbls-script")=>{try{let s=n.createElement("script");s.type=o,s.async=e,s.id=r,s.innerHTML=t,n.body.appendChild(s)}catch(s){console.warn(s)}};function qi(t,e={}){let{window:n=globalThis}=e,{document:o=n.document}=e;return new Promise((r,s)=>{let i=o.querySelector(`script[src="${t}"]`);if(i)return r(i);let a=o.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,r(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},o.head.appendChild(a)})}async function BS(t,e={}){let{window:n=globalThis}=e,{document:o=n.document}=e;return new Promise((r,s)=>{let i=o.querySelector(`link[href="${t}"]`);if(i)return r(i);let a=o.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,r(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},o.head.appendChild(a)})}var bC=new Set,bn=t=>{bC.has(t)||(bC.add(t),!(typeof console>"u"||!console.error)&&console.error(`[smbls] ${t}: this build has no shared-library support \u2014 \`smbls build\` found no shared library in the project (sharedLibraries.js, symbols.json sharedLibraries), so it left that code out. Declare the library there, or remove symbols.json build.treeShakeLibraries.`))};var NS="system",jj="https://smbls-kv.nika-980.workers.dev",Uj="https://api.symbols.app",Vj="/v1/library-icons/";function ls(t){let e=String(t||"").trim();if(!e)return{owner:NS,key:"",full:""};let n=null,o=e;if(e.includes("/")){let s=e.indexOf("/");n=e.slice(0,s),o=e.slice(s+1)}o=o.replace(/\.symbo\.ls$/iu,""),n||(n=NS);let r=o?`${n}/${o}`:"";return{owner:n,key:o,full:r}}var Yi=(t,e,n,o)=>{for(let r in e){let s=o?`${o}/${r}`:r;n&&n.has(s)||(r in t?k(t[r])&&k(e[r])&&Yi(t[r],e[r],n,s):t[r]=e[r])}},LC=(t,e,n)=>{if(!k(t)||!e.size)return t;let o=`${n}/`,r=!1;for(let i of e)if(i.startsWith(o)){r=!0;break}if(!r)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=LC(t[i],e,a))}return s},Hj=new Set,zj=new Set(["components","pages","functions","snippets","methods"]),SC=(t,e)=>e===""&&zj.has(t),qp=["fontFamily","fontfamily","font_family","FONT_FAMILY"],wC=t=>{let e=new Map;if(!k(t))return e;for(let n of qp){let o=t[n];if(k(o))for(let r in o)!k(o[r])||!o[r].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(r))}return e},IC=(t,e)=>{for(let n of qp){let o=t[n];if(!k(o))continue;let r=e.get(n),s=null;for(let i in o){let a=o[i];if(!k(a)||!a.isDefault||r&&r.has(i))continue;let c={...a};delete c.isDefault,s||(s={...o}),s[i]=c}s&&(t[n]=s)}},Wj=t=>{let e=new Map;if(!k(t))return e;for(let n of qp){let o=t[n];k(o)&&e.set(n,new Set(Object.keys(o)))}return e},PC=(t,e)=>{if(k(t))for(let n of qp){let o=t[n];if(!k(o))continue;let r=e.get(n),s=null;for(let i in o){let a=o[i];!k(a)||a.isSharedLibrary||r&&r.has(i)||(s||(s={...o}),s[i]={...a,isSharedLibrary:!0})}s&&(t[n]=s)}},Gj=t=>t.replace(/\.js$/iu,""),zl=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!E(n))continue;let o=n.split("/").map(r=>Gj(r.trim())).filter(Boolean).join("/");o&&e.add(o)}return e},jS=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),Re=t=>k(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),MC=t=>t.library!==void 0?t.library:t.key??t.name,$S=new Set,US=()=>{$S.clear()},Kj=(t,e)=>{let n=e.filter(o=>!$S.has(o));if(n.length){for(let o of n)$S.add(o);!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&console.warn(`[smbls] shared library "${t}" ships ${n.map(o=>`methods.${o}`).join(", ")} \u2014 named like a built-in element method. Refused: the built-in wins; a library cannot replace an element method on the consuming app. If the app wants this version, declare it in the app's OWN methods.`)}},qj=(t,e,n)=>{let o=null;for(let r in t)if(Ur(r)&&(e.has(`methods/${r}`)||n.push(r),!o)){o={};for(let s in t)Ur(s)||(o[s]=t[s])}return o||t},VS=(t,e)=>{let n=zl(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},HS=["functions","methods","snippets"],BC=["components","pages"],xC=Symbol.for("smbls.libraryScope"),cs="__libraryScopes",zS=new Map,Yj=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),tr=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Xj=/const __scope = |const __peers_* = |const _s_* = el\?\.scope|\?\.context\?\.globalScope\?\./,NC=t=>{try{return Oe(t)}catch{return null}},$C=t=>{if(typeof t!="function")return null;let e=NC(t);return E(e)&&Xj.test(e)&&te(e)?e:null},kC=t=>E(t)&&te(t)||$C(t)!==null,Zj=t=>{let e=t.globalScope;return k(e)&&Object.keys(e).some(n=>kC(e[n]))?!0:HS.some(n=>{let o=t[n];return!!o&&typeof o=="object"&&Object.keys(o).some(r=>kC(o[r]))})},Qj=(t,e,n)=>{let o=t.globalScope,r=e.globalScope;if(n.has("globalScope")||!k(o)||!k(r)||!Zj(e))return 0;let s=0;for(let i of Object.keys(r))n.has(`globalScope/${i}`)||tr(o,i)&&s++;return s},Jj=[[/const __scope = (\(\(\) => \{ const r = [\s\S]*?\}\)\(\));/g,"const __scope = $RESOLVE($1);"],[/const __scope = this \?\? \{\};/g,"const __scope = $RESOLVE(this ?? {});"],[/const (__peers_*) = (this && this !== globalThis && this\.context && this\.context\.globalScope \? this\.scope \?\? this\.context\.globalScope : this);/g,"const $1 = $RESOLVE($2);"],[/const (_s_*) = (el\?\.scope \?\? el\?\.context\?\.globalScope \?\? \{\});/g,"const $1 = $RESOLVE($2);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],tU=t=>{let e=t.split(""),n=[],o=0,r=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
32
+ }`;return`${a}${l}${c}`};var IS=t=>{if(!t)return"";let e=new Date(t),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),o=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${o}, ${n}`};var PS=(t,e)=>{let n=setTimeout(()=>{let{props:o}=t;if(!e.clientHeight){let{node:{clientHeight:r}}=t;r&&(e.clientHeight=r)}if(e.active){if(o.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let r=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(r)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(n)})};var MS=function(e){let n=[0,1];for(let o=2;o<=e;o++)n[o]=n[o-1]+n[o-2];return n[e]};var BS=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);var NS=(t,e=!1,n=document,o="text/javascript")=>new Promise((r,s)=>{try{let i=n.createElement("script");i.type=o,i.async=e,i.src=t,i.addEventListener("load",a=>{r({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),n.body.appendChild(i)}catch(i){s(i)}}),$S=(t,e=document,n="text/javascript")=>new Promise((o,r)=>{let s=e.createElement("script");s.type=n,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),o()},s.onerror=()=>{e.body.removeChild(i),r(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),FS=(t,e=document,n,o="text/javascript")=>{let r=new window.XMLHttpRequest;if(r.open("GET",t,!1),r.send(),r.status===200){let s=e.createElement("script");s.type=o,s.text=r.responseText,e.body.appendChild(s),typeof n=="function"&&n()}else throw new Error(`Failed to load the script ${t}`)},jS=(t,e=!1,n=document,o="text/javascript")=>new Promise((r,s)=>{try{let i=n.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{r({status:!0})}),n.head.appendChild(i)}catch(i){s(i)}}),US=(t,e=!1,n=document,o="text/javascript",r="smbls-script")=>{try{let s=n.createElement("script");s.type=o,s.async=e,s.id=r,s.innerHTML=t,n.body.appendChild(s)}catch(s){console.warn(s)}};function Zi(t,e={}){let{window:n=globalThis}=e,{document:o=n.document}=e;return new Promise((r,s)=>{let i=o.querySelector(`script[src="${t}"]`);if(i)return r(i);let a=o.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,r(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},o.head.appendChild(a)})}async function VS(t,e={}){let{window:n=globalThis}=e,{document:o=n.document}=e;return new Promise((r,s)=>{let i=o.querySelector(`link[href="${t}"]`);if(i)return r(i);let a=o.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,r(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},o.head.appendChild(a)})}var CC=new Set,Xe=t=>{CC.has(t)||(CC.add(t),!(typeof console>"u"||!console.error)&&console.error(`[smbls] ${t}: this build has no shared-library support \u2014 \`smbls build\` found no shared library in the project (sharedLibraries.js, symbols.json sharedLibraries), so it left that code out. Declare the library there, or remove symbols.json build.treeShakeLibraries.`))};var HS="system",Zj="https://smbls-kv.nika-980.workers.dev",Qj="https://api.symbols.app",Jj="/v1/library-icons/";function us(t){let e=String(t||"").trim();if(!e)return{owner:HS,key:"",full:""};let n=null,o=e;if(e.includes("/")){let s=e.indexOf("/");n=e.slice(0,s),o=e.slice(s+1)}o=o.replace(/\.symbo\.ls$/iu,""),n||(n=HS);let r=o?`${n}/${o}`:"";return{owner:n,key:o,full:r}}var $t=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),oe=ao,tU=t=>k(t)||t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===null,or=(t,e,n,o)=>{let r=Array.isArray(t);if(!r&&!tU(t))return t;if(o&&o.has(t))return o.get(t);let s=o||new Map,i=r?[]:{};if(s.set(t,i),r)for(let a=0;a<t.length;a++)i[a]=or(t[a],e,n,s);else for(let a in t){if(!$t(t,a)||oe.has(a))continue;let c=n?`${n}/${a}`:a;e&&e.has(c)||(i[a]=or(t[a],e,c,s))}return s.delete(t),i},Qi=(t,e,n,o)=>{for(let r in e){if(!$t(e,r)||oe.has(r))continue;let s=o?`${o}/${r}`:r;n&&n.has(s)||(r in t?k(t[r])&&k(e[r])&&Qi(t[r],e[r],n,s):t[r]=or(e[r],n,s))}},GS=(t,e,n)=>{if(!k(t)||!e.size)return t;let o=`${n}/`,r=!1;for(let i of e)if(i.startsWith(o)){r=!0;break}if(!r)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||oe.has(i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=GS(t[i],e,a))}return s},eU=(t,e)=>{if(t!==e||!k(t))return t;let n={};for(let o in t)$t(t,o)&&!oe.has(o)&&(n[o]=t[o]);return n},nU=new Set,oU=new Set(["components","pages","functions","snippets","methods"]),OC=(t,e)=>e===""&&oU.has(t),Jp=["fontFamily","fontfamily","font_family","FONT_FAMILY"],RC=t=>{let e=new Map;if(!k(t))return e;for(let n of Jp){let o=t[n];if(k(o))for(let r in o)!k(o[r])||!o[r].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(r))}return e},UC=(t,e)=>{for(let n of Jp){let o=t[n];if(!k(o))continue;let r=e.get(n),s=null;for(let i in o){let a=o[i];if(!k(a)||!a.isDefault||r&&r.has(i))continue;let c={...a};delete c.isDefault,s||(s={...o}),s[i]=c}s&&(t[n]=s)}},rU=t=>{let e=new Map;if(!k(t))return e;for(let n of Jp){let o=t[n];k(o)&&e.set(n,new Set(Object.keys(o)))}return e},VC=(t,e)=>{if(k(t))for(let n of Jp){let o=t[n];if(!k(o))continue;let r=e.get(n),s=null;for(let i in o){let a=o[i];!k(a)||a.isSharedLibrary||r&&r.has(i)||(s||(s={...o}),s[i]={...a,isSharedLibrary:!0})}s&&(t[n]=s)}},sU=t=>t.replace(/\.js$/iu,""),Kl=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!E(n))continue;let o=n.split("/").map(r=>sU(r.trim())).filter(Boolean).join("/");o&&e.add(o)}return e},KS=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),Ie=t=>k(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),HC=t=>t.library!==void 0?t.library:t.key??t.name,zS=new Set,qS=()=>{zS.clear()},iU=(t,e)=>{let n=e.filter(o=>!zS.has(o));if(n.length){for(let o of n)zS.add(o);!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&console.warn(`[smbls] shared library "${t}" ships ${n.map(o=>`methods.${o}`).join(", ")} \u2014 named like a built-in element method. Refused: the built-in wins; a library cannot replace an element method on the consuming app. If the app wants this version, declare it in the app's OWN methods.`)}},aU=(t,e,n)=>{let o=null;for(let r in t)if(Hr(r)&&(e.has(`methods/${r}`)||n.push(r),!o)){o={};for(let s in t)!$t(t,s)||oe.has(s)||Hr(s)||(o[s]=t[s])}return o||t},th=(t,e)=>{let n=Kl(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},YS=["functions","methods","snippets"],zC=["components","pages"],DC=Symbol.for("smbls.libraryScope"),fs="__libraryScopes",XS=new Map,cU=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),lU=/const __scope = |const __peers_* = |const _s_* = el\?\.scope|\?\.context\?\.globalScope\?\./,WC=t=>{try{return De(t)}catch{return null}},GC=t=>{if(typeof t!="function")return null;let e=WC(t);return E(e)&&lU.test(e)&&ee(e)?e:null},LC=t=>E(t)&&ee(t)||GC(t)!==null,fU=t=>{let e=t.globalScope;return k(e)&&Object.keys(e).some(n=>LC(e[n]))?!0:YS.some(n=>{let o=t[n];return!!o&&typeof o=="object"&&Object.keys(o).some(r=>LC(o[r]))})},uU=(t,e,n)=>{let o=t.globalScope,r=e.globalScope;if(n.has("globalScope")||!k(o)||!k(r)||!fU(e))return 0;let s=0;for(let i of Object.keys(r))n.has(`globalScope/${i}`)||$t(o,i)&&s++;return s},dU=[[/const __scope = (\(\(\) => \{ const r = [\s\S]*?\}\)\(\));/g,"const __scope = $RESOLVE($1);"],[/const __scope = this \?\? \{\};/g,"const __scope = $RESOLVE(this ?? {});"],[/const (__peers_*) = (this && this !== globalThis && this\.context && this\.context\.globalScope \? this\.scope \?\? this\.context\.globalScope : this);/g,"const $1 = $RESOLVE($2);"],[/const (_s_*) = (el\?\.scope \?\? el\?\.context\?\.globalScope \?\? \{\});/g,"const $1 = $RESOLVE($2);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],pU=t=>{let e=t.split(""),n=[],o=0,r=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
33
33
  `&&(e[l]="~")},i=()=>{let a=o;for(;o<t.length;){let c=t[o];if(c==="\\"){o+=2;continue}if(c==="`"){s(a,o),o++;return}if(c==="$"&&t[o+1]==="{"){s(a,o),o+=2,n.push(r),r++;return}o++}s(a,o)};for(;o<t.length;){let a=t[o];if(a==="/"&&t[o+1]==="/"){let c=t.indexOf(`
34
34
  `,o),l=c===-1?t.length:c;s(o,l),o=l;continue}if(a==="/"&&t[o+1]==="*"){let c=t.indexOf("*/",o+2),l=c===-1?t.length:c+2;s(o,l),o=l;continue}if(a==='"'||a==="'"){let c=a,l=++o;for(;o<t.length&&t[o]!==c&&t[o]!==`
35
- `;)t[o]==="\\"&&o++,o++;s(l,o),o++;continue}if(a==="`"){o++,i();continue}if(a==="{"){r++,o++;continue}if(a==="}"){if(r--,n.length&&r===n[n.length-1]){n.pop(),o++,i();continue}o++;continue}o++}return e.join("")},TC=(t,e)=>{if(!E(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!/const _s_* = /.test(t)&&!t.includes("?.context?.globalScope?.")||!te(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,o=t;for(let[r,s]of Jj){let i=tU(o);o=o.replace(r,(...a)=>{let c=a[a.length-2];return i[c]==="~"||i[c]!==o[c]?a[0]:s.replace(/\$RESOLVE\(/g,n).replace(/\$(\d)/g,(l,f)=>a[Number(f)])})}return o},Yp=(t,e)=>{if(E(t))return TC(t,e);let n=$C(t);return n===null?t:TC(n,e)},eU={lazy:!0,window:globalThis},FC=(t,e)=>{let n=Yp(t,e);if(n===t||!E(n))return n;try{let o=de({v:n},{},eU).v;return typeof o!="function"?n:(Object.defineProperty(o,"toJSON",{value:()=>n,configurable:!0}),o)}catch{return n}},FS=t=>{if(!t||typeof t!="object")return!1;if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},nU=(t,e)=>{let n=new WeakMap,o=r=>{if(E(r)||typeof r=="function")return FC(r,e);if(qc(r)||!FS(r))return r;if(n.has(r))return n.get(r);let s=Array.isArray(r)?[]:Object.getPrototypeOf(r)===null?Object.create(null):{};n.set(r,s);for(let i of Object.keys(r))s[i]=o(r[i]);return s};return o(t)},oU=(t,e)=>{let n={...t},o={};for(let r of Object.keys(t.globalScope))o[r]=Yp(t.globalScope[r],e);n.globalScope=o;for(let r of HS){let s=t[r];if(!FS(s))continue;let i={};for(let a of Object.keys(s))i[a]=FC(s[a],e);n[r]=i}for(let r of BC)FS(t[r])&&(n[r]=nU(t[r],e));return n},EC=new WeakMap,rU=(t,e,n)=>{let o=EC.get(t);o||EC.set(t,o=new Map);let r=o.get(e);if(r)return r;let s=(i,a)=>tr(n,i)&&n[i]===a;return r=new Proxy(t,{get(i,a){if(typeof a=="symbol"||tr(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return tr(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!tr(i,a)&&tr(e,a)?(e[a]=c,!0):Reflect.set(i,a,c)},has:(i,a)=>Reflect.has(i,a)||a in e}),o.set(e,r),r},sU=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",iU=(t,e)=>{let n=zS.get(t);return n?e===n.consumerGs?n.libGs:sU(e)?rU(e,n.libGs,n.consumerGs):e:e},aU=()=>{typeof globalThis[xC]!="function"&&Object.defineProperty(globalThis,xC,{value:iU,configurable:!0})},Xp=t=>{let e=t[cs];return Array.isArray(e)?e:null},WS=t=>Re(t)?t.library:t,cU=(t,e,n)=>{let o=Xp(t);return!!o&&o.some(r=>r&&r.index===e&&(!r.key||r.key===n.key)&&E(r.id)&&lU(t,r.id))},lU=(t,e)=>{let n=JSON.stringify(e),o=new Set,r=s=>{if(E(s))return s.includes(n);if(!s||typeof s!="object"||o.has(s))return!1;o.add(s);for(let i in s)if(r(s[i]))return!0;return!1};for(let s of["globalScope",...HS,...BC])if(r(t[s]))return!0;return!1},fU=(t,e)=>{let n={};for(let o of Object.keys(t))n[o]=Yp(t[o],e);return n},AC=new WeakMap,Wl=(t,e=null)=>{let n=t&&Xp(t);if(!n||!n.length)return 0;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return bn("bindLibraryGlobalScopes"),0;let o=t.globalScope;if(!k(o))return 0;let r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=AC.get(o);s||AC.set(o,s=new Set),aU();let i=0;for(let a of n){if(!a||!E(a.id)||s.has(a.id))continue;let c=WS(r[a.index]);if(!c||!k(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?NC(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return E(h)||E(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=k(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>E(p)&&tr(c.globalScope,p)&&tr(e,p)&&f(e[p],Yp(c.globalScope[p],a.id))):[],d=Gr(fU(c.globalScope,a.id));Object.setPrototypeOf(d,o),zS.set(a.id,{libGs:d,consumerGs:o});for(let p of u)o[p]=d[p];s.add(a.id),i++}return i},uU=/^@symbo[-.]ls\//,Hl=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,Zp=t=>[`@symbo-ls/${t}`,`@symbo.ls/${t}`],Xi=(t,e)=>{let n=[];if(!Array.isArray(t)||!t.length)return n;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return bn("libraryPackageSpecs"),n;let o=new Map,r=(i,a,c)=>{for(let l of Zp(i)){let f=o.get(l);if(f===void 0){o.set(l,a),n.push([l,a]);continue}f!==a&&c&&typeof e=="function"&&e({spec:l,kept:f,refused:a})}},s=[];for(let i of t){let a=WS(i);if(!a||typeof a!="object"||a.__isStub)continue;let c=a.key||a.name||a.__libraryKey,l=[];for(let f of[a.key,a.name,a.__libraryKey,a.__libraryName]){if(typeof f!="string"||!f||f!==c&&!uU.test(f))continue;let u=Hl(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&Hl(c)===f?r(f,a,!1):s.push([f,a])})}for(let[i,a]of s)r(i,a,!0);return n},Zi=({spec:t,kept:e,refused:n})=>{typeof console>"u"||globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] shared library "${n&&n.key}" also claims ${t}, which "${e&&e.key}" already owns; ${t} stays with "${e&&e.key}".`)},vC=["functions","methods","snippets"],Qp=Symbol.for("smbls.libraryPackages"),Vl=new WeakMap,dU=t=>!!t&&typeof t=="object"&&!Array.isArray(t),pU=t=>({get globalScope(){return t()}}),CC=(t,e,n)=>{let o={};for(let r of Object.keys(t))o[r]=t[r];return Object.defineProperty(o,"context",{configurable:!0,enumerable:!1,writable:!0,value:pU(e)}),Vl.set(o,n),o},OC=t=>!dU(t)||!Vl.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),Gl=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let o of vC){let r=t[o];OC(r)||Vl.get(r)===t||(t[o]=CC(r,e,t))}if(!globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&Array.isArray(t.sharedLibraries)){let o=Xp(t)||[];t.sharedLibraries=t.sharedLibraries.map((r,s)=>{let i=Re(r)&&r&&"library"in r,a=WS(r);if(!a||typeof a!="object"||a.__isStub||Vl.get(a)===t)return r;let c=o.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&zS.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of vC)OC(a[u])||(f[u]=CC(a[u],l,t));return Vl.set(f,t),i?{...r,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let o={};for(let[r,s]of Xi(t.sharedLibraries,Zi))o[r]=s;try{Object.defineProperty(n,Qp,{configurable:!0,enumerable:!1,writable:!0,value:o})}catch{}}},hU=(t,e,n,o="library",r=-1)=>{let s=VS(e,n),i=!cU(t,r,e)&&Qj(t,e,s)>0?`${o}#${Yj()}`:null,a=i?oU(e,i):e,c=i?new Set(Object.keys(t.globalScope)):null,l=[];for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&!(f==="sharePages"||f==="sharedLibIgnore")&&f!==cs&&!f.startsWith("__")&&f!=="app"&&!s.has(f)){if(k(a[f])&&k(t[f])){if(f==="designSystem")Yi(t[f],a[f],s,f);else for(let u in a[f])if(!s.has(`${f}/${u}`)){if(f==="methods"&&Ur(u)){u in t[f]||l.push(u);continue}u in t[f]?SC(f,t[f][u])&&!SC(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?qj(u,s,l):u;t[f]=LC(d,s,f)}}i&&(Xp(t)||(t[cs]=[]),t[cs].push({id:i,index:r,key:E(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&Kj(o,l)},gU=(t,e,n)=>{if(t!==e){let o=MC(t);if(E(o)&&o)return o;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},mU=`${NS}/default`,yU=t=>E(t)&&t!==""&&ls(t).full===mU,_U=(t,e)=>{if(E(e.key)&&e.key)return e.key;if(t!==e){if(E(t.key)&&t.key)return t.key;if(E(t.name)&&t.name)return t.name}return null},jC=t=>{let e=[],n=[];for(let o=0;o<t.length;o++){let r=t[o],s=r,i=Hj;if(Re(s)&&(i=zl(s.ignoreList),s=s.library),!k(s))continue;let a={entry:r,lib:s,ignore:i,index:o};yU(_U(r,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},UC=(t,e,n)=>{let o=e(),r=wC(o),s=Wj(o),{linked:i,bases:a}=jC(t);for(let f of i)n(f);let c=!r.size&&a.length?wC(e()):null;for(let f of a)n(f);return{claims:r.size?r:c&&c.size?c:null,ownFamilies:s}},Kl=(t,e)=>{if(!e||!e.length)return;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return bn("mergeSharedLibraries");let n=t.designSystem,{claims:o,ownFamilies:r}=UC(e,()=>t.designSystem,({entry:s,lib:i,ignore:a,index:c})=>hU(t,i,a,gU(s,i,c),c));t.designSystem!==n&&(t.designSystem={...t.designSystem}),PC(t.designSystem,r),o&&IC(t.designSystem,o)},fs=(t,e)=>{let n=k(t)?t:null;if(!Array.isArray(e)||!e.length)return n||{};if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return bn("sharedLibraryFiles"),n||{};let o=n?{...n}:{},{linked:r,bases:s}=jC(e);for(let{lib:i,ignore:a}of[...r,...s]){let c=VS(i,a);if(c.has("files"))continue;let l=i.files;if(k(l))for(let f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c.has(`files/${f}`)||f in o||(o[f]=l[f]))}return o},ql=(t,e,n=Yi)=>{if(!k(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return bn("mergeSharedLibraryDesignSystems"),t;let{claims:o,ownFamilies:r}=UC(e,()=>t,({lib:s,ignore:i})=>{let a=s.designSystem;if(!a||typeof a!="object")return;let c=VS(s,i);c.has("designSystem")||n(t,a,c,"designSystem")});return PC(t,r),o&&IC(t,o),t};async function Qi(t,e={}){if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return bn("fetchLibraryData"),null;let n=e.provider||"kv";if(n==="same-origin")return SU(t,e);if(n==="api")return RC(t,e);let o=await bU(t,e);return o||RC(t,e)}async function bU(t,e={}){let n=e.kvBaseUrl||jj,o=e.env||"production",r=`${n}/kv/${encodeURIComponent(t)}?env=${o}`;try{let s=await fetch(r,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function SU(t,e={}){let n=e.sameOriginBase;if(!n)return null;let o=`${n}${Vj}${encodeURIComponent(t)}`;try{let r=await fetch(o,{method:"GET"});return r.ok?await r.json():null}catch{return null}}async function RC(t,e={}){let n=e.apiBaseUrl||Uj,{key:o}=ls(t);try{let r=`${n}/core/projects/libraries/available?search=${encodeURIComponent(o)}&limit=10`,s=await fetch(r,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:g}=ls(p?.key);return g.toLowerCase()===o.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${n}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function DC(t,e={}){if(k(t))return t;if(E(t)){let{full:n}=ls(t);if(!n)return null;try{let o=await Qi(n,e);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}async function Yl(t,e={}){return!t||!t.length?[]:globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__?(bn("resolveSharedLibraries"),[]):(await Promise.all(t.map(async o=>{if(Re(o)){let r=await DC(MC(o),e);return r?{library:r,ignoreList:o.ignoreList}:null}return DC(o,e)}))).filter(Boolean)}var j=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},Qr=t=>JSON.stringify(t).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),$n=(t,e,{remove:n=!1,warn:o}={})=>{if(!t||typeof t.querySelector!="function")return null;let r=null;try{r=t.querySelector(e)}catch{return null}if(!r)return null;n&&r.parentNode&&r.parentNode.removeChild(r);let s;try{s=JSON.parse(r.textContent||"")}catch(i){o&&o(i)}return{value:s,block:r}},Zl='script[type="application/json"][data-brender="registry"]',Ql='script[type="application/json"][data-brender="registry-tree"]',Jl=t=>{if(!k(t)||t.f!=="tree"||!Array.isArray(t.e)||t.e.length%3)return null;let e=t.e,n=[],o={},r=0;for(let s=0,i=0;s<e.length;s+=3,i++){let a=e[s],c=e[s+1],l=e[s+2];if(!Number.isInteger(a)||a<0||a>i||typeof c!="string"||!Number.isInteger(l))return null;let f=a?n[i-a]+"."+c:c;r+=l,n.push(f),o[f]="br-"+r}return o},tf='link[rel="preload"][data-smbls="design-system"]',ef='meta[name="smbls-design-system"][data-smbls="design-system"]',nf='script[type="application/json"][data-smbls="design-system"]',wU=t=>k(t)&&k(t.config)&&Array.isArray(t.rules),KS=(t,e)=>e&&e.defer===!0?'<meta name="smbls-design-system" content="'+j(t)+'" data-smbls="design-system">':'<link rel="preload" href="'+j(t)+'" as="fetch" crossorigin="anonymous" data-smbls="design-system">',qS=t=>wU(t)?'<script type="application/json" data-smbls="design-system">'+Qr(t)+"<\/script>":"",Jp='meta[name="brender-stamp"]',YS=({stamp:t,time:e}={})=>'<meta name="brender-stamp" content="'+j(t)+'" data-time="'+(typeof e=="number"&&isFinite(e)?Math.round(e):"")+'">',Jr=t=>{if(!t||typeof t.querySelector!="function")return null;let e=null;try{e=t.querySelector(Jp)}catch{return null}if(!e)return null;let n=parseInt(e.getAttribute("data-time"),10);return{stamp:e.getAttribute("content")||"",time:isFinite(n)?n:null}},xU=/<script\b(?:[^>"']|"[^"]*"|'[^']*')*\btype\s*=\s*["']?importmap["']?(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/script\s*>/gi,XS=(t,e)=>{let n=-1;for(let o of String(t).matchAll(xU))n=o.index+o[0].length;return n===-1?null:t.slice(0,n)+`
36
- `+e+t.slice(n)},VC=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${j(n)}"`).join(" "),Sn=t=>{let e=5381,n=String(t);for(let o=0;o<n.length;o++)e=(e*33^n.charCodeAt(o))>>>0;return e.toString(36)},kU=new Set(["jsonLd","styles","scripts"]),TU=new Set(["source"]),Ji=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let o=typeof n=="string"?n:JSON.stringify(n),r=String(o).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Sn(o)}">${r}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let o=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Sn(o)}">${o}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let o=typeof n=="string",r=o?n:n.src;if(!r&&!n.body)continue;let s=[];r&&s.push(`src="${j(r)}"`),o||(n.type&&s.push(`type="${j(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${j(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${j(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${j(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${j(r||Sn(n.body||""))}"`;if(!o&&n.body){let a=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},us=t=>`${t.hreflang||""}|${t.href||""}`,er=t=>k(t)?Sn(JSON.stringify(t)):String(t),ds=t=>k(t)?Sn(JSON.stringify(t)):String(t),EU=(t,e,n)=>t==="favicons"?Array.isArray(e)&&(typeof n=="string"||k(n))?` data-smbls-favicon="${j(er(n))}"`:"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${j(e)}"`:"",AU=t=>k(t)?` data-smbls-alternate="${j(us(t))}"`:"",ZS=(t,e)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Ln("generateMetaTags",[t,e]);e||(t={...t,robots:"noindex"});let n=!1,o=Object.entries(t).reduce((r,[s,i])=>{if(!i&&i!==0&&i!==!1||kU.has(s)||TU.has(s))return r;if(s==="title")return r.push(`<title>${j(i)}</title>`),r;if(s==="canonical")return r.push(`<link rel="canonical" href="${j(i)}">`),r;if(s==="manifest")return r.push(`<link rel="manifest" href="${j(i)}">`),r;if(s==="favicon"||s==="favicons"||s==="icon"||s==="icons")return(Array.isArray(i)?i:[i]).forEach(u=>{let d=EU(s,i,u);if(typeof u=="string")r.push(`<link rel="icon" href="${j(u)}"${d}>`);else if(typeof u=="object"){let p=VC(u);/rel=/.test(p)?r.push(`<link ${p}${d}>`):r.push(`<link rel="icon" ${p}${d}>`)}}),r;if(s==="alternate")return(Array.isArray(i)?i:[i]).forEach(u=>{if(u&&typeof u=="object"){let d=Object.entries(u).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${j(g)}"`).join(" ");r.push(`<link rel="alternate" ${d}${AU(u)}>`)}}),r;if(s==="theme-color"&&Array.isArray(i))return i.forEach(f=>{if(!k(f))return;let u=VC({name:"theme-color",content:f.content,media:f.media});r.push(`<meta ${u} data-smbls-theme-color="${j(ds(f))}">`)}),r;let a=(f,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${d}="${j(f)}" content="${j(u)}">`);else if(Array.isArray(u))u.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")r.push(`<meta ${d}="${j(f)}" content="${j(p)}">`);else if(typeof p=="object"){let g=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${j(m)}"`).join(" ");r.push(`<meta ${g}>`)}});else if(typeof u=="object"){let p=Object.entries(u).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${j(h)}"`).join(" ");r.push(`<meta ${p}>`)}};if(s.startsWith("http-equiv:")){let f=s.replace("http-equiv:","");return a(f,i,"http-equiv"),r}if(s.startsWith("itemprop:")){let f=s.replace("itemprop:","");return a(f,i,"itemprop"),r}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>s.startsWith(f));if(l){let f=s.replace(l,"");return a(`${l.replace(":","")}:${f}`,i,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),r}if(s.startsWith("apple:")||s.startsWith("msapplication:")){let f=s.startsWith("apple:")?"apple-":"msapplication-",u=s.replace(/^apple:|^msapplication:/,"");return a(`${f}${u}`,i,"name"),r}return s==="viewport"&&(n=!0),a(s,i),r},['<meta charset="UTF-8">']);return n||o.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),o.push(...Ji(t)),o.join(`
37
- `)},vU=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),Xl=t=>typeof t=="string"&&t.length>0,th=t=>{if(!t||typeof t!="object")return null;if(Xl(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:Xl(e.src)?e.src:Xl(e.storageUrl)?e.storageUrl:null},CU=new Set(["icon","favicon","icons","favicons"]),HC=(t,e)=>{if(typeof t=="string")return e(t);if(!k(t))return t;let n={...t};return Xl(n.href)&&(n.href=e(n.href)),Xl(n.src)&&(n.src=e(n.src)),n};function ps(t,e){if(!e||typeof e!="object")return t;let n=r=>!vU(r)||!Object.prototype.hasOwnProperty.call(e,r)?r:th(e[r])||r,o={...t};for(let[r,s]of Object.entries(o))CU.has(r)?o[r]=Array.isArray(s)?s.map(i=>HC(i,n)):HC(s,n):typeof s=="string"?o[r]=n(s):Array.isArray(s)&&(o[r]=s.map(i=>typeof i=="string"?n(i):i));return o}function GS(t,e){if(!t||!e)return;let n=e.split("."),o=t;for(let r of n){if(o==null||typeof o!="object")return;o=o[r]}return o}function OU(t,e){let n=GS(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!Ri(n))return n}function RU(t,e,n){let r=(e.config||e.settings||{}).polyglot||e.polyglot,s=n?.lang||r?.defaultLang||"en",a=(r?.translations||{})[s]||{},c=[n?.state,e.state].filter(u=>u&&typeof u=="object"),l=u=>{for(let d of c){let p=OU(d,u);if(p!==void 0)return p}},f={...t};for(let[u,d]of Object.entries(f))typeof d!="string"||!d.includes("{{")||(f[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,g,h)=>{let m=g.trim();if(h==="polyglot")return a[m]??GS(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??GS(a,m)??p}));return f}function zC(t){if(!k(t))return{};let e={...t};for(let[n,o]of Object.entries(e))if(typeof o=="function"){let r=o.toString(),s=r.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=r.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[n]=`{{ ${i[1]} | polyglot }}`;continue}let a=r.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[n]=`{{ ${a[1]} }}`;continue}delete e[n]}else if(typeof o=="string"){let r=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(r){e[n]=`{{ ${r[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | polyglot }}`;continue}if(o.includes("=>")&&o.includes("s.")){let i=o.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[n]=`{{ ${i[1]} }}`;continue}}Ri(o)&&delete e[n]}return e}function QS(t,e,n,{isProduction:o=!1,channel:r="production"}={}){if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Ln("getPageMetadata",[t,e,n,{isProduction:o,channel:r}]);let s=t.pages?.[e],i=k(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=zC(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=zC(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let m=t.name||t.key;m?o?d.title=m:r==="development"?d.title=`${m} / dev:symbo.ls`:r==="staging"?d.title=`${m} / staging:symbo.ls`:d.title=`${m} / symbo.ls`:d.title="Symbols demo"}d=RU(d,t,n),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let p=l.has("og:url")?d["og:url"]:l.has("url")?d.url:void 0,g=n?.actualPathname||e;if(p)d["og:url"]=p;else if(d["og:url"]||d.url){let m=(d["og:url"]||d.url||"").replace(/\/$/,"");if(m&&g&&g!=="/"){let y=g.startsWith("/")?g:"/"+g;d["og:url"]=m+y}}d=ps(d,fs(t.files,t.sharedLibraries));let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[m,y]of Object.entries(d))if(typeof y=="string"&&y.includes("{{")){let x=y.replace(/\{\{[^}]*\}\}/g,"").trim();x?d[m]=x:m==="title"?d[m]=h:delete d[m]}return d}var eh=(t,e)=>(P(e)?e:Object.values(e)).reduce((n,o)=>Math.abs(o-t)<Math.abs(n-t)?o:n),JS=(t,e)=>(t=parseFloat(t),k(e)&&(e=Object.values(e)),eh(t,e));var tw=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},ew=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},nw=t=>t.replace(/[^a-zA-Z0-9_]/g,""),uo=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),ow=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),of=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),rw=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},hs=t=>{if(P(t))return t;if(E(t))return t.split(" ");if(k(t))return Object.values(t);if(fe(t))return[t]};var WC=/[A-Za-z_$][A-Za-z0-9_$-]*/g,GC=/[A-Za-z_$][A-Za-z0-9_$]*(?: [A-Za-z0-9_$]+){1,5}/g,DU=(t,e)=>{WC.lastIndex=0;let n;for(;n=WC.exec(t);){let r=n[0];if(e.add(r),r.indexOf("-")!==-1)for(let s of r.split("-"))s&&e.add(s)}GC.lastIndex=0;let o;for(;o=GC.exec(t);){let r=o[0].split(" ");for(let s=0;s<r.length-1;s++)for(let i=2;i<=6&&s+i<=r.length;i++)e.add(uo(r.slice(s,s+i).join(" ")))}return e},qC=t=>Re(t)?t.library:t,KC=["components","pages","snippets"],LU=["name","icon"],nh=t=>{if(!k(t))return null;let e=t.key;if(!e)return null;let n=t.owner,o=k(n)?n.slug:n;return o?`${o}/${e}`:String(e)},IU=/^\s*(?:async\s+)?(?:function\b|\(|[A-Za-z_$][A-Za-z0-9_$]*\s*=>)/,oh=t=>{let e=new Set,n=o=>{if(Array.isArray(o)){for(let r of o)if(n(r))return!0;return!1}if(!k(o)||e.has(o))return!1;e.add(o);for(let r of LU){let s=o[r];if(typeof s=="string"&&IU.test(s))return!0}for(let r of Object.keys(o))if(n(o[r]))return!0;return!1};for(let o of KC)if(n(t[o]))return!0;for(let o of t.sharedLibraries||[]){let r=qC(o);if(k(r)){for(let s of KC)if(n(r[s]))return!0}}return!1},sw=t=>{if(!k(t)||!Array.isArray(t.sharedLibraries))return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return t.sharedLibraries.length&&bn("planLibraryIconPrune"),null;let e=k(t.settings)?t.settings.libraryIconPrune:void 0;if(e===!1||e!==!0&&oh(t))return null;let n=[];for(let u of t.sharedLibraries){let d=qC(u),p=k(d)&&d.designSystem,g=k(p)&&p.icons;if(!k(g))continue;let h=nh(d);h&&n.push({id:h,icons:g,designSystem:p})}if(!n.length)return null;let o=new Set(n.map(u=>u.designSystem)),r=JSON.stringify(t,function(u,d){if(u!=="__ssr"&&!(u==="icons"&&o.has(this)))return d});if(typeof r!="string")return null;let s=DU(r,new Set),i=new Map,a=[],c=0,l=0,f=0;for(let u of n){let d=[];for(let p of Object.keys(u.icons)){if(s.has(p)){l++;continue}d.push(p);let g=u.icons[p];f+=p.length+(typeof g=="string"?g.length:0)}d.length&&(c+=d.length,i.set(u.icons,new Set(d)),a.push({id:u.id,icons:d}))}return c?{drops:i,prune:{libraries:a},report:{icons:c,kept:l,bytes:f}}:null},iw=t=>function(e,n){let o=t.get(this);if(!(o&&o.has(e)))return n},rh=(t,e={})=>{let n=new Map;for(let a of t&&t.libraries||[])if(!(!a||!a.id||!Array.isArray(a.icons)))for(let c of a.icons)n.has(c)||n.set(c,a.id);if(!n.size)return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return bn("createPrunedLibraryIconLoader"),null;let o=t&&typeof t.sameOriginBase=="string"&&t.sameOriginBase,r=o?{...e,provider:"same-origin",sameOriginBase:o}:e,s=new Map,i=a=>{let c=s.get(a);return c||(c=Promise.resolve().then(()=>Qi(a,r)).then(l=>{let f=k(l)&&k(l.designSystem)&&l.designSystem.icons;return k(f)?f:null}),s.set(a,c)),c};return a=>{let c=n.get(a);return c?i(c):null}},rf=(t,e={})=>{if(!k(t))return!1;let n=t.__libraryIconPrune;if(!k(n))return!1;let o=t.designSystem;if(!k(o)||o.iconsLoader)return!1;let r=rh(n,e);return r?(o.iconsLoader=r,!0):!1};var aw=()=>{let t=document.styleSheets[0],e="";if(t)try{let n=t.cssRules||t.rules;for(let o=0;o<n.length;o++)e+=n[o].cssText}catch(n){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",n)}else globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log("No stylesheets found in document.styleSheets[0].");return e};var pe=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let o=n.assets&&n.assets[e]||n.files&&n.files[e];if(!o)return null;if(typeof o=="string")return{src:o,type:null,variants:null};if(typeof o=="object"){if(typeof o.src=="string")return o;let r=o.content,s=r&&r.src;if(typeof s=="string")return{...o,src:s,type:o.type??r.type??null,variants:o.variants??r.variants??null}}return null},ta=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(r=>typeof r.width=="number"),o=[];for(let r of t)n&&typeof r.width=="number"?o.push(`${r.src} ${r.width}w`):n||(r.scale===1&&e?o.push(r.src):r.scale&&r.scale!==1&&o.push(`${r.src} ${r.scale}x`));return o.join(", ")},sf=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return ta(e,{keepOneX:!1})},af=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let o=[];for(let[a,c]of n)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:ta(c,{keepOneX:!0})}});let r=n.get(t.type)||[],s=ta(r,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]};var oa={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Ke=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=oa[t.toLowerCase()];if(e&&(t=e),t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&wt&&R){let n=wt.body.appendChild(wt.createElement("fictum")),o="rgb(1, 2, 3)";if(n.style.color=o,n.style.color!==o){wt.body.removeChild(n);return}if(n.style.color=t,n.style.color===o||n.style.color==="")return wt.body.removeChild(n),[0,0,0,0];t=R.getComputedStyle(n).color,wt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},cw=(t,e,n=.5)=>(t=Ke(t),e=Ke(e),fh(t,e,n)),lw=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${o},${r})`},sh=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,o,r]},fw=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),ih=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),uw=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${o},${r},${e})`},dw=(t,e,n=.5)=>{let o=[];for(let r=0;r<3;r++)o[r]=~~(t[r]+(e[r]-t[r])*n);return`rgb(${o})`},pw=(t,e)=>{let[n,o,r]=e,s=Math.max(0,Math.min(100,r+parseFloat(t)));return[n,o,s]},ah=(t,e,n)=>{let o=Math.max(t,e,n),r=o-Math.min(t,e,n),s=1-Math.abs(o+o-r-1),i=r&&(o==t?(e-n)/r:o==e?2+(n-t)/r:4+(t-e)/r);return[60*(i<0?i+6:i),s?r/s:0,(o+o-r)/2]},ch=(t,e,n,o=e*Math.min(n,1-n),r=(s,i=(s+t/30)%12)=>n-o*Math.max(Math.min(i-3,9-i,1),-1))=>[r(0),r(8),r(4)],lh=(t,e)=>{let n=parseInt(t,16),o=(n>>16)+e;o>255?o=255:o<0&&(o=0);let r=(n>>8&255)+e;r>255?r=255:r<0&&(r=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|r<<8|o<<16)+16777216).toString(16).slice(1)},fh=(t,e,n=.5)=>{let o=[];for(let r=0;r<4;r++){let s=r===3?i=>i:Math.round;o[r]=s(t[r]+(e[r]-t[r])*n)}return`rgba(${o})`},ra=(t,e)=>{let n=Ke(t);if(!n){so()&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t+" color is not rgba"));return}return n[3]=e,`rgba(${n})`},Pt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ms=new Set(["currentcolor","transparent","thin","medium","thick"]),po=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,PU=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,ys=t=>PU.test(t),cf=t=>t.indexOf("(")===-1?t.split(/\s+/):lt(t),uh=(t,e)=>{let n=t.length,o=0,r=0;for(let s=0;s<=n;s++){let i=s<n?t.charCodeAt(s):32;if(i===40){o++;continue}if(i===41){o>0&&o--;continue}if(!(o>0||!(i<=32||i===44||i>127&&/\s/.test(t[s])))){if(s>r&&!MU(t,r,s,e))return!1;r=s+1}}return!0},MU=(t,e,n,o)=>{let r=t.charCodeAt(e);if(r>=48&&r<=57)return!0;let s=t.slice(e,n);return ys(s)||o!==void 0&&o.has(s)},sa=(t,e)=>e?wn(t).map(n=>cf(n.trim())):[cf(t)],ia=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},ho=(t,e,{commas:n,keywords:o},r,s)=>{let i=po.test(t);if(i&&uh(t,o))return t;let a=sa(t,n),c=!1;try{for(let l of a)for(let f=0;f<l.length;f++){let u=l[f],d=BU(u,e,o,r,s);d!==u&&(l[f]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:ia(a)},BU=(t,e,n,o,r)=>t?Pt(t)?`var(${t})`:ys(t)||n!==void 0&&n.has(t)?t:e(t,o,r):"",NU=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Yt=t=>{if(!E(t))return null;if(po.test(t))return{passthrough:t};if(Pt(t))return{cssVar:t};let e=t.match(NU);if(!e)return null;let[,n,o,r]=e,s=o!==void 0?`0.${o}`:void 0,i=r&&r[0]==="="?r.slice(1):r;return{name:n,alpha:s,tone:i}},qe=t=>E(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),wn=t=>{let e=[],n="",o=0;for(let r of t){if(r==="("?o+=1:r===")"&&o>0&&(o-=1),r===","&&o===0){e.push(n),n="";continue}n+=r}return(n.length||!e.length)&&e.push(n),e},lt=t=>{let e=[],n="",o=0;for(let r of t){if(r==="("?o+=1:r===")"&&o>0&&(o-=1),o===0&&/\s/.test(r)){n.length&&e.push(n),n="";continue}n+=r}return n.length&&e.push(n),e},na=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),gs=t=>.2126*na(t[0])+.7152*na(t[1])+.0722*na(t[2]),aa=(t,e)=>{let n=gs(t)+.05,o=gs(e)+.05;return n>o?n/o:o/n},dh=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),ph=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,lf=([t,e,n])=>{let[o,r,s]=[t,e,n].map(dh),i=.4122214708*o+.5363325363*r+.0514459929*s,a=.2119034982*o+.6806995451*r+.1073969566*s,c=.0883024619*o+.2817188376*r+.6299787005*s,l=Math.cbrt(i),f=Math.cbrt(a),u=Math.cbrt(c);return[.2104542553*l+.793617785*f-.0040720468*u,1.9779984951*l-2.428592205*f+.4505937099*u,.0259040371*l+.7827717662*f-.808675766*u]},hh=([t,e,n])=>{let o=t+.3963377774*e+.2158037573*n,r=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=o**3,a=r**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},ff=([t,e,n])=>{let o=Math.atan2(n,e)*180/Math.PI;return o<0&&(o+=360),[t,Math.sqrt(e*e+n*n),o]},gh=([t,e,n])=>{let o=n*Math.PI/180;return[t,e*Math.cos(o),e*Math.sin(o)]},uf=(t,e,n,o=24)=>{let r=a=>hh(gh([t,a,n])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=r(e);if(!s(i)){let a=0,c=e;for(let l=0;l<o;l++){let f=(a+c)/2;s(r(f))?a=f:c=f}i=r(a)}return i.map(a=>ph(Math.max(0,Math.min(1,a))))},_s=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((o,r)=>o*e+n[r]*(1-e)),xn=(t,e)=>{E(t)&&t.includes("rgb")&&(t=Ke(t).join(", ")),E(t)&&(t=t.split(",").map(r=>parseFloat(r.trim()))),fe(e)&&(e+="");let n=ih(t),o=e.slice(0,1);if(o==="-"||o==="+"){let r=lh(n,parseFloat(e));return sh(r).join(", ")}else{let[r,s,i]=t,[a,c]=ah(r/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return ch(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var hw=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Ye=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},go=(t,e)=>{if(!t)return;if(e!=null&&e!==""&&e!=="default"){let s=t[e];return s&&typeof s=="object"?s.value:void 0}let o=()=>Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value&&!t[s].isSystemFallback&&!t[s].isSharedLibrary);if(t.__defaultKey){let s=t[t.__defaultKey];if(s&&s.isSystemFallback){let i=o();if(i)return t[i].value}if(s)return s.value}let r=o()||Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value);return r&&t[r]&&t[r].value},mh=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},ca=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),la=t=>`@import url('${t}');`,yh=t=>`@font-face { ${t} }`,df=(t,e,n,o={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=mh(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
35
+ `;)t[o]==="\\"&&o++,o++;s(l,o),o++;continue}if(a==="`"){o++,i();continue}if(a==="{"){r++,o++;continue}if(a==="}"){if(r--,n.length&&r===n[n.length-1]){n.pop(),o++,i();continue}o++;continue}o++}return e.join("")},IC=(t,e)=>{if(!E(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!/const _s_* = /.test(t)&&!t.includes("?.context?.globalScope?.")||!ee(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,o=t;for(let[r,s]of dU){let i=pU(o);o=o.replace(r,(...a)=>{let c=a[a.length-2];return i[c]==="~"||i[c]!==o[c]?a[0]:s.replace(/\$RESOLVE\(/g,n).replace(/\$(\d)/g,(l,f)=>a[Number(f)])})}return o},ZS=(t,e)=>{if(E(t))return IC(t,e);let n=GC(t);return n===null?t:IC(n,e)},hU={lazy:!0,window:globalThis},KC=(t,e)=>{let n=ZS(t,e);if(n===t||!E(n))return n;try{let o=he({v:n},{},hU).v;return typeof o!="function"?n:(Object.defineProperty(o,"toJSON",{value:()=>n,configurable:!0}),o)}catch{return n}},WS=t=>{if(!t||typeof t!="object")return!1;if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},gU=(t,e)=>{let n=new WeakMap,o=r=>{if(E(r)||typeof r=="function")return KC(r,e);if(Zc(r)||!WS(r))return r;if(n.has(r))return n.get(r);let s=Array.isArray(r)?[]:Object.getPrototypeOf(r)===null?Object.create(null):{};n.set(r,s);for(let i of Object.keys(r))oe.has(i)||(s[i]=o(r[i]));return s};return o(t)},mU=(t,e)=>{let n={...t};n.globalScope=qC(t.globalScope,e);for(let o of YS){let r=t[o];if(!WS(r))continue;let s={};for(let i of Object.keys(r))oe.has(i)||(s[i]=KC(r[i],e));n[o]=s}for(let o of zC)WS(t[o])&&(n[o]=gU(t[o],e));return n},PC=new WeakMap,yU=(t,e,n)=>{let o=PC.get(t);o||PC.set(t,o=new Map);let r=o.get(e);if(r)return r;let s=(i,a)=>$t(n,i)&&n[i]===a;return r=new Proxy(t,{get(i,a){if(typeof a=="symbol"||$t(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return $t(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!$t(i,a)&&$t(e,a)?(e[a]=c,!0):Reflect.set(i,a,c)},has:(i,a)=>Reflect.has(i,a)||a in e}),o.set(e,r),r},_U=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",bU=(t,e)=>{let n=XS.get(t);return n?e===n.consumerGs?n.libGs:_U(e)?yU(e,n.libGs,n.consumerGs):e:e},SU=()=>{typeof globalThis[DC]!="function"&&Object.defineProperty(globalThis,DC,{value:bU,configurable:!0})},eh=t=>{let e=t[fs];return Array.isArray(e)?e:null},QS=t=>Ie(t)?t.library:t,wU=(t,e,n)=>{let o=eh(t);return!!o&&o.some(r=>r&&r.index===e&&(!r.key||r.key===n.key)&&E(r.id)&&xU(t,r.id))},xU=(t,e)=>{let n=JSON.stringify(e),o=new Set,r=s=>{if(E(s))return s.includes(n);if(!s||typeof s!="object"||o.has(s))return!1;o.add(s);for(let i in s)if(r(s[i]))return!0;return!1};for(let s of["globalScope",...YS,...zC])if(r(t[s]))return!0;return!1},qC=(t,e)=>{let n={};for(let o of Object.keys(t))oe.has(o)||(n[o]=ZS(t[o],e));return n},MC=new WeakMap,ql=(t,e=null)=>{let n=t&&eh(t);if(!n||!n.length)return 0;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Xe("bindLibraryGlobalScopes"),0;let o=t.globalScope;if(!k(o))return 0;let r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=MC.get(o);s||MC.set(o,s=new Set),SU();let i=0;for(let a of n){if(!a||!E(a.id)||s.has(a.id))continue;let c=QS(r[a.index]);if(!c||!k(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?WC(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return E(h)||E(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=k(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>E(p)&&$t(c.globalScope,p)&&$t(e,p)&&f(e[p],ZS(c.globalScope[p],a.id))):[],d=qr(qC(c.globalScope,a.id));Object.setPrototypeOf(d,o),XS.set(a.id,{libGs:d,consumerGs:o});for(let p of u)o[p]=d[p];s.add(a.id),i++}return i},kU=/^@symbo[-.]ls\//,Gl=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,nh=t=>[`@symbo-ls/${t}`,`@symbo.ls/${t}`],Ji=(t,e)=>{let n=[];if(!Array.isArray(t)||!t.length)return n;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Xe("libraryPackageSpecs"),n;let o=new Map,r=(i,a,c)=>{for(let l of nh(i)){let f=o.get(l);if(f===void 0){o.set(l,a),n.push([l,a]);continue}f!==a&&c&&typeof e=="function"&&e({spec:l,kept:f,refused:a})}},s=[];for(let i of t){let a=QS(i);if(!a||typeof a!="object"||a.__isStub)continue;let c=a.key||a.name||a.__libraryKey,l=[];for(let f of[a.key,a.name,a.__libraryKey,a.__libraryName]){if(typeof f!="string"||!f||f!==c&&!kU.test(f))continue;let u=Gl(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&Gl(c)===f?r(f,a,!1):s.push([f,a])})}for(let[i,a]of s)r(i,a,!0);return n},ta=({spec:t,kept:e,refused:n})=>{typeof console>"u"||globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] shared library "${n&&n.key}" also claims ${t}, which "${e&&e.key}" already owns; ${t} stays with "${e&&e.key}".`)},BC=["functions","methods","snippets"],oh=Symbol.for("smbls.libraryPackages"),Wl=new WeakMap,TU=t=>!!t&&typeof t=="object"&&!Array.isArray(t),EU=t=>({get globalScope(){return t()}}),NC=(t,e,n)=>{let o={};for(let r of Object.keys(t))oe.has(r)||(o[r]=t[r]);return Object.defineProperty(o,"context",{configurable:!0,enumerable:!1,writable:!0,value:EU(e)}),Wl.set(o,n),o},$C=t=>!TU(t)||!Wl.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),Yl=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let o of BC){let r=t[o];$C(r)||Wl.get(r)===t||(t[o]=NC(r,e,t))}if(!globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&Array.isArray(t.sharedLibraries)){let o=eh(t)||[];t.sharedLibraries=t.sharedLibraries.map((r,s)=>{let i=Ie(r)&&r&&"library"in r,a=QS(r);if(!a||typeof a!="object"||a.__isStub||Wl.get(a)===t)return r;let c=o.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&XS.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of BC)$C(a[u])||(f[u]=NC(a[u],l,t));return Wl.set(f,t),i?{...r,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let o={};for(let[r,s]of Ji(t.sharedLibraries,ta))o[r]=s;try{Object.defineProperty(n,oh,{configurable:!0,enumerable:!1,writable:!0,value:o})}catch{}}},Qp="polyglot/translations",AU=(t,e)=>{let n=t;for(let o of e.split(".")){if(!n||typeof n!="object"||!$t(n,o))return!1;n=n[o]}return n!==void 0},YC=(t,e,n,o,r=!1)=>{for(let s in e){if(!$t(e,s)||oe.has(s))continue;let i=`${o}/${s}`;if(!n.has(i))if($t(t,s))k(t[s])&&k(e[s])&&YC(t[s],e[s],n,i);else{if(r&&s.includes(".")&&AU(t,s))continue;t[s]=or(e[s],n,i)}}},XC=(t,e,n)=>{if(!("translations"in t)){t.translations=or(e,n,Qp);return}let o=t.translations;if(!k(o)||!k(e)||t.fetch)return;let r=null;for(let s in e){if(!$t(e,s)||oe.has(s))continue;let i=`${Qp}/${s}`;if(!n.has(i)){if($t(o,s)){k(o[s])&&k(e[s])&&YC(o[s],e[s],n,i,!0);continue}k(e[s])&&(r||(r=new Set(Le(t,!1))),r.has(s)&&(o[s]=or(e[s],n,i)))}}},vU=(t,e)=>{let n={};for(let o in t){if(!$t(t,o)||oe.has(o))continue;let r=`polyglot/${o}`;e.has(r)||(n[o]=o==="translations"?or(t[o],e,r):GS(t[o],e,r))}return n},CU=(t,e,n,o="library",r=-1)=>{let s=th(e,n),i=!wU(t,r,e)&&uU(t,e,s)>0?`${o}#${cU()}`:null,a=i?mU(e,i):e,c=i?new Set(Object.keys(t.globalScope)):null,l=[];for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&!(f==="sharePages"||f==="sharedLibIgnore")&&f!==fs&&!f.startsWith("__")&&!oe.has(f)&&f!=="app"&&!s.has(f)){if(k(a[f])&&k(t[f]))if(f==="designSystem")Qi(t[f],a[f],s,f);else{for(let u in a[f])if(!oe.has(u)&&!s.has(`${f}/${u}`)&&!(f==="polyglot"&&u==="translations")){if(f==="methods"&&Hr(u)){u in t[f]||l.push(u);continue}u in t[f]?OC(f,t[f][u])&&!OC(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}f==="polyglot"&&$t(a.polyglot,"translations")&&!s.has(Qp)&&XC(t.polyglot,a.polyglot.translations,s)}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?aU(u,s,l):u;f==="designSystem"?t[f]=or(d,s,f):f==="polyglot"&&k(d)?t[f]=vU(d,s):t[f]=eU(GS(d,s,f),e[f])}}i&&(eh(t)||(t[fs]=[]),t[fs].push({id:i,index:r,key:E(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&iU(o,l)},OU=(t,e,n)=>{if(t!==e){let o=HC(t);if(E(o)&&o)return o;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},RU=`${HS}/default`,DU=t=>E(t)&&t!==""&&us(t).full===RU,LU=(t,e)=>{if(E(e.key)&&e.key)return e.key;if(t!==e){if(E(t.key)&&t.key)return t.key;if(E(t.name)&&t.name)return t.name}return null},JS=t=>{let e=[],n=[];for(let o=0;o<t.length;o++){let r=t[o],s=r,i=nU;if(Ie(s)&&(i=Kl(s.ignoreList),s=s.library),!k(s))continue;let a={entry:r,lib:s,ignore:i,index:o};DU(LU(r,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},ZC=(t,e,n)=>{let o=e(),r=RC(o),s=rU(o),{linked:i,bases:a}=JS(t);for(let f of i)n(f);let c=!r.size&&a.length?RC(e()):null;for(let f of a)n(f);return{claims:r.size?r:c&&c.size?c:null,ownFamilies:s}},Xl=(t,e)=>{if(!e||!e.length)return;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Xe("mergeSharedLibraries");let{claims:n,ownFamilies:o}=ZC(e,()=>t.designSystem,({entry:r,lib:s,ignore:i,index:a})=>CU(t,s,i,OU(r,s,a),a));VC(t.designSystem,o),n&&UC(t.designSystem,n)},ds=(t,e)=>{let n=k(t)?t:null;if(!Array.isArray(e)||!e.length)return n||{};if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Xe("sharedLibraryFiles"),n||{};let o=n?{...n}:{},{linked:r,bases:s}=JS(e);for(let{lib:i,ignore:a}of[...r,...s]){let c=th(i,a);if(c.has("files"))continue;let l=i.files;if(k(l))for(let f in l)!Object.prototype.hasOwnProperty.call(l,f)||oe.has(f)||c.has(`files/${f}`)||f in o||(o[f]=l[f])}return o},Zl=(t,e,n=Qi)=>{if(!k(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Xe("mergeSharedLibraryDesignSystems"),t;let{claims:o,ownFamilies:r}=ZC(e,()=>t,({lib:s,ignore:i})=>{let a=s.designSystem;if(!a||typeof a!="object")return;let c=th(s,i);c.has("designSystem")||n(t,a,c,"designSystem")});return VC(t,r),o&&UC(t,o),t},Ql=(t,e)=>{if(!k(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Xe("mergeSharedLibraryTranslations"),t;let{linked:n,bases:o}=JS(e);for(let{lib:r,ignore:s}of[...n,...o]){let i=r.polyglot;if(!k(i)||!$t(i,"translations"))continue;let a=th(r,s);a.has("polyglot")||a.has(Qp)||XC(t,i.translations,a)}return t};async function ea(t,e={}){if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Xe("fetchLibraryData"),null;let n=e.provider||"kv";if(n==="same-origin")return PU(t,e);if(n==="api")return FC(t,e);let o=await IU(t,e);return o||FC(t,e)}async function IU(t,e={}){let n=e.kvBaseUrl||Zj,o=e.env||"production",r=`${n}/kv/${encodeURIComponent(t)}?env=${o}`;try{let s=await fetch(r,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function PU(t,e={}){let n=e.sameOriginBase;if(!n)return null;let o=`${n}${Jj}${encodeURIComponent(t)}`;try{let r=await fetch(o,{method:"GET"});return r.ok?await r.json():null}catch{return null}}async function FC(t,e={}){let n=e.apiBaseUrl||Qj,{key:o}=us(t);try{let r=`${n}/core/projects/libraries/available?search=${encodeURIComponent(o)}&limit=10`,s=await fetch(r,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:g}=us(p?.key);return g.toLowerCase()===o.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${n}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function jC(t,e={}){if(k(t))return t;if(E(t)){let{full:n}=us(t);if(!n)return null;try{let o=await ea(n,e);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}async function Jl(t,e={}){return!t||!t.length?[]:globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__?(Xe("resolveSharedLibraries"),[]):(await Promise.all(t.map(async o=>{if(Ie(o)){let r=await jC(HC(o),e);return r?{library:r,ignoreList:o.ignoreList}:null}return jC(o,e)}))).filter(Boolean)}var j=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},ts=t=>JSON.stringify(t).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),jn=(t,e,{remove:n=!1,warn:o}={})=>{if(!t||typeof t.querySelector!="function")return null;let r=null;try{r=t.querySelector(e)}catch{return null}if(!r)return null;n&&r.parentNode&&r.parentNode.removeChild(r);let s;try{s=JSON.parse(r.textContent||"")}catch(i){o&&o(i)}return{value:s,block:r}},ef='script[type="application/json"][data-brender="registry"]',nf='script[type="application/json"][data-brender="registry-tree"]',of=t=>{if(!k(t)||t.f!=="tree"||!Array.isArray(t.e)||t.e.length%3)return null;let e=t.e,n=[],o={},r=0;for(let s=0,i=0;s<e.length;s+=3,i++){let a=e[s],c=e[s+1],l=e[s+2];if(!Number.isInteger(a)||a<0||a>i||typeof c!="string"||!Number.isInteger(l))return null;let f=a?n[i-a]+"."+c:c;r+=l,n.push(f),o[f]="br-"+r}return o},rf='link[rel="preload"][data-smbls="design-system"]',sf='meta[name="smbls-design-system"][data-smbls="design-system"]',af='script[type="application/json"][data-smbls="design-system"]',MU=t=>k(t)&&k(t.config)&&Array.isArray(t.rules),ew=(t,e)=>e&&e.defer===!0?'<meta name="smbls-design-system" content="'+j(t)+'" data-smbls="design-system">':'<link rel="preload" href="'+j(t)+'" as="fetch" crossorigin="anonymous" data-smbls="design-system">',nw=t=>MU(t)?'<script type="application/json" data-smbls="design-system">'+ts(t)+"<\/script>":"",rh='meta[name="brender-stamp"]',ow=({stamp:t,time:e}={})=>'<meta name="brender-stamp" content="'+j(t)+'" data-time="'+(typeof e=="number"&&isFinite(e)?Math.round(e):"")+'">',es=t=>{if(!t||typeof t.querySelector!="function")return null;let e=null;try{e=t.querySelector(rh)}catch{return null}if(!e)return null;let n=parseInt(e.getAttribute("data-time"),10);return{stamp:e.getAttribute("content")||"",time:isFinite(n)?n:null}},BU=/<script\b(?:[^>"']|"[^"]*"|'[^']*')*\btype\s*=\s*["']?importmap["']?(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/script\s*>/gi,rw=(t,e)=>{let n=-1;for(let o of String(t).matchAll(BU))n=o.index+o[0].length;return n===-1?null:t.slice(0,n)+`
36
+ `+e+t.slice(n)},QC=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${j(n)}"`).join(" "),xn=t=>{let e=5381,n=String(t);for(let o=0;o<n.length;o++)e=(e*33^n.charCodeAt(o))>>>0;return e.toString(36)},NU=new Set(["jsonLd","styles","scripts"]),$U=new Set(["source"]),na=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let o=typeof n=="string"?n:JSON.stringify(n),r=String(o).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${xn(o)}">${r}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let o=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${xn(o)}">${o}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let o=typeof n=="string",r=o?n:n.src;if(!r&&!n.body)continue;let s=[];r&&s.push(`src="${j(r)}"`),o||(n.type&&s.push(`type="${j(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${j(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${j(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${j(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${j(r||xn(n.body||""))}"`;if(!o&&n.body){let a=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},ps=t=>`${t.hreflang||""}|${t.href||""}`,rr=t=>k(t)?xn(JSON.stringify(t)):String(t),hs=t=>k(t)?xn(JSON.stringify(t)):String(t),FU=(t,e,n)=>t==="favicons"?Array.isArray(e)&&(typeof n=="string"||k(n))?` data-smbls-favicon="${j(rr(n))}"`:"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${j(e)}"`:"",jU=t=>k(t)?` data-smbls-alternate="${j(ps(t))}"`:"",sw=(t,e)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Pn("generateMetaTags",[t,e]);e||(t={...t,robots:"noindex"});let n=!1,o=Object.entries(t).reduce((r,[s,i])=>{if(!i&&i!==0&&i!==!1||NU.has(s)||$U.has(s))return r;if(s==="title")return r.push(`<title>${j(i)}</title>`),r;if(s==="canonical")return r.push(`<link rel="canonical" href="${j(i)}">`),r;if(s==="manifest")return r.push(`<link rel="manifest" href="${j(i)}">`),r;if(s==="favicon"||s==="favicons"||s==="icon"||s==="icons")return(Array.isArray(i)?i:[i]).forEach(u=>{let d=FU(s,i,u);if(typeof u=="string")r.push(`<link rel="icon" href="${j(u)}"${d}>`);else if(typeof u=="object"){let p=QC(u);/rel=/.test(p)?r.push(`<link ${p}${d}>`):r.push(`<link rel="icon" ${p}${d}>`)}}),r;if(s==="alternate")return(Array.isArray(i)?i:[i]).forEach(u=>{if(u&&typeof u=="object"){let d=Object.entries(u).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${j(g)}"`).join(" ");r.push(`<link rel="alternate" ${d}${jU(u)}>`)}}),r;if(s==="theme-color"&&Array.isArray(i))return i.forEach(f=>{if(!k(f))return;let u=QC({name:"theme-color",content:f.content,media:f.media});r.push(`<meta ${u} data-smbls-theme-color="${j(hs(f))}">`)}),r;let a=(f,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${d}="${j(f)}" content="${j(u)}">`);else if(Array.isArray(u))u.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")r.push(`<meta ${d}="${j(f)}" content="${j(p)}">`);else if(typeof p=="object"){let g=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${j(m)}"`).join(" ");r.push(`<meta ${g}>`)}});else if(typeof u=="object"){let p=Object.entries(u).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${j(h)}"`).join(" ");r.push(`<meta ${p}>`)}};if(s.startsWith("http-equiv:")){let f=s.replace("http-equiv:","");return a(f,i,"http-equiv"),r}if(s.startsWith("itemprop:")){let f=s.replace("itemprop:","");return a(f,i,"itemprop"),r}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>s.startsWith(f));if(l){let f=s.replace(l,"");return a(`${l.replace(":","")}:${f}`,i,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),r}if(s.startsWith("apple:")||s.startsWith("msapplication:")){let f=s.startsWith("apple:")?"apple-":"msapplication-",u=s.replace(/^apple:|^msapplication:/,"");return a(`${f}${u}`,i,"name"),r}return s==="viewport"&&(n=!0),a(s,i),r},['<meta charset="UTF-8">']);return n||o.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),o.push(...na(t)),o.join(`
37
+ `)},UU=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),tf=t=>typeof t=="string"&&t.length>0,sh=t=>{if(!t||typeof t!="object")return null;if(tf(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:tf(e.src)?e.src:tf(e.storageUrl)?e.storageUrl:null},VU=new Set(["icon","favicon","icons","favicons"]),JC=(t,e)=>{if(typeof t=="string")return e(t);if(!k(t))return t;let n={...t};return tf(n.href)&&(n.href=e(n.href)),tf(n.src)&&(n.src=e(n.src)),n};function gs(t,e){if(!e||typeof e!="object")return t;let n=r=>!UU(r)||!Object.prototype.hasOwnProperty.call(e,r)?r:sh(e[r])||r,o={...t};for(let[r,s]of Object.entries(o))VU.has(r)?o[r]=Array.isArray(s)?s.map(i=>JC(i,n)):JC(s,n):typeof s=="string"?o[r]=n(s):Array.isArray(s)&&(o[r]=s.map(i=>typeof i=="string"?n(i):i));return o}function tw(t,e){if(!t||!e)return;let n=e.split("."),o=t;for(let r of n){if(o==null||typeof o!="object")return;o=o[r]}return o}function HU(t,e){let n=tw(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!Ii(n))return n}function zU(t,e,n){let r=(e.config||e.settings||{}).polyglot||e.polyglot,s=n?.lang||r?.defaultLang||"en",a=(r?.translations||{})[s]||{},c=[n?.state,e.state].filter(u=>u&&typeof u=="object"),l=u=>{for(let d of c){let p=HU(d,u);if(p!==void 0)return p}},f={...t};for(let[u,d]of Object.entries(f))typeof d!="string"||!d.includes("{{")||(f[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,g,h)=>{let m=g.trim();if(h==="polyglot")return a[m]??tw(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??tw(a,m)??p}));return f}function tO(t){if(!k(t))return{};let e={...t};for(let[n,o]of Object.entries(e))if(typeof o=="function"){let r=o.toString(),s=r.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=r.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[n]=`{{ ${i[1]} | polyglot }}`;continue}let a=r.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[n]=`{{ ${a[1]} }}`;continue}delete e[n]}else if(typeof o=="string"){let r=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(r){e[n]=`{{ ${r[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | polyglot }}`;continue}if(o.includes("=>")&&o.includes("s.")){let i=o.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[n]=`{{ ${i[1]} }}`;continue}}Ii(o)&&delete e[n]}return e}function iw(t,e,n,{isProduction:o=!1,channel:r="production"}={}){if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Pn("getPageMetadata",[t,e,n,{isProduction:o,channel:r}]);let s=t.pages?.[e],i=k(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=tO(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=tO(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let m=t.name||t.key;m?o?d.title=m:r==="development"?d.title=`${m} / dev:symbo.ls`:r==="staging"?d.title=`${m} / staging:symbo.ls`:d.title=`${m} / symbo.ls`:d.title="Symbols demo"}d=zU(d,t,n),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let p=l.has("og:url")?d["og:url"]:l.has("url")?d.url:void 0,g=n?.actualPathname||e;if(p)d["og:url"]=p;else if(d["og:url"]||d.url){let m=(d["og:url"]||d.url||"").replace(/\/$/,"");if(m&&g&&g!=="/"){let y=g.startsWith("/")?g:"/"+g;d["og:url"]=m+y}}d=gs(d,ds(t.files,t.sharedLibraries));let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[m,y]of Object.entries(d))if(typeof y=="string"&&y.includes("{{")){let x=y.replace(/\{\{[^}]*\}\}/g,"").trim();x?d[m]=x:m==="title"?d[m]=h:delete d[m]}return d}var ih=(t,e)=>(P(e)?e:Object.values(e)).reduce((n,o)=>Math.abs(o-t)<Math.abs(n-t)?o:n),aw=(t,e)=>(t=parseFloat(t),k(e)&&(e=Object.values(e)),ih(t,e));var cw=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},lw=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},fw=t=>t.replace(/[^a-zA-Z0-9_]/g,""),go=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),uw=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),cf=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),dw=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},ms=t=>{if(P(t))return t;if(E(t))return t.split(" ");if(k(t))return Object.values(t);if(de(t))return[t]};var eO=/[A-Za-z_$][A-Za-z0-9_$-]*/g,nO=/[A-Za-z_$][A-Za-z0-9_$]*(?: [A-Za-z0-9_$]+){1,5}/g,WU=(t,e)=>{eO.lastIndex=0;let n;for(;n=eO.exec(t);){let r=n[0];if(e.add(r),r.indexOf("-")!==-1)for(let s of r.split("-"))s&&e.add(s)}nO.lastIndex=0;let o;for(;o=nO.exec(t);){let r=o[0].split(" ");for(let s=0;s<r.length-1;s++)for(let i=2;i<=6&&s+i<=r.length;i++)e.add(go(r.slice(s,s+i).join(" ")))}return e},rO=t=>Ie(t)?t.library:t,oO=["components","pages","snippets"],GU=["name","icon"],ah=t=>{if(!k(t))return null;let e=t.key;if(!e)return null;let n=t.owner,o=k(n)?n.slug:n;return o?`${o}/${e}`:String(e)},KU=/^\s*(?:async\s+)?(?:function\b|\(|[A-Za-z_$][A-Za-z0-9_$]*\s*=>)/,ch=t=>{let e=new Set,n=o=>{if(Array.isArray(o)){for(let r of o)if(n(r))return!0;return!1}if(!k(o)||e.has(o))return!1;e.add(o);for(let r of GU){let s=o[r];if(typeof s=="string"&&KU.test(s))return!0}for(let r of Object.keys(o))if(n(o[r]))return!0;return!1};for(let o of oO)if(n(t[o]))return!0;for(let o of t.sharedLibraries||[]){let r=rO(o);if(k(r)){for(let s of oO)if(n(r[s]))return!0}}return!1},pw=t=>{if(!k(t)||!Array.isArray(t.sharedLibraries))return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return t.sharedLibraries.length&&Xe("planLibraryIconPrune"),null;let e=k(t.settings)?t.settings.libraryIconPrune:void 0;if(e===!1||e!==!0&&ch(t))return null;let n=[];for(let u of t.sharedLibraries){let d=rO(u),p=k(d)&&d.designSystem,g=k(p)&&p.icons;if(!k(g))continue;let h=ah(d);h&&n.push({id:h,icons:g,designSystem:p})}if(!n.length)return null;let o=new Set(n.map(u=>u.designSystem)),r=JSON.stringify(t,function(u,d){if(u!=="__ssr"&&!(u==="icons"&&o.has(this)))return d});if(typeof r!="string")return null;let s=WU(r,new Set),i=new Map,a=[],c=0,l=0,f=0;for(let u of n){let d=[];for(let p of Object.keys(u.icons)){if(s.has(p)){l++;continue}d.push(p);let g=u.icons[p];f+=p.length+(typeof g=="string"?g.length:0)}d.length&&(c+=d.length,i.set(u.icons,new Set(d)),a.push({id:u.id,icons:d}))}return c?{drops:i,prune:{libraries:a},report:{icons:c,kept:l,bytes:f}}:null},hw=t=>function(e,n){let o=t.get(this);if(!(o&&o.has(e)))return n},lh=(t,e={})=>{let n=new Map;for(let a of t&&t.libraries||[])if(!(!a||!a.id||!Array.isArray(a.icons)))for(let c of a.icons)n.has(c)||n.set(c,a.id);if(!n.size)return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Xe("createPrunedLibraryIconLoader"),null;let o=t&&typeof t.sameOriginBase=="string"&&t.sameOriginBase,r=o?{...e,provider:"same-origin",sameOriginBase:o}:e,s=new Map,i=a=>{let c=s.get(a);return c||(c=Promise.resolve().then(()=>ea(a,r)).then(l=>{let f=k(l)&&k(l.designSystem)&&l.designSystem.icons;return k(f)?f:null}),s.set(a,c)),c};return a=>{let c=n.get(a);return c?i(c):null}},lf=(t,e={})=>{if(!k(t))return!1;let n=t.__libraryIconPrune;if(!k(n))return!1;let o=t.designSystem;if(!k(o)||o.iconsLoader)return!1;let r=lh(n,e);return r?(o.iconsLoader=r,!0):!1};var gw=()=>{let t=document.styleSheets[0],e="";if(t)try{let n=t.cssRules||t.rules;for(let o=0;o<n.length;o++)e+=n[o].cssText}catch(n){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",n)}else globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log("No stylesheets found in document.styleSheets[0].");return e};var ge=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let o=n.assets&&n.assets[e]||n.files&&n.files[e];if(!o)return null;if(typeof o=="string")return{src:o,type:null,variants:null};if(typeof o=="object"){if(typeof o.src=="string")return o;let r=o.content,s=r&&r.src;if(typeof s=="string")return{...o,src:s,type:o.type??r.type??null,variants:o.variants??r.variants??null}}return null},oa=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(r=>typeof r.width=="number"),o=[];for(let r of t)n&&typeof r.width=="number"?o.push(`${r.src} ${r.width}w`):n||(r.scale===1&&e?o.push(r.src):r.scale&&r.scale!==1&&o.push(`${r.src} ${r.scale}x`));return o.join(", ")},ff=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return oa(e,{keepOneX:!1})},uf=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let o=[];for(let[a,c]of n)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:oa(c,{keepOneX:!0})}});let r=n.get(t.type)||[],s=oa(r,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]};var ia={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Ze=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=ia[t.toLowerCase()];if(e&&(t=e),t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&wt&&R){let n=wt.body.appendChild(wt.createElement("fictum")),o="rgb(1, 2, 3)";if(n.style.color=o,n.style.color!==o){wt.body.removeChild(n);return}if(n.style.color=t,n.style.color===o||n.style.color==="")return wt.body.removeChild(n),[0,0,0,0];t=R.getComputedStyle(n).color,wt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},mw=(t,e,n=.5)=>(t=Ze(t),e=Ze(e),gh(t,e,n)),yw=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${o},${r})`},fh=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,o,r]},_w=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),uh=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),bw=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${o},${r},${e})`},Sw=(t,e,n=.5)=>{let o=[];for(let r=0;r<3;r++)o[r]=~~(t[r]+(e[r]-t[r])*n);return`rgb(${o})`},ww=(t,e)=>{let[n,o,r]=e,s=Math.max(0,Math.min(100,r+parseFloat(t)));return[n,o,s]},dh=(t,e,n)=>{let o=Math.max(t,e,n),r=o-Math.min(t,e,n),s=1-Math.abs(o+o-r-1),i=r&&(o==t?(e-n)/r:o==e?2+(n-t)/r:4+(t-e)/r);return[60*(i<0?i+6:i),s?r/s:0,(o+o-r)/2]},ph=(t,e,n,o=e*Math.min(n,1-n),r=(s,i=(s+t/30)%12)=>n-o*Math.max(Math.min(i-3,9-i,1),-1))=>[r(0),r(8),r(4)],hh=(t,e)=>{let n=parseInt(t,16),o=(n>>16)+e;o>255?o=255:o<0&&(o=0);let r=(n>>8&255)+e;r>255?r=255:r<0&&(r=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|r<<8|o<<16)+16777216).toString(16).slice(1)},gh=(t,e,n=.5)=>{let o=[];for(let r=0;r<4;r++){let s=r===3?i=>i:Math.round;o[r]=s(t[r]+(e[r]-t[r])*n)}return`rgba(${o})`},aa=(t,e)=>{let n=Ze(t);if(!n){co()&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t+" color is not rgba"));return}return n[3]=e,`rgba(${n})`},Pt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,_s=new Set(["currentcolor","transparent","thin","medium","thick"]),mo=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,qU=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,bs=t=>qU.test(t),df=t=>t.indexOf("(")===-1?t.split(/\s+/):lt(t),mh=(t,e)=>{let n=t.length,o=0,r=0;for(let s=0;s<=n;s++){let i=s<n?t.charCodeAt(s):32;if(i===40){o++;continue}if(i===41){o>0&&o--;continue}if(!(o>0||!(i<=32||i===44||i>127&&/\s/.test(t[s])))){if(s>r&&!YU(t,r,s,e))return!1;r=s+1}}return!0},YU=(t,e,n,o)=>{let r=t.charCodeAt(e);if(r>=48&&r<=57)return!0;let s=t.slice(e,n);return bs(s)||o!==void 0&&o.has(s)},ca=(t,e)=>e?kn(t).map(n=>df(n.trim())):[df(t)],la=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},yo=(t,e,{commas:n,keywords:o},r,s)=>{let i=mo.test(t);if(i&&mh(t,o))return t;let a=ca(t,n),c=!1;try{for(let l of a)for(let f=0;f<l.length;f++){let u=l[f],d=XU(u,e,o,r,s);d!==u&&(l[f]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:la(a)},XU=(t,e,n,o,r)=>t?Pt(t)?`var(${t})`:bs(t)||n!==void 0&&n.has(t)?t:e(t,o,r):"",ZU=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Xt=t=>{if(!E(t))return null;if(mo.test(t))return{passthrough:t};if(Pt(t))return{cssVar:t};let e=t.match(ZU);if(!e)return null;let[,n,o,r]=e,s=o!==void 0?`0.${o}`:void 0,i=r&&r[0]==="="?r.slice(1):r;return{name:n,alpha:s,tone:i}},Qe=t=>E(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),kn=t=>{let e=[],n="",o=0;for(let r of t){if(r==="("?o+=1:r===")"&&o>0&&(o-=1),r===","&&o===0){e.push(n),n="";continue}n+=r}return(n.length||!e.length)&&e.push(n),e},lt=t=>{let e=[],n="",o=0;for(let r of t){if(r==="("?o+=1:r===")"&&o>0&&(o-=1),o===0&&/\s/.test(r)){n.length&&e.push(n),n="";continue}n+=r}return n.length&&e.push(n),e},sa=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),ys=t=>.2126*sa(t[0])+.7152*sa(t[1])+.0722*sa(t[2]),fa=(t,e)=>{let n=ys(t)+.05,o=ys(e)+.05;return n>o?n/o:o/n},yh=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),_h=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,pf=([t,e,n])=>{let[o,r,s]=[t,e,n].map(yh),i=.4122214708*o+.5363325363*r+.0514459929*s,a=.2119034982*o+.6806995451*r+.1073969566*s,c=.0883024619*o+.2817188376*r+.6299787005*s,l=Math.cbrt(i),f=Math.cbrt(a),u=Math.cbrt(c);return[.2104542553*l+.793617785*f-.0040720468*u,1.9779984951*l-2.428592205*f+.4505937099*u,.0259040371*l+.7827717662*f-.808675766*u]},bh=([t,e,n])=>{let o=t+.3963377774*e+.2158037573*n,r=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=o**3,a=r**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},hf=([t,e,n])=>{let o=Math.atan2(n,e)*180/Math.PI;return o<0&&(o+=360),[t,Math.sqrt(e*e+n*n),o]},Sh=([t,e,n])=>{let o=n*Math.PI/180;return[t,e*Math.cos(o),e*Math.sin(o)]},gf=(t,e,n,o=24)=>{let r=a=>bh(Sh([t,a,n])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=r(e);if(!s(i)){let a=0,c=e;for(let l=0;l<o;l++){let f=(a+c)/2;s(r(f))?a=f:c=f}i=r(a)}return i.map(a=>_h(Math.max(0,Math.min(1,a))))},Ss=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((o,r)=>o*e+n[r]*(1-e)),Tn=(t,e)=>{E(t)&&t.includes("rgb")&&(t=Ze(t).join(", ")),E(t)&&(t=t.split(",").map(r=>parseFloat(r.trim()))),de(e)&&(e+="");let n=uh(t),o=e.slice(0,1);if(o==="-"||o==="+"){let r=hh(n,parseFloat(e));return fh(r).join(", ")}else{let[r,s,i]=t,[a,c]=dh(r/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return ph(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var xw=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Je=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},_o=(t,e)=>{if(!t)return;if(e!=null&&e!==""&&e!=="default"){let s=t[e];return s&&typeof s=="object"?s.value:void 0}let o=()=>Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value&&!t[s].isSystemFallback&&!t[s].isSharedLibrary);if(t.__defaultKey){let s=t[t.__defaultKey];if(s&&s.isSystemFallback){let i=o();if(i)return t[i].value}if(s)return s.value}let r=o()||Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value);return r&&t[r]&&t[r].value},wh=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},ua=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),da=t=>`@import url('${t}');`,xh=t=>`@font-face { ${t} }`,mf=(t,e,n,o={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=wh(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
38
38
  `);return`
39
39
  font-family: '${t}';
40
40
  font-style: ${o.fontStyle||"normal"};${n?`
@@ -42,24 +42,24 @@ FROM ${a}${l}`},Pj=t=>{let e=[],n=(o,r)=>{for(let s in o){let i=r?`${r}/${s}`:s;
42
42
  font-stretch: ${o.fontStretch};`:""}${o.fontDisplay?`
43
43
  font-display: ${o.fontDisplay};`:""}${o.unicodeRange?`
44
44
  unicode-range: ${o.unicodeRange};`:""}
45
- src: ${i};`},nr=(t,e,n,o)=>`@font-face {${df(t,e,n,o)}
46
- }`,bs=(t,e,n)=>Object.keys(e).map(r=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f}=e[r],u=Array.isArray(s)?s.map(d=>Ye(d,n)||d):Ye(s,n)||s;return df(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),gw=t=>Object.keys(t).map(n=>bs(n,t[n].value)),_h=(t,e,n)=>{if(e&&e.isVariable){let s=Ye(e.url,n)||e.url;return ca(s)?la(s):nr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return bs(t,e,n).map(yh);let r=Array.isArray(e.url)?e.url.map(s=>Ye(s,n)||s):Ye(e.url,n)||e.url;return nr(t,r,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},pf=(t,e)=>Object.keys(t).map(o=>_h(o,t[o].value,e));var fa=/*@__PURE__*/$({},{animation:()=>Lw,breakpoints:()=>Rw,class:()=>Nw,color:()=>kw,devices:()=>Dw,document:()=>YC,font:()=>yw,fontFace:()=>Sw,fontFamily:()=>_w,fontFamilyTypes:()=>bw,gradient:()=>Tw,grid:()=>Bw,icons:()=>vw,media:()=>ww,reset:()=>XC,semanticIcons:()=>Cw,sequence:()=>mo,shadow:()=>Aw,shape:()=>jw,sizes:()=>Fw,skins:()=>Uw,spacing:()=>xw,svg:()=>Iw,svgData:()=>bh,svg_data:()=>Pw,templates:()=>Mw,theme:()=>Ew,timing:()=>Ow,typography:()=>hf,unit:()=>mw,vars:()=>$w,viewTransition:()=>Vw});var mo={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var mw={default:"em"};var $U={browserDefault:16,base:16,type:"font-size",ratio:mo["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},hf=$U;var yw={};var _w={},bw={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},Sw={};var ww={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var FU={base:hf.base,type:"spacing",ratio:mo.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},xw=FU;var kw={},Tw={};var Ew={};var Aw={};var vw={},Cw={};var jU={default:150,base:150,type:"timing",ratio:mo["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Ow=jU;var YC={};var Rw={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Dw={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var Lw={};var Iw={},bh={},Pw=bh;var Mw={};var UU={},Bw=UU;var Nw={};var XC={},$w={},Fw={},jw={},Uw={},Vw={};var xh={},kh={},ne=new Set,Sh=fa,wh={},yf=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in Sh){let e=t.toLowerCase();wh[e]=Sh[t];let n=yf(e);n!==e&&(wh[n]=Sh[t]),e!==t&&(wh[t]=Sh[t])}var Ss={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:xh,cssMediaVars:kh,CSS_VARS:xh,CSS_MEDIA_VARS:kh,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...wh},or=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Nt(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=Nt(e)?e:t.globalTheme,o=pn(Nt(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return o.get()},set(r){o.set(r)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:o,enumerable:!1,configurable:!0,writable:!0}),o},ZC=t=>t?or(t):null,rr=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Nt(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=Nt(e)?e:t.resolvedTheme,o=pn(Nt(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return o.get()},set(r){o.set(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:o,enumerable:!1,configurable:!0,writable:!0}),o},QC=t=>t?rr(t):null;or(Ss);rr(Ss);var gf=ut(Ss),De={active:"0",0:Ss},JC=t=>(Nt(t)&&(De.active=t),De[t||De.active]),mf=[],ht=t=>{t&&t._scratchConfig&&mf.push(t)},dt=()=>{mf.pop()},L=t=>mf.length?mf[mf.length-1]:De[t||De.active]||Ss,Th=t=>{if(k(t))return De.active="1",De[1]=mt(t,ut(gf),ne),ua(De[1]),or(De[1]),rr(De[1]),t},VU=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],HU=["useVariable","globalTheme","verbose"],zU=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData","svg_data"]],ua=t=>{for(let e of zU){let n;for(let o of e){let r=t[o];k(r)&&(n=n?mt(n,r,ne):r)}if(n)for(let o of e)k(t[o])&&(t[o]=n)}},tO=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,ua(t),or(t),rr(t),t),Eh=()=>tO(ut(gf)),_f=(t,e,{cleanBase:n=!1}={})=>{let o=n?null:L(),r=ut(!n&&o&&o._scratchConfig?o:gf);for(let i of VU)delete r[i];for(let i of HU)Object.prototype.hasOwnProperty.call(gf,i)?r[i]=gf[i]:delete r[i];let s=tO(mt(e||{},r,ne));return t&&(De[t]=s),s};var kn=/^-?[A-Z][0-9]?$/,Hw=0,yo=t=>{Hw++;try{return t()}finally{Hw--}},Xe={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},WU=Object.keys(Xe).reduce((t,e)=>(t[Xe[e]]=Number(e),t),{}),GU=(t,e,n,o)=>{if(kn.test(e)){if(t&&Object.keys(t).length)return t[e]!==void 0;let r=WU[e.slice(0,1)];if(r===void 0)return!1;let{range:s}=n;return!Array.isArray(s)||s.length<2?!0:r>=Math.min(s[0],s[1])&&r<=Math.max(s[0],s[1])}if(o&&Object.keys(o).length)return!1},Ww=(t,e)=>{let{key:n,variable:o,value:r,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(r*100)/100,val:~~r,scaling:s,index:i,scalingVariable:a,variable:o},e.scales[n]=s;let c=eO.has(e.unit)?"rem":e.unit;e.vars[o]=s+c},_o=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),o=e.slice(0,n),r=0,s=-1;for(let i=n;i<e.length;i++){let a=e[i];if(a==="(")r++;else if(a===")"&&(r--,r===0)){s=i;break}}return s===-1||/\s/.test(o)||e.slice(s+1).trim()!==""?[void 0,t]:[o,e.slice(n+1,s)]},zw="\0",KU=(t,e)=>{let n="",o=0,r="";for(let s of t){if(o===0&&s!=="("){n+=s;continue}r+=s,s==="("?o++:s===")"&&(o--,o===0&&(n+=zw+e.length+zw,e.push(r),r=""))}return n+r},qU=(t,e)=>t.indexOf(zw)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,o)=>e[Number(o)]),YU=/^(calc|min|max|clamp)\((.*)\)$/,XU=(t,e)=>{let n=YU.exec(t);return n?`${n[1]}(${kf(n[2],e)})`:t.indexOf("(")!==-1?t:ws(t,e)},eO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),bf=(t,e)=>{let{base:n,type:o,unit:r}=e,s=eO.has(r)?"rem":r,i=($r(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(o&&o.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=Xe[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=Xe[t+1],u=Math.abs(t),d=Math.pow(nO,2*u),p=Xe[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Ah=(t,e,n,o)=>{let{type:r}=o,i=t===2&&e.length===2?t+1:t,l=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(r&&r.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},Sf=(t,e)=>{let o=(t*e-t)/1.618,r=t*e-o,s=t+o,i=(r+s)/2;return[r,i,s]},wf=(t,e)=>Sf(t,e).map(n=>n/t),xf=(t,e)=>{let{key:n,base:o,value:r,ratio:s,variable:i,index:a}=t,l=~~(r*s)-~~r,f,[u,d,p]=Sf(r,s);l>16?f=[u,d,p]:f=[u,p],f.forEach((g,h)=>{let m=~~(g/o*1e3)/1e3,y=i+(h+1),x=a+(h+1)/10,T=Ah(h+1,f,i,e),v={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:T,index:x};Ww(v,e)})},nO=1.618,ZU=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let o=Math.abs(t),r=e*Math.pow(n,t),s=e*Math.pow(n,o)/Math.pow(nO,2*o);return Math.max(r,s)},he=t=>{let{type:e,base:n,ratio:o,range:r,subSequence:s}=t,i=Math.abs(r[0])+Math.abs(r[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=r[1]-l,u=Xe[f],d=ZU(f,n,o),p=~~(d/n*100)/100,g=c+u,h=bf(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:o,index:f};Ww(m,t),s&&xf(m,t)}return t},Gw=(t,e=0)=>{let{type:n,base:o,ratio:r,subSequence:s}=t,i=E(e)?e:Xe[e],a=E(e)?Object.entries(Xe).find(([,m])=>m===e)?.[0]:e;if(!i)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=o*Math.pow(r,a),f=~~(l/o*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=bf(a,t),h={key:i,variable:p,value:l,base:o,scaling:f,scalingVariable:g,ratio:r,index:a};return Ww(h,c),s&&xf(h,c),c},da=(t,e)=>{if(!t||!E(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let o=e.slice(1),r=t[o]||t[o.toLowerCase()];if(r!==void 0)return`calc(${r} * -1)`},ws=(t="A",e)=>{let n=L(),{unit:o}=n;if(E(t)&&Pt(t))return`var(${t})`;if(E(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(E(t)){let _=da(n.sizes,t);if(_!==void 0)return _}let{sequence:r,unit:s=o.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Pc(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${of(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=_=>a.test(_)?`var(${d}${_}${m})`:_;if(h.includes("+")){let[_,b]=h.split("+"),S=`${y(_)} + ${y(b)}`;return g?`calc((${S}) * -1)`:`calc(${S})`}else if(h.includes("*")){let[_,b]=h.split("*"),S=`${y(_)} * ${y(b)}`;return g?`calc((${S}) * -1)`:`calc(${S})`}else if(h.includes("-")){let[_,b]=h.split("-"),S=`${y(_)} - ${y(b)}`;return g?`calc((${S}) * -1)`:`calc(${S})`}!r[h]&&h.length===2&&(n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(h,"- value is not found because `subSequence` is set to false")),h=h.slice(0,1));let x=r?r[h]:null,T=!!(i||n.useVariable);if((T?GU(r,h,e,n.sizes):!!x)===!1){if(Hw>0)return;if(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("can't find",r,h),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}if(T){let _=`var(${d}${h}${m})`;return g?`calc(${_} * -1)`:_}return s==="ms"||s==="s"?g+x.val+s:g+x.scaling+s},kf=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let o=/(\s+-\s+|\s*[+*/,]\s*)/,r=[];return KU(t,r).split(o).map(i=>{let a=qU(i,r),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:XU(c,e)}).join("")},jn=(t,e,n,o)=>{if(typeof t!="string")return L().verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(e,t,"is not a string")),{[e]:t};if(t==="-"||t==="")return{};if(!o&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=_o(t);o=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=kf(t,n):t=ws(t,n),{[e]:o?`${o}(${t})`:t}},vh=(t,e)=>Xe[t-e],Tf=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((o,r)=>{let s=vh(e,r);return n[s]})};var Kw=(t,e)=>{let n=L(),{cssVars:o}=n;U(t.value)||(o[t.var]=t.value)},Ef=(t,e,n)=>{let o=L(),{unit:r}=o,s=e.unit||r.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[d,p,g]=wf(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},oO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),bo=(t,e={})=>{let n=L(),{unit:o,timing:r,cssVars:s}=n,i=t.unit||o.default,a=oO.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Ef(s,t,e);for(let u in l){let d=l[u],p=(t.type===r.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},sr=(t,e,n={})=>{let o=L(),{unit:r,media:s,cssVars:i}=o,a=e.slice(1),c=t[e],l=c.unit||t.unit||r.default,f=oO.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find media query ",g)),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),Ef(h,c,n);let m=t.unit||r.default;if(f!==m&&d)for(let y in d){let x=d[y],T=p[y]+f;h[x.variable+"_default"]=T,h[x.variable]=T}return}for(let h in d){let m=d[h],y=($r(f)?p[h]:d[h].val)+f;!g&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find query ",g));let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};var sO=so(),Af=t=>{let e=L(),n="";for(let o in t)e.__svgCache[o]||(e.__svgCache[o]=!0,n+=t[o]);return n},QU=t=>{let e=t&&(t.default||t);if(!E(e))return sO&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("parseRootAttributes:",e,"is not a string")),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let r=n[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return r?r.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},JU=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(r,s)=>(n.push(s),r)),!n.length)return t;let o=t;for(let r of n){let s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${r}`;o=o.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return o},rO=new Set,vf=(t,e)=>{let n=e&&e.default?e.default:e;if(!E(n))return sO&&!rO.has(t)&&(rO.add(t),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let o=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(o){let u=o[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let r=QU(e),{width:s,height:i}=r,a=r.viewBox||`0 0 ${s||24} ${i||24}`,f=JU(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return f=f.replace(/^<symbol\b[^>]*>/,u=>u.replace(/\s(width|height)="[^"]*"/g,"")),f=f.replace("</svg","</symbol"),f=n5(f),f},t5="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",e5=new RegExp(`<(${t5})\\b([^>]*?)\\s*/>`,"g"),n5=t=>t.replace(e5,"<$1$2></$1>");var _a=/*@__PURE__*/$({},{STANDARD_SCHEME_QUERIES:()=>Oh,__resetSkinWarnings:()=>cx,appendSVGSprite:()=>Hf,appendSvgIconsSprite:()=>Ds,applyDocument:()=>Vf,applyHeadings:()=>Ph,applyReset:()=>zf,applySkins:()=>Wf,applySpacingSequence:()=>Rf,applyTimingSequence:()=>Uf,applyTypographySequence:()=>$f,atSchemes:()=>cr,buildSkinVarStyles:()=>Ls,checkIfBoxSize:()=>Of,colorPairSchemes:()=>Cf,forcedScheme:()=>vs,getColor:()=>ft,getFontFamily:()=>Nf,getFontSizeByKey:()=>Ff,getMediaBorder:()=>If,getMediaColor:()=>Ut,getMediaTheme:()=>Qe,getSafeInk:()=>Lh,getSafeInkInfo:()=>Qw,getShadow:()=>Lf,getShapeByKey:()=>jf,getSpacingBasedOnRatio:()=>Le,getSpacingByKey:()=>$t,getTheme:()=>nx,getTimingByKey:()=>ge,getTimingFunction:()=>Ie,inForcedColors:()=>xs,isForcedColorsQuery:()=>ks,isIntendedSystemColorWord:()=>Ts,isPlainColor:()=>ar,literalPairCompound:()=>Cs,literalSchemeMap:()=>wo,quietColorProbe:()=>Es,resolveBorderValue:()=>oe,resolveColorRgb:()=>As,resolveColorsInGradient:()=>fr,resolveShadowNonColorWord:()=>ha,resolveShadowValue:()=>Os,runThroughMedia:()=>Ih,schemeGuardSelector:()=>Dh,schemeMediaQuery:()=>Rh,setAdaptiveSchemeVar:()=>lr,setColor:()=>So,setFont:()=>Bf,setFontFamily:()=>ma,setGradient:()=>pa,setMediaTheme:()=>ga,setSVG:()=>ya,setShadow:()=>ur,setSvgIcon:()=>Rs,setTheme:()=>Pf,splitSpacedValue:()=>Df});var Oh={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},Rh=(t,e)=>{let n=e.media&&e.media[t]||Oh[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},Dh=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},Ze=new Set,lO=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),fO=["AccentColor","AccentColorText","ActiveText","ButtonBorder","ButtonFace","ButtonText","Canvas","CanvasText","Field","FieldText","GrayText","Highlight","HighlightText","LinkText","Mark","MarkText","SelectedItem","SelectedItemText","VisitedText","ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonHighlight","ButtonShadow","CaptionText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText"],uO=new Set(fO.map(t=>t.toLowerCase())),o5=new Set(fO),qw=0,xs=t=>{qw++;try{return t()}finally{qw--}},r5=/(^|[^\w-])(not\s+)?\(\s*forced-colors\s*(?::\s*(active|none)\s*)?\)/i,ks=t=>{if(!E(t))return!1;let e=t.match(r5);return!e||e[2]||e[3]&&e[3].toLowerCase()==="none"?!1:!/^\s*(?:@media\s+)?not\b/i.test(t)},dO=t=>qw>0||o5.has(t),Ts=t=>E(t)&&uO.has(t.toLowerCase())&&dO(t),s5=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,i5=/gradient\(|url\(|image-set\(|var\(/i,a5=new Set(["transparent","currentColor","currentcolor"]),ar=t=>{if(!E(t))return!1;let e=t.trim();return i5.test(e)?!1:s5.test(e)?!0:lO.has(e)||a5.has(e)},Ch=new Set,iO=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(k(e)&&Object.keys(e).length||k(n)&&Object.keys(n).length)},aO=new Set,Yw=0,Es=t=>{Yw++;try{return t()}finally{Yw--}},c5=(t,e)=>{if(!E(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),o=Yt(n);if(!o||o.passthrough||o.cssVar)return null;let{color:r,gradient:s}=e;return!r[o.name]&&!s[o.name]?null:n},Xw=(t,e,n)=>{let o=c5(t,n);if(o){if(!aO.has(t)){aO.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${a} \u2014 did you mean \`${o}\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let r=Yt(t);if(r&&r.name&&!r.passthrough&&!r.cssVar&&(r.alpha!==void 0||r.tone!==void 0)&&iO(n)&&!n.color[r.name]&&!n.gradient[r.name]){if(!Yw&&!Ch.has(t)){Ch.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] color token \`${t}\` does not resolve${a} \u2014 \`${r.name}\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=E(e)?e.toLowerCase():"",i=uO.has(s);if(!lO.has(s)&&!i||i&&dO(e)||!iO(n))return t;if(!Ch.has(s)){Ch.add(s);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(i?`[scratch] color \`${t}\` is a CSS system colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour: a system colour paints the value the user's desktop chose (\`highlight\` is the selection blue), so it ignores the design system and is not even stable across two machines. Define it in designSystem/color.js or use a palette token.`:`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable ("looks designed", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},pO=(t,e,n)=>{let o=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${o})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${o})`}return`hsl(from ${t} h s ${n}% / ${o})`},ft=(t,e,n)=>{let o=n||L();if(!E(t)){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(Pt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let r,s,i;if(P(t))[r,s,i]=t;else{let u=Yt(t);if(!u){let{color:d,gradient:p}=o,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),o.useVariable?`var(${g.var})`:g.value):Xw(t,t,o)}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;r=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=o,l=a[r]||c[r];if(!l)return Xw(t,r,o);if(e)if(l[e]!==void 0)l=l[e];else if(P(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e)),l=l[0])}else o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - does not have ",e));if(E(l)){if(Ze.has(r))return l;Ze.add(r);try{return ft(l,null,n)}finally{Ze.delete(r)}}let f=l.rgb;if(!f){let u=o.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?pO(u,s,i):u}return i&&!l[i]&&(f=xn(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, ${l.alpha!==void 0?l.alpha:1})`:o.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},cO=t=>{let e=Ke(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!=="transparent"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},l5=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let r=xn(n,e.tone);n=E(r)?r.split(",").map(s=>parseFloat(s.trim())):r}let o=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:o}},As=(t,e,n)=>{let o=e||L();if(!E(t))return null;let r=Yt(t);if(r){if(r.passthrough){let d=Ke(r.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(r.cssVar)return null}let s=r?r.name:t,{color:i,gradient:a}=o,c=i[s]||a[s];if(!c)return cO(t);if(E(c)){let d;if(Ze.has(s))d=cO(c);else{Ze.add(s);try{d=As(c,o,n)}finally{Ze.delete(s)}}return d?l5(d,r):null}if(c.rgb===void 0&&k(c)){let d=`@${n||"light"}`;c=c[d]!==void 0?c[d]:c["@light"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;r&&r.tone&&(l=xn(l,r.tone));let f=E(l)?l.split(",").map(d=>parseFloat(d.trim())):l,u=r&&r.alpha!==void 0?parseFloat(r.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:f,alpha:u}},hO=t=>k(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),cr=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},Zw=t=>{if(!k(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!hO(t[n])))return null;let e=cr(t);return e.length?e:null},f5=t=>E(t&&t.var)&&Zw(t)!==null,u5=(t,e,n,o,r)=>{let s=Zw(e);if(!s)return;if(E(e.var)){let c=`var(${e.var})`;return n||o?pO(c,n,o):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=ft(t,"@light",r),a=ft(t,"@dark",r);if(!(!ar(i)||!ar(a)))return i===a?i:`light-dark(${i}, ${a})`},Cf=(t,e)=>{if(!t)return null;let n=e||L(),o=Yt(t),r=o?o.name:t,s=r&&n.color&&n.color[r];if(P(s))return["light","dark"];if(!k(s)||s.value!==void 0)return null;let i=cr(s);return i.length?i:null},wo=(t,e,n)=>{let o={},r=Dh(e);for(let s of t){let i=n(s);if(i!==void 0&&(o[`[data-theme="${s}"] &`]=i,s==="light"||s==="dark")){let a=Rh(s,e);a&&(o[a]={[r]:i})}}return o},vs=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),Cs=(t,e,n,{commas:o,resolve:r,resolveScheme:s})=>{let i=sa(t,o),a=null;for(let f of i)for(let u of f){let d=Cf(u,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=f=>ia(i.map(u=>u.map(d=>{if(!Cf(d,n))return d;let p=f(d);return E(p)?p:d}))),l=vs(e,n);return l?r(c(f=>Ut(f,l,n)),l):wo(a,n,f=>s(f,c))},Ut=(t,e,n)=>{let o=n||L();if(e=vs(e,o),!E(t)){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(Pt(t))return`var(${t})`;let r,s,i;if(P(t))r=t[0];else{let u=Yt(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;r=u.name,s=u.alpha,i=u.tone}else r=t}let{color:a,gradient:c}=o,l=a[r]||c[r],f=k(l);if(f&&l.value)return ft(t,`@${e}`,n);if(f){if(o.useVariable&&l.var)return s||i?ft(t,null,n):`var(${l.var})`;if(e){if(!o.useVariable&&a[r]===l){let u=u5(t,l,s,i,n);if(u!==void 0)return u}return ft(t,`@${e}`,n)}else return wo(cr(l),o,u=>ft(t,"@"+u,n))}else return Xw(t,r,o)},lr=(t,e,n,o)=>{let s=`--${o.varPrefix?o.varPrefix+"-":""}${e}-${n}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!="string"||(a[l]=u,(l==="light"||i===void 0)&&(i=u))}if(i!==void 0){o.cssVars[s]=i,o.cssMediaVars||(o.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(o.cssMediaVars[l]||(o.cssMediaVars[l]={}),o.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;o.cssMediaVars[f]||(o.cssMediaVars[f]={}),o.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},So=(t,e,n)=>{let o=L();if(hO(t))return o.useVariable&&t.var&&(o.cssVars[t.var]=t.value),t;if(!o.useVariable&&f5(t))return t;if(E(t)&&Pt(t)){let h=t.slice(2),m=h.trim().indexOf(" ")!==-1;if(t=m?h:ft(h),m||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let y=h.trim().split(/\s+/),x=o.color[y[0]];if(x&&!x.value&&!x.rgb&&(E(x)||P(x)||k(x))&&!Ze.has(y[0])){Ze.add(y[0]);try{o.color[y[0]]=So(x,y[0])}finally{Ze.delete(y[0])}x=o.color[y[0]]}if(x&&x.value){let T=x.rgb,v=y[1]!==void 0?y[1]:"1",_=y[2];_&&(T=xn(T,_)),t=`rgba(${T}, ${v})`}else{let T=y[2],v=y[1]!==void 0?y[1]:"1";if(T)try{let _=Ke(y[0]);_&&_.length>=3?t=`rgba(${xn(_.slice(0,3).join(", "),T)}, ${v})`:t=y[0]}catch{t=y[0]}else t=y[0]}}}if(P(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),k(t)){let h={};for(let m in t)m!=="var"&&(h[m]=So(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return o.useVariable&&lr(h,"color",e,o),h}let s=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(E(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Yt(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=o.color[h.name];if(m&&!m.value&&!m.rgb&&(E(m)||P(m)||k(m))&&!Ze.has(h.name)){Ze.add(h.name);try{o.color[h.name]=So(m,h.name)}finally{Ze.delete(h.name)}}let y=o.color[h.name],x=Zw(y);if(x){if(h.alpha===void 0&&h.tone===void 0)return y;let T={};for(let v of x){let _=y["@"+v],b=_.rgb;h.tone&&(b=xn(b,h.tone));let S=h.alpha!==void 0?parseFloat(h.alpha):_.alpha!==void 0?_.alpha:1;T["@"+v]=`rgba(${b}, ${S})`}return So(T,e,n)}if(y&&y.rgb){let T=y.rgb;h.tone&&(T=xn(T,h.tone));let v=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${T}, ${v})`}}}let a=Ke(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),p=`${c}, ${l}, ${f}`,g=`rgba(${p}, ${d})`;return o.useVariable&&(o.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},d5=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),fr=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let o=t.slice(0,n+1),r=t.slice(n+1,t.lastIndexOf(")")),s=")",i=wn(r),a=!1,c=i.map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||d5.has(u)||u==="transparent"||po.test(u))return u;let d=ft(u);return qe(d)?(a=!0,d):u}).join(" ")));return a?o+c.join(", ")+s:t},pa=(t,e,n)=>{let o=L();if(k(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(E(t)&&Pt(t)&&(t=ft(t.slice(2))),P(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),k(t)){let a={};for(let c in t)c!=="var"&&(a[c]=pa(t[c],e,c.slice(0,1)==="@"?c.slice(1):c));return o.useVariable&&lr(a,"gradient",e,o),a}let s=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:""),i=fr(t.value||t);return o.useVariable&&(o.cssVars[s]=i),{var:s,value:i}};var gO=new Set,Vt=(t,e)=>{if(gO.has(t)||(gO.add(t),typeof console>"u"||!console.error))return;let n=e&&e.__ref&&e.__ref.path,o=n&&n.length?` (at <${n.join(".")}>)`:"";console.error(`[smbls] "${t}"${o} is not in this build: symbols.json build.treeShakeFeatures left it out because neither the project source nor its build settings use it. Add "${t}" to build.treeShakeFeatures.keep.`)};var Lh=(t,e,n={},o)=>{if(globalThis.__SMBLS_BUILD_DROP_F_safeInk__)return Vt("safeInk");let r=o||L(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,f=i?3:s,u=a||(r.globalTheme&&r.globalTheme!=="auto"?r.globalTheme:"light"),d=E(e)?e:String(e),p=Yt(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(et,pt)=>c?{value:et,...pt}:et;if(g){let et=r.color[`${g}Safe`];if(et){let pt=`${d}@${u}`,G=et[pt]!==void 0?et[pt]:et[d];if(G!==void 0){let z=G&&G.rgb!==void 0?r.useVariable&&G.var?`var(${G.var})`:G.value:ft(G,null,r);return h(z,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=ft(t,u?`@${u}`:null,r),y=As(t,r,u),x=As(e,r,u);if(!y||!x)return r.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged")),h(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let T=_s(x.rgb,x.alpha),v=_s(y.rgb,y.alpha,T),_=aa(v,T);if(_>=f-.02)return h(m,{ratio:_,deviation:0,derived:!1,overridden:!1});let[b,S,w]=lf(y.rgb),[,A,C]=ff([b,S,w]),O=gs(T)>.5,N=O?b:1-b,B=et=>{let pt=O?b-et:b+et,G=Math.max(0,Math.min(1,pt));return{rgb:uf(G,A,C),L:G}},M=et=>{let{rgb:pt}=B(et),G=_s(pt.map(z=>Math.round(z)),y.alpha,T);return aa(G,T)},K=0,q=N,tt=M(q)>=f;if(tt)for(let et=0;et<l;et++){let pt=(K+q)/2;M(pt)>=f?q=pt:K=pt}else K=q;let{rgb:nt,L:ot}=B(q),Z=nt.map(et=>Math.round(et)),X=M(q),Q=y.alpha<1?`rgba(${Z.join(", ")}, ${y.alpha})`:`rgb(${Z.join(", ")})`,rt=Math.abs(ot-b)*100;return h(Q,{rgb:Z,ratio:X,startRatio:_,deviation:rt,derived:!0,overridden:!1,reachable:tt})},Qw=(t,e,n={},o)=>Lh(t,e,{...n,meta:!0},o);var p5=t=>{let n=L().spacing||{},o=parseFloat(t.spacingRatio),r={...n,ratio:Number.isFinite(o)?o:n.ratio,sequence:{},scales:{}};return he(r),r},h5=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:r,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Ot(n,{type:r,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),he(n),sr(t,e)}},Of=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),o=e.includes("border")||e.includes("outline");return n&&!o},Rf=()=>{let t=L(),{spacing:e}=t;he(e),bo(e),h5(e)},g5=t=>{let e=L(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:he(t)},$t=(t,e="padding",n,o)=>{let r=g5(n);if(E(t)){if(!o&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!o&&t.includes("(")){let i=_o(t);o=i[0],t=i[1]}}let s=o?[t]:E(t)&&t.includes("(")?lt(t):hs(t);if(P(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>jn(s[f],e+l+i,r,o);return a[s.length].map((l,f)=>c(l,f))}return jn(t,e,r,o)}},Le=(t,e,n,o)=>{let r=L(),{spacing:s}=r,i=n||t[e];if(!o&&E(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!o&&E(i)&&i.includes("(")){let a=_o(i);o=a[0],i=a[1]}if(t.spacingRatio){let a=p5(t);return $t(i,e,a,o)}return $t(i,e,s,o)},Df=t=>{let e=n=>{let o=["+","-","*","/"].includes(n),r=Ti.some(i=>t.includes(i));return o||r?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};var m5={commas:!0},Os=(t,e,n)=>E(t)?ho(t,y5,m5,e,n):t,y5=(t,e,n)=>{let o=Es(()=>ft(t,e));return qe(o)?o:ha(t,n)},ha=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||Ts(t)||ms.has(t.toLowerCase()))return t;e&&e(t);let n=yo(()=>$t(t,"shadow"));return n&&n.shadow?n.shadow:t},ur=(t,e,n,o)=>{let r=L();if(k(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(P(t)){let a={"@light":ur(t[0],e,"light"),"@dark":ur(t[1],e,"dark")};return r.useVariable&&lr(a,"shadow",e,r),a}if(k(t)){let a={};for(let c in t)a[c]=ur(t[c],e,c.startsWith("@")?c.slice(1):c);return r.useVariable&&lr(a,"shadow",e,r),a}E(t)&&(t=Os(t));let i=`--${r.varPrefix?r.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return r.useVariable&&(r.cssVars[i]=t),{var:i,value:t}},Lf=(t,e)=>{let n=L();if(e=vs(e,n),!E(t)){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(Pt(t))return`var(${t})`;let[o]=P(t)?t:t.split(" "),s=n.shadow[o],i=k(s);if(!s)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find color ",o)),t;if(i&&!s.value&&n.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - does not have ",e))}return i&&s.value?s.value:i?wo(cr(s),n,a=>{let c=s["@"+a];return c&&(c.value!==void 0?c.value:c)}):(n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find color",t)),t)};var _5=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),b5={commas:!1,keywords:_5},oe=(t,e,n)=>{if(t==null)return;let o=t+"",r=o.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?o:ho(o,S5,b5,e,n)},S5=(t,e,n)=>{if(/^\d/.test(t))return t;let o=Es(()=>ft(t,e));if(qe(o))return o;if(Ts(t)||ms.has(t.toLowerCase()))return t;n&&n(t);let r=yo(()=>$t(t,"border"));return r&&r.border?r.border:t},If=(t,e,n)=>{let o=n||L();if(o.useVariable||!E(t))return oe(t);let r=Cs(t,e,o,{commas:!1,resolve:s=>oe(s),resolveScheme:s=>oe(t,"@"+s)});return r!==void 0?r:oe(t)};var w5=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),mO=["color","Color","background","Background","fill","Fill","stroke","Stroke"],SO=t=>{for(let e=0;e<mO.length;e++)if(t.includes(mO[e]))return!0;return!1},x5={boxShadow:Os,textShadow:Os,border:oe,borderTop:oe,borderRight:oe,borderBottom:oe,borderLeft:oe,outline:oe,columnRule:oe},k5=t=>{if(!t)return!1;let e=Yt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},yO=new Set,T5=(t,e,n,o,r,s)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let i=`${t}::${e}::${n||""}::${o}`;yO.has(i)||(yO.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${o}" -> "${r}" still contains the unresolved token "${s}". This is not valid CSS \u2014 the browser will drop the whole declaration. Register "${s}" as a design-system color token or fix the typo.`))},ex=(t,e,n,o)=>{let r=x5[e];if(!r)return ft(n,o);let s=null,i=r(n,o,a=>{!s&&k5(a)&&(s=a)});return s&&T5(t,e,o,n,i,s),i},nx=(t,e)=>Qe(t,e),E5=t=>k(t)&&U(t.value),A5=t=>{for(let e in t){let n=t[e];if(E(n)&&n.startsWith("var(--"))return!0}return!1},Pf=(t,e)=>{let n=L();return E5(t)?!n.useVariable&&A5(t)?t:ga(t.value,e):ga(t,e)},wO=(t,e)=>{let n=new Set;for(let o of e){let r=o.slice(0,1);if(!(r==="@"||r==="."||r===":")&&SO(o))for(let s in t){if(n.has(s))continue;let i=t[s]?.[o];if(i===void 0)continue;let a=ft(i,`@${s}`);a!==void 0&&E(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!w5.has(a)&&n.add(s)}}return n},xO=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),Mf=(t,e)=>{for(let n in e){let o=e[n];k(o)?Mf(t[n]||(t[n]={}),o):t[n]=o}return t},_O=(t,e,n,o,r)=>Mf(t,wo(o,r,s=>({[e]:n[s]}))),kO=(t,e,n,o)=>{let r={},s=Object.keys(e).filter(c=>e[c]!==n);if(!s.length)return n===void 0?void 0:(r[t]=n,r);let i=e.light!==void 0?e.light:n,a=e.dark!==void 0?e.dark:n;if(SO(t)&&ar(i)&&ar(a)){r[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");_O(r,t,e,c,o)}else n!==void 0&&(r[t]=n),_O(r,t,e,s,o);return r},v5=new Set(["backdropFilter","WebkitBackdropFilter"]),TO=new WeakSet,EO=(t,e,n,o)=>{let r=n.globalTheme!==void 0?n.globalTheme:"auto",s=r&&r!=="auto"?String(r).replace(/^'|'$/g,""):null,i=new Set(o?Object.keys(o):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=wO(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let m={};for(let T in t)U(t[T]?.[l])&&(m[T]=t[T][l]);let y=o&&U(o[l])?o[l]:void 0;if(!Object.keys(m).length&&!y)continue;let x=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=EO(m,`${e}-${x}`,n,y);continue}let u=o&&!U(o[l])?o[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let m of d){if(a.has(m))continue;let y=t[m]?.[l];if((y===void 0||U(y))&&(y=u),y===void 0)continue;let x=ex(e,l,y,`@${m}`);x!==void 0&&(p[m]=x,(s&&m===s||!s&&(m==="light"||g===void 0))&&(g=x))}let h=kO(l,p,g,n);h&&(Mf(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},Jw=(t,e,n,o)=>{let{cssVars:r}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(o?Object.keys(o):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=wO(t,l);for(let u of l){let d=u.slice(0,1),p=U(o?.[u])||Object.values(t).some(g=>U(g?.[u]));if(d==="."&&p){let g=u.slice(1),h={};for(let y in t)U(t[y]?.[u])&&(h[y]=t[y][u]);let m=U(o?.[u])?o[u]:void 0;c[u]=Jw(h,`${e}-${g}`,n,m)}else if(d===":"&&p){let g=u.replace(/^:+/,""),h={};for(let y in t)U(t[y]?.[u])&&(h[y]=t[y][u]);let m=U(o?.[u])?o[u]:void 0;c[u]=Jw(h,`${e}-${g}`,n,m)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${u}`,m=o&&!U(o[u])?o[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add("light"),y.add("dark"),a&&y.add(a));let x,T=!1,v={};for(let _ of y){if(f.has(_))continue;let b=t[_]?.[u];if((b===void 0||U(b))&&(b=m),b===void 0)continue;let S=ex(e,u,b,`@${_}`);if(S===void 0)continue;T=!0,v[_]=S,(a&&_===a||!a&&(_==="light"||x===void 0))&&(x=S);let w=`[data-theme="${_}"]`;if(s[w]||(s[w]={}),s[w][h]=S,_==="dark"||_==="light"){let A=`@media (prefers-color-scheme: ${_})`;s[A]||(s[A]={}),s[A][h]=S}}if(x!==void 0&&(r[h]=x),!T)continue;if(v5.has(u)){let _=kO(u,v,x,n);_&&(Mf(c,_),c[`.${u}`]=_);continue}c[u]=`var(${h})`,c[`.${u}`]={[u]:c[u]}}}(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color});for(let u in c)xO(u)&&U(c[u])&&TO.add(c[u]);return c},ga=(t,e,n,o)=>{let r=L(),{cssVars:s}=r,i={value:t},a=!n&&!o,c,l;if(U(t)){if(a&&r.useVariable){let f={},u={};for(let d in t)d.startsWith("@")?U(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=Jw(f,e,r,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith("@")?U(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=EO(f,e,r,u),Object.assign(i,c)}for(let f in t){let u=f.slice(0,1),d=t[f];if(u==="@"||u===":"||u==="."){let p=u==="@"&&f;i[f]=ga(d,e,f,o||p)}else if(!a){let p=ex(e,f,d,o),g=[...new Set([o,n].filter(x=>x).map(x=>x.slice(1)))],h=g.length?"-"+g.join("-"):"",y=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}${h}-${f}`;r.useVariable?(r.useThemeSuffixedVars&&(s[y]=p),i[f]=`var(${y})`):i[f]=p,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u==="."||u===":")&&U(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u==="."||u===":")&&U(t[f])&&(i[f]=l[f])}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(E(t)&&Pt(t)){let u=r.theme[t.slice(2)];return Qe(u,o)}return i},tx=(t,e)=>{let n={};for(let o in t){let r=o.slice(0,1);if(U(t[o]))if(xO(o)&&(e||TO.has(t[o])))n[o]=Mf({},t[o]);else{if(r==="@")continue;r===":"?n[`&${o}`]=tx(t[o],e):r==="."&&(n[`&${o}`]=tx(t[o],e))}else n[o]=t[o]}return n},AO=(t,e)=>{let n=e.shift();return t[n]?AO(t[n],e):t},bO=(t,e)=>P(e)?AO(t,e):E(e)&&t[e]?t[e]:t;var Qe=(t,e)=>{let n=L();if(E(t)&&Pt(t)&&(t=Qe(t.slice(2))),!t||!E(t)){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`${t} - Theme is not a string`));return}let[o,...r]=P(t)?t:t.split(" "),s=n.theme[o];return s&&r.length?s=bO(s,r):s&&e&&(s=bO(s,e)),tx(s,!n.useVariable)};var Bf=(t,e)=>{let n=L(),o=`--font-${e}`;if(!t||P(t)&&!t[0])return;let r;if(t.isVariable){let s=Ye(t.url,n.files)||t.url;ca(s)?r=la(s):r=nr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])r=bs(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Ye(i,n.files)||i):Ye(t.url,n.files)||t.url;r=nr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:o,value:t,fontFace:r}},OO=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","inherit","initial","unset","revert","revert-layer"]),C5=t=>OO.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),vO=new Set,Nf=(t,e)=>{let n=L(),{fontFamily:o}=n,r=e||o,s=go(r,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!E(t))return go(r);if(!C5(t))return so()&&!vO.has(t)&&(vO.add(t),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] fontFamily \`${t}\` is not a font family key of this design system \u2014 rendering the default family. Name a key from designSystem fontFamily, a CSS generic family (\`monospace\`, \`serif\`, \u2026) or a quoted font name (\`"'${t}'"\`).`)),go(r)},CO=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),o=n.replace(/\s+/g," ").toLowerCase();return n!==e&&OO.has(o)?'"'+o+'"':o},ma=(t,e)=>{let n=L(),{fontFamily:o,fontFamilyTypes:r}=n;if(k(t)&&E(t.value)&&E(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!o.__defaultKey)&&(o.__defaultKey=e),k(s)&&(s=hs(s));let c=`--${n.varPrefix?n.varPrefix+"-":""}font-family-${e}`,l=p=>p&&!p.startsWith("--"),f=[...s].map(p=>String(p).trim()).filter(l),u=new Set;for(let p of f)for(let g of p.split(","))u.add(CO(g));for(let p of String(r[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=CO(g);u.has(h)||(u.add(h),f.push(g))}let d=f.join(", ");return n.useVariable&&(n.cssVars[c]=d),{var:c,value:d,arr:s,type:i,isSystemFallback:!!t.isSystemFallback,isSharedLibrary:!!t.isSharedLibrary}};var Ih=t=>{let e=L(),{typography:n,media:o}=e;for(let r in t){let s=r.slice(0,1)==="@",i=t[r];if(!s)continue;let{mediaRegenerate:a}=t,c=r.slice(1),{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h}=t;Ot(i,{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,x=!i.unit&&m.has(h)?"rem":y,T=o[c],v="@media "+(T==="print"?`${T}`:`screen and ${T}`);if(n.templates[v]={fontSize:i.base/n.browserDefault+x},!a){Ot(i,{sequence:{},scales:{},vars:{}}),he(i),sr(t,r);continue}Ot(i,{sequence:{},scales:{},templates:{},vars:{}}),he(i),sr(t,r)}},Ph=t=>{let e=L();if(t.h1Matches){let n=t.unit,o=Tf(t),{templates:r}=t;for(let s in o){let i=`h${parseInt(s)+1}`,a=r[i];r[i]={fontSize:e.useVariable?`var(${o[s]?.variable})`:`${o[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},$f=()=>{let t=L(),{typography:e}=t;he(e),Ph(e),bo(e),Ih(e)},Ff=t=>{let e=L(),{typography:n}=e;return jn(t,"fontSize",n)};var jf=t=>{if(!E(t))return;let n=L().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};var Uf=()=>{let t=L(),{timing:e}=t;he(e),bo(e)},Ie=t=>{let e=L(),{timing:n}=e;return n[t]||n[uo(t)]||t},ge=(t,e="timing")=>{let n=L(),{timing:o}=n;return jn(t,e,o)};var Vf=()=>{let t=L(),{fontFamily:e,theme:n,typography:o}=t,r=t.document;return oo(r)?(Fo(t,"document",r),r=t.document={}):r||(r=t.document={}),Ot(r,{theme:n.document,fontFamily:go(e),fontSize:o.base,lineHeight:o.lineHeight})};var sx={document:wt},RO=new WeakMap,DO=new WeakMap,O5=128,LO=1048576,ox=8192,ix=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),MO=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),R5=(t,e)=>{let n=1,o=t.ownerDocument;if(o&&typeof o.createTreeWalker=="function"){let s=o.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let r=[t];for(;r.length;){let s=r.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;r.push(s[i])}}return n},rx=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},D5=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},ya=(t,e)=>{let n=L();if(!t){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("setSVG: val is not defined",e));return}return n.useSvgSprite?vf(e,t):t},Hf=(t,e=sx)=>{let n=L(),o=Object.keys(t).length?{}:n.svg;for(let r in t)o[r]=t[r];NO(o,e)},Rs=(t,e)=>{let n=L();return n.useIconSprite&&!n.semanticIcons?.[e]?ya(t,e):t},Ds=(t,e=sx)=>{let n=L(),o=Object.keys(t).length?{}:n.icons;for(let r in t)o[r]=t[r];NO(o,e)},BO=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},L5=t=>{let e=t&&t.defaultView;return e&&typeof e.DOMParser=="function"?e.DOMParser:typeof DOMParser<"u"?DOMParser:null},I5=(t,e)=>{let n=L5(t);if(n){let o=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},P5=(t,e,n)=>{let o=String(n),r=DO.get(e),s=r?.entries.get(o);if(s)return r.entries.delete(o),r.entries.set(o,s),s.root;let i=I5(t,o);if(i||(i=BO(t,{isRoot:!1}),i.innerHTML=o),o.length>LO)return i;let a=R5(i,ox);if(a>ox)return i;for(r||(r={entries:new Map,units:0,nodes:0},DO.set(e,r));r.entries.size>=O5||r.units+o.length>LO||r.nodes+a>ox;){let c=r.entries.keys().next().value,l=r.entries.get(c);r.units-=c.length,r.nodes-=l.nodes,r.entries.delete(c)}return r.entries.set(o,{root:i,nodes:a}),r.units+=o.length,r.nodes+=a,i},IO=t=>{let e=new Map;for(let n of t.children){let o=ix(n);if(!o)continue;let r=e.get(o)||[];r.push(n),e.set(o,r)}return e},M5=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),PO=(t,e,n,o)=>{let r=0,s=e.childElementCount>8?IO(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${M5(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=IO(n)}return s.get(a)};for(let a of e.childNodes){if(MO(a))continue;let c=ix(a);if(!c&&o){let u=r++,d=o.nodes[u];if(!d&&o.complete||d?.parentNode===n)continue;let p=rx(t,d||a);n.appendChild(p),o.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=rx(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=rx(t,a);n.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},NO=(t,e=sx)=>{let n=L(),o=e.document||wt;if(!o||!o.documentElement)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("To append SVG sprites it should be run in browser environment")),Af(t);let r=o.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=r||BO(o);if(!i||!i.nodeType)return;let a=d=>P5(o,i,d),c=a(s),l=RO.get(i);l||RO.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!MO(d)&&!ix(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=f.get(p);g||f.set(p,g={nodes:[],complete:!1}),PO(o,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{PO(o,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}r||D5(o.body,i);for(let d in t)n.__svgCache[d]=!0};var zf=(t={})=>{let e=L(),n=e.typography||{},o=e.document||{},r=k(e.reset)?e.reset:e.reset={};if(r[":root"]){let c=r,l=n.templates||{};c.body={...e.useDocumentTheme?Qe("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates||{},a=e.useDocumentTheme?Qe("document"):{};if(r.html&&ee(r.html,a),n.unit)for(let c in i){if(c.slice(0,6)!=="@media")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(r[c]||(r[c]={}),r[c].html||(r[c].html={}),r[c].html.fontSize===void 0&&(r[c].html.fontSize=l.fontSize))}if(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,p=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=d/p+u}}return mt(Ot(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.unit?"1"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}},ne)};var B5=new Set(["fallback"]),ax=new Set,$O=(t,e)=>{ax.has(t)||(ax.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&console.warn(e))},cx=()=>{ax.clear()},FO=t=>{for(let e in t)delete t[e];return t},Wf=()=>{let t=L(),e=k(t.cssSkinVars)?FO(t.cssSkinVars):t.cssSkinVars={},n=k(t.cssSkinFallback)?FO(t.cssSkinFallback):t.cssSkinFallback={},o=t.skins;if(!k(o))return e;let r=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>E(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${r}color-${c})`:c;for(let c in o){let l=o[c];if(!k(l))continue;let f={};for(let u in l){if(B5.has(u))continue;let d=l[u];if(k(d))for(let p in d){let g=`--${r}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&$O(`${c}/${u}/${p}`,`[scratch] skin "${c}" rewrites theme "${u}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${u}" theme (its no-skin value).`),f[g]=a(d[p])}}e[c]=f,E(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||($O(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},jO=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},Ls=(t,e,n)=>{let o={};if(!k(t))return o;for(let s in t)o[jO(s,n)]=t[s];let r={};for(let s in e||{}){let i=t[e[s]];i&&(r[jO(s,n)]=i)}return Object.keys(r).length&&(o["@media (prefers-reduced-transparency: reduce)"]=r),o};var Mh=(t,e)=>If(t,e),Bh=t=>{if(E(t))return po.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(Pt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=ft(e);return qe(n)?n:e}).join(" ")},Nh=(t,e)=>Lf(t,e),Gf=(t,e)=>{if(!E(t))return;let n=L();if(!n.useVariable){let o=N5(t,e,n);if(o!==void 0)return o}return lx(t,e)},N5=(t,e,n)=>Cs(t,e==="auto"?null:e,n,{commas:!0,resolve:lx,resolveScheme:(o,r)=>lx(r(s=>ft(s,"@"+o,n)),null)}),lx=(t,e)=>ho(t,F5,$5,e),$5={commas:!0,keywords:new Set(["inset","none"])},F5=(t,e)=>{if(!qe(ft(t)))return ha(t);let n=Ut(t,e);return k(n)?Object.values(n).filter(o=>o.includes(": "+e))[0]:n},$h=(t,e)=>{if(!E(t))return;let n=L();return wn(t).map(o=>{let r=o.trim();if(Pt(r))return`var(${r})`;if(/^var\(/.test(r)||r.includes("url"))return r;if(n.gradient?.[r]){let s=Ut(r,e);if(E(s))return s;if(k(s)){for(let i in s)if(E(s[i]))return s[i]}return r}return r.includes("gradient")?fr(r,e):r.includes("/")||r.startsWith("http")||r.includes(".")&&!Yt(r)?`url(${r})`:r}).join(", ")},Kf=new Set(["auto","cover","contain"]),qf=new Set(["center","top","bottom","left","right"]),j5=(t,e,n,o)=>{if(n.has(t))return t;let r=yo(()=>Le(o,e,t));return r&&r[e]!==void 0?r[e]:t},Is=(t,e,n,o)=>E(t)?wn(t).map(r=>lt(r.trim()).map(s=>j5(s,e,n,o)).join(" ")).join(", "):t,Fh=t=>E(t)&&lt(t).map(e=>$t(e,"gap").gap).join(" "),jh=t=>{if(!E(t))return t;let e=L();return lt(t).map(n=>kn.test(n)?ws(n,e.spacing):n).join(" ")},fx=t=>{if(!E(t))return;let e=t.split(" ");return e.length?e.map(n=>Pt(n)?`var(${n})`:n.length<3||n.includes("ms")?ge(n).timing||n:Ie(n)?Ie(n):n).join(" "):t},Yf=(t,e,n)=>{if(E(t))return t.split(",").map(o=>ge(o).timing||o).join(",")},Uh=t=>{if(!E(t))return;let e=t.split(",");if(e.length)return e.map(fx).join(",")};function Lt(t,e,n={},o={}){let r=bt.call(this,e||n[t]);if(r==null)return;let s;if(E(r)){if(/^(?:env|var)\(/.test(r.trim()))return{[t]:r};if(r.includes("(")){let c=_o(r);s=c[0],r=c[1]}let i=n.scaleBoxSize,a=Of(t);!i&&a&&!o.ratio&&(r=Df(r))}return o.ratio?Le(n,t,r,s):$t(r,t,void 0,s)}var F=(t,e=null,n)=>Lt(t,e,n,{ratio:!0}),U5=(t,e,n)=>E(t)?lt(t).map(o=>kn.test(o)?Le(e,n,o)[n]:o).join(" "):t,xo=(t,e,n,o="borderRadius")=>{if(E(t))return{[o]:lt(t).map(r=>{let s=jf(r);return s!==void 0?U5(s,e,n):Le(e,n,r)[n]}).join(" ")}};var ba="__smblsThemeRootOwner",Sa=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},UO=(t,e,n)=>{if(!(!t||!e)){Sa(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},V5=(t,e)=>{let n=L(),{cssVars:o}=n,r=e.startsWith("--")?e:`--${e}`;return o[r]=t,t},re=t=>t,H5=(t,e)=>{if(E(t)||fe(t)){let n=L();if(n.cssVars&&e){let o=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${o}size-${e}`]=t}}return t},Vh={color:So,gradient:pa,font:Bf,fontFamily:ma,fontfamily:ma,theme:Pf,icons:Rs,semanticIcons:re,semanticicons:re,svg:ya,svgData:re,typography:re,shadow:ur,spacing:re,media:re,grid:re,class:re,timing:re,reset:re,unit:re,animation:re,vars:V5,sizes:H5,shape:re,skins:re,viewTransition:re},z5=(t,e,n,o)=>{Fo(t,n,e);let r={};for(let s of o)t[s]===e&&(t[s]=r);return t.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket")),r},ux=(t,e,n)=>{let o=L(),r=yf(t),s=r.toLowerCase(),i=o[r]||o[s]||o[t],a=oo(i)?z5(o,i,s,[r,s,t]):i,c=Vh[r]||Vh[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error setting",s,"value",e,n,l))}if(!c){let l=a||(o[s]={});return l[n]=e,l}o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can not find",s,"method in scratch"))},Xf=(t,e)=>{let n=L(),o=t.toLowerCase();if(oo(e))return Fo(n,o,e),n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] ignoring host object passed as the",o,"design-system family")),n[o]||n[t];if(e==null)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] skipping empty design-system family",o)),n[o]||n[t];let r=Object.keys(e).sort((s,i)=>{let a=k(e[s])||P(e[s])?1:0,c=k(e[i])||P(e[i])?1:0;return a-c});if(o==="color"){let s=n[o]||(n[o]={});for(let i of r)i in s||(s[i]=e[i])}return r.forEach(s=>{try{return ux(o,e[s],s)}catch(i){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error setting",o,"value",e[s],s,i))}}),n[o]||n[t]},Hh=(t,e)=>{let n=e||L();n.globalTheme=t;let r=ki(n)||(typeof document<"u"?document:null),s=r&&r.defaultView||(typeof window<"u"?window:null);if(r){let a=n.themeRoot||r.documentElement,c=t&&t!=="auto";if(a[ba]=n,c)Sa(n),a.setAttribute("data-theme",t),n.resolvedTheme=t,t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{let d=u.matches?"dark":"light";a.setAttribute("data-theme",d),n.resolvedTheme=d},f=s.matchMedia("(prefers-color-scheme: dark)");l(f),a.style.colorScheme="light dark",UO(n,f,l)}else Sa(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(r&&n.cssVars){let a=n.scopeSelector||":root",c=r.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in n.cssVars)f[u].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},Zf=t=>{let n=ki(t)||(typeof document<"u"?document:null),o=n&&n.defaultView||(typeof window<"u"?window:null),r=n&&(t.themeRoot||n.documentElement);if(r&&typeof r.setAttribute=="function")if(t.globalTheme&&t.globalTheme!=="auto")Sa(t),r.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,r[ba]=t,t.globalTheme==="dark"||t.globalTheme==="light"?r.style.colorScheme=t.globalTheme:r.style.colorScheme="light dark";else if(r[ba]&&r[ba]!==t&&r.hasAttribute("data-theme"))Sa(t),t.resolvedTheme=r.getAttribute("data-theme");else if(o&&o.matchMedia){let i=c=>{let l=c.matches?"dark":"light";r.setAttribute("data-theme",l),t.resolvedTheme=l},a=o.matchMedia("(prefers-color-scheme: dark)");i(a),r.style.colorScheme="light dark",r[ba]=t,UO(t,a,i)}else Sa(t),r.setAttribute("data-theme","light"),t.resolvedTheme="light",r.style.colorScheme="light",r[ba]=t},W5={},Ps=(t,e=W5)=>{let n=e.config||L(),{version:o,verbose:r,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:m,files:y,assets:x,...T}=t;e.newConfig&&(n=Th(e.newConfig)),no(T.document)&&(n.__domDocument=T.document,delete T.document),no(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),x!==void 0&&(n.assets=x),r!==void 0&&(n.verbose=r),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),f!==void 0&&(n.globalTheme=f),u!==void 0&&(n.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),m!==void 0&&(n.focusableRing=m),n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log(n)),Zf(n),n.__svgCache||(n.__svgCache={}),ua(T);let v=Object.keys(T).filter(w=>!w.startsWith("__")),_=new Set(v);v.forEach(w=>{let A=w.toLowerCase();A!==w&&_.has(A)&&mt(T[A],T[w],ne)});let b=new Set;if(v.forEach(w=>{let A=w.toLowerCase(),C=A!==w&&_.has(A)?A:w;b.has(C)||(b.add(C),Xf(C,T[C]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),T.typography)try{$f()}catch(w){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying typography sequence",w))}if(T.spacing)try{Rf()}catch(w){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying spacing sequence",w))}if(T.timing)try{Uf()}catch(w){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying timing sequence",w))}try{Wf()}catch(w){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying skins",w))}Vf();let S=zf();return S&&(n.reset=S),n};var xa=1,dx=["font","files","assets","themeRoot"],G5=new Set(dx),wa="$smbls",zh=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},K5=t=>t.startsWith("__")||G5.has(t),Wh=t=>{if(!zh(t))return null;let e=new Map,n=!1,o=s=>{if(n)return;if(s===void 0)return{[wa]:"u"};if(s===null||typeof s=="string"||typeof s=="boolean")return s;if(typeof s=="number")return Number.isFinite(s)&&!Object.is(s,-0)?s:{[wa]:"n",v:Object.is(s,-0)?"-0":String(s)};if(typeof s!="object"){n=!0;return}let i=e.get(s);if(i!==void 0)return{[wa]:"r",i};if(Array.isArray(s)){e.set(s,e.size);let c=new Array(s.length);for(let l=0;l<s.length;l++){if(!(l in s)){n=!0;return}c[l]=o(s[l])}return c}if(!zh(s)||Object.prototype.hasOwnProperty.call(s,wa)){n=!0;return}e.set(s,e.size);let a={};for(let c of Object.keys(s))a[c]=o(s[c]);return a},r={};for(let s of Object.keys(t))if(!K5(s)&&(r[s]=o(t[s]),n))return null;return r},q5=(t,e)=>{let n=Object.keys(e),o=0;for(let r in t){if(o===n.length)return!0;if(r!==n[o])return!1;o++}return o===n.length},Gh=(t,e)=>{let n=[],o=(s,i)=>{if(s===null||typeof s!="object")return s;if(Array.isArray(s)){let l=new Array(s.length);n.push(l);for(let f=0;f<s.length;f++)l[f]=o(s[f]);return l}let a=s[wa];if(typeof a=="string"){if(a==="u")return;if(a==="n")return s.v==="-0"?-0:Number(s.v);if(a==="r")return n[s.i]}let c=i;if(c&&!q5(s,c))for(let l of Object.keys(c))delete c[l];else c||(c={});n.push(c);for(let l in s)c[l]=o(s[l]);return c},r=new Set;for(let s in t){let i=t[s],a=e[s],c=zh(a)&&!r.has(a)&&zh(i)&&typeof i[wa]!="string"?a:null;c&&r.add(c);let l=o(i,c);l!==a&&(e[s]=l)}return e};var V=(t,e)=>e.split(" ").map(n=>t+"-"+n),mx="top right bottom left",yx=mx+" block block-start block-end inline inline-start inline-end",me="start end",To="width style color",Kh=t=>V(t,yx),Y5=(()=>{let t=V("border","width style color image");for(let e of yx.split(" "))t.push("border-"+e,...V("border-"+e,To));return t})(),VO=t=>[...V("border-"+t,To+" start end"),...V("border-"+t+"-start",To),...V("border-"+t+"-end",To)],kt={animation:V("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:V("background","image position position-x position-y size repeat origin clip attachment color"),border:Y5};for(let t of["width","style","color"])kt["border-"+t]=yx.split(" ").map(e=>"border-"+e+"-"+t);for(let t of mx.split(" "))kt["border-"+t]=V("border-"+t,To);kt["border-block"]=VO("block");kt["border-inline"]=VO("inline");Object.assign(kt,{"border-image":V("border-image","source slice width outset repeat"),"border-radius":"top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" ").map(t=>"border-"+t+"-radius"),columns:V("column","width count"),"column-rule":V("column-rule",To),container:V("container","name type"),"contain-intrinsic-size":V("contain-intrinsic","width height"),flex:V("flex","grow shrink basis"),"flex-flow":V("flex","direction wrap"),font:[...V("font","style variant weight stretch size"),"line-height",...V("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:V("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":V("grid-template","rows columns areas"),"grid-area":V("grid","row column row-start row-end column-start column-end"),"grid-row":V("grid-row",me),"grid-column":V("grid-column",me),inset:[...mx.split(" "),...V("inset","block block-start block-end inline inline-start inline-end")],"inset-block":V("inset-block",me),"inset-inline":V("inset-inline",me),"list-style":V("list-style","type position image"),margin:Kh("margin"),"margin-block":V("margin-block",me),"margin-inline":V("margin-inline",me),mask:V("mask","image mode repeat position clip origin size composite"),offset:V("offset","position path distance rotate anchor"),outline:V("outline",To),overflow:V("overflow","x y"),"overscroll-behavior":V("overscroll-behavior","x y"),padding:Kh("padding"),"padding-block":V("padding-block",me),"padding-inline":V("padding-inline",me)});for(let t of["content","items","self"])kt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(kt,{"scroll-margin":Kh("scroll-margin"),"scroll-padding":Kh("scroll-padding"),"text-decoration":V("text-decoration","line style color thickness"),"text-emphasis":V("text-emphasis","style color"),transition:V("transition","property duration timing-function delay behavior")});var X5="block-start block-end inline-start inline-end".split(" ");for(let t of X5)kt["border-"+t]=V("border-"+t,To);for(let t of["block","inline"])for(let e of To.split(" "))kt["border-"+t+"-"+e]=V("border-"+t,me.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(kt,{"animation-range":V("animation-range",me),"background-position":V("background-position","x y"),"font-variant":V("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":V("font-synthesis","weight style small-caps"),marker:V("marker","start mid end"),"position-try":V("position-try","order fallbacks"),"scroll-margin-block":V("scroll-margin-block",me),"scroll-margin-inline":V("scroll-margin-inline",me),"scroll-padding-block":V("scroll-padding-block",me),"scroll-padding-inline":V("scroll-padding-inline",me),"scroll-timeline":V("scroll-timeline","name axis"),"view-timeline":V("view-timeline","name axis inset"),"text-box":V("text-box","trim edge"),"text-wrap":V("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});kt.font.push("font-language-override");var ko=t=>"corner-"+t+"-shape";kt["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map(ko);Object.assign(kt,{"corner-top-shape":["top-left","top-right"].map(ko),"corner-right-shape":["top-right","bottom-right"].map(ko),"corner-bottom-shape":["bottom-left","bottom-right"].map(ko),"corner-left-shape":["top-left","bottom-left"].map(ko),"corner-block-start-shape":["start-start","start-end"].map(ko),"corner-block-end-shape":["end-start","end-end"].map(ko),"corner-inline-start-shape":["start-start","end-start"].map(ko),"corner-inline-end-shape":["start-end","end-end"].map(ko)});for(let t in kt){let e=kt[t],n=new Set(e);for(let o=0;o<e.length;o++){let r=kt[e[o]];if(r)for(let s of r)n.has(s)||(n.add(s),e.push(s))}}var Je={};for(let t in kt)for(let e of kt[t])(Je[e]||(Je[e]=[])).push(t);var hx=new Map,HO=t=>{let e=hx.get(t);if(e!==void 0)return e;hx.set(t,0),e=0;let n=Je[t];if(n)for(let o=0;o<n.length;o++)e=Math.max(e,HO(n[o])+1);return hx.set(t,e),e};function ka(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(Je,e)?HO(e):0}var Z5=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,zO=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,Q5=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),gx=t=>lt(String(t).replace(/\s*!important\s*$/,""));function Ta(t,e,n){let o=kt[t];if(!o||o.indexOf(n)===-1)return!1;if(Z5.test(t))return!0;if(!zO.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let r=gx(e);return r.length>=3?!0:/-style$/.test(n)&&r.some(s=>Q5.has(s.toLowerCase()))}var J5=new Set(["thin","medium","thick"]),t4=t=>/^[+-]?\.?\d/.test(t)||J5.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),e4=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(oa,t),n4=t=>ys(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||e4(t.toLowerCase()),o4=/-(width|style|color)$/;function Qf(t,e,n){if(Ta(t,e,n))return!0;let o=kt[t];if(!o||o.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(zO.test(t)){if(n.indexOf("border-image")===0)return!1;let r=o4.exec(n);if(!r)return!1;let s=gx(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?r[1]!=="color":r[1]==="width"&&s.some(t4)}if(t==="background"&&n==="background-color"){let r=gx(e);return r.length===1&&n4(r[0])}return!1}var va=new Map,rR=null,_x=null,r4=null;function eu(t){t.batchAtomicCss&&(_x=t.batchAtomicCss),t.compoundCssClass&&(r4=t.compoundCssClass)}var s4=new Set,GO=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function Cx(t){try{let e=L();e&&(e.__domDocument=t)}catch{}t&&s4.add(t)}function Un(){try{let t=L();if(t){if(GO(t.__domDocument))return t.__domDocument;if(GO(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var ye={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function eg(){return{...ye}}function Ox(){for(let t in ye)ye[t]=0;Qh=!1}var Qh=!1,Xh=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function i4(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${Xh(n,"day")} ago)`}function a4(){try{let t=b4();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function c4(t,e){if(Qh)return!1;Qh=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",o="this IS the source",r="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${Xh(ye.variable,"variable rule")} and ${Xh(ye.atomic,"atomic rule")}, while the design system held ${Xh(e,"CSS variable")}.
45
+ src: ${i};`},sr=(t,e,n,o)=>`@font-face {${mf(t,e,n,o)}
46
+ }`,ws=(t,e,n)=>Object.keys(e).map(r=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f}=e[r],u=Array.isArray(s)?s.map(d=>Je(d,n)||d):Je(s,n)||s;return mf(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),kw=t=>Object.keys(t).map(n=>ws(n,t[n].value)),kh=(t,e,n)=>{if(e&&e.isVariable){let s=Je(e.url,n)||e.url;return ua(s)?da(s):sr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return ws(t,e,n).map(xh);let r=Array.isArray(e.url)?e.url.map(s=>Je(s,n)||s):Je(e.url,n)||e.url;return sr(t,r,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},yf=(t,e)=>Object.keys(t).map(o=>kh(o,t[o].value,e));var pa=/*@__PURE__*/$({},{animation:()=>jw,breakpoints:()=>$w,class:()=>Ww,color:()=>Dw,devices:()=>Fw,document:()=>sO,font:()=>Ew,fontFace:()=>Cw,fontFamily:()=>Aw,fontFamilyTypes:()=>vw,gradient:()=>Lw,grid:()=>zw,icons:()=>Mw,media:()=>Ow,reset:()=>iO,semanticIcons:()=>Bw,sequence:()=>bo,shadow:()=>Pw,shape:()=>qw,sizes:()=>Kw,skins:()=>Yw,spacing:()=>Rw,svg:()=>Uw,svgData:()=>Th,svg_data:()=>Vw,templates:()=>Hw,theme:()=>Iw,timing:()=>Nw,typography:()=>_f,unit:()=>Tw,vars:()=>Gw,viewTransition:()=>Xw});var bo={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var Tw={default:"em"};var QU={browserDefault:16,base:16,type:"font-size",ratio:bo["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},_f=QU;var Ew={};var Aw={},vw={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},Cw={};var Ow={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var JU={base:_f.base,type:"spacing",ratio:bo.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Rw=JU;var Dw={},Lw={};var Iw={};var Pw={};var Mw={},Bw={};var t5={default:150,base:150,type:"timing",ratio:bo["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Nw=t5;var sO={};var $w={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Fw={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var jw={};var Uw={},Th={},Vw=Th;var Hw={};var e5={},zw=e5;var Ww={};var iO={},Gw={},Kw={},qw={},Yw={},Xw={};var vh={},Ch={},re=new Set,Eh=pa,Ah={},wf=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in Eh){let e=t.toLowerCase();Ah[e]=Eh[t];let n=wf(e);n!==e&&(Ah[n]=Eh[t]),e!==t&&(Ah[t]=Eh[t])}var xs={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:vh,cssMediaVars:Ch,CSS_VARS:vh,CSS_MEDIA_VARS:Ch,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Ah},ir=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Nt(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=Nt(e)?e:t.globalTheme,o=yn(Nt(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return o.get()},set(r){o.set(r)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:o,enumerable:!1,configurable:!0,writable:!0}),o},aO=t=>t?ir(t):null,ar=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Nt(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=Nt(e)?e:t.resolvedTheme,o=yn(Nt(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return o.get()},set(r){o.set(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:o,enumerable:!1,configurable:!0,writable:!0}),o},cO=t=>t?ar(t):null;ir(xs);ar(xs);var bf=ut(xs),Pe={active:"0",0:xs},lO=t=>(Nt(t)&&(Pe.active=t),Pe[t||Pe.active]),Sf=[],ht=t=>{t&&t._scratchConfig&&Sf.push(t)},dt=()=>{Sf.pop()},L=t=>Sf.length?Sf[Sf.length-1]:Pe[t||Pe.active]||xs,Oh=t=>{if(k(t))return Pe.active="1",Pe[1]=mt(t,ut(bf),re),ha(Pe[1]),ir(Pe[1]),ar(Pe[1]),t},n5=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],o5=["useVariable","globalTheme","verbose"],r5=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData","svg_data"]],ha=t=>{for(let e of r5){let n;for(let o of e){let r=t[o];k(r)&&(n=n?mt(n,r,re):r)}if(n)for(let o of e)k(t[o])&&(t[o]=n)}},fO=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,ha(t),ir(t),ar(t),t),Rh=()=>fO(ut(bf)),xf=(t,e,{cleanBase:n=!1}={})=>{let o=n?null:L(),r=ut(!n&&o&&o._scratchConfig?o:bf);for(let i of n5)delete r[i];for(let i of o5)Object.prototype.hasOwnProperty.call(bf,i)?r[i]=bf[i]:delete r[i];let s=fO(mt(e||{},r,re));return t&&(Pe[t]=s),s};var En=/^-?[A-Z][0-9]?$/,Zw=0,So=t=>{Zw++;try{return t()}finally{Zw--}},tn={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},s5=Object.keys(tn).reduce((t,e)=>(t[tn[e]]=Number(e),t),{}),i5=(t,e,n,o)=>{if(En.test(e)){if(t&&Object.keys(t).length)return t[e]!==void 0;let r=s5[e.slice(0,1)];if(r===void 0)return!1;let{range:s}=n;return!Array.isArray(s)||s.length<2?!0:r>=Math.min(s[0],s[1])&&r<=Math.max(s[0],s[1])}if(o&&Object.keys(o).length)return!1},Jw=(t,e)=>{let{key:n,variable:o,value:r,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(r*100)/100,val:~~r,scaling:s,index:i,scalingVariable:a,variable:o},e.scales[n]=s;let c=uO.has(e.unit)?"rem":e.unit;e.vars[o]=s+c},wo=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),o=e.slice(0,n),r=0,s=-1;for(let i=n;i<e.length;i++){let a=e[i];if(a==="(")r++;else if(a===")"&&(r--,r===0)){s=i;break}}return s===-1||/\s/.test(o)||e.slice(s+1).trim()!==""?[void 0,t]:[o,e.slice(n+1,s)]},Qw="\0",a5=(t,e)=>{let n="",o=0,r="";for(let s of t){if(o===0&&s!=="("){n+=s;continue}r+=s,s==="("?o++:s===")"&&(o--,o===0&&(n+=Qw+e.length+Qw,e.push(r),r=""))}return n+r},c5=(t,e)=>t.indexOf(Qw)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,o)=>e[Number(o)]),l5=/^(calc|min|max|clamp)\((.*)\)$/,f5=(t,e)=>{let n=l5.exec(t);return n?`${n[1]}(${vf(n[2],e)})`:t.indexOf("(")!==-1?t:ks(t,e)},uO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),kf=(t,e)=>{let{base:n,type:o,unit:r}=e,s=uO.has(r)?"rem":r,i=(jr(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(o&&o.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=tn[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=tn[t+1],u=Math.abs(t),d=Math.pow(dO,2*u),p=tn[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Dh=(t,e,n,o)=>{let{type:r}=o,i=t===2&&e.length===2?t+1:t,l=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(r&&r.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},Tf=(t,e)=>{let o=(t*e-t)/1.618,r=t*e-o,s=t+o,i=(r+s)/2;return[r,i,s]},Ef=(t,e)=>Tf(t,e).map(n=>n/t),Af=(t,e)=>{let{key:n,base:o,value:r,ratio:s,variable:i,index:a}=t,l=~~(r*s)-~~r,f,[u,d,p]=Tf(r,s);l>16?f=[u,d,p]:f=[u,p],f.forEach((g,h)=>{let m=~~(g/o*1e3)/1e3,y=i+(h+1),x=a+(h+1)/10,T=Dh(h+1,f,i,e),v={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:T,index:x};Jw(v,e)})},dO=1.618,u5=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let o=Math.abs(t),r=e*Math.pow(n,t),s=e*Math.pow(n,o)/Math.pow(dO,2*o);return Math.max(r,s)},me=t=>{let{type:e,base:n,ratio:o,range:r,subSequence:s}=t,i=Math.abs(r[0])+Math.abs(r[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=r[1]-l,u=tn[f],d=u5(f,n,o),p=~~(d/n*100)/100,g=c+u,h=kf(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:o,index:f};Jw(m,t),s&&Af(m,t)}return t},tx=(t,e=0)=>{let{type:n,base:o,ratio:r,subSequence:s}=t,i=E(e)?e:tn[e],a=E(e)?Object.entries(tn).find(([,m])=>m===e)?.[0]:e;if(!i)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=o*Math.pow(r,a),f=~~(l/o*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=kf(a,t),h={key:i,variable:p,value:l,base:o,scaling:f,scalingVariable:g,ratio:r,index:a};return Jw(h,c),s&&Af(h,c),c},ga=(t,e)=>{if(!t||!E(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let o=e.slice(1),r=t[o]||t[o.toLowerCase()];if(r!==void 0)return`calc(${r} * -1)`},ks=(t="A",e)=>{let n=L(),{unit:o}=n;if(E(t)&&Pt(t))return`var(${t})`;if(E(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(E(t)){let _=ga(n.sizes,t);if(_!==void 0)return _}let{sequence:r,unit:s=o.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Nc(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${cf(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=_=>a.test(_)?`var(${d}${_}${m})`:_;if(h.includes("+")){let[_,b]=h.split("+"),S=`${y(_)} + ${y(b)}`;return g?`calc((${S}) * -1)`:`calc(${S})`}else if(h.includes("*")){let[_,b]=h.split("*"),S=`${y(_)} * ${y(b)}`;return g?`calc((${S}) * -1)`:`calc(${S})`}else if(h.includes("-")){let[_,b]=h.split("-"),S=`${y(_)} - ${y(b)}`;return g?`calc((${S}) * -1)`:`calc(${S})`}!r[h]&&h.length===2&&(n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(h,"- value is not found because `subSequence` is set to false")),h=h.slice(0,1));let x=r?r[h]:null,T=!!(i||n.useVariable);if((T?i5(r,h,e,n.sizes):!!x)===!1){if(Zw>0)return;if(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("can't find",r,h),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}if(T){let _=`var(${d}${h}${m})`;return g?`calc(${_} * -1)`:_}return s==="ms"||s==="s"?g+x.val+s:g+x.scaling+s},vf=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let o=/(\s+-\s+|\s*[+*/,]\s*)/,r=[];return a5(t,r).split(o).map(i=>{let a=c5(i,r),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:f5(c,e)}).join("")},Vn=(t,e,n,o)=>{if(typeof t!="string")return L().verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(e,t,"is not a string")),{[e]:t};if(t==="-"||t==="")return{};if(!o&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=wo(t);o=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=vf(t,n):t=ks(t,n),{[e]:o?`${o}(${t})`:t}},Lh=(t,e)=>tn[t-e],Cf=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((o,r)=>{let s=Lh(e,r);return n[s]})};var ex=(t,e)=>{let n=L(),{cssVars:o}=n;U(t.value)||(o[t.var]=t.value)},Of=(t,e,n)=>{let o=L(),{unit:r}=o,s=e.unit||r.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[d,p,g]=Ef(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},pO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),xo=(t,e={})=>{let n=L(),{unit:o,timing:r,cssVars:s}=n,i=t.unit||o.default,a=pO.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Of(s,t,e);for(let u in l){let d=l[u],p=(t.type===r.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},cr=(t,e,n={})=>{let o=L(),{unit:r,media:s,cssVars:i}=o,a=e.slice(1),c=t[e],l=c.unit||t.unit||r.default,f=pO.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find media query ",g)),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),Of(h,c,n);let m=t.unit||r.default;if(f!==m&&d)for(let y in d){let x=d[y],T=p[y]+f;h[x.variable+"_default"]=T,h[x.variable]=T}return}for(let h in d){let m=d[h],y=(jr(f)?p[h]:d[h].val)+f;!g&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find query ",g));let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};var gO=co(),Rf=t=>{let e=L(),n="";for(let o in t)e.__svgCache[o]||(e.__svgCache[o]=!0,n+=t[o]);return n},d5=t=>{let e=t&&(t.default||t);if(!E(e))return gO&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("parseRootAttributes:",e,"is not a string")),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let r=n[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return r?r.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},p5=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(r,s)=>(n.push(s),r)),!n.length)return t;let o=t;for(let r of n){let s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${r}`;o=o.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return o},hO=new Set,Df=(t,e)=>{let n=e&&e.default?e.default:e;if(!E(n))return gO&&!hO.has(t)&&(hO.add(t),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let o=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(o){let u=o[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let r=d5(e),{width:s,height:i}=r,a=r.viewBox||`0 0 ${s||24} ${i||24}`,f=p5(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return f=f.replace(/^<symbol\b[^>]*>/,u=>u.replace(/\s(width|height)="[^"]*"/g,"")),f=f.replace("</svg","</symbol"),f=m5(f),f},h5="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",g5=new RegExp(`<(${h5})\\b([^>]*?)\\s*/>`,"g"),m5=t=>t.replace(g5,"<$1$2></$1>");var wa=/*@__PURE__*/$({},{STANDARD_SCHEME_QUERIES:()=>Ph,__resetSkinWarnings:()=>mx,appendSVGSprite:()=>Kf,appendSvgIconsSprite:()=>Is,applyDocument:()=>Gf,applyHeadings:()=>Fh,applyReset:()=>qf,applySkins:()=>Yf,applySpacingSequence:()=>Pf,applyTimingSequence:()=>Wf,applyTypographySequence:()=>Vf,atSchemes:()=>ur,buildSkinVarStyles:()=>Ps,checkIfBoxSize:()=>If,colorPairSchemes:()=>Lf,forcedScheme:()=>Os,getColor:()=>ft,getFontFamily:()=>Uf,getFontSizeByKey:()=>Hf,getMediaBorder:()=>Nf,getMediaColor:()=>Vt,getMediaTheme:()=>nn,getSafeInk:()=>Nh,getSafeInkInfo:()=>ix,getShadow:()=>Bf,getShapeByKey:()=>zf,getSpacingBasedOnRatio:()=>Me,getSpacingByKey:()=>Ft,getTheme:()=>fx,getTimingByKey:()=>ye,getTimingFunction:()=>Be,inForcedColors:()=>Ts,isForcedColorsQuery:()=>Es,isIntendedSystemColorWord:()=>As,isPlainColor:()=>fr,literalPairCompound:()=>Rs,literalSchemeMap:()=>To,quietColorProbe:()=>vs,resolveBorderValue:()=>se,resolveColorRgb:()=>Cs,resolveColorsInGradient:()=>pr,resolveShadowNonColorWord:()=>ya,resolveShadowValue:()=>Ds,runThroughMedia:()=>$h,schemeGuardSelector:()=>Bh,schemeMediaQuery:()=>Mh,setAdaptiveSchemeVar:()=>dr,setColor:()=>ko,setFont:()=>jf,setFontFamily:()=>ba,setGradient:()=>ma,setMediaTheme:()=>_a,setSVG:()=>Sa,setShadow:()=>hr,setSvgIcon:()=>Ls,setTheme:()=>$f,splitSpacedValue:()=>Mf});var Ph={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},Mh=(t,e)=>{let n=e.media&&e.media[t]||Ph[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},Bh=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},en=new Set,bO=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),SO=["AccentColor","AccentColorText","ActiveText","ButtonBorder","ButtonFace","ButtonText","Canvas","CanvasText","Field","FieldText","GrayText","Highlight","HighlightText","LinkText","Mark","MarkText","SelectedItem","SelectedItemText","VisitedText","ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonHighlight","ButtonShadow","CaptionText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText"],wO=new Set(SO.map(t=>t.toLowerCase())),y5=new Set(SO),nx=0,Ts=t=>{nx++;try{return t()}finally{nx--}},_5=/(^|[^\w-])(not\s+)?\(\s*forced-colors\s*(?::\s*(active|none)\s*)?\)/i,Es=t=>{if(!E(t))return!1;let e=t.match(_5);return!e||e[2]||e[3]&&e[3].toLowerCase()==="none"?!1:!/^\s*(?:@media\s+)?not\b/i.test(t)},xO=t=>nx>0||y5.has(t),As=t=>E(t)&&wO.has(t.toLowerCase())&&xO(t),b5=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,S5=/gradient\(|url\(|image-set\(|var\(/i,w5=new Set(["transparent","currentColor","currentcolor"]),fr=t=>{if(!E(t))return!1;let e=t.trim();return S5.test(e)?!1:b5.test(e)?!0:bO.has(e)||w5.has(e)},Ih=new Set,mO=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(k(e)&&Object.keys(e).length||k(n)&&Object.keys(n).length)},yO=new Set,ox=0,vs=t=>{ox++;try{return t()}finally{ox--}},x5=(t,e)=>{if(!E(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),o=Xt(n);if(!o||o.passthrough||o.cssVar)return null;let{color:r,gradient:s}=e;return!r[o.name]&&!s[o.name]?null:n},rx=(t,e,n)=>{let o=x5(t,n);if(o){if(!yO.has(t)){yO.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${a} \u2014 did you mean \`${o}\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let r=Xt(t);if(r&&r.name&&!r.passthrough&&!r.cssVar&&(r.alpha!==void 0||r.tone!==void 0)&&mO(n)&&!n.color[r.name]&&!n.gradient[r.name]){if(!ox&&!Ih.has(t)){Ih.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] color token \`${t}\` does not resolve${a} \u2014 \`${r.name}\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=E(e)?e.toLowerCase():"",i=wO.has(s);if(!bO.has(s)&&!i||i&&xO(e)||!mO(n))return t;if(!Ih.has(s)){Ih.add(s);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(i?`[scratch] color \`${t}\` is a CSS system colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour: a system colour paints the value the user's desktop chose (\`highlight\` is the selection blue), so it ignores the design system and is not even stable across two machines. Define it in designSystem/color.js or use a palette token.`:`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable ("looks designed", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},kO=(t,e,n)=>{let o=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${o})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${o})`}return`hsl(from ${t} h s ${n}% / ${o})`},ft=(t,e,n)=>{let o=n||L();if(!E(t)){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(Pt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let r,s,i;if(P(t))[r,s,i]=t;else{let u=Xt(t);if(!u){let{color:d,gradient:p}=o,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),o.useVariable?`var(${g.var})`:g.value):rx(t,t,o)}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;r=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=o,l=a[r]||c[r];if(!l)return rx(t,r,o);if(e)if(l[e]!==void 0)l=l[e];else if(P(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e)),l=l[0])}else o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - does not have ",e));if(E(l)){if(en.has(r))return l;en.add(r);try{return ft(l,null,n)}finally{en.delete(r)}}let f=l.rgb;if(!f){let u=o.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?kO(u,s,i):u}return i&&!l[i]&&(f=Tn(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, ${l.alpha!==void 0?l.alpha:1})`:o.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},_O=t=>{let e=Ze(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!=="transparent"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},k5=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let r=Tn(n,e.tone);n=E(r)?r.split(",").map(s=>parseFloat(s.trim())):r}let o=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:o}},Cs=(t,e,n)=>{let o=e||L();if(!E(t))return null;let r=Xt(t);if(r){if(r.passthrough){let d=Ze(r.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(r.cssVar)return null}let s=r?r.name:t,{color:i,gradient:a}=o,c=i[s]||a[s];if(!c)return _O(t);if(E(c)){let d;if(en.has(s))d=_O(c);else{en.add(s);try{d=Cs(c,o,n)}finally{en.delete(s)}}return d?k5(d,r):null}if(c.rgb===void 0&&k(c)){let d=`@${n||"light"}`;c=c[d]!==void 0?c[d]:c["@light"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;r&&r.tone&&(l=Tn(l,r.tone));let f=E(l)?l.split(",").map(d=>parseFloat(d.trim())):l,u=r&&r.alpha!==void 0?parseFloat(r.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:f,alpha:u}},TO=t=>k(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),ur=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},sx=t=>{if(!k(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!TO(t[n])))return null;let e=ur(t);return e.length?e:null},T5=t=>E(t&&t.var)&&sx(t)!==null,E5=(t,e,n,o,r)=>{let s=sx(e);if(!s)return;if(E(e.var)){let c=`var(${e.var})`;return n||o?kO(c,n,o):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=ft(t,"@light",r),a=ft(t,"@dark",r);if(!(!fr(i)||!fr(a)))return i===a?i:`light-dark(${i}, ${a})`},Lf=(t,e)=>{if(!t)return null;let n=e||L(),o=Xt(t),r=o?o.name:t,s=r&&n.color&&n.color[r];if(P(s))return["light","dark"];if(!k(s)||s.value!==void 0)return null;let i=ur(s);return i.length?i:null},To=(t,e,n)=>{let o={},r=Bh(e);for(let s of t){let i=n(s);if(i!==void 0&&(o[`[data-theme="${s}"] &`]=i,s==="light"||s==="dark")){let a=Mh(s,e);a&&(o[a]={[r]:i})}}return o},Os=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),Rs=(t,e,n,{commas:o,resolve:r,resolveScheme:s})=>{let i=ca(t,o),a=null;for(let f of i)for(let u of f){let d=Lf(u,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=f=>la(i.map(u=>u.map(d=>{if(!Lf(d,n))return d;let p=f(d);return E(p)?p:d}))),l=Os(e,n);return l?r(c(f=>Vt(f,l,n)),l):To(a,n,f=>s(f,c))},Vt=(t,e,n)=>{let o=n||L();if(e=Os(e,o),!E(t)){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(Pt(t))return`var(${t})`;let r,s,i;if(P(t))r=t[0];else{let u=Xt(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;r=u.name,s=u.alpha,i=u.tone}else r=t}let{color:a,gradient:c}=o,l=a[r]||c[r],f=k(l);if(f&&l.value)return ft(t,`@${e}`,n);if(f){if(o.useVariable&&l.var)return s||i?ft(t,null,n):`var(${l.var})`;if(e){if(!o.useVariable&&a[r]===l){let u=E5(t,l,s,i,n);if(u!==void 0)return u}return ft(t,`@${e}`,n)}else return To(ur(l),o,u=>ft(t,"@"+u,n))}else return rx(t,r,o)},dr=(t,e,n,o)=>{let s=`--${o.varPrefix?o.varPrefix+"-":""}${e}-${n}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!="string"||(a[l]=u,(l==="light"||i===void 0)&&(i=u))}if(i!==void 0){o.cssVars[s]=i,o.cssMediaVars||(o.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(o.cssMediaVars[l]||(o.cssMediaVars[l]={}),o.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;o.cssMediaVars[f]||(o.cssMediaVars[f]={}),o.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},ko=(t,e,n)=>{let o=L();if(TO(t))return o.useVariable&&t.var&&(o.cssVars[t.var]=t.value),t;if(!o.useVariable&&T5(t))return t;if(E(t)&&Pt(t)){let h=t.slice(2),m=h.trim().indexOf(" ")!==-1;if(t=m?h:ft(h),m||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let y=h.trim().split(/\s+/),x=o.color[y[0]];if(x&&!x.value&&!x.rgb&&(E(x)||P(x)||k(x))&&!en.has(y[0])){en.add(y[0]);try{o.color[y[0]]=ko(x,y[0])}finally{en.delete(y[0])}x=o.color[y[0]]}if(x&&x.value){let T=x.rgb,v=y[1]!==void 0?y[1]:"1",_=y[2];_&&(T=Tn(T,_)),t=`rgba(${T}, ${v})`}else{let T=y[2],v=y[1]!==void 0?y[1]:"1";if(T)try{let _=Ze(y[0]);_&&_.length>=3?t=`rgba(${Tn(_.slice(0,3).join(", "),T)}, ${v})`:t=y[0]}catch{t=y[0]}else t=y[0]}}}if(P(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),k(t)){let h={};for(let m in t)m!=="var"&&(h[m]=ko(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return o.useVariable&&dr(h,"color",e,o),h}let s=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(E(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Xt(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=o.color[h.name];if(m&&!m.value&&!m.rgb&&(E(m)||P(m)||k(m))&&!en.has(h.name)){en.add(h.name);try{o.color[h.name]=ko(m,h.name)}finally{en.delete(h.name)}}let y=o.color[h.name],x=sx(y);if(x){if(h.alpha===void 0&&h.tone===void 0)return y;let T={};for(let v of x){let _=y["@"+v],b=_.rgb;h.tone&&(b=Tn(b,h.tone));let S=h.alpha!==void 0?parseFloat(h.alpha):_.alpha!==void 0?_.alpha:1;T["@"+v]=`rgba(${b}, ${S})`}return ko(T,e,n)}if(y&&y.rgb){let T=y.rgb;h.tone&&(T=Tn(T,h.tone));let v=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${T}, ${v})`}}}let a=Ze(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),p=`${c}, ${l}, ${f}`,g=`rgba(${p}, ${d})`;return o.useVariable&&(o.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},A5=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),pr=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let o=t.slice(0,n+1),r=t.slice(n+1,t.lastIndexOf(")")),s=")",i=kn(r),a=!1,c=i.map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||A5.has(u)||u==="transparent"||mo.test(u))return u;let d=ft(u);return Qe(d)?(a=!0,d):u}).join(" ")));return a?o+c.join(", ")+s:t},ma=(t,e,n)=>{let o=L();if(k(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(E(t)&&Pt(t)&&(t=ft(t.slice(2))),P(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),k(t)){let a={};for(let c in t)c!=="var"&&(a[c]=ma(t[c],e,c.slice(0,1)==="@"?c.slice(1):c));return o.useVariable&&dr(a,"gradient",e,o),a}let s=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:""),i=pr(t.value||t);return o.useVariable&&(o.cssVars[s]=i),{var:s,value:i}};var EO=new Set,Ht=(t,e)=>{if(EO.has(t)||(EO.add(t),typeof console>"u"||!console.error))return;let n=e&&e.__ref&&e.__ref.path,o=n&&n.length?` (at <${n.join(".")}>)`:"";console.error(`[smbls] "${t}"${o} is not in this build: symbols.json build.treeShakeFeatures left it out because neither the project source nor its build settings use it. Add "${t}" to build.treeShakeFeatures.keep.`)};var Nh=(t,e,n={},o)=>{if(globalThis.__SMBLS_BUILD_DROP_F_safeInk__)return Ht("safeInk");let r=o||L(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,f=i?3:s,u=a||(r.globalTheme&&r.globalTheme!=="auto"?r.globalTheme:"light"),d=E(e)?e:String(e),p=Xt(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(et,pt)=>c?{value:et,...pt}:et;if(g){let et=r.color[`${g}Safe`];if(et){let pt=`${d}@${u}`,G=et[pt]!==void 0?et[pt]:et[d];if(G!==void 0){let z=G&&G.rgb!==void 0?r.useVariable&&G.var?`var(${G.var})`:G.value:ft(G,null,r);return h(z,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=ft(t,u?`@${u}`:null,r),y=Cs(t,r,u),x=Cs(e,r,u);if(!y||!x)return r.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged")),h(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let T=Ss(x.rgb,x.alpha),v=Ss(y.rgb,y.alpha,T),_=fa(v,T);if(_>=f-.02)return h(m,{ratio:_,deviation:0,derived:!1,overridden:!1});let[b,S,w]=pf(y.rgb),[,A,C]=hf([b,S,w]),O=ys(T)>.5,N=O?b:1-b,B=et=>{let pt=O?b-et:b+et,G=Math.max(0,Math.min(1,pt));return{rgb:gf(G,A,C),L:G}},M=et=>{let{rgb:pt}=B(et),G=Ss(pt.map(z=>Math.round(z)),y.alpha,T);return fa(G,T)},K=0,q=N,tt=M(q)>=f;if(tt)for(let et=0;et<l;et++){let pt=(K+q)/2;M(pt)>=f?q=pt:K=pt}else K=q;let{rgb:nt,L:ot}=B(q),Z=nt.map(et=>Math.round(et)),X=M(q),Q=y.alpha<1?`rgba(${Z.join(", ")}, ${y.alpha})`:`rgb(${Z.join(", ")})`,rt=Math.abs(ot-b)*100;return h(Q,{rgb:Z,ratio:X,startRatio:_,deviation:rt,derived:!0,overridden:!1,reachable:tt})},ix=(t,e,n={},o)=>Nh(t,e,{...n,meta:!0},o);var v5=t=>{let n=L().spacing||{},o=parseFloat(t.spacingRatio),r={...n,ratio:Number.isFinite(o)?o:n.ratio,sequence:{},scales:{}};return me(r),r},C5=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:r,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Ot(n,{type:r,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),me(n),cr(t,e)}},If=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),o=e.includes("border")||e.includes("outline");return n&&!o},Pf=()=>{let t=L(),{spacing:e}=t;me(e),xo(e),C5(e)},O5=t=>{let e=L(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:me(t)},Ft=(t,e="padding",n,o)=>{let r=O5(n);if(E(t)){if(!o&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!o&&t.includes("(")){let i=wo(t);o=i[0],t=i[1]}}let s=o?[t]:E(t)&&t.includes("(")?lt(t):ms(t);if(P(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>Vn(s[f],e+l+i,r,o);return a[s.length].map((l,f)=>c(l,f))}return Vn(t,e,r,o)}},Me=(t,e,n,o)=>{let r=L(),{spacing:s}=r,i=n||t[e];if(!o&&E(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!o&&E(i)&&i.includes("(")){let a=wo(i);o=a[0],i=a[1]}if(t.spacingRatio){let a=v5(t);return Ft(i,e,a,o)}return Ft(i,e,s,o)},Mf=t=>{let e=n=>{let o=["+","-","*","/"].includes(n),r=vi.some(i=>t.includes(i));return o||r?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};var R5={commas:!0},Ds=(t,e,n)=>E(t)?yo(t,D5,R5,e,n):t,D5=(t,e,n)=>{let o=vs(()=>ft(t,e));return Qe(o)?o:ya(t,n)},ya=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||As(t)||_s.has(t.toLowerCase()))return t;e&&e(t);let n=So(()=>Ft(t,"shadow"));return n&&n.shadow?n.shadow:t},hr=(t,e,n,o)=>{let r=L();if(k(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(P(t)){let a={"@light":hr(t[0],e,"light"),"@dark":hr(t[1],e,"dark")};return r.useVariable&&dr(a,"shadow",e,r),a}if(k(t)){let a={};for(let c in t)a[c]=hr(t[c],e,c.startsWith("@")?c.slice(1):c);return r.useVariable&&dr(a,"shadow",e,r),a}E(t)&&(t=Ds(t));let i=`--${r.varPrefix?r.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return r.useVariable&&(r.cssVars[i]=t),{var:i,value:t}},Bf=(t,e)=>{let n=L();if(e=Os(e,n),!E(t)){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(Pt(t))return`var(${t})`;let[o]=P(t)?t:t.split(" "),s=n.shadow[o],i=k(s);if(!s)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find color ",o)),t;if(i&&!s.value&&n.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - does not have ",e))}return i&&s.value?s.value:i?To(ur(s),n,a=>{let c=s["@"+a];return c&&(c.value!==void 0?c.value:c)}):(n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find color",t)),t)};var L5=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),I5={commas:!1,keywords:L5},se=(t,e,n)=>{if(t==null)return;let o=t+"",r=o.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?o:yo(o,P5,I5,e,n)},P5=(t,e,n)=>{if(/^\d/.test(t))return t;let o=vs(()=>ft(t,e));if(Qe(o))return o;if(As(t)||_s.has(t.toLowerCase()))return t;n&&n(t);let r=So(()=>Ft(t,"border"));return r&&r.border?r.border:t},Nf=(t,e,n)=>{let o=n||L();if(o.useVariable||!E(t))return se(t);let r=Rs(t,e,o,{commas:!1,resolve:s=>se(s),resolveScheme:s=>se(t,"@"+s)});return r!==void 0?r:se(t)};var M5=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),AO=["color","Color","background","Background","fill","Fill","stroke","Stroke"],RO=t=>{for(let e=0;e<AO.length;e++)if(t.includes(AO[e]))return!0;return!1},B5={boxShadow:Ds,textShadow:Ds,border:se,borderTop:se,borderRight:se,borderBottom:se,borderLeft:se,outline:se,columnRule:se},N5=t=>{if(!t)return!1;let e=Xt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},vO=new Set,$5=(t,e,n,o,r,s)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let i=`${t}::${e}::${n||""}::${o}`;vO.has(i)||(vO.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${o}" -> "${r}" still contains the unresolved token "${s}". This is not valid CSS \u2014 the browser will drop the whole declaration. Register "${s}" as a design-system color token or fix the typo.`))},lx=(t,e,n,o)=>{let r=B5[e];if(!r)return ft(n,o);let s=null,i=r(n,o,a=>{!s&&N5(a)&&(s=a)});return s&&$5(t,e,o,n,i,s),i},fx=(t,e)=>nn(t,e),F5=t=>k(t)&&U(t.value),j5=t=>{for(let e in t){let n=t[e];if(E(n)&&n.startsWith("var(--"))return!0}return!1},$f=(t,e)=>{let n=L();return F5(t)?!n.useVariable&&j5(t)?t:_a(t.value,e):_a(t,e)},DO=(t,e)=>{let n=new Set;for(let o of e){let r=o.slice(0,1);if(!(r==="@"||r==="."||r===":")&&RO(o))for(let s in t){if(n.has(s))continue;let i=t[s]?.[o];if(i===void 0)continue;let a=ft(i,`@${s}`);a!==void 0&&E(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!M5.has(a)&&n.add(s)}}return n},LO=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),Ff=(t,e)=>{for(let n in e){let o=e[n];k(o)?Ff(t[n]||(t[n]={}),o):t[n]=o}return t},CO=(t,e,n,o,r)=>Ff(t,To(o,r,s=>({[e]:n[s]}))),IO=(t,e,n,o)=>{let r={},s=Object.keys(e).filter(c=>e[c]!==n);if(!s.length)return n===void 0?void 0:(r[t]=n,r);let i=e.light!==void 0?e.light:n,a=e.dark!==void 0?e.dark:n;if(RO(t)&&fr(i)&&fr(a)){r[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");CO(r,t,e,c,o)}else n!==void 0&&(r[t]=n),CO(r,t,e,s,o);return r},U5=new Set(["backdropFilter","WebkitBackdropFilter"]),PO=new WeakSet,MO=(t,e,n,o)=>{let r=n.globalTheme!==void 0?n.globalTheme:"auto",s=r&&r!=="auto"?String(r).replace(/^'|'$/g,""):null,i=new Set(o?Object.keys(o):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=DO(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let m={};for(let T in t)U(t[T]?.[l])&&(m[T]=t[T][l]);let y=o&&U(o[l])?o[l]:void 0;if(!Object.keys(m).length&&!y)continue;let x=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=MO(m,`${e}-${x}`,n,y);continue}let u=o&&!U(o[l])?o[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let m of d){if(a.has(m))continue;let y=t[m]?.[l];if((y===void 0||U(y))&&(y=u),y===void 0)continue;let x=lx(e,l,y,`@${m}`);x!==void 0&&(p[m]=x,(s&&m===s||!s&&(m==="light"||g===void 0))&&(g=x))}let h=IO(l,p,g,n);h&&(Ff(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},ax=(t,e,n,o)=>{let{cssVars:r}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(o?Object.keys(o):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=DO(t,l);for(let u of l){let d=u.slice(0,1),p=U(o?.[u])||Object.values(t).some(g=>U(g?.[u]));if(d==="."&&p){let g=u.slice(1),h={};for(let y in t)U(t[y]?.[u])&&(h[y]=t[y][u]);let m=U(o?.[u])?o[u]:void 0;c[u]=ax(h,`${e}-${g}`,n,m)}else if(d===":"&&p){let g=u.replace(/^:+/,""),h={};for(let y in t)U(t[y]?.[u])&&(h[y]=t[y][u]);let m=U(o?.[u])?o[u]:void 0;c[u]=ax(h,`${e}-${g}`,n,m)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${u}`,m=o&&!U(o[u])?o[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add("light"),y.add("dark"),a&&y.add(a));let x,T=!1,v={};for(let _ of y){if(f.has(_))continue;let b=t[_]?.[u];if((b===void 0||U(b))&&(b=m),b===void 0)continue;let S=lx(e,u,b,`@${_}`);if(S===void 0)continue;T=!0,v[_]=S,(a&&_===a||!a&&(_==="light"||x===void 0))&&(x=S);let w=`[data-theme="${_}"]`;if(s[w]||(s[w]={}),s[w][h]=S,_==="dark"||_==="light"){let A=`@media (prefers-color-scheme: ${_})`;s[A]||(s[A]={}),s[A][h]=S}}if(x!==void 0&&(r[h]=x),!T)continue;if(U5.has(u)){let _=IO(u,v,x,n);_&&(Ff(c,_),c[`.${u}`]=_);continue}c[u]=`var(${h})`,c[`.${u}`]={[u]:c[u]}}}(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color});for(let u in c)LO(u)&&U(c[u])&&PO.add(c[u]);return c},_a=(t,e,n,o)=>{let r=L(),{cssVars:s}=r,i={value:t},a=!n&&!o,c,l;if(U(t)){if(a&&r.useVariable){let f={},u={};for(let d in t)d.startsWith("@")?U(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=ax(f,e,r,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith("@")?U(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=MO(f,e,r,u),Object.assign(i,c)}for(let f in t){let u=f.slice(0,1),d=t[f];if(u==="@"||u===":"||u==="."){let p=u==="@"&&f;i[f]=_a(d,e,f,o||p)}else if(!a){let p=lx(e,f,d,o),g=[...new Set([o,n].filter(x=>x).map(x=>x.slice(1)))],h=g.length?"-"+g.join("-"):"",y=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}${h}-${f}`;r.useVariable?(r.useThemeSuffixedVars&&(s[y]=p),i[f]=`var(${y})`):i[f]=p,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u==="."||u===":")&&U(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u==="."||u===":")&&U(t[f])&&(i[f]=l[f])}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(E(t)&&Pt(t)){let u=r.theme[t.slice(2)];return nn(u,o)}return i},cx=(t,e)=>{let n={};for(let o in t){let r=o.slice(0,1);if(U(t[o]))if(LO(o)&&(e||PO.has(t[o])))n[o]=Ff({},t[o]);else{if(r==="@")continue;r===":"?n[`&${o}`]=cx(t[o],e):r==="."&&(n[`&${o}`]=cx(t[o],e))}else n[o]=t[o]}return n},BO=(t,e)=>{let n=e.shift();return t[n]?BO(t[n],e):t},OO=(t,e)=>P(e)?BO(t,e):E(e)&&t[e]?t[e]:t;var nn=(t,e)=>{let n=L();if(E(t)&&Pt(t)&&(t=nn(t.slice(2))),!t||!E(t)){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`${t} - Theme is not a string`));return}let[o,...r]=P(t)?t:t.split(" "),s=n.theme[o];return s&&r.length?s=OO(s,r):s&&e&&(s=OO(s,e)),cx(s,!n.useVariable)};var jf=(t,e)=>{let n=L(),o=`--font-${e}`;if(!t||P(t)&&!t[0])return;let r;if(t.isVariable){let s=Je(t.url,n.files)||t.url;ua(s)?r=da(s):r=sr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])r=ws(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Je(i,n.files)||i):Je(t.url,n.files)||t.url;r=sr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:o,value:t,fontFace:r}},FO=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","inherit","initial","unset","revert","revert-layer"]),V5=t=>FO.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),NO=new Set,Uf=(t,e)=>{let n=L(),{fontFamily:o}=n,r=e||o,s=_o(r,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!E(t))return _o(r);if(!V5(t))return co()&&!NO.has(t)&&(NO.add(t),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] fontFamily \`${t}\` is not a font family key of this design system \u2014 rendering the default family. Name a key from designSystem fontFamily, a CSS generic family (\`monospace\`, \`serif\`, \u2026) or a quoted font name (\`"'${t}'"\`).`)),_o(r)},$O=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),o=n.replace(/\s+/g," ").toLowerCase();return n!==e&&FO.has(o)?'"'+o+'"':o},ba=(t,e)=>{let n=L(),{fontFamily:o,fontFamilyTypes:r}=n;if(k(t)&&E(t.value)&&E(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!o.__defaultKey)&&(o.__defaultKey=e),k(s)&&(s=ms(s));let c=`--${n.varPrefix?n.varPrefix+"-":""}font-family-${e}`,l=p=>p&&!p.startsWith("--"),f=[...s].map(p=>String(p).trim()).filter(l),u=new Set;for(let p of f)for(let g of p.split(","))u.add($O(g));for(let p of String(r[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=$O(g);u.has(h)||(u.add(h),f.push(g))}let d=f.join(", ");return n.useVariable&&(n.cssVars[c]=d),{var:c,value:d,arr:s,type:i,isSystemFallback:!!t.isSystemFallback,isSharedLibrary:!!t.isSharedLibrary}};var $h=t=>{let e=L(),{typography:n,media:o}=e;for(let r in t){let s=r.slice(0,1)==="@",i=t[r];if(!s)continue;let{mediaRegenerate:a}=t,c=r.slice(1),{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h}=t;Ot(i,{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,x=!i.unit&&m.has(h)?"rem":y,T=o[c],v="@media "+(T==="print"?`${T}`:`screen and ${T}`);if(n.templates[v]={fontSize:i.base/n.browserDefault+x},!a){Ot(i,{sequence:{},scales:{},vars:{}}),me(i),cr(t,r);continue}Ot(i,{sequence:{},scales:{},templates:{},vars:{}}),me(i),cr(t,r)}},Fh=t=>{let e=L();if(t.h1Matches){let n=t.unit,o=Cf(t),{templates:r}=t;for(let s in o){let i=`h${parseInt(s)+1}`,a=r[i];r[i]={fontSize:e.useVariable?`var(${o[s]?.variable})`:`${o[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Vf=()=>{let t=L(),{typography:e}=t;me(e),Fh(e),xo(e),$h(e)},Hf=t=>{let e=L(),{typography:n}=e;return Vn(t,"fontSize",n)};var zf=t=>{if(!E(t))return;let n=L().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};var Wf=()=>{let t=L(),{timing:e}=t;me(e),xo(e)},Be=t=>{let e=L(),{timing:n}=e;return n[t]||n[go(t)]||t},ye=(t,e="timing")=>{let n=L(),{timing:o}=n;return Vn(t,e,o)};var Gf=()=>{let t=L(),{fontFamily:e,theme:n,typography:o}=t,r=t.document;return so(r)?(Vo(t,"document",r),r=t.document={}):r||(r=t.document={}),Ot(r,{theme:n.document,fontFamily:_o(e),fontSize:o.base,lineHeight:o.lineHeight})};var px={document:wt},jO=new WeakMap,UO=new WeakMap,H5=128,VO=1048576,ux=8192,hx=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),WO=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),z5=(t,e)=>{let n=1,o=t.ownerDocument;if(o&&typeof o.createTreeWalker=="function"){let s=o.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let r=[t];for(;r.length;){let s=r.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;r.push(s[i])}}return n},dx=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},W5=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},Sa=(t,e)=>{let n=L();if(!t){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("setSVG: val is not defined",e));return}return n.useSvgSprite?Df(e,t):t},Kf=(t,e=px)=>{let n=L(),o=Object.keys(t).length?{}:n.svg;for(let r in t)o[r]=t[r];KO(o,e)},Ls=(t,e)=>{let n=L();return n.useIconSprite&&!n.semanticIcons?.[e]?Sa(t,e):t},Is=(t,e=px)=>{let n=L(),o=Object.keys(t).length?{}:n.icons;for(let r in t)o[r]=t[r];KO(o,e)},GO=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},G5=t=>{let e=t&&t.defaultView;return e&&typeof e.DOMParser=="function"?e.DOMParser:typeof DOMParser<"u"?DOMParser:null},K5=(t,e)=>{let n=G5(t);if(n){let o=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},q5=(t,e,n)=>{let o=String(n),r=UO.get(e),s=r?.entries.get(o);if(s)return r.entries.delete(o),r.entries.set(o,s),s.root;let i=K5(t,o);if(i||(i=GO(t,{isRoot:!1}),i.innerHTML=o),o.length>VO)return i;let a=z5(i,ux);if(a>ux)return i;for(r||(r={entries:new Map,units:0,nodes:0},UO.set(e,r));r.entries.size>=H5||r.units+o.length>VO||r.nodes+a>ux;){let c=r.entries.keys().next().value,l=r.entries.get(c);r.units-=c.length,r.nodes-=l.nodes,r.entries.delete(c)}return r.entries.set(o,{root:i,nodes:a}),r.units+=o.length,r.nodes+=a,i},HO=t=>{let e=new Map;for(let n of t.children){let o=hx(n);if(!o)continue;let r=e.get(o)||[];r.push(n),e.set(o,r)}return e},Y5=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),zO=(t,e,n,o)=>{let r=0,s=e.childElementCount>8?HO(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${Y5(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=HO(n)}return s.get(a)};for(let a of e.childNodes){if(WO(a))continue;let c=hx(a);if(!c&&o){let u=r++,d=o.nodes[u];if(!d&&o.complete||d?.parentNode===n)continue;let p=dx(t,d||a);n.appendChild(p),o.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=dx(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=dx(t,a);n.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},KO=(t,e=px)=>{let n=L(),o=e.document||wt;if(!o||!o.documentElement)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("To append SVG sprites it should be run in browser environment")),Rf(t);let r=o.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=r||GO(o);if(!i||!i.nodeType)return;let a=d=>q5(o,i,d),c=a(s),l=jO.get(i);l||jO.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!WO(d)&&!hx(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=f.get(p);g||f.set(p,g={nodes:[],complete:!1}),zO(o,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{zO(o,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}r||W5(o.body,i);for(let d in t)n.__svgCache[d]=!0};var qf=(t={})=>{let e=L(),n=e.typography||{},o=e.document||{},r=k(e.reset)?e.reset:e.reset={};if(r[":root"]){let c=r,l=n.templates||{};c.body={...e.useDocumentTheme?nn("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates||{},a=e.useDocumentTheme?nn("document"):{};if(r.html&&ne(r.html,a),n.unit)for(let c in i){if(c.slice(0,6)!=="@media")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(r[c]||(r[c]={}),r[c].html||(r[c].html={}),r[c].html.fontSize===void 0&&(r[c].html.fontSize=l.fontSize))}if(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,p=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=d/p+u}}return mt(Ot(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.unit?"1"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}},re)};var X5=new Set(["fallback"]),gx=new Set,qO=(t,e)=>{gx.has(t)||(gx.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&console.warn(e))},mx=()=>{gx.clear()},YO=t=>{for(let e in t)delete t[e];return t},Yf=()=>{let t=L(),e=k(t.cssSkinVars)?YO(t.cssSkinVars):t.cssSkinVars={},n=k(t.cssSkinFallback)?YO(t.cssSkinFallback):t.cssSkinFallback={},o=t.skins;if(!k(o))return e;let r=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>E(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${r}color-${c})`:c;for(let c in o){let l=o[c];if(!k(l))continue;let f={};for(let u in l){if(X5.has(u))continue;let d=l[u];if(k(d))for(let p in d){let g=`--${r}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&qO(`${c}/${u}/${p}`,`[scratch] skin "${c}" rewrites theme "${u}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${u}" theme (its no-skin value).`),f[g]=a(d[p])}}e[c]=f,E(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(qO(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},XO=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},Ps=(t,e,n)=>{let o={};if(!k(t))return o;for(let s in t)o[XO(s,n)]=t[s];let r={};for(let s in e||{}){let i=t[e[s]];i&&(r[XO(s,n)]=i)}return Object.keys(r).length&&(o["@media (prefers-reduced-transparency: reduce)"]=r),o};var jh=(t,e)=>Nf(t,e),Uh=t=>{if(E(t))return mo.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(Pt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=ft(e);return Qe(n)?n:e}).join(" ")},Vh=(t,e)=>Bf(t,e),Xf=(t,e)=>{if(!E(t))return;let n=L();if(!n.useVariable){let o=Z5(t,e,n);if(o!==void 0)return o}return yx(t,e)},Z5=(t,e,n)=>Rs(t,e==="auto"?null:e,n,{commas:!0,resolve:yx,resolveScheme:(o,r)=>yx(r(s=>ft(s,"@"+o,n)),null)}),yx=(t,e)=>yo(t,J5,Q5,e),Q5={commas:!0,keywords:new Set(["inset","none"])},J5=(t,e)=>{if(!Qe(ft(t)))return ya(t);let n=Vt(t,e);return k(n)?Object.values(n).filter(o=>o.includes(": "+e))[0]:n},Hh=(t,e)=>{if(!E(t))return;let n=L();return kn(t).map(o=>{let r=o.trim();if(Pt(r))return`var(${r})`;if(/^var\(/.test(r)||r.includes("url"))return r;if(n.gradient?.[r]){let s=Vt(r,e);if(E(s))return s;if(k(s)){for(let i in s)if(E(s[i]))return s[i]}return r}return r.includes("gradient")?pr(r,e):r.includes("/")||r.startsWith("http")||r.includes(".")&&!Xt(r)?`url(${r})`:r}).join(", ")},Zf=new Set(["auto","cover","contain"]),Qf=new Set(["center","top","bottom","left","right"]),t4=(t,e,n,o)=>{if(n.has(t))return t;let r=So(()=>Me(o,e,t));return r&&r[e]!==void 0?r[e]:t},Ms=(t,e,n,o)=>E(t)?kn(t).map(r=>lt(r.trim()).map(s=>t4(s,e,n,o)).join(" ")).join(", "):t,zh=t=>E(t)&&lt(t).map(e=>Ft(e,"gap").gap).join(" "),Wh=t=>{if(!E(t))return t;let e=L();return lt(t).map(n=>En.test(n)?ks(n,e.spacing):n).join(" ")},_x=t=>{if(!E(t))return;let e=t.split(" ");return e.length?e.map(n=>Pt(n)?`var(${n})`:n.length<3||n.includes("ms")?ye(n).timing||n:Be(n)?Be(n):n).join(" "):t},Jf=(t,e,n)=>{if(E(t))return t.split(",").map(o=>ye(o).timing||o).join(",")},Gh=t=>{if(!E(t))return;let e=t.split(",");if(e.length)return e.map(_x).join(",")};function Lt(t,e,n={},o={}){let r=bt.call(this,e||n[t]);if(r==null)return;let s;if(E(r)){if(/^(?:env|var)\(/.test(r.trim()))return{[t]:r};if(r.includes("(")){let c=wo(r);s=c[0],r=c[1]}let i=n.scaleBoxSize,a=If(t);!i&&a&&!o.ratio&&(r=Mf(r))}return o.ratio?Me(n,t,r,s):Ft(r,t,void 0,s)}var F=(t,e=null,n)=>Lt(t,e,n,{ratio:!0}),e4=(t,e,n)=>E(t)?lt(t).map(o=>En.test(o)?Me(e,n,o)[n]:o).join(" "):t,Eo=(t,e,n,o="borderRadius")=>{if(E(t))return{[o]:lt(t).map(r=>{let s=zf(r);return s!==void 0?e4(s,e,n):Me(e,n,r)[n]}).join(" ")}};var xa="__smblsThemeRootOwner",ka=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},ZO=(t,e,n)=>{if(!(!t||!e)){ka(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},n4=(t,e)=>{let n=L(),{cssVars:o}=n,r=e.startsWith("--")?e:`--${e}`;return o[r]=t,t},ie=t=>t,o4=(t,e)=>{if(E(t)||de(t)){let n=L();if(n.cssVars&&e){let o=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${o}size-${e}`]=t}}return t},Kh={color:ko,gradient:ma,font:jf,fontFamily:ba,fontfamily:ba,theme:$f,icons:Ls,semanticIcons:ie,semanticicons:ie,svg:Sa,svgData:ie,typography:ie,shadow:hr,spacing:ie,media:ie,grid:ie,class:ie,timing:ie,reset:ie,unit:ie,animation:ie,vars:n4,sizes:o4,shape:ie,skins:ie,viewTransition:ie},r4=(t,e,n,o)=>{Vo(t,n,e);let r={};for(let s of o)t[s]===e&&(t[s]=r);return t.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket")),r},bx=(t,e,n)=>{let o=L(),r=wf(t),s=r.toLowerCase(),i=o[r]||o[s]||o[t],a=so(i)?r4(o,i,s,[r,s,t]):i,c=Kh[r]||Kh[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error setting",s,"value",e,n,l))}if(!c){let l=a||(o[s]={});return l[n]=e,l}o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can not find",s,"method in scratch"))},tu=(t,e)=>{let n=L(),o=t.toLowerCase();if(so(e))return Vo(n,o,e),n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] ignoring host object passed as the",o,"design-system family")),n[o]||n[t];if(e==null)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] skipping empty design-system family",o)),n[o]||n[t];let r=Object.keys(e).sort((s,i)=>{let a=k(e[s])||P(e[s])?1:0,c=k(e[i])||P(e[i])?1:0;return a-c});if(o==="color"){let s=n[o]||(n[o]={});for(let i of r)i in s||(s[i]=e[i])}return r.forEach(s=>{try{return bx(o,e[s],s)}catch(i){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error setting",o,"value",e[s],s,i))}}),n[o]||n[t]},qh=(t,e)=>{let n=e||L();n.globalTheme=t;let r=Ai(n)||(typeof document<"u"?document:null),s=r&&r.defaultView||(typeof window<"u"?window:null);if(r){let a=n.themeRoot||r.documentElement,c=t&&t!=="auto";if(a[xa]=n,c)ka(n),a.setAttribute("data-theme",t),n.resolvedTheme=t,t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{let d=u.matches?"dark":"light";a.setAttribute("data-theme",d),n.resolvedTheme=d},f=s.matchMedia("(prefers-color-scheme: dark)");l(f),a.style.colorScheme="light dark",ZO(n,f,l)}else ka(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(r&&n.cssVars){let a=n.scopeSelector||":root",c=r.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in n.cssVars)f[u].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},eu=t=>{let n=Ai(t)||(typeof document<"u"?document:null),o=n&&n.defaultView||(typeof window<"u"?window:null),r=n&&(t.themeRoot||n.documentElement);if(r&&typeof r.setAttribute=="function")if(t.globalTheme&&t.globalTheme!=="auto")ka(t),r.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,r[xa]=t,t.globalTheme==="dark"||t.globalTheme==="light"?r.style.colorScheme=t.globalTheme:r.style.colorScheme="light dark";else if(r[xa]&&r[xa]!==t&&r.hasAttribute("data-theme"))ka(t),t.resolvedTheme=r.getAttribute("data-theme");else if(o&&o.matchMedia){let i=c=>{let l=c.matches?"dark":"light";r.setAttribute("data-theme",l),t.resolvedTheme=l},a=o.matchMedia("(prefers-color-scheme: dark)");i(a),r.style.colorScheme="light dark",r[xa]=t,ZO(t,a,i)}else ka(t),r.setAttribute("data-theme","light"),t.resolvedTheme="light",r.style.colorScheme="light",r[xa]=t},s4={},Bs=(t,e=s4)=>{let n=e.config||L(),{version:o,verbose:r,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:m,files:y,assets:x,...T}=t;e.newConfig&&(n=Oh(e.newConfig)),ro(T.document)&&(n.__domDocument=T.document,delete T.document),ro(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),x!==void 0&&(n.assets=x),r!==void 0&&(n.verbose=r),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),f!==void 0&&(n.globalTheme=f),u!==void 0&&(n.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),m!==void 0&&(n.focusableRing=m),n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log(n)),eu(n),n.__svgCache||(n.__svgCache={}),ha(T);let v=Object.keys(T).filter(w=>!w.startsWith("__")),_=new Set(v);v.forEach(w=>{let A=w.toLowerCase();A!==w&&_.has(A)&&mt(T[A],T[w],re)});let b=new Set;if(v.forEach(w=>{let A=w.toLowerCase(),C=A!==w&&_.has(A)?A:w;b.has(C)||(b.add(C),tu(C,T[C]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),T.typography)try{Vf()}catch(w){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying typography sequence",w))}if(T.spacing)try{Pf()}catch(w){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying spacing sequence",w))}if(T.timing)try{Wf()}catch(w){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying timing sequence",w))}try{Yf()}catch(w){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying skins",w))}Gf();let S=qf();return S&&(n.reset=S),n};var Ea=1,Sx=["font","files","assets","themeRoot"],i4=new Set(Sx),Ta="$smbls",Yh=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},a4=t=>t.startsWith("__")||i4.has(t),Xh=t=>{if(!Yh(t))return null;let e=new Map,n=!1,o=s=>{if(n)return;if(s===void 0)return{[Ta]:"u"};if(s===null||typeof s=="string"||typeof s=="boolean")return s;if(typeof s=="number")return Number.isFinite(s)&&!Object.is(s,-0)?s:{[Ta]:"n",v:Object.is(s,-0)?"-0":String(s)};if(typeof s!="object"){n=!0;return}let i=e.get(s);if(i!==void 0)return{[Ta]:"r",i};if(Array.isArray(s)){e.set(s,e.size);let c=new Array(s.length);for(let l=0;l<s.length;l++){if(!(l in s)){n=!0;return}c[l]=o(s[l])}return c}if(!Yh(s)||Object.prototype.hasOwnProperty.call(s,Ta)){n=!0;return}e.set(s,e.size);let a={};for(let c of Object.keys(s))a[c]=o(s[c]);return a},r={};for(let s of Object.keys(t))if(!a4(s)&&(r[s]=o(t[s]),n))return null;return r},c4=(t,e)=>{let n=Object.keys(e),o=0;for(let r in t){if(o===n.length)return!0;if(r!==n[o])return!1;o++}return o===n.length},Zh=(t,e)=>{let n=[],o=(s,i)=>{if(s===null||typeof s!="object")return s;if(Array.isArray(s)){let l=new Array(s.length);n.push(l);for(let f=0;f<s.length;f++)l[f]=o(s[f]);return l}let a=s[Ta];if(typeof a=="string"){if(a==="u")return;if(a==="n")return s.v==="-0"?-0:Number(s.v);if(a==="r")return n[s.i]}let c=i;if(c&&!c4(s,c))for(let l of Object.keys(c))delete c[l];else c||(c={});n.push(c);for(let l in s)c[l]=o(s[l]);return c},r=new Set;for(let s in t){let i=t[s],a=e[s],c=Yh(a)&&!r.has(a)&&Yh(i)&&typeof i[Ta]!="string"?a:null;c&&r.add(c);let l=o(i,c);l!==a&&(e[s]=l)}return e};var V=(t,e)=>e.split(" ").map(n=>t+"-"+n),Tx="top right bottom left",Ex=Tx+" block block-start block-end inline inline-start inline-end",_e="start end",vo="width style color",Qh=t=>V(t,Ex),l4=(()=>{let t=V("border","width style color image");for(let e of Ex.split(" "))t.push("border-"+e,...V("border-"+e,vo));return t})(),QO=t=>[...V("border-"+t,vo+" start end"),...V("border-"+t+"-start",vo),...V("border-"+t+"-end",vo)],kt={animation:V("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:V("background","image position position-x position-y size repeat origin clip attachment color"),border:l4};for(let t of["width","style","color"])kt["border-"+t]=Ex.split(" ").map(e=>"border-"+e+"-"+t);for(let t of Tx.split(" "))kt["border-"+t]=V("border-"+t,vo);kt["border-block"]=QO("block");kt["border-inline"]=QO("inline");Object.assign(kt,{"border-image":V("border-image","source slice width outset repeat"),"border-radius":"top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" ").map(t=>"border-"+t+"-radius"),columns:V("column","width count"),"column-rule":V("column-rule",vo),container:V("container","name type"),"contain-intrinsic-size":V("contain-intrinsic","width height"),flex:V("flex","grow shrink basis"),"flex-flow":V("flex","direction wrap"),font:[...V("font","style variant weight stretch size"),"line-height",...V("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:V("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":V("grid-template","rows columns areas"),"grid-area":V("grid","row column row-start row-end column-start column-end"),"grid-row":V("grid-row",_e),"grid-column":V("grid-column",_e),inset:[...Tx.split(" "),...V("inset","block block-start block-end inline inline-start inline-end")],"inset-block":V("inset-block",_e),"inset-inline":V("inset-inline",_e),"list-style":V("list-style","type position image"),margin:Qh("margin"),"margin-block":V("margin-block",_e),"margin-inline":V("margin-inline",_e),mask:V("mask","image mode repeat position clip origin size composite"),offset:V("offset","position path distance rotate anchor"),outline:V("outline",vo),overflow:V("overflow","x y"),"overscroll-behavior":V("overscroll-behavior","x y"),padding:Qh("padding"),"padding-block":V("padding-block",_e),"padding-inline":V("padding-inline",_e)});for(let t of["content","items","self"])kt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(kt,{"scroll-margin":Qh("scroll-margin"),"scroll-padding":Qh("scroll-padding"),"text-decoration":V("text-decoration","line style color thickness"),"text-emphasis":V("text-emphasis","style color"),transition:V("transition","property duration timing-function delay behavior")});var f4="block-start block-end inline-start inline-end".split(" ");for(let t of f4)kt["border-"+t]=V("border-"+t,vo);for(let t of["block","inline"])for(let e of vo.split(" "))kt["border-"+t+"-"+e]=V("border-"+t,_e.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(kt,{"animation-range":V("animation-range",_e),"background-position":V("background-position","x y"),"font-variant":V("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":V("font-synthesis","weight style small-caps"),marker:V("marker","start mid end"),"position-try":V("position-try","order fallbacks"),"scroll-margin-block":V("scroll-margin-block",_e),"scroll-margin-inline":V("scroll-margin-inline",_e),"scroll-padding-block":V("scroll-padding-block",_e),"scroll-padding-inline":V("scroll-padding-inline",_e),"scroll-timeline":V("scroll-timeline","name axis"),"view-timeline":V("view-timeline","name axis inset"),"text-box":V("text-box","trim edge"),"text-wrap":V("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});kt.font.push("font-language-override");var Ao=t=>"corner-"+t+"-shape";kt["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map(Ao);Object.assign(kt,{"corner-top-shape":["top-left","top-right"].map(Ao),"corner-right-shape":["top-right","bottom-right"].map(Ao),"corner-bottom-shape":["bottom-left","bottom-right"].map(Ao),"corner-left-shape":["top-left","bottom-left"].map(Ao),"corner-block-start-shape":["start-start","start-end"].map(Ao),"corner-block-end-shape":["end-start","end-end"].map(Ao),"corner-inline-start-shape":["start-start","end-start"].map(Ao),"corner-inline-end-shape":["start-end","end-end"].map(Ao)});for(let t in kt){let e=kt[t],n=new Set(e);for(let o=0;o<e.length;o++){let r=kt[e[o]];if(r)for(let s of r)n.has(s)||(n.add(s),e.push(s))}}var on={};for(let t in kt)for(let e of kt[t])(on[e]||(on[e]=[])).push(t);var xx=new Map,JO=t=>{let e=xx.get(t);if(e!==void 0)return e;xx.set(t,0),e=0;let n=on[t];if(n)for(let o=0;o<n.length;o++)e=Math.max(e,JO(n[o])+1);return xx.set(t,e),e};function Aa(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(on,e)?JO(e):0}var u4=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,tR=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,d4=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),kx=t=>lt(String(t).replace(/\s*!important\s*$/,""));function va(t,e,n){let o=kt[t];if(!o||o.indexOf(n)===-1)return!1;if(u4.test(t))return!0;if(!tR.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let r=kx(e);return r.length>=3?!0:/-style$/.test(n)&&r.some(s=>d4.has(s.toLowerCase()))}var p4=new Set(["thin","medium","thick"]),h4=t=>/^[+-]?\.?\d/.test(t)||p4.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),g4=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(ia,t),m4=t=>bs(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||g4(t.toLowerCase()),y4=/-(width|style|color)$/;function nu(t,e,n){if(va(t,e,n))return!0;let o=kt[t];if(!o||o.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(tR.test(t)){if(n.indexOf("border-image")===0)return!1;let r=y4.exec(n);if(!r)return!1;let s=kx(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?r[1]!=="color":r[1]==="width"&&s.some(h4)}if(t==="background"&&n==="background-color"){let r=kx(e);return r.length===1&&m4(r[0])}return!1}var Ra=new Map,hR=null,Ax=null,_4=null;function su(t){t.batchAtomicCss&&(Ax=t.batchAtomicCss),t.compoundCssClass&&(_4=t.compoundCssClass)}var b4=new Set,nR=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function Bx(t){try{let e=L();e&&(e.__domDocument=t)}catch{}t&&b4.add(t)}function Hn(){try{let t=L();if(t){if(nR(t.__domDocument))return t.__domDocument;if(nR(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var be={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function ig(){return{...be}}function Nx(){for(let t in be)be[t]=0;og=!1}var og=!1,eg=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function S4(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${eg(n,"day")} ago)`}function w4(){try{let t=I4();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function x4(t,e){if(og)return!1;og=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",o="this IS the source",r="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${eg(be.variable,"variable rule")} and ${eg(be.atomic,"atomic rule")}, while the design system held ${eg(e,"CSS variable")}.
47
47
  The document will render UNSTYLED and nothing else will report an error.
48
48
  This is what a STALE dist/ looks like: an obsolete emitter against a current design system.
49
49
  package : ${r}
50
50
  built : ${n}
51
51
  source : ${o}
52
- emitted : ${JSON.stringify(ye)}
53
- sheets : the style[data-smbls] tiers currently hold ${a4()} rule(s)
52
+ emitted : ${JSON.stringify(be)}
53
+ sheets : the style[data-smbls] tiers currently hold ${w4()} rule(s)
54
54
  FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist
55
55
  then rebuild the listed packages and clear the app's .parcel-cache
56
- Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function sR(){try{let t=L(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function bx(t){Qh||ye.variable>0||ye.atomic>0||iR(Math.max(t,sR()))}function Rx(t){let e=t&&(t.CSS_VARS||t.cssVars);return iR(e?Object.keys(e).length:sR())}function iR(t){let e=eg();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Px())return{ok:!0,reason:"no-sheet",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return c4(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var l4={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function f4(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var Aa=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,KO=new Map,_e=t=>{if(Aa(t))return t;let e=KO.get(t);return e===void 0&&(e=f4(t),KO.set(t,e)),e},qO=new Map,nu=t=>{if(Aa(t))return t;let e=qO.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,o)=>o.toUpperCase()),qO.set(t,e)),e};function Jh(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function u4(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Jh(e)}var d4={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"};function Ms(t,e){let n=d4[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function Sx(t){let e="";for(let n in t){let o=t[n];if(typeof o!="object"||o===null)continue;let r="";for(let s in o)o[s]!=null&&(r+=Ms(_e(s),o[s]));e+=`${n}{${r}}`}return e}function wx(t){return t.charCodeAt(0)===64&&!Ca(t)}function YO(t){let e="";for(let n in t){let o=t[n];if(!wx(n)||typeof o!="object"||o===null)continue;let r="";for(let s in o){let i=o[s];i==null||typeof i=="object"||(r+=Ms(_e(s),i))}e+=`${n}{${r}}`}return e}var p4="@media (hover: hover)",h4=/(?:^|[^\\]):hover(?![\w-])/;function Dx(){try{let t=L();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Eo(t,e,n){return n===!1||!h4.test(e)||n===void 0&&!Dx()?t:`${p4}{${t}}`}var Lx=new Map;function g4(t,e,n,o){let r=va.get(t);if(!r){let c=l4[e]||Jh(e),l=u4(n);r=o?`_${o}_${c}-${l}`:`_${c}-${l}`,va.set(t,r)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${r}{${Ms(_e(e),n)}}`,a={className:r,rule:i,tier:i===null?null:Ix(i,!0,"atomic")};return Lx.set(t,a),a}function XO(t,e,n){let o=(n?n+"":"")+t+":"+e,r=Lx.get(o)||g4(o,t,e,n);return r.rule!==null&&tn(r.rule,void 0,"atomic",!0,r.tier),r.className}var ZO=new WeakMap,QO=new WeakMap;function tn(t,e,n,o,r){let s=r||Ix(t,o,n);tu&&!e&&tu.push([t,n||"global",s]);let i=_4(e,s);if(!i)return ye.dropped++,"dropped";let a=i.sheet,c=i.rules;if(c||(c=ZO.get(a),c||(c=new Set,ZO.set(a,c)),i.rules=c),c.has(t))return ye.duplicate++,ye[n||"global"]++,"duplicate";let l=QO.get(a);if(l&&l.has(t))return ye.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return l||(l=new Set,QO.set(a,l)),l.add(t),ye.invalid++,"invalid"}return c.add(t),ye[n||"global"]++,"inserted"}var Pe="0:0",xx="1:0",aR="0:99",JO=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function Ix(t,e,n){if(typeof t!="string"||!t)return Pe;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Pe;let i=1/0,a=-1/0;JO.lastIndex=0;let c;for(;c=JO.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:xx}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?aR:Pe;if(!/^\.[\w-]+\{/.test(t))return xx;if(!e)return Pe;let o=t.indexOf("{"),r=t.indexOf(":",o);if(r===-1)return Pe;let s=ka(t.slice(o+1,r).trim());return s?"0:"+s:Pe}var Ea=null,m4=()=>{if(Ea)return Ea;let t=0;for(let e in Je)t=Math.max(t,ka(e));Ea=[Pe];for(let e=1;e<=t;e++)Ea.push("0:"+e);return Ea.push(aR,xx),Ea},tR=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},eR=(t,e)=>{let[n,o]=tR(t),[r,s]=tR(e);return n!==r?n<r:o<s},y4=t=>t.getAttribute("data-tier")||Pe,kx=new WeakMap,Zh=!1,Jf=null,Tx=0;function _4(t,e){if(Zh&&!t){let n=Jf&&kx.get(Jf),o=n&&n.get(e);if(o&&o.epoch===Tx)return o;let r=tg(Jf,e);return r&&(r.epoch=Tx),r}return tg(t||Un(),e)}function Px(t,e){let n=tg(t||Un(),e);return n?n.sheet:null}function tg(t,e){if(!t||!t.head)return null;let n=e||Pe,o=kx.get(t);o||(o=new Map,kx.set(t,o));let r=o.get(n);if(r&&r.node.parentNode===t.head&&r.node.sheet===r.sheet)return r;if(n!==Pe){let c=m4();for(let l=0;l<c.length&&eR(c[l],n);l++)tg(t,c[l])}let s=n===Pe?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!s){s=t.createElement("style"),s.setAttribute("data-smbls",""),n!==Pe&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(eR(n,y4(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;if(l)t.head.insertBefore(s,l);else if(f)t.head.insertBefore(s,f.nextSibling);else{let u=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');u?t.head.insertBefore(s,u):t.head.appendChild(s)}}let i=s.sheet;if(!i)return o.delete(n),null;let a={sheet:i,node:s,rules:null,epoch:0};return o.set(n,a),n===Pe&&(rR=i),a}function b4(t){let e=t||Un();if(!e||!e.head)return[];let n=[],o=e.head.querySelectorAll("style[data-smbls]");for(let r=0;r<o.length;r++)o[r].sheet&&n.push(o[r].sheet);return n}var S4=8;function Me(t,e,n,o){if(!t||typeof t!="object")return"";if(Zh)return nR(t,n,o);Zh=!0,Jf=Un(),Tx++;try{return nR(t,n,o)}finally{Zh=!1,Jf=null}}function nR(t,e,n){let o=!!(n&&n.state),r=null,s=0,i=[],a=[],c=Object.keys(t);for(let f=0;f<c.length;f++){let u=c[f],d=t[u];d==null||d===!1||d===""||(typeof d=="object"?a.push([u,d]):_x&&!Aa(u)?(r||(r=[]),r.push(u,String(d)),s++):i.push(XO(u,String(d),e)))}if(r&&s>=S4){let f=r.join("\0"),u=_x(f),d=u.indexOf("\0"),p=u.substring(0,d),g=u.substring(d+1);if(g){let h=g.split(`
57
- `);for(let m=0;m<h.length;m++)h[m]&&tn(h[m],void 0,"atomic",!0)}i.push(p)}else if(r)for(let f=0;f<r.length;f+=2)i.push(XO(r[f],r[f+1],e));let l=[];for(let f=0;f<a.length;f++)l.push(T4(a[f][0],a[f][1],e,o));return i.concat(l).join(" ").trim()}var oR=new Map,w4=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function Ca(t){return/^@(media|supports|container)\b/.test(t)}function Ao(t){let e=[],n=0,o=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s===40?n++:s===41?n--:s===44&&n===0&&(e.push(t.slice(o,r).trim()),o=r+1)}return e.push(t.slice(o).trim()),e}function x4(t){return typeof t!="string"||!t||Ca(t)?!1:Ao(t).every(e=>w4.test(e))}var cR=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},Ex=32,Ax=1024,vx=!1;function Yh(t,e,n){if(vx)return;vx=!0;let o=[e,...n],r=o.length>12?[...o.slice(0,6),`\u2026${o.length-9} more\u2026`,...o.slice(-3)]:o;globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[@symbo.ls/css] ${t} at ${r.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function k4(t){try{return JSON.stringify(t)}catch{let n=[],o=0;return JSON.stringify(t,function(r,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!cR(s)||n.length>Ex||++o>Ax)))return n.push(s),s})}}function T4(t,e,n,o){let r=k4(e),s=t.indexOf(":hover")!==-1||r.indexOf(":hover")!==-1,i=s&&Dx(),a=(n?n+"":"")+t+r+(s&&!i?"rawhover":"")+(o?"state":""),c=va.get(a);if(c){let _=oR.get(c);if(_)for(let b=0;b<_.length;b+=2)tn(_[b],void 0,"atomic",void 0,_[b+1]);return c}c=n?`_${n}_c${Jh(a)}`:`_c${Jh(a)}`;let l=o?`.${c}.${c}`:`.${c}`,f=x4(t)?`${l}.${c}`:l,u="",d=[],p=_=>typeof _=="string"&&(_.indexOf("{")!==-1||_.indexOf("}")!==-1),g=new Set,h=0,m=(_,b)=>{g.add(b);let S="",w=Object.keys(b);for(let A=0;A<w.length;A++){let C=w[A],O=b[C];if(O!=null)if(typeof O=="object"){let N=[..._,C];g.has(O)?Yh("a style value that loops back to one of its own ancestors",t,N):cR(O)?N.length>Ex?Yh(`a style block nested more than ${Ex} levels deep`,t,N):++h>Ax?Yh(`a style object with more than ${Ax} nested blocks`,t,N):m(N,O):Yh(`a ${Object.prototype.toString.call(O).slice(8,-1)} (not a style block)`,t,N)}else{if(p(O))continue;S+=Ms(_e(C),O)}}g.delete(b),S&&(_.length===0?u+=S:d.push({chain:_,body:S}))};m([],e);let y=_=>_.startsWith(":")||_.startsWith("["),x=(_,b=!0)=>{let S=b&&_.length===1?f:l;if(!_.length)return S;let w=Ao(_[0]).map(A=>A.includes("&")?A.replace(/&/g,S):y(A)?`${S}${A}`:`${S} ${A}`);for(let A=1;A<_.length;A++){let C=Ao(_[A]),O=[];for(let N of w)for(let B of C)B.includes("&")?O.push(B.replace(/&/g,N)):y(B)?O.push(N+B):O.push(N+" "+B);w=O}return w.join(", ")},T=[],v=(_,b)=>{let S=_.filter(Ca),w=x(_.filter(O=>!Ca(O)),S.length===0),A=`${w}{${b}}`;for(let O=S.length-1;O>=0;O--)A=`${S[O]}{${A}}`;A=Eo(A,w,i);let C=Ix(A,void 0,"atomic");T.push(A,C),tn(A,void 0,"atomic",void 0,C)};u&&v([t],u);for(let _ of d)v([t,..._.chain],_.body);return oR.set(c,T),va.set(a,c),c}var tu=null;function ou(t){let e=tu,n=[];tu=n;try{t()}finally{tu=e}return n}function ru(t){if(!Array.isArray(t))return;Px();let e=0;for(let n of t){if(!Array.isArray(n)||typeof n[0]!="string")continue;let o=n[1]||"global";o==="variable"&&e++,tn(n[0],void 0,o,void 0,n[2]||void 0)}e>0&&bx(e)}function At(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Px(),typeof t=="string"){let s=t.indexOf("--")!==-1;tn(t,void 0,s?"variable":"global"),s&&bx(1);return}let e=Dx(),n=0,o=Object.keys(t),r=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};o.sort((s,i)=>{let a=s.startsWith("@media"),c=i.startsWith("@media");return!a&&!c?0:a?c?r(i)-r(s):1:-1});for(let s of o){let i=t[s];if(s.startsWith("@keyframes")){let a=Sx(i);a&&tn(`${s}{${a}}`,void 0,"keyframes");continue}if(Ca(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=Sx(c);l&&tn(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",f=0,u=a.charCodeAt(0)===64;for(let d in c){let p=c[d];p!=null&&(u&&typeof p=="object"||(Aa(d)&&f++,l+=Ms(_e(d),p)))}u&&(l+=YO(c)),n+=f,tn(Eo(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else if(c!=null){let l=Aa(a);l&&n++,tn(`${s}{${Ms(_e(a),c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0,f=s.charCodeAt(0)===64;for(let u in i){let d=i[u];if(d!=null)if(typeof d=="object"){if(f&&wx(u))continue;c=!0}else Aa(u)&&l++,a+=Ms(_e(u),d)}if(f&&(a+=YO(i)),n+=l,a&&tn(Eo(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let u=[],d=[];for(let p in i)if(typeof i[p]=="object"&&i[p]!==null){if(f&&wx(p))continue;Ca(p)?u.push(p):d.push(p)}u.sort((p,g)=>{let h=m=>{let y=m.match(/max-width:\s*(\d+)/);return y?parseInt(y[1]):0};return h(g)-h(p)});for(let p of d)At({[`${s} ${p}`]:i[p]});for(let p of u)At({[p]:{[s]:i[p]}})}}}n>0&&bx(n)}function Oa(t,e){return tn(`@keyframes ${t}{${Sx(e)}}`,void 0,"keyframes"),t}function lR(){va.clear(),Lx.clear(),rR=null,vx=!1}function Mx(){return va.size}var fR="3.14.855";var qg=/*@__PURE__*/$({},{DELEGATED_EVENTS:()=>Ra,LIFECYCLE_EVENTS:()=>Vn,MIXINS:()=>og,MOUNT_YIELD_BUDGET_MS:()=>Ks,NON_BUBBLING_EVENTS:()=>rg,REGISTRY:()=>Ht,SVG_TAGS:()=>Na,addDelegatedEvent:()=>su,addMethods:()=>Ua,adoptHydrationNode:()=>f0,applyExtends:()=>Pa,attachElement:()=>wr,cacheNode:()=>hr,create:()=>zt,createHTMLNode:()=>Ba,detectTag:()=>zn,dispose:()=>rn,dropMountWork:()=>Iu,elementPath:()=>jg,flushMounts:()=>qa,globalEventKeyInfo:()=>lg,holdMountFlush:()=>Ws,inertOutsidePlugin:()=>Kg,isSvgTag:()=>Co,isValidTag:()=>Ma,mountIdle:()=>Tr,mountPending:()=>Wg,mountYieldBudget:()=>Zn,refreshContextProto:()=>Va,registerEvent:()=>La,registerGlobalEvent:()=>fg,releaseMount:()=>$e,remove:()=>ja,removeDelegatedEvent:()=>iu,settleBuiltAttributes:()=>xr,update:()=>Fa,whenConnected:()=>dr,whenMountIdle:()=>xe,whenMounted:()=>Io,yieldToMain:()=>Qn});var it={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};var Ht=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),og={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Vn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","mounted","contentUpdate","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove","bridgeMount","bridgeUpdate","bridgeDestroy"]),rg=new Set(["load","error","abort","scroll","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),sg=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ra=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Bs=new Set;function Da(t){let e=t&&t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function dr(t,e){let n=t&&t.node,o=t&&t.__ref;if(!(!n||!o||typeof e!="function")){if(Da(t)){e(t);return}(o.__onConnected||(o.__onConnected=[])).push(e),Bs.add(t)}}function ig(){if(Bs.size)for(let t of Bs){let e=t.__ref,n=t.node;if(!e||!n){Bs.delete(t);continue}if(!Da(t))continue;Bs.delete(t);let o=e.__onConnected;if(e.__onConnected=null,!!o)for(let r=0;r<o.length;r++)try{o[r](t)}catch(s){typeof console<"u"&&console.error&&console.error("[smbls] whenConnected callback failed:",s?.message||s)}}}function uR(t){Bs.size&&Bs.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var $x=new WeakMap,E4={passive:!0},A4={passive:!0,capture:!0},gR=(t,e)=>sg.has(t)?e?A4:E4:e||!1;function mR(t){let e=$x.get(t);return e||(e={handlers:new Map,installed:new Set},$x.set(t,e)),e}function v4(t,e){let n=mR(e);if(n.installed.has(t))return;n.installed.add(t);let o=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave",r=t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave";e.addEventListener(t,s=>{if(r){let a=s.target,c=n.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains=="function"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},gR(t,o))}function su(t,e,n,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let r=mR(o);v4(t,o),r.handlers.has(t)||r.handlers.set(t,new WeakMap),r.handlers.get(t).set(e,n)}function iu(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=$x.get(n);if(!o)return;let r=o.handlers.get(t);r&&r.delete(e)}function en(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function ag(t){return t.charAt(2).toLowerCase()+t.slice(3)}var C4=/^[A-Za-z_$][\w$]*$/;function au(t,e){return typeof e!="string"||!C4.test(e)?e:function(o){return t.call(e,o)}}function O4(t){return Ra.has(t)&&!Vn.has(t)}function cg(t,e){let{context:n}=t,o=n?.designSystem;return r=>{o&&ht(o);try{let s=e.call(t,r,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{o&&dt()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}o&&dt()}}var yR=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function R4(t,e){return yR(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:sg.has(t),once:e.once===!0}:gR(t,!1)}function D4(t,e,n){return o=>{let r=o.target;if(r&&r.nodeType!==1&&(r=r.parentElement),!r||typeof r.closest!="function")return;let s;try{s=r.closest(e)}catch{return}s&&t.contains(s)&&n(o)}}function La(t,e,n,o){let{node:r,context:s}=e;if(!r)return;let i=cg(e,n),a=o&&typeof o.selector=="string"&&o.selector;a&&(i=D4(r,a,i));let l=!rg.has(t)&&O4(t)&&!yR(o),f=l?null:R4(t,o);if(l){let u=s?.rootNode||r.ownerDocument?.documentElement;su(t,r,i,u)}else r.addEventListener(t,i,f);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let u=s?.rootNode||r.ownerDocument?.documentElement;iu(t,r,u)}else r.removeEventListener(t,i,f)})}var Bx=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function lg(t){if(typeof t!="string")return null;for(let e=0;e<Bx.length;e++){let n=Bx[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let o=t.charCodeAt(n.length);if(!(o<65||o>90))return{target:Bx[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function L4(t,e,n){let o=e,r=!1,s,i=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(o=e.handler,r=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),o=au(t,o),typeof o!="function"?null:(s===void 0&&(s=sg.has(n)),{handler:o,capture:r,passive:s,once:i,query:a})}function I4(t,e,n){let o=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!o||typeof o.addEventListener!="function")return null;if(e==="document")return o;let r=o.defaultView||(typeof window<"u"?window:null);if(!r)return null;if(e==="window")return typeof r.addEventListener=="function"?r:null;if(e==="visualViewport"){let s=r.visualViewport;return s&&typeof s.addEventListener=="function"?s:null}if(e==="mediaQuery"){let s=n&&n.query;if(typeof s!="string"||!s.trim()||typeof r.matchMedia!="function")return null;try{return r.matchMedia(s)||null}catch{return null}}return null}var Nx=/^@media\s+/i,P4=/^[@[.#&:>*~+]/,dR=new Set;function pR(t,e){!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J())||dR.has(t)||(dR.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function M4(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let o=t.context?.designSystem?.media,r=i=>{let a=o&&typeof o=="object"?o[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!Nx.test(n)){if(s=r(n.slice(1)),!s)return pR(n,"is not a key of designSystem.media"),null}else s=r(n)||n;return Nx.test(s)?s.replace(Nx,"").trim()||null:P4.test(s)?(pR(n,`names "${s}", which is not a media query`),null):s}function B4(t,e,n,o){try{return t.addEventListener(e,n,o),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function _R(t,e,n,o){try{t.removeEventListener(e,n,o)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function fg(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let r=0;r<n.length;r++)hR(t,e,n[r]);return}hR(t,e,n)}}function hR(t,e,n){let o=e.__ref,r=L4(e,n,t.eventName);if(!r||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(r.query=M4(e,r.query),!r.query))return;let s=I4(e,t.target,r);if(!s)return;let i=t.target+":"+(r.query?r.query+":":"")+t.eventName+":"+(r.capture?1:0);if(o.__globalEvents&&o.__globalEvents.has(i))return;let a=cg(e,r.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(Da(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:r.capture,passive:r.passive,once:r.once};if(!B4(s,t.eventName,f,u))return;o.__globalEvents||(o.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:f,options:u};o.__globalEvents.set(i,d),o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{_R(s,t.eventName,f,u),o.__globalEvents&&o.__globalEvents.delete(i)}),c&&N4(e,i,d,()=>l)}function N4(t,e,n,o){let r=n.target.document;!r||r.readyState!=="complete"||dr(t,()=>queueMicrotask(()=>{let s=t.__ref;if(o()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&o()&&_R(i,"load",n.listener,n.options))}))}var Fx=Symbol("handlerChain.none"),$4=new Set(["inView","leaveView"]),F4=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),Ia=new WeakMap,bR=new WeakMap,Hx=!1,jx=t=>t!==null&&typeof t=="object"&&t.always===!0;function j4(t){let e=ag(t);return $4.has(e)?!0:Vn.has(e)&&!F4.has(e)}var SR=new Set;function U4(t){SR.has(t)||!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J())||(SR.add(t),console.warn(`[smbls] \`${t}: { always: true, \u2026 }\` \u2014 \`always\` composes the lifecycle hooks (onInit, onRender, onCreate, onMounted, onUpdate, onRemove, \u2026; not the bridge hooks) and onInView / onLeaveView only. \`${t}\` keeps the default merge: an extender's own \`${t}\` replaces this one. Run the shared step from a lifecycle hook, or call it from the extender's handler.`))}function Ux(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function cu(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},o=function(...s){return z4(n,this,s)};return Ia.set(o,n),Hx=!0,o}function Vx(t){let e=bR.get(t);return e||(e=cu([Ux(t)],null),bR.set(t,e)),e}function V4(t,e){let n=Ia.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=cu(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let i=n.prims||(n.prims=new Map),a=i.get(e);return a||i.set(e,a=cu(n.always,Ux(e))),a}let o=n.next||(n.next=new WeakMap),r=o.get(e);if(r)return r;let s=jx(e)?Ia.get(Vx(e)):typeof e=="function"?Ia.get(e):void 0;return r=s?cu(n.always.concat(s.always),s.own):cu(n.always,Ux(e)),o.set(e,r),r}function H4(t,e,n){let o=jx(e),r=!o&&Hx&&typeof e=="function"&&Ia.has(e);if(!o&&!r&&!jx(n))return Fx;if(!j4(t))return U4(t),Fx;let s=o?Vx(e):r?e:null;return s?V4(s,n):Vx(n)}function wR(t,e,n,o){if(!en(e))return!1;let r=H4(e,n,o);return r===Fx?!1:(t[e]=r,!0)}function zx(t){if(typeof t=="function"){let e=Hx?Ia.get(t):void 0;return e?e.list:[{handler:t,options:null}]}return typeof t=="string"?[{handler:t,options:null}]:t&&typeof t=="object"?[{handler:t.handler,options:t}]:[]}function z4(t,e,n){let o=t.list,r,s=!1,i=null,a=!1,c;for(let l=0;l<o.length;l++){let f=o[l].handler;if(typeof f!="function")continue;let u;try{u=f.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,c=d);continue}u===!1?s=!0:u&&typeof u.then=="function"&&(i||(i=[])).push(u),r=u}if(a){if(i)for(let l of i)l.then(null,f=>console.error("[smbls] lifecycle handler error:",f));throw c}return s?!1:i?i.length===1?i[0]:W4(i):r}function W4(t){return Promise.allSettled(t).then(e=>{let n=null;for(let o of e)o.status==="rejected"&&(n?console.error("[smbls] lifecycle handler error:",o.reason):n=o);if(n)throw n.reason})}var G4=1e-6,xR=new WeakMap;function K4(t,e,n){let o=t.defaultView,r=o&&o.IntersectionObserver;if(typeof r!="function")return null;let s=xR.get(t);s||xR.set(t,s=new Map);let i=e+"|"+n,a=s.get(i);if(a)return a;a={id:i,byKey:s,threshold:e,targets:new Map,observer:null};try{let c=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new r(l=>q4(a,l),c)}catch{return null}return s.set(i,a),a}function q4(t,e){for(let n=0;n<e.length;n++){let o=e[n],r=t.targets.get(o.target);if(!r)continue;let s=!!o.isIntersecting&&o.intersectionRatio>=t.threshold-G4;if(s===r.inView)continue;r.inView=s;let i=s?"in":"leave",a=r.subs.slice();for(let c=0;c<a.length;c++){let l=a[c];if(!(l.kind!==i||l.dead)){l.once&&TR(t,r,l);try{l.run(o)}catch(f){Y4(f)}}}}}function Y4(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function TR(t,e,n){if(n.dead)return;n.dead=!0;let o=e.subs.indexOf(n);o!==-1&&e.subs.splice(o,1),!e.subs.length&&(t.targets.delete(e.node),t.observer.unobserve(e.node),!t.targets.size&&(t.observer.disconnect(),t.byKey.delete(t.id)))}function kR(t,e,n,o,r){let s=au(t,r.handler),i=r.options;if(typeof s!="function")return;let a=i&&i.threshold,c=typeof a=="number"&&a>=0&&a<=1?a:0,l=i&&typeof i.rootMargin=="string"?i.rootMargin.trim():"",f=K4(n,c,l);if(!f)return;let u=f.targets.get(e);u||(u={node:e,inView:!1,subs:[]},f.targets.set(e,u),f.observer.observe(e));let d={kind:o,once:!!(i&&i.once===!0),run:cg(t,s),dead:!1};u.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>TR(f,u,d))}function ER(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return Vt("viewEvents",t);let e=t.node;if(!e||e.nodeType!==1)return;let n=e.ownerDocument,o=n&&n.defaultView;if(!o||typeof o.IntersectionObserver!="function")return;let r=zx(t.onInView);for(let i=0;i<r.length;i++)kR(t,e,n,"in",r[i]);let s=zx(t.onLeaveView);for(let i=0;i<s.length;i++)kR(t,e,n,"leave",s[i])}function nn(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();ht(n);try{return e()}finally{dt()}}var be=Nr||(t=>{let e=Ce();if(!e)return t();Lc(null);try{return t()}finally{Lc(e)}});var OR=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],X4=["none","forwards","backwards","both"],Z4=["normal","reverse","alternate","alternate-reverse"],Q4=["running","paused"],J4=/^(?:translate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|scale(?:3d|x|y|z)?\((?:\s*1(?:\.0+)?\s*,?)+\)|rotate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|skew(?:x|y)?\((?:\s*0[a-z%]*\s*,?)+\)|matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\))$/,tV=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(o=>J4.test(o.replace(/\s+/g,"")))},AR=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),eV={transform:tV,translate:AR,rotate:t=>AR(t)||/^\s*(?:[xyz]\s+)?0(?:deg|rad|turn|grad)?\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\s*1(?:\.0+)?)+\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},nV=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},oV=t=>{if(!k(t))return null;let e=null,n=-1;for(let o in t){let r=nV(o);r==null||!k(t[o])||r>=n&&(n=r,e=t[o])}return e},rV=t=>{let e=oV(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let o of n){let r=eV[o];if(!r)return!1;let s=e[o];if(s==null||typeof s=="object"||typeof s=="function"||!r(s))return!1}return!0},sV=(t,e)=>{if(k(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},o=n&&n[t];return k(o)?o:null},iV=["reverse","alternate","alternate-reverse"],RR=(t,e,n)=>{let o=n||e.animationDirection;return o&&iV.includes(String(o))?"both":rV(sV(t,e))?"backwards":"both"},aV=0,vR=new Map,Wx=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(k(t)){let r=JSON.stringify(t),s=vR.get(r);if(s)return s;let i=`smbls-anim-${aV++}`,a=Oa(i,t);return vR.set(r,a),a}let o=n&&n[t];return k(o)?Oa(t,o):t},DR=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,cV=/^(?:\d+(?:\.\d*)?|\.\d+)$/,LR=/^(?:cubic-bezier|steps|linear)\(/,lV=/^(?:calc|min|max|clamp)\(/,fV=t=>t.includes("(")||t.startsWith("--"),uV=(t,e)=>{if(!kn.test(t))return!1;let n=e&&e.sequence;if(!k(n))return!1;let o=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[o]||o.length===2&&n[o[0]])},dV=t=>{if(!E(t))return!1;let e=t.trim();return OR.includes(e)||LR.test(e)||e.startsWith("var(")},pV=(t,e)=>!!e&&dV(e[t]||e[uo(t)]),hV=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],gV=t=>lt(String(t)),mV=(t,e,n)=>{let o={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},r=null,s=[],i=[],a=(u,d)=>o[u]!=null?!1:(o[u]=d,!0),c=(u,d)=>{a(u,d)||s.push(d)};for(let u of gV(t))e&&e[u]?r=u:DR.test(u)||uV(u,n)?a("duration",u)||a("delay",u):OR.includes(u)||pV(u,n)?c("timingFunction",u):LR.test(u)?a("timingFunction",u):u==="infinite"?c("iterationCount",u):cV.test(u)?a("iterationCount",Number(u)):Z4.includes(u)?c("direction",u):X4.includes(u)?c("fillMode",u):Q4.includes(u)?c("playState",u):fV(u)?i.push(u):s.push(u);let l=r||s[0]||i.shift()||null,f=new Set;for(let u of i){let d=hV.find(p=>o[p]==null);if(!d)break;o[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:l,...o,opaqueSlots:f}},yV=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:o}=L()||{};return wn(String(t)).map(r=>r.trim()).filter(Boolean).map(r=>mV(r,n,o))},CR=(t,e)=>DR.test(t)||e&&!lV.test(t)&&!/^(?:var|env)\(/.test(t)?t:ge(t).timing||t,_V=(t,e)=>{let n=o=>t.opaqueSlots.has(o);return{animationName:t.name==null?void 0:Wx(t.name,e),animationDuration:t.duration!=null?CR(t.duration,n("duration")):ge(e.animationDuration||"A").timing,animationDelay:t.delay!=null?CR(t.delay,n("delay")):ge(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:Ie(t.timingFunction):Ie(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||RR(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},bV={animationName:"none",animationPlayState:"running",animationDirection:"normal"},SV=(t,e)=>{let n=t.map(r=>_V(r,e));if(n.length===1)return n[0];let o={};for(let r in n[0]){let s=n.map(i=>i[r]);s.every(i=>i==null)||(o[r]=s.map(i=>i??bV[r]).join(", "))}return o},Gx={animation:(t,e)=>{if(t!=null){if(E(t)&&/[\s,]/.test(t)){let n=yV(t,e);if(n.length)return SV(n,e)}return{animationName:Wx(t,e),animationDuration:ge(e.animationDuration||"A").timing,animationDelay:ge(e.animationDelay||"0s").timing,animationTimingFunction:Ie(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||RR(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:Wx(t,e)}),animationDuration:t=>({animationDuration:ge(t).timing}),animationDelay:t=>({animationDelay:ge(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Ie(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};var ug=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!E(e))return;let[o,r]=lt(e);return{...F(t+"Start",o,n),...F(t+"End",r||o,n)}},Kx={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>F("height",t,e),width:(t,e)=>F("width",t,e),boxSizing:t=>Wt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("height",e),...Lt("width",n||e)}},inlineSize:(t,e)=>F("inlineSize",t,e),blockSize:(t,e)=>F("blockSize",t,e),minWidth:(t,e)=>F("minWidth",t,e),maxWidth:(t,e)=>F("maxWidth",t,e),widthRange:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("minWidth",e),...Lt("maxWidth",n||e)}},minHeight:(t,e)=>F("minHeight",t,e),maxHeight:(t,e)=>F("maxHeight",t,e),heightRange:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("minHeight",e),...Lt("maxHeight",n||e)}},size:t=>{if(!E(t))return;let[e,n]=lt(t);return{...F("inlineSize",e),...F("blockSize",n||e)}},minBlockSize:(t,e)=>F("minBlockSize",t,e),minInlineSize:(t,e)=>F("minInlineSize",t,e),maxBlockSize:(t,e)=>F("maxBlockSize",t,e),maxInlineSize:(t,e)=>F("maxInlineSize",t,e),minSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("minInlineSize",e),...Lt("minBlockSize",n||e)}},maxSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("maxInlineSize",e),...Lt("maxBlockSize",n||e)}},borderWidth:(t,e)=>F("borderWidth",t,e),borderTopWidth:(t,e)=>F("borderTopWidth",t,e),borderRightWidth:(t,e)=>F("borderRightWidth",t,e),borderBottomWidth:(t,e)=>F("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>F("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>F("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>F("textUnderlineOffset",t,e),padding:(t,e)=>F("padding",t,e),paddingInline:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("paddingInlineStart",e),...Lt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("paddingBlockStart",e),...Lt("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>F("paddingBlockStart",t,e),paddingBottom:(t,e)=>F("paddingBlockEnd",t,e),paddingLeft:(t,e)=>F("paddingInlineStart",t,e),paddingRight:(t,e)=>F("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>F("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>F("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>F("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>F("paddingInlineEnd",t,e),margin:(t,e)=>F("margin",t,e),marginInline:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("marginInlineStart",e),...Lt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("marginBlockStart",e),...Lt("marginBlockEnd",n||e)}},marginTop:(t,e)=>F("marginBlockStart",t,e),marginBottom:(t,e)=>F("marginBlockEnd",t,e),marginLeft:(t,e)=>F("marginInlineStart",t,e),marginRight:(t,e)=>F("marginInlineEnd",t,e),marginInlineStart:(t,e)=>F("marginInlineStart",t,e),marginInlineEnd:(t,e)=>F("marginInlineEnd",t,e),marginBlockStart:(t,e)=>F("marginBlockStart",t,e),marginBlockEnd:(t,e)=>F("marginBlockEnd",t,e),scrollMargin:(t,e)=>F("scrollMargin",t,e),scrollMarginTop:(t,e)=>F("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>F("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>F("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>F("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>ug("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>ug("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>F("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>F("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>F("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>F("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>F("scrollPadding",t,e),scrollPaddingTop:(t,e)=>F("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>F("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>F("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>F("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>ug("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>ug("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>F("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>F("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>F("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>F("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Fh(t)}),columnGap:(t,e)=>Le(e,"columnGap",t),rowGap:(t,e)=>Le(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!E(t))return;let[o,r]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(r||"")}},flexAlign:t=>{if(!E(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>xo(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>xo(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>xo(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>xo(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>xo(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>xo(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:Is(t,"backgroundSize",Kf,e)}),backgroundPosition:(t,e)=>({backgroundPosition:Is(t,"backgroundPosition",qf,e)}),maskSize:(t,e)=>({maskSize:Is(t,"maskSize",Kf,e)}),maskPosition:(t,e)=>({maskPosition:Is(t,"maskPosition",qf,e)})};var qx={fontSize:t=>Ff(t)||t,fontFamily:t=>({fontFamily:Nf(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t}),lineClamp:t=>{if(t!=null)return t==="none"?{WebkitLineClamp:"none",lineClamp:"none"}:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:String(t),lineClamp:String(t),overflow:"hidden"}}};var Yx={overflow:t=>({overflow:t}),cursor:(t,e,n,o)=>{if(!t)return;let r=o.assets&&o.assets[t];if(r&&r.content)t=`url(${r.content.src})`;else{let s=o.files&&o.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Xx={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:lt(t).map(n=>$t(n,"k").k).join(" ")}},left:t=>$t(t,"left"),top:t=>$t(t,"top"),right:t=>$t(t,"right"),bottom:t=>$t(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=lt(t).map(n=>$t(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=lt(t).map(n=>$t(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};var dg=0,pg=()=>{dg++},hg=()=>{dg>0&&dg--},se=({context:t,state:e})=>{let n=t?.designSystem,o=e?.root?.globalTheme||n?.globalTheme;return o&&o!=="auto"?o:dg>0?null:n&&n.resolvedTheme||null},ie=(t,e)=>{if(e==null||e==="")return;if(!k(e))return{[t]:e};let n={},o=!1;for(let r in e){let s=e[r];if(!(s==null||s==="")){if(k(s)){let i=ie(t,s);i&&(n[r]=i,o=!0);continue}n[r]={[t]:s},o=!0}}return o?n:void 0},IR=t=>{let e={};for(let n in t){let o=t[n];e[n]=k(o)?IR(o):E(o)?o+" !important":o}return e},Ns=t=>(e,n)=>{let o=n&&E(e)&&!L().useVariable,r=Mh(e,o?se(n):null);return k(r)?ie(t,r):{[t]:r}},Zx={theme:(t,e)=>{if(t)return e.themeModifier?Qe(t,`@${e.themeModifier}`):Qe(t)},color:(t,e)=>{let n=se(e);if(t)return ie("color",Ut(t,n))},background:(t,e)=>{let n=se(e);if(t)return E(t)&&t.includes("gradient")&&t.includes("(")?{background:fr(t,n)}:ie("background",Ut(t,n))},backgroundColor:(t,e)=>{let n=se(e);if(t)return ie("backgroundColor",Ut(t,n))},backgroundImage:(t,e,n,o)=>{let r=se(e);if(!t)return;let s=o.assets&&o.assets[t];if(s&&s.content)t=s.content.src;else{let i=o.files&&o.files[t];i&&i.content&&(t=i.content.src)}return ie("backgroundImage",$h(t,r))},textStroke:t=>{let e=Bh(t);if(e!=null)return{WebkitTextStroke:e}},outline:Ns("outline"),outlineWidth:(t,e)=>F("outlineWidth",t,e),outlineColor:(t,e)=>{let n=se(e);if(t)return ie("outlineColor",Ut(t,n))},outlineOffset:(t,e)=>F("outlineOffset",t,e),border:Ns("border"),borderColor:(t,e)=>{let n=se(e);if(t)return ie("borderColor",Ut(t,n))},borderTopColor:(t,e)=>{let n=se(e);if(t)return ie("borderTopColor",Ut(t,n))},borderBottomColor:(t,e)=>{let n=se(e);if(t)return ie("borderBottomColor",Ut(t,n))},borderLeftColor:(t,e)=>{let n=se(e);if(t)return ie("borderLeftColor",Ut(t,n))},borderRightColor:(t,e)=>{let n=se(e);if(t)return ie("borderRightColor",Ut(t,n))},borderLeft:Ns("borderLeft"),borderTop:Ns("borderTop"),borderRight:Ns("borderRight"),borderBottom:Ns("borderBottom"),shadow:(t,e)=>{let n=se(e);if(t)return ie("boxShadow",Nh(t,n))},boxShadow:(t,e)=>{if(!E(t))return;let[n,o]=t.split("!importan"),r=se(e),s=o?" !important":"",i=Gf(n.trim(),r);return E(i)?{boxShadow:i+s}:ie("boxShadow",s?IR(i):i)},textShadow:(t,e)=>ie("textShadow",Gf(t,e?se(e):null)),columnRule:Ns("columnRule")};var lu={transition:t=>{let e=Uh(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:Yf(t)}),transitionDelay:t=>({transitionDelay:Yf(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Ie(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var Qx={flow:(t,e)=>{let n=e.reverse;if(!E(t))return;let[o,r]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(r||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!E(t))return;let[n,o]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:o}}};var wV=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,PR=t=>{if(!E(t))return t;let e=L().sizes;return e?t.replace(wV,(n,o,r)=>{let s=e[r];return s==null?n:o+String(s)}):t},Hn=t=>PR(jh(t)),Jx={gridTemplateColumns:t=>({gridTemplateColumns:Hn(t)}),gridTemplateRows:t=>({gridTemplateRows:Hn(t)}),gridAutoColumns:t=>({gridAutoColumns:Hn(t)}),gridAutoRows:t=>({gridAutoRows:Hn(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Hn(t)}),templateColumns:t=>({gridTemplateColumns:Hn(t)}),autoColumns:t=>({gridAutoColumns:Hn(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Hn(t)}),templateRows:t=>({gridTemplateRows:Hn(t)}),autoRows:t=>({gridAutoRows:Hn(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var MR="breakpoints",xV=new Set(["window","media"]),BR=/^-?[A-Za-z_][\w-]*$/,NR=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),kV=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&BR.test(n)&&!NR.has(n)?n:null},gg=(t,e)=>{if(typeof t=="function")try{t=t(e,e&&e.state,e&&e.context)}catch{return null}if(typeof t!="string")return null;let n=t.trim();return!n||xV.has(n)?null:n==="container"?kV(e)||MR:BR.test(n)&&!NR.has(n)?n:null},TV=/^@media\s+/i,EV=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,AV=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,vV=/height|block-size|aspect-ratio|orientation|device-|resolution/i,tk=t=>{if(typeof t!="string")return null;let e=t.trim().replace(TV,"").replace(EV,"").trim();if(!e||e.indexOf(",")!==-1)return null;let n=e.split(/\s+(?:and|or)\s+/i);for(let o of n){let r=o.trim();if(r.charCodeAt(0)!==40||r.charCodeAt(r.length-1)!==41)return null;let s=r.slice(1,-1);if(s.indexOf("(")!==-1||s.indexOf(")")!==-1||!AV.test(s)||vV.test(s))return null}return e},ek={breakpointsFrom:(t,e)=>{let n=gg(t,e);if(!n)return;let o={},r=e&&e.container!=null;return!r&&(!e||e.containerType==null)&&(o.containerType="inline-size"),!r&&(!e||e.containerName==null)&&(o.containerName=n),o}};var St={...Gx,...Kx,...qx,...Yx,...Xx,...Zx,...lu,...Qx,...Jx,...ek};var Mt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","fill","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textBox","textBoxEdge","textBoxTrim","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);var CV=/^[a-z][0-9]?$/,$R=/var\(\s*(--[A-Za-z0-9-]+)/g,OV=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let o in t){let r=t[o];if(!(!r||typeof r!="object")){if(r.sequence&&typeof r.sequence=="object")for(let s in r.sequence)e.add(s);if(r.vars&&typeof r.vars=="object")for(let s in r.vars)n.add(s)}}return{knownLetters:e,knownVars:n}},RV=Object.prototype.propertyIsEnumerable,FR=(t,e)=>{if(!t||typeof t!="object")return!1;for(let n in t){let o=t[n];if(!o||typeof o!="object")continue;let r=o.sequence;if(r&&typeof r=="object"&&RV.call(r,e))return!0}return!1},nk=/[(),\s]+/,ok=(t,e)=>{let n=null,o=t.split(nk);for(let r=0;r<o.length;r++){let s=o[r];s&&e(s)&&(n||(n=[])).push(s)}return n},rk=(t,e)=>kn.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),DV=(t,e)=>{if(!e.size)return[];let n=r=>e.has(r),o=ok(t,r=>rk(r,n));return o?[...new Set(o)]:[]},LV=(t,e)=>{if(!e.size)return[];let n=[];$R.lastIndex=0;let o;for(;o=$R.exec(t);){let r=o[1];if(e.has(r))continue;let s=r.lastIndexOf("-");if(s===-1)continue;let i=r.slice(s+1);if(!CV.test(i))continue;let a=r.slice(0,s+1)+i.toUpperCase();a!==r&&e.has(a)&&n.push({varName:r,corrected:a})}return n},mg=new Set,jR=(t,e,n)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J())||!E(e)||!e)return;let o;try{o=L()}catch{return}let{knownLetters:r,knownVars:s}=OV(o);if(!r.size&&!s.size)return;let i=DV(e,r),a=LV(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;mg.has(f)||(mg.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;mg.has(u)||(mg.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${f}, so this reference silently never resolves. Value: "${e}"`))}};var IV=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,PV=(t,e,n)=>{let{context:o}=n;if(!o.designSystem?.media)return;let r=t.slice(1),s=o.designSystem.media[r],i=ks(s||t)?xs(()=>Xt(e,n)):Xt(e,n);if(!s)return{[t]:i};if(/^@(media|supports|container)\b/.test(s))return{[s]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(IV),c=a?a[1]||a[2]:r,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=o.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},UR=(t,e,n)=>({[t]:Xt(e,n)}),fu=(t,e,n)=>{let o=`&${t}`,r=Xt(e,n);if(t.includes(",")&&r){let s={},i={};for(let a in r)typeof r[a]=="object"&&r[a]!==null?i[a]=r[a]:s[a]=r[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[o]:r}},sk=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return I(n)?n.call(e,e):!!n},MV=(t,e,n)=>{let o=t.slice(1),r=sk(o,n);if(r===void 0&&(r=!!n[o]),!!r)return Xt(e,n)},BV=(t,e,n)=>({[t]:e}),NV=(t,e,n)=>{let o=t.slice(1),r=n[o]===!0||n.state?.[o];if(!r)if(typeof n[o]=="function")try{r=n[o](n,n.state,n.context)}catch{}else{let s=sk(o,n);s!==void 0&&(r=s)}if(r)return Xt(e,n)},$V=(t,e,n)=>{let o=t.slice(1),r=n[o]===!0||n.state?.[o];if(!r)if(typeof n[o]=="function")try{r=n[o](n,n.state,n.context)}catch{}else{let s=sk(o,n);s!==void 0&&(r=s)}if(!r)return Xt(e,n)},ik=(t,e)=>Xt(t,e),ak={"@":PV,":":fu,"[":fu,"*":fu,"+":fu,"~":fu,"&":UR,">":UR,$:MV,"-":BV,".":NV,"!":$V};var yg=Ho(),VR=(t,e,n)=>{let o=e?.context?.designSystem;o&&ht(o);try{let r={},s={},i=(a,c)=>{if(n.unpack){r={...r,...c};return}r[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&E(c)){let l=HR(c,e);l&&(n.unpack?Ot(r,l):r.designSystemClass=l)}else if(a==="true"){let l=bt(c,e);Ot(r,ik(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=I(l)?l(e,e.state,e.context):l;f&&i(a,f),!yg&&k(r[a])&&(r[a].label=a)}else if(St[a]){let l=bt(c,e);if(l===null)continue;P(l)&&(l=l.reduce((u,d)=>Ot(u,d),{}));let f=St[a](l,e,e.state,e.context);P(f)&&(f=f.reduce((u,d)=>Ot(u,d),{})),f&&i(a,f),!yg&&k(r[a])&&(r[a].label=a)}else if(Mt.has(a)){let l=bt(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),yg||jR(a,l,e),i(a,{[a]:l}),!yg&&k(r[a])&&(r[a].label=a)}else s[a]=c}return[r,s]}finally{o&&dt()}},HR=(t,e)=>{if(!E(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let o;for(let r of t.split(" ")){if(!r)continue;let s=n[r];if(!k(s))continue;let i=ut(s);o=o?ee(o,i):i}if(o)return Xt(o,e)},zR=(t,e)=>{let n={};for(let o in t){let r=ak[o.slice(0,1)];if(r){let s=r(o,t[o],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?ee(n[i],s[i]):n[i]=s[i])}}return n},Xt=(t,e,n={unpack:!0})=>{let[o,r]=VR(t,e,n),s=zR(r,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Xc(o,s);o._selectors=s}return o},FV=(t,e)=>{let n={};if(t.class)for(let o in t.class)n[o]=t.class[o](e);return n};var WR=t=>{if(k(t))return Xt(t,t)},jV=(t,e)=>{let n=WR(t);return typeof e=="function"?e(n):Me(n)};var GR=/\s*!important\s*$/,UV=()=>{let t;try{t=L()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,o=s=>{n||(n=new Map);let i=n.get(s);return i===void 0&&(i=FR(t,s),n.set(s,i)),i},r=s=>da(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(rk(s,o)||r(s))}},VV=(t,e)=>{let n=String(t).split(nk);for(let o=0;o<n.length;o++)if(n[o]===e)return!0;return!1},HV=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(_e(t),e)}catch{return!1}},KR=new Set,zV=(t,e,n)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let o=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",r=o+"::"+e+"::"+n;KR.has(r)||(KR.add(r),console.warn(`[smbls/css-in-props] style.${e} on <${o}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},WV=(t,e)=>{if(!t||typeof t!="object")return!1;let n=!1;for(let o in t){let r=t[o];if(r!=null){if(typeof r=="object"||typeof r=="function")return!1;for(let s of e)if(VV(r,s))return!1;n=!0}}return n},GV=(t,e,n,o)=>{if(!E(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let r=St[t];if(!r||!Mt.has(t))return null;let s=GR.test(e),i=s?e.replace(GR,""):e,a=ok(i,o.isToken);if(!a||HV(t,i))return null;let c;try{c=r(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let f={};for(let u of c)u&&typeof u=="object"&&Object.assign(f,u);c=f}if(!WV(c,a))return zV(n,t,e),null;let l={};for(let f in c){let u=c[f];u!=null&&(l[f]=s?String(u)+" !important":u)}return l},qR=(t,e,n)=>{let o={},r=!1;for(let s in t){let i=t[s];if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let c=qR(i,e,n);c!==i&&(r=!0),o[s]=c;continue}let a=GV(s,i,e,n);a?(r=!0,Object.assign(o,a)):o[s]=i}return r?o:t},ck=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:qR(t,e,UV());if(!kt||!Je)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var _g=kt,pr=Je,bg=Ta||(()=>!1),YR=Qf||bg,XR=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,vo=_e||(t=>XR(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),uu=nu||(t=>XR(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function QR(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function Pa(t,e,n){let o=QR(e);if(!o.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=JR(o[i],s);a&&a!==e&&t1(t,a,n,new Set([e]))}}function JR(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(r=>r.trim()),o=e[n[0]]||e[`smbls.${n[0]}`];for(let r=1;r<n.length&&o;r++)o=o[n[r]];return o||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function t1(t,e,n,o=new Set){if(o.has(e))return;o.add(e);let r=QR(e);if(r.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<r.length;c++){let l=JR(r[c],a);l&&t1(t,l,n,o)}}let s=fk(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.mark(i);let c=it.chains;c!==null&&c(t,i,t[i],a)||(t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=Be(t[i],a):t[i]=a)}}var lk=class{constructor(){this.rank=0,this.ranks=null}mark(e){KV(e)&&(this.ranks||(this.ranks=new Map),this.ranks.set(e,this.rank))}get(e){return this.ranks?this.ranks.get(e):void 0}get size(){return this.ranks?this.ranks.size:0}},Sg=new Set;for(let t of[pr,_g])for(let e in t)Sg.add(e),Sg.add(uu(e));var ZR=new Map;function KV(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=ZR.get(t);return n===void 0&&(n=!!St[t]||Sg.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&Sg.has(vo(t)),ZR.set(t,n)),n}function fk(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new lk),n.rank++,n}function e1(t){let e=t&&t.__ref&&t.__ref.__mergeLayer;if(!e||!e.ranks)return;let n;for(let o of e.ranks.values())if(n===void 0)n=o;else if(o!==n)return;e.ranks=null}function Be(t,e){let n={...t},o=it.chains;for(let r in e){let s=n[r],i=e[r];o!==null&&o(n,r,s,i)||(s&&i&&typeof s=="object"&&typeof i=="object"&&!Array.isArray(s)&&!Array.isArray(i)&&typeof s!="function"&&typeof i!="function"?n[r]=Be(s,i):n[r]=i)}return n}var $s="http://www.w3.org/2000/svg",Na=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),qV=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function Ma(t){return qV.has(t)||Na.has(t)}function Co(t){return Na.has(t)}function zn(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&Ma(e))return e;if(!n||typeof n!="string")return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),r=n.toLowerCase();return r.includes(".")&&(r=r.split(".")[0]),r.includes("_")&&(r=r.split("_")[0]),Ma(r)&&!o.has(r)?r:"div"}var n1={};function Ba(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if(Co(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===$s)return n.createElementNS($s,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function hr(t){let e=t.tag=zn(t),o=Co(e)&&(e==="svg"||t.parent?.node?.namespaceURI===$s)?"svg:"+e:e,r=t?.context?.document||globalThis.document,s=n1[o];if(s||(s=n1[o]=Ba(e,t)),!s)return null;let i=r&&s.ownerDocument!==r?Ba(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function du(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}var o1=new WeakMap,r1=null,s1=null;function YV(t,e){let n=t===r1?s1:o1.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},o1.set(t,n)),r1=t,s1=n;let o=n.hooks.get(e);if(o===void 0){o=!1;for(let r of t)if(typeof r[e]=="function"){o=!0;break}n.hooks.set(e,o)}return o}function uk(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&YV(n,e))}function Wn(t,e,...n){return uk(e,t)?Wo(t,e,...n):!1}function on(t,e,n){Wn("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var XV=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function a1(t,e,n){return be(()=>nn(t,()=>e.call(t,n,t,t.state,t.context)))}function ZV(t,e){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function c1(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function")return;if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return Vt("bridge",t);if(!("scrollHeight"in n))return;let o=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,ZV(t,e);let r;try{r=a1(t,t.onBridgeMount,n)}catch(s){if(o.failed=!0,on(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(r&&typeof r.then=="function"){r.then(s=>i1(t,o,s),s=>{o.failed=!0,on(t,"onBridgeMount",s)});return}i1(t,o,r)}function i1(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){f1(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let o=t.__ref;e.effect=W(()=>{e.disposed||nn(t,()=>{try{let r=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);r&&typeof r.then=="function"&&r.catch(s=>on(t,"onBridgeUpdate",s))}catch(r){on(t,"onBridgeUpdate",r)}})},{depth:o.path.length,label:()=>o.path.join(".")+"::onBridgeUpdate"}),o.__effects.push(e.effect)}function l1(t){if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return;let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&f1(t,e))}function f1(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,XV(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let o=a1(t,t.onBridgeDestroy,n);o&&typeof o.then=="function"&&o.catch(r=>on(t,"onBridgeDestroy",r))}catch(o){on(t,"onBridgeDestroy",o)}}function $a(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function pu(t){let e=t.__mount;return e?e.pending:0}function Fa(t={},e={}){let n=this,o=n.__ref;if(!o)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&wg(o))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>Gn(o,!1),c=>{Gn(o,!0),Wn("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(Gn(o,!1),a===!1)return n}catch(a){throw Gn(o,!0),a}let r=!t||Object.keys(t).length===0,s=[],i=!1;Rd(()=>{if(t.state&&xt(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!o.__exec.text&&n.node&&Fs(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!o.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!o.__exec.style){let a=Us(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=vo(c),u=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];js(n.node,a,c)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(Ht.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&zt(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)hk(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)dk(s[c])&&(a=!0);a&&pk(n)}if(n.node&&r&&o.__effects&&o.__effects.length)for(let a=0;a<o.__effects.length;a++){let c=o.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&o.__conditionalRunners)for(let a of o.__conditionalRunners)a();return Wn("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}function rn(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&uR(t),Ce())return be(()=>rn(t));e.__disposed=!0;let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__bridge&&l1(t),e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){let r=e.__children.slice();e.__children.length=0;for(let s=0;s<r.length;s++){let i=t[r[s]];i&&i.__ref&&rn(i)}}if(e.__ifParked&&e.__ifParked.size){let r=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<r.length;s++){let i=t[r[s]];i&&i.__ref&&i.parent===t&&rn(i)}}e.__keepNode?e.__keepNode=!1:t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let o=t.state?.$destroy||t.state?.destroy;if(typeof o=="function"&&t.state.__element===t&&o.call(t.state),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),t.parent.__ref.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),delete t.parent[t.key]}if(!n)try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}e.__mount&&e.__mount.tail&&it.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function ja(){rn(this)}function yk(t,e,n){let o=t?.context?.analyze;if(!o||!o.emit||e==="warn"&&!o.shouldCapture("warnings")||e==="error"&&!o.shouldCapture("errors"))return;let r=n.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:r||null,args:n})}var u1=new Set;function d1(t,e,n){let o=String(e);if(u1.has(o))return;u1.add(o);let r=t?.__ref?.path,s=Array.isArray(r)&&r.length?r.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${o}') at <${s}>: "${o}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;yk(t,"error",[a]),console.error(a)}var h1=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),QV=new Set,g1=t=>h1(gk,t)&&!(vi||QV).has(t),p1=new Set;function m1(t,e){p1.has(t)||(p1.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function JV(...t){return yk(this,"warn",t),Pl.apply(this,t)}function t3(...t){return yk(this,"error",t),os.apply(this,t)}var gk={update:Fa,remove:ja,getDB:$l,getQuery:Fl,getRootData:Dl,getPath:vl,nextElement:Ml,previousElement:Bl,verbose:Vi,warn:JV,error:t3,variables:Nl,spotByPath:Al,set(t,e,n){let o=this.__ref;if(o){if(o.__setLocked){o.__setQueued={content:t,options:e};return}o.__setLocked=!0}let r,s=t!=null?it.hydration:null,i=s&&typeof s.handBack=="function"?this.context?.__hydration:null,a=i&&o?.__children&&this.content?.__ref?s.handBack(i,this.content):null;try{if(this.removeContent(),t!=null){let c=this.context?.__create;try{c&&(r=c(t,this,"content",e,n))}finally{a&&s.settleHandBack(i,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(o){o.__setLocked=!1;let c=o.__setQueued;c&&(o.__setQueued=null,this.set(c.content,c.options))}}return r},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,o=this.key,r=this.parse();return this.remove(),e(r,n,o,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},whenConnected(t){return dr(this,t)},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let n of e.__children){let o=this[n];if(!o)continue;if(typeof t=="function"){if(t(o))return o}else if(typeof t=="string"&&o.key===t)return o;let r=o.lookdown?.(t);if(r)return r}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let o of n.__children){let r=this[o];r&&(typeof t=="function"?t(r)&&e.push(r):typeof t=="string"&&r.key===t&&e.push(r),r.lookdownAll?.(t,e))}return e},getRef(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getRoot:Rl,getRootState:Ol,getRootContext:Ll,getContext:Il,parse(t){let e={},n=t?new Set(t):null,o=this.__ref?.__exec;for(let r in this)if(!(r==="parent"||r==="node"||r==="__ref")&&!n?.has(r)){if(o&&o[r]!==void 0){e[r]=o[r];continue}typeof this[r]!="function"&&(e[r]=this[r])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let o of n.__children)this[o]?.parseDeep&&(e[o]=this[o].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let n=t[e];if(n==null)continue;let o=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),r=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,r,"important")}},call(t,...e){let n=this.context,o=g1(t);o&&n?.methods?.[t]&&n.methods[t]!==this[t]&&m1(t,"el.call");let r=o?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof r=="function"){let s=zr;if(!s||!s(r))return r.call(this,...e);!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&d1(this,t,Oe(r));return}!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&d1(this,t,r)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},mk=new WeakMap;function e3(t){if(!t)return gk;let e=mk.get(t);if(e)return e;e=Object.create(gk);let n=t.methods;if(n)for(let o in n)e[o]=n[o];return mk.set(t,e),e}function Ua(t){let e=e3(t.context);Object.setPrototypeOf(t,e)}function Va(t){if(!t)return!1;let e=mk.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let o in n){if(g1(o)&&!h1(e,o)){m1(o,"refreshContextProto");continue}e[o]=n[o]}return!0}var xk=/*@__PURE__*/$({},{STATE_METHODS:()=>y1,applyInitialState:()=>xg,applyStateMethods:()=>Se,callStateMethod:()=>gu,createState:()=>bk,isTracking:()=>wk,useHostState:()=>Sk});var y1=new Set(["update","parse","clean","destroy","create","add","toggle","remove","set","replace","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath","reset","apply","applyReplace","applyFunction","quietUpdate","quietReplace","rootUpdate","parentUpdate","keys","values","__element","__children","parent","root"]),hu=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},Tn=(t,e,n,{onlyIfAbsent:o}={})=>{hu(t,"$"+e,n),!(o&&Object.prototype.hasOwnProperty.call(t,e))&&hu(t,e,n)},gu=(t,e,...n)=>{if(!t)return;let o=t["$"+e];if(typeof o=="function")return o.apply(t,n);let r=t[e];if(typeof r=="function")return r.apply(t,n)},Se=(t,e)=>{if(xt(e)){let r=e.__raw||e;Tn(r,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),Tn(r,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),Tn(r,"setByPath",function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e}),Tn(r,"getByPath",function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),Tn(r,"removeByPath",function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),Tn(r,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),Tn(r,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),Tn(r,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),Tn(r,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&xt(a.parent);)a=a.parent;return gu(a,"update",s,i)}),Tn(r,"parentUpdate",function(s,i={}){if(e.parent)return gu(e.parent,"update",s,i)}),Tn(r,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(r,"root")||Object.defineProperty(r,"root",{get:function(){let s=e,i=xt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,xt(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r]},o={update(r){if(!r||typeof r!="object")return e;for(let s in r)e[s]=r[s];return e},apply(r){if(typeof r!="function")return e;let s=r(e);return s?e.$update(s):e},parse(){return{...e}},toggle(r){return e[r]=!e[r],e},set(r){if(!r||typeof r!="object")return e;n();for(let s in r)e[s]=r[s];return e},replace(r){return e.$set(r)},clean(){return n(),e}};hu(e,"$settled",function(){return Dd().then(()=>e)});for(let r in o)if(hu(e,"$"+r,o[r]),typeof e[r]!="function"){if(Object.prototype.hasOwnProperty.call(e,r)){Pd(r,"");continue}hu(e,r,o[r])}};var bk=function(t,e,n){return t.state=xg(t,e,n),t.state},xg=function(t,e,n){let{__ref:o}=t,r=t.state;if(r==null||r===!1){let s=e?.state||{};return Se(t,s),s}if(typeof r=="string")return o&&(o.__state=r),o.__stateType="string",n3(r,t,e);if(typeof r=="number"||typeof r=="boolean"){o&&(o.__state=r,o.__stateType=typeof r,o.__hasRootState=!0);let s=eo({value:r});return s.__element=t,e?.state&&(s.parent=e.state),Se(t,s),s}if(typeof r=="function"&&(r=r(t,e?.state)||{}),typeof r=="object"&&!xt(r)){o&&(o.__hasRootState=!0),r.isRootState&&o&&(o.__hasRootState=!0);let s=eo({...r});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Se(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return xt(r)?(r.__element=t,r):e?.state||{}};function _k(t,e){if(!e)return t;let n=e.split("/"),o=t;for(let r of n){if(o==null)return{};o=o[r]}return o??{}}function n3(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let r=t.slice(3),s=n.state?.parent;return r&&s?_k(s,r):s??n.state??{}}if(t.startsWith("~/")){let r=n.state;for(;r?.parent;)r=r.parent;let s=t.slice(2);return s?_k(r,s):r??{}}let o=_k(n.state,t);if(o&&typeof o=="object"&&!xt(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let r=n.state?.root||n.state;Object.defineProperty(o,"root",{get:()=>r,enumerable:!1,configurable:!0})}return o}var Sk=(t,e)=>{if(!t)return b1;let n=r3(t,e);return!n||!n.state?b1:i3(n.state)},wk=()=>Ce()!=null,o3=128;function r3(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,o=t,r=null;for(let s=0;s<o3&&o;s++){if(n(o)&&o.state)return o;if(o.state&&!r&&(r=o),!o.parent||o.parent===o)break;o=o.parent}return r}var s3={get(t,e){return t[e]}},_1=new WeakMap,i3=t=>{let e=_1.get(t);return e||(e=new Proxy(t,s3),_1.set(t,e)),e},b1=new Proxy(Object.create(null),{get(){},has(){return!1}});var a3=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],c3=["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","mask-type","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","transform-origin","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"],l3=["requiredExtensions","systemLanguage"],S1={circle:["cx","cy","r","pathLength"],ellipse:["cx","cy","rx","ry","pathLength"],line:["x1","y1","x2","y2","pathLength"],path:["d","pathLength"],polygon:["points","pathLength"],polyline:["points","pathLength"],rect:["x","y","width","height","rx","ry","pathLength"],g:[],defs:[],switch:[],symbol:["viewBox","preserveAspectRatio","refX","refY","x","y","width","height"],use:["href","xlink:href","x","y","width","height"],image:["href","xlink:href","x","y","width","height","preserveAspectRatio","crossorigin"],foreignObject:["x","y","width","height"],text:["x","y","dx","dy","rotate","textLength","lengthAdjust"],tspan:["x","y","dx","dy","rotate","textLength","lengthAdjust"],textPath:["href","xlink:href","path","startOffset","method","spacing","side","textLength","lengthAdjust"],linearGradient:["x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],radialGradient:["cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],stop:["offset"],pattern:["x","y","width","height","patternUnits","patternContentUnits","patternTransform","viewBox","preserveAspectRatio","href","xlink:href"],clipPath:["clipPathUnits"],mask:["x","y","width","height","maskUnits","maskContentUnits"],marker:["viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],filter:["x","y","width","height","filterUnits","primitiveUnits"]},f3=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),u3=()=>{let t={};for(let e in S1)t[e]=[...S1[e],...f3.has(e)?[]:l3,...c3];return t},Oo={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loading","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"],...u3()},T1=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],E1=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,w1=new Map,Ro=t=>{let e=w1.get(t);return e===void 0&&(e=E1(t)||C1(t),w1.set(t,e)),e},A1=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),kk=new Set;for(let t in Oo)t==="default"||t==="aria"||t==="svg"||Oo[t].forEach(e=>{e.startsWith("on")||kk.add(e)});var v1=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,r=>"-"+r.toLowerCase());if(kk.has(n))return n;let o=t.toLowerCase();return kk.has(o)?o:null},C1=t=>A1.has(t)?t.toLowerCase():v1(t),d3=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),p3=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),Vs=t=>typeof t=="string"&&(d3.has(t)||t.startsWith("aria-")),Kn=(t,e)=>{if(e!==!0&&e!==!1)return e;if(Vs(t)){let n=p3.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},x1=new Map,sn=(t,e)=>{let n=Oo.default,o=Object.prototype.hasOwnProperty.call(Oo,t)?Oo[t]:null,r=o?o.length:-1,s=x1.get(t);(!s||s.def!==n||s.defLen!==n.length||s.own!==o||s.ownLen!==r)&&(s={def:n,defLen:n.length,own:o,ownLen:r,answers:new Map},x1.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=h3(t,e),s.answers.set(e,i)),i},h3=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||E1(e)||A1.has(e)||Oo.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(Oo,t)){let n=Oo[t];if(n.includes(e))return!0;let o=v1(e);return o!==null&&n.includes(o)}return!1},Ek=t=>{if(!E(t))return!1;let e=t.toLowerCase();return T1.includes(e)},g3=(t,e,n)=>{let o={};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n&&r in n)continue;if(r==="aria"&&e[r]&&typeof e[r]=="object"){for(let a in e[r])Nt(e[r][a])&&(o["aria-"+a]=e[r][a]);continue}if(r==="data"&&e[r]&&typeof e[r]=="object"){for(let a in e[r])if(Nt(e[r][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=e[r][a]}continue}let s=sn(t,r),i=Ek(r);if(Nt(e[r])&&(s||i)){let a=Ro(r)||r;o[a]=e[r]}}return o},m3=(t,e)=>{let n={};if(t.attr)for(let o in t.attr)n[o]=t.attr[o](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let r=t.aria[o];typeof r=="function"&&(n["aria-"+o]=r(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let o in t.data){let r=t.data[o];if(typeof r=="function"){let s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=r(e,e.state,e.context)}}return n},gr=(t,e)=>{let n=t.call("exec",e,t);if(n)return E(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},Tk=(t,e)=>{let n=(t.preSrc||"")+(gr(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:o}=t;if(!o.files&&!o.assets)return n;if(n.startsWith("/assets/")){let r=n.slice(8),s=o.assets&&(o.assets[n]||o.assets[r]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let r=n.slice(7),s=o.files&&(o.files[n]||o.files[r]);return s&&s.content?s.content.src:n}if(o.assets){let r=o.assets[n];if(r&&r.content)return r.content.src}if(o.files){let r=o.files[n];if(r&&r.content)return r.content.src}return n},mr={src:t=>Tk(t,t.src),href:t=>gr(t,t.href),action:t=>gr(t,t.action),poster:t=>Tk(t,t.poster),data:t=>gr(t,t.data)},Ak=t=>{let e=t.tag||"div",n={};for(let o in mr)if(t[o]!==void 0&&sn(e,o)){let r=mr[o](t);r!==void 0&&(n[o]=r)}return n},k1=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return I(n)?n.call(e,e):!!n},y3=(t,e,n)=>{if(t==="$"){let r=k1(e,n);return r===void 0&&(r=!!n[e]),r}let o=n[e]===!0||n.state[e];if(!o){let r=k1(e,n);r!==void 0&&(o=r)}return t==="."?!!o:!o},_3=new Set(["$",".","!"]),vk=(t,e,n,o=y3)=>{let r={},s=(i,a,c,l)=>{let f=a;r[i]=u=>{if(o(c,l,u))return I(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!_3.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let f in c){if(n&&f in n)continue;if(f==="aria"&&c[f]&&typeof c[f]=="object"){for(let g in c[f])s("aria-"+g,c[f][g],a,l);continue}if(f==="data"&&c[f]&&typeof c[f]=="object"){for(let g in c[f]){let h=g.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());s("data-"+h,c[f][g],a,l)}continue}let u=sn(e,f),d=Ek(f);if(!u&&!d)continue;let p=Ro(f)||f;s(p,c[f],a,l)}}return r};var kg="3.14.809";var O1="__SMBLS_ELEMENT_ID_ENGINE__",R1=(t,e,n)=>{let o=e||kg,r=n||(typeof globalThis<"u"?globalThis:null);if(!r)return t;let s=r[O1];return s&&s.engine&&s.version===o?s.engine:(s||(r[O1]={version:o,engine:t}),t)};var b3=new Set(["rows","cols","wrap","fill","stroke","offset"]),Tg=(t,e)=>b3.has(e)&&sn(t,e),yr=(t,e)=>!!(St[e]||Mt&&Mt.has(e))&&!Tg(t,e);var fD=R1({uniqId:1,scopedStyleId:0},kg),za=[],_r=new Set,Gk=!1,uD=0,Ka=null,_u=null;function Xa(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function dD(){return typeof document<"u"&&document.visibilityState==="hidden"}var S3=250,w3=1e3;function x3(){return _u&&(_u!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||dD())?!0:Xa()-uD>=w3}function k3(){if(Gk=!0,uD=Xa(),_u=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(qa,0);Ka=t?()=>t(e):null;return}if(dD()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(qa,S3);Ka=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;_u=requestAnimationFrame;let e=requestAnimationFrame(qa);Ka=t?()=>t(e):null}}function Eu(){if(Gk){if(!x3())return;let t=Ka;if(Ka=null,t)try{t()}catch{}}k3()}var pD=300,hD=15e4,Fk=0;function Ws(){Fk++;let t=!1;return()=>{t||(t=!0,!(--Fk>0)&&(za.length||_r.size)&&Eu())}}function qa(){if(Gk=!1,Ka=null,_u=null,Fk>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&_r.size&&C6(),!za.length))return;let t=za.splice(0,za.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let o=n.__ref||(n.__ref={});o.__mountAttempts=(o.__mountAttempts||0)+1,o.__mountFirstAttemptAt==null&&(o.__mountFirstAttemptAt=Xa());let r=Xa()-o.__mountFirstAttemptAt;o.__mountAttempts<=pD&&r<hD?(za.push(n),Eu()):console.warn("[DOMQL] onMounted dropped after",o.__mountAttempts,"attempts /",r,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&c1(n),typeof n.onMounted=="function"&&Kt("Mounted",n,n.__ref?.__mountOptions||{})}}}function jk(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&Tu(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,za.push(t),Eu())}function Ag(t,e){typeof t.onContentUpdate=="function"&&(Wn("contentUpdate",t,e),nn(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(on(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function T3(t){return t.toLowerCase()}function gD(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function vg(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function mD(t,e,n,o){return Lg(o,vg(t)||(e&&typeof e=="object"?vg(e.key):void 0)||String(n))}function Lg(t,e){if(!t||typeof e!="string")return e;let n=e;for(;E3(t,n);)n="$"+n;return n!==e&&A3(t,e,n),n}function E3(t,e){if(Ht.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}var D1=new Set;function A3(t,e,n){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let o=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",r=o+"::"+e;D1.has(r)||(D1.add(r),console.warn(`[smbls] a child keyed "${e}" at ${o} names a property of its parent; it lives at el["${n}"] (data-key="${n}") so the parent keeps its own "${e}". Prefix the data keys to keep plain el.<key> access.`))}function zt(t,e,n,o={},r){if(Ce())return be(()=>zt(t,e,n,o,r));if(t==null||t===!1)return null;let s=K3(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=vg(n);let i=vg(t.key),a=Object.create(null);a.key=n||(i&&e?Lg(e,i):i)||`_${fD.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||o.context||{},a.context.__create||(a.context.__create=zt);let c=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};s&&(c.__runtimeSource=s);let l=r;r&&(r.holdTail||r.deferAttach)&&(r.holdTail&&it.mount!==null&&it.mount.hold(a),r.deferAttach&&($a(c).attachLater=!0),l=void 0);let f=t;if(t=_D(a,t,n,i,e,o),a.if!=null){let g;if(typeof a.if=="function")try{g=a.if(a,a.state,a.context)}catch(h){if(g=!1,c.__ifError=h,typeof console<"u"&&console.warn){let m=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${m} \u2014 treating as false:`,h?.message||h)}}else g=a.if;c.__if=!!g}if(c.__if)typeof a.if=="function"&&(c.__ifInitialized=!0);else{if(e){e[a.key]=a;let h=e.__ref;h&&(h.__ifParked||(h.__ifParked=new Set)).add(a.key)}let g=D3(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:f,key:n,ownKey:i,names:g,options:o}),typeof a.if=="function"&&AD(a,c,a.if),a}a.tag||(a.tag=zn(a)),Kt("Init",a,o);let u=it.hydration,d=a.node=u!==null&&u.adopt(a)||hr(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(Kt("AttachNode",a,o),d.setAttribute&&a.key&&d.getAttribute("data-key")!==String(a.key)&&d.setAttribute("data-key",a.key),e){let g=e[a.key];e[a.key]=a;let h=e.__ref?.__children;h&&(g===void 0||!h.includes(a.key))&&h.push(a.key)}d.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&d.setAttribute("data-smbls-app",a.context.key),a.id&&d.setAttribute&&(d.id=a.id),WD(a,o),TD(a),ED(a);try{KD(a,o)}catch(g){Ig(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(o.mountWhole===!0&&!(r&&r.holdTail)&&v3(a,e)?p.held=!0:Za(a,e,l)),p.tail=()=>it.mount.finish(a,o),a):(Ya(a,!0),(p===null||!p.attachLater)&&Za(a,e,l),Kk(a,o),a)}function wr(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(Za(t,t.parent),!0)}function v3(t,e){if(!e||e.tag==="fragment")return!1;let n=t.node;if(!n||n.nodeType===11)return!1;let o=e.node||(e.nodeType?e:null);return!!o&&n.parentNode!==o}function yD(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held)return;n.held=!1;let o=t.node,r=t.parent;if(!o||!r)return;let s=r.__ref;if(!s){Za(t,r);return}let i=r.node;if(!i)return;let a=s.__children,c=a?a.lastIndexOf(t.key):-1,l;for(let f=c-1;f>=0;f--){let u=r[a[f]],d=u&&(Do(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=du(i,s.__textNode)),Za(t,r,l?{position:"before",node:l}:void 0)}function Ig(t,e){if(typeof console<"u"&&console.error){let n=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] createChildren failed at ${n}:`,e?.message||e,e?.stack?`
56
+ Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function gR(){try{let t=L(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function vx(t){og||be.variable>0||be.atomic>0||mR(Math.max(t,gR()))}function $x(t){let e=t&&(t.CSS_VARS||t.cssVars);return mR(e?Object.keys(e).length:gR())}function mR(t){let e=ig();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Vx())return{ok:!0,reason:"no-sheet",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return x4(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var k4={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function T4(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var Oa=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,oR=new Map,Se=t=>{if(Oa(t))return t;let e=oR.get(t);return e===void 0&&(e=T4(t),oR.set(t,e)),e},rR=new Map,iu=t=>{if(Oa(t))return t;let e=rR.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,o)=>o.toUpperCase()),rR.set(t,e)),e};function rg(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function E4(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():rg(e)}var A4={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"};function Ns(t,e){let n=A4[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function Cx(t){let e="";for(let n in t){let o=t[n];if(typeof o!="object"||o===null)continue;let r="";for(let s in o)o[s]!=null&&(r+=Ns(Se(s),o[s]));e+=`${n}{${r}}`}return e}function Ox(t){return t.charCodeAt(0)===64&&!Da(t)}function sR(t){let e="";for(let n in t){let o=t[n];if(!Ox(n)||typeof o!="object"||o===null)continue;let r="";for(let s in o){let i=o[s];i==null||typeof i=="object"||(r+=Ns(Se(s),i))}e+=`${n}{${r}}`}return e}var v4="@media (hover: hover)",C4=/(?:^|[^\\]):hover(?![\w-])/;function Fx(){try{let t=L();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Co(t,e,n){return n===!1||!C4.test(e)||n===void 0&&!Fx()?t:`${v4}{${t}}`}var jx=new Map;function O4(t,e,n,o){let r=Ra.get(t);if(!r){let c=k4[e]||rg(e),l=E4(n);r=o?`_${o}_${c}-${l}`:`_${c}-${l}`,Ra.set(t,r)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${r}{${Ns(Se(e),n)}}`,a={className:r,rule:i,tier:i===null?null:Ux(i,!0,"atomic")};return jx.set(t,a),a}function iR(t,e,n){let o=(n?n+"":"")+t+":"+e,r=jx.get(o)||O4(o,t,e,n);return r.rule!==null&&rn(r.rule,void 0,"atomic",!0,r.tier),r.className}var aR=new WeakMap,cR=new WeakMap;function rn(t,e,n,o,r){let s=r||Ux(t,o,n);ru&&!e&&ru.push([t,n||"global",s]);let i=L4(e,s);if(!i)return be.dropped++,"dropped";let a=i.sheet,c=i.rules;if(c||(c=aR.get(a),c||(c=new Set,aR.set(a,c)),i.rules=c),c.has(t))return be.duplicate++,be[n||"global"]++,"duplicate";let l=cR.get(a);if(l&&l.has(t))return be.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return l||(l=new Set,cR.set(a,l)),l.add(t),be.invalid++,"invalid"}return c.add(t),be[n||"global"]++,"inserted"}var Ne="0:0",Rx="1:0",yR="0:99",lR=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function Ux(t,e,n){if(typeof t!="string"||!t)return Ne;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Ne;let i=1/0,a=-1/0;lR.lastIndex=0;let c;for(;c=lR.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:Rx}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?yR:Ne;if(!/^\.[\w-]+\{/.test(t))return Rx;if(!e)return Ne;let o=t.indexOf("{"),r=t.indexOf(":",o);if(r===-1)return Ne;let s=Aa(t.slice(o+1,r).trim());return s?"0:"+s:Ne}var Ca=null,R4=()=>{if(Ca)return Ca;let t=0;for(let e in on)t=Math.max(t,Aa(e));Ca=[Ne];for(let e=1;e<=t;e++)Ca.push("0:"+e);return Ca.push(yR,Rx),Ca},fR=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},uR=(t,e)=>{let[n,o]=fR(t),[r,s]=fR(e);return n!==r?n<r:o<s},D4=t=>t.getAttribute("data-tier")||Ne,Dx=new WeakMap,ng=!1,ou=null,Lx=0;function L4(t,e){if(ng&&!t){let n=ou&&Dx.get(ou),o=n&&n.get(e);if(o&&o.epoch===Lx)return o;let r=sg(ou,e);return r&&(r.epoch=Lx),r}return sg(t||Hn(),e)}function Vx(t,e){let n=sg(t||Hn(),e);return n?n.sheet:null}function sg(t,e){if(!t||!t.head)return null;let n=e||Ne,o=Dx.get(t);o||(o=new Map,Dx.set(t,o));let r=o.get(n);if(r&&r.node.parentNode===t.head&&r.node.sheet===r.sheet)return r;if(n!==Ne){let c=R4();for(let l=0;l<c.length&&uR(c[l],n);l++)sg(t,c[l])}let s=n===Ne?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!s){s=t.createElement("style"),s.setAttribute("data-smbls",""),n!==Ne&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(uR(n,D4(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;if(l)t.head.insertBefore(s,l);else if(f)t.head.insertBefore(s,f.nextSibling);else{let u=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');u?t.head.insertBefore(s,u):t.head.appendChild(s)}}let i=s.sheet;if(!i)return o.delete(n),null;let a={sheet:i,node:s,rules:null,epoch:0};return o.set(n,a),n===Ne&&(hR=i),a}function I4(t){let e=t||Hn();if(!e||!e.head)return[];let n=[],o=e.head.querySelectorAll("style[data-smbls]");for(let r=0;r<o.length;r++)o[r].sheet&&n.push(o[r].sheet);return n}var P4=8;function $e(t,e,n,o){if(!t||typeof t!="object")return"";if(ng)return dR(t,n,o);ng=!0,ou=Hn(),Lx++;try{return dR(t,n,o)}finally{ng=!1,ou=null}}function dR(t,e,n){let o=!!(n&&n.state),r=null,s=0,i=[],a=[],c=Object.keys(t);for(let f=0;f<c.length;f++){let u=c[f],d=t[u];d==null||d===!1||d===""||(typeof d=="object"?a.push([u,d]):Ax&&!Oa(u)?(r||(r=[]),r.push(u,String(d)),s++):i.push(iR(u,String(d),e)))}if(r&&s>=P4){let f=r.join("\0"),u=Ax(f),d=u.indexOf("\0"),p=u.substring(0,d),g=u.substring(d+1);if(g){let h=g.split(`
57
+ `);for(let m=0;m<h.length;m++)h[m]&&rn(h[m],void 0,"atomic",!0)}i.push(p)}else if(r)for(let f=0;f<r.length;f+=2)i.push(iR(r[f],r[f+1],e));let l=[];for(let f=0;f<a.length;f++)l.push($4(a[f][0],a[f][1],e,o));return i.concat(l).join(" ").trim()}var pR=new Map,M4=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function Da(t){return/^@(media|supports|container)\b/.test(t)}function Oo(t){let e=[],n=0,o=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s===40?n++:s===41?n--:s===44&&n===0&&(e.push(t.slice(o,r).trim()),o=r+1)}return e.push(t.slice(o).trim()),e}function B4(t){return typeof t!="string"||!t||Da(t)?!1:Oo(t).every(e=>M4.test(e))}var _R=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},Ix=32,Px=1024,Mx=!1;function tg(t,e,n){if(Mx)return;Mx=!0;let o=[e,...n],r=o.length>12?[...o.slice(0,6),`\u2026${o.length-9} more\u2026`,...o.slice(-3)]:o;globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[@symbo.ls/css] ${t} at ${r.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function N4(t){try{return JSON.stringify(t)}catch{let n=[],o=0;return JSON.stringify(t,function(r,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!_R(s)||n.length>Ix||++o>Px)))return n.push(s),s})}}function $4(t,e,n,o){let r=N4(e),s=t.indexOf(":hover")!==-1||r.indexOf(":hover")!==-1,i=s&&Fx(),a=(n?n+"":"")+t+r+(s&&!i?"rawhover":"")+(o?"state":""),c=Ra.get(a);if(c){let _=pR.get(c);if(_)for(let b=0;b<_.length;b+=2)rn(_[b],void 0,"atomic",void 0,_[b+1]);return c}c=n?`_${n}_c${rg(a)}`:`_c${rg(a)}`;let l=o?`.${c}.${c}`:`.${c}`,f=B4(t)?`${l}.${c}`:l,u="",d=[],p=_=>typeof _=="string"&&(_.indexOf("{")!==-1||_.indexOf("}")!==-1),g=new Set,h=0,m=(_,b)=>{g.add(b);let S="",w=Object.keys(b);for(let A=0;A<w.length;A++){let C=w[A],O=b[C];if(O!=null)if(typeof O=="object"){let N=[..._,C];g.has(O)?tg("a style value that loops back to one of its own ancestors",t,N):_R(O)?N.length>Ix?tg(`a style block nested more than ${Ix} levels deep`,t,N):++h>Px?tg(`a style object with more than ${Px} nested blocks`,t,N):m(N,O):tg(`a ${Object.prototype.toString.call(O).slice(8,-1)} (not a style block)`,t,N)}else{if(p(O))continue;S+=Ns(Se(C),O)}}g.delete(b),S&&(_.length===0?u+=S:d.push({chain:_,body:S}))};m([],e);let y=_=>_.startsWith(":")||_.startsWith("["),x=(_,b=!0)=>{let S=b&&_.length===1?f:l;if(!_.length)return S;let w=Oo(_[0]).map(A=>A.includes("&")?A.replace(/&/g,S):y(A)?`${S}${A}`:`${S} ${A}`);for(let A=1;A<_.length;A++){let C=Oo(_[A]),O=[];for(let N of w)for(let B of C)B.includes("&")?O.push(B.replace(/&/g,N)):y(B)?O.push(N+B):O.push(N+" "+B);w=O}return w.join(", ")},T=[],v=(_,b)=>{let S=_.filter(Da),w=x(_.filter(O=>!Da(O)),S.length===0),A=`${w}{${b}}`;for(let O=S.length-1;O>=0;O--)A=`${S[O]}{${A}}`;A=Co(A,w,i);let C=Ux(A,void 0,"atomic");T.push(A,C),rn(A,void 0,"atomic",void 0,C)};u&&v([t],u);for(let _ of d)v([t,..._.chain],_.body);return pR.set(c,T),Ra.set(a,c),c}var ru=null;function au(t){let e=ru,n=[];ru=n;try{t()}finally{ru=e}return n}function cu(t){if(!Array.isArray(t))return;Vx();let e=0;for(let n of t){if(!Array.isArray(n)||typeof n[0]!="string")continue;let o=n[1]||"global";o==="variable"&&e++,rn(n[0],void 0,o,void 0,n[2]||void 0)}e>0&&vx(e)}function At(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Vx(),typeof t=="string"){let s=t.indexOf("--")!==-1;rn(t,void 0,s?"variable":"global"),s&&vx(1);return}let e=Fx(),n=0,o=Object.keys(t),r=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};o.sort((s,i)=>{let a=s.startsWith("@media"),c=i.startsWith("@media");return!a&&!c?0:a?c?r(i)-r(s):1:-1});for(let s of o){let i=t[s];if(s.startsWith("@keyframes")){let a=Cx(i);a&&rn(`${s}{${a}}`,void 0,"keyframes");continue}if(Da(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=Cx(c);l&&rn(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",f=0,u=a.charCodeAt(0)===64;for(let d in c){let p=c[d];p!=null&&(u&&typeof p=="object"||(Oa(d)&&f++,l+=Ns(Se(d),p)))}u&&(l+=sR(c)),n+=f,rn(Co(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else if(c!=null){let l=Oa(a);l&&n++,rn(`${s}{${Ns(Se(a),c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0,f=s.charCodeAt(0)===64;for(let u in i){let d=i[u];if(d!=null)if(typeof d=="object"){if(f&&Ox(u))continue;c=!0}else Oa(u)&&l++,a+=Ns(Se(u),d)}if(f&&(a+=sR(i)),n+=l,a&&rn(Co(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let u=[],d=[];for(let p in i)if(typeof i[p]=="object"&&i[p]!==null){if(f&&Ox(p))continue;Da(p)?u.push(p):d.push(p)}u.sort((p,g)=>{let h=m=>{let y=m.match(/max-width:\s*(\d+)/);return y?parseInt(y[1]):0};return h(g)-h(p)});for(let p of d)At({[`${s} ${p}`]:i[p]});for(let p of u)At({[p]:{[s]:i[p]}})}}}n>0&&vx(n)}function La(t,e){return rn(`@keyframes ${t}{${Cx(e)}}`,void 0,"keyframes"),t}function bR(){Ra.clear(),jx.clear(),hR=null,Mx=!1}function Hx(){return Ra.size}var SR="3.14.856";var Jg=/*@__PURE__*/$({},{DELEGATED_EVENTS:()=>Ia,LIFECYCLE_EVENTS:()=>zn,MIXINS:()=>cg,MOUNT_YIELD_BUDGET_MS:()=>Ys,NON_BUBBLING_EVENTS:()=>lg,REGISTRY:()=>zt,SVG_TAGS:()=>ja,addDelegatedEvent:()=>lu,addMethods:()=>za,adoptHydrationNode:()=>_0,applyExtends:()=>Na,attachElement:()=>Tr,cacheNode:()=>yr,create:()=>Wt,createHTMLNode:()=>Fa,detectTag:()=>Gn,dispose:()=>ln,dropMountWork:()=>Nu,elementPath:()=>Wg,flushMounts:()=>Za,globalEventKeyInfo:()=>hg,holdMountFlush:()=>Ks,inertOutsidePlugin:()=>Qg,isSvgTag:()=>Do,isValidTag:()=>$a,mountIdle:()=>vr,mountPending:()=>Xg,mountYieldBudget:()=>Jn,refreshContextProto:()=>Wa,registerEvent:()=>Ma,registerGlobalEvent:()=>gg,releaseMount:()=>Ue,remove:()=>Ha,removeDelegatedEvent:()=>fu,settleBuiltAttributes:()=>Er,update:()=>Va,whenConnected:()=>gr,whenMountIdle:()=>Te,whenMounted:()=>Bo,yieldToMain:()=>to});var it={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};var zt=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),cg={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},zn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","mounted","contentUpdate","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove","bridgeMount","bridgeUpdate","bridgeDestroy"]),lg=new Set(["load","error","abort","scroll","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),fg=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ia=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var $s=new Set;function Pa(t){let e=t&&t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function gr(t,e){let n=t&&t.node,o=t&&t.__ref;if(!(!n||!o||typeof e!="function")){if(Pa(t)){e(t);return}(o.__onConnected||(o.__onConnected=[])).push(e),$s.add(t)}}function ug(){if($s.size)for(let t of $s){let e=t.__ref,n=t.node;if(!e||!n){$s.delete(t);continue}if(!Pa(t))continue;$s.delete(t);let o=e.__onConnected;if(e.__onConnected=null,!!o)for(let r=0;r<o.length;r++)try{o[r](t)}catch(s){typeof console<"u"&&console.error&&console.error("[smbls] whenConnected callback failed:",s?.message||s)}}}function wR(t){$s.size&&$s.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var Gx=new WeakMap,F4={passive:!0},j4={passive:!0,capture:!0},ER=(t,e)=>fg.has(t)?e?j4:F4:e||!1;function AR(t){let e=Gx.get(t);return e||(e={handlers:new Map,installed:new Set},Gx.set(t,e)),e}function U4(t,e){let n=AR(e);if(n.installed.has(t))return;n.installed.add(t);let o=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave",r=t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave";e.addEventListener(t,s=>{if(r){let a=s.target,c=n.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains=="function"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},ER(t,o))}function lu(t,e,n,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let r=AR(o);U4(t,o),r.handlers.has(t)||r.handlers.set(t,new WeakMap),r.handlers.get(t).set(e,n)}function fu(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Gx.get(n);if(!o)return;let r=o.handlers.get(t);r&&r.delete(e)}function sn(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function dg(t){return t.charAt(2).toLowerCase()+t.slice(3)}var V4=/^[A-Za-z_$][\w$]*$/;function uu(t,e){return typeof e!="string"||!V4.test(e)?e:function(o){return t.call(e,o)}}function H4(t){return Ia.has(t)&&!zn.has(t)}function pg(t,e){let{context:n}=t,o=n?.designSystem;return r=>{o&&ht(o);try{let s=e.call(t,r,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{o&&dt()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}o&&dt()}}var vR=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function z4(t,e){return vR(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:fg.has(t),once:e.once===!0}:ER(t,!1)}function W4(t,e,n){return o=>{let r=o.target;if(r&&r.nodeType!==1&&(r=r.parentElement),!r||typeof r.closest!="function")return;let s;try{s=r.closest(e)}catch{return}s&&t.contains(s)&&n(o)}}function Ma(t,e,n,o){let{node:r,context:s}=e;if(!r)return;let i=pg(e,n),a=o&&typeof o.selector=="string"&&o.selector;a&&(i=W4(r,a,i));let l=!lg.has(t)&&H4(t)&&!vR(o),f=l?null:z4(t,o);if(l){let u=s?.rootNode||r.ownerDocument?.documentElement;lu(t,r,i,u)}else r.addEventListener(t,i,f);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let u=s?.rootNode||r.ownerDocument?.documentElement;fu(t,r,u)}else r.removeEventListener(t,i,f)})}var zx=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function hg(t){if(typeof t!="string")return null;for(let e=0;e<zx.length;e++){let n=zx[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let o=t.charCodeAt(n.length);if(!(o<65||o>90))return{target:zx[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function G4(t,e,n){let o=e,r=!1,s,i=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(o=e.handler,r=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),o=uu(t,o),typeof o!="function"?null:(s===void 0&&(s=fg.has(n)),{handler:o,capture:r,passive:s,once:i,query:a})}function K4(t,e,n){let o=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!o||typeof o.addEventListener!="function")return null;if(e==="document")return o;let r=o.defaultView||(typeof window<"u"?window:null);if(!r)return null;if(e==="window")return typeof r.addEventListener=="function"?r:null;if(e==="visualViewport"){let s=r.visualViewport;return s&&typeof s.addEventListener=="function"?s:null}if(e==="mediaQuery"){let s=n&&n.query;if(typeof s!="string"||!s.trim()||typeof r.matchMedia!="function")return null;try{return r.matchMedia(s)||null}catch{return null}}return null}var Wx=/^@media\s+/i,q4=/^[@[.#&:>*~+]/,xR=new Set;function kR(t,e){!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J())||xR.has(t)||(xR.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function Y4(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let o=t.context?.designSystem?.media,r=i=>{let a=o&&typeof o=="object"?o[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!Wx.test(n)){if(s=r(n.slice(1)),!s)return kR(n,"is not a key of designSystem.media"),null}else s=r(n)||n;return Wx.test(s)?s.replace(Wx,"").trim()||null:q4.test(s)?(kR(n,`names "${s}", which is not a media query`),null):s}function X4(t,e,n,o){try{return t.addEventListener(e,n,o),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function CR(t,e,n,o){try{t.removeEventListener(e,n,o)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function gg(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let r=0;r<n.length;r++)TR(t,e,n[r]);return}TR(t,e,n)}}function TR(t,e,n){let o=e.__ref,r=G4(e,n,t.eventName);if(!r||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(r.query=Y4(e,r.query),!r.query))return;let s=K4(e,t.target,r);if(!s)return;let i=t.target+":"+(r.query?r.query+":":"")+t.eventName+":"+(r.capture?1:0);if(o.__globalEvents&&o.__globalEvents.has(i))return;let a=pg(e,r.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(Pa(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:r.capture,passive:r.passive,once:r.once};if(!X4(s,t.eventName,f,u))return;o.__globalEvents||(o.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:f,options:u};o.__globalEvents.set(i,d),o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{CR(s,t.eventName,f,u),o.__globalEvents&&o.__globalEvents.delete(i)}),c&&Z4(e,i,d,()=>l)}function Z4(t,e,n,o){let r=n.target.document;!r||r.readyState!=="complete"||gr(t,()=>queueMicrotask(()=>{let s=t.__ref;if(o()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&o()&&CR(i,"load",n.listener,n.options))}))}var Kx=Symbol("handlerChain.none"),Q4=new Set(["inView","leaveView"]),J4=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),Ba=new WeakMap,OR=new WeakMap,Zx=!1,qx=t=>t!==null&&typeof t=="object"&&t.always===!0;function tV(t){let e=dg(t);return Q4.has(e)?!0:zn.has(e)&&!J4.has(e)}var RR=new Set;function eV(t){RR.has(t)||!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J())||(RR.add(t),console.warn(`[smbls] \`${t}: { always: true, \u2026 }\` \u2014 \`always\` composes the lifecycle hooks (onInit, onRender, onCreate, onMounted, onUpdate, onRemove, \u2026; not the bridge hooks) and onInView / onLeaveView only. \`${t}\` keeps the default merge: an extender's own \`${t}\` replaces this one. Run the shared step from a lifecycle hook, or call it from the extender's handler.`))}function Yx(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function du(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},o=function(...s){return rV(n,this,s)};return Ba.set(o,n),Zx=!0,o}function Xx(t){let e=OR.get(t);return e||(e=du([Yx(t)],null),OR.set(t,e)),e}function nV(t,e){let n=Ba.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=du(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let i=n.prims||(n.prims=new Map),a=i.get(e);return a||i.set(e,a=du(n.always,Yx(e))),a}let o=n.next||(n.next=new WeakMap),r=o.get(e);if(r)return r;let s=qx(e)?Ba.get(Xx(e)):typeof e=="function"?Ba.get(e):void 0;return r=s?du(n.always.concat(s.always),s.own):du(n.always,Yx(e)),o.set(e,r),r}function oV(t,e,n){let o=qx(e),r=!o&&Zx&&typeof e=="function"&&Ba.has(e);if(!o&&!r&&!qx(n))return Kx;if(!tV(t))return eV(t),Kx;let s=o?Xx(e):r?e:null;return s?nV(s,n):Xx(n)}function DR(t,e,n,o){if(!sn(e))return!1;let r=oV(e,n,o);return r===Kx?!1:(t[e]=r,!0)}function Qx(t){if(typeof t=="function"){let e=Zx?Ba.get(t):void 0;return e?e.list:[{handler:t,options:null}]}return typeof t=="string"?[{handler:t,options:null}]:t&&typeof t=="object"?[{handler:t.handler,options:t}]:[]}function rV(t,e,n){let o=t.list,r,s=!1,i=null,a=!1,c;for(let l=0;l<o.length;l++){let f=o[l].handler;if(typeof f!="function")continue;let u;try{u=f.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,c=d);continue}u===!1?s=!0:u&&typeof u.then=="function"&&(i||(i=[])).push(u),r=u}if(a){if(i)for(let l of i)l.then(null,f=>console.error("[smbls] lifecycle handler error:",f));throw c}return s?!1:i?i.length===1?i[0]:sV(i):r}function sV(t){return Promise.allSettled(t).then(e=>{let n=null;for(let o of e)o.status==="rejected"&&(n?console.error("[smbls] lifecycle handler error:",o.reason):n=o);if(n)throw n.reason})}var iV=1e-6,LR=new WeakMap;function aV(t,e,n){let o=t.defaultView,r=o&&o.IntersectionObserver;if(typeof r!="function")return null;let s=LR.get(t);s||LR.set(t,s=new Map);let i=e+"|"+n,a=s.get(i);if(a)return a;a={id:i,byKey:s,threshold:e,targets:new Map,observer:null};try{let c=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new r(l=>cV(a,l),c)}catch{return null}return s.set(i,a),a}function cV(t,e){for(let n=0;n<e.length;n++){let o=e[n],r=t.targets.get(o.target);if(!r)continue;let s=!!o.isIntersecting&&o.intersectionRatio>=t.threshold-iV;if(s===r.inView)continue;r.inView=s;let i=s?"in":"leave",a=r.subs.slice();for(let c=0;c<a.length;c++){let l=a[c];if(!(l.kind!==i||l.dead)){l.once&&PR(t,r,l);try{l.run(o)}catch(f){lV(f)}}}}}function lV(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function PR(t,e,n){if(n.dead)return;n.dead=!0;let o=e.subs.indexOf(n);o!==-1&&e.subs.splice(o,1),!e.subs.length&&(t.targets.delete(e.node),t.observer.unobserve(e.node),!t.targets.size&&(t.observer.disconnect(),t.byKey.delete(t.id)))}function IR(t,e,n,o,r){let s=uu(t,r.handler),i=r.options;if(typeof s!="function")return;let a=i&&i.threshold,c=typeof a=="number"&&a>=0&&a<=1?a:0,l=i&&typeof i.rootMargin=="string"?i.rootMargin.trim():"",f=aV(n,c,l);if(!f)return;let u=f.targets.get(e);u||(u={node:e,inView:!1,subs:[]},f.targets.set(e,u),f.observer.observe(e));let d={kind:o,once:!!(i&&i.once===!0),run:pg(t,s),dead:!1};u.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>PR(f,u,d))}function MR(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return Ht("viewEvents",t);let e=t.node;if(!e||e.nodeType!==1)return;let n=e.ownerDocument,o=n&&n.defaultView;if(!o||typeof o.IntersectionObserver!="function")return;let r=Qx(t.onInView);for(let i=0;i<r.length;i++)IR(t,e,n,"in",r[i]);let s=Qx(t.onLeaveView);for(let i=0;i<s.length;i++)IR(t,e,n,"leave",s[i])}function an(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();ht(n);try{return e()}finally{dt()}}var we=Fr||(t=>{let e=Re();if(!e)return t();Mc(null);try{return t()}finally{Mc(e)}});var FR=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],fV=["none","forwards","backwards","both"],uV=["normal","reverse","alternate","alternate-reverse"],dV=["running","paused"],pV=/^(?:translate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|scale(?:3d|x|y|z)?\((?:\s*1(?:\.0+)?\s*,?)+\)|rotate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|skew(?:x|y)?\((?:\s*0[a-z%]*\s*,?)+\)|matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\))$/,hV=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(o=>pV.test(o.replace(/\s+/g,"")))},BR=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),gV={transform:hV,translate:BR,rotate:t=>BR(t)||/^\s*(?:[xyz]\s+)?0(?:deg|rad|turn|grad)?\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\s*1(?:\.0+)?)+\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},mV=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},yV=t=>{if(!k(t))return null;let e=null,n=-1;for(let o in t){let r=mV(o);r==null||!k(t[o])||r>=n&&(n=r,e=t[o])}return e},_V=t=>{let e=yV(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let o of n){let r=gV[o];if(!r)return!1;let s=e[o];if(s==null||typeof s=="object"||typeof s=="function"||!r(s))return!1}return!0},bV=(t,e)=>{if(k(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},o=n&&n[t];return k(o)?o:null},SV=["reverse","alternate","alternate-reverse"],jR=(t,e,n)=>{let o=n||e.animationDirection;return o&&SV.includes(String(o))?"both":_V(bV(t,e))?"backwards":"both"},wV=0,NR=new Map,Jx=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(k(t)){let r=JSON.stringify(t),s=NR.get(r);if(s)return s;let i=`smbls-anim-${wV++}`,a=La(i,t);return NR.set(r,a),a}let o=n&&n[t];return k(o)?La(t,o):t},UR=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,xV=/^(?:\d+(?:\.\d*)?|\.\d+)$/,VR=/^(?:cubic-bezier|steps|linear)\(/,kV=/^(?:calc|min|max|clamp)\(/,TV=t=>t.includes("(")||t.startsWith("--"),EV=(t,e)=>{if(!En.test(t))return!1;let n=e&&e.sequence;if(!k(n))return!1;let o=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[o]||o.length===2&&n[o[0]])},AV=t=>{if(!E(t))return!1;let e=t.trim();return FR.includes(e)||VR.test(e)||e.startsWith("var(")},vV=(t,e)=>!!e&&AV(e[t]||e[go(t)]),CV=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],OV=t=>lt(String(t)),RV=(t,e,n)=>{let o={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},r=null,s=[],i=[],a=(u,d)=>o[u]!=null?!1:(o[u]=d,!0),c=(u,d)=>{a(u,d)||s.push(d)};for(let u of OV(t))e&&e[u]?r=u:UR.test(u)||EV(u,n)?a("duration",u)||a("delay",u):FR.includes(u)||vV(u,n)?c("timingFunction",u):VR.test(u)?a("timingFunction",u):u==="infinite"?c("iterationCount",u):xV.test(u)?a("iterationCount",Number(u)):uV.includes(u)?c("direction",u):fV.includes(u)?c("fillMode",u):dV.includes(u)?c("playState",u):TV(u)?i.push(u):s.push(u);let l=r||s[0]||i.shift()||null,f=new Set;for(let u of i){let d=CV.find(p=>o[p]==null);if(!d)break;o[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:l,...o,opaqueSlots:f}},DV=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:o}=L()||{};return kn(String(t)).map(r=>r.trim()).filter(Boolean).map(r=>RV(r,n,o))},$R=(t,e)=>UR.test(t)||e&&!kV.test(t)&&!/^(?:var|env)\(/.test(t)?t:ye(t).timing||t,LV=(t,e)=>{let n=o=>t.opaqueSlots.has(o);return{animationName:t.name==null?void 0:Jx(t.name,e),animationDuration:t.duration!=null?$R(t.duration,n("duration")):ye(e.animationDuration||"A").timing,animationDelay:t.delay!=null?$R(t.delay,n("delay")):ye(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:Be(t.timingFunction):Be(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||jR(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},IV={animationName:"none",animationPlayState:"running",animationDirection:"normal"},PV=(t,e)=>{let n=t.map(r=>LV(r,e));if(n.length===1)return n[0];let o={};for(let r in n[0]){let s=n.map(i=>i[r]);s.every(i=>i==null)||(o[r]=s.map(i=>i??IV[r]).join(", "))}return o},tk={animation:(t,e)=>{if(t!=null){if(E(t)&&/[\s,]/.test(t)){let n=DV(t,e);if(n.length)return PV(n,e)}return{animationName:Jx(t,e),animationDuration:ye(e.animationDuration||"A").timing,animationDelay:ye(e.animationDelay||"0s").timing,animationTimingFunction:Be(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||jR(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:Jx(t,e)}),animationDuration:t=>({animationDuration:ye(t).timing}),animationDelay:t=>({animationDelay:ye(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Be(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};var mg=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!E(e))return;let[o,r]=lt(e);return{...F(t+"Start",o,n),...F(t+"End",r||o,n)}},ek={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>F("height",t,e),width:(t,e)=>F("width",t,e),boxSizing:t=>Gt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("height",e),...Lt("width",n||e)}},inlineSize:(t,e)=>F("inlineSize",t,e),blockSize:(t,e)=>F("blockSize",t,e),minWidth:(t,e)=>F("minWidth",t,e),maxWidth:(t,e)=>F("maxWidth",t,e),widthRange:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("minWidth",e),...Lt("maxWidth",n||e)}},minHeight:(t,e)=>F("minHeight",t,e),maxHeight:(t,e)=>F("maxHeight",t,e),heightRange:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("minHeight",e),...Lt("maxHeight",n||e)}},size:t=>{if(!E(t))return;let[e,n]=lt(t);return{...F("inlineSize",e),...F("blockSize",n||e)}},minBlockSize:(t,e)=>F("minBlockSize",t,e),minInlineSize:(t,e)=>F("minInlineSize",t,e),maxBlockSize:(t,e)=>F("maxBlockSize",t,e),maxInlineSize:(t,e)=>F("maxInlineSize",t,e),minSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("minInlineSize",e),...Lt("minBlockSize",n||e)}},maxSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("maxInlineSize",e),...Lt("maxBlockSize",n||e)}},borderWidth:(t,e)=>F("borderWidth",t,e),borderTopWidth:(t,e)=>F("borderTopWidth",t,e),borderRightWidth:(t,e)=>F("borderRightWidth",t,e),borderBottomWidth:(t,e)=>F("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>F("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>F("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>F("textUnderlineOffset",t,e),padding:(t,e)=>F("padding",t,e),paddingInline:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("paddingInlineStart",e),...Lt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("paddingBlockStart",e),...Lt("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>F("paddingBlockStart",t,e),paddingBottom:(t,e)=>F("paddingBlockEnd",t,e),paddingLeft:(t,e)=>F("paddingInlineStart",t,e),paddingRight:(t,e)=>F("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>F("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>F("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>F("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>F("paddingInlineEnd",t,e),margin:(t,e)=>F("margin",t,e),marginInline:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("marginInlineStart",e),...Lt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Lt("marginBlockStart",e),...Lt("marginBlockEnd",n||e)}},marginTop:(t,e)=>F("marginBlockStart",t,e),marginBottom:(t,e)=>F("marginBlockEnd",t,e),marginLeft:(t,e)=>F("marginInlineStart",t,e),marginRight:(t,e)=>F("marginInlineEnd",t,e),marginInlineStart:(t,e)=>F("marginInlineStart",t,e),marginInlineEnd:(t,e)=>F("marginInlineEnd",t,e),marginBlockStart:(t,e)=>F("marginBlockStart",t,e),marginBlockEnd:(t,e)=>F("marginBlockEnd",t,e),scrollMargin:(t,e)=>F("scrollMargin",t,e),scrollMarginTop:(t,e)=>F("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>F("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>F("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>F("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>mg("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>mg("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>F("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>F("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>F("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>F("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>F("scrollPadding",t,e),scrollPaddingTop:(t,e)=>F("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>F("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>F("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>F("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>mg("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>mg("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>F("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>F("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>F("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>F("scrollPaddingInlineEnd",t,e),gap:t=>({gap:zh(t)}),columnGap:(t,e)=>Me(e,"columnGap",t),rowGap:(t,e)=>Me(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!E(t))return;let[o,r]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(r||"")}},flexAlign:t=>{if(!E(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Eo(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Eo(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Eo(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Eo(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Eo(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Eo(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:Ms(t,"backgroundSize",Zf,e)}),backgroundPosition:(t,e)=>({backgroundPosition:Ms(t,"backgroundPosition",Qf,e)}),maskSize:(t,e)=>({maskSize:Ms(t,"maskSize",Zf,e)}),maskPosition:(t,e)=>({maskPosition:Ms(t,"maskPosition",Qf,e)})};var nk={fontSize:t=>Hf(t)||t,fontFamily:t=>({fontFamily:Uf(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t}),lineClamp:t=>{if(t!=null)return t==="none"?{WebkitLineClamp:"none",lineClamp:"none"}:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:String(t),lineClamp:String(t),overflow:"hidden"}}};var ok={overflow:t=>({overflow:t}),cursor:(t,e,n,o)=>{if(!t)return;let r=o.assets&&o.assets[t];if(r&&r.content)t=`url(${r.content.src})`;else{let s=o.files&&o.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var rk={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:lt(t).map(n=>Ft(n,"k").k).join(" ")}},left:t=>Ft(t,"left"),top:t=>Ft(t,"top"),right:t=>Ft(t,"right"),bottom:t=>Ft(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=lt(t).map(n=>Ft(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=lt(t).map(n=>Ft(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};var yg=0,_g=()=>{yg++},bg=()=>{yg>0&&yg--},ae=({context:t,state:e})=>{let n=t?.designSystem,o=e?.root?.globalTheme||n?.globalTheme;return o&&o!=="auto"?o:yg>0?null:n&&n.resolvedTheme||null},ce=(t,e)=>{if(e==null||e==="")return;if(!k(e))return{[t]:e};let n={},o=!1;for(let r in e){let s=e[r];if(!(s==null||s==="")){if(k(s)){let i=ce(t,s);i&&(n[r]=i,o=!0);continue}n[r]={[t]:s},o=!0}}return o?n:void 0},HR=t=>{let e={};for(let n in t){let o=t[n];e[n]=k(o)?HR(o):E(o)?o+" !important":o}return e},Fs=t=>(e,n)=>{let o=n&&E(e)&&!L().useVariable,r=jh(e,o?ae(n):null);return k(r)?ce(t,r):{[t]:r}},sk={theme:(t,e)=>{if(t)return e.themeModifier?nn(t,`@${e.themeModifier}`):nn(t)},color:(t,e)=>{let n=ae(e);if(t)return ce("color",Vt(t,n))},background:(t,e)=>{let n=ae(e);if(t)return E(t)&&t.includes("gradient")&&t.includes("(")?{background:pr(t,n)}:ce("background",Vt(t,n))},backgroundColor:(t,e)=>{let n=ae(e);if(t)return ce("backgroundColor",Vt(t,n))},backgroundImage:(t,e,n,o)=>{let r=ae(e);if(!t)return;let s=o.assets&&o.assets[t];if(s&&s.content)t=s.content.src;else{let i=o.files&&o.files[t];i&&i.content&&(t=i.content.src)}return ce("backgroundImage",Hh(t,r))},textStroke:t=>{let e=Uh(t);if(e!=null)return{WebkitTextStroke:e}},outline:Fs("outline"),outlineWidth:(t,e)=>F("outlineWidth",t,e),outlineColor:(t,e)=>{let n=ae(e);if(t)return ce("outlineColor",Vt(t,n))},outlineOffset:(t,e)=>F("outlineOffset",t,e),border:Fs("border"),borderColor:(t,e)=>{let n=ae(e);if(t)return ce("borderColor",Vt(t,n))},borderTopColor:(t,e)=>{let n=ae(e);if(t)return ce("borderTopColor",Vt(t,n))},borderBottomColor:(t,e)=>{let n=ae(e);if(t)return ce("borderBottomColor",Vt(t,n))},borderLeftColor:(t,e)=>{let n=ae(e);if(t)return ce("borderLeftColor",Vt(t,n))},borderRightColor:(t,e)=>{let n=ae(e);if(t)return ce("borderRightColor",Vt(t,n))},borderLeft:Fs("borderLeft"),borderTop:Fs("borderTop"),borderRight:Fs("borderRight"),borderBottom:Fs("borderBottom"),shadow:(t,e)=>{let n=ae(e);if(t)return ce("boxShadow",Vh(t,n))},boxShadow:(t,e)=>{if(!E(t))return;let[n,o]=t.split("!importan"),r=ae(e),s=o?" !important":"",i=Xf(n.trim(),r);return E(i)?{boxShadow:i+s}:ce("boxShadow",s?HR(i):i)},textShadow:(t,e)=>ce("textShadow",Xf(t,e?ae(e):null)),columnRule:Fs("columnRule")};var pu={transition:t=>{let e=Gh(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:Jf(t)}),transitionDelay:t=>({transitionDelay:Jf(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Be(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var ik={flow:(t,e)=>{let n=e.reverse;if(!E(t))return;let[o,r]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(r||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!E(t))return;let[n,o]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:o}}};var MV=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,zR=t=>{if(!E(t))return t;let e=L().sizes;return e?t.replace(MV,(n,o,r)=>{let s=e[r];return s==null?n:o+String(s)}):t},Wn=t=>zR(Wh(t)),ak={gridTemplateColumns:t=>({gridTemplateColumns:Wn(t)}),gridTemplateRows:t=>({gridTemplateRows:Wn(t)}),gridAutoColumns:t=>({gridAutoColumns:Wn(t)}),gridAutoRows:t=>({gridAutoRows:Wn(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Wn(t)}),templateColumns:t=>({gridTemplateColumns:Wn(t)}),autoColumns:t=>({gridAutoColumns:Wn(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Wn(t)}),templateRows:t=>({gridTemplateRows:Wn(t)}),autoRows:t=>({gridAutoRows:Wn(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var WR="breakpoints",BV=new Set(["window","media"]),GR=/^-?[A-Za-z_][\w-]*$/,KR=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),NV=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&GR.test(n)&&!KR.has(n)?n:null},Sg=(t,e)=>{if(typeof t=="function")try{t=t(e,e&&e.state,e&&e.context)}catch{return null}if(typeof t!="string")return null;let n=t.trim();return!n||BV.has(n)?null:n==="container"?NV(e)||WR:GR.test(n)&&!KR.has(n)?n:null},$V=/^@media\s+/i,FV=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,jV=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,UV=/height|block-size|aspect-ratio|orientation|device-|resolution/i,ck=t=>{if(typeof t!="string")return null;let e=t.trim().replace($V,"").replace(FV,"").trim();if(!e||e.indexOf(",")!==-1)return null;let n=e.split(/\s+(?:and|or)\s+/i);for(let o of n){let r=o.trim();if(r.charCodeAt(0)!==40||r.charCodeAt(r.length-1)!==41)return null;let s=r.slice(1,-1);if(s.indexOf("(")!==-1||s.indexOf(")")!==-1||!jV.test(s)||UV.test(s))return null}return e},lk={breakpointsFrom:(t,e)=>{let n=Sg(t,e);if(!n)return;let o={},r=e&&e.container!=null;return!r&&(!e||e.containerType==null)&&(o.containerType="inline-size"),!r&&(!e||e.containerName==null)&&(o.containerName=n),o}};var St={...tk,...ek,...nk,...ok,...rk,...sk,...pu,...ik,...ak,...lk};var Mt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","fill","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textBox","textBoxEdge","textBoxTrim","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);var VV=/^[a-z][0-9]?$/,qR=/var\(\s*(--[A-Za-z0-9-]+)/g,HV=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let o in t){let r=t[o];if(!(!r||typeof r!="object")){if(r.sequence&&typeof r.sequence=="object")for(let s in r.sequence)e.add(s);if(r.vars&&typeof r.vars=="object")for(let s in r.vars)n.add(s)}}return{knownLetters:e,knownVars:n}},zV=Object.prototype.propertyIsEnumerable,YR=(t,e)=>{if(!t||typeof t!="object")return!1;for(let n in t){let o=t[n];if(!o||typeof o!="object")continue;let r=o.sequence;if(r&&typeof r=="object"&&zV.call(r,e))return!0}return!1},fk=/[(),\s]+/,uk=(t,e)=>{let n=null,o=t.split(fk);for(let r=0;r<o.length;r++){let s=o[r];s&&e(s)&&(n||(n=[])).push(s)}return n},dk=(t,e)=>En.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),WV=(t,e)=>{if(!e.size)return[];let n=r=>e.has(r),o=uk(t,r=>dk(r,n));return o?[...new Set(o)]:[]},GV=(t,e)=>{if(!e.size)return[];let n=[];qR.lastIndex=0;let o;for(;o=qR.exec(t);){let r=o[1];if(e.has(r))continue;let s=r.lastIndexOf("-");if(s===-1)continue;let i=r.slice(s+1);if(!VV.test(i))continue;let a=r.slice(0,s+1)+i.toUpperCase();a!==r&&e.has(a)&&n.push({varName:r,corrected:a})}return n},wg=new Set,XR=(t,e,n)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J())||!E(e)||!e)return;let o;try{o=L()}catch{return}let{knownLetters:r,knownVars:s}=HV(o);if(!r.size&&!s.size)return;let i=WV(e,r),a=GV(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;wg.has(f)||(wg.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;wg.has(u)||(wg.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${f}, so this reference silently never resolves. Value: "${e}"`))}};var KV=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,qV=(t,e,n)=>{let{context:o}=n;if(!o.designSystem?.media)return;let r=t.slice(1),s=o.designSystem.media[r],i=Es(s||t)?Ts(()=>Zt(e,n)):Zt(e,n);if(!s)return{[t]:i};if(/^@(media|supports|container)\b/.test(s))return{[s]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(KV),c=a?a[1]||a[2]:r,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=o.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},ZR=(t,e,n)=>({[t]:Zt(e,n)}),hu=(t,e,n)=>{let o=`&${t}`,r=Zt(e,n);if(t.includes(",")&&r){let s={},i={};for(let a in r)typeof r[a]=="object"&&r[a]!==null?i[a]=r[a]:s[a]=r[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[o]:r}},pk=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return I(n)?n.call(e,e):!!n},YV=(t,e,n)=>{let o=t.slice(1),r=pk(o,n);if(r===void 0&&(r=!!n[o]),!!r)return Zt(e,n)},XV=(t,e,n)=>({[t]:e}),ZV=(t,e,n)=>{let o=t.slice(1),r=n[o]===!0||n.state?.[o];if(!r)if(typeof n[o]=="function")try{r=n[o](n,n.state,n.context)}catch{}else{let s=pk(o,n);s!==void 0&&(r=s)}if(r)return Zt(e,n)},QV=(t,e,n)=>{let o=t.slice(1),r=n[o]===!0||n.state?.[o];if(!r)if(typeof n[o]=="function")try{r=n[o](n,n.state,n.context)}catch{}else{let s=pk(o,n);s!==void 0&&(r=s)}if(!r)return Zt(e,n)},hk=(t,e)=>Zt(t,e),gk={"@":qV,":":hu,"[":hu,"*":hu,"+":hu,"~":hu,"&":ZR,">":ZR,$:YV,"-":XV,".":ZV,"!":QV};var xg=Go(),QR=(t,e,n)=>{let o=e?.context?.designSystem;o&&ht(o);try{let r={},s={},i=(a,c)=>{if(n.unpack){r={...r,...c};return}r[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&E(c)){let l=JR(c,e);l&&(n.unpack?Ot(r,l):r.designSystemClass=l)}else if(a==="true"){let l=bt(c,e);Ot(r,hk(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=I(l)?l(e,e.state,e.context):l;f&&i(a,f),!xg&&k(r[a])&&(r[a].label=a)}else if(St[a]){let l=bt(c,e);if(l===null)continue;P(l)&&(l=l.reduce((u,d)=>Ot(u,d),{}));let f=St[a](l,e,e.state,e.context);P(f)&&(f=f.reduce((u,d)=>Ot(u,d),{})),f&&i(a,f),!xg&&k(r[a])&&(r[a].label=a)}else if(Mt.has(a)){let l=bt(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),xg||XR(a,l,e),i(a,{[a]:l}),!xg&&k(r[a])&&(r[a].label=a)}else s[a]=c}return[r,s]}finally{o&&dt()}},JR=(t,e)=>{if(!E(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let o;for(let r of t.split(" ")){if(!r)continue;let s=n[r];if(!k(s))continue;let i=ut(s);o=o?ne(o,i):i}if(o)return Zt(o,e)},t1=(t,e)=>{let n={};for(let o in t){let r=gk[o.slice(0,1)];if(r){let s=r(o,t[o],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?ne(n[i],s[i]):n[i]=s[i])}}return n},Zt=(t,e,n={unpack:!0})=>{let[o,r]=QR(t,e,n),s=t1(r,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Jc(o,s);o._selectors=s}return o},JV=(t,e)=>{let n={};if(t.class)for(let o in t.class)n[o]=t.class[o](e);return n};var e1=t=>{if(k(t))return Zt(t,t)},t3=(t,e)=>{let n=e1(t);return typeof e=="function"?e(n):$e(n)};var n1=/\s*!important\s*$/,e3=()=>{let t;try{t=L()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,o=s=>{n||(n=new Map);let i=n.get(s);return i===void 0&&(i=YR(t,s),n.set(s,i)),i},r=s=>ga(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(dk(s,o)||r(s))}},n3=(t,e)=>{let n=String(t).split(fk);for(let o=0;o<n.length;o++)if(n[o]===e)return!0;return!1},o3=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(Se(t),e)}catch{return!1}},o1=new Set,r3=(t,e,n)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let o=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",r=o+"::"+e+"::"+n;o1.has(r)||(o1.add(r),console.warn(`[smbls/css-in-props] style.${e} on <${o}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},s3=(t,e)=>{if(!t||typeof t!="object")return!1;let n=!1;for(let o in t){let r=t[o];if(r!=null){if(typeof r=="object"||typeof r=="function")return!1;for(let s of e)if(n3(r,s))return!1;n=!0}}return n},i3=(t,e,n,o)=>{if(!E(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let r=St[t];if(!r||!Mt.has(t))return null;let s=n1.test(e),i=s?e.replace(n1,""):e,a=uk(i,o.isToken);if(!a||o3(t,i))return null;let c;try{c=r(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let f={};for(let u of c)u&&typeof u=="object"&&Object.assign(f,u);c=f}if(!s3(c,a))return r3(n,t,e),null;let l={};for(let f in c){let u=c[f];u!=null&&(l[f]=s?String(u)+" !important":u)}return l},r1=(t,e,n)=>{let o={},r=!1;for(let s in t){let i=t[s];if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let c=r1(i,e,n);c!==i&&(r=!0),o[s]=c;continue}let a=i3(s,i,e,n);a?(r=!0,Object.assign(o,a)):o[s]=i}return r?o:t},mk=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:r1(t,e,e3());if(!kt||!on)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var kg=kt,mr=on,Tg=va||(()=>!1),s1=nu||Tg,i1=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Ro=Se||(t=>i1(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),gu=iu||(t=>i1(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function c1(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function Na(t,e,n){let o=c1(e);if(!o.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=l1(o[i],s);a&&a!==e&&f1(t,a,n,new Set([e]))}}function l1(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(r=>r.trim()),o=e[n[0]]||e[`smbls.${n[0]}`];for(let r=1;r<n.length&&o;r++)o=o[n[r]];return o||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function f1(t,e,n,o=new Set){if(o.has(e))return;o.add(e);let r=c1(e);if(r.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<r.length;c++){let l=l1(r[c],a);l&&f1(t,l,n,o)}}let s=_k(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.mark(i);let c=it.chains;c!==null&&c(t,i,t[i],a)||(t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=Fe(t[i],a):t[i]=a)}}var yk=class{constructor(){this.rank=0,this.ranks=null}mark(e){a3(e)&&(this.ranks||(this.ranks=new Map),this.ranks.set(e,this.rank))}get(e){return this.ranks?this.ranks.get(e):void 0}get size(){return this.ranks?this.ranks.size:0}},Eg=new Set;for(let t of[mr,kg])for(let e in t)Eg.add(e),Eg.add(gu(e));var a1=new Map;function a3(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=a1.get(t);return n===void 0&&(n=!!St[t]||Eg.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&Eg.has(Ro(t)),a1.set(t,n)),n}function _k(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new yk),n.rank++,n}function u1(t){let e=t&&t.__ref&&t.__ref.__mergeLayer;if(!e||!e.ranks)return;let n;for(let o of e.ranks.values())if(n===void 0)n=o;else if(o!==n)return;e.ranks=null}function Fe(t,e){let n={...t},o=it.chains;for(let r in e){let s=n[r],i=e[r];o!==null&&o(n,r,s,i)||(s&&i&&typeof s=="object"&&typeof i=="object"&&!Array.isArray(s)&&!Array.isArray(i)&&typeof s!="function"&&typeof i!="function"?n[r]=Fe(s,i):n[r]=i)}return n}var js="http://www.w3.org/2000/svg",ja=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),c3=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function $a(t){return c3.has(t)||ja.has(t)}function Do(t){return ja.has(t)}function Gn(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&$a(e))return e;if(!n||typeof n!="string")return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),r=n.toLowerCase();return r.includes(".")&&(r=r.split(".")[0]),r.includes("_")&&(r=r.split("_")[0]),$a(r)&&!o.has(r)?r:"div"}var d1={};function Fa(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if(Do(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===js)return n.createElementNS(js,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function yr(t){let e=t.tag=Gn(t),o=Do(e)&&(e==="svg"||t.parent?.node?.namespaceURI===js)?"svg:"+e:e,r=t?.context?.document||globalThis.document,s=d1[o];if(s||(s=d1[o]=Fa(e,t)),!s)return null;let i=r&&s.ownerDocument!==r?Fa(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function mu(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}var p1=new WeakMap,h1=null,g1=null;function l3(t,e){let n=t===h1?g1:p1.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},p1.set(t,n)),h1=t,g1=n;let o=n.hooks.get(e);if(o===void 0){o=!1;for(let r of t)if(typeof r[e]=="function"){o=!0;break}n.hooks.set(e,o)}return o}function bk(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&l3(n,e))}function Kn(t,e,...n){return bk(e,t)?qo(t,e,...n):!1}function cn(t,e,n){Kn("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var f3=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function y1(t,e,n){return we(()=>an(t,()=>e.call(t,n,t,t.state,t.context)))}function u3(t,e){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function _1(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function")return;if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return Ht("bridge",t);if(!("scrollHeight"in n))return;let o=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,u3(t,e);let r;try{r=y1(t,t.onBridgeMount,n)}catch(s){if(o.failed=!0,cn(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(r&&typeof r.then=="function"){r.then(s=>m1(t,o,s),s=>{o.failed=!0,cn(t,"onBridgeMount",s)});return}m1(t,o,r)}function m1(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){S1(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let o=t.__ref;e.effect=W(()=>{e.disposed||an(t,()=>{try{let r=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);r&&typeof r.then=="function"&&r.catch(s=>cn(t,"onBridgeUpdate",s))}catch(r){cn(t,"onBridgeUpdate",r)}})},{depth:o.path.length,label:()=>o.path.join(".")+"::onBridgeUpdate"}),o.__effects.push(e.effect)}function b1(t){if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return;let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&S1(t,e))}function S1(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,f3(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let o=y1(t,t.onBridgeDestroy,n);o&&typeof o.then=="function"&&o.catch(r=>cn(t,"onBridgeDestroy",r))}catch(o){cn(t,"onBridgeDestroy",o)}}function Ua(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function yu(t){let e=t.__mount;return e?e.pending:0}function Va(t={},e={}){let n=this,o=n.__ref;if(!o)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&Ag(o))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>qn(o,!1),c=>{qn(o,!0),Kn("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(qn(o,!1),a===!1)return n}catch(a){throw qn(o,!0),a}let r=!t||Object.keys(t).length===0,s=[],i=!1;Pd(()=>{if(t.state&&xt(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!o.__exec.text&&n.node&&Us(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!o.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!o.__exec.style){let a=Hs(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=Ro(c),u=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];Vs(n.node,a,c)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(zt.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&Wt(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)xk(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)Sk(s[c])&&(a=!0);a&&wk(n)}if(n.node&&r&&o.__effects&&o.__effects.length)for(let a=0;a<o.__effects.length;a++){let c=o.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&o.__conditionalRunners)for(let a of o.__conditionalRunners)a();return Kn("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}function ln(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&wR(t),Re())return we(()=>ln(t));e.__disposed=!0;let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__bridge&&b1(t),e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){let r=e.__children.slice();e.__children.length=0;for(let s=0;s<r.length;s++){let i=t[r[s]];i&&i.__ref&&ln(i)}}if(e.__ifParked&&e.__ifParked.size){let r=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<r.length;s++){let i=t[r[s]];i&&i.__ref&&i.parent===t&&ln(i)}}e.__keepNode?e.__keepNode=!1:t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let o=t.state?.$destroy||t.state?.destroy;if(typeof o=="function"&&t.state.__element===t&&o.call(t.state),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),t.parent.__ref.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),delete t.parent[t.key]}if(!n)try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}e.__mount&&e.__mount.tail&&it.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function Ha(){ln(this)}function Ek(t,e,n){let o=t?.context?.analyze;if(!o||!o.emit||e==="warn"&&!o.shouldCapture("warnings")||e==="error"&&!o.shouldCapture("errors"))return;let r=n.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:r||null,args:n})}var w1=new Set;function x1(t,e,n){let o=String(e);if(w1.has(o))return;w1.add(o);let r=t?.__ref?.path,s=Array.isArray(r)&&r.length?r.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${o}') at <${s}>: "${o}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;Ek(t,"error",[a]),console.error(a)}var T1=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),d3=new Set,E1=t=>T1(kk,t)&&!(Ri||d3).has(t),k1=new Set;function A1(t,e){k1.has(t)||(k1.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function p3(...t){return Ek(this,"warn",t),Nl.apply(this,t)}function h3(...t){return Ek(this,"error",t),ss.apply(this,t)}var kk={update:Va,remove:Ha,getDB:Ul,getQuery:Vl,getRootData:Pl,getPath:Rl,nextElement:$l,previousElement:Fl,verbose:Wi,warn:p3,error:h3,variables:jl,spotByPath:Ol,set(t,e,n){let o=this.__ref;if(o){if(o.__setLocked){o.__setQueued={content:t,options:e};return}o.__setLocked=!0}let r,s=t!=null?it.hydration:null,i=s&&typeof s.handBack=="function"?this.context?.__hydration:null,a=i&&o?.__children&&this.content?.__ref?s.handBack(i,this.content):null;try{if(this.removeContent(),t!=null){let c=this.context?.__create;try{c&&(r=c(t,this,"content",e,n))}finally{a&&s.settleHandBack(i,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(o){o.__setLocked=!1;let c=o.__setQueued;c&&(o.__setQueued=null,this.set(c.content,c.options))}}return r},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,o=this.key,r=this.parse();return this.remove(),e(r,n,o,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},whenConnected(t){return gr(this,t)},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let n of e.__children){let o=this[n];if(!o)continue;if(typeof t=="function"){if(t(o))return o}else if(typeof t=="string"&&o.key===t)return o;let r=o.lookdown?.(t);if(r)return r}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let o of n.__children){let r=this[o];r&&(typeof t=="function"?t(r)&&e.push(r):typeof t=="string"&&r.key===t&&e.push(r),r.lookdownAll?.(t,e))}return e},getRef(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getRoot:Il,getRootState:Ll,getRootContext:Ml,getContext:Bl,parse(t){let e={},n=t?new Set(t):null,o=this.__ref?.__exec;for(let r in this)if(!(r==="parent"||r==="node"||r==="__ref")&&!n?.has(r)){if(o&&o[r]!==void 0){e[r]=o[r];continue}typeof this[r]!="function"&&(e[r]=this[r])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let o of n.__children)this[o]?.parseDeep&&(e[o]=this[o].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let n=t[e];if(n==null)continue;let o=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),r=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,r,"important")}},call(t,...e){let n=this.context,o=E1(t);o&&n?.methods?.[t]&&n.methods[t]!==this[t]&&A1(t,"el.call");let r=o?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof r=="function"){let s=Gr;if(!s||!s(r))return r.call(this,...e);!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&x1(this,t,De(r));return}!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&x1(this,t,r)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Tk=new WeakMap;function g3(t){if(!t)return kk;let e=Tk.get(t);if(e)return e;e=Object.create(kk);let n=t.methods;if(n)for(let o in n)e[o]=n[o];return Tk.set(t,e),e}function za(t){let e=g3(t.context);Object.setPrototypeOf(t,e)}function Wa(t){if(!t)return!1;let e=Tk.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let o in n){if(E1(o)&&!T1(e,o)){A1(o,"refreshContextProto");continue}e[o]=n[o]}return!0}var Rk=/*@__PURE__*/$({},{STATE_METHODS:()=>v1,applyInitialState:()=>vg,applyStateMethods:()=>xe,callStateMethod:()=>bu,createState:()=>vk,isTracking:()=>Ok,useHostState:()=>Ck});var v1=new Set(["update","parse","clean","destroy","create","add","toggle","remove","set","replace","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath","reset","apply","applyReplace","applyFunction","quietUpdate","quietReplace","rootUpdate","parentUpdate","keys","values","__element","__children","parent","root"]),_u=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},An=(t,e,n,{onlyIfAbsent:o}={})=>{_u(t,"$"+e,n),!(o&&Object.prototype.hasOwnProperty.call(t,e))&&_u(t,e,n)},bu=(t,e,...n)=>{if(!t)return;let o=t["$"+e];if(typeof o=="function")return o.apply(t,n);let r=t[e];if(typeof r=="function")return r.apply(t,n)},xe=(t,e)=>{if(xt(e)){let r=e.__raw||e;An(r,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),An(r,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),An(r,"setByPath",function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e}),An(r,"getByPath",function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),An(r,"removeByPath",function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),An(r,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),An(r,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),An(r,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),An(r,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&xt(a.parent);)a=a.parent;return bu(a,"update",s,i)}),An(r,"parentUpdate",function(s,i={}){if(e.parent)return bu(e.parent,"update",s,i)}),An(r,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(r,"root")||Object.defineProperty(r,"root",{get:function(){let s=e,i=xt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,xt(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r]},o={update(r){if(!r||typeof r!="object")return e;for(let s in r)e[s]=r[s];return e},apply(r){if(typeof r!="function")return e;let s=r(e);return s?e.$update(s):e},parse(){return{...e}},toggle(r){return e[r]=!e[r],e},set(r){if(!r||typeof r!="object")return e;n();for(let s in r)e[s]=r[s];return e},replace(r){return e.$set(r)},clean(){return n(),e}};_u(e,"$settled",function(){return Md().then(()=>e)});for(let r in o)if(_u(e,"$"+r,o[r]),typeof e[r]!="function"){if(Object.prototype.hasOwnProperty.call(e,r)){$d(r,"");continue}_u(e,r,o[r])}};var vk=function(t,e,n){return t.state=vg(t,e,n),t.state},vg=function(t,e,n){let{__ref:o}=t,r=t.state;if(r==null||r===!1){let s=e?.state||{};return xe(t,s),s}if(typeof r=="string")return o&&(o.__state=r),o.__stateType="string",m3(r,t,e);if(typeof r=="number"||typeof r=="boolean"){o&&(o.__state=r,o.__stateType=typeof r,o.__hasRootState=!0);let s=oo({value:r});return s.__element=t,e?.state&&(s.parent=e.state),xe(t,s),s}if(typeof r=="function"&&(r=r(t,e?.state)||{}),typeof r=="object"&&!xt(r)){o&&(o.__hasRootState=!0),r.isRootState&&o&&(o.__hasRootState=!0);let s=oo({...r});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),xe(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return xt(r)?(r.__element=t,r):e?.state||{}};function Ak(t,e){if(!e)return t;let n=e.split("/"),o=t;for(let r of n){if(o==null)return{};o=o[r]}return o??{}}function m3(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let r=t.slice(3),s=n.state?.parent;return r&&s?Ak(s,r):s??n.state??{}}if(t.startsWith("~/")){let r=n.state;for(;r?.parent;)r=r.parent;let s=t.slice(2);return s?Ak(r,s):r??{}}let o=Ak(n.state,t);if(o&&typeof o=="object"&&!xt(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let r=n.state?.root||n.state;Object.defineProperty(o,"root",{get:()=>r,enumerable:!1,configurable:!0})}return o}var Ck=(t,e)=>{if(!t)return O1;let n=_3(t,e);return!n||!n.state?O1:S3(n.state)},Ok=()=>Re()!=null,y3=128;function _3(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,o=t,r=null;for(let s=0;s<y3&&o;s++){if(n(o)&&o.state)return o;if(o.state&&!r&&(r=o),!o.parent||o.parent===o)break;o=o.parent}return r}var b3={get(t,e){return t[e]}},C1=new WeakMap,S3=t=>{let e=C1.get(t);return e||(e=new Proxy(t,b3),C1.set(t,e)),e},O1=new Proxy(Object.create(null),{get(){},has(){return!1}});var w3=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],x3=["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","mask-type","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","transform-origin","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"],k3=["requiredExtensions","systemLanguage"],R1={circle:["cx","cy","r","pathLength"],ellipse:["cx","cy","rx","ry","pathLength"],line:["x1","y1","x2","y2","pathLength"],path:["d","pathLength"],polygon:["points","pathLength"],polyline:["points","pathLength"],rect:["x","y","width","height","rx","ry","pathLength"],g:[],defs:[],switch:[],symbol:["viewBox","preserveAspectRatio","refX","refY","x","y","width","height"],use:["href","xlink:href","x","y","width","height"],image:["href","xlink:href","x","y","width","height","preserveAspectRatio","crossorigin"],foreignObject:["x","y","width","height"],text:["x","y","dx","dy","rotate","textLength","lengthAdjust"],tspan:["x","y","dx","dy","rotate","textLength","lengthAdjust"],textPath:["href","xlink:href","path","startOffset","method","spacing","side","textLength","lengthAdjust"],linearGradient:["x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],radialGradient:["cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],stop:["offset"],pattern:["x","y","width","height","patternUnits","patternContentUnits","patternTransform","viewBox","preserveAspectRatio","href","xlink:href"],clipPath:["clipPathUnits"],mask:["x","y","width","height","maskUnits","maskContentUnits"],marker:["viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],filter:["x","y","width","height","filterUnits","primitiveUnits"]},T3=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),E3=()=>{let t={};for(let e in R1)t[e]=[...R1[e],...T3.has(e)?[]:k3,...x3];return t},Lo={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loading","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"],...E3()},P1=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],M1=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,D1=new Map,Io=t=>{let e=D1.get(t);return e===void 0&&(e=M1(t)||$1(t),D1.set(t,e)),e},B1=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),Dk=new Set;for(let t in Lo)t==="default"||t==="aria"||t==="svg"||Lo[t].forEach(e=>{e.startsWith("on")||Dk.add(e)});var N1=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,r=>"-"+r.toLowerCase());if(Dk.has(n))return n;let o=t.toLowerCase();return Dk.has(o)?o:null},$1=t=>B1.has(t)?t.toLowerCase():N1(t),A3=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),v3=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),zs=t=>typeof t=="string"&&(A3.has(t)||t.startsWith("aria-")),Yn=(t,e)=>{if(e!==!0&&e!==!1)return e;if(zs(t)){let n=v3.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},L1=new Map,fn=(t,e)=>{let n=Lo.default,o=Object.prototype.hasOwnProperty.call(Lo,t)?Lo[t]:null,r=o?o.length:-1,s=L1.get(t);(!s||s.def!==n||s.defLen!==n.length||s.own!==o||s.ownLen!==r)&&(s={def:n,defLen:n.length,own:o,ownLen:r,answers:new Map},L1.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=C3(t,e),s.answers.set(e,i)),i},C3=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||M1(e)||B1.has(e)||Lo.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(Lo,t)){let n=Lo[t];if(n.includes(e))return!0;let o=N1(e);return o!==null&&n.includes(o)}return!1},Ik=t=>{if(!E(t))return!1;let e=t.toLowerCase();return P1.includes(e)},O3=(t,e,n)=>{let o={};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n&&r in n)continue;if(r==="aria"&&e[r]&&typeof e[r]=="object"){for(let a in e[r])Nt(e[r][a])&&(o["aria-"+a]=e[r][a]);continue}if(r==="data"&&e[r]&&typeof e[r]=="object"){for(let a in e[r])if(Nt(e[r][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=e[r][a]}continue}let s=fn(t,r),i=Ik(r);if(Nt(e[r])&&(s||i)){let a=Io(r)||r;o[a]=e[r]}}return o},R3=(t,e)=>{let n={};if(t.attr)for(let o in t.attr)n[o]=t.attr[o](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let r=t.aria[o];typeof r=="function"&&(n["aria-"+o]=r(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let o in t.data){let r=t.data[o];if(typeof r=="function"){let s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=r(e,e.state,e.context)}}return n},_r=(t,e)=>{let n=t.call("exec",e,t);if(n)return E(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},Lk=(t,e)=>{let n=(t.preSrc||"")+(_r(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:o}=t;if(!o.files&&!o.assets)return n;if(n.startsWith("/assets/")){let r=n.slice(8),s=o.assets&&(o.assets[n]||o.assets[r]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let r=n.slice(7),s=o.files&&(o.files[n]||o.files[r]);return s&&s.content?s.content.src:n}if(o.assets){let r=o.assets[n];if(r&&r.content)return r.content.src}if(o.files){let r=o.files[n];if(r&&r.content)return r.content.src}return n},br={src:t=>Lk(t,t.src),href:t=>_r(t,t.href),action:t=>_r(t,t.action),poster:t=>Lk(t,t.poster),data:t=>_r(t,t.data)},Pk=t=>{let e=t.tag||"div",n={};for(let o in br)if(t[o]!==void 0&&fn(e,o)){let r=br[o](t);r!==void 0&&(n[o]=r)}return n},I1=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return I(n)?n.call(e,e):!!n},D3=(t,e,n)=>{if(t==="$"){let r=I1(e,n);return r===void 0&&(r=!!n[e]),r}let o=n[e]===!0||n.state[e];if(!o){let r=I1(e,n);r!==void 0&&(o=r)}return t==="."?!!o:!o},L3=new Set(["$",".","!"]),Mk=(t,e,n,o=D3)=>{let r={},s=(i,a,c,l)=>{let f=a;r[i]=u=>{if(o(c,l,u))return I(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!L3.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let f in c){if(n&&f in n)continue;if(f==="aria"&&c[f]&&typeof c[f]=="object"){for(let g in c[f])s("aria-"+g,c[f][g],a,l);continue}if(f==="data"&&c[f]&&typeof c[f]=="object"){for(let g in c[f]){let h=g.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());s("data-"+h,c[f][g],a,l)}continue}let u=fn(e,f),d=Ik(f);if(!u&&!d)continue;let p=Io(f)||f;s(p,c[f],a,l)}}return r};var Cg="3.14.809";var F1="__SMBLS_ELEMENT_ID_ENGINE__",j1=(t,e,n)=>{let o=e||Cg,r=n||(typeof globalThis<"u"?globalThis:null);if(!r)return t;let s=r[F1];return s&&s.engine&&s.version===o?s.engine:(s||(r[F1]={version:o,engine:t}),t)};var I3=new Set(["rows","cols","wrap","fill","stroke","offset"]),Og=(t,e)=>I3.has(e)&&fn(t,e),Sr=(t,e)=>!!(St[e]||Mt&&Mt.has(e))&&!Og(t,e);var SD=j1({uniqId:1,scopedStyleId:0},Cg),Ka=[],wr=new Set,t0=!1,wD=0,Xa=null,xu=null;function Ja(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function xD(){return typeof document<"u"&&document.visibilityState==="hidden"}var P3=250,M3=1e3;function B3(){return xu&&(xu!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||xD())?!0:Ja()-wD>=M3}function N3(){if(t0=!0,wD=Ja(),xu=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Za,0);Xa=t?()=>t(e):null;return}if(xD()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Za,P3);Xa=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;xu=requestAnimationFrame;let e=requestAnimationFrame(Za);Xa=t?()=>t(e):null}}function Ou(){if(t0){if(!B3())return;let t=Xa;if(Xa=null,t)try{t()}catch{}}N3()}var kD=300,TD=15e4,Kk=0;function Ks(){Kk++;let t=!1;return()=>{t||(t=!0,!(--Kk>0)&&(Ka.length||wr.size)&&Ou())}}function Za(){if(t0=!1,Xa=null,xu=null,Kk>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&wr.size&&V6(),!Ka.length))return;let t=Ka.splice(0,Ka.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let o=n.__ref||(n.__ref={});o.__mountAttempts=(o.__mountAttempts||0)+1,o.__mountFirstAttemptAt==null&&(o.__mountFirstAttemptAt=Ja());let r=Ja()-o.__mountFirstAttemptAt;o.__mountAttempts<=kD&&r<TD?(Ka.push(n),Ou()):console.warn("[DOMQL] onMounted dropped after",o.__mountAttempts,"attempts /",r,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&_1(n),typeof n.onMounted=="function"&&qt("Mounted",n,n.__ref?.__mountOptions||{})}}}function qk(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&Cu(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,Ka.push(t),Ou())}function Dg(t,e){typeof t.onContentUpdate=="function"&&(Kn("contentUpdate",t,e),an(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(cn(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function $3(t){return t.toLowerCase()}function ED(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function Lg(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function AD(t,e,n,o){return Ng(o,Lg(t)||(e&&typeof e=="object"?Lg(e.key):void 0)||String(n))}function Ng(t,e){if(!t||typeof e!="string")return e;let n=e;for(;F3(t,n);)n="$"+n;return n!==e&&j3(t,e,n),n}function F3(t,e){if(zt.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}var U1=new Set;function j3(t,e,n){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let o=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",r=o+"::"+e;U1.has(r)||(U1.add(r),console.warn(`[smbls] a child keyed "${e}" at ${o} names a property of its parent; it lives at el["${n}"] (data-key="${n}") so the parent keeps its own "${e}". Prefix the data keys to keep plain el.<key> access.`))}function Wt(t,e,n,o={},r){if(Re())return we(()=>Wt(t,e,n,o,r));if(t==null||t===!1)return null;let s=a6(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=Lg(n);let i=Lg(t.key),a=Object.create(null);a.key=n||(i&&e?Ng(e,i):i)||`_${SD.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||o.context||{},a.context.__create||(a.context.__create=Wt);let c=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};s&&(c.__runtimeSource=s);let l=r;r&&(r.holdTail||r.deferAttach)&&(r.holdTail&&it.mount!==null&&it.mount.hold(a),r.deferAttach&&(Ua(c).attachLater=!0),l=void 0);let f=t;if(t=CD(a,t,n,i,e,o),a.if!=null){let g;if(typeof a.if=="function")try{g=a.if(a,a.state,a.context)}catch(h){if(g=!1,c.__ifError=h,typeof console<"u"&&console.warn){let m=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${m} \u2014 treating as false:`,h?.message||h)}}else g=a.if;c.__if=!!g}if(c.__if)typeof a.if=="function"&&(c.__ifInitialized=!0);else{if(e){e[a.key]=a;let h=e.__ref;h&&(h.__ifParked||(h.__ifParked=new Set)).add(a.key)}let g=W3(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:f,key:n,ownKey:i,names:g,options:o}),typeof a.if=="function"&&BD(a,c,a.if),a}a.tag||(a.tag=Gn(a)),qt("Init",a,o);let u=it.hydration,d=a.node=u!==null&&u.adopt(a)||yr(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(qt("AttachNode",a,o),d.setAttribute&&a.key&&d.getAttribute("data-key")!==String(a.key)&&d.setAttribute("data-key",a.key),e){let g=e[a.key];e[a.key]=a;let h=e.__ref?.__children;h&&(g===void 0||!h.includes(a.key))&&h.push(a.key)}d.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&d.setAttribute("data-smbls-app",a.context.key),a.id&&d.setAttribute&&(d.id=a.id),eL(a,o),PD(a),MD(a);try{oL(a,o)}catch(g){$g(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(o.mountWhole===!0&&!(r&&r.holdTail)&&U3(a,e)?p.held=!0:tc(a,e,l)),p.tail=()=>it.mount.finish(a,o),a):(Qa(a,!0),(p===null||!p.attachLater)&&tc(a,e,l),e0(a,o),a)}function Tr(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(tc(t,t.parent),!0)}function U3(t,e){if(!e||e.tag==="fragment")return!1;let n=t.node;if(!n||n.nodeType===11)return!1;let o=e.node||(e.nodeType?e:null);return!!o&&n.parentNode!==o}function vD(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held)return;n.held=!1;let o=t.node,r=t.parent;if(!o||!r)return;let s=r.__ref;if(!s){tc(t,r);return}let i=r.node;if(!i)return;let a=s.__children,c=a?a.lastIndexOf(t.key):-1,l;for(let f=c-1;f>=0;f--){let u=r[a[f]],d=u&&(Po(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=mu(i,s.__textNode)),tc(t,r,l?{position:"before",node:l}:void 0)}function $g(t,e){if(typeof console<"u"&&console.error){let n=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] createChildren failed at ${n}:`,e?.message||e,e?.stack?`
58
58
  `+e.stack.split(`
59
59
  `).slice(0,6).join(`
60
- `):"")}}function Kk(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&nn(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),Kt("Create",t,e),Kt("Complete",t,e),Kt("Render",t,e),Kt("RenderRouter",t,e),jk(t,e),typeof t.onFrame=="function"){let n=t.onFrame,o=t.context?.designSystem,r=()=>{if(t.node){if(t.node.isConnected){o&&ht(o);try{n(t,t.state,t.context)}catch(s){console.error("[DOMQL] onFrame error:",s)}finally{o&&dt()}}requestAnimationFrame(r)}};requestAnimationFrame(r)}}function Cg(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,it.mount.hold(t))}var C3=new Set(["childProps","attr","style","scope","data","vars"]);function _D(t,e,n,o,r,s){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),m=n.indexOf("."),y=h>0?h:-1;if(m>0&&(y<0||m<y)&&(y=m),y>0){let x=n.substring(0,y),T=t.context?.components;T&&(T[x]||T["smbls."+x])?e={...e,extends:x}:T&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${x}" but neither "${x}" nor "smbls.${x}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),Pa(t,e,s);let i=fk(t),a=t.props&&typeof t.props=="object"?t.props:null;for(let h in e)if(!(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")){if(h==="key"){o&&(t.key=r?Lg(r,o):o);continue}i&&i.mark(h),Ck(t,h,e[h])}if(a)for(let h in a)Ck(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)Ck(t,h,c[h]);if(i)for(let h in c)i.mark(h)}e1(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let l=t.scope&&typeof t.scope=="object"?t.scope:null,f=r?.scope,u=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=f||u||null;if(e.scope!==void 0||l){let h={};l&&Object.assign(h,l),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=Id(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=q3(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),Ua(t),L3(t,r,e,s),e}function Ck(t,e,n){let o=t[e],r=it.chains;if(r!==null&&r(t,e,o,n))return;let s=o&&n&&typeof o=="object"&&typeof n=="object"&&!Array.isArray(o)&&!Array.isArray(n);s&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=Be(o,n):s&&C3.has(e)?t[e]={...o,...n}:s&&gD(e)?t[e]=Be(o,n):t[e]=n}var O3=new Set(["key","parent","context","__ref"]);function R3(t,e){for(let o of Object.keys(t))O3.has(o)||delete t[o];let n=e.definition;if(!n.extends&&!n.extend&&typeof e.key=="string"){let o=t.context?.components||{},r=o[e.key]||o["smbls."+e.key];r&&(n={...n,extends:r})}be(()=>_D(t,n,e.key,e.ownKey,t.parent,e.options))}function D3(t,e,n){let o=n||{},r=a=>!!(o[a]||o["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;r(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let f=a>0?e.substring(0,a):e;r(f)||s.push(f)}return s}function Ok(t,e,n){if(typeof t.onStateInit!="function"&&!uk(t,"stateInit"))return;let o=t.state;t.state=e;try{Kt("StateInit",t,n)}finally{t.state=o}}var Rk=t=>({isDataOnlyKey:e=>Ko(t).has(e)});function L3(t,e,n,o){let r=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=r&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!xt(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Se(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=c.lang||f.defaultLang||"en",p=new Set,g=(y,x)=>{p.has(y)||qr(u,y,l)&&(l[y]=x,p.add(y),Bn(u,y,x))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(yn(f,!1));for(let y in f.translations)m.has(y)||g(y,f.translations[y])}xt(l)||Ok(t,l,o),t.state=xt(l)?l:eo(l,Rk(t.context)),t.state.__element=t,t.state.root=t.state,Se(t,t.state),Ui?.(c,t.state),Kt("StateCreated",t,o)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Se(t,t.state);return}if(typeof a=="string"){if(t.state=SD(a,e),t.state&&typeof t.state=="object"&&!xt(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}Se(t,t.state),P3(t,a,e),Kt("StateCreated",t,o);return}if(typeof a=="function"){let c=a(t,e?.state);if(xt(c))t.state=c;else{let l=c||{};Ok(t,l,o),t.state=eo(l,e?.state?void 0:Rk(t.context))}}else if(xt(a))t.state=a;else{let c={...a};Ok(t,c,o),t.state=eo(c,e?.state?void 0:Rk(t.context))}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Se(t,t.state),Ui?.(a,t.state),Kt("StateCreated",t,o)}function L1(t,e){if(!e)return t;let n=e.split("/"),o=t;for(let r of n){if(o==null)return{};o=o[r]}return o??{}}function bD(t,e){let n=e.state;return t.startsWith("~/")?[n&&(n.root||n),t.slice(2)]:t.startsWith("../")?[n,t.slice(3)]:[n,t]}function SD(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[r,s]=bD(t,e);return s?L1(r,s):r??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=L1(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let o=e.context?.polyglot;if(o?.translations){let r=e.state?.root?.lang||o.defaultLang||"en",s=o.translations[r];if(s?.[t]!==void 0)return s[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function I3(t,e){let[n,o]=bD(t,e);if(!o||!n||typeof n!="object")return;let r=n[o];if(r!==void 0||o.indexOf("/")===-1)return r;let s=n;for(let i of o.split("/")){if(s==null||typeof s!="object")return;s=s[i]}return s}function P3(t,e,n){let o=t.__ref;if(!o||!n||e==="."||!xt(n.state))return;o.__stateBinding&&o.__stateBinding.dispose();let r=be(()=>W(()=>{let s=I3(e,n);!s||typeof s!="object"||s===t.state||be(()=>wD(t,t.state,s,!0))},{depth:o.path?o.path.length:0,label:yt(o,"state")}));r._isStateBinding=!0,o.__stateBinding=r,o.__effects&&o.__effects.push(r)}function wD(t,e,n,o){let r=t.__ref;if(!r)return;if(o||t.state===e){t.state=n,o&&Se(t,n),P1(r);let i=r.__children;if(i)for(let a=0;a<i.length;a++){let c=t[i[a]];c&&c.__ref&&c.parent===t&&wD(c,e,n,!1)}return}if(r.__stateBinding){r.__stateBinding._notify();return}let s=t.state;s&&typeof s=="object"&&s.parent===e&&(s.parent=n,P1(r))}function I1(t,e){let n=t.__ifParked;if(!n||!n.size)return e;for(let o of n)e.includes(o)||e.push(o);return e}function P1(t){let e=t.__effects;if(e)for(let n=0;n<e.length;n++){let o=e[n];o&&!o._disposed&&!o._isStateBinding&&!o._isSubscribeToEffect&&typeof o._notify=="function"&&o._notify()}}var M3=new Set(["s","state","ctx","context"]),Dk=new WeakMap;function B3(t){if(Dk.has(t))return Dk.get(t);let e=null;try{let n=typeof Oe=="function"?Oe(t):Function.prototype.toString.call(t);if(typeof n=="string"){let o=n.match(/^\s*(?:async\s+)?([A-Za-z_$][\w$]*)\s*=>/)||n.match(/^[^(]*\(([^)]*)\)/);o&&(e={params:o[1].split(",").map(r=>r.trim())})}}catch{}return Dk.set(t,e),e}function N3(t){let e=B3(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var $3=3,F3=/^(is|has)[A-Z0-9_$]/,j3=new Set(["routerOptions"]),M1=new WeakSet;function U3(t,e){if(typeof t!="function"||t.length!==2||e&&(F3.test(e)||j3.has(e))||M1.has(t))return!1;let n=N3(t);if(n.length<2)return!1;let o=n[1].replace(/[{}[\]]/g,"").trim();return o.length<$3||M3.has(o)?!1:(M1.add(t),!0)}function V3(t){let e=t.__ref,n=t.tag||"div",o=t.context?.designSystem,r=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Ht.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||en(a)||St[a]||Mt&&Mt.has(a)||c!==45&&(sn(n,a)||(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&U3(t[a],a)&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),r.push({prop:a,fn:t[a]})))}for(let i=0;i<r.length;i++){let{prop:a,fn:c}=r[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){o&&ht(o);try{return c(t,t.state,t.context)}catch{return}finally{o&&dt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function H3(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let o=e[n];try{typeof o=="function"?o(t,t.state,t.context):typeof o=="string"&&t.state?.[o]}catch{}}}function Ft(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...o){return H3(t,e),n.apply(this,o)}}function Ha(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function yt(t,e){return()=>t.path.join(".")+"::"+e}var B1=new Set;function Zt(t,e,n){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let o=yt(t,e)();B1.has(o)||(B1.add(o),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var N1=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,$1=new WeakMap,z3=t=>{let e=$1.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){N1.lastIndex=0;let o;for(;(o=N1.exec(n))!==null;)o[2].includes("{{")&&(e||(e=[])).push(o[2])}return $1.set(t,e),e},W3=(t,e)=>{let n=z3(t);if(n)for(let o=0;o<n.length;o++)e.add(n[o])},G3=(t,e)=>!en(t)&&!yr(e,t),Lk=(t,e,n,o,r)=>{if(typeof e=="string"){!r&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&G3(t,o)&&W3(e,n)},Uk=new WeakMap,bu=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Su=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?Be(t,e):t},wu=(t,e)=>t&&e?Be(t,e):t||e||null,xD=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&bu(n,e)},br=(t,e)=>xD(t,e)?Su(t.__ref.__runtimeSource[e]):null,Hs=(t,e)=>(e&&t&&typeof t=="object"&&Uk.set(t,e),t),K3=t=>{if(!t||typeof t!="object")return;let e=Uk.get(t);return e&&Uk.delete(t),e},Vk=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let o=0;o<t.length;o++)Vk(t[o],e,n);return}if(!t.__ref)for(let o of Object.keys(t)){if(o==="state")continue;let r=Object.getOwnPropertyDescriptor(t,o);r&&"value"in r&&Vk(r.value,e,n)}}},q3=(t,e)=>{let n=null;for(let o of Object.keys(t)){if(Ht.has(o)||e&&bu(e,o))continue;let r=Object.getOwnPropertyDescriptor(t,o),s=r&&r.value;if(!Array.isArray(s))continue;let i=new Set;Vk(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},F1=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let o=n.__ref&&n.__ref.__declaredArrays,r=o&&o.get(e);if(!r)continue;let s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of r)s.__authoredTemplates.add(i);return}},kD=["attr","aria","data","metadata"],Y3=t=>{if(kD.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},X3=(t,e)=>{let n=new Set,o=t.tag||"div";for(let r of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,r),i=s&&s.value,a=!!e&&bu(e,r);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!Y3(r))continue;let c=a?e[r]:null,l=c&&typeof c=="object"?c:null,f=r.charCodeAt(0)===46||r.charCodeAt(0)===33;for(let u in i){let d=a&&(!l||bu(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&kD.includes(u)){for(let g in p)Lk(g,p[g],n,o,d);continue}Lk(u,p,n,o,d)}continue}Lk(r,i,n,o,a)}return n};function TD(t,e){let n=t.__ref,o=!!(e&&e.skipIfEffect),r=X3(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of r)n.__authoredTemplates.add(c);else n.__authoredTemplates=r;if(V3(t),typeof t.text=="function"){let c=t.text,l=Ft(t,t.textDeps,c),f=()=>{let d=l(t,t.state,t.context);return t.node&&typeof d=="string"&&d.includes("{{")&&(d=Gt.call(t,d,t.state)),d},u=W(()=>{if(!n.contentManaged)try{let d=U1(t,n,f);if(d===we)return;t.node&&d!=null&&typeof d!="function"&&typeof d!="object"&&Fs(t,d)}catch(d){Zt(n,"text",d)}},{depth:n.path.length,label:yt(n,"text")});n.__effects.push(u),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=()=>Gt.call(t,c,t.state),f=W(()=>{if(n.contentManaged)return;let u=U1(t,n,l);u!==we&&(u!=null&&(t.text=u),t.node&&Fs(t,u??""))},{depth:n.path.length,label:yt(n,"text")});n.__effects.push(f),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Ht.has(c)&&!en(c)&&!n.__exec[c]&&!Tg(s,c)){if(St[c]){let l=t[c],f=Ft(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=()=>{for(let T of g)t.node.classList.remove(T);g=null,h=void 0},y=()=>{RD(t,u,p,null),Eg(t,u,null),p=null},x=W(()=>{let T=t.context?.designSystem;T&&ht(T);try{let v=f(t,t.state,t.context);pg();let _;try{_=St[u](v,t,t.state,t.context)}finally{hg()}if(Array.isArray(_)){let b={};for(let S of _)if(S)for(let w in S)b[w]=S[w];_=b}if(u==="show"||u==="hide"){t.node&&Rg(t,u,!!(_&&_.display),!0);return}if(_&&t.node&&J3(_)){let b=Wa(_);if(b===null||b!==h){h=b;let S=Me(_,null,t.context?.cssPrefix),w=S?S.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let A of g)t.node.classList.remove(A);if(w&&w.length)for(let A of w)t.node.classList.add(A);g=w}}p&&y(),d=void 0}else if(_&&t.node){g&&m();let b=Wa(_);if(b===null||b!==d||!Ga(t.node,p,t)){d=b;let S=H1(t,_,p,u);p=yu(t.node,S,t),Eg(t,u,p)}}else t.node&&(g&&m(),p&&y(),d=void 0)}finally{T&&dt()}},{depth:n.path.length,label:yt(n,u)});n.__effects.push(x),n.__exec[c]=l}else if(Mt&&Mt.has(c)){let l=t[c],f=Ft(t,t[c+"Deps"],l),u=c,d,p=null,g=W(()=>{let h=t.context?.designSystem;h&&ht(h);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+":"+String(m);if(y!==d||!Ga(t.node,p,t)){d=y;let x={[u]:m},T=H1(t,x);p=yu(t.node,T,t),Eg(t,u,p)}}else d=void 0,p=null,Eg(t,u,null),u==="display"?Au(t,""):t.node.style[u]=""}finally{h&&dt()}},{depth:n.path.length,label:yt(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];LD(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(n6(t),typeof t.html=="function"){let c=t.html,l=Ft(t,t.htmlDeps,c),f=W(()=>{nn(t,()=>{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!="function"&&(t.node.innerHTML=u)})},{depth:n.path.length,label:yt(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=Ft(t,t.valueDeps,c),f=()=>{let d=l(t,t.state,t.context);return typeof d=="string"&&d.includes("{{")&&(d=Gt.call(t,d,t.state)),d},u=W(()=>{try{let d=qn(t,n,"value",f);if(d===we)return;V1(t,d)}catch(d){Zt(n,"value",d)}},{depth:n.path.length,label:yt(n,"value")});n.__effects.push(u),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=()=>Gt.call(t,c,t.state),f=W(()=>{try{let u=qn(t,n,"value",l);if(u===we)return;V1(t,u)}catch(u){Zt(n,"value",u)}},{depth:n.path.length,label:yt(n,"value")});n.__effects.push(f),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=Ft(t,t.styleDeps,c),f,u=null,d,p,g,h,m=W(()=>{let y=l(t,t.state,t.context),x=t.context&&t.context.designSystem,T;if(y&&typeof y=="object"&&y===d&&x===g){let _=Wa(y);T=_!==null&&_===p?h:Us(t,y),p=_}else T=Us(t,y),p=void 0;d=y,g=x,h=T;let v=Wa(T);(v===null||v!==f||!Ga(t.node,u,t))&&(f=v,Hk(t.node,u,T,t),Xn(t.node,T,t),u=yu(t.node,T,t))},{depth:n.path.length,label:yt(n,"style")});n.__effects.push(m),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let l=t.style[c];if(typeof l!="function")continue;let f=Ft(t,Ha(t.styleDeps,c),l),u,d=null,p=W(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!Ga(t.node,d,t)){u=h;let m=Us(t,{[c]:g});Hk(t.node,d,Object.assign({},m,{[c]:""}),t),Xn(t.node,m,t),d=yu(t.node,m,t)}}}catch(g){Zt(n,"style."+c,g)}},{depth:n.path.length,label:yt(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=Ft(t,Ha(t.attrDeps,c),t.attr[c]),f=c,u=f.toLowerCase(),d=()=>{let g=l(t,t.state,t.context);return typeof g=="string"&&g.includes("{{")&&(g=Gt.call(t,g,t.state)),g},p=W(()=>{try{let g=qn(t,n,u,d);if(g===we)return;t.node?.setAttribute&&js(t.node,f,g)}catch(g){Zt(n,"attr."+f,g)}},{depth:n.path.length,label:yt(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=f.toLowerCase(),d=()=>Gt.call(t,l,t.state),p=W(()=>{try{let g=qn(t,n,u,d);if(g===we||!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,Kn(f,g??""))}catch(g){Zt(n,"attr."+f,g)}},{depth:n.path.length,label:yt(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let l=t.aria[c];if(typeof l=="string"&&l.includes("{{")){let g=l,h="aria-"+c.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),m=()=>Gt.call(t,g,t.state),y=W(()=>{try{let x=qn(t,n,h,m);if(x===we||!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,Kn(h,x??""))}catch(x){Zt(n,"aria."+c,x)}},{depth:n.path.length,label:yt(n,"aria."+c)});y._attrName=h,n.__effects.push(y);continue}if(typeof l!="function")continue;let f=Ft(t,Ha(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),d=()=>f(t,t.state,t.context),p=W(()=>{try{let g=qn(t,n,u,d);if(g===we||!t.node?.setAttribute)return;js(t.node,u,g)}catch(g){Zt(n,"aria."+c,g)}},{depth:n.path.length,label:yt(n,"aria."+c)});p._attrName=u,n.__effects.push(p)}if(t.data&&typeof t.data=="object")for(let c in t.data){let l=t.data[c];if(typeof l=="string"&&l.includes("{{")){let h=l,m="data-"+c.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),y=()=>Gt.call(t,h,t.state),x=W(()=>{try{let T=qn(t,n,m,y);if(T===we||!t.node||!t.node.setAttribute)return;t.node.setAttribute(m,T??"")}catch(T){Zt(n,"data."+c,T)}},{depth:n.path.length,label:yt(n,"data."+c)});x._attrName=m,n.__effects.push(x);continue}if(typeof l!="function")continue;let f=Ft(t,Ha(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>f(t,t.state,t.context),g=W(()=>{try{let h=qn(t,n,d,p);if(h===we||!t.node?.setAttribute)return;h==null||h===!1?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&t.node.setAttribute(d,h===!0?"":h)}catch(h){Zt(n,"data."+c,h)}},{depth:n.path.length,label:yt(n,"data."+c)});g._attrName=d,n.__effects.push(g)}let i=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(i)for(let c in i){if(typeof i[c]!="function")continue;let l=Ft(t,Ha(t.classDeps,c),i[c]),f=W(()=>{try{let u=l(t,t.state,t.context);if(!t.node?.classList)return;typeof u=="string"?t.node.classList.add(u):u?t.node.classList.add(c):t.node.classList.remove(c)}catch(u){Zt(n,"class."+c,u)}},{depth:n.path.length,label:yt(n,"class."+c)});n.__effects.push(f)}!o&&typeof t.if=="function"&&AD(t,n,t.if);for(let c of Object.keys(t)){if(Ht.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||en(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(sn(u,c)&&!yr(u,c)){let d=Ro(c)||c,p=Ft(t,t[c+"Deps"],f),g=d.toLowerCase(),h=()=>{let y=p(t,t.state,t.context);return typeof y=="string"&&y.includes("{{")&&(y=Gt.call(t,y,t.state)),y},m=W(()=>{try{let y=qn(t,n,g,h);if(y===we)return;let x=mr[c];if(x&&y!=null){let T=x(t);T!==void 0&&(y=T)}t.node?.setAttribute&&js(t.node,d,y,!0)}catch(y){Zt(n,c,y)}},{depth:n.path.length,label:yt(n,c)});m._attrName=d.toLowerCase(),n.__effects.push(m)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Ht.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||en(c)||yr(a,c)||mr[c]||!sn(a,c))continue;let u=Ro(c)||c,d=u.toLowerCase(),p=()=>Gt.call(t,l,t.state),g=W(()=>{try{let h=qn(t,n,d,p);if(h===we||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,Kn(u,h??""))}catch(h){Zt(n,c,h)}},{depth:n.path.length,label:yt(n,c)});g._attrName=u.toLowerCase(),n.__effects.push(g)}if(l6(t),S6(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=W(()=>{let p=[];for(let m=0;m<l.length;m++){let y=l[m];try{p[m]=typeof y=="function"?y(t,t.state,t.context):t.state?.[y]}catch{p[m]=void 0}}if(!f){f=!0,u=p;return}let g=p.length!==u.length;for(let m=0;!g&&m<p.length;m++)p[m]!==u[m]&&(g=!0);let h=u;u=p,g&&nn(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(m){if(on(t,"onStateUpdate",m),t.context?.strictMode)throw m}})},{depth:n.path.length,label:yt(n,"onStateUpdate")});n.__effects.push(d)}h6(t)}function j1(t){let e=t.parent,n=e?.node;if(!n||!t.node){Za(t,t.parent);return}let o=null,r=Object.keys(e),s=r.indexOf(t.key);for(let a=s+1;a<r.length;a++){let c=e[r[a]];if(c?.node?.parentNode===n){o=c.node;break}}t.node.parentNode===n&&t.node.nextSibling===o||(o?n.insertBefore(t.node,o):n.appendChild(t.node)),ig()}function ED(t){vD(t),A6(t),FD(t),$6(t),N6(t)}function AD(t,e,n){let o=Ft(t,t.ifDeps,n),r=W(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,R3(t,s),o=Ft(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=o(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=hr(t)),t.node&&(t.node.ref=t),j1(t),vD(t),FD(t),Kt("Render",t,{}),jk(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=zn(t)),Kt("Init",t,{});let c=it.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||hr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let f=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(f),e.__fragmentAnchor=f}Kt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),WD(t,{}),TD(t,{skipIfEffect:!0}),ED(t),KD(t,{}),j1(t),Kt("Create",t,{}),Kt("Complete",t,{}),Kt("Render",t,{}),Kt("RenderRouter",t,{}),jk(t,{})}},{depth:e.path.length,label:yt(e,"if")});e.__effects.push(r)}var we=Symbol("builtTextKept");function U1(t,e,n){let o=e.__builtText;if(!o)return n();if(o.parentNode!==t.node||typeof Zo!="function")return e.__builtText=null,n();let{value:r,ready:s}=Zo(n);return s?r:we}function qn(t,e,n,o){let r=e.__builtAttrs;if(!r||!r.values.has(n))return o();let s=t.node;if(s!==r.node||typeof Zo!="function")return e.__builtAttrs=null,o();let{value:i,ready:a}=Zo(o);return a?(r.values.delete(n),r.values.size||(e.__builtAttrs=null),i):(s.setAttribute(n,r.values.get(n)),we)}function Fs(t,e){let n=t.node;if(!n)return;t.__ref&&t.__ref.__builtText&&(t.__ref.__builtText=null);let o=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==o&&(n.nodeValue=o);return}let r=t.__ref,s=r?r.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==o&&(s.nodeValue=o):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(o),n.insertBefore(s,n.firstChild)):(n.textContent=o,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),r&&(r.__textNode=s||null)}function Z3(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function Q3(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function js(t,e,n,o){n==null||n===!1&&!Vs(e)?Og(t,e,null):typeof n=="function"||typeof n=="object"||(o&&e==="src"&&"src"in t?t.src=n:Og(t,e,Kn(e,n)))}function Og(t,e,n){let o=Z3(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),Q3(t,o)}function V1(t,e){let n=t.node;if(!n||!("value"in n))return;let o=e==null?"":String(e);if(n.value===o)return;let r=n.ownerDocument,s=!!r&&r.activeElement===n,i=s&&typeof n.selectionStart=="number"?n.selectionStart:null,a=s&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=o,s&&i!=null&&a!=null)try{n.setSelectionRange(i,a)}catch{}let c=t.__ref&&t.__ref.__autoGrow;c&&c.active&&c.resize()}function vD(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&Fs(t,t.text),VD(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&!(typeof t.value=="string"&&t.value.includes("{{"))&&"value"in e){let n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let o in t.style)if(typeof t.style[o]=="function"){n={};for(let r in t.style)typeof t.style[r]!="function"&&(n[r]=t.style[r]);break}Xn(e,Us(t,n),t)}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let o=t.attr[n];typeof o=="function"||typeof o=="object"||o!=null&&(typeof o=="string"&&o.includes("{{")||o===!1&&!Vs(n)||e.setAttribute&&e.setAttribute(n,Kn(n,o)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let o=t.data[n];typeof o=="function"||typeof o=="object"||o==null||o===!1||typeof o=="string"&&o.includes("{{")||e.dataset&&(e.dataset[n]=o===!0?"":o)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(o=>o&&e.classList.add(o));else if(typeof n=="object")for(let o in n){let r=typeof n[o]=="function"?n[o](t,t.state,t.context):n[o];r&&e.classList.add(typeof r=="string"?r:o)}}}}function Wa(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function J3(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function yu(t,e,n){if(!t||!t.style||!e)return null;let o=t.style,r=[];for(let s in e){if(e[s]==null||s.charAt(0)==="&")continue;let a=Yn(s);r.push(a,Qa(n,o,a),Xk(n,o,a))}return r}function CD(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function OD(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function Yn(t){return vo(t)}function Hk(t,e,n,o){if(!t||!t.style||!e||!e.length)return;let r=t.style,s=new Set;if(n&&typeof n=="object")for(let i in n)n[i]==null||i.charAt(0)==="&"||s.add(Yn(i));for(let i=0;i<e.length;i+=3){let a=e[i];s.has(a)||Qa(o,r,a)===e[i+1]&&(o&&a==="display"?Au(o,""):typeof r.removeProperty=="function"&&r.removeProperty(a))}}function Eg(t,e,n){let o=t.__ref;o&&(n?(o.__heldInline||(o.__heldInline=new Map)).set(e,n):o.__heldInline&&o.__heldInline.delete(e))}function t6(t,e,n){if(t.__heldInline){for(let[o,r]of t.__heldInline)if(o!==e){for(let s=0;s<r.length;s+=3)if(r[s]===n)return!0}}return!1}function RD(t,e,n,o){let r=t.__ref,s=t.node;if(!r||!n||!s||!s.style)return;let i=r.__inlineCssKeys,a=null;for(let u=0;u<n.length;u+=3){let d=n[u];o&&o.has(d)||t6(r,e,d)||(a||(a=[]),a.push(u),i&&i.delete(d))}if(!a)return;let c=i&&qk(t,i),l=s.style,f=[];for(let u of a){let d=n[u];c&&c[d]!==void 0||Qa(t,l,d)===n[u+1]&&f.push(d)}for(let u of f)u==="display"?Au(t,""):typeof l.removeProperty=="function"&&l.removeProperty(u)}function e6(t,e,n){let o=[];for(let i=0;i<e.length;i+=3)o.push(e[i]);let r=!1;for(let i in n){let a=pr[i];o.some(c=>a.includes(c))&&(r=!0,o.includes(i)||o.push(i))}if(!r)return;let s=t.node.style;e.length=0;for(let i of o)e.push(i,Qa(t,s,i),Xk(t,s,i))}function Ga(t,e,n){if(!e||!t||!t.style)return!1;let o=t.style;for(let r=0;r<e.length;r+=3)if(Qa(n,o,e[r])!==e[r+1]||Xk(n,o,e[r])!==e[r+2])return!1;return!0}var xu=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,DD=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",Pg=t=>xu(t)?t:"--"+t;function Mg(t,e){if(!Sr(t))return null;let n=null;for(let o of Object.keys(t)){if(!o)continue;let r=t[o];if(typeof r=="function"){if(!e)continue;r=r(e,e.state,e.context)}DD(r)&&(n||(n={}),n[Pg(o)]=r)}return n}function LD(t,e,n,o,r){ID(t,r,Ft(t,o,n),s=>DD(s)?{[e]:s}:null)}function ID(t,e,n,o,r){let s=t.__ref,i,a=null,c=W(()=>{nn(t,()=>{try{let l=o(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=Wa(l);(u===null||u!==i||!Ga(f,a))&&(i=u,Hk(f,a,l),l&&Xn(f,l),a=l?yu(f,l):null,r&&r(l))}catch(l){Zt(s,e,l)}})},{depth:s.path.length,label:yt(s,e)});s.__effects.push(c)}function n6(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){o6(t,n),e.__exec.vars=n;return}if(Sr(n))for(let o of Object.keys(n)){let r=n[o];!o||typeof r!="function"||LD(t,Pg(o),r,Ha(t.varsDeps,o),"vars."+o)}}function o6(t,e){let n=t.__ref;ID(t,"vars",Ft(t,t.varsDeps,e),o=>Mg(o),o=>{n.__varsInline=o?new Set(Object.keys(o)):null})}function zk(t,e){if(typeof t[e]=="function"&&(yr(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!xu(e))return!1;let n=t.vars;if(typeof n=="function"){let o=t.__ref&&t.__ref.__varsInline;return!!(o&&o.has(e))}if(!Sr(n))return!1;for(let o of Object.keys(n))if(typeof n[o]=="function"&&Pg(o)===e)return!0;return!1}function r6(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(Yn(n)));return e}function s6(t,e,n,o){let r=t.__ref;if(!r)return;let s=null;if(n)for(let i of n){if(o&&o.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=Yn(i);pr[c]&&(s||(s={}),s[c]=a)}r.__declaredLonghands=s}function qk(t,e){let n=t.__ref,o=n&&n.__declaredLonghands;if(!o||!e)return null;let r=null;for(let s in o){if(e.has(s))continue;let i=pr[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(r||(r={}),r[s]=o[s])}return r}function H1(t,e,n,o){let r=t.node,s=r6(e),i=s&&qk(t,s);if(n&&RD(t,o,n,i?new Set([...s,...Object.keys(i)]):s),Xn(r,e,t),!s)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let c of s)a.__inlineCssKeys.add(c);else a.__inlineCssKeys=new Set(s);return i?(Xn(r,i),Object.assign({},e,i)):e}function i6(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=qk(t,e.__inlineCssKeys);if(!n)return;let o=[];if(e.__heldInline)for(let r of e.__heldInline.values())Ga(t.node,r,t)&&o.push(r);Xn(t.node,n);for(let r of o)e6(t,r,n)}function Us(t,e){return!e||typeof e!="object"?e:nn(t,()=>{try{return ck(e,t)}catch{return e}})}var PD="none",Yk=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),z1=t=>CD(t,"display")===PD&&OD(t,"display")==="important";function MD(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function Rg(t,e,n,o){let r=t.__ref,s=t.node;if(!r||!s||!s.style)return;let i=r.__hiddenBy,a=!!(i&&i.size);n?(i||(i=r.__hiddenBy=new Set),i.add(e)):i&&i.delete(e);let c=s.style;i&&i.size?z1(c)||c.setProperty("display",PD,"important"):(a||o&&z1(c))&&MD(c,r.__shownDisplay||null)}function Au(t,e,n){let o=t.__ref,r=e?[String(e),n||""]:null;o&&(o.__shownDisplay=r);let s=t.node;!s||!s.style||Yk(o)||MD(s.style,r)}function Qa(t,e,n){let o=n==="display"&&t&&t.__ref;return Yk(o)?o.__shownDisplay?o.__shownDisplay[0]:"":CD(e,n)}function Xk(t,e,n){let o=n==="display"&&t&&t.__ref;return Yk(o)?o.__shownDisplay?o.__shownDisplay[1]:"":OD(e,n)}function Xn(t,e,n){if(!t||!e||!t.style)return;let o=null;for(let r in e){let s=e[r];if(s!=null){if(r.charAt(0)==="&"&&typeof s=="object"){o||(o={}),o[r]=s;continue}try{let i=String(s);if(typeof s=="object"&&i==="[object Object]")continue;let a=vo(r),c=i.trim(),l=/\s*!important\s*$/.test(c),f=c.replace(/\s*!important\s*$/,"");if(n&&a==="display"){Au(n,f,l?"important":"");continue}t.style.setProperty(a,f,l?"important":"")}catch{}}}o&&a6(t,o)}function a6(t,e){let n=`_ds${fD.scopedStyleId++}`;t.classList.add(n);let o=t.ownerDocument,r=o.querySelector("style[data-smbls-scoped]");r||(r=o.createElement("style"),r.setAttribute("data-smbls-scoped",""),o.head.appendChild(r));let s="";for(let i in e){let a="."+n,c=Ao(i.replace(/&/g,a)).map(f=>f.includes(a)?f:a+f).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let d in l){let p=l[d];if(typeof p=="object"){let g=Ao(c),h=d.includes("&")?g.map(y=>d.replace(/&/g,y)).join(", "):g.map(y=>`${y} ${d}`).join(", "),m="";for(let y in p)m+=`${Yn(y)}: ${p[y]};`;u+=Eo(`${h} { ${m} }`,h)+`
61
- `}else f+=`${Yn(d)}: ${p};`}f&&(s+=Eo(`${c} { ${f} }`,c)+`
62
- `),u&&(s+=u)}}s&&(r.textContent+=s)}var W1=new Set;function G1(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function c6(t,e,n){let o=G1(n);queueMicrotask(()=>{if(!t.__ref)return;let r;try{r=e(t,t.state,t.context)}catch{return}if(G1(r)===o)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";W1.has(s)||(W1.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.join(", ")||"(none)"}], probed [${Array.isArray(r)?r.join(", "):String(r)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element core.js) \u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function l6(t){let e=t.subscribeTo,n=typeof e=="function",o=e;if(n)try{o=e(t,t.state,t.context)}catch{o=null}if(n&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&c6(t,e,Array.isArray(o)?o:[]),!Array.isArray(o)||o.length===0)return;let r=t.__ref;for(let s=0;s<o.length;s++){let i=o[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),f={value:!1},u=W(()=>{let d=t.state&&(xt(t.state)?t.state.root:null);if(!d||!xt(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(xt(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&nn(t,()=>{try{if(wg(r)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>Gn(r,!1),m=>{Gn(r,!0),Wn("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}):(Gn(r,!1),h===!1&&(g=!0))}}catch(h){Gn(r,!0),Wn("error",t,{hook:"onBeforeUpdate",error:h})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",h)}}),!g&&t.node&&r.__effects)for(let h=0;h<r.__effects.length;h++){let m=r.__effects[h];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute=="function"&&m._execute()}!g&&typeof t.onUpdate=="function"&&nn(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){Wn("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:r.path.length,label:yt(r,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,r.__effects.push(u)}}function Zk(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&!t.startsWith("@container")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}function Qk(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];if(!n)return t;if(typeof n=="string"&&!/^@(supports|container)\b/.test(n)){let o=f6(e);if(o){let r=tk(n);if(r)return`@container ${o} ${r}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function Jk(t,e,n,o){return ks(t)?xs(()=>ku(e,n,!1,o)):ku(e,n,!1,o)}function f6(t){let e=t.__ref;if(e&&e.__breakpointContainer!==void 0)return e.__breakpointContainer;let n=null;for(let o=t.parent;o&&typeof o=="object";o=o.parent){let r=o.breakpointsFrom;if(r!=null&&r!==!1){n=gg(r,o);break}}return e&&(e.__breakpointContainer=n),n}var K1=new Set;function u6(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",o=n+"::"+t;K1.has(o)||(K1.add(o),console.warn(`[smbls/css] "${t}" at ${n} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}var q1=new Map;function d6(t){let e=q1.get(t);if(e)return e;e=[];let n=o=>{if(o)for(let r of o)e.push(uu(r))};return n(pr[t]),n(_g[t]),q1.set(t,e),e}function Y1(t,e,n){if(zk(t,e)||n&&n.has(e))return!0;let o=d6(Yn(e));for(let r=0;r<o.length;r++){let s=o[r];if(zk(t,s)||n&&n.has(s))return!0}return!1}function ku(t,e,n,o){let r={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(r)):null;if(St[a]){let u=St[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let p of d)p&&Object.assign(r,p)}}else r[a]=c;if(l)for(let u in r)f.has(u)||s.add(u)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c=="function"&&(c=c(e,e.state,e.context)),!(c==null||typeof c=="function")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let u in c){let d=c[u];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(u,d,Y1(e,u,o))}continue}if(a==="vars"){let u=Mg(c,e);if(u)for(let d in u)i(d,u[d],zk(e,d)||!!(o&&o.has(d)));continue}if(Zk(a,e)){let u=ku(c,e,!1,o);Object.keys(u).length&&(r[`[data-theme="${a.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&u6(a,e);continue}let l=Qk(a,e),f=Jk(l,c,e,o);Object.keys(f).length&&(r[l]=f);continue}i(a,c,Y1(e,a,o))}}if(n)for(let a in r)s.add(a);for(let a of s){let c=r[a];typeof c=="string"&&!c.includes("!important")&&(r[a]=c+" !important")}return r}var Sr=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function BD(t,e){for(let n in e){let o=e[n];t[n]=Sr(o)?BD(Sr(t[n])?t[n]:{},o):o}return t}function p6(t,e){if(!Sr(e))return;let n;for(let o of t.split(" ")){let r=o?e[o]:null;Sr(r)&&(n=BD(n||{},r))}return n}function t0(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t0(t[n],e+1))return!0}return!1}function ND(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(Zk(t,n)){let s=ku(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let o=Qk(t,n),r=Jk(o,e,n);return Object.keys(r).length?{cssProp:o,block:r}:null}function h6(t){let e=t.__ref;for(let n of Object.keys(t)){if(!gD(n))continue;let o=t[n];if(!o||typeof o!="object"||Array.isArray(o)||!t0(o))continue;let r=null,s,i=W(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&ht(a);let c,l=!1;try{let f=ND(n,o,t),u=f?Wa(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=Me({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&dt()}if(!(l||!t.node.classList)){if(r)for(let f of r)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);r=c}},{depth:e.path.length,label:yt(e,"cssBlock("+n+")")});e.__effects.push(i)}}var g6=()=>!0,m6=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!St[t]||!!(Mt&&Mt.has(t))||xu(t)||t==="vars"};function y6(t,e,n){let o={},r=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(m6(a,n[a])||Ht.has(a))?o[a]=!0:r=!0);if(!r)return null;let s=vk({[e]:n},t.tag||"div",o,g6),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function X1(t,e,n,o,r,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in o){let f=e.owners.get(l),u=f===n;if(!s&&f!==void 0&&!u)continue;let d;try{d=o[l](t)}catch(g){Zt(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Gt.call(t,d,t.state)),u&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&$D(i,e,l);continue}let p=d===!1&&!Vs(l)?null:String(Kn(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),Og(i,l,p),e.owners.set(l,n),e.written.set(l,p))}r.appliedAttrs=a}function $D(t,e,n){t.getAttribute(n)===e.written.get(n)&&Og(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function _6(t,e,n,o){let r=o.appliedAttrs;if(o.appliedAttrs=null,!!r)for(let s of r)e.owners.get(s)===n&&$D(t.node,e,s)}function FD(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let o of e.owners.keys()){let r=e.written.get(o),s=n.getAttribute(o);s!==r&&(e.base.set(o,s),r==null?n.removeAttribute(o):n.setAttribute(o,r))}}var Ik,b6=()=>Ik===void 0?Ik=!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J():Ik;function Z1(t,e){let n=Ld;typeof n=="function"?t.untrackedReads+=n(e):e()}function S6(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,o=new Map;for(let r of Object.keys(t)){let s=r.charAt(0);if(s!=="."&&s!=="!")continue;let i=r.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let m=i.split(/[:@\s>~+[\]]/)[0];globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] conditional \`${r}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${m}: { '${i.slice(m.length)}': {...} }\`.`)}continue}let a=t[r];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,hides:!1,probe:!1,untrackedReads:0},f=y6(t,r,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let m in a){if(!Object.prototype.hasOwnProperty.call(a,m))continue;let y=m.charAt(0),x=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&x&&typeof x=="object"&&!Array.isArray(x))){if(m==="vars"&&Sr(x)){for(let T of Object.keys(x))T&&u.add(Pg(T));continue}u.add(m)}}let d=()=>{let m,y=l.probe,x;if(y?Z1(l,()=>{x=t[i]}):x=t[i],x===void 0){let _=!!t.state&&i in t.state,b=t.state?t.state[i]:void 0;if(_||b!==void 0)m=b;else{let S=t.context?.cases?.[i];if(S===void 0)return;try{m=typeof S=="function"?S.call(t,t):S}catch(w){m=!1,e.__conditionalError=w,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,w?.message||w)}}}else if(typeof x=="function")try{y?Z1(l,()=>{m=x(t,t.state,t.context)}):m=x(t,t.state,t.context)}catch(_){m=!1,e.__conditionalError=_,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,_?.message||_)}else m=x;y&&(l.probe=!1);let T=c?!m:!!m;if(!t.node)return;let v=t.context?.designSystem;if(T===l.lastMatch){if(T&&f&&t.node.setAttribute){v&&ht(v);try{X1(t,n,r,f,l,!1)}finally{v&&dt()}}return}l.lastMatch=T,v&&ht(v);try{if(T){let _={},b={},S=!1,w=!1;for(let C in a){if(!Object.prototype.hasOwnProperty.call(a,C))continue;let O=a[C],N=C.charAt(0);if((N===":"||N==="@"||N==="&"||N==="[")&&O&&typeof O=="object"&&!Array.isArray(O)){if(Zk(C,t)){let M=ku(O,t,!1,u);Object.keys(M).length&&(b[`[data-theme="${C.slice(1)}"] &`]=M,S=!0)}else{let M=Qk(C,t),K=Jk(M,O,t,u);Object.keys(K).length&&(b[M]=K,S=!0)}continue}let B=typeof O=="function"?O(t,t.state,t.context):O;if(B!=null){if(C==="hide"||C==="show"){let M=St[C](B,t,t.state,t.context);M&&M.display&&(w=!0)}else if(St[C]){let M=St[C](B,t,t.state,t.context);if(M){let K=Array.isArray(M)?M:[M];for(let q of K)q&&Object.assign(_,q)}}else if(Mt&&Mt.has(C))_[C]=B;else if(xu(C))_[C]=B;else if(C==="vars"){let M=Mg(B,t);M&&Object.assign(_,M)}}}(w||l.hides)&&(l.hides=w,Rg(t,r,w));let A=Object.keys(_);if(A.length){Xn(t.node,_,t);for(let C of A){let O=o.get(C);O||(O=[],o.set(C,O));let N=O.findIndex(B=>B.key===r);N!==-1&&O.splice(N,1),O.push({key:r,value:_[C]})}l.appliedKeys=A}else l.appliedKeys=null;if(S){let C=Me(b,null,t.context?.cssPrefix,{state:!0}),O=C?C.split(" ").filter(Boolean):[];if(O.length&&t.node.classList){for(let N of O)t.node.classList.add(N);l.appliedClasses=O}else l.appliedClasses=null}else if(l.appliedClasses){for(let C of l.appliedClasses)t.node.classList.remove(C);l.appliedClasses=null}f&&t.node.setAttribute&&X1(t,n,r,f,l,!0)}else{if(l.appliedAttrs&&_6(t,n,r,l),l.appliedKeys){for(let _ of l.appliedKeys){let b=o.get(_);if(!b)continue;let S=b.findIndex(w=>w.key===r);if(S!==-1)if(b.splice(S,1),b.length){let w=b[b.length-1].value,A=vo(_),C=String(w).trim().replace(/\s*!important\s*$/,"");Qa(t,t.node.style,A)!==C&&Xn(t.node,{[_]:w},t)}else o.delete(_),xu(_)?t.node.style.removeProperty(_):vo(_)==="display"?Au(t,""):t.node.style[_]=""}l.appliedKeys=null}if(l.hides&&(l.hides=!1,Rg(t,r,!1)),l.appliedClasses){for(let _ of l.appliedClasses)t.node.classList.remove(_);l.appliedClasses=null}}}finally{v&&dt()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=Ft(t,p,d);b6()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=W(g,{depth:e.path.length,label:yt(e,"conditional("+r+")")});l.probe&&(l.probe=!1),l.untrackedReads>0&&h._sources.size===0&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] conditional \`${r}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate read state on its first run without subscribing to it (\`in\`, Object.keys, a \`__\` key, parse()), so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). Declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally, or \`${i}Deps: []\` when it is static on purpose.`)),e.__effects.push(h)}}var Pk=new WeakSet,Mk=new WeakMap;function w6(t){let e=Mk.get(t);if(e==="painted")return!1;if(e===void 0){Mk.set(t,"open");let n=t.defaultView,o=()=>{Mk.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(o):setTimeout(o,0)}return!0}var Bk=new WeakSet;function x6(t){if(Bk.has(t))return;Bk.add(t);let e=()=>{Bk.delete(t);let o=t.body||t.documentElement;o&&o.offsetWidth},n=t.defaultView;n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(e):setTimeout(e,0)}function k6(t,e){let n=t.ownerDocument;if(n&&!w6(n)){if(it.hydration!==null&&e&&e.context&&e.context.__hydration){x6(n);return}Pk.has(n)||(Pk.add(n),queueMicrotask(()=>{Pk.delete(n);let o=n.body||n.documentElement;o&&o.offsetWidth}))}}var Nk=new WeakSet,Q1=!1;function J1(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function Wk(t,e){let n={...t};for(let o in e){let r=e[o],s=n[o];n[o]=r&&typeof r=="object"&&s&&typeof s=="object"?Wk(s,r):r}return n}function jD(t,e){let n={};for(let o in t){let r=t[o];if(r&&typeof r=="object"){let s=jD(r,e);Object.keys(s).length&&(n[o]=s)}else e(o)||(n[o]=r)}return n}function tD(t,e,n){let o=e0(t);if(!o)return!1;for(let r=0;r<o.length;r+=3){let s=o[r+1];if(!n.has(s))continue;let i=e[s];if(!(i==null||typeof i=="object")&&YR(o[r],i,o[r+2]))return!0}return!1}function T6(t,e,n){let o=1/0,r=-1/0;for(let i of e.values())i<o&&(o=i),i>r&&(r=i);if(n)for(let i of n.values())i>r&&(r=i);if(r<=o)return null;let s=null;for(let[i,a]of e){if(a===r)continue;let c=e0(i);if(c)for(let l=0;l<c.length;l+=3){let f=c[l],u=c[l+1],d=c[l+2],p=t[u]!=null?e.get(u):void 0,g=n&&n.get(f),h=p!==void 0&&p>a&&bg(f,t[u],d),m=!h&&g!==void 0&&g>a&&bg(f,void 0,d);if(h||m){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var eD=new Map;function e0(t){let e=eD.get(t);if(e!==void 0)return e;let n=Yn(t),o=pr[n];if(e=null,Array.isArray(o)){e=[];for(let r of o)e.push(r,uu(r),n)}return eD.set(t,e),e}var UD=new Set(["page","zoom"]),E6=(t,e)=>{UD.add(t);let n=typeof CSS<"u"?CSS:null;if(!n||typeof n.supports!="function")return;let o=!1;try{o=n.supports(Yn(t),String(e))}catch{o=!1}o&&console.warn(`[smbls] css: "${t}: ${e}" is valid CSS, but smbls has no entry for "${t}", so the element gets no CSS for it. Write it in style: { ${t}: \u2026 } for now, and report the missing property.`)};function VD(t){let{node:e}=t;if(!e)return;if(Q1||(Q1=!0,Me({display:"none"})),Nk.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Nk.add(t);let n=t.context?.designSystem;n&&ht(n),pg();try{let o={},r=!1,s=[],i=null,a=null,c=null,l=null,f=t.__ref&&t.__ref.__mergeLayer,u,d=null,p=null,g=!1,h=(_,b)=>{if(b&&typeof b=="object"&&J1(_)){c||(c={});let S=c[_];S&&(b=Wk(S,b)),c[_]=b}else(b===null||typeof b!="object")&&(l||(l=new Set),l.add(_),u!==void 0&&(d||(d=new Map),d.set(_,u)));o[_]=b};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&St.theme){let _=St.theme(t.theme,t,t.state,t.context);if(_){let b=S=>{for(let w in S){let A=S[w];A&&typeof A=="object"?J1(w)&&(i||(i={}),i[w]=A):e0(w)&&(a||(a=[])).push(w),o[w]=A}};if(Array.isArray(_))for(let S of _)S&&b(S);else b(_);r=!0}}let m=(_,b)=>{if(_==="vars"){let S=Mg(b);if(S){for(let w in S)h(w,S[w]);r=!0}return}if(_==="hide"||_==="show"){let S=St[_](b,t,t.state,t.context);S&&S.display&&(g=!0);return}if(St[_]){let S=St[_](b,t,t.state,t.context);if(S){if(Array.isArray(S)){for(let w of S)if(w)for(let A in w)h(A,w[A])}else for(let w in S)h(w,S[w]);r=!0}}else if(Mt&&Mt.has(_))b!=null&&typeof b!="object"&&(h(_,b),r=!0);else if(_.charCodeAt(0)===45)b!=null&&typeof b!="object"&&(h(_,b),r=!0);else if(_.charAt(0)==="&"||_.charAt(0)==="@"||_.charAt(0)===":"||_.charAt(0)==="["){if(b&&typeof b=="object"&&!Array.isArray(b)){if(t0(b))return;let S=ND(_,b,t);S&&(h(S.cssProp,S.block),r=!0)}}else(typeof b=="string"||typeof b=="number")&&!UD.has(_)&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&E6(_,b)};if(typeof t.class=="string"){let _=p6(t.class,t.context?.designSystem?.class);if(_)for(let b in _)m(b,_[b])}let y=l?new Set(l):null,x=t.tag||"div";for(let _ of Object.keys(t)){if(typeof t[_]=="function"){let S=f&&f.get(_);S!==void 0&&yr(x,_)&&(p||(p=new Map),p.set(Yn(_),S));continue}if(u=f?f.get(_):void 0,_==="vars"){m(_,t[_]);continue}if(Ht.has(_)||_==="theme")continue;let b=_.charCodeAt(0);b>=65&&b<=90||en(_)||Tg(x,_)||m(_,t[_])}u=void 0;let T=d?T6(o,d,p):null;if(a&&l)for(let _ of a)l.has(_)||!(_ in o)||tD(_,o,l)&&delete o[_];if(i){let _=l?b=>l.has(b)||tD(b,o,l):null;for(let b in i){let S=_?jD(i[b],_):i[b];c&&c[b]&&(S=Wk(S,c[b])),Object.keys(S).length?o[b]=S:delete o[b]}}if(s6(t,o,l,T?new Set([...y||[],...T]):y),Rg(t,"static",g),r){o.display&&String(o.display).includes("!important")&&(Xn(e,{display:o.display},t),delete o.display);let _=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof _=="string"&&_!==""&&o.display&&o.display!==_&&(o.display=_);let b=Me(o,null,t.context?.cssPrefix);if(s=b?b.split(" ").filter(Boolean):[],b&&e.classList){let S=s,w=!1;for(let A of S)e.classList.add(A),w||(A.charCodeAt(0)===95&&A.charCodeAt(1)===99||A.charCodeAt(0)===95&&A.indexOf("_c",1)!==-1)&&(w=!0);w&&k6(e,t)}}let v=t.__ref;if(v){let _=v.__staticCssClasses;if(_&&e.classList){let b=new Set(s);for(let S of _)b.has(S)||e.classList.remove(S)}v.__staticCssClasses=s}i6(t)}finally{hg(),n&&dt(),Nk.delete(t)}}var dk=t=>!!St[t]||!!(Mt&&Mt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function pk(t){t&&t.node&&VD(t)}function A6(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let s=t.aria[r];if(typeof s=="function"||typeof s=="object"||s==null||typeof s=="string"&&s.includes("{{"))continue;let i="aria-"+r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,Kn(i,s))}let n=Ak(t);for(let r in n){let s=n[r];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(r,s===!0?"":s)}let o=t.tag||"div";for(let r of Object.keys(t)){if(typeof t[r]=="function"||Ht.has(r)||r==="on"||n[r]!==void 0)continue;let s=r.charCodeAt(0);if(!(s>=65&&s<=90)&&!en(r)&&!yr(o,r)&&sn(o,r)){let i=t[r];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!mr[r])continue;i=Gt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!Vs(Ro(r)||r))continue;let a=Ro(r)||r;e.setAttribute(a,Kn(a,i))}}}function hk(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let o=e.charCodeAt(0);if(o>=65&&o<=90||en(e))return;let r=t.tag||"div";if(yr(r,e)||!sn(r,e))return;let s=Ro(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===i&&!d._disposed&&typeof d._execute=="function"&&(c=!0,d._execute())}if(c)return;let l=t[e],f=mr[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Gt.call(t,l,t.state)),js(n,s,l)}function v6(t,e){let n=t.node,o=t.__ref,r=o.__autoGrow;if(!e){if(r&&r.active){try{n.removeEventListener("input",r.resize)}catch{}oD(r),_r.delete(t),n.style.height="",r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""),sD(n,r,!1),r.active=!1,r.appliedMax=null,r.lastMeasure=0}return}r||(r=o.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){Tu(t,!0);return}if(!(n.scrollHeight>0)){r.awaitingLayout=!0,nD(t,r);return}r.awaitingLayout=!1;let i=R6(n),a=D6(i),c=n.style.height;n.style.height="0px",a&&$k(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&$k(n);return}let f=L6(n,i),u=f!=null&&l<f?f:l,d=M6(i),p=d!=null&&u>d;n.style.height=P6(p?d:u,i)+"px",a&&$k(n),sD(n,r,p),r.lastMeasure=l,r.lastWidth=n.clientWidth,nD(t,r)}},o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{try{n.removeEventListener("input",r.resize)}catch{}oD(r),_r.delete(t)})),r.active||(n.addEventListener("input",r.resize),r.active=!0,O6(t,r));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==r.appliedMax&&(s==null?r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,r.appliedMax=s),r.resize()}function Tu(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),_r.add(t),Eu())}function C6(){let t=Array.from(_r);_r.clear();for(let e=0;e<t.length;e++){let n=t[e],o=n.node,r=n.__ref?.__autoGrow;if(!(!o||!r||!r.active)){if(!o.isConnected){r.firstAttemptAt==null&&(r.firstAttemptAt=Xa()),r.attachAttempts+=1,r.attachAttempts<=pD&&Xa()-r.firstAttemptAt<hD&&(_r.add(n),Eu());continue}r.attachAttempts=0,r.firstAttemptAt=null,r.resize()}}}function nD(t,e){if(e.watch)return;let n=t.node;if(!n)return;let o=n.ownerDocument&&n.ownerDocument.defaultView,r=o&&o.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof r!="function")return;let s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,Tu(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,Tu(t,!0))},i;try{i=new r(s),i.observe(n)}catch{return}e.watch=i}function oD(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function O6(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,o=n&&n.fonts&&n.fonts.ready;!o||typeof o.then!="function"||o.then(()=>{e.active&&t.node&&Tu(t,!0)},()=>{})}function R6(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var zs=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,n0=t=>(zs(t.paddingTop)||0)+(zs(t.paddingBottom)||0),HD=t=>(zs(t.borderTopWidth)||0)+(zs(t.borderBottomWidth)||0);function D6(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let o=0;o<e.length;o++){let r=e[o].trim();if(!(r!=="all"&&r!=="height")&&parseFloat(n[o%n.length])>0)return!0}return!1}function $k(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let o=e[n];if(o&&o.transitionProperty==="height")try{o.cancel()}catch{}}}function L6(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let o=zs(e.lineHeight)||I6(t,e);return o>0?n*o+n0(e):null}var mu=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],rD=new WeakMap;function I6(t,e){let n=t.ownerDocument,o=n&&(n.body||n.documentElement);if(!o||!n.createElement)return null;let r=rD.get(n);r||(r=new Map,rD.set(n,r));let s=mu.map(l=>e[l]||"").join("|");if(r.has(s))return r.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<mu.length;l++)e[mu[l]]&&(a[mu[l]]=e[mu[l]]);let c=0;try{o.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(r.set(s,c),c):null}function P6(t,e){return e?e.boxSizing==="border-box"?t+HD(e):e.boxSizing==="content-box"?Math.max(0,t-n0(e)):t:t}function M6(t){if(!t)return null;let e=zs(t.maxHeight);if(e==null||!(e>0))return null;let n=n0(t),o=HD(t),r=t.boxSizing==="border-box"?e-o:e+n,s=zs(t.lineHeight);if(!(s>0))return r;let i=Math.floor((r-n)/s+1e-6);return i>=1?i*s+n:r}function sD(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var iD=["srcObject","muted"],B6=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function N6(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let o=0;o<iD.length;o++){let r=iD[o],s=t[r];if(s===void 0||!(r in e))continue;let i=a=>{let c=B6(r,a);if(e[r]!==c)try{e[r]=c}catch(l){Zt(n,r,l)}};if(typeof s=="function"){let a=Ft(t,t[r+"Deps"],s),c=W(()=>{try{i(a(t,t.state,t.context))}catch(l){Zt(n,r,l)}},{depth:n.path.length,label:yt(n,r)});n.__effects.push(c),n.__exec[r]=s}else i(s);r==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function $6(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return Vt("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,o=t.autoGrow,r=typeof o=="function"?Ft(t,t.autoGrowDeps,o):null,s=W(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===o&&r?r:i)(t,t.state,t.context)}catch{a=null}v6(t,a)},{depth:n.path.length,label:yt(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),r&&(n.__exec.autoGrow=o)}var zD=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function WD(t,e){let n=!1;for(let o of Object.keys(t)){if(!en(o)||zD.has(o))continue;if(o==="onInView"||o==="onLeaveView"){n=!0;continue}let r=lg(o);if(r){fg(r,t,t[o]);continue}let s=t[o],i=null;if(s&&typeof s=="object"&&!Array.isArray(s)&&(i=s,s=i.handler),s=au(t,s),typeof s!="function")continue;let a=ag(o);Vn.has(a)||La(T3(a),t,s,i)}F6(t),n&&it.viewEvents&&it.viewEvents(t)}function F6(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},o=!1;for(let d of zD){let p=t[d];typeof p=="function"&&(n[d]=p,o=!0)}if(!o)return;let r=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),x=Math.abs(h);if(Math.max(y,x)<r)return;let T;if(y>x*1.2)T=g<0?"left":"right";else if(x>y*1.2)T=h<0?"up":"down";else return;let v="onSwipe"+T.charAt(0).toUpperCase()+T.slice(1),_=n[v],b=n.onSwipe;_&&_.call(t,d,t,t.state,t.context),b&&b.call(t,{direction:T,dx:g,dy:h,dt:m,event:d},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function o0(t,e,n,o,r,s,i,a){let c=e;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=o;if(typeof o=="function")try{l=o(t,c)}catch{l=null}let f=typeof o=="function"?Su(l):r;if(a&&!i&&(f=wu(f,Su(e))),i){let u=e;(typeof e=="string"||typeof e=="number")&&(u={value:e,text:e}),c=l?{...l,state:u}:{state:u}}else l&&(c=Be(l,c));return c=vu(c,s),{def:c,key:mD(c?.key,e,n,t),supplied:f,props:l}}function vu(t,e){if(!e||!t||t.ignoreChildExtends)return t;if(!t.extends)return{...t,extends:e};let n=Array.isArray(t.extends)?t.extends:[t.extends],o=Array.isArray(e)?e:[e];return{...t,extends:[...o,...n]}}var Do=t=>{let e=t&&t.__ref;if(!e||e.__if===!1||e.__mount&&e.__mount.held)return null;let n=t.node;return n&&n.nodeType!==11?n:null},GD=(t,e)=>e?e.nextSibling:du(t.node,t.__ref.__textNode),Bg=(t,e,n)=>{let o=GD(t,n);return e!==o&&t.node.insertBefore(e,o),e},Cu=(t,e)=>{let n=GD(t,e);return n?{position:"before",node:n}:void 0};function r0(t,e,n){let o=null;for(let r=0;r<e.length;r++){if(n&&n.has(e[r]))continue;let s=Do(t[e[r]]);s&&(o=Bg(t,s,o))}}function aD(t,e,n,o){let r=it.rows,s=r!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?r.track(t):null,i=s0(t,e,n,o,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function s0(t,e,n,o,r,s){if(!e||!t.node)return;let i=t.childExtends,a=br(t,"childProps"),c=t.__ref,l=it.mount,f=o>0&&t.tag!=="fragment"&&c?o:0;if(Array.isArray(e)){let u=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let m=o0(t,e[g],g,u,a,i,d,r);s&&s.add(m.key,e[g],m,u,i);try{let y=zt(Hs(m.def,m.supplied),t,m.key,n,h);return!y&&s&&s.none(m.key),Cg(t,y),y}catch(y){if(s&&s.failed(m.key),typeof console<"u"&&console.error){let x=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${m.key}" failed to construct at ${x} (initial render, skipping this row):`,y?.message||y)}return null}};if(!f){for(let g=0;g<e.length&&!(c&&c.__disposed);g++)p(g);return!0}return l.rows(t,e.length,p,f),!0}if(typeof e=="string"){let u=SD(e,t);if(Array.isArray(u))return s0(t,u,n,o,!0,s)}if(typeof e=="object"){let u=(p,g)=>{if(Ht.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let m=r?wu(a,Su(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Be(t.childProps,h)),h=vu(h,i);let y=zt(Hs(h,m),t,Lg(t,p),n,g);return Cg(t,y),y};if(!f){for(let p in e)u(p);return}let d=[];for(let p in e)d.push(p);l.rows(t,d.length,(p,g)=>u(d[p],g),f)}}function Ya(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let o=n.options;if(!o||!o.length)return;let r=t.__ref,s=r&&r.__exec&&r.__exec.value,i=typeof s=="function",a=t.value!=null&&typeof t.value!="function";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value,typeof f=="string"&&f.includes("{{")&&(f=Gt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let c=e||!(r&&r.__selectSynced);if(r&&(r.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<o.length;f++)o[f].defaultSelected&&(l=f);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function KD(t,e){let{children:n,content:o}=t,r=t.childExtends,s=typeof n=="function",i=s||xD(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=Ft(t,t.childrenDeps,u),m=W(()=>{let y=p;p=!0;let x;try{x=h(t,t.state,t.context)}catch(C){if(typeof console<"u"&&console.error){let O=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${O}${y?"":" (initial run, treating as empty)"}:`,C?.message||C)}return}if(!y){g=x;return}if(x===t.children)return;F1(t,x),t.children=x,d.__mount&&d.__mount.chunkGen++;let T=typeof t.onContentUpdate=="function",v=T?[]:null,_=T?[]:null,b=T?[]:null;if(Array.isArray(x)&&t.childrenAs==="state"){let C=t.childProps,O=[],N=new Map;for(let Z=0;Z<x.length;Z++){let X=x[Z],Q=C;if(typeof C=="function")try{Q=C(t,X)}catch{Q=null}let rt=mD(Q&&Q.key,X,Z,t);O.push(rt),N.set(rt,{rawChild:X,childProps:Q})}let B=new Set(O),M=I1(d,d.__children.slice());for(let Z of M)if(!B.has(Z)){let X=t[Z];X?.remove&&X.remove(),delete t[Z],_&&_.push(Z)}let K=t.childExtends,tt=!(t.tag==="fragment")&&!!t.node,nt=null,ot=new Set;for(let Z of O){let X=N.get(Z),Q=X.rawChild,rt=t[Z];if(rt&&rt.state){if(Q&&typeof Q=="object"){let gt=rt.state,Bt=gt.$replace||gt.replace,Tt=gt.$update||gt.update;try{if(typeof Bt=="function")Bt.call(gt,Q);else if(typeof Tt=="function"){for(let Ct in gt)if(!(Ct==="__element"||Ct==="root"||Ct==="parent"||Ct==="update")&&!Object.prototype.hasOwnProperty.call(Q,Ct))try{gt[Ct]=void 0}catch{}Tt.call(gt,Q)}else for(let Ct in Q)gt[Ct]=Q[Ct]}catch(Ct){if(typeof console<"u"&&console.error){let je=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${Z}" failed to patch at ${je} (reconcile, keeping its previous data for this pass):`,Ct?.message||Ct)}}}if(b&&b.push(Z),tt){let gt=Do(rt);gt&&(nt=Bg(t,gt,nt))}continue}let et=Q;(typeof Q=="string"||typeof Q=="number")&&(et={value:Q,text:Q});let pt=X.childProps,G=vu(pt?{...pt,state:et}:{state:et},K),z=typeof C=="function"?Su(pt):br(t,"childProps"),vt;try{vt=zt(Hs(G,z),t,Z,e,tt?Cu(t,nt):void 0)}catch(gt){if(typeof console<"u"&&console.error){let Bt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${Z}" failed to construct at ${Bt} (reconcile, skipping this row):`,gt?.message||gt)}ot.add(Z);continue}if(d.__disposed)return;if(tt){let gt=Do(vt);gt&&(nt=gt)}v&&v.push(Z)}tt&&r0(t,O,ot.size?ot:null),d.__children=ot.size?O.filter(Z=>!ot.has(Z)):O,T&&(v.length||_.length)&&Ag(t,{added:v,removed:_,kept:b}),Ya(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&it.rows.reconcile(t,d,x,e,T)){Ya(t,!1);return}let A=T?[...d.__children]:null;for(let C of I1(d,[...d.__children])){let O=t[C];O?.remove&&O.remove(),delete t[C]}d.__children=[],aD(t,x,e,0),Ya(t,!1),T&&Ag(t,{added:[...d.__children],removed:A,kept:[]})},{depth:d.path.length,label:yt(d,"children")});d.__effects.push(m),n=g,F1(t,n),t.children=n}let a=it.mount,c=a!==null?a.budgetOf(t,e):0,l=pu(t.__ref),f=s?aD(t,n,e,c):s0(t,n,e,c,i);if(c&&pu(t.__ref)>l){a.defer(t,c,()=>cD(t,e,n,o,r,f,c));return}cD(t,e,n,o,r,f,c)}function cD(t,e,n,o,r,s,i){let a=pu(t.__ref);if(o!=null&&!(o&&o.__ref)){let c=o;typeof c=="string"||typeof c=="number"?c={text:c}:typeof c!="object"&&(c={}),t.childProps&&(c=Be(t.childProps,c)),c=vu(c,r);let l=wu(br(t,"childProps"),br(t,"content"));Cg(t,zt(Hs(c,l),t,"content",e))}if(!(n&&!s)){if(i&&pu(t.__ref)>a){it.mount.defer(t,i,()=>lD(t,e,r,i));return}lD(t,e,r,i)}}function lD(t,e,n,o){let r=t.context?.components||{},s=t.__ref&&t.__ref.__runtimeSource,i=s?{}:null;{let l=Object.keys(t);for(let f=0;f<l.length;f++){let u=l[f];if(!u.endsWith("Extends")||typeof t[u]!="string")continue;let d=u.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[u]};delete t[u];for(let g=f+1;g<l.length;g++){let h=l[g],m=h.charCodeAt(0);if(m>=65&&m<=90||Ht.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let y=t[h];y!==void 0&&(p[h]=y,delete t[h],i&&bu(s,h)&&(i[d]||(i[d]={}),i[d][h]=s[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),c=l=>{if(Ht.has(l)||typeof t[l]!="object"||t[l]===null)return!1;let f=l.charCodeAt(0);if(f<65||f>90)return!1;let u=t[l];if(u.__ref)return!1;if(!u.extends&&!u.extend){let p=r[l]||r[`smbls.${l}`];p&&(u={...u,extends:p})}t.childProps&&(u=Be(t.childProps,u)),u=vu(u,n);let d=s?wu(br(t,"childProps"),wu(i[l]||null,br(t,l))):null;Cg(t,zt(Hs(u,d),t,l,e))};if(!o){for(let l of a)c(l);return}it.mount.run(t,a.length,l=>c(a[l]),o)}function Za(t,e,n){let{node:o}=t;if(!o)return;o.ref=t;let r=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(r){let c=r.parentNode;if(c){if(n?.position==="before"&&n.node)c.insertBefore(o,n.node);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;c.insertBefore(o,l||r)}else c.insertBefore(o,r);ig();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&it.hydration!==null){let c=t.context&&t.context.__hydration;if(c&&it.hydration.place(c,t,e,s,o))return}let i=n?.node,a=o.parentNode===s;if(i&&i.parentNode!==s)(!a||o.nextSibling)&&s.appendChild(o);else if(n?.position==="before"&&i)i!==o&&(!a||o.nextSibling!==i)&&s.insertBefore(o,i);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;c===o||(c?s.insertBefore(o,c):s.appendChild(o))}else(!a||o.nextSibling)&&s.appendChild(o);ig()}var Dg=3;function wg(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Dg?!1:(t.__inBeforeUpdate=!0,!0)}function Gn(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Dg&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Dg}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Kt(t,e,n){let o=t.charAt(0).toLowerCase()+t.slice(1);Wn(o,e,n);let r="on"+t,s=e[r];if(typeof s=="function"){let c=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&ht(l);let f=!!c;try{let u=s(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{on(e,r,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(on(e,r,u),e.context?.strictMode)throw u}finally{l&&dt(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var Ou=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ZD=1e3,QD=24,i0=Object.freeze({}),l0=Object.freeze({}),Ja=0,Ng=t=>{if(xt(t)||Ou(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function a0(t,e,n){if(t===null||typeof t!="object")return t;if(--Ja<0||e>QD){Ja=-1;return}if(Array.isArray(t)){let r=new Array(t.length);for(let s=0;s<t.length;s++)r[s]=n?t[s]:a0(t[s],e+1,!1);return r}if(n||!Ng(t))return t;let o={};for(let r in t)Ou(t,r)&&(o[r]=a0(t[r],e+1,r==="extends"||r==="childExtends"));return o}function qD(t){Ja=ZD;let e;try{e=a0(t,0,!1)}catch{return i0}return Ja<0?i0:e}function c0(t,e,n,o){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Ja<0||n>QD)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let s=0;s<t.length;s++)if(o?t[s]!==e[s]:!c0(t[s],e[s],n+1,!1))return!1;return!0}if(o||Array.isArray(e)||!Ng(t)||!Ng(e))return!1;let r=0;for(let s in t)if(Ou(t,s)&&(r++,!Ou(e,s)||!c0(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)Ou(e,s)&&r--;return r===0}function YD(t,e){if(e===i0||e===l0)return!1;Ja=ZD;try{return c0(t,e,0,!1)}catch{return!1}}var $g=t=>Ce()?be(()=>qD(t)):qD(t),XD=(t,e)=>Ce()?be(()=>YD(t,e)):YD(t,e);function JD(t,e,n,o){let r=t;return r&&typeof r=="object"&&!Array.isArray(r)&&!Ng(r)&&(o||n&&!r.ignoreChildExtends)&&(r=o?Be({},r):{...r}),typeof e=="function"?{item:r,props:o}:r}var tL=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),Fg=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,o,r,s){this.rows.set(e,$g(JD(n,r,s,o.props)))}failed(e){this.rows.set(e,l0)}none(e){this.rows.delete(e)}},j6=Object.freeze([]);function U6(t,e,n,o,r){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=tL(t),c=XD(a,i),l=t.childProps,f=br(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let S=0;S<n.length;S++){let w=o0(t,n[S],S,l,f,u,!1,!0);if(p.has(w.key))return!1;p.set(w.key,w),d[S]=w}for(let S=0;S<d.length;S++){let w=d[S];w.input=JD(n[S],l,u,w.props);let A=c?s.get(w.key):void 0;if(A===void 0)continue;let C=t[w.key];C&&C.__ref&&C.parent===t&&XD(w.input,A)&&(w.kept=!0,w.snap=A)}let g=r?[]:null;for(let S of s.keys()){let w=p.get(S);if(w&&w.kept)continue;let A=t[S];A?.remove&&A.remove(),delete t[S],g&&g.push(S)}let h=r?[]:null,m=r?[]:null,y=new Map,x=null,T=null;for(let S=0;S<d.length;S++){let w=d[S];if(w.kept){y.set(w.key,w.snap),m&&m.push(w.key);let O=Do(t[w.key]);O&&(T=Bg(t,O,T));continue}y.set(w.key,$g(w.input));let A;try{A=zt(Hs(w.def,w.supplied),t,w.key,o,Cu(t,T))}catch(O){if(y.set(w.key,l0),x||(x=new Set),x.add(w.key),typeof console<"u"&&console.error){let N=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${w.key}" failed to construct at ${N} (re-run, skipping this row):`,O?.message||O)}continue}if(e.__disposed)return!0;if(!A){y.delete(w.key);continue}let C=Do(A);C&&(T=C),h&&h.push(w.key)}e.__plainRows=new Fg(c?i:$g(a),y);let v=Array.from(y.keys());r0(t,v,x);let _=new Set(e.__children),b=[];for(let S=0;S<v.length;S++)_.has(v[S])&&b.push(v[S]);for(let S of e.__children)y.has(S)||b.push(S);return e.__children=b,r&&(h.length||g.length)&&Ag(t,{added:h,removed:g,kept:m}),!0}var eL={track:t=>new Fg($g(tL(t)),new Map),reconcile(t,e,n,o,r){let s=Array.isArray(n)?n:n==null||n===!1?j6:null;return!!s&&U6(t,e,s,o,r)}};var jg=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,o=n&&n.__ref?jg(n):null,r=o===null?"":o?o+"."+t.key:String(t.key);return e&&(e.__hydrationPath=r),r},V6=new Set(["src","srcset"]),H6=new Set(["class","style","id","data-br"]),z6=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),W6=new Set(["sizes","media","type","width","height"]),G6=t=>t==="img"?z6:t==="source"?W6:null,K6=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",nL=(t,e)=>{for(let n of e){let o=t.nodes.get(n.target);o&&(o.delete(n.attributeName),o.size||t.nodes.delete(n.target))}},q6=(t,e,n)=>{let o=t.built;if(!o){let r=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.MutationObserver||(typeof MutationObserver=="function"?MutationObserver:null);if(!r)return!1;let s=new Map;o=t.built={nodes:s,observer:null},o.observer=new r(i=>nL(o,i))}return o.nodes.set(e,new Set(n)),o.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function xr(t){let e=t&&t.built;if(!e)return 0;t.built=null,nL(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[o,r]of e.nodes)for(let s of r)o.hasAttribute(s)&&(o.removeAttribute(s),n++);return e.nodes.clear(),n}function f0(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=zn(t);if(n==="string"||n==="fragment")return null;let o=jg(t),r=e.registry[o===""?"__root":o],s=r!==void 0?e.nodes[r]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return r!==void 0&&e.misses++,null;let i=Co(n)&&(n==="svg"||t.parent?.node?.namespaceURI===$s),a=Co(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===$s:s.namespaceURI!==$s;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;let l=e.pending;if(l&&l.delete(s)){let p=s.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let f=null,u=null,d=G6(s.localName);for(let p of Array.from(s.getAttributeNames?s.getAttributeNames():[]))V6.has(p)||p==="data-key"||(H6.has(p)||(u||(u=new Map)).set(p,s.getAttribute(p)),!(d&&d.has(p))&&(K6(p)?(f||(f=[])).push(p):s.removeAttribute(p)));if(f&&!q6(e,s,f))for(let p of f)s.removeAttribute(p);if(u&&t.__ref&&(t.__ref.__builtAttrs={node:s,values:u}),l){let p=0,g=0,h=s.firstChild,m=t.text!=null&&h&&h.nodeType===3&&!l.has(h)?h:null;m&&t.__ref&&(t.__ref.__builtText=m);for(let y=s.firstChild;y;){let x=y.nextSibling;y!==m&&!l.has(y)&&(y.nodeType===3?p++:y.nodeType!==8&&g++,s.removeChild(y)),y=x}(g||p>(t.text!=null&&!m?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;s.firstChild;)s.removeChild(s.firstChild);return s.localName==="img"&&s.complete&&s.naturalWidth>0&&X6(s),s}var Y6=500;function X6(t){let e=!1,n=!1,o=r=>{r.isTrusted&&(n?r.stopImmediatePropagation():e=!0,t.removeEventListener("load",o,!0))};t.addEventListener("load",o,!0),setTimeout(()=>{if(!e){if(!(t.complete&&t.naturalWidth>0)){t.removeEventListener("load",o,!0);return}n=!0,t.dispatchEvent(new Event("load")),setTimeout(()=>t.removeEventListener("load",o,!0),Y6)}},0)}function Z6(t,e,n,o,r){if(r.parentNode===o&&t.claimed.has(r))return!0;let s=t.pendingIn;if(!s||!s.has(o))return!1;let i,a=n&&n.__ref,c=a&&a.__children,l=c?c.lastIndexOf(e.key):-1;for(let f=l-1;f>=0;f--){let u=n[c[f]],d=u&&u.node;if(d&&d!==r&&d.parentNode===o){i=d.nextSibling;break}}return i===void 0&&(i=du(o,a&&a.__textNode)),i===r||o.insertBefore(r,i),!0}function Q6(t,e){let n=t.whole;if(!n)return!1;if(n.has(e))return!0;let o=e.parent;return!o||!n.has(o)?!1:(n.add(e),!0)}function J6(t,e){let n=e&&e.__ref,o=e&&e.node;if(!n||!o||!t.pending||!t.claimed.has(o))return null;let r=o.parentNode;return r?(t.claimed.delete(o),t.adopted--,t.pending.add(o),t.pendingIn.set(r,(t.pendingIn.get(r)||0)+1),n.__keepNode=!0,o):null}function tH(t,e){if(!e||!t.pending||!t.pending.delete(e))return;let n=e.parentNode;if(n){let o=(t.pendingIn.get(n)||1)-1;o>0?t.pendingIn.set(n,o):t.pendingIn.delete(n),e.remove()}}var oL={adopt:f0,place:Z6,whole:Q6,settle:xr,handBack:J6,settleHandBack:tH};var Ks=50;function Zn(t){return t===!0?Ks:typeof t=="number"&&t>0?t:0}var En=[],ec=!1,kr=0,Lo=Ks,Lu=!1,Vg=[],Hg=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Ug=[],Ru=null;function eH(t){if(!Ru){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Ug.shift();!Ug.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},Ru=e}Ug.push(t),Ug.length===1&&typeof Ru.port1.ref=="function"&&Ru.port1.ref(),Ru.port2.postMessage(0)}function h0(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof setImmediate=="function"){setImmediate(t);return}if(typeof MessageChannel=="function"){eH(t);return}setTimeout(t,0)}function Qn(){return new Promise(t=>h0(t))}var Du=0,d0=0,p0=0,tc=0;function g0(){Du=0,d0=kr,p0=0,tc=0}function rL(){if(!kr)return!1;if(Du++,tc>0)return tc--,!1;let t=Hg(),e=t-kr,n=e/Du,o=(t-d0)/(Du-p0),r=o>n?o:n;d0=t,p0=Du;let s=Lo-e-r;return s<=0?(Lu=!0,!0):(tc=r>0?Math.floor(s/r/2):0,!1)}var Gs=0;function sL(t=Ks){Gs===0&&!kr?(kr=Hg(),Lu=!1,Lo=t,g0()):t<Lo&&(Lo=t,tc=0),Gs++}var Ne=null,u0=!1,nH=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function m0(){kr=0,Lu=!1,Lo=Ks,g0()}function oH(){u0||(u0=!0,nH(()=>{u0=!1,Gs===0&&m0()}))}function iL(){Gs>0&&Gs--,!(Gs!==0||Ne!==null)&&(ec?oH():m0())}function y0(t,e=Ks,n=null){let o={fn:t,budget:e,lease:n};Ne?Ne.push(o):En.push(o),ec||(ec=!0,h0(aL))}function _0(t){let e=t&&t.context;return e&&e.__mountLease||null}function Iu(t){if(!t)return;let e=0;for(let n=0;n<En.length;n++){let o=En[n];o.lease!==t&&(En[e++]=o)}if(En.length=e,Ne){let n=0;for(let o=0;o<Ne.length;o++)Ne[o].lease!==t&&(Ne[n++]=Ne[o]);Ne.length=n}typeof t.lost=="function"&&t.lost()}function rH(t){if(t.lease!==null&&!t.lease.live()){Iu(t.lease);return}let e=Ne;Ne=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=Ne;Ne=e,n.length&&En.unshift(...n)}}function xe(){return!ec&&!En.length?Promise.resolve():new Promise(t=>Vg.push(t))}function Tr(){return!ec&&!En.length}function sH(){if(!Vg.length)return;let t=Vg;Vg=[];for(let e=0;e<t.length;e++)t[e]()}function aL(){for(kr=Hg(),Lu=!1,Lo=1/0,g0();En.length;){let t=En.shift();if(t.budget<Lo&&(Lo=t.budget,tc=0),rH(t),Lu||Hg()-kr>=Lo)break}if(Gs=0,m0(),En.length){h0(aL);return}ec=!1,sH()}function zg(t){$a(t.__ref).pending++}function $e(t){let e=t&&t.__ref,n=e&&e.__mount;if(!n||!(n.pending>0)||--n.pending>0||e.__disposed)return;let o=n.tail;o&&(n.tail=null,o())}function Wg(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function Io(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.tail?Promise.resolve(t):new Promise(n=>{(e.waiters||(e.waiters=[])).push(n)})}function b0(t,e=t&&t.__ref){let n=e&&e.__mount,o=n&&n.waiters;if(o){n.waiters=null;for(let r=0;r<o.length;r++)o[r](t)}}function cL(t,e=t&&t.__ref){let n=e&&e.__mount;if(!n||!n.tail)return;n.tail=null,n.pending=0;let o=n.holder;n.holder=null,b0(t,e),o&&$e(o)}function iH(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let o=it.hydration!==null&&t.context?t.context.__hydration:null;if(o&&it.hydration.whole(o,t))return 0;let r=n?Zn(n):0,s=Zn(t.yieldChildren);return r&&s?r<s?r:s:r||s}function lL(t,e,n,o,r){sL(o);try{fL(t,t.__ref,0,e,n,o,r,!1)}finally{iL()}}function fL(t,e,n,o,r,s,i,a){try{for(let c=n;c<o;c++){let l=e.__mount,f=l?l.pending:0;if(r(c)===!1)continue;if(e.__disposed)break;let u=rL(),d=e.__mount;if(c+1<o&&(u||(d?d.pending:0)>f)){i&&i.onSuspend&&i.onSuspend(),a||zg(t);let p=c+1;y0(()=>aH(t,e,p,o,r,s,i),s,_0(t));return}}}catch(c){if(!a)throw c;Ig(t,c)}a&&$e(t)}function aH(t,e,n,o,r,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){$e(t);return}fL(t,e,n,o,r,s,i,!0)}function cH(t,e,n){zg(t),y0(()=>{try{let o=t.__ref;o&&!o.__disposed&&n()}catch(o){Ig(t,o)}finally{$e(t)}},e,_0(t))}function lH(t,e,n,o){let r=t.__ref,s=$a(r),i=++s.chunkGen,a=t.node,c=[],l=!1;lL(t,e,f=>{let u=n(f,l?Cu(t,fH(a,c)):void 0),d=uL(u);return d?c.push(d):u&&u.__ref.__mount&&u.__ref.__mount.held&&c.push(u),u},o,{isStale:()=>s.chunkGen!==i,onSuspend:()=>{l=!0}})}function uL(t){let e=Do(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function fH(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n].__ref?uL(e[n]):e[n];if(o&&o.parentNode===t)return o}return null}function uH(t,e){let n=t.__ref;try{Ya(t,!0),yD(t),Kk(t,e)}finally{b0(t,n);let o=n.__mount,r=o&&o.holder;r&&(o.holder=null,$e(r))}}var dL={budgetOf:iH,run:lL,rows:lH,defer:cH,hold:zg,finish:uH,abandon:cL};function pL(){it.viewEvents=ER,it.chains=wR,it.rows=eL,it.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:oL,it.mount=dL}pL();var qs="inertOutside",pH=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),hH='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',gH={attributes:!0,attributeFilter:["inert"]},hL=new WeakMap,gL=new WeakMap,Pu=new Set,mL=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Er(t){try{return be(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function yL(t){let e=()=>Er(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function mH(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=hL.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(o=>Er(()=>Gg(e,o))),hL.set(t,e),e)}function S0(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function yH(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var _L=t=>!!(t.closest&&t.closest("[inert]"));function _H(t){let e=t.ownerDocument,n=new Set,o=[];for(let r=t;r!==e.body;r=r.parentNode){let s=r.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;o.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==r&&!pH.has(i.tagName)&&n.add(i)}return{outside:n,parents:o}}function bL(t,e){for(let n=0;n<e.length;n++){let{type:o,target:r}=e[n];o==="attributes"&&t.held.has(r)&&t.held.set(r,!r.hasAttribute("inert"))}}function Gg(t,e){let{doc:n,held:o,observer:r}=t;e&&bL(t,e),bL(t,r.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=S0(u,n);d&&!u.live&&(i.push(u),u.returnFocus=yH(n)),u.live=d}i.length&&(t.layers=t.layers.filter(u=>!i.includes(u)).concat(i));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:c,parents:l}=a?_H(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of o)c.has(u)||(d&&u.removeAttribute("inert"),o.delete(u));for(let u of c)o.has(u)||o.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),o.set(u,!0));r.takeRecords(),r.disconnect();for(let u of l)r.observe(u,{childList:!0});for(let u of o.keys())r.observe(u,gH);t.layers.some(u=>!u.live)?Pu.add(t):Pu.delete(t);for(let u of t.layers)!u.live&&!u.connecting&&!Da(u.element)&&(u.connecting=!0,dr(u.element,()=>Er(()=>{u.connecting=!1,u.declared&&!u.live&&S0(u,t.doc)&&Gg(t)})));if(a===s)return;let f=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),yL(()=>wL(t,a));else if(f){let u=f.returnFocus;yL(()=>bH(t,f,u))}f&&(f.returnFocus=null)}function wL(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let o=t.doc,r=o.activeElement;if(r&&n.contains(r))return;let s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),o.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(hH))if(i(a,!0))return;r&&r!==o.body&&typeof r.blur=="function"&&r.blur()}function bH(t,e,n){if(e.declared&&e.live)return;let o=t.doc,r=o.activeElement,s=e.element.node;(!r||r===o.body||s&&s.contains(r)||_L(r))&&(n&&n.isConnected&&n.ownerDocument===o&&!_L(n)&&(n.focus({preventScroll:!0}),o.activeElement===n)||t.top&&wL(t,t.top))}function w0(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let o=n.layers.indexOf(t);o!==-1&&n.layers.splice(o,1)}Gg(n)}function xL(t){let e=t[qs];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function SL(t){let e=gL.get(t);if(e)return e;let n=t.__ref,o=t.node;if(!n||!o||o.nodeType!==1)return null;let r=mH(o.ownerDocument);if(!r)return null;e={element:t,manager:r,declared:!1,live:!1,connecting:!1,returnFocus:null},gL.set(t,e);let s=W(()=>{let i=xL(t);Er(()=>w0(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+qs});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>Er(()=>w0(e,!1))),e}function SH(){for(let t of Pu){if(!t.doc.defaultView){Pu.delete(t);continue}t.layers.some(e=>!e.live&&S0(e,t.doc))&&Gg(t)}}var Kg={name:qs,create(t){if(mL(t,qs)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Vt(qs,t);Er(()=>SL(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||Pu.size&&Er(SH)},update(t){if(mL(t,qs)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Vt(qs,t);Er(()=>{let e=SL(t);e&&w0(e,xL(t))})}}};var kL={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["gray-168","gray+168"],caption:["gray-68","gray+68"],paragraph:["gray-42","gray+42"],disabled:["gray-26","gray+26"],line:["gray-16","gray+16"],scrim:["black.45","black.55"],scrimSoft:["black.2","black.3"],blueDeep:"#0A5CB8",blueBright:"#47A8FF",accentInk:["blueDeep","blueBright"],greenDeep:"#2A6E28",greenBright:"#7FD07B",successInk:["greenDeep","greenBright"],redDeep:"#A83520",redBright:"#FF8C78",dangerInk:["redDeep","redBright"],orangeDeep:"#94500F",orangeBright:"#F4A45E",warningInk:["orangeDeep","orangeBright"],magentaDeep:"#A100A1",magentaBright:"#FF7AFF",magentaInk:["magentaDeep","magentaBright"]},TL={"gradient-blue-light":`linear-gradient(to right,
60
+ `):"")}}function e0(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&an(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),qt("Create",t,e),qt("Complete",t,e),qt("Render",t,e),qt("RenderRouter",t,e),qk(t,e),typeof t.onFrame=="function"){let n=t.onFrame,o=t.context?.designSystem,r=()=>{if(t.node){if(t.node.isConnected){o&&ht(o);try{n(t,t.state,t.context)}catch(s){console.error("[DOMQL] onFrame error:",s)}finally{o&&dt()}}requestAnimationFrame(r)}};requestAnimationFrame(r)}}function Ig(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,it.mount.hold(t))}var V3=new Set(["childProps","attr","style","scope","data","vars"]);function CD(t,e,n,o,r,s){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),m=n.indexOf("."),y=h>0?h:-1;if(m>0&&(y<0||m<y)&&(y=m),y>0){let x=n.substring(0,y),T=t.context?.components;T&&(T[x]||T["smbls."+x])?e={...e,extends:x}:T&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${x}" but neither "${x}" nor "smbls.${x}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),Na(t,e,s);let i=_k(t),a=t.props&&typeof t.props=="object"?t.props:null;for(let h in e)if(!(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")){if(h==="key"){o&&(t.key=r?Ng(r,o):o);continue}i&&i.mark(h),Bk(t,h,e[h])}if(a)for(let h in a)Bk(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)Bk(t,h,c[h]);if(i)for(let h in c)i.mark(h)}u1(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let l=t.scope&&typeof t.scope=="object"?t.scope:null,f=r?.scope,u=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=f||u||null;if(e.scope!==void 0||l){let h={};l&&Object.assign(h,l),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=Nd(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=c6(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),za(t),G3(t,r,e,s),e}function Bk(t,e,n){let o=t[e],r=it.chains;if(r!==null&&r(t,e,o,n))return;let s=o&&n&&typeof o=="object"&&typeof n=="object"&&!Array.isArray(o)&&!Array.isArray(n);s&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=Fe(o,n):s&&V3.has(e)?t[e]={...o,...n}:s&&ED(e)?t[e]=Fe(o,n):t[e]=n}var H3=new Set(["key","parent","context","__ref"]);function z3(t,e){for(let o of Object.keys(t))H3.has(o)||delete t[o];let n=e.definition;if(!n.extends&&!n.extend&&typeof e.key=="string"){let o=t.context?.components||{},r=o[e.key]||o["smbls."+e.key];r&&(n={...n,extends:r})}we(()=>CD(t,n,e.key,e.ownKey,t.parent,e.options))}function W3(t,e,n){let o=n||{},r=a=>!!(o[a]||o["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;r(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let f=a>0?e.substring(0,a):e;r(f)||s.push(f)}return s}function Nk(t,e,n){if(typeof t.onStateInit!="function"&&!bk(t,"stateInit"))return;let o=t.state;t.state=e;try{qt("StateInit",t,n)}finally{t.state=o}}var $k=t=>({isDataOnlyKey:e=>Xo(t).has(e)});function G3(t,e,n,o){let r=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=r&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!xt(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,xe(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=c.lang||f.defaultLang||"en",p=new Set,g=(y,x)=>{p.has(y)||Xr(u,y,l)&&(l[y]=x,p.add(y),$n(u,y,x))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(Le(f,!1));for(let y in f.translations)m.has(y)||g(y,f.translations[y])}xt(l)||Nk(t,l,o),t.state=xt(l)?l:oo(l,$k(t.context)),t.state.__element=t,t.state.root=t.state,xe(t,t.state),zi?.(c,t.state),qt("StateCreated",t,o)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),xe(t,t.state);return}if(typeof a=="string"){if(t.state=RD(a,e),t.state&&typeof t.state=="object"&&!xt(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}xe(t,t.state),q3(t,a,e),qt("StateCreated",t,o);return}if(typeof a=="function"){let c=a(t,e?.state);if(xt(c))t.state=c;else{let l=c||{};Nk(t,l,o),t.state=oo(l,e?.state?void 0:$k(t.context))}}else if(xt(a))t.state=a;else{let c={...a};Nk(t,c,o),t.state=oo(c,e?.state?void 0:$k(t.context))}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,xe(t,t.state),zi?.(a,t.state),qt("StateCreated",t,o)}function V1(t,e){if(!e)return t;let n=e.split("/"),o=t;for(let r of n){if(o==null)return{};o=o[r]}return o??{}}function OD(t,e){let n=e.state;return t.startsWith("~/")?[n&&(n.root||n),t.slice(2)]:t.startsWith("../")?[n,t.slice(3)]:[n,t]}function RD(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[r,s]=OD(t,e);return s?V1(r,s):r??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=V1(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let o=e.context?.polyglot;if(o?.translations){let r=e.state?.root?.lang||o.defaultLang||"en",s=o.translations[r];if(s?.[t]!==void 0)return s[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function K3(t,e){let[n,o]=OD(t,e);if(!o||!n||typeof n!="object")return;let r=n[o];if(r!==void 0||o.indexOf("/")===-1)return r;let s=n;for(let i of o.split("/")){if(s==null||typeof s!="object")return;s=s[i]}return s}function q3(t,e,n){let o=t.__ref;if(!o||!n||e==="."||!xt(n.state))return;o.__stateBinding&&o.__stateBinding.dispose();let r=we(()=>W(()=>{let s=K3(e,n);!s||typeof s!="object"||s===t.state||we(()=>DD(t,t.state,s,!0))},{depth:o.path?o.path.length:0,label:yt(o,"state")}));r._isStateBinding=!0,o.__stateBinding=r,o.__effects&&o.__effects.push(r)}function DD(t,e,n,o){let r=t.__ref;if(!r)return;if(o||t.state===e){t.state=n,o&&xe(t,n),z1(r);let i=r.__children;if(i)for(let a=0;a<i.length;a++){let c=t[i[a]];c&&c.__ref&&c.parent===t&&DD(c,e,n,!1)}return}if(r.__stateBinding){r.__stateBinding._notify();return}let s=t.state;s&&typeof s=="object"&&s.parent===e&&(s.parent=n,z1(r))}function H1(t,e){let n=t.__ifParked;if(!n||!n.size)return e;for(let o of n)e.includes(o)||e.push(o);return e}function z1(t){let e=t.__effects;if(e)for(let n=0;n<e.length;n++){let o=e[n];o&&!o._disposed&&!o._isStateBinding&&!o._isSubscribeToEffect&&typeof o._notify=="function"&&o._notify()}}var Y3=new Set(["s","state","ctx","context"]),Fk=new WeakMap;function X3(t){if(Fk.has(t))return Fk.get(t);let e=null;try{let n=typeof De=="function"?De(t):Function.prototype.toString.call(t);if(typeof n=="string"){let o=n.match(/^\s*(?:async\s+)?([A-Za-z_$][\w$]*)\s*=>/)||n.match(/^[^(]*\(([^)]*)\)/);o&&(e={params:o[1].split(",").map(r=>r.trim())})}}catch{}return Fk.set(t,e),e}function Z3(t){let e=X3(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var Q3=3,J3=/^(is|has)[A-Z0-9_$]/,t6=new Set(["routerOptions"]),W1=new WeakSet;function e6(t,e){if(typeof t!="function"||t.length!==2||e&&(J3.test(e)||t6.has(e))||W1.has(t))return!1;let n=Z3(t);if(n.length<2)return!1;let o=n[1].replace(/[{}[\]]/g,"").trim();return o.length<Q3||Y3.has(o)?!1:(W1.add(t),!0)}function n6(t){let e=t.__ref,n=t.tag||"div",o=t.context?.designSystem,r=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||zt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||sn(a)||St[a]||Mt&&Mt.has(a)||c!==45&&(fn(n,a)||(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&e6(t[a],a)&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),r.push({prop:a,fn:t[a]})))}for(let i=0;i<r.length;i++){let{prop:a,fn:c}=r[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){o&&ht(o);try{return c(t,t.state,t.context)}catch{return}finally{o&&dt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function o6(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let o=e[n];try{typeof o=="function"?o(t,t.state,t.context):typeof o=="string"&&t.state?.[o]}catch{}}}function jt(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...o){return o6(t,e),n.apply(this,o)}}function Ga(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function yt(t,e){return()=>t.path.join(".")+"::"+e}var G1=new Set;function Qt(t,e,n){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()))return;let o=yt(t,e)();G1.has(o)||(G1.add(o),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var K1=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,q1=new WeakMap,r6=t=>{let e=q1.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){K1.lastIndex=0;let o;for(;(o=K1.exec(n))!==null;)o[2].includes("{{")&&(e||(e=[])).push(o[2])}return q1.set(t,e),e},s6=(t,e)=>{let n=r6(t);if(n)for(let o=0;o<n.length;o++)e.add(n[o])},i6=(t,e)=>!sn(t)&&!Sr(e,t),jk=(t,e,n,o,r)=>{if(typeof e=="string"){!r&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&i6(t,o)&&s6(e,n)},Yk=new WeakMap,ku=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Tu=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?Fe(t,e):t},Eu=(t,e)=>t&&e?Fe(t,e):t||e||null,LD=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&ku(n,e)},xr=(t,e)=>LD(t,e)?Tu(t.__ref.__runtimeSource[e]):null,Ws=(t,e)=>(e&&t&&typeof t=="object"&&Yk.set(t,e),t),a6=t=>{if(!t||typeof t!="object")return;let e=Yk.get(t);return e&&Yk.delete(t),e},Xk=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let o=0;o<t.length;o++)Xk(t[o],e,n);return}if(!t.__ref)for(let o of Object.keys(t)){if(o==="state")continue;let r=Object.getOwnPropertyDescriptor(t,o);r&&"value"in r&&Xk(r.value,e,n)}}},c6=(t,e)=>{let n=null;for(let o of Object.keys(t)){if(zt.has(o)||e&&ku(e,o))continue;let r=Object.getOwnPropertyDescriptor(t,o),s=r&&r.value;if(!Array.isArray(s))continue;let i=new Set;Xk(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},Y1=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let o=n.__ref&&n.__ref.__declaredArrays,r=o&&o.get(e);if(!r)continue;let s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of r)s.__authoredTemplates.add(i);return}},ID=["attr","aria","data","metadata"],l6=t=>{if(ID.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},f6=(t,e)=>{let n=new Set,o=t.tag||"div";for(let r of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,r),i=s&&s.value,a=!!e&&ku(e,r);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!l6(r))continue;let c=a?e[r]:null,l=c&&typeof c=="object"?c:null,f=r.charCodeAt(0)===46||r.charCodeAt(0)===33;for(let u in i){let d=a&&(!l||ku(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&ID.includes(u)){for(let g in p)jk(g,p[g],n,o,d);continue}jk(u,p,n,o,d)}continue}jk(r,i,n,o,a)}return n};function PD(t,e){let n=t.__ref,o=!!(e&&e.skipIfEffect),r=f6(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of r)n.__authoredTemplates.add(c);else n.__authoredTemplates=r;if(n6(t),typeof t.text=="function"){let c=t.text,l=jt(t,t.textDeps,c),f=()=>{let d=l(t,t.state,t.context);return t.node&&typeof d=="string"&&d.includes("{{")&&(d=Kt.call(t,d,t.state)),d},u=W(()=>{if(!n.contentManaged)try{let d=Z1(t,n,f);if(d===ke)return;t.node&&d!=null&&typeof d!="function"&&typeof d!="object"&&Us(t,d)}catch(d){Qt(n,"text",d)}},{depth:n.path.length,label:yt(n,"text")});n.__effects.push(u),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=()=>Kt.call(t,c,t.state),f=W(()=>{if(n.contentManaged)return;let u=Z1(t,n,l);u!==ke&&(u!=null&&(t.text=u),t.node&&Us(t,u??""))},{depth:n.path.length,label:yt(n,"text")});n.__effects.push(f),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!zt.has(c)&&!sn(c)&&!n.__exec[c]&&!Og(s,c)){if(St[c]){let l=t[c],f=jt(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=()=>{for(let T of g)t.node.classList.remove(T);g=null,h=void 0},y=()=>{jD(t,u,p,null),Rg(t,u,null),p=null},x=W(()=>{let T=t.context?.designSystem;T&&ht(T);try{let v=f(t,t.state,t.context);_g();let _;try{_=St[u](v,t,t.state,t.context)}finally{bg()}if(Array.isArray(_)){let b={};for(let S of _)if(S)for(let w in S)b[w]=S[w];_=b}if(u==="show"||u==="hide"){t.node&&Mg(t,u,!!(_&&_.display),!0);return}if(_&&t.node&&p6(_)){let b=qa(_);if(b===null||b!==h){h=b;let S=$e(_,null,t.context?.cssPrefix),w=S?S.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let A of g)t.node.classList.remove(A);if(w&&w.length)for(let A of w)t.node.classList.add(A);g=w}}p&&y(),d=void 0}else if(_&&t.node){g&&m();let b=qa(_);if(b===null||b!==d||!Ya(t.node,p,t)){d=b;let S=J1(t,_,p,u);p=wu(t.node,S,t),Rg(t,u,p)}}else t.node&&(g&&m(),p&&y(),d=void 0)}finally{T&&dt()}},{depth:n.path.length,label:yt(n,u)});n.__effects.push(x),n.__exec[c]=l}else if(Mt&&Mt.has(c)){let l=t[c],f=jt(t,t[c+"Deps"],l),u=c,d,p=null,g=W(()=>{let h=t.context?.designSystem;h&&ht(h);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+":"+String(m);if(y!==d||!Ya(t.node,p,t)){d=y;let x={[u]:m},T=J1(t,x);p=wu(t.node,T,t),Rg(t,u,p)}}else d=void 0,p=null,Rg(t,u,null),u==="display"?Ru(t,""):t.node.style[u]=""}finally{h&&dt()}},{depth:n.path.length,label:yt(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];VD(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(m6(t),typeof t.html=="function"){let c=t.html,l=jt(t,t.htmlDeps,c),f=W(()=>{an(t,()=>{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!="function"&&(t.node.innerHTML=u)})},{depth:n.path.length,label:yt(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=jt(t,t.valueDeps,c),f=()=>{let d=l(t,t.state,t.context);return typeof d=="string"&&d.includes("{{")&&(d=Kt.call(t,d,t.state)),d},u=W(()=>{try{let d=Xn(t,n,"value",f);if(d===ke)return;Q1(t,d)}catch(d){Qt(n,"value",d)}},{depth:n.path.length,label:yt(n,"value")});n.__effects.push(u),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=()=>Kt.call(t,c,t.state),f=W(()=>{try{let u=Xn(t,n,"value",l);if(u===ke)return;Q1(t,u)}catch(u){Qt(n,"value",u)}},{depth:n.path.length,label:yt(n,"value")});n.__effects.push(f),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=jt(t,t.styleDeps,c),f,u=null,d,p,g,h,m=W(()=>{let y=l(t,t.state,t.context),x=t.context&&t.context.designSystem,T;if(y&&typeof y=="object"&&y===d&&x===g){let _=qa(y);T=_!==null&&_===p?h:Hs(t,y),p=_}else T=Hs(t,y),p=void 0;d=y,g=x,h=T;let v=qa(T);(v===null||v!==f||!Ya(t.node,u,t))&&(f=v,Zk(t.node,u,T,t),Qn(t.node,T,t),u=wu(t.node,T,t))},{depth:n.path.length,label:yt(n,"style")});n.__effects.push(m),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let l=t.style[c];if(typeof l!="function")continue;let f=jt(t,Ga(t.styleDeps,c),l),u,d=null,p=W(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!Ya(t.node,d,t)){u=h;let m=Hs(t,{[c]:g});Zk(t.node,d,Object.assign({},m,{[c]:""}),t),Qn(t.node,m,t),d=wu(t.node,m,t)}}}catch(g){Qt(n,"style."+c,g)}},{depth:n.path.length,label:yt(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=jt(t,Ga(t.attrDeps,c),t.attr[c]),f=c,u=f.toLowerCase(),d=()=>{let g=l(t,t.state,t.context);return typeof g=="string"&&g.includes("{{")&&(g=Kt.call(t,g,t.state)),g},p=W(()=>{try{let g=Xn(t,n,u,d);if(g===ke)return;t.node?.setAttribute&&Vs(t.node,f,g)}catch(g){Qt(n,"attr."+f,g)}},{depth:n.path.length,label:yt(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=f.toLowerCase(),d=()=>Kt.call(t,l,t.state),p=W(()=>{try{let g=Xn(t,n,u,d);if(g===ke||!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,Yn(f,g??""))}catch(g){Qt(n,"attr."+f,g)}},{depth:n.path.length,label:yt(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let l=t.aria[c];if(typeof l=="string"&&l.includes("{{")){let g=l,h="aria-"+c.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),m=()=>Kt.call(t,g,t.state),y=W(()=>{try{let x=Xn(t,n,h,m);if(x===ke||!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,Yn(h,x??""))}catch(x){Qt(n,"aria."+c,x)}},{depth:n.path.length,label:yt(n,"aria."+c)});y._attrName=h,n.__effects.push(y);continue}if(typeof l!="function")continue;let f=jt(t,Ga(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),d=()=>f(t,t.state,t.context),p=W(()=>{try{let g=Xn(t,n,u,d);if(g===ke||!t.node?.setAttribute)return;Vs(t.node,u,g)}catch(g){Qt(n,"aria."+c,g)}},{depth:n.path.length,label:yt(n,"aria."+c)});p._attrName=u,n.__effects.push(p)}if(t.data&&typeof t.data=="object")for(let c in t.data){let l=t.data[c];if(typeof l=="string"&&l.includes("{{")){let h=l,m="data-"+c.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),y=()=>Kt.call(t,h,t.state),x=W(()=>{try{let T=Xn(t,n,m,y);if(T===ke||!t.node||!t.node.setAttribute)return;t.node.setAttribute(m,T??"")}catch(T){Qt(n,"data."+c,T)}},{depth:n.path.length,label:yt(n,"data."+c)});x._attrName=m,n.__effects.push(x);continue}if(typeof l!="function")continue;let f=jt(t,Ga(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>f(t,t.state,t.context),g=W(()=>{try{let h=Xn(t,n,d,p);if(h===ke||!t.node?.setAttribute)return;h==null||h===!1?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&t.node.setAttribute(d,h===!0?"":h)}catch(h){Qt(n,"data."+c,h)}},{depth:n.path.length,label:yt(n,"data."+c)});g._attrName=d,n.__effects.push(g)}let i=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(i)for(let c in i){if(typeof i[c]!="function")continue;let l=jt(t,Ga(t.classDeps,c),i[c]),f=W(()=>{try{let u=l(t,t.state,t.context);if(!t.node?.classList)return;typeof u=="string"?t.node.classList.add(u):u?t.node.classList.add(c):t.node.classList.remove(c)}catch(u){Qt(n,"class."+c,u)}},{depth:n.path.length,label:yt(n,"class."+c)});n.__effects.push(f)}!o&&typeof t.if=="function"&&BD(t,n,t.if);for(let c of Object.keys(t)){if(zt.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||sn(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(fn(u,c)&&!Sr(u,c)){let d=Io(c)||c,p=jt(t,t[c+"Deps"],f),g=d.toLowerCase(),h=()=>{let y=p(t,t.state,t.context);return typeof y=="string"&&y.includes("{{")&&(y=Kt.call(t,y,t.state)),y},m=W(()=>{try{let y=Xn(t,n,g,h);if(y===ke)return;let x=br[c];if(x&&y!=null){let T=x(t);T!==void 0&&(y=T)}t.node?.setAttribute&&Vs(t.node,d,y,!0)}catch(y){Qt(n,c,y)}},{depth:n.path.length,label:yt(n,c)});m._attrName=d.toLowerCase(),n.__effects.push(m)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(zt.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||sn(c)||Sr(a,c)||br[c]||!fn(a,c))continue;let u=Io(c)||c,d=u.toLowerCase(),p=()=>Kt.call(t,l,t.state),g=W(()=>{try{let h=Xn(t,n,d,p);if(h===ke||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,Yn(u,h??""))}catch(h){Qt(n,c,h)}},{depth:n.path.length,label:yt(n,c)});g._attrName=u.toLowerCase(),n.__effects.push(g)}if(k6(t),P6(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=W(()=>{let p=[];for(let m=0;m<l.length;m++){let y=l[m];try{p[m]=typeof y=="function"?y(t,t.state,t.context):t.state?.[y]}catch{p[m]=void 0}}if(!f){f=!0,u=p;return}let g=p.length!==u.length;for(let m=0;!g&&m<p.length;m++)p[m]!==u[m]&&(g=!0);let h=u;u=p,g&&an(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(m){if(cn(t,"onStateUpdate",m),t.context?.strictMode)throw m}})},{depth:n.path.length,label:yt(n,"onStateUpdate")});n.__effects.push(d)}C6(t)}function X1(t){let e=t.parent,n=e?.node;if(!n||!t.node){tc(t,t.parent);return}let o=null,r=Object.keys(e),s=r.indexOf(t.key);for(let a=s+1;a<r.length;a++){let c=e[r[a]];if(c?.node?.parentNode===n){o=c.node;break}}t.node.parentNode===n&&t.node.nextSibling===o||(o?n.insertBefore(t.node,o):n.appendChild(t.node)),ug()}function MD(t){ND(t),j6(t),YD(t),Q6(t),Z6(t)}function BD(t,e,n){let o=jt(t,t.ifDeps,n),r=W(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,z3(t,s),o=jt(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=o(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=yr(t)),t.node&&(t.node.ref=t),X1(t),ND(t),YD(t),qt("Render",t,{}),qk(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=Gn(t)),qt("Init",t,{});let c=it.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||yr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let f=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(f),e.__fragmentAnchor=f}qt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),eL(t,{}),PD(t,{skipIfEffect:!0}),MD(t),oL(t,{}),X1(t),qt("Create",t,{}),qt("Complete",t,{}),qt("Render",t,{}),qt("RenderRouter",t,{}),qk(t,{})}},{depth:e.path.length,label:yt(e,"if")});e.__effects.push(r)}var ke=Symbol("builtTextKept");function Z1(t,e,n){let o=e.__builtText;if(!o)return n();if(o.parentNode!==t.node||typeof tr!="function")return e.__builtText=null,n();let{value:r,ready:s}=tr(n);return s?r:ke}function Xn(t,e,n,o){let r=e.__builtAttrs;if(!r||!r.values.has(n))return o();let s=t.node;if(s!==r.node||typeof tr!="function")return e.__builtAttrs=null,o();let{value:i,ready:a}=tr(o);return a?(r.values.delete(n),r.values.size||(e.__builtAttrs=null),i):(s.setAttribute(n,r.values.get(n)),ke)}function Us(t,e){let n=t.node;if(!n)return;t.__ref&&t.__ref.__builtText&&(t.__ref.__builtText=null);let o=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==o&&(n.nodeValue=o);return}let r=t.__ref,s=r?r.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==o&&(s.nodeValue=o):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(o),n.insertBefore(s,n.firstChild)):(n.textContent=o,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),r&&(r.__textNode=s||null)}function u6(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function d6(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function Vs(t,e,n,o){n==null||n===!1&&!zs(e)?Pg(t,e,null):typeof n=="function"||typeof n=="object"||(o&&e==="src"&&"src"in t?t.src=n:Pg(t,e,Yn(e,n)))}function Pg(t,e,n){let o=u6(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),d6(t,o)}function Q1(t,e){let n=t.node;if(!n||!("value"in n))return;let o=e==null?"":String(e);if(n.value===o)return;let r=n.ownerDocument,s=!!r&&r.activeElement===n,i=s&&typeof n.selectionStart=="number"?n.selectionStart:null,a=s&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=o,s&&i!=null&&a!=null)try{n.setSelectionRange(i,a)}catch{}let c=t.__ref&&t.__ref.__autoGrow;c&&c.active&&c.resize()}function ND(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&Us(t,t.text),QD(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&!(typeof t.value=="string"&&t.value.includes("{{"))&&"value"in e){let n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let o in t.style)if(typeof t.style[o]=="function"){n={};for(let r in t.style)typeof t.style[r]!="function"&&(n[r]=t.style[r]);break}Qn(e,Hs(t,n),t)}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let o=t.attr[n];typeof o=="function"||typeof o=="object"||o!=null&&(typeof o=="string"&&o.includes("{{")||o===!1&&!zs(n)||e.setAttribute&&e.setAttribute(n,Yn(n,o)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let o=t.data[n];typeof o=="function"||typeof o=="object"||o==null||o===!1||typeof o=="string"&&o.includes("{{")||e.dataset&&(e.dataset[n]=o===!0?"":o)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(o=>o&&e.classList.add(o));else if(typeof n=="object")for(let o in n){let r=typeof n[o]=="function"?n[o](t,t.state,t.context):n[o];r&&e.classList.add(typeof r=="string"?r:o)}}}}function qa(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function p6(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function wu(t,e,n){if(!t||!t.style||!e)return null;let o=t.style,r=[];for(let s in e){if(e[s]==null||s.charAt(0)==="&")continue;let a=Zn(s);r.push(a,ec(n,o,a),r0(n,o,a))}return r}function $D(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function FD(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function Zn(t){return Ro(t)}function Zk(t,e,n,o){if(!t||!t.style||!e||!e.length)return;let r=t.style,s=new Set;if(n&&typeof n=="object")for(let i in n)n[i]==null||i.charAt(0)==="&"||s.add(Zn(i));for(let i=0;i<e.length;i+=3){let a=e[i];s.has(a)||ec(o,r,a)===e[i+1]&&(o&&a==="display"?Ru(o,""):typeof r.removeProperty=="function"&&r.removeProperty(a))}}function Rg(t,e,n){let o=t.__ref;o&&(n?(o.__heldInline||(o.__heldInline=new Map)).set(e,n):o.__heldInline&&o.__heldInline.delete(e))}function h6(t,e,n){if(t.__heldInline){for(let[o,r]of t.__heldInline)if(o!==e){for(let s=0;s<r.length;s+=3)if(r[s]===n)return!0}}return!1}function jD(t,e,n,o){let r=t.__ref,s=t.node;if(!r||!n||!s||!s.style)return;let i=r.__inlineCssKeys,a=null;for(let u=0;u<n.length;u+=3){let d=n[u];o&&o.has(d)||h6(r,e,d)||(a||(a=[]),a.push(u),i&&i.delete(d))}if(!a)return;let c=i&&n0(t,i),l=s.style,f=[];for(let u of a){let d=n[u];c&&c[d]!==void 0||ec(t,l,d)===n[u+1]&&f.push(d)}for(let u of f)u==="display"?Ru(t,""):typeof l.removeProperty=="function"&&l.removeProperty(u)}function g6(t,e,n){let o=[];for(let i=0;i<e.length;i+=3)o.push(e[i]);let r=!1;for(let i in n){let a=mr[i];o.some(c=>a.includes(c))&&(r=!0,o.includes(i)||o.push(i))}if(!r)return;let s=t.node.style;e.length=0;for(let i of o)e.push(i,ec(t,s,i),r0(t,s,i))}function Ya(t,e,n){if(!e||!t||!t.style)return!1;let o=t.style;for(let r=0;r<e.length;r+=3)if(ec(n,o,e[r])!==e[r+1]||r0(n,o,e[r])!==e[r+2])return!1;return!0}var Au=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,UD=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",Fg=t=>Au(t)?t:"--"+t;function jg(t,e){if(!kr(t))return null;let n=null;for(let o of Object.keys(t)){if(!o)continue;let r=t[o];if(typeof r=="function"){if(!e)continue;r=r(e,e.state,e.context)}UD(r)&&(n||(n={}),n[Fg(o)]=r)}return n}function VD(t,e,n,o,r){HD(t,r,jt(t,o,n),s=>UD(s)?{[e]:s}:null)}function HD(t,e,n,o,r){let s=t.__ref,i,a=null,c=W(()=>{an(t,()=>{try{let l=o(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=qa(l);(u===null||u!==i||!Ya(f,a))&&(i=u,Zk(f,a,l),l&&Qn(f,l),a=l?wu(f,l):null,r&&r(l))}catch(l){Qt(s,e,l)}})},{depth:s.path.length,label:yt(s,e)});s.__effects.push(c)}function m6(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){y6(t,n),e.__exec.vars=n;return}if(kr(n))for(let o of Object.keys(n)){let r=n[o];!o||typeof r!="function"||VD(t,Fg(o),r,Ga(t.varsDeps,o),"vars."+o)}}function y6(t,e){let n=t.__ref;HD(t,"vars",jt(t,t.varsDeps,e),o=>jg(o),o=>{n.__varsInline=o?new Set(Object.keys(o)):null})}function Qk(t,e){if(typeof t[e]=="function"&&(Sr(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!Au(e))return!1;let n=t.vars;if(typeof n=="function"){let o=t.__ref&&t.__ref.__varsInline;return!!(o&&o.has(e))}if(!kr(n))return!1;for(let o of Object.keys(n))if(typeof n[o]=="function"&&Fg(o)===e)return!0;return!1}function _6(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(Zn(n)));return e}function b6(t,e,n,o){let r=t.__ref;if(!r)return;let s=null;if(n)for(let i of n){if(o&&o.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=Zn(i);mr[c]&&(s||(s={}),s[c]=a)}r.__declaredLonghands=s}function n0(t,e){let n=t.__ref,o=n&&n.__declaredLonghands;if(!o||!e)return null;let r=null;for(let s in o){if(e.has(s))continue;let i=mr[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(r||(r={}),r[s]=o[s])}return r}function J1(t,e,n,o){let r=t.node,s=_6(e),i=s&&n0(t,s);if(n&&jD(t,o,n,i?new Set([...s,...Object.keys(i)]):s),Qn(r,e,t),!s)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let c of s)a.__inlineCssKeys.add(c);else a.__inlineCssKeys=new Set(s);return i?(Qn(r,i),Object.assign({},e,i)):e}function S6(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=n0(t,e.__inlineCssKeys);if(!n)return;let o=[];if(e.__heldInline)for(let r of e.__heldInline.values())Ya(t.node,r,t)&&o.push(r);Qn(t.node,n);for(let r of o)g6(t,r,n)}function Hs(t,e){return!e||typeof e!="object"?e:an(t,()=>{try{return mk(e,t)}catch{return e}})}var zD="none",o0=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),tD=t=>$D(t,"display")===zD&&FD(t,"display")==="important";function WD(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function Mg(t,e,n,o){let r=t.__ref,s=t.node;if(!r||!s||!s.style)return;let i=r.__hiddenBy,a=!!(i&&i.size);n?(i||(i=r.__hiddenBy=new Set),i.add(e)):i&&i.delete(e);let c=s.style;i&&i.size?tD(c)||c.setProperty("display",zD,"important"):(a||o&&tD(c))&&WD(c,r.__shownDisplay||null)}function Ru(t,e,n){let o=t.__ref,r=e?[String(e),n||""]:null;o&&(o.__shownDisplay=r);let s=t.node;!s||!s.style||o0(o)||WD(s.style,r)}function ec(t,e,n){let o=n==="display"&&t&&t.__ref;return o0(o)?o.__shownDisplay?o.__shownDisplay[0]:"":$D(e,n)}function r0(t,e,n){let o=n==="display"&&t&&t.__ref;return o0(o)?o.__shownDisplay?o.__shownDisplay[1]:"":FD(e,n)}function Qn(t,e,n){if(!t||!e||!t.style)return;let o=null;for(let r in e){let s=e[r];if(s!=null){if(r.charAt(0)==="&"&&typeof s=="object"){o||(o={}),o[r]=s;continue}try{let i=String(s);if(typeof s=="object"&&i==="[object Object]")continue;let a=Ro(r),c=i.trim(),l=/\s*!important\s*$/.test(c),f=c.replace(/\s*!important\s*$/,"");if(n&&a==="display"){Ru(n,f,l?"important":"");continue}t.style.setProperty(a,f,l?"important":"")}catch{}}}o&&w6(t,o)}function w6(t,e){let n=`_ds${SD.scopedStyleId++}`;t.classList.add(n);let o=t.ownerDocument,r=o.querySelector("style[data-smbls-scoped]");r||(r=o.createElement("style"),r.setAttribute("data-smbls-scoped",""),o.head.appendChild(r));let s="";for(let i in e){let a="."+n,c=Oo(i.replace(/&/g,a)).map(f=>f.includes(a)?f:a+f).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let d in l){let p=l[d];if(typeof p=="object"){let g=Oo(c),h=d.includes("&")?g.map(y=>d.replace(/&/g,y)).join(", "):g.map(y=>`${y} ${d}`).join(", "),m="";for(let y in p)m+=`${Zn(y)}: ${p[y]};`;u+=Co(`${h} { ${m} }`,h)+`
61
+ `}else f+=`${Zn(d)}: ${p};`}f&&(s+=Co(`${c} { ${f} }`,c)+`
62
+ `),u&&(s+=u)}}s&&(r.textContent+=s)}var eD=new Set;function nD(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function x6(t,e,n){let o=nD(n);queueMicrotask(()=>{if(!t.__ref)return;let r;try{r=e(t,t.state,t.context)}catch{return}if(nD(r)===o)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";eD.has(s)||(eD.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.join(", ")||"(none)"}], probed [${Array.isArray(r)?r.join(", "):String(r)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element core.js) \u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function k6(t){let e=t.subscribeTo,n=typeof e=="function",o=e;if(n)try{o=e(t,t.state,t.context)}catch{o=null}if(n&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&x6(t,e,Array.isArray(o)?o:[]),!Array.isArray(o)||o.length===0)return;let r=t.__ref;for(let s=0;s<o.length;s++){let i=o[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),f={value:!1},u=W(()=>{let d=t.state&&(xt(t.state)?t.state.root:null);if(!d||!xt(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(xt(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&an(t,()=>{try{if(Ag(r)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>qn(r,!1),m=>{qn(r,!0),Kn("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}):(qn(r,!1),h===!1&&(g=!0))}}catch(h){qn(r,!0),Kn("error",t,{hook:"onBeforeUpdate",error:h})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",h)}}),!g&&t.node&&r.__effects)for(let h=0;h<r.__effects.length;h++){let m=r.__effects[h];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute=="function"&&m._execute()}!g&&typeof t.onUpdate=="function"&&an(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){Kn("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:r.path.length,label:yt(r,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,r.__effects.push(u)}}function s0(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&!t.startsWith("@container")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}function i0(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];if(!n)return t;if(typeof n=="string"&&!/^@(supports|container)\b/.test(n)){let o=T6(e);if(o){let r=ck(n);if(r)return`@container ${o} ${r}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function a0(t,e,n,o){return Es(t)?Ts(()=>vu(e,n,!1,o)):vu(e,n,!1,o)}function T6(t){let e=t.__ref;if(e&&e.__breakpointContainer!==void 0)return e.__breakpointContainer;let n=null;for(let o=t.parent;o&&typeof o=="object";o=o.parent){let r=o.breakpointsFrom;if(r!=null&&r!==!1){n=Sg(r,o);break}}return e&&(e.__breakpointContainer=n),n}var oD=new Set;function E6(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",o=n+"::"+t;oD.has(o)||(oD.add(o),console.warn(`[smbls/css] "${t}" at ${n} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}var rD=new Map;function A6(t){let e=rD.get(t);if(e)return e;e=[];let n=o=>{if(o)for(let r of o)e.push(gu(r))};return n(mr[t]),n(kg[t]),rD.set(t,e),e}function sD(t,e,n){if(Qk(t,e)||n&&n.has(e))return!0;let o=A6(Zn(e));for(let r=0;r<o.length;r++){let s=o[r];if(Qk(t,s)||n&&n.has(s))return!0}return!1}function vu(t,e,n,o){let r={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(r)):null;if(St[a]){let u=St[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let p of d)p&&Object.assign(r,p)}}else r[a]=c;if(l)for(let u in r)f.has(u)||s.add(u)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c=="function"&&(c=c(e,e.state,e.context)),!(c==null||typeof c=="function")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let u in c){let d=c[u];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(u,d,sD(e,u,o))}continue}if(a==="vars"){let u=jg(c,e);if(u)for(let d in u)i(d,u[d],Qk(e,d)||!!(o&&o.has(d)));continue}if(s0(a,e)){let u=vu(c,e,!1,o);Object.keys(u).length&&(r[`[data-theme="${a.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&E6(a,e);continue}let l=i0(a,e),f=a0(l,c,e,o);Object.keys(f).length&&(r[l]=f);continue}i(a,c,sD(e,a,o))}}if(n)for(let a in r)s.add(a);for(let a of s){let c=r[a];typeof c=="string"&&!c.includes("!important")&&(r[a]=c+" !important")}return r}var kr=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function GD(t,e){for(let n in e){let o=e[n];t[n]=kr(o)?GD(kr(t[n])?t[n]:{},o):o}return t}function v6(t,e){if(!kr(e))return;let n;for(let o of t.split(" ")){let r=o?e[o]:null;kr(r)&&(n=GD(n||{},r))}return n}function c0(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&c0(t[n],e+1))return!0}return!1}function KD(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(s0(t,n)){let s=vu(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let o=i0(t,n),r=a0(o,e,n);return Object.keys(r).length?{cssProp:o,block:r}:null}function C6(t){let e=t.__ref;for(let n of Object.keys(t)){if(!ED(n))continue;let o=t[n];if(!o||typeof o!="object"||Array.isArray(o)||!c0(o))continue;let r=null,s,i=W(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&ht(a);let c,l=!1;try{let f=KD(n,o,t),u=f?qa(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=$e({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&dt()}if(!(l||!t.node.classList)){if(r)for(let f of r)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);r=c}},{depth:e.path.length,label:yt(e,"cssBlock("+n+")")});e.__effects.push(i)}}var O6=()=>!0,R6=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!St[t]||!!(Mt&&Mt.has(t))||Au(t)||t==="vars"};function D6(t,e,n){let o={},r=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(R6(a,n[a])||zt.has(a))?o[a]=!0:r=!0);if(!r)return null;let s=Mk({[e]:n},t.tag||"div",o,O6),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function iD(t,e,n,o,r,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in o){let f=e.owners.get(l),u=f===n;if(!s&&f!==void 0&&!u)continue;let d;try{d=o[l](t)}catch(g){Qt(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Kt.call(t,d,t.state)),u&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&qD(i,e,l);continue}let p=d===!1&&!zs(l)?null:String(Yn(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),Pg(i,l,p),e.owners.set(l,n),e.written.set(l,p))}r.appliedAttrs=a}function qD(t,e,n){t.getAttribute(n)===e.written.get(n)&&Pg(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function L6(t,e,n,o){let r=o.appliedAttrs;if(o.appliedAttrs=null,!!r)for(let s of r)e.owners.get(s)===n&&qD(t.node,e,s)}function YD(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let o of e.owners.keys()){let r=e.written.get(o),s=n.getAttribute(o);s!==r&&(e.base.set(o,s),r==null?n.removeAttribute(o):n.setAttribute(o,r))}}var Uk,I6=()=>Uk===void 0?Uk=!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J():Uk;function aD(t,e){let n=Bd;typeof n=="function"?t.untrackedReads+=n(e):e()}function P6(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,o=new Map;for(let r of Object.keys(t)){let s=r.charAt(0);if(s!=="."&&s!=="!")continue;let i=r.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let m=i.split(/[:@\s>~+[\]]/)[0];globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] conditional \`${r}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${m}: { '${i.slice(m.length)}': {...} }\`.`)}continue}let a=t[r];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,hides:!1,probe:!1,untrackedReads:0},f=D6(t,r,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let m in a){if(!Object.prototype.hasOwnProperty.call(a,m))continue;let y=m.charAt(0),x=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&x&&typeof x=="object"&&!Array.isArray(x))){if(m==="vars"&&kr(x)){for(let T of Object.keys(x))T&&u.add(Fg(T));continue}u.add(m)}}let d=()=>{let m,y=l.probe,x;if(y?aD(l,()=>{x=t[i]}):x=t[i],x===void 0){let _=!!t.state&&i in t.state,b=t.state?t.state[i]:void 0;if(_||b!==void 0)m=b;else{let S=t.context?.cases?.[i];if(S===void 0)return;try{m=typeof S=="function"?S.call(t,t):S}catch(w){m=!1,e.__conditionalError=w,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,w?.message||w)}}}else if(typeof x=="function")try{y?aD(l,()=>{m=x(t,t.state,t.context)}):m=x(t,t.state,t.context)}catch(_){m=!1,e.__conditionalError=_,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,_?.message||_)}else m=x;y&&(l.probe=!1);let T=c?!m:!!m;if(!t.node)return;let v=t.context?.designSystem;if(T===l.lastMatch){if(T&&f&&t.node.setAttribute){v&&ht(v);try{iD(t,n,r,f,l,!1)}finally{v&&dt()}}return}l.lastMatch=T,v&&ht(v);try{if(T){let _={},b={},S=!1,w=!1;for(let C in a){if(!Object.prototype.hasOwnProperty.call(a,C))continue;let O=a[C],N=C.charAt(0);if((N===":"||N==="@"||N==="&"||N==="[")&&O&&typeof O=="object"&&!Array.isArray(O)){if(s0(C,t)){let M=vu(O,t,!1,u);Object.keys(M).length&&(b[`[data-theme="${C.slice(1)}"] &`]=M,S=!0)}else{let M=i0(C,t),K=a0(M,O,t,u);Object.keys(K).length&&(b[M]=K,S=!0)}continue}let B=typeof O=="function"?O(t,t.state,t.context):O;if(B!=null){if(C==="hide"||C==="show"){let M=St[C](B,t,t.state,t.context);M&&M.display&&(w=!0)}else if(St[C]){let M=St[C](B,t,t.state,t.context);if(M){let K=Array.isArray(M)?M:[M];for(let q of K)q&&Object.assign(_,q)}}else if(Mt&&Mt.has(C))_[C]=B;else if(Au(C))_[C]=B;else if(C==="vars"){let M=jg(B,t);M&&Object.assign(_,M)}}}(w||l.hides)&&(l.hides=w,Mg(t,r,w));let A=Object.keys(_);if(A.length){Qn(t.node,_,t);for(let C of A){let O=o.get(C);O||(O=[],o.set(C,O));let N=O.findIndex(B=>B.key===r);N!==-1&&O.splice(N,1),O.push({key:r,value:_[C]})}l.appliedKeys=A}else l.appliedKeys=null;if(S){let C=$e(b,null,t.context?.cssPrefix,{state:!0}),O=C?C.split(" ").filter(Boolean):[];if(O.length&&t.node.classList){for(let N of O)t.node.classList.add(N);l.appliedClasses=O}else l.appliedClasses=null}else if(l.appliedClasses){for(let C of l.appliedClasses)t.node.classList.remove(C);l.appliedClasses=null}f&&t.node.setAttribute&&iD(t,n,r,f,l,!0)}else{if(l.appliedAttrs&&L6(t,n,r,l),l.appliedKeys){for(let _ of l.appliedKeys){let b=o.get(_);if(!b)continue;let S=b.findIndex(w=>w.key===r);if(S!==-1)if(b.splice(S,1),b.length){let w=b[b.length-1].value,A=Ro(_),C=String(w).trim().replace(/\s*!important\s*$/,"");ec(t,t.node.style,A)!==C&&Qn(t.node,{[_]:w},t)}else o.delete(_),Au(_)?t.node.style.removeProperty(_):Ro(_)==="display"?Ru(t,""):t.node.style[_]=""}l.appliedKeys=null}if(l.hides&&(l.hides=!1,Mg(t,r,!1)),l.appliedClasses){for(let _ of l.appliedClasses)t.node.classList.remove(_);l.appliedClasses=null}}}finally{v&&dt()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=jt(t,p,d);I6()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=W(g,{depth:e.path.length,label:yt(e,"conditional("+r+")")});l.probe&&(l.probe=!1),l.untrackedReads>0&&h._sources.size===0&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] conditional \`${r}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate read state on its first run without subscribing to it (\`in\`, Object.keys, a \`__\` key, parse()), so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). Declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally, or \`${i}Deps: []\` when it is static on purpose.`)),e.__effects.push(h)}}var Vk=new WeakSet,Hk=new WeakMap;function M6(t){let e=Hk.get(t);if(e==="painted")return!1;if(e===void 0){Hk.set(t,"open");let n=t.defaultView,o=()=>{Hk.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(o):setTimeout(o,0)}return!0}var zk=new WeakSet;function B6(t){if(zk.has(t))return;zk.add(t);let e=()=>{zk.delete(t);let o=t.body||t.documentElement;o&&o.offsetWidth},n=t.defaultView;n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(e):setTimeout(e,0)}function N6(t,e){let n=t.ownerDocument;if(n&&!M6(n)){if(it.hydration!==null&&e&&e.context&&e.context.__hydration){B6(n);return}Vk.has(n)||(Vk.add(n),queueMicrotask(()=>{Vk.delete(n);let o=n.body||n.documentElement;o&&o.offsetWidth}))}}var Wk=new WeakSet,cD=!1;function lD(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function Jk(t,e){let n={...t};for(let o in e){let r=e[o],s=n[o];n[o]=r&&typeof r=="object"&&s&&typeof s=="object"?Jk(s,r):r}return n}function XD(t,e){let n={};for(let o in t){let r=t[o];if(r&&typeof r=="object"){let s=XD(r,e);Object.keys(s).length&&(n[o]=s)}else e(o)||(n[o]=r)}return n}function fD(t,e,n){let o=l0(t);if(!o)return!1;for(let r=0;r<o.length;r+=3){let s=o[r+1];if(!n.has(s))continue;let i=e[s];if(!(i==null||typeof i=="object")&&s1(o[r],i,o[r+2]))return!0}return!1}function $6(t,e,n){let o=1/0,r=-1/0;for(let i of e.values())i<o&&(o=i),i>r&&(r=i);if(n)for(let i of n.values())i>r&&(r=i);if(r<=o)return null;let s=null;for(let[i,a]of e){if(a===r)continue;let c=l0(i);if(c)for(let l=0;l<c.length;l+=3){let f=c[l],u=c[l+1],d=c[l+2],p=t[u]!=null?e.get(u):void 0,g=n&&n.get(f),h=p!==void 0&&p>a&&Tg(f,t[u],d),m=!h&&g!==void 0&&g>a&&Tg(f,void 0,d);if(h||m){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var uD=new Map;function l0(t){let e=uD.get(t);if(e!==void 0)return e;let n=Zn(t),o=mr[n];if(e=null,Array.isArray(o)){e=[];for(let r of o)e.push(r,gu(r),n)}return uD.set(t,e),e}var ZD=new Set(["page","zoom"]),F6=(t,e)=>{ZD.add(t);let n=typeof CSS<"u"?CSS:null;if(!n||typeof n.supports!="function")return;let o=!1;try{o=n.supports(Zn(t),String(e))}catch{o=!1}o&&console.warn(`[smbls] css: "${t}: ${e}" is valid CSS, but smbls has no entry for "${t}", so the element gets no CSS for it. Write it in style: { ${t}: \u2026 } for now, and report the missing property.`)};function QD(t){let{node:e}=t;if(!e)return;if(cD||(cD=!0,$e({display:"none"})),Wk.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Wk.add(t);let n=t.context?.designSystem;n&&ht(n),_g();try{let o={},r=!1,s=[],i=null,a=null,c=null,l=null,f=t.__ref&&t.__ref.__mergeLayer,u,d=null,p=null,g=!1,h=(_,b)=>{if(b&&typeof b=="object"&&lD(_)){c||(c={});let S=c[_];S&&(b=Jk(S,b)),c[_]=b}else(b===null||typeof b!="object")&&(l||(l=new Set),l.add(_),u!==void 0&&(d||(d=new Map),d.set(_,u)));o[_]=b};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&St.theme){let _=St.theme(t.theme,t,t.state,t.context);if(_){let b=S=>{for(let w in S){let A=S[w];A&&typeof A=="object"?lD(w)&&(i||(i={}),i[w]=A):l0(w)&&(a||(a=[])).push(w),o[w]=A}};if(Array.isArray(_))for(let S of _)S&&b(S);else b(_);r=!0}}let m=(_,b)=>{if(_==="vars"){let S=jg(b);if(S){for(let w in S)h(w,S[w]);r=!0}return}if(_==="hide"||_==="show"){let S=St[_](b,t,t.state,t.context);S&&S.display&&(g=!0);return}if(St[_]){let S=St[_](b,t,t.state,t.context);if(S){if(Array.isArray(S)){for(let w of S)if(w)for(let A in w)h(A,w[A])}else for(let w in S)h(w,S[w]);r=!0}}else if(Mt&&Mt.has(_))b!=null&&typeof b!="object"&&(h(_,b),r=!0);else if(_.charCodeAt(0)===45)b!=null&&typeof b!="object"&&(h(_,b),r=!0);else if(_.charAt(0)==="&"||_.charAt(0)==="@"||_.charAt(0)===":"||_.charAt(0)==="["){if(b&&typeof b=="object"&&!Array.isArray(b)){if(c0(b))return;let S=KD(_,b,t);S&&(h(S.cssProp,S.block),r=!0)}}else(typeof b=="string"||typeof b=="number")&&!ZD.has(_)&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&F6(_,b)};if(typeof t.class=="string"){let _=v6(t.class,t.context?.designSystem?.class);if(_)for(let b in _)m(b,_[b])}let y=l?new Set(l):null,x=t.tag||"div";for(let _ of Object.keys(t)){if(typeof t[_]=="function"){let S=f&&f.get(_);S!==void 0&&Sr(x,_)&&(p||(p=new Map),p.set(Zn(_),S));continue}if(u=f?f.get(_):void 0,_==="vars"){m(_,t[_]);continue}if(zt.has(_)||_==="theme")continue;let b=_.charCodeAt(0);b>=65&&b<=90||sn(_)||Og(x,_)||m(_,t[_])}u=void 0;let T=d?$6(o,d,p):null;if(a&&l)for(let _ of a)l.has(_)||!(_ in o)||fD(_,o,l)&&delete o[_];if(i){let _=l?b=>l.has(b)||fD(b,o,l):null;for(let b in i){let S=_?XD(i[b],_):i[b];c&&c[b]&&(S=Jk(S,c[b])),Object.keys(S).length?o[b]=S:delete o[b]}}if(b6(t,o,l,T?new Set([...y||[],...T]):y),Mg(t,"static",g),r){o.display&&String(o.display).includes("!important")&&(Qn(e,{display:o.display},t),delete o.display);let _=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof _=="string"&&_!==""&&o.display&&o.display!==_&&(o.display=_);let b=$e(o,null,t.context?.cssPrefix);if(s=b?b.split(" ").filter(Boolean):[],b&&e.classList){let S=s,w=!1;for(let A of S)e.classList.add(A),w||(A.charCodeAt(0)===95&&A.charCodeAt(1)===99||A.charCodeAt(0)===95&&A.indexOf("_c",1)!==-1)&&(w=!0);w&&N6(e,t)}}let v=t.__ref;if(v){let _=v.__staticCssClasses;if(_&&e.classList){let b=new Set(s);for(let S of _)b.has(S)||e.classList.remove(S)}v.__staticCssClasses=s}S6(t)}finally{bg(),n&&dt(),Wk.delete(t)}}var Sk=t=>!!St[t]||!!(Mt&&Mt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function wk(t){t&&t.node&&QD(t)}function j6(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let s=t.aria[r];if(typeof s=="function"||typeof s=="object"||s==null||typeof s=="string"&&s.includes("{{"))continue;let i="aria-"+r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,Yn(i,s))}let n=Pk(t);for(let r in n){let s=n[r];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(r,s===!0?"":s)}let o=t.tag||"div";for(let r of Object.keys(t)){if(typeof t[r]=="function"||zt.has(r)||r==="on"||n[r]!==void 0)continue;let s=r.charCodeAt(0);if(!(s>=65&&s<=90)&&!sn(r)&&!Sr(o,r)&&fn(o,r)){let i=t[r];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!br[r])continue;i=Kt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!zs(Io(r)||r))continue;let a=Io(r)||r;e.setAttribute(a,Yn(a,i))}}}function xk(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let o=e.charCodeAt(0);if(o>=65&&o<=90||sn(e))return;let r=t.tag||"div";if(Sr(r,e)||!fn(r,e))return;let s=Io(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===i&&!d._disposed&&typeof d._execute=="function"&&(c=!0,d._execute())}if(c)return;let l=t[e],f=br[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Kt.call(t,l,t.state)),Vs(n,s,l)}function U6(t,e){let n=t.node,o=t.__ref,r=o.__autoGrow;if(!e){if(r&&r.active){try{n.removeEventListener("input",r.resize)}catch{}pD(r),wr.delete(t),n.style.height="",r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""),gD(n,r,!1),r.active=!1,r.appliedMax=null,r.lastMeasure=0}return}r||(r=o.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){Cu(t,!0);return}if(!(n.scrollHeight>0)){r.awaitingLayout=!0,dD(t,r);return}r.awaitingLayout=!1;let i=z6(n),a=W6(i),c=n.style.height;n.style.height="0px",a&&Gk(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&Gk(n);return}let f=G6(n,i),u=f!=null&&l<f?f:l,d=Y6(i),p=d!=null&&u>d;n.style.height=q6(p?d:u,i)+"px",a&&Gk(n),gD(n,r,p),r.lastMeasure=l,r.lastWidth=n.clientWidth,dD(t,r)}},o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{try{n.removeEventListener("input",r.resize)}catch{}pD(r),wr.delete(t)})),r.active||(n.addEventListener("input",r.resize),r.active=!0,H6(t,r));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==r.appliedMax&&(s==null?r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,r.appliedMax=s),r.resize()}function Cu(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),wr.add(t),Ou())}function V6(){let t=Array.from(wr);wr.clear();for(let e=0;e<t.length;e++){let n=t[e],o=n.node,r=n.__ref?.__autoGrow;if(!(!o||!r||!r.active)){if(!o.isConnected){r.firstAttemptAt==null&&(r.firstAttemptAt=Ja()),r.attachAttempts+=1,r.attachAttempts<=kD&&Ja()-r.firstAttemptAt<TD&&(wr.add(n),Ou());continue}r.attachAttempts=0,r.firstAttemptAt=null,r.resize()}}}function dD(t,e){if(e.watch)return;let n=t.node;if(!n)return;let o=n.ownerDocument&&n.ownerDocument.defaultView,r=o&&o.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof r!="function")return;let s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,Cu(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,Cu(t,!0))},i;try{i=new r(s),i.observe(n)}catch{return}e.watch=i}function pD(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function H6(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,o=n&&n.fonts&&n.fonts.ready;!o||typeof o.then!="function"||o.then(()=>{e.active&&t.node&&Cu(t,!0)},()=>{})}function z6(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var Gs=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,f0=t=>(Gs(t.paddingTop)||0)+(Gs(t.paddingBottom)||0),JD=t=>(Gs(t.borderTopWidth)||0)+(Gs(t.borderBottomWidth)||0);function W6(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let o=0;o<e.length;o++){let r=e[o].trim();if(!(r!=="all"&&r!=="height")&&parseFloat(n[o%n.length])>0)return!0}return!1}function Gk(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let o=e[n];if(o&&o.transitionProperty==="height")try{o.cancel()}catch{}}}function G6(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let o=Gs(e.lineHeight)||K6(t,e);return o>0?n*o+f0(e):null}var Su=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],hD=new WeakMap;function K6(t,e){let n=t.ownerDocument,o=n&&(n.body||n.documentElement);if(!o||!n.createElement)return null;let r=hD.get(n);r||(r=new Map,hD.set(n,r));let s=Su.map(l=>e[l]||"").join("|");if(r.has(s))return r.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<Su.length;l++)e[Su[l]]&&(a[Su[l]]=e[Su[l]]);let c=0;try{o.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(r.set(s,c),c):null}function q6(t,e){return e?e.boxSizing==="border-box"?t+JD(e):e.boxSizing==="content-box"?Math.max(0,t-f0(e)):t:t}function Y6(t){if(!t)return null;let e=Gs(t.maxHeight);if(e==null||!(e>0))return null;let n=f0(t),o=JD(t),r=t.boxSizing==="border-box"?e-o:e+n,s=Gs(t.lineHeight);if(!(s>0))return r;let i=Math.floor((r-n)/s+1e-6);return i>=1?i*s+n:r}function gD(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var mD=["srcObject","muted"],X6=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function Z6(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let o=0;o<mD.length;o++){let r=mD[o],s=t[r];if(s===void 0||!(r in e))continue;let i=a=>{let c=X6(r,a);if(e[r]!==c)try{e[r]=c}catch(l){Qt(n,r,l)}};if(typeof s=="function"){let a=jt(t,t[r+"Deps"],s),c=W(()=>{try{i(a(t,t.state,t.context))}catch(l){Qt(n,r,l)}},{depth:n.path.length,label:yt(n,r)});n.__effects.push(c),n.__exec[r]=s}else i(s);r==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function Q6(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return Ht("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,o=t.autoGrow,r=typeof o=="function"?jt(t,t.autoGrowDeps,o):null,s=W(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===o&&r?r:i)(t,t.state,t.context)}catch{a=null}U6(t,a)},{depth:n.path.length,label:yt(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),r&&(n.__exec.autoGrow=o)}var tL=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function eL(t,e){let n=!1;for(let o of Object.keys(t)){if(!sn(o)||tL.has(o))continue;if(o==="onInView"||o==="onLeaveView"){n=!0;continue}let r=hg(o);if(r){gg(r,t,t[o]);continue}let s=t[o],i=null;if(s&&typeof s=="object"&&!Array.isArray(s)&&(i=s,s=i.handler),s=uu(t,s),typeof s!="function")continue;let a=dg(o);zn.has(a)||Ma($3(a),t,s,i)}J6(t),n&&it.viewEvents&&it.viewEvents(t)}function J6(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},o=!1;for(let d of tL){let p=t[d];typeof p=="function"&&(n[d]=p,o=!0)}if(!o)return;let r=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),x=Math.abs(h);if(Math.max(y,x)<r)return;let T;if(y>x*1.2)T=g<0?"left":"right";else if(x>y*1.2)T=h<0?"up":"down";else return;let v="onSwipe"+T.charAt(0).toUpperCase()+T.slice(1),_=n[v],b=n.onSwipe;_&&_.call(t,d,t,t.state,t.context),b&&b.call(t,{direction:T,dx:g,dy:h,dt:m,event:d},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function u0(t,e,n,o,r,s,i,a){let c=e;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=o;if(typeof o=="function")try{l=o(t,c)}catch{l=null}let f=typeof o=="function"?Tu(l):r;if(a&&!i&&(f=Eu(f,Tu(e))),i){let u=e;(typeof e=="string"||typeof e=="number")&&(u={value:e,text:e}),c=l?{...l,state:u}:{state:u}}else l&&(c=Fe(l,c));return c=Du(c,s),{def:c,key:AD(c?.key,e,n,t),supplied:f,props:l}}function Du(t,e){if(!e||!t||t.ignoreChildExtends)return t;if(!t.extends)return{...t,extends:e};let n=Array.isArray(t.extends)?t.extends:[t.extends],o=Array.isArray(e)?e:[e];return{...t,extends:[...o,...n]}}var Po=t=>{let e=t&&t.__ref;if(!e||e.__if===!1||e.__mount&&e.__mount.held)return null;let n=t.node;return n&&n.nodeType!==11?n:null},nL=(t,e)=>e?e.nextSibling:mu(t.node,t.__ref.__textNode),Ug=(t,e,n)=>{let o=nL(t,n);return e!==o&&t.node.insertBefore(e,o),e},Lu=(t,e)=>{let n=nL(t,e);return n?{position:"before",node:n}:void 0};function d0(t,e,n){let o=null;for(let r=0;r<e.length;r++){if(n&&n.has(e[r]))continue;let s=Po(t[e[r]]);s&&(o=Ug(t,s,o))}}function yD(t,e,n,o){let r=it.rows,s=r!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?r.track(t):null,i=p0(t,e,n,o,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function p0(t,e,n,o,r,s){if(!e||!t.node)return;let i=t.childExtends,a=xr(t,"childProps"),c=t.__ref,l=it.mount,f=o>0&&t.tag!=="fragment"&&c?o:0;if(Array.isArray(e)){let u=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let m=u0(t,e[g],g,u,a,i,d,r);s&&s.add(m.key,e[g],m,u,i);try{let y=Wt(Ws(m.def,m.supplied),t,m.key,n,h);return!y&&s&&s.none(m.key),Ig(t,y),y}catch(y){if(s&&s.failed(m.key),typeof console<"u"&&console.error){let x=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${m.key}" failed to construct at ${x} (initial render, skipping this row):`,y?.message||y)}return null}};if(!f){for(let g=0;g<e.length&&!(c&&c.__disposed);g++)p(g);return!0}return l.rows(t,e.length,p,f),!0}if(typeof e=="string"){let u=RD(e,t);if(Array.isArray(u))return p0(t,u,n,o,!0,s)}if(typeof e=="object"){let u=(p,g)=>{if(zt.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let m=r?Eu(a,Tu(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Fe(t.childProps,h)),h=Du(h,i);let y=Wt(Ws(h,m),t,Ng(t,p),n,g);return Ig(t,y),y};if(!f){for(let p in e)u(p);return}let d=[];for(let p in e)d.push(p);l.rows(t,d.length,(p,g)=>u(d[p],g),f)}}function Qa(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let o=n.options;if(!o||!o.length)return;let r=t.__ref,s=r&&r.__exec&&r.__exec.value,i=typeof s=="function",a=t.value!=null&&typeof t.value!="function";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value,typeof f=="string"&&f.includes("{{")&&(f=Kt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let c=e||!(r&&r.__selectSynced);if(r&&(r.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<o.length;f++)o[f].defaultSelected&&(l=f);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function oL(t,e){let{children:n,content:o}=t,r=t.childExtends,s=typeof n=="function",i=s||LD(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=jt(t,t.childrenDeps,u),m=W(()=>{let y=p;p=!0;let x;try{x=h(t,t.state,t.context)}catch(C){if(typeof console<"u"&&console.error){let O=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${O}${y?"":" (initial run, treating as empty)"}:`,C?.message||C)}return}if(!y){g=x;return}if(x===t.children)return;Y1(t,x),t.children=x,d.__mount&&d.__mount.chunkGen++;let T=typeof t.onContentUpdate=="function",v=T?[]:null,_=T?[]:null,b=T?[]:null;if(Array.isArray(x)&&t.childrenAs==="state"){let C=t.childProps,O=[],N=new Map;for(let Z=0;Z<x.length;Z++){let X=x[Z],Q=C;if(typeof C=="function")try{Q=C(t,X)}catch{Q=null}let rt=AD(Q&&Q.key,X,Z,t);O.push(rt),N.set(rt,{rawChild:X,childProps:Q})}let B=new Set(O),M=H1(d,d.__children.slice());for(let Z of M)if(!B.has(Z)){let X=t[Z];X?.remove&&X.remove(),delete t[Z],_&&_.push(Z)}let K=t.childExtends,tt=!(t.tag==="fragment")&&!!t.node,nt=null,ot=new Set;for(let Z of O){let X=N.get(Z),Q=X.rawChild,rt=t[Z];if(rt&&rt.state){if(Q&&typeof Q=="object"){let gt=rt.state,Bt=gt.$replace||gt.replace,Tt=gt.$update||gt.update;try{if(typeof Bt=="function")Bt.call(gt,Q);else if(typeof Tt=="function"){for(let Ct in gt)if(!(Ct==="__element"||Ct==="root"||Ct==="parent"||Ct==="update")&&!Object.prototype.hasOwnProperty.call(Q,Ct))try{gt[Ct]=void 0}catch{}Tt.call(gt,Q)}else for(let Ct in Q)gt[Ct]=Q[Ct]}catch(Ct){if(typeof console<"u"&&console.error){let He=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${Z}" failed to patch at ${He} (reconcile, keeping its previous data for this pass):`,Ct?.message||Ct)}}}if(b&&b.push(Z),tt){let gt=Po(rt);gt&&(nt=Ug(t,gt,nt))}continue}let et=Q;(typeof Q=="string"||typeof Q=="number")&&(et={value:Q,text:Q});let pt=X.childProps,G=Du(pt?{...pt,state:et}:{state:et},K),z=typeof C=="function"?Tu(pt):xr(t,"childProps"),vt;try{vt=Wt(Ws(G,z),t,Z,e,tt?Lu(t,nt):void 0)}catch(gt){if(typeof console<"u"&&console.error){let Bt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${Z}" failed to construct at ${Bt} (reconcile, skipping this row):`,gt?.message||gt)}ot.add(Z);continue}if(d.__disposed)return;if(tt){let gt=Po(vt);gt&&(nt=gt)}v&&v.push(Z)}tt&&d0(t,O,ot.size?ot:null),d.__children=ot.size?O.filter(Z=>!ot.has(Z)):O,T&&(v.length||_.length)&&Dg(t,{added:v,removed:_,kept:b}),Qa(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&it.rows.reconcile(t,d,x,e,T)){Qa(t,!1);return}let A=T?[...d.__children]:null;for(let C of H1(d,[...d.__children])){let O=t[C];O?.remove&&O.remove(),delete t[C]}d.__children=[],yD(t,x,e,0),Qa(t,!1),T&&Dg(t,{added:[...d.__children],removed:A,kept:[]})},{depth:d.path.length,label:yt(d,"children")});d.__effects.push(m),n=g,Y1(t,n),t.children=n}let a=it.mount,c=a!==null?a.budgetOf(t,e):0,l=yu(t.__ref),f=s?yD(t,n,e,c):p0(t,n,e,c,i);if(c&&yu(t.__ref)>l){a.defer(t,c,()=>_D(t,e,n,o,r,f,c));return}_D(t,e,n,o,r,f,c)}function _D(t,e,n,o,r,s,i){let a=yu(t.__ref);if(o!=null&&!(o&&o.__ref)){let c=o;typeof c=="string"||typeof c=="number"?c={text:c}:typeof c!="object"&&(c={}),t.childProps&&(c=Fe(t.childProps,c)),c=Du(c,r);let l=Eu(xr(t,"childProps"),xr(t,"content"));Ig(t,Wt(Ws(c,l),t,"content",e))}if(!(n&&!s)){if(i&&yu(t.__ref)>a){it.mount.defer(t,i,()=>bD(t,e,r,i));return}bD(t,e,r,i)}}function bD(t,e,n,o){let r=t.context?.components||{},s=t.__ref&&t.__ref.__runtimeSource,i=s?{}:null;{let l=Object.keys(t);for(let f=0;f<l.length;f++){let u=l[f];if(!u.endsWith("Extends")||typeof t[u]!="string")continue;let d=u.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[u]};delete t[u];for(let g=f+1;g<l.length;g++){let h=l[g],m=h.charCodeAt(0);if(m>=65&&m<=90||zt.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let y=t[h];y!==void 0&&(p[h]=y,delete t[h],i&&ku(s,h)&&(i[d]||(i[d]={}),i[d][h]=s[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),c=l=>{if(zt.has(l)||typeof t[l]!="object"||t[l]===null)return!1;let f=l.charCodeAt(0);if(f<65||f>90)return!1;let u=t[l];if(u.__ref)return!1;if(!u.extends&&!u.extend){let p=r[l]||r[`smbls.${l}`];p&&(u={...u,extends:p})}t.childProps&&(u=Fe(t.childProps,u)),u=Du(u,n);let d=s?Eu(xr(t,"childProps"),Eu(i[l]||null,xr(t,l))):null;Ig(t,Wt(Ws(u,d),t,l,e))};if(!o){for(let l of a)c(l);return}it.mount.run(t,a.length,l=>c(a[l]),o)}function tc(t,e,n){let{node:o}=t;if(!o)return;o.ref=t;let r=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(r){let c=r.parentNode;if(c){if(n?.position==="before"&&n.node)c.insertBefore(o,n.node);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;c.insertBefore(o,l||r)}else c.insertBefore(o,r);ug();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&it.hydration!==null){let c=t.context&&t.context.__hydration;if(c&&it.hydration.place(c,t,e,s,o))return}let i=n?.node,a=o.parentNode===s;if(i&&i.parentNode!==s)(!a||o.nextSibling)&&s.appendChild(o);else if(n?.position==="before"&&i)i!==o&&(!a||o.nextSibling!==i)&&s.insertBefore(o,i);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;c===o||(c?s.insertBefore(o,c):s.appendChild(o))}else(!a||o.nextSibling)&&s.appendChild(o);ug()}var Bg=3;function Ag(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Bg?!1:(t.__inBeforeUpdate=!0,!0)}function qn(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Bg&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Bg}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function qt(t,e,n){let o=t.charAt(0).toLowerCase()+t.slice(1);Kn(o,e,n);let r="on"+t,s=e[r];if(typeof s=="function"){let c=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&ht(l);let f=!!c;try{let u=s(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{cn(e,r,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(cn(e,r,u),e.context?.strictMode)throw u}finally{l&&dt(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var Iu=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),aL=1e3,cL=24,h0=Object.freeze({}),y0=Object.freeze({}),nc=0,Vg=t=>{if(xt(t)||Iu(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function g0(t,e,n){if(t===null||typeof t!="object")return t;if(--nc<0||e>cL){nc=-1;return}if(Array.isArray(t)){let r=new Array(t.length);for(let s=0;s<t.length;s++)r[s]=n?t[s]:g0(t[s],e+1,!1);return r}if(n||!Vg(t))return t;let o={};for(let r in t)Iu(t,r)&&(o[r]=g0(t[r],e+1,r==="extends"||r==="childExtends"));return o}function rL(t){nc=aL;let e;try{e=g0(t,0,!1)}catch{return h0}return nc<0?h0:e}function m0(t,e,n,o){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--nc<0||n>cL)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let s=0;s<t.length;s++)if(o?t[s]!==e[s]:!m0(t[s],e[s],n+1,!1))return!1;return!0}if(o||Array.isArray(e)||!Vg(t)||!Vg(e))return!1;let r=0;for(let s in t)if(Iu(t,s)&&(r++,!Iu(e,s)||!m0(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)Iu(e,s)&&r--;return r===0}function sL(t,e){if(e===h0||e===y0)return!1;nc=aL;try{return m0(t,e,0,!1)}catch{return!1}}var Hg=t=>Re()?we(()=>rL(t)):rL(t),iL=(t,e)=>Re()?we(()=>sL(t,e)):sL(t,e);function lL(t,e,n,o){let r=t;return r&&typeof r=="object"&&!Array.isArray(r)&&!Vg(r)&&(o||n&&!r.ignoreChildExtends)&&(r=o?Fe({},r):{...r}),typeof e=="function"?{item:r,props:o}:r}var fL=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),zg=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,o,r,s){this.rows.set(e,Hg(lL(n,r,s,o.props)))}failed(e){this.rows.set(e,y0)}none(e){this.rows.delete(e)}},tH=Object.freeze([]);function eH(t,e,n,o,r){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=fL(t),c=iL(a,i),l=t.childProps,f=xr(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let S=0;S<n.length;S++){let w=u0(t,n[S],S,l,f,u,!1,!0);if(p.has(w.key))return!1;p.set(w.key,w),d[S]=w}for(let S=0;S<d.length;S++){let w=d[S];w.input=lL(n[S],l,u,w.props);let A=c?s.get(w.key):void 0;if(A===void 0)continue;let C=t[w.key];C&&C.__ref&&C.parent===t&&iL(w.input,A)&&(w.kept=!0,w.snap=A)}let g=r?[]:null;for(let S of s.keys()){let w=p.get(S);if(w&&w.kept)continue;let A=t[S];A?.remove&&A.remove(),delete t[S],g&&g.push(S)}let h=r?[]:null,m=r?[]:null,y=new Map,x=null,T=null;for(let S=0;S<d.length;S++){let w=d[S];if(w.kept){y.set(w.key,w.snap),m&&m.push(w.key);let O=Po(t[w.key]);O&&(T=Ug(t,O,T));continue}y.set(w.key,Hg(w.input));let A;try{A=Wt(Ws(w.def,w.supplied),t,w.key,o,Lu(t,T))}catch(O){if(y.set(w.key,y0),x||(x=new Set),x.add(w.key),typeof console<"u"&&console.error){let N=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${w.key}" failed to construct at ${N} (re-run, skipping this row):`,O?.message||O)}continue}if(e.__disposed)return!0;if(!A){y.delete(w.key);continue}let C=Po(A);C&&(T=C),h&&h.push(w.key)}e.__plainRows=new zg(c?i:Hg(a),y);let v=Array.from(y.keys());d0(t,v,x);let _=new Set(e.__children),b=[];for(let S=0;S<v.length;S++)_.has(v[S])&&b.push(v[S]);for(let S of e.__children)y.has(S)||b.push(S);return e.__children=b,r&&(h.length||g.length)&&Dg(t,{added:h,removed:g,kept:m}),!0}var uL={track:t=>new zg(Hg(fL(t)),new Map),reconcile(t,e,n,o,r){let s=Array.isArray(n)?n:n==null||n===!1?tH:null;return!!s&&eH(t,e,s,o,r)}};var Wg=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,o=n&&n.__ref?Wg(n):null,r=o===null?"":o?o+"."+t.key:String(t.key);return e&&(e.__hydrationPath=r),r},nH=new Set(["src","srcset"]),oH=new Set(["class","style","id","data-br"]),rH=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),sH=new Set(["sizes","media","type","width","height"]),iH=t=>t==="img"?rH:t==="source"?sH:null,aH=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",dL=(t,e)=>{for(let n of e){let o=t.nodes.get(n.target);o&&(o.delete(n.attributeName),o.size||t.nodes.delete(n.target))}},cH=(t,e,n)=>{let o=t.built;if(!o){let r=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.MutationObserver||(typeof MutationObserver=="function"?MutationObserver:null);if(!r)return!1;let s=new Map;o=t.built={nodes:s,observer:null},o.observer=new r(i=>dL(o,i))}return o.nodes.set(e,new Set(n)),o.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function Er(t){let e=t&&t.built;if(!e)return 0;t.built=null,dL(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[o,r]of e.nodes)for(let s of r)o.hasAttribute(s)&&(o.removeAttribute(s),n++);return e.nodes.clear(),n}function _0(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=Gn(t);if(n==="string"||n==="fragment")return null;let o=Wg(t),r=e.registry[o===""?"__root":o],s=r!==void 0?e.nodes[r]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return r!==void 0&&e.misses++,null;let i=Do(n)&&(n==="svg"||t.parent?.node?.namespaceURI===js),a=Do(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===js:s.namespaceURI!==js;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;let l=e.pending;if(l&&l.delete(s)){let p=s.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let f=null,u=null,d=iH(s.localName);for(let p of Array.from(s.getAttributeNames?s.getAttributeNames():[]))nH.has(p)||p==="data-key"||(oH.has(p)||(u||(u=new Map)).set(p,s.getAttribute(p)),!(d&&d.has(p))&&(aH(p)?(f||(f=[])).push(p):s.removeAttribute(p)));if(f&&!cH(e,s,f))for(let p of f)s.removeAttribute(p);if(u&&t.__ref&&(t.__ref.__builtAttrs={node:s,values:u}),l){let p=0,g=0,h=s.firstChild,m=t.text!=null&&h&&h.nodeType===3&&!l.has(h)?h:null;m&&t.__ref&&(t.__ref.__builtText=m);for(let y=s.firstChild;y;){let x=y.nextSibling;y!==m&&!l.has(y)&&(y.nodeType===3?p++:y.nodeType!==8&&g++,s.removeChild(y)),y=x}(g||p>(t.text!=null&&!m?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;s.firstChild;)s.removeChild(s.firstChild);return s.localName==="img"&&s.complete&&s.naturalWidth>0&&fH(s),s}var lH=500;function fH(t){let e=!1,n=!1,o=r=>{r.isTrusted&&(n?r.stopImmediatePropagation():e=!0,t.removeEventListener("load",o,!0))};t.addEventListener("load",o,!0),setTimeout(()=>{if(!e){if(!(t.complete&&t.naturalWidth>0)){t.removeEventListener("load",o,!0);return}n=!0,t.dispatchEvent(new Event("load")),setTimeout(()=>t.removeEventListener("load",o,!0),lH)}},0)}function uH(t,e,n,o,r){if(r.parentNode===o&&t.claimed.has(r))return!0;let s=t.pendingIn;if(!s||!s.has(o))return!1;let i,a=n&&n.__ref,c=a&&a.__children,l=c?c.lastIndexOf(e.key):-1;for(let f=l-1;f>=0;f--){let u=n[c[f]],d=u&&u.node;if(d&&d!==r&&d.parentNode===o){i=d.nextSibling;break}}return i===void 0&&(i=mu(o,a&&a.__textNode)),i===r||o.insertBefore(r,i),!0}function dH(t,e){let n=t.whole;if(!n)return!1;if(n.has(e))return!0;let o=e.parent;return!o||!n.has(o)?!1:(n.add(e),!0)}function pH(t,e){let n=e&&e.__ref,o=e&&e.node;if(!n||!o||!t.pending||!t.claimed.has(o))return null;let r=o.parentNode;return r?(t.claimed.delete(o),t.adopted--,t.pending.add(o),t.pendingIn.set(r,(t.pendingIn.get(r)||0)+1),n.__keepNode=!0,o):null}function hH(t,e){if(!e||!t.pending||!t.pending.delete(e))return;let n=e.parentNode;if(n){let o=(t.pendingIn.get(n)||1)-1;o>0?t.pendingIn.set(n,o):t.pendingIn.delete(n),e.remove()}}var pL={adopt:_0,place:uH,whole:dH,settle:Er,handBack:pH,settleHandBack:hH};var Ys=50;function Jn(t){return t===!0?Ys:typeof t=="number"&&t>0?t:0}var vn=[],rc=!1,Ar=0,Mo=Ys,Bu=!1,Kg=[],qg=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Gg=[],Pu=null;function gH(t){if(!Pu){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Gg.shift();!Gg.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},Pu=e}Gg.push(t),Gg.length===1&&typeof Pu.port1.ref=="function"&&Pu.port1.ref(),Pu.port2.postMessage(0)}function x0(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof setImmediate=="function"){setImmediate(t);return}if(typeof MessageChannel=="function"){gH(t);return}setTimeout(t,0)}function to(){return new Promise(t=>x0(t))}var Mu=0,S0=0,w0=0,oc=0;function k0(){Mu=0,S0=Ar,w0=0,oc=0}function hL(){if(!Ar)return!1;if(Mu++,oc>0)return oc--,!1;let t=qg(),e=t-Ar,n=e/Mu,o=(t-S0)/(Mu-w0),r=o>n?o:n;S0=t,w0=Mu;let s=Mo-e-r;return s<=0?(Bu=!0,!0):(oc=r>0?Math.floor(s/r/2):0,!1)}var qs=0;function gL(t=Ys){qs===0&&!Ar?(Ar=qg(),Bu=!1,Mo=t,k0()):t<Mo&&(Mo=t,oc=0),qs++}var je=null,b0=!1,mH=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function T0(){Ar=0,Bu=!1,Mo=Ys,k0()}function yH(){b0||(b0=!0,mH(()=>{b0=!1,qs===0&&T0()}))}function mL(){qs>0&&qs--,!(qs!==0||je!==null)&&(rc?yH():T0())}function E0(t,e=Ys,n=null){let o={fn:t,budget:e,lease:n};je?je.push(o):vn.push(o),rc||(rc=!0,x0(yL))}function A0(t){let e=t&&t.context;return e&&e.__mountLease||null}function Nu(t){if(!t)return;let e=0;for(let n=0;n<vn.length;n++){let o=vn[n];o.lease!==t&&(vn[e++]=o)}if(vn.length=e,je){let n=0;for(let o=0;o<je.length;o++)je[o].lease!==t&&(je[n++]=je[o]);je.length=n}typeof t.lost=="function"&&t.lost()}function _H(t){if(t.lease!==null&&!t.lease.live()){Nu(t.lease);return}let e=je;je=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=je;je=e,n.length&&vn.unshift(...n)}}function Te(){return!rc&&!vn.length?Promise.resolve():new Promise(t=>Kg.push(t))}function vr(){return!rc&&!vn.length}function bH(){if(!Kg.length)return;let t=Kg;Kg=[];for(let e=0;e<t.length;e++)t[e]()}function yL(){for(Ar=qg(),Bu=!1,Mo=1/0,k0();vn.length;){let t=vn.shift();if(t.budget<Mo&&(Mo=t.budget,oc=0),_H(t),Bu||qg()-Ar>=Mo)break}if(qs=0,T0(),vn.length){x0(yL);return}rc=!1,bH()}function Yg(t){Ua(t.__ref).pending++}function Ue(t){let e=t&&t.__ref,n=e&&e.__mount;if(!n||!(n.pending>0)||--n.pending>0||e.__disposed)return;let o=n.tail;o&&(n.tail=null,o())}function Xg(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function Bo(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.tail?Promise.resolve(t):new Promise(n=>{(e.waiters||(e.waiters=[])).push(n)})}function v0(t,e=t&&t.__ref){let n=e&&e.__mount,o=n&&n.waiters;if(o){n.waiters=null;for(let r=0;r<o.length;r++)o[r](t)}}function _L(t,e=t&&t.__ref){let n=e&&e.__mount;if(!n||!n.tail)return;n.tail=null,n.pending=0;let o=n.holder;n.holder=null,v0(t,e),o&&Ue(o)}function SH(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let o=it.hydration!==null&&t.context?t.context.__hydration:null;if(o&&it.hydration.whole(o,t))return 0;let r=n?Jn(n):0,s=Jn(t.yieldChildren);return r&&s?r<s?r:s:r||s}function bL(t,e,n,o,r){gL(o);try{SL(t,t.__ref,0,e,n,o,r,!1)}finally{mL()}}function SL(t,e,n,o,r,s,i,a){try{for(let c=n;c<o;c++){let l=e.__mount,f=l?l.pending:0;if(r(c)===!1)continue;if(e.__disposed)break;let u=hL(),d=e.__mount;if(c+1<o&&(u||(d?d.pending:0)>f)){i&&i.onSuspend&&i.onSuspend(),a||Yg(t);let p=c+1;E0(()=>wH(t,e,p,o,r,s,i),s,A0(t));return}}}catch(c){if(!a)throw c;$g(t,c)}a&&Ue(t)}function wH(t,e,n,o,r,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){Ue(t);return}SL(t,e,n,o,r,s,i,!0)}function xH(t,e,n){Yg(t),E0(()=>{try{let o=t.__ref;o&&!o.__disposed&&n()}catch(o){$g(t,o)}finally{Ue(t)}},e,A0(t))}function kH(t,e,n,o){let r=t.__ref,s=Ua(r),i=++s.chunkGen,a=t.node,c=[],l=!1;bL(t,e,f=>{let u=n(f,l?Lu(t,TH(a,c)):void 0),d=wL(u);return d?c.push(d):u&&u.__ref.__mount&&u.__ref.__mount.held&&c.push(u),u},o,{isStale:()=>s.chunkGen!==i,onSuspend:()=>{l=!0}})}function wL(t){let e=Po(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function TH(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n].__ref?wL(e[n]):e[n];if(o&&o.parentNode===t)return o}return null}function EH(t,e){let n=t.__ref;try{Qa(t,!0),vD(t),e0(t,e)}finally{v0(t,n);let o=n.__mount,r=o&&o.holder;r&&(o.holder=null,Ue(r))}}var xL={budgetOf:SH,run:bL,rows:kH,defer:xH,hold:Yg,finish:EH,abandon:_L};function kL(){it.viewEvents=MR,it.chains=DR,it.rows=uL,it.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:pL,it.mount=xL}kL();var Xs="inertOutside",vH=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),CH='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',OH={attributes:!0,attributeFilter:["inert"]},TL=new WeakMap,EL=new WeakMap,$u=new Set,AL=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Cr(t){try{return we(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function vL(t){let e=()=>Cr(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function RH(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=TL.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(o=>Cr(()=>Zg(e,o))),TL.set(t,e),e)}function C0(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function DH(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var CL=t=>!!(t.closest&&t.closest("[inert]"));function LH(t){let e=t.ownerDocument,n=new Set,o=[];for(let r=t;r!==e.body;r=r.parentNode){let s=r.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;o.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==r&&!vH.has(i.tagName)&&n.add(i)}return{outside:n,parents:o}}function OL(t,e){for(let n=0;n<e.length;n++){let{type:o,target:r}=e[n];o==="attributes"&&t.held.has(r)&&t.held.set(r,!r.hasAttribute("inert"))}}function Zg(t,e){let{doc:n,held:o,observer:r}=t;e&&OL(t,e),OL(t,r.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=C0(u,n);d&&!u.live&&(i.push(u),u.returnFocus=DH(n)),u.live=d}i.length&&(t.layers=t.layers.filter(u=>!i.includes(u)).concat(i));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:c,parents:l}=a?LH(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of o)c.has(u)||(d&&u.removeAttribute("inert"),o.delete(u));for(let u of c)o.has(u)||o.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),o.set(u,!0));r.takeRecords(),r.disconnect();for(let u of l)r.observe(u,{childList:!0});for(let u of o.keys())r.observe(u,OH);t.layers.some(u=>!u.live)?$u.add(t):$u.delete(t);for(let u of t.layers)!u.live&&!u.connecting&&!Pa(u.element)&&(u.connecting=!0,gr(u.element,()=>Cr(()=>{u.connecting=!1,u.declared&&!u.live&&C0(u,t.doc)&&Zg(t)})));if(a===s)return;let f=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),vL(()=>DL(t,a));else if(f){let u=f.returnFocus;vL(()=>IH(t,f,u))}f&&(f.returnFocus=null)}function DL(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let o=t.doc,r=o.activeElement;if(r&&n.contains(r))return;let s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),o.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(CH))if(i(a,!0))return;r&&r!==o.body&&typeof r.blur=="function"&&r.blur()}function IH(t,e,n){if(e.declared&&e.live)return;let o=t.doc,r=o.activeElement,s=e.element.node;(!r||r===o.body||s&&s.contains(r)||CL(r))&&(n&&n.isConnected&&n.ownerDocument===o&&!CL(n)&&(n.focus({preventScroll:!0}),o.activeElement===n)||t.top&&DL(t,t.top))}function O0(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let o=n.layers.indexOf(t);o!==-1&&n.layers.splice(o,1)}Zg(n)}function LL(t){let e=t[Xs];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function RL(t){let e=EL.get(t);if(e)return e;let n=t.__ref,o=t.node;if(!n||!o||o.nodeType!==1)return null;let r=RH(o.ownerDocument);if(!r)return null;e={element:t,manager:r,declared:!1,live:!1,connecting:!1,returnFocus:null},EL.set(t,e);let s=W(()=>{let i=LL(t);Cr(()=>O0(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+Xs});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>Cr(()=>O0(e,!1))),e}function PH(){for(let t of $u){if(!t.doc.defaultView){$u.delete(t);continue}t.layers.some(e=>!e.live&&C0(e,t.doc))&&Zg(t)}}var Qg={name:Xs,create(t){if(AL(t,Xs)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Ht(Xs,t);Cr(()=>RL(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||$u.size&&Cr(PH)},update(t){if(AL(t,Xs)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Ht(Xs,t);Cr(()=>{let e=RL(t);e&&O0(e,LL(t))})}}};var IL={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["gray-168","gray+168"],caption:["gray-68","gray+68"],paragraph:["gray-42","gray+42"],disabled:["gray-26","gray+26"],line:["gray-16","gray+16"],scrim:["black.45","black.55"],scrimSoft:["black.2","black.3"],blueDeep:"#0A5CB8",blueBright:"#47A8FF",accentInk:["blueDeep","blueBright"],greenDeep:"#2A6E28",greenBright:"#7FD07B",successInk:["greenDeep","greenBright"],redDeep:"#A83520",redBright:"#FF8C78",dangerInk:["redDeep","redBright"],orangeDeep:"#94500F",orangeBright:"#F4A45E",warningInk:["orangeDeep","orangeBright"],magentaDeep:"#A100A1",magentaBright:"#FF7AFF",magentaInk:["magentaDeep","magentaBright"]},PL={"gradient-blue-light":`linear-gradient(to right,
63
63
  rgba(4, 116, 242, 1),
64
64
  rgba(0, 48, 103, 1)
65
65
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -85,12 +85,12 @@ FROM ${a}${l}`},Pj=t=>{let e=[],n=(o,r)=>{for(let s in o){let i=r?`${r}/${s}`:s;
85
85
  #1E54F0 36%,
86
86
  #8B4CCA 69%,
87
87
  #C66894 100%
88
- )`};var wH={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},xH={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},kH={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},EL={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...wH,...xH,...kH,backdrop:{"@light":{background:"scrim",backdropFilter:"blur(8px)"},"@dark":{background:"scrim",backdropFilter:"blur(8px)"}},backdropSoft:{"@light":{background:"scrimSoft",backdropFilter:"blur(4px)"},"@dark":{background:"scrimSoft",backdropFilter:"blur(4px)"}},none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var AL={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var vL={ratio:1.618,subSequence:!0};var CL={SourceSans:[{url:""}]},OL={system:{isDefault:!0,isSystemFallback:!0,value:["system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"','"Liberation Sans"'],type:"sans-serif"}};var RL=new Set,TH=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",x0=(t,e,n)=>{let o=t+":"+e;if(RL.has(o)||(RL.add(o),typeof console>"u"||!console.error))return;let r=n&&n.__ref&&n.__ref.path,s=r&&r.length?` (at <${r.join(".")}>)`:"",i=TH(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${s} is not in this build: symbols.json ${i} left it out because the project source never names it. Add "${e}" to ${i}.keep.`)},D=t=>({onInit:{always:!0,handler:e=>x0("component",t,e)}}),DL=new Set,LL=t=>{for(let e of t)e&&DL.add(e)},IL=t=>DL.has(t);var k0={...globalThis.__SMBLS_BUILD_DROP_I_symbols__?{}:{symbols:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_logo__?{}:{logo:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowDownCircle__?{}:{arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowDownLeft__?{}:{arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowDownRight__?{}:{arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowDown__?{}:{arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowLeftCircle__?{}:{arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowLeft__?{}:{arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowRight__?{}:{arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowRightCircle__?{}:{arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowUpCircle__?{}:{arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowUpLeft__?{}:{arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowUpRight__?{}:{arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowUp__?{}:{arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_checkCircle__?{}:{checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_check__?{}:{check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_chevronDown__?{}:{chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_chevronLeft__?{}:{chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_chevronRight__?{}:{chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_chevronUp__?{}:{chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_copy__?{}:{copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_eyeOff__?{}:{eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_eye__?{}:{eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_info__?{}:{info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_lock__?{}:{lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_minus__?{}:{minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_sun__?{}:{sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_moon__?{}:{moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_moreHorizontal__?{}:{moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_moreVertical__?{}:{moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_send__?{}:{send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_smile__?{}:{smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_search__?{}:{search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_upload__?{}:{upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_video__?{}:{video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_x__?{}:{x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_star__?{}:{star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_plus__?{}:{plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'}};globalThis.__SMBLS_BUILD_DROP_ICONS__&&LL(["symbols","logo","arrowDownCircle","arrowDownLeft","arrowDownRight","arrowDown","arrowLeftCircle","arrowLeft","arrowRight","arrowRightCircle","arrowUpCircle","arrowUpLeft","arrowUpRight","arrowUp","checkCircle","check","chevronDown","chevronLeft","chevronRight","chevronUp","copy","eyeOff","eye","info","lock","minus","sun","moon","moreHorizontal","moreVertical","send","smile","search","upload","video","x","star","plus"].filter(t=>!Object.prototype.hasOwnProperty.call(k0,t)));var PL={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920.02px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680.02px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440.02px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366.02px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280.02px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024.02px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768.02px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560.02px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480.02px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375.02px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var ML={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var BL={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var Ys={version:"0.0.1",color:kL,gradient:TL,theme:EL,typography:AL,spacing:vL,font:CL,fontFamily:OL,timing:ML,icons:k0,media:PL,sizes:BL,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}},modalIn:{from:{transform:"scale(0.95)",opacity:0},to:{transform:"",opacity:1}},modalOut:{to:{transform:"scale(0.95)",opacity:0}}},devices:{},class:{},svg:{},grid:{},shape:{}};var lc=/*@__PURE__*/$({},{A:()=>KP,AssetPicture:()=>tI,Audio:()=>oI,Avatar:()=>_M,B:()=>xI,Block:()=>NL,Box:()=>Qg,Br:()=>AI,Bridge:()=>PI,Button:()=>XP,ButtonSet:()=>tM,COMPONENTS:()=>ri,Caption:()=>pI,Checkbox:()=>NI,CheckboxHgroup:()=>$I,Circle:()=>ZL,CircleButton:()=>QP,Clickable:()=>qL,Data:()=>TI,Dialog:()=>iM,DialogFooter:()=>cM,DialogHeader:()=>aM,Dropdown:()=>WM,DropdownDisclosure:()=>qM,DropdownList:()=>GM,DropdownParent:()=>KM,DropdownParentFocus:()=>YM,DropdownSiblingFocus:()=>XM,FileIcon:()=>QI,Flex:()=>FL,Focusable:()=>YL,FocusableComponent:()=>XL,Footnote:()=>wI,Form:()=>WL,Grid:()=>UL,Gutter:()=>HL,H1:()=>iI,H2:()=>aI,H3:()=>cI,H4:()=>lI,H5:()=>fI,H6:()=>uI,Headline:()=>bI,Hgroup:()=>DI,HgroupButton:()=>II,HgroupRows:()=>LI,Hoverable:()=>KL,Hr:()=>EI,I:()=>kI,Icon:()=>XI,IconButton:()=>eM,IconText:()=>ZI,Iframe:()=>GL,Img:()=>zL,Inline:()=>$L,InlineFlex:()=>jL,InlineGrid:()=>VL,Input:()=>MI,Italic:()=>yI,KangorooButton:()=>JP,Li:()=>vI,Link:()=>ST,Notification:()=>ZM,NumberInput:()=>BI,Ol:()=>OI,P:()=>dI,Picture:()=>JL,Radio:()=>FI,RadioHgroup:()=>jI,Range:()=>bM,RouteLink:()=>qP,RouterLink:()=>wT,SHAPES:()=>Xg,Select:()=>YP,Shape:()=>R0,Span:()=>sI,SquareButton:()=>ZP,Strong:()=>hI,Subhead:()=>SI,Svg:()=>eI,Text:()=>rI,Textarea:()=>HI,TextareaWithButton:()=>zI,Theme:()=>QL,Title:()=>_I,Toggle:()=>UI,ToggleHgroup:()=>VI,Tooltip:()=>gM,TooltipHidden:()=>mM,TooltipLayer:()=>DT,TooltipParent:()=>yM,U:()=>gI,Ul:()=>CI,Underline:()=>mI,Video:()=>nI,depth:()=>Zg,focusableRingEnabled:()=>Mu,focusableRingToken:()=>C0,focusableRingValue:()=>Xs,getSystemGlobalTheme:()=>Bu});var T0=/*@__PURE__*/$({},{Block:()=>NL,Flex:()=>FL,Grid:()=>UL,Gutter:()=>HL,Inline:()=>$L,InlineFlex:()=>jL,InlineGrid:()=>VL});var NL=globalThis.__SMBLS_BUILD_DROP_C_Block__?D("Block"):{display:"block"},$L=globalThis.__SMBLS_BUILD_DROP_C_Inline__?D("Inline"):{display:"inline"},FL=globalThis.__SMBLS_BUILD_DROP_C_Flex__?D("Flex"):{display:"flex"},jL=globalThis.__SMBLS_BUILD_DROP_C_InlineFlex__?D("InlineFlex"):{display:"inline-flex"},UL=globalThis.__SMBLS_BUILD_DROP_C_Grid__?D("Grid"):{display:"grid"},VL=globalThis.__SMBLS_BUILD_DROP_C_InlineGrid__?D("InlineGrid"):{display:"inline-grid"},HL=globalThis.__SMBLS_BUILD_DROP_C_Gutter__?D("Gutter"):{boxSize:"C1"};var E0=/*@__PURE__*/$({},{Img:()=>zL});var zL={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=pe(t);return e&&e.src||t.src},srcset:t=>{let e=pe(t);return(e?sf(e):"")||t.srcset||t.srcSet}}};var A0=/*@__PURE__*/$({},{Form:()=>WL});var WL=globalThis.__SMBLS_BUILD_DROP_C_Form__?D("Form"):{tag:"form"};var v0=/*@__PURE__*/$({},{Iframe:()=>GL});var GL=globalThis.__SMBLS_BUILD_DROP_C_Iframe__?D("Iframe"):{tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var O0=/*@__PURE__*/$({},{Clickable:()=>qL,Focusable:()=>YL,FocusableComponent:()=>XL,Hoverable:()=>KL,focusableRingEnabled:()=>Mu,focusableRingToken:()=>C0,focusableRingValue:()=>Xs});var EH={appearance:"none",fontFamily:"inherit"},KL=globalThis.__SMBLS_BUILD_DROP_C_Hoverable__?D("Hoverable"):{transition:"opacity C defaultBezier, transform C defaultBezier",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},qL=globalThis.__SMBLS_BUILD_DROP_C_Clickable__?D("Clickable"):{extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function Mu(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function C0(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let o=n.outline||void 0,r=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return o||r!==void 0?{outline:o,outlineOffset:r}:null}function Xs(t,e,n){let o=C0(t);return o&&o[e]!==void 0?o[e]:n}var YL=globalThis.__SMBLS_BUILD_DROP_C_Focusable__?D("Focusable"):{border:"none",outline:t=>Mu(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>Mu(t)?Xs(t,"outline","solid X currentColor"):"none",outlineOffset:t=>Mu(t)?Xs(t,"outlineOffset"):void 0}},XL=globalThis.__SMBLS_BUILD_DROP_C_FocusableComponent__?D("FocusableComponent"):{extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",cursor:"pointer",":disabled":{cursor:"not-allowed"},style:EH};var I0=/*@__PURE__*/$({},{Picture:()=>JL});var L0=/*@__PURE__*/$({},{Theme:()=>QL,getSystemGlobalTheme:()=>Bu});var D0=/*@__PURE__*/$({},{Circle:()=>ZL,SHAPES:()=>Xg,Shape:()=>R0,default:()=>AH,depth:()=>Zg});var an=L(),Zg={4:{boxShadow:`rgba(0,0,0,.10) 0 2${an.unit.default} 4${an.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${an.unit.default} 6${an.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${an.unit.default} 10${an.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${an.unit.default} 16${an.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${an.unit.default} 26${an.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${an.unit.default} 42${an.unit.default}`}},nc=t=>ft(t.shapeDirectionColor)||ft(t.borderColor)||ft(t.backgroundColor)||ft(t.background),Yg=t=>{let e=lu.transition(t.transition,t);return e&&e.transition},Xg={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:nc(t),transition:Yg(t),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:t=>({position:"relative","&:before":{content:'""',display:"block",background:nc(t),transition:Yg(t),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:nc(t),transition:Yg(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Yg(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${nc(t)} 25%, transparent 25%), linear-gradient(315deg, ${nc(t)} 25%, transparent 25%)`},"&:after":{background:nc(t),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},R0={deps:{exec:bt,getSpacingBasedOnRatio:Le,getMediaColor:Ut},classlist:{shape:t=>t.deps.exec(Xg[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Xg[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},ZL=globalThis.__SMBLS_BUILD_DROP_C_Circle__?D("Circle"):{round:"100%"},AH=R0;var Bu=({context:t,state:e})=>{let n=e&&e.root,o=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},QL=globalThis.__SMBLS_BUILD_DROP_C_Theme__?D("Theme"):{deps:{depth:Zg},classlist:{depth:t=>!Wt(t.depth)&&t.deps.depth[t.depth]}};var JL=globalThis.__SMBLS_BUILD_DROP_C_Picture__?D("Picture"):{deps:{getSystemGlobalTheme:Bu},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Bu},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:o}=t,{media:r}=n.designSystem,s=o.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":r[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var P0=/*@__PURE__*/$({},{AssetPicture:()=>tI});var tI=globalThis.__SMBLS_BUILD_DROP_C_AssetPicture__?D("AssetPicture"):{tag:"picture",children:t=>{let e=pe(t);if(e)return af(e,t.alt)}};var M0=/*@__PURE__*/$({},{Svg:()=>eI});var eI={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:n,utils:o}=e,r=n&&n.svg,s=t.spriteId||n&&n.useSvgSprite,i=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof i=="string"){let d=i.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let m=o&&o.scratchSystem&&o.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof m=="function"?m({[p]:i},{document:g}):o&&typeof o.init=="function"&&o.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}if(!s&&i)return i;let c=t.spriteId;if(c)return a(c);if(r&&r[i])return a(i);let l=Symbol.for(i),f=r[l];if(f&&r[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=r[l]=`svg-${(u>>>0).toString(36)}`,o.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var B0=/*@__PURE__*/$({},{Video:()=>nI});var nI=globalThis.__SMBLS_BUILD_DROP_C_Video__?D("Video"):{tag:"video",controls:!0,attr:{src:t=>{let e=pe(t);return e&&e.src||t.src}},children:t=>{let e=pe(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var N0=/*@__PURE__*/$({},{Audio:()=>oI});var oI=globalThis.__SMBLS_BUILD_DROP_C_Audio__?D("Audio"):{tag:"audio",controls:!0,attr:{src:t=>{let e=pe(t);return e&&e.src||t.src}},children:t=>{let e=pe(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var $0=/*@__PURE__*/$({},{B:()=>xI,Caption:()=>pI,Data:()=>TI,Footnote:()=>wI,H1:()=>iI,H2:()=>aI,H3:()=>cI,H4:()=>lI,H5:()=>fI,H6:()=>uI,Headline:()=>bI,I:()=>kI,Italic:()=>yI,P:()=>dI,Span:()=>sI,Strong:()=>hI,Subhead:()=>SI,Text:()=>rI,Title:()=>_I,U:()=>gI,Underline:()=>mI});var rI=globalThis.__SMBLS_BUILD_DROP_C_Text__?D("Text"):{},sI=globalThis.__SMBLS_BUILD_DROP_C_Span__?D("Span"):{tag:"span"},iI=globalThis.__SMBLS_BUILD_DROP_C_H1__?D("H1"):{tag:"h1"},aI=globalThis.__SMBLS_BUILD_DROP_C_H2__?D("H2"):{tag:"h2"},cI=globalThis.__SMBLS_BUILD_DROP_C_H3__?D("H3"):{tag:"h3"},lI=globalThis.__SMBLS_BUILD_DROP_C_H4__?D("H4"):{tag:"h4"},fI=globalThis.__SMBLS_BUILD_DROP_C_H5__?D("H5"):{tag:"h5"},uI=globalThis.__SMBLS_BUILD_DROP_C_H6__?D("H6"):{tag:"h6"},dI=globalThis.__SMBLS_BUILD_DROP_C_P__?D("P"):{tag:"p"},pI=globalThis.__SMBLS_BUILD_DROP_C_Caption__?D("Caption"):{tag:"caption"},hI=globalThis.__SMBLS_BUILD_DROP_C_Strong__?D("Strong"):{tag:"strong",fontWeight:"700"},gI=globalThis.__SMBLS_BUILD_DROP_C_U__?D("U"):{tag:"u"},mI=globalThis.__SMBLS_BUILD_DROP_C_Underline__?D("Underline"):{tag:"u"},yI=globalThis.__SMBLS_BUILD_DROP_C_Italic__?D("Italic"):{tag:"i"},_I=globalThis.__SMBLS_BUILD_DROP_C_Title__?D("Title"):{},bI=globalThis.__SMBLS_BUILD_DROP_C_Headline__?D("Headline"):{tag:"h6",fontSize:"B",fontWeight:500},SI=globalThis.__SMBLS_BUILD_DROP_C_Subhead__?D("Subhead"):{tag:"span",fontSize:"Z1"},wI=globalThis.__SMBLS_BUILD_DROP_C_Footnote__?D("Footnote"):{tag:"span",fontSize:"Z"},xI=globalThis.__SMBLS_BUILD_DROP_C_B__?D("B"):{tag:"b"},kI=globalThis.__SMBLS_BUILD_DROP_C_I__?D("I"):{tag:"i"},TI=globalThis.__SMBLS_BUILD_DROP_C_Data__?D("Data"):{tag:"data"};var F0=/*@__PURE__*/$({},{Box:()=>Qg,Br:()=>AI,Hr:()=>EI,Li:()=>vI,Ol:()=>OI,Ul:()=>CI});var vH=t=>{if(!t.context)return;let{props:e,__ref:n}=t,o=Xt(e,t,{unpack:!1});n.__class=o},Qg=globalThis.__SMBLS_BUILD_DROP_C_Box__?D("Box"):{extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:vH},EI=globalThis.__SMBLS_BUILD_DROP_C_Hr__?D("Hr"):{tag:"hr",margin:"C1 0"},AI=globalThis.__SMBLS_BUILD_DROP_C_Br__?D("Br"):{tag:"br"},vI=globalThis.__SMBLS_BUILD_DROP_C_Li__?D("Li"):{tag:"li"},CI=globalThis.__SMBLS_BUILD_DROP_C_Ul__?D("Ul"):{tag:"ul",childExtends:{extends:"Li"}},OI=globalThis.__SMBLS_BUILD_DROP_C_Ol__?D("Ol"):{tag:"ol",childExtends:{extends:"Li"}};var j0=/*@__PURE__*/$({},{Hgroup:()=>DI,HgroupButton:()=>II,HgroupRows:()=>LI});var RI=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},DI=globalThis.__SMBLS_BUILD_DROP_C_Hgroup__?D("Hgroup"):{display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:RI,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:RI,margin:"0",color:"paragraph"}},LI=globalThis.__SMBLS_BUILD_DROP_C_HgroupRows__?D("HgroupRows"):{extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},II=globalThis.__SMBLS_BUILD_DROP_C_HgroupButton__?D("HgroupButton"):{extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var U0=/*@__PURE__*/$({},{Bridge:()=>PI});var PI=globalThis.__SMBLS_BUILD_DROP_C_Bridge__?D("Bridge"):{tag:"div"};var V0=/*@__PURE__*/$({},{Input:()=>MI});var MI={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,required:t=>t.required,type:t=>t.type}};var H0=/*@__PURE__*/$({},{NumberInput:()=>BI});var BI={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var z0=/*@__PURE__*/$({},{Checkbox:()=>NI,CheckboxHgroup:()=>$I});var NI={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",position:"absolute",opacity:"0",width:"1px",height:"1px",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},":focus-visible + div":{outline:t=>Xs(t,"outline","solid X currentColor"),outlineOffset:t=>Xs(t,"outlineOffset","Z")},attr:{checked:t=>t.call("exec",t.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},$I=globalThis.__SMBLS_BUILD_DROP_C_CheckboxHgroup__?D("CheckboxHgroup"):{display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var W0=/*@__PURE__*/$({},{Radio:()=>FI,RadioHgroup:()=>jI});var FI=globalThis.__SMBLS_BUILD_DROP_C_Radio__?D("Radio"):{extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},jI=globalThis.__SMBLS_BUILD_DROP_C_RadioHgroup__?D("RadioHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var G0=/*@__PURE__*/$({},{Toggle:()=>UI,ToggleHgroup:()=>VI});var UI={extends:"Checkbox",Input:{role:"switch",":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},VI=globalThis.__SMBLS_BUILD_DROP_C_ToggleHgroup__?D("ToggleHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var K0=/*@__PURE__*/$({},{Textarea:()=>HI,TextareaWithButton:()=>zI});var HI=globalThis.__SMBLS_BUILD_DROP_C_Textarea__?D("Textarea"):{tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},zI=globalThis.__SMBLS_BUILD_DROP_C_TextareaWithButton__?D("TextareaWithButton"):{display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var X0=/*@__PURE__*/$({},{FileIcon:()=>QI,Icon:()=>XI,IconText:()=>ZI});var WI=new Set,GI=(t,e)=>{if(!WI.has(t)&&(WI.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,o=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${o} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},KI=(t,e)=>{let n=t.find(o=>o&&IL(o));return n?(x0("icon",n,e),!0):!1},qI=new WeakMap,CH=t=>{let e=qI.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},qI.set(t,e)),e},OH=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},RH=(t,e,n)=>{let o=n&&n.context&&n.context.document||(typeof document<"u"?document:null);ht(t);try{let r=L();r&&!r.__svgCache&&(r.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=Rs(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&o&&Object.keys(s).length&&Ds(s,{document:o}),Object.keys(s).length>0}finally{dt()}},DH=(t,e,n,o,r)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=CH(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(r),a.pending.has(e))return!0;let l=()=>i(e,t),f=Promise.resolve().then(l).then(u=>{let d=OH(u,n);return d?RH(s,d,o):!1}).catch(u=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,u),!1)).then(u=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),u||a.failed.add(e),d&&d.forEach(p=>{try{p(u)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,f),!0},LH="0 0 24 24",IH=/<(symbol|svg)\b[^>]*>/i,PH={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},q0=(t,e)=>{let n=t.match(PH[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},YI=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},MH=(t,e)=>{if(typeof t!="string")return;let n=t.match(IH);if(!n)return;let o=(q0(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),r=o.length===4&&o[2]>0&&o[3]>0?[o[2],o[3]]:void 0,s=YI(q0(n[0],"width")),i=YI(q0(n[0],"height")),a=s>0&&i>0?[s,i]:void 0,c=n[1].toLowerCase()==="symbol"||e?r||a:a||r;return c?`0 0 ${c[0]} ${c[1]}`:void 0},Y0=t=>{let e=t.call("exec",t.viewBox,t);if(e)return e;let n=t.context&&t.context.designSystem,o=!!(t.spriteId||n&&n.useSvgSprite);return MH(t.call("exec",t.src,t),o)||LH},XI={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:o}=t,{icons:r,useIconSprite:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,c=!1,l=(h,m)=>{try{return{value:t.call("exec",h,m)}}catch(y){if(t.__ref&&(t.__ref.__iconNameError=y),!c&&typeof console<"u"&&console.warn){c=!0;let x=t.__ref&&t.__ref.path,T=x&&x.length?` at <${x.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${T} \u2014 treated as no name (a painted glyph stays):`,y&&y.message||y)}return{threw:!0}}},f=(h,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:x}=m&&m.utils,v=x(h).split(/([a-z])([A-Z])/g),_=v[1]?v[0]:h.split(".")[0].split(" ")[0],b=y&&y[_];if(b){let S=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=b[S]||b[h.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${h}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=h=>{let{key:m}=h,y=l(h.name||h.icon||m,h);if(y.threw)return{name:m,threw:!0};let x=y.value;return h.call("isString",x)&&x.includes("{{")&&(x=h.call("replaceLiteralsWithObjectFields",x)),{name:h.call("isString",x)?x:m}},d=t.src,p,g=()=>{let h=u(t);if(h.threw&&t.node&&t.node.innerHTML)return;let m=h.name,y=m;if(m.includes(" ")){let B=m.split(" ");m=B[0]+B.slice(1).map(M=>M.charAt(0).toUpperCase()+M.slice(1)).join("")}let x=a(m),T=x.split(/([a-z])([A-Z])/g),v=f(y,n);if(v){Object.assign(t,v);return}let _,b=t[".isActive"];b&&(b.name||b.icon)&&t.isActive&&(_=l(b.name||b.icon,t).value);let S=o&&o[".isActive"];S&&S.icon&&o.isActive&&(_=l(S.icon||S.Icon.name||S.Icon.icon,t).value),t.call("isString",_)&&_.includes("{{")&&(_=t.call("replaceLiteralsWithObjectFields",_));let w;r[_]&&(w=_),r[x]?w=x:r[T[0]+T[1]]?w=T[0]+T[1]:r[T[0]]?w=T[0]:i&&t.warn("Can't find icon:",m,w);let A=r[w],C=o&&o.src||d;!A&&!C&&(DH(n,y,x,t,M=>{if(!(p&&p._disposed)){if(!M)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&KI([_,x,T[0]+T[1],T[0]],t)||GI(y,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&KI([_,x,T[0]+T[1],T[0]],t)||GI(y,t));let O=s&&w,N=A||C||r.noIcon;if(!(t.spriteId===O&&t.src===N&&t.node&&t.node.innerHTML)){if(t.spriteId=O,t.src=N,typeof t.html=="function"&&t.node){let B=t.context&&t.context.designSystem;B&&ht(B);try{let M=t.html(t,t.state,t.context);M!=null&&typeof M!="function"&&(t.node.innerHTML=M)}finally{B&&dt()}}t.node&&t.attr&&t.attr.viewBox===Y0&&t.node.setAttribute("viewBox",Y0(t))}};p=W(g,{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0}),t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(p))},attr:{viewBox:Y0,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},ZI=globalThis.__SMBLS_BUILD_DROP_C_IconText__?D("IconText"):{display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},QI=globalThis.__SMBLS_BUILD_DROP_C_FileIcon__?D("FileIcon"):{display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var xT=/*@__PURE__*/$({},{A:()=>KP,Link:()=>ST,RouteLink:()=>qP,RouterLink:()=>wT});var sc=/*@__PURE__*/$({},{default:()=>xz,getActiveRoute:()=>bT,lastLevel:()=>rm,lastPathname:()=>rc,loadLazy:()=>dT,matchRoute:()=>mT,parseQuery:()=>yT,parseRoutePattern:()=>om,resolveRouterElement:()=>zu,router:()=>An,runGuards:()=>VP,saveScrollPosition:()=>Fu});var Z0="__smblsRouter",Q0=new WeakMap,BH=0,J0=()=>Date.now().toString(36)+(++BH).toString(36)+Math.random().toString(36).slice(2,6),tT=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},Po=t=>{try{return t.state}catch{return}},$u=t=>{try{let{pathname:e,search:n,hash:o}=t.location;return e+n+o}catch{return null}},nP=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},oP=t=>{let e=nP(t)?t[Z0]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},eT=(t,e)=>t==null?{[Z0]:e}:nP(t)?{...t,[Z0]:e}:null,nT=()=>({key:J0(),index:0,chain:J0()}),oc=(t,e)=>{let n=oP(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:$u(t),state:e}},rP=(t,e)=>{let n=oP(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Nu=(t,e,n)=>!!n&&$u(t)===n.url&&rP(e,n),oT=(t,e,n)=>({...t,url:e,state:n}),rT=(t,e)=>{let n=Po(e),o=oc(t,n);if(o.key)return o;let r=nT(),s=eT(n,r);if(!s)return o;try{e.replaceState(s,null)}catch{return o}return oT(r,o.url,s)},NH=(t,e)=>{let n=Q0.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},Q0.set(t,n)),n||null},sP="smbls.router.scroll",JI=100,$H=1e3,tP=["wheel","touchstart","keydown","pointerdown"],iP=t=>{try{return t.sessionStorage||null}catch{return null}},aP=t=>{try{let e=JSON.parse(t.getItem(sP)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},cP=(t,e)=>{if(!t.positions){t.positions=new Map;let n=iP(e);if(n)for(let[o,r]of aP(n))r&&Number.isFinite(r.top)&&Number.isFinite(r.left)&&t.positions.set(o,{top:r.top,left:r.left})}return t.positions},sT=(t,e,n,o)=>{let r=cP(t,e);r.delete(n),r.set(n,{top:Math.round(Number(o.scrollTop)||0),left:Math.round(Number(o.scrollLeft)||0)}),r.size>JI&&r.delete(r.keys().next().value);let s=iP(e);if(s)try{let i=new Map(aP(s));for(let[a,c]of r)i.delete(a),i.set(a,c);s.setItem(sP,JSON.stringify(Array.from(i).slice(-JI)))}catch{}},eP=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},FH=(t,e,n,o,r,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=o;let a=typeof i=="number"&&i>=0?i:$H,c=()=>Math.max(0,(Number(r.scrollHeight)||0)-(Number(r.clientHeight)||0)),l=(h,m)=>{typeof r.scrollTo=="function"?r.scrollTo({top:h,left:m,behavior:"instant"}):(r.scrollTop=h,r.scrollLeft=m)},f=typeof t.addEventListener=="function",u=()=>o.end("visitor");if(o.end=h=>{if(!o.outcome&&(o.outcome=h,f))for(let m of tP)t.removeEventListener(m,u,!0)},c()>=s.top-1)return l(s.top,s.left),o.end("placed");Number(r.scrollTop)>0&&l(0,0);let d=Number(r.scrollTop)||0,p=Date.now();if(f)for(let h of tP)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(o.outcome)return;if(n.seq!==o.seq)return o.end("overtaken");if(Math.abs((Number(r.scrollTop)||0)-d)>1)return o.end("visitor");let h=c()>=s.top-1;if(!h&&Date.now()-p<a)return eP(t,e,g);l(Math.min(s.top,c()),s.left),o.end(h?"placed":"clamped")};eP(t,e,g)},jH=(t,e)=>{let{win:n,history:o,track:r}=t,s=r.pops.get(e);if(s)return s;let i=oc(n,Po(o)),a=r.expect;r.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=r.current,f=!!(i.key&&l&&l.key===i.key),u=f?null:l;u&&u.key&&t.scrollNode&&sT(r,n,u.key,t.scrollNode),c={to:i,from:u,stay:f,seq:r.seq,settled:!1,committed:!1},r.pending=c}return r.pops.set(e,c),c},UH=t=>{let{win:e,history:n,track:o}=t,r=Po(n);if(o.pending&&Nu(e,r,o.pending.to)||o.expect&&Nu(e,r,o.expect.away))return;let s=o.current;if(s&&(s.key?rP(r,s):Nu(e,r,s))){s.url=$u(e),s.state=r;return}o.current=t.restore?rT(e,n):oc(e,r),o.pending=null,o.seq++},lP=(t,e,n)=>{let o=e.scrollRestoration==="restore",r=tT(t),s=o||Array.isArray(e.guards)&&e.guards.length>0,i=r&&NH(r,s);if(!i)return null;let a={win:t,history:r,track:i,restore:o,scrollNode:o&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=jH(a,c):UH(a),a},Jg=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},iT=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:o,track:r}=t;return Jg(r,e),r.seq!==e.seq||!Nu(n,Po(o),e.to)?!1:(r.current=t.restore&&!e.to.key?rT(n,o):e.to,r.seq++,e.committed=!0,!0)},fP=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&Jg(t.track,e)},VH=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},aT=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:o,history:r,track:s}=t;Jg(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Nu(o,Po(r),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let f=s.expect={key:i.key,url:i.url,away:a};VH(o,s,f);try{r.go(i.index-a.index)}catch{s.expect=null}return}let c=nT(),l=eT(i.state,c);try{r.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?oT(c,i.url,l):oc(o,Po(r)),s.seq++},uP=(t,e)=>{let n=$u(e);t&&n!==null&&(t.__routerAddress=n)},cT=(t,e,n)=>{let o=t&&t.pop;if(o&&!o.echo&&o.from)return aT(t,!0);o&&!o.settled&&Jg(t.track,o);let r=tT(n),s=e&&e.__routerAddress;if(!(!r||!s||s===$u(n)))try{r.replaceState(Po(r),null,s)}catch{}},dP=(t,e,n,o,r=t&&t.win)=>{if(!t){try{o?r.history.replaceState(e,null,n):r.history.pushState(e,null,n)}catch{}return}let{history:s,track:i}=t,a=i.current;!o&&a&&a.key&&t.scrollNode&&sT(i,r,a.key,t.scrollNode);let c=o?oc(r,Po(s)):rT(r,s),l=c.key?o?{key:c.key,index:c.index,chain:c.chain}:{key:J0(),index:c.index+1,chain:c.chain}:nT(),f=eT(e,l);try{o?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?oT(l,n,f):oc(r,Po(s)),i.pending=null,i.expect=null,i.seq++},pP=(t,e,n,o)=>{if(!t||!t.restore||!e)return!1;let r=t.pop;if(r?r.stay||!r.committed:!n.initialRender)return!1;let{win:s,track:i}=t,a=i.current,c=a&&a.key&&cP(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(r?l.pop===r:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||FH(s,o,i,{key:a.key,pop:r,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},Fu=t=>{let e=tT(t),n=e&&Q0.get(e);!n||!n.scrollNode||!n.current||!n.current.key||sT(n,t,n.current.key,n.scrollNode)};var yP=["components","functions","methods","snippets"],_P=new Set(["pages",...yP]),lT=new Set(["default","__esModule"]),Ar=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),jt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),tm=new WeakMap,hP=new WeakMap,fT=new WeakMap,gP=new Set,Zs=(t,e=console.warn)=>{gP.has(t)||(gP.add(t),e(t))},bP=t=>jt(t&&t.lazy),SP=(t,e)=>{let n=t&&t.lazy;return jt(n)&&Ar(n,e)?n[e]:void 0},Uu=(t,e)=>{let n=SP(t,e);return jt(n)&&Ar(n,"load")?n.load:n},HH=(t,e)=>{let n=SP(t,e);return jt(n)&&typeof n.when=="function"?n.when:null},zH=t=>{let e=new Error(`[smbls/router] lazy group "${t}" waits: its \`when\` said false \u2014 nothing was requested`);return e.code="LAZY_WAITING",e},uT=(t,e)=>{let n=tm.get(t);n||(tm.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let r of n.values())r.disposed=!0,r.waiting.clear();tm.delete(t)}));let o=n.get(e);return o||(o={status:"idle",attempts:0,promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,o)),o},wP=(t,e)=>!bP(e)||!jt(t)||!Ar(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,nm=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&fT.has(t),xP=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&Vt("lazyRoutes",e),null),kP=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",WH=(t,e)=>typeof Uu(t,e)!="function"?"error":kP(tm.get(t)?.get(e)),GH=(t,e)=>{let n=hP.get(t);if(n&&n.group===e)return n;let{lazy:o,state:r,...s}=t,i=r==null||jt(r)||typeof r=="function";i?s.state=(c,l)=>{let f=typeof r=="function"?r(c,l):r;return{...jt(f)?f:null,lazyStatus:WH(c.context,e)}}:(s.state=r,!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&Zs(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(r)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return hP.set(t,a),fT.set(s,a),a},KH=t=>t.__ref&&t.__ref.contentElementKey||"content",ju=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,o=n&&nm(n.content)?fT.get(n.content):null;return!o||o.group!==e?null:{record:o,page:t[KH(t)]}},em=(t,e,n)=>{let o=ju(t,e);if(!o||!o.record.hasStatus)return;let r=o.page&&o.page.state;if(!(!r||typeof r.update!="function"||r.lazyStatus===n))try{r.update({lazyStatus:n})}catch(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},qH=t=>jt(t)?!Object.keys(t).some(n=>_P.has(n))&&jt(t.default)?t.default:t:{},YH=t=>{let e={};if(!jt(t))return e;for(let n of Object.keys(t)){if(lT.has(n))continue;let o=n.charCodeAt(0)===47,r=o?n:"/"+(n==="index"?"":n);(o||!Ar(e,r))&&(e[r]=t[n])}return e},TP=(t,e,n,o,r)=>{if(!jt(t))return 0;let s=0;for(let i of Object.keys(t))wP(t[i],o)===e&&(s++,Ar(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Ar(t,i)?t[i]!==n[i]&&r.push(`pages['${i}']`):t[i]=n[i];return s},mP=(t,e,n)=>{let o=t[e];if(!jt(o)){t[e]={...n};return}try{for(let r in n)o[r]=n[r];if(Object.keys(n).every(r=>o[r]===n[r]))return}catch{}t[e]={...o,...n}},XH=t=>{let e=t.__ref&&t.__ref.origin;if(!jt(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let o=t.key;if(typeof o!="string"||!/^[A-Z]/.test(o))return[];let r=[o.indexOf("_"),o.indexOf(".")].filter(s=>s>0);return[r.length?o.slice(0,Math.min(...r)):o]},ZH=(t,e,n,o)=>{let r=new Set;for(let i of o.waiting){let a=ju(i,e);a&&a.page&&r.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||r.has(l)||!l.node)){for(let f of XH(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");Zs(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}s(l)}}};s(t)},QH=(t,e,n,o)=>{let r=t.context,s=qH(n),i=!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J(),a=[],c=new Set;if(i)for(let p of Object.keys(s))_P.has(p)||lT.has(p)||Zs(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of yP){let g=s[p];if(!jt(g))continue;let h=jt(r[p])?r[p]:{},m={};for(let x of Object.keys(g))if(!lT.has(x)){if(Ar(h,x)){h[x]!==g[x]&&a.push(`${p}.${x}`);continue}m[x]=g[x]}let y=Object.keys(m);if(y.length&&(mP(r,p,m),p==="components"&&y.forEach(x=>c.add(x)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&jt(r.utils))){let x={};for(let T of y)Ar(r.utils,T)||(x[T]=m[T]);Object.keys(x).length&&mP(r,"utils",x)}}l&&Va(r);let f=YH(s.pages);o.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;jt(r.pages)&&d.add(r.pages),u&&jt(u.routes)&&d.add(u.routes);for(let p of o.maps)d.add(p);for(let p of o.waiting)jt(p.routes)&&d.add(p.routes);for(let p of d)TP(p,e,f,r,a);i&&a.length&&Zs(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&u&&ZH(u,e,c,o)},EP=(t,e)=>{let n=t&&t.__ref,o=n&&n.__lazyRoute;if(!o||o.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!ju(t,e))return;let r=()=>o.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}});Promise.resolve().then(r).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},Vu=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",JH=(t,e,n)=>!!t&&(Vu(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),AP=(t,e)=>{let n=t.context,o=uT(n,e);if(o.status==="loading"||o.status==="loaded")return o.promise;let r=Uu(n,e),s=HH(n,e),i=o.failure;o.status="loading";let a,c=!1,l=!1,f=()=>s?s(t):!0,u=p=>{if(p===!1)throw l=!0,zH(e);return a=r(o.attempts++)},d=Promise.resolve().then(f).then(u).then(p=>{c=!0,o.disposed||QH(t,e,p,o)}).then(()=>{o.status="loaded",o.failure=null;let p=[...o.waiting];o.waiting.clear();for(let g of p)EP(g,e)},p=>{if(l){if(o.status="waiting",o.promise=null,o.disposed)throw p;for(let h of[...o.waiting])ju(h,e)?em(h,e,"waiting"):o.waiting.delete(h);throw p}let g=!c&&JH(i,a,p);if(o.failure=c?null:{returned:a,error:p},o.status=g?"reload":"error",o.promise=null,o.disposed)throw p;g?Zs(`[smbls/router] lazy group "${e}" cannot load in this page: its loader handed back the import that already failed (the same promise or the same error) and requested nothing \u2014 a bundler that keeps a failed dynamic import (parcel) does this. Its routes show their placeholder with lazyStatus 'reload'; reloading the page loads the group.`,h=>console.error(h,p)):console.error(`[smbls/router] lazy group "${e}" failed to load. Its routes show their placeholder with lazyStatus 'error'; the next navigation to one of them, or loadLazy('${e}'), calls the group's loader again.`,p);for(let h of[...o.waiting])ju(h,e)?em(h,e,o.status):o.waiting.delete(h);throw p});d.catch(()=>{}),o.promise=d;for(let p of o.waiting)em(p,e,"loading");return d},vP=(t,e,n)=>{let o=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return xP(o,e);let r=wP(t,o);if(!r)return null;let s=uT(o,r);if(jt(n)&&s.maps.add(n),s.status==="loaded"&&TP(n,r,s.pages||{},o,[])>0)return{rematch:!0};let i=typeof Uu(o,r)=="function";return i?AP(e,r):Zs(`[smbls/router] a route names lazy group "${r}", which context.lazy does not declare as a loader (\`lazy: { ${r}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:GH(t,r).definition,group:r,status:i?"loading":"error"}},CP=(t,e,n)=>{if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__||!e||!e.group||e.status==="error")return;let o=t.context,r=t.__ref;if(!r||typeof Uu(o,e.group)!="function")return;let s=uT(o,e.group);if(r.__lazyRoute={group:e.group,rerender:n},em(t,e.group,kP(s)),s.status==="loaded"){let i=()=>EP(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function dT(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return Promise.resolve(xP(n,e));let o=Uu(n,t);return typeof o!="function"?(o===void 0&&bP(n)&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&Zs(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):AP(e,t)}var tz=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),OP=(t,e,n)=>{let o=n.mountOptions;if(!o)return;let r=e.context&&e.context.domqlOptions;for(let s in o)t[s]=r&&s in r?r[s]:void 0},BP=t=>{let e=Zn;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},ez=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},nz=t=>{let e=Wg;return typeof e!="function"||!e(t)?null:Io(t)},gT=Object.freeze({holdTail:!0}),oz=t=>typeof t.holdPage=="function"&&typeof $e=="function",NP=(t,e)=>{let n=()=>$e(t);Vu(e)?e.then(n,n):n()},rz=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}NP(e,n)},$P=Object.freeze({holdTail:!0,deferAttach:!0}),sz=(t,e,n,o)=>{let r=t.firstView;if(!r||typeof $e!="function"||typeof wr!="function")return null;if(!r.committed)return gT;if(!BP(o))return null;let s=e.node;return!e[n]&&s&&s.isConnected?$P:(o.mountYield=void 0,null)},iz=async()=>{await xe();let t=Tr;if(typeof t=="function")for(;!t();)await xe()},az=(t,e,n,o)=>{if(e===gT){t.firstView.page=n,NP(n,t.firstView.commit);return}e===$P&&iz().then(()=>{n.__ref&&o()&&wr(n),$e(n)})},FP=/^:(.+)/,jP=/^\*$/,RP=new Map,om=t=>{let e=RP.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),o=[],r=!1;for(let i=0;i<n.length;i++){let a=n[i].match(FP);a?o.push({index:i,name:a[1]}):jP.test(n[i])&&(r=!0)}let s={segments:n,params:o,hasWildcard:r,pattern:t};return RP.set(t,s),s},mT=(t,e,n=0)=>{let r=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),s="/"+(r[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=om(l),u=cz(r,f);u>a&&(a=u,i=l,c=UP(r,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},cz=(t,e)=>{let{segments:n,hasWildcard:o}=e;if(!o&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let r=0,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])r+=3;else if(FP.test(n[i]))r+=1;else if(jP.test(n[i]))r+=.5;else return-1;return r},UP=(t,e)=>{let n={};for(let{index:o,name:r}of e.params)t[o]&&(n[r]=decodeURIComponent(t[o]));return n},yT=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((o,r)=>{e[r]!==void 0?(Array.isArray(e[r])||(e[r]=[e[r]]),e[r].push(o)):e[r]=o}),e},hT=t=>!!t&&typeof t=="object"&&typeof t.route=="string",DP=t=>t===!1||typeof t=="string"||hT(t)?t:void 0,lz=10,_T=(t,e,n=0)=>{for(let o=n;o<t.length;o++){let r=t[o](e);if(Vu(r))return Promise.resolve(r).then(i=>{let a=DP(i);return a===void 0?_T(t,e,o+1):a});let s=DP(r);if(s!==void 0)return s}return!0},VP=async(t,e)=>!t||!t.length?!0:_T(t,e),LP=(t,e,n,o)=>{if(typeof t!="string"||!n||!Object.prototype.hasOwnProperty.call(n,t))return null;let r=n[t];if(!r)return null;let s=e.replace(/^\//,"").split("/").filter(Boolean).slice(o||0);return{route:t,content:r,params:t==="/*"?{}:UP(s,om(t))}},zu=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),o=t;for(let r of n){if(!o||!o[r])return null;o=o[r]}return o},fz=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let o=zu(t,n);return!o||o===t?t:(t.routes&&(o.routes=t.routes),o)},bT=(t=0,e)=>{e||(e=typeof R<"u"?R.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},rc,rm=0,IP=0,pT=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,uz=t=>t&&(t.scrollingElement||t.documentElement)||null,HP={level:rm,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},zP=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},WP=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},dz=(t,e,n,o,r,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(WP(e),!n||!n.node||typeof t.onRouteExit>"u"||!zP(s,i))return null;let c=typeof r=="number"&&r>=0?r:HP.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...o,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=lo("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},Hu=new WeakMap,pz=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,hz=(t,e,n,o)=>{let r=pz(t.transition);return!r||!e||nm(e.content)||!n||typeof n.startViewTransition!="function"||Hu.get(n)>0||!zP(n,o)?null:r},gz=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},mz=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},yz=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},_z=100,bz=1e3,PP=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,MP=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},Sz=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},wz=(t,e,n,o,r,s,i)=>{let a=t.node,c=a&&a.style,l=typeof n.name=="string"&&n.name?n.name:null,f=e.__routeTransition,u={transition:null,updating:!1,name:l,previousName:f&&f.name&&c?f.previousName:c&&c.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===s){u.updating=!0,u.swapStarted=MP(r),Hu.set(o,(Hu.get(o)||0)+1);try{return i()}finally{Hu.set(o,Hu.get(o)-1),u.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=u.previousName)};l&&c&&(c.viewTransitionName=l);let g=mz(n),h=null;try{h=g.length&&yz(r)?o.startViewTransition({update:d,types:g}):o.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,Sz(h.ready);let m=!1,y=null,x=()=>{m=!0,y!==null&&(r.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},T=()=>{if(!(m||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(x,x):x();let v=PP(n.swapBudget,_z),_=PP(n.timeout,bz);_!==1/0&&h.ready&&typeof h.ready.then=="function"&&r&&typeof r.setTimeout=="function"&&h.ready.then(()=>{m||(y=r.setTimeout(()=>{y=null,T()},_))},()=>{});let b=h.updateCallbackDone;return!b||typeof b.then!="function"?Promise.resolve():(v!==1/0&&b.then(()=>{u.swapStarted!==void 0&&MP(r)-u.swapStarted>v&&T()},()=>{}),b)},An=async(t,e,n={},o={})=>{let r=e||void 0,s=r?.context?.window||R,i=r?.context?.document||wt,a={...HP,...r.context.routerOptions,...o};rm=a.lastLevel,r=fz(r,a);let c=!(o&&o.render===!1),l=r.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let f=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";t=pT(t);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(u+t),{pathname:g,search:h,hash:m}=p,y=yT(h),x=r.node,T=m&&m!==s.location.hash.slice(1),v=g!==rc,_=rc,b=++IP;rc=g;let S=()=>{IP===b&&(rc=_)},w=l.__routerRendered,A,C,O,N;if(a.useParamsMatching){let G=mT(g,r.routes,a.level);A=G.key,C=G.routePath,O=G.content,N=G.params}else{A=bT(a.level,g),C=A;let G=r.routes;O=G?G[A||"/"]||G["/*"]:null,N={}}if(o&&o.route!=null){let G=LP(o.route,g,r.routes,a.level);!G&&!a.silent&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] route",o.route,"chosen for",g,"is not one of the routes:",Object.keys(r.routes||{}))),A=G?G.route:o.route,O=G?G.content:null,N=G?G.params:{}}a.scrollNode===void 0&&(a.scrollNode=uz(i));let B=a.scrollToNode?x:a.scrollNode;if(r.state?.root?.debugging){r.state.root.debugging=!1;return}let M=lP(s,a,B);if(M&&M.pop&&M.pop.echo)return;if(!O){S(),a.onNotFound?a.onNotFound({pathname:g,route:A,element:r}):(a.silent||console.warn("[smbls/router] no content matched for path",g,"\u2014 available routes:",Object.keys(r.routes||{})),a.event&&a.event.type==="popstate"&&cT(M,l,s));return}let K=o&&o.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let G={pathname:g,route:A,params:N,query:y,hash:m,element:r,state:n},z=_T(a.guards,G);if(Vu(z)&&(z=await z,l.__routerStartSeq!==K)){S(),fP(M);return}if(z===!1){S(),aT(M);return}let vt=Bt=>{let Tt=new d(u+pT(Bt));return Tt.pathname===g&&Tt.search===h&&Tt.hash===m},gt=typeof z=="string"?z:hT(z)&&typeof z.path=="string"&&!vt(z.path)?z.path:null;if(hT(z)&&gt===null){let Bt=LP(z.route,g,r.routes,a.level);if(!Bt){a.silent||globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] a guard chose route",z.route,"for",g,"\u2014 not one of the routes:",Object.keys(r.routes||{})),S(),a.onNotFound?a.onNotFound({pathname:g,route:z.route,element:r}):a.event&&a.event.type==="popstate"&&cT(M,l,s);return}A=Bt.route,O=Bt.content,N=Bt.params,o={...o,route:Bt.route}}else if(gt!==null){let Bt=!!(M&&M.pop);if(Bt&&!iT(M))return;let Tt=[...o&&o.__redirectChain||[],g],Ct=new d(u+pT(gt)).pathname,je=Tt.includes(Ct)||Tt.length>=lz;je&&!a.silent&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] redirect loop:",[...Tt,Ct].join(" \u2192 "),"\u2014 rendering",Ct,"without its guards"));let Dt={...o,__redirectChain:Tt};return je&&(Dt.guards=[]),typeof z=="string"?delete Dt.route:Dt.route=z.route,Bt&&(Dt.event=void 0),delete Dt.render,(Bt||a.initialRender)&&(Dt.pushState=!0,Dt.replace=!0),An(gt,e,n,Dt)}}let q=c?vP(O,r,r.routes):null;if(q&&q.rematch)return An(t,r,n,o);q&&(O=q.content,a.lazy={group:q.group,status:q.status});let tt=l.__routerNavSeq=(l.__routerNavSeq||0)+1,nt=!w||w.content!==O||w.route!==A,ot=!!w&&w.content===O,X=!(!c||a.keepSamePage===!0&&ot&&a.force!==!0)&&(v||nt||a.force===!0);if(X&&w&&!nm(w.content)){let G=dz(r,l,r[f],{from:w.route,to:A,pathname:g,params:N,query:y,hash:m},a.exitTimeout,i,s);if(G&&(await G,l.__routerNavSeq!==tt||(l.__routeExit&&l.__routeExit.wait===G&&(l.__routeExit=null),typeof r?.set!="function")))return}else WP(l);let Q=X?hz(a,w,i,s):null;if(X&&gz(l),a.pushState){let G=g+(h||"")+(m||"");dP(M,n,G,a.replace,s)}else M&&iT(M);uP(l,s);let rt=tz(r,a,f),et=()=>{let G=X?sz(a,r,f,rt):null,z=(!!w||BP(rt))&&!!B&&B.scrollTop===0&&!B.scrollLeft,vt=!w&&!!a.initialRender&&!!B&&ez(r)&&(Number(B.scrollTop)>0||Number(B.scrollLeft)>0),Bt=v||!T?{route:A,routePath:C,hash:m,params:N,query:y,debugging:!1}:{params:N,query:y};a.updateState&&r.state.update(Bt,{preventContentUpdate:!0});let Tt=null;if(X){f&&a.removeOldElement&&r[f].remove();let je=r.__ref?.origin?.content,Dt={};if(je)for(let Y in je){let st=je[Y];Y==="__ref"||Y==="props"||Y==="node"||Y==="parent"||Y==="key"||(typeof st=="string"||typeof st=="number"||typeof st=="boolean"||typeof st=="object"&&st!==null&&!st.node&&!st.__ref)&&(Dt[Y]=st)}let Ae={...Dt,...typeof O=="object"?O:{extends:O}};a.useFragment&&(Ae.tag="fragment");let H={content:O,route:A},Et=l.__routerRendered;try{if(typeof r?.set!="function")return;l.__routerRendered=H;let Y=!G&&oz(a),st=r.set(Ae,rt,G||(Y?gT:void 0));st&&G?az(a,G,st,()=>l.__routerNavSeq===tt):st&&Y&&rz(a,st),Tt=nz(r[f])}catch(Y){l.__routerRendered===H&&(l.__routerRendered=Et),console.error("[smbls/router] failed to render route content",g,Y)}}else ot&&w.route!==A&&l.__routerRendered===w&&(l.__routerRendered={content:O,route:A});let Ct=()=>{let je=!v&&T,Dt=!c||pP(M,B,a,i);if(!Dt&&!vt&&a.scrollToTop&&!je&&!z&&B?.scrollTo&&B.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!Dt&&!vt&&a.scrollToNode&&O[f]?.node?.scrollTo&&O[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!Dt&&m){let Ae=i.getElementById(m.slice(1));if(Ae&&B?.scrollTo){let H=s.getComputedStyle?s.getComputedStyle(Ae):null,Et=H&&parseFloat(H.scrollMarginTop)||0,Y=Ae.getBoundingClientRect().top+B.scrollTop-Et-(a.scrollToOffset||0);B.scrollTo({...a.scrollToOptions||{},top:Y,left:0})}}q&&CP(r,q,Ae=>An(t,r,n,{...o,...Ae})),lo("routeChanged",r,a)};if(Tt)return Tt.then(()=>{OP(rt,r,a),l.__routerNavSeq===tt&&Ct()});OP(rt,r,a),Ct()},pt=Q?wz(r,l,Q,i,s,tt,et):null;if(pt){await pt;return}return et()},xz=An;var kz=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let o=n.getAttribute("target");return o&&o.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},Tz=(t,e)=>{let n=t.slice(1),o=e.node&&e.node.ownerDocument,r=n&&o?o.getElementById(n):null;r&&(typeof r.scrollIntoView=="function"&&r.scrollIntoView(),typeof r.focus=="function"&&(r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),r.focus()))},GP=(t,e,n)=>{let{context:o}=e,{href:r,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",r,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a||kz(t,e))return;if(a.startsWith("#")){t.preventDefault(),Tz(a,e);return}let{utils:c,snippets:l,functions:f,routerOptions:u}=o,d=e.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||An)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},ST={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>gr(t,t.href)||gr(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:GP},KP=globalThis.__SMBLS_BUILD_DROP_C_A__?D("A"):{extends:"Link"},wT={onClick:GP},qP=globalThis.__SMBLS_BUILD_DROP_C_RouteLink__?D("RouteLink"):{extends:[ST,wT]};var kT=/*@__PURE__*/$({},{Select:()=>YP});var YP=globalThis.__SMBLS_BUILD_DROP_C_Select__?D("Select"):{extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var TT=/*@__PURE__*/$({},{Button:()=>XP,ButtonSet:()=>tM,CircleButton:()=>QP,IconButton:()=>eM,KangorooButton:()=>JP,SquareButton:()=>ZP});var XP=globalThis.__SMBLS_BUILD_DROP_C_Button__?D("Button"):{extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},ZP=globalThis.__SMBLS_BUILD_DROP_C_SquareButton__?D("SquareButton"):{extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},QP=globalThis.__SMBLS_BUILD_DROP_C_CircleButton__?D("CircleButton"):{extends:"SquareButton",round:"C"},JP=globalThis.__SMBLS_BUILD_DROP_C_KangorooButton__?D("KangorooButton"):{extends:"Button",childExtends:"IconText"},tM=globalThis.__SMBLS_BUILD_DROP_C_ButtonSet__?D("ButtonSet"):{tag:"nav",display:"flex",childExtends:"SquareButton"},eM={extends:["SquareButton","ClickableItem"],round:"Z"};var AT=/*@__PURE__*/$({},{Dialog:()=>iM,DialogFooter:()=>cM,DialogHeader:()=>aM});var Ez={ok:1,cancel:1},Qs=new WeakMap,Az=0,cn=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},ET=t=>{let e=Qs.get(t);return e||(e={id:"smbls-dialog-"+ ++Az,want:void 0,waiting:!1},Qs.set(t,e)),e},Wu=(t,e,n,o)=>t[e]!==void 0||n!==void 0&&t[n]!==void 0||!!t.attr&&typeof t.attr=="object"&&t.attr[e]!==void 0||o!==void 0&&!!t.aria&&typeof t.aria=="object"&&t.aria[o]!==void 0,ic=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},nM=["methods","functions","utils"],vz=t=>{for(let e=0;e<nM.length;e++){let n=t[nM[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},sm=(t,e,n)=>{let o=t.context;if(!o||!vz(o))return n;let r=t.call("polyglot",e);return typeof r=="string"&&r&&r!==e?r:n},oM=t=>{let e=Qs.get(t),n=cn(t);if(!e||!n)return!0;if(!n.isConnected)return!1;if(e.want){if(!n.open&&typeof n.showModal=="function")try{n.showModal()}catch{}}else n.open&&typeof n.close=="function"&&n.close();return!0},rM=t=>{queueMicrotask(()=>{if(oM(t))return;let e=Qs.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,oM(t)}))})},Cz=t=>{let e=t.__ref;if(!e||!cn(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||Wu(t,"data-dialog"))return;let n=W(()=>{let o=t.modal,r=cn(t);if(!r)return;if(o==null){ic(r,"data-dialog",null);return}ic(r,"data-dialog","modal");let s=ET(t),i=!!o;s.want!==i&&(s.want=i,rM(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},Oz=t=>t.dialogTitle===!0,Rz=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},sM=t=>{let e=Rz(t);return!e||!e.locked},Dz=t=>t.key==="Escape"||t.key==="Esc",Lz=t=>{let e=t.__ref,n=cn(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let o=ET(t),r=!Wu(t,"closedby","closedBy"),s=W(()=>{let l=!!t.locked,f=cn(t);f&&r&&ic(f,"closedby",l?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(s);let i=l=>{t.locked&&l.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,c=l=>{let f=cn(t);f&&f.open&&f.isConnected&&Dz(l)&&t.locked&&l.preventDefault()};n.addEventListener("cancel",i),a&&a.addEventListener("keydown",c),o.unlock=()=>{n.removeEventListener("cancel",i),a&&a.removeEventListener("keydown",c)}},Iz=t=>{let e=cn(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||Wu(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(Oz):null,o=cn(n);if(!o)return;let r=o.getAttribute("id");if(!r){if(Wu(n,"id"))return;r=ET(t).id+"-title",ic(o,"id",r)}ic(e,"aria-labelledby",r)},Pz=(t,e)=>{let n=cn(e),o=t.target;if(!n||t.defaultPrevented||!o||typeof o.closest!="function")return;let r=o.closest("[data-dialog-action]");if(!r||!n.contains(r))return;let s=r.getAttribute("data-dialog-action");if(Ez[s]!==1)return;let i=n.ownerDocument.defaultView,a=new i.Event(s,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(s)},Mz=t=>{let e=Qs.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=cn(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},Bz=t=>{let e=Qs.get(t),n=cn(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},Nz=t=>{let e=Qs.get(t);e&&e.want&&rM(t)},$z=t=>{let e=cn(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||Wu(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&ic(e,"data-dialog","modal")},iM=globalThis.__SMBLS_BUILD_DROP_C_Dialog__?D("Dialog"):{display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onAttachNode:{always:!0,handler:t=>$z(t)},onComplete:{always:!0,handler:t=>{Cz(t),Lz(t),Iz(t)}},onRender:{always:!0,handler:t=>Nz(t)},onClick:(t,e)=>Pz(t,e),onBeforeRemove:{always:!0,handler:t=>Mz(t)},onRemove:{always:!0,handler:t=>Bz(t)}},aM=globalThis.__SMBLS_BUILD_DROP_C_DialogHeader__?D("DialogHeader"):{extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>sm(t,"dialog.title","Title")},SquareButton:{if:sM,icon:"x",theme:"transparent",aria:{label:t=>sm(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},cM=globalThis.__SMBLS_BUILD_DROP_C_DialogFooter__?D("DialogFooter"):{display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{if:sM,text:t=>sm(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>sm(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var LT=/*@__PURE__*/$({},{Tooltip:()=>gM,TooltipHidden:()=>mM,TooltipLayer:()=>DT,TooltipParent:()=>yM});var Fz='[data-tooltip]:not([data-tooltip=""])',lM={top:1,bottom:1,left:1,right:1},vT={top:"bottom",bottom:"top",left:"right",right:"left"},Js=6,fM=new WeakMap,jz=0,ke=t=>{let e=fM.get(t);return e||(e={id:"smbls-tooltip-"+ ++jz,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},fM.set(t,e)),e},CT=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},Uz=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},Vz=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},uM=(t,e)=>{let n=Uz(t);if(!e||!n)return null;let o;try{o=e.closest(Fz)}catch{return null}if(!o||!n.contains(o))return null;for(let r=o;r&&r!==n;r=r.parentElement)if(Vz(r))return null;return o},Hz=(t,e)=>!!(e&&t.node&&t.node.contains(e)),zz=t=>{try{return t.matches(":focus-visible")}catch{return!0}},dM=(t,e)=>typeof t=="number"&&t>=0?t:e,lm=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},OT=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),Wz=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},RT=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let o=n.split(/\s+/).filter(r=>r&&r!==e);o.length?t.setAttribute("aria-describedby",o.join(" ")):t.removeAttribute("aria-describedby")},Gz=(t,e,n,o,r)=>{let s={top:t.top,bottom:r-t.bottom,left:t.left,right:o-t.right},i=f=>(f==="top"||f==="bottom"?e.height:e.width)+Js;s[n]<i(n)&&s[vT[n]]>=i(vT[n])&&(n=vT[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+Js:t.top-e.height-Js):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+Js:t.left-e.width-Js);let l=(f,u)=>Math.max(Js,Math.min(u-Js,f));return{left:l(a,o-e.width),top:l(c,r-e.height),side:n}},Kz=t=>{let e=t.ownerDocument,n=e&&e.defaultView,o=e&&e.documentElement;return{width:o&&o.clientWidth||n&&n.innerWidth||0,height:o&&o.clientHeight||n&&n.innerHeight||0}},qz=t=>(t.title||"")+(t.description||""),am=(t,e=0)=>{let o=ke(t).shown;if(!o||!OT(t))return;if(!o.isConnected){cm(t);return}let r=t.node,s=t.state;if(r.textContent!==qz(s)){e<3&&setTimeout(()=>am(t,e+1),0);return}let i=o.getBoundingClientRect(),a=r.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),f=Kz(r),u=o.getAttribute("data-tooltip-placement"),d=lM[u]?u:lM[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=Gz(i,{width:a.width,height:a.height},d,f.width,f.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},Yz=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},pM=(t,e)=>{let n=ke(t);lm(n),!(!OT(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&RT(n.shown,n.id),n.shown=e,Wz(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),Yz(()=>am(t)))};function cm(t){let e=ke(t);lm(e),e.shown&&RT(e.shown,e.id),e.shown=null,OT(t)&&t.state.open&&t.state.update({open:!1})}var im=(t,e)=>{let n=ke(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let o=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(o===n.shown){lm(n);return}if(!o){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){cm(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,cm(t)},dM(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){pM(t,o);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,pM(t,o)},dM(t.tooltipDelay,250))},hM=t=>{let e=ke(t);e.shown&&(e.dismissed=e.shown,cm(t))},DT=globalThis.__SMBLS_BUILD_DROP_C_TooltipLayer__?D("TooltipLayer"):{role:"tooltip",id:t=>ke(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=ke(e),o=CT(t.target),r=Hz(e,o)?n.shown:uM(e,o);r===n.hover&&(r||!n.shown)||(n.hover=r,im(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=ke(e);n.hover&&(n.hover=null,im(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=ke(e),o=CT(t.target);n.shown&&o&&n.shown.contains(o)&&hM(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=ke(e),o=CT(t.target),r=o&&zz(o)?uM(e,o):null;r!==n.focus&&(n.focus=r,im(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=ke(e);n.focus&&(n.focus=null,im(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&hM(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{ke(e).shown&&am(e)}},onWindowResize:(t,e)=>{ke(e).shown&&am(e)},onBeforeRemove:t=>{let e=ke(t);lm(e),e.shown&&RT(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var gM=globalThis.__SMBLS_BUILD_DROP_C_Tooltip__?D("Tooltip"):{display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>Nt(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},mM=globalThis.__SMBLS_BUILD_DROP_C_TooltipHidden__?D("TooltipHidden"):{extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},yM=globalThis.__SMBLS_BUILD_DROP_C_TooltipParent__?D("TooltipParent"):{position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,o=e||n;if(!o)return;let r=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":r||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var IT=/*@__PURE__*/$({},{Avatar:()=>_M});var Xz=t=>{let n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="32" fill="#71718A"/><text x="32" y="42" font-family="system-ui,sans-serif" font-size="28" font-weight="700" text-anchor="middle" fill="#fff">${String(t||"").trim().charAt(0).toUpperCase()||"?"}</text></svg>`;return"data:image/svg+xml;utf8,"+encodeURIComponent(n)},_M=globalThis.__SMBLS_BUILD_DROP_C_Avatar__?D("Avatar"):{extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=Xz(n)},attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call("exec",t.text,t):t.key&&t.key!=="no-avatar"?t.key:""}};var PT=/*@__PURE__*/$({},{Range:()=>bM});var bM={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:ra("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ra("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,n)=>{let o=t.call("exec",t[e],t);return(t.call("isFunction",o)?o(t,t.state):o!==void 0?o:n!==void 0?n:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var zT=/*@__PURE__*/$({},{Dropdown:()=>WM,DropdownDisclosure:()=>qM,DropdownList:()=>GM,DropdownParent:()=>KM,DropdownParentFocus:()=>YM,DropdownSiblingFocus:()=>XM});var gm="hover",kM="focus",Gu="sibling",Mo="disclosure",SM={menu:1,listbox:1,tree:1,grid:1,dialog:1},Zz={DIV:1,SPAN:1,LABEL:1,P:1,STRONG:1,B:1,EM:1,SMALL:1,H1:1,H2:1,H3:1,H4:1,H5:1,H6:1},Qz={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},Jz='button, a[href], [role^="menuitem"], [role="option"]',tW={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},um=new WeakMap,dm=new WeakMap,pm=new WeakMap,BT=new WeakMap,TM=new WeakSet,eW=0,_t=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},ac=(t,e)=>{let n=_t(t);return n?n.getAttribute(e):null},Rt=(t,e)=>{let n=_t(t);return!!n&&!!e&&(n===e||n.contains(e))},MT=t=>{let e=_t(t);return!!e&&e.hasAttribute("dropdown")},NT=t=>{let e=_t(t);return!!e&&e.tagName==="BUTTON"},fm=t=>NT(t)||ac(t,"role")==="button",wM=t=>{let e=_t(t);return!!e&&Zz[e.tagName]===1&&!e.isContentEditable},EM=t=>{let e=_t(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},Ku=t=>{let e=ac(t,"role");return!!e&&e.indexOf("menuitem")===0&&EM(t)},nW=t=>{let e=_t(t);if(!e||!EM(t))return!1;if(Qz[e.tagName]===1)return e.getAttribute("type")!=="hidden";if(e.tagName==="A"&&e.hasAttribute("href"))return!0;let n=e.getAttribute("tabindex");return n!==null&&parseInt(n,10)>=0},ti=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],Te=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,$T=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},AM={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},vM=(t,e)=>{if(t[e]!==void 0)return!0;let n=AM[e];if(n!==void 0&&t[n]!==void 0)return!0;let o=t.attr;if(o&&typeof o=="object"&&o[e]!==void 0)return!0;if(e.indexOf("aria-")===0){let r=t.aria;if(r&&typeof r=="object"&&r[e.slice(5)]!==void 0)return!0}return!1},oW=(t,e)=>{let n=AM[e],o=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!o&&typeof o=="object"&&typeof o[e]=="function"},Jn=(t,e,n)=>!e.hasAttribute(n)&&!vM(t,n),vr=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},rW=(t,e)=>{let n=_t(t);if(n)for(let o in e)vr(n,o,e[o])},hm=t=>{let e=_t(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},sW=t=>{let e=um.get(t);return e||(e={id:"smbls-dropdown-"+ ++eW,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},um.set(t,e)),e},xM=(t,e)=>!!e&&!!_t(e)&&!!t&&t[e.key]===e,iW=(t,e)=>{let n=null,o=null;if(e===Gu){let s=t.parent?ti(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(MT(s[i])){n=s[i];break}return(fm(t)||wM(t))&&(o=t),{panel:n,trigger:o}}let r=ti(t);for(let s=0;s<r.length;s++)if(MT(r[s])){n=r[s];break}if(fm(t))return{panel:n,trigger:t};for(let s=0;s<r.length;s++){let i=r[s];if(!(!_t(i)||i.key==="Input_trigger"||MT(i))){(fm(i)||wM(i))&&(o=i);break}}return{panel:n,trigger:o}},aW=t=>{let e=ac(t,"role");if(e&&SM[e]===1)return{el:t,role:e};let n=ti(t);for(let o=0;o<n.length;o++){let r=ac(n[o],"role");if(r&&SM[r]===1)return{el:n[o],role:r}}return null},ln=t=>{let e=Te(t);if(!e||!_t(t))return null;let n=sW(t);if(n.trigger){let p=e===Gu?t.parent:t;if((n.trigger===t||xM(t,n.trigger))&&xM(p,n.panel))return n}let{panel:o,trigger:r}=iW(t,e);if(!o||!r)return n.trigger=n.panel=n.popup=null,null;n.trigger=r,n.panel=o;let s=e===Mo?null:aW(o);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=_t(r),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&Jn(r,i,"id")&&(a.id=c=n.id+"-trigger"),fm(r)||(Jn(r,i,"role")&&(a.role="button"),Jn(r,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&Jn(r,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=_t(o),f=l.getAttribute("id");if(!f&&Jn(o,l,"id")&&(f=n.id+"-panel",vr(l,"id",f)),f&&Jn(r,i,"aria-controls")&&(a["aria-controls"]=f),n.owns=Jn(r,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=mm(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),rW(r,a),n.popupRole==="menu"&&c){let p=_t(n.popup);Jn(n.popup,p,"aria-label")&&Jn(n.popup,p,"aria-labelledby")&&vr(p,"aria-labelledby",c)}r!==t&&e===kM&&ac(t,"tabindex")==="0"&&!oW(t,"tabindex")&&vr(_t(t),"tabindex","-1");let u=$T(t),d=_t(u);return d&&!d.hasAttribute("tabindex")&&(vM(u,"tabindex")||vr(d,"tabindex","-1"),Jn(u,d,"aria-hidden")&&vr(d,"aria-hidden","true")),ei(t,n),n},CM=t=>{let e=_t(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},OM=t=>Rt(t,CM(t)),mm=(t,e,n)=>{if(e.open!==null)return e.open;let o=Te(t);return n||o===gm||o===Mo?!1:OM(t)},ei=(t,e,n)=>{let o=e.open===null?null:String(e.open);if(e.written.open!==o){e.written.open=o;let s=_t(t);s&&vr(s,"data-dropdown-open",o)}if(!e.owns)return;let r=mm(t,e,n)?"true":"false";if(e.written.expanded!==r){e.written.expanded=r;let s=_t(e.trigger);s&&vr(s,"aria-expanded",r)}},oi=t=>{let e=dm.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},dm.set(t,e)),e},RM=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&pm.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let o=pm.get(e);o&&o.set(!0)},DM=(t,e)=>{let n=oi(t);n.chosen=!0,RM(n,e)},LM=t=>{let e=oi(t);if(e.settling=!1,e.chosen)return;let n=ti(t);for(let o=0;o<n.length;o++)if(Ku(n[o])){RM(e,n[o]);return}},IM=(t,e)=>{if(!e||!e.contains(t))return!1;let n=[];for(let r=t;r!==e;r=r.parentElement)n.push(r);n.push(e);let o=!1;for(let r=n.length-1;r>=0;r--){let s=typeof n[r].getAnimations=="function"?n[r].getAnimations():[];for(let i=0;i<s.length;i++)s[i].transitionProperty==="visibility"&&(s[i].finish(),o=!0)}return o},PM=(t,e)=>{let n=_t(t);if(!n)return;let o=n.ownerDocument.activeElement,r=hm(t);!r&&e&&n.ownerDocument.activeElement===o&&IM(n,_t(e))&&(r=hm(t));let s=t.parent;r&&s&&dm.has(s)&&DM(s,t)},cW=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?Ku:nW)},lW=(t,e,n)=>{if(n==="trigger"){let s=CM(t);(!Rt(t,s)&&!Rt(e.panel,s)||Rt($T(t),s))&&hm(e.trigger);return}let o=cW(e);if(!o.length)return;let r=n==="last"?o[o.length-1]:null;if(!r)for(let s=0;s<o.length&&!r;s++)ac(o[s],"aria-checked")==="true"&&(r=o[s]);PM(r||o[0],e.panel)},FT=(t,e,n)=>{let o=_t(t),r=o&&o.ownerDocument;n&&!e.outside&&r?(e.outside=s=>{if(!_t(t)||!_t(t).isConnected){FT(t,e,!1);return}Rt(t,s.target)||Rt(e.panel,s.target)||ae(t,e,!1)},e.outsideDoc=r,r.addEventListener("pointerdown",e.outside,!0)):!n&&e.outside&&(e.outsideDoc.removeEventListener("pointerdown",e.outside,!0),e.outside=e.outsideDoc=null)},MM=(t,e)=>{let n=_t(t),o=n&&n.ownerDocument&&n.ownerDocument.defaultView;if(!o||typeof o.Event!="function")return;let r=new o.Event("toggle");Object.defineProperty(r,"newState",{value:e?"open":"closed"}),Object.defineProperty(r,"oldState",{value:e?"closed":"open"}),n.dispatchEvent(r)},cc=(t,e,n)=>{let o=e.open===!0;if(e.open=!0,ei(t,e),Te(t)===Mo){FT(t,e,!0);let r=_t(e.panel);r&&IM(r,r),o||MM(t,!0)}n&&lW(t,e,n)},ae=(t,e,n)=>{let o=e.open===!0;e.open=!1,ei(t,e),e.outside&&FT(t,e,!1),n&&hm(e.trigger),o&&Te(t)===Mo&&MM(t,!1)},fW=t=>{let e=t.__ref;if(!e||Te(t)!==Mo||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=W(()=>{let o=t.open;o!=null&&Nr(()=>{let r=ln(t);!r||!!o==(r.open===!0)||(o?cc(t,r,null):ae(t,r,OM(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},ym=(t,e,n)=>e.trigger===t?!Rt(e.panel,n):Rt(e.trigger,n)?!0:Rt($T(t),n),jT=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(Jz):null;return!!n&&Rt(t,n)},BM=(t,e,n)=>{let o=t.key;o==="Escape"||o==="Esc"?(t.preventDefault(),ae(e,n,!0)):o==="Tab"&&n.popupRole==="menu"&&Rt(n.popup,t.target)&&ae(e,n,!1)},_m=t=>{Te(t)===Gu&&t.parent&&TM.add(t.parent),ln(t),fW(t)},bm=(t,e)=>{let n=ln(e);n&&(n.pressedOpen=mm(e,n))},uW=(t,e)=>{let n=um.get(e);!n||!n.trigger||n.open!==!1||Te(e)!==gm||(n.open=null,ei(e,n))},Sm=(t,e)=>{if(Te(e)===Mo){pW(t,e);return}if(t.defaultPrevented)return;let n=ln(e);if(!n)return;let o=t.target;if(Rt(n.panel,o)){if(Te(e)!==gm||!jT(n.panel,o))return;(n.open===!0||t.detail===0)&&ae(e,n,!0);return}if(!ym(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?ae(e,n,!0):cc(e,n,n.popupRole==="menu"?"first":"trigger")},wm=(t,e)=>{if(t.defaultPrevented)return;if(Te(e)===Mo){hW(t,e);return}let n=ln(e);if(!n)return;let o=t.target;if(Rt(n.panel,o)){BM(t,e,n);return}if(!ym(e,n,o))return;let r=t.key;if(r==="ArrowDown"||r==="Down"||r==="ArrowUp"||r==="Up")t.preventDefault(),cc(e,n,r==="ArrowUp"||r==="Up"?"last":"first");else if(r==="Escape"||r==="Esc"){if(!mm(e,n))return;t.preventDefault(),ae(e,n,!1)}else(r==="Enter"||r===" "||r==="Spacebar")&&!NT(n.trigger)&&(t.preventDefault(),n.open===!0?ae(e,n,!0):cc(e,n,n.popupRole==="menu"?"first":"trigger"))},dW=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),pW=(t,e)=>{let n=ln(e);if(!n)return;let o=t.target;if(Rt(n.panel,o)){n.open===!0&&!dW(t)&&e.keepOpen!==!0&&jT(n.panel,o)&&ae(e,n,!0);return}if(t.defaultPrevented||!ym(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?ae(e,n,!0):cc(e,n,"trigger")},hW=(t,e)=>{let n=ln(e);if(!n)return;let o=t.key;if(o==="Escape"||o==="Esc"){if(n.open!==!0)return;t.preventDefault(),ae(e,n,!0);return}(o==="Enter"||o===" "||o==="Spacebar")&&!NT(n.trigger)&&!Rt(n.panel,t.target)&&ym(e,n,t.target)&&(t.preventDefault(),n.open===!0?ae(e,n,!0):cc(e,n,"trigger"))},UT=(t,e)=>{let n=ln(e);n&&(n.open===null&&Rt(n.panel,t.target)&&(n.open=!0),ei(e,n))},qu=(t,e)=>{let n=um.get(e);if(!n||!n.trigger)return;let o=t.relatedTarget;if(Te(e)===Mo){n.open===!0&&o&&!Rt(e,o)&&!Rt(n.panel,o)&&ae(e,n,!1);return}if(o&&(Rt(e,o)||Rt(n.panel,o))){n.open===null&&Rt(n.panel,o)&&(n.open=!0,ei(e,n));return}n.open=null,ei(e,n,!0)},NM=t=>{let e=t.parent;if(!e||!TM.has(e))return null;let n=ti(e);for(let o=n.indexOf(t)-1;o>=0&&n[o];o--)if(Te(n[o])===Gu)return n[o];return null},VT=t=>{let e=NM(t),n=e?ln(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},$M=t=>{let e=NM(t);e&&ln(e)},FM=(t,e)=>{if(t.defaultPrevented)return;let n=VT(e);n&&BM(t,n.ctrl,n.rec)},jM=(t,e)=>{if(t.defaultPrevented||!jT(e,t.target))return;let n=VT(e);n&&ae(n.ctrl,n.rec,!0)},UM=(t,e)=>{let n=VT(e);n&&qu(t,n.ctrl)},gW=(t,e)=>{let n=e.parent,o=Te(n)?ln(n):null;if(o&&o.panel===e){ae(n,o,!0);return}let r=_t(e),s=r&&r.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},VM=(t,e)=>{if(Te(e.parent)&&ln(e.parent))return;let n=_t(e);n&&n===n.ownerDocument.activeElement&&n.blur()},mW=(t,e)=>{if(t.defaultPrevented)return;let n=tW[t.key];if(!n)return;let o=typeof e.lookdownAll=="function"?e.lookdownAll(Ku):[];if(!o.length)return;let r=-1;for(let i=0;i<o.length&&r===-1;i++)Rt(o[i],t.target)&&(r=i);let s;n==="first"?s=0:n==="last"?s=o.length-1:r===-1?s=n>0?0:o.length-1:s=(r+n+o.length)%o.length,t.preventDefault(),PM(o[s])},yW=(t,e)=>{let n=ti(e);for(let o=0;o<n.length;o++)if(Rt(n[o],t.target)){Ku(n[o])&&DM(e,n[o]);return}},_W=t=>{let e=t.parent;if(!e)return"0";let n=oi(e),o=pm.get(t);if(!o){n.stop===null&&(n.stop=t.key);let r=n.stop===t.key;r&&(n.stopItem=t),n.ready&&!n.chosen&&!n.settling&&(n.settling=!0,queueMicrotask(()=>LM(e))),o=pn(r),pm.set(t,o)}return o.get()?"0":"-1"},bW=t=>{$M(t);let e=oi(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&Ku(e.stopItem))&&LM(t)},SW=t=>{let e=BT.get(t),n=!e;n&&(e={tick:pn(0),seen:0,checked:!1},BT.set(t,e));let o=e.tick.get();return o===e.seen&&(e.checked=!!Nr(()=>t.isActive)),e.seen=o,n&&t.parent&&xW(t.parent),e.checked?"true":"false"},wW=(t,e)=>{if(e.checkRows.get(),!t.node){zM(t);return}let n=ti(t);for(let o=0;o<n.length;o++){let r=BT.get(n[o]);if(!r)continue;let s=!!n[o].isActive;s!==r.checked&&(r.checked=s,r.tick.set(r.tick.peek()+1))}},HM=t=>{let e=oi(t);e.checks||(e.checkRows||(e.checkRows=pn(0)),e.checks=W(()=>wW(t,e),{label:"DropdownList.checks"}))},zM=t=>{let e=dm.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},xW=t=>{let e=oi(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||HM(t)},kW=t=>{oi(t).owned=!0},ni={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},HT={opacity:0,visibility:"hidden"},WM=globalThis.__SMBLS_BUILD_DROP_C_Dropdown__?D("Dropdown"):{attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden",onComplete:{always:!0,handler:$M},onKeydown:FM,onClick:jM,onFocusout:UM},GM=globalThis.__SMBLS_BUILD_DROP_C_DropdownList__?D("DropdownList"):{display:"flex",attr:{dropdown:!0},role:"menu",padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",listStyleType:"none",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",children:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},onKeydown:(t,e)=>{mW(t,e),FM(t,e)},onInit:{always:!0,handler:kW},onComplete:{always:!0,handler:bW},onRender:{always:!0,handler:HM},onBeforeRemove:{always:!0,handler:zM},onFocusin:yW,onClick:jM,onFocusout:UM,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>_W(t),aria:{checked:t=>SW(t)},isActive:(t,e)=>e.active===t.key,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},':where([aria-checked="true"])':{style:{svg:{opacity:"1"}}},Icon:{name:"check",opacity:"0.1"},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},KM=globalThis.__SMBLS_BUILD_DROP_C_DropdownParent__?D("DropdownParent"):{position:"relative",zIndex:999,dropdownMode:gm,":hover":{zIndex:1e3,"& [dropdown]":{...ni}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...ni}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...HT}},onComplete:{always:!0,handler:_m},onPointerdown:bm,onPointerenter:uW,onClick:Sm,onKeydown:wm,onFocusin:UT,onFocusout:qu},qM=globalThis.__SMBLS_BUILD_DROP_C_DropdownDisclosure__?D("DropdownDisclosure"):{position:"relative",dropdownMode:Mo,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...ni}},onComplete:{always:!0,handler:_m},onPointerdown:bm,onClick:Sm,onKeydown:wm,onFocusout:qu},YM=globalThis.__SMBLS_BUILD_DROP_C_DropdownParentFocus__?D("DropdownParentFocus"):{position:"relative",tabindex:"0",dropdownMode:kM,":focus-within":{zIndex:1e3,"& [dropdown]":{...ni}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...ni}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...HT}},onComplete:{always:!0,handler:_m},onPointerdown:bm,onClick:Sm,onKeydown:wm,onFocusin:UT,onFocusout:qu,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>VM(t,e)},Dropdown:{onClick:(t,e)=>gW(t,e)}},XM=globalThis.__SMBLS_BUILD_DROP_C_DropdownSiblingFocus__?D("DropdownSiblingFocus"):{position:"relative",tabindex:"0",dropdownMode:Gu,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...ni}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...ni}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...HT}},onComplete:{always:!0,handler:_m},onPointerdown:bm,onClick:Sm,onKeydown:wm,onFocusin:UT,onFocusout:qu,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>VM(t,e)}};var WT=/*@__PURE__*/$({},{Notification:()=>ZM});var ZM=globalThis.__SMBLS_BUILD_DROP_C_Notification__?D("Notification"):{display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var ri=Object.assign({},T0,E0,A0,v0,O0,I0,P0,M0,D0,B0,N0,L0,$0,F0,j0,U0,V0,H0,z0,W0,G0,K0,X0,xT,kT,TT,AT,LT,IT,PT,zT,WT);function xm(t){if(t==null)return 0;if(typeof t!="object")return QM(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let o=0;o<t.length;o++)e=(e^xm(t[o]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let o=0;o<n.length;o++)e=(e^QM(n[o]))*16777619,e=(e^xm(t[n[o]]))*16777619;return e>>>0}function QM(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function km(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!km(t[r],e[r]))return!1;return!0}let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++){let s=n[r];if(!Object.prototype.hasOwnProperty.call(e,s)||!km(t[s],e[s]))return!1}return!0}function GT(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let n=!1,o={};for(let r in t)if(r in e){let s=GT(t[r],e[r]);o[r]=s,s!==t[r]&&(n=!0)}else o[r]=t[r];for(let r in e)r in t||(o[r]=e[r],n=!0);return n?o:t}function KT(t,e,n){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(n||(n=new WeakSet),n.has(e))return t;n.add(e);for(let o in e){let r=e[o];r&&typeof r=="object"&&!Array.isArray(r)&&t[o]&&typeof t[o]=="object"&&!Array.isArray(t[o])?KT(t[o],r,n):t[o]=r}return t}function Cr(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function fc(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Yu(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Cr(e)}function JM(t){return t.split(`
89
- `).map(Cr).join(`
90
- `)}var tB={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function eB(t,e){let n=tB[t]||Cr(t),o=Yu(e),r=`_${n}-${o}`,s=fc(t),i=vW[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${r}{${a}}`;return`${r}
91
- ${c}`}var vW={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"},CW="@media (hover: hover)",OW=/(?:^|[^\\]):hover(?![\w-])/,nB=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function oB(t){let e=t.split("\0"),n=[],o=[];for(let r=0;r+1<e.length;r+=2){let s=e[r],i=e[r+1];if(!i||nB(i))continue;let a=tB[s]||Cr(s),c=Yu(i),l=`_${a}-${c}`,f=fc(s);n.push(l),o.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+o.join(`
92
- `)}function rB(t,e,n){let o=t+e,r=`_c${Cr(o)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(nB(u)||(i+=`${fc(f)}:${u};`))}let a,c;if(t.startsWith("@media"))c=`.${r}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(":")||t.startsWith("&")||t.startsWith("[")&&!t.includes("&")){let l=t.startsWith("&")?t.slice(1):t;c=`.${r}${l}`,a=`${c}{${i}}`}else t.includes("&")?(c=t.replace("&",`.${r}`),a=`${c}{${i}}`):(c=`.${r} ${t}`,a=`${c}{${i}}`);return n!==!1&&OW.test(c)&&(a=`${CW}{${a}}`),`${r}
93
- ${a}`}var qT=null;function Em(t){qT=t}var vn={structuralHash:xm,deepEqual:km,mergeStructural:GT,overwriteDeep:KT,shortHash:Cr,toKebab:fc,sanitizeValue:Yu,batchShortHash:JM,atomicCssClass:eB,batchAtomicCss:oB,compoundCssClass:rB},sB=!1,Tm=null;function iB(t){return Tm||(Tm=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(vn.structuralHash=e.structuralHash),e.deepEqual&&(vn.deepEqual=e.deepEqual),e.mergeStructural&&(vn.mergeStructural=e.mergeStructural),e.overwriteDeep&&(vn.overwriteDeep=e.overwriteDeep),e.shortHash&&(vn.shortHash=e.shortHash),e.toKebab&&(vn.toKebab=e.toKebab),e.sanitizeValue&&(vn.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(vn.batchShortHash=e.batchShortHash),e.atomicCssClass&&(vn.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(vn.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(vn.compoundCssClass=e.compoundCssClass),sB=!0,qT&&e.batchAtomicCss&&qT({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Tm)}function aB(){return sB}var Xu=/*@__PURE__*/$({},{BRENDER_REGISTRY_BLOCK:()=>Zl,BRENDER_REGISTRY_TREE_BLOCK:()=>Ql,BRENDER_STAMP_META:()=>Jp,CDN_PROVIDERS:()=>Ge,DESIGN_SYSTEM_BLOCK:()=>nf,DESIGN_SYSTEM_DEFERRED:()=>ef,DESIGN_SYSTEM_LINK:()=>tf,DOMQL_EVENTS:()=>A_,DOMQ_PROPERTIES:()=>jo,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vi,ENV:()=>q_,HTML_TAGS:()=>Ii,LIBRARY_PACKAGES:()=>Qp,LIBRARY_SCOPES_KEY:()=>cs,METHODS:()=>Vo,METHODS_EXL:()=>Hc,NODE_ENV:()=>hn,OPTIONS:()=>Tl,PACKAGE_MANAGER_TO_CDN:()=>Qo,PARSED_DOMQ_PROPERTIES:()=>Vc,POLYGLOT_LANG_STORAGE_KEY:()=>Vp,PROPS_METHODS:()=>Uo,REVIVED_MARK:()=>Yc,STATE_DATA_MERGE_EXL:()=>yp,STATE_METHODS:()=>jr,STATE_PROPERTIES:()=>T_,SVG_TAGS:()=>hv,TYPES:()=>Bc,UNIVERSAL_RESERVED_KEYS:()=>Up,__resetBuiltinMethodWarnings:()=>US,addCaching:()=>up,addContext:()=>fp,addExtend:()=>mb,addExtends:()=>In,addItemAfterEveryElement:()=>f_,addProtoToArray:()=>Fc,addRef:()=>ap,alternateLinkKey:()=>us,applyCSS:()=>QT,applyDependentState:()=>Ib,applyEvent:()=>Pp,applyEventUpdate:()=>Mp,applyExtends:()=>yv,applyProps:()=>ll,arrayContainsOtherArray:()=>o_,arraysEqual:()=>d_,arrayzeValue:()=>hs,bareLibraryKey:()=>Hl,bindLibraryGlobalScopes:()=>Wl,brenderStampMeta:()=>YS,buildImgSrcset:()=>sf,buildSourcesAndImg:()=>af,cache:()=>lS,call:()=>SS,captureSnapshot:()=>xS,checkForStateTypes:()=>Ob,checkIfInherits:()=>mp,checkIfStringIsInArray:()=>g_,clone:()=>I_,cloneAndMergeArrayExtend:()=>el,cloneFunction:()=>eb,collectExtendsList:()=>Pi,concatAddExtends:()=>pb,copyJavaScriptToClipboard:()=>ew,copyStringToClipboard:()=>tw,createBasedOnType:()=>ip,createElement:()=>Cb,createElementExtends:()=>Yd,createExtends:()=>ol,createExtendsFromKeys:()=>Mi,createExtendsStack:()=>Jd,createIfConditionFlag:()=>nb,createInheritedState:()=>Rb,createKey:()=>Jc,createNestedObject:()=>U_,createNestedObjectByKeyPath:()=>Lb,createObjectWithoutPrototype:()=>Hd,createParent:()=>cp,createPath:()=>lp,createProps:()=>fl,createPropsStack:()=>rp,createPrunedLibraryIconLoader:()=>rh,createRoot:()=>vb,createScope:()=>Mb,createSnapshotId:()=>Qc,currentPathname:()=>ss,customDecodeURIComponent:()=>k_,customEncodeURIComponent:()=>x_,cutArrayAfterValue:()=>c_,cutArrayBeforeValue:()=>a_,debounce:()=>tl,debounceOnContext:()=>J_,decodeBrenderRegistry:()=>Jl,decodeNewlines:()=>w_,deepClone:()=>ut,deepContains:()=>F_,deepDefaults:()=>Yi,deepDestringifyFunctions:()=>de,deepExtend:()=>qd,deepMerge:()=>mt,deepMergeExtends:()=>Pn,deepStringifyFunctions:()=>Gc,defineSetter:()=>_S,designSystemBlock:()=>qS,designSystemLink:()=>KS,destringifyGlobalScope:()=>Gr,detectHeightOnInit:()=>CS,detectInfiniteLoop:()=>W_,document:()=>wt,encodeNewlines:()=>S_,error:()=>os,escapeHtml:()=>j,escapeRegExp:()=>m_,evaluateText:()=>Zo,excludeKeysFromObject:()=>K_,exec:()=>bt,exposeBagGlobalScopes:()=>Gl,extendCachedRegistry:()=>hb,extendStackRegistry:()=>rl,extractArrayExtend:()=>il,faviconLinkKey:()=>er,fetchLibraryData:()=>Qi,fibonacciNumberByIndex:()=>OS,fileEntryUrl:()=>th,filterArrays:()=>p_,filterArraysFast:()=>h_,finalizeExtends:()=>tp,findClosestNumber:()=>eh,findClosestNumberInFactory:()=>JS,findInheritedState:()=>gp,findKeyPosition:()=>__,flattenExtend:()=>Bi,formatDate:()=>vS,generateHash:()=>Wd,generateHeadArrayTags:()=>Ji,generateKey:()=>Zc,generateMetaTags:()=>ZS,get:()=>hS,getActiveRoute:()=>bT,getCDNDirUrl:()=>Kp,getCDNUrl:()=>_n,getCapitalCaseKeys:()=>_b,getCdnProviderFromConfig:()=>Ki,getChildStateInKey:()=>hp,getChildren:()=>yS,getContext:()=>Il,getCookie:()=>ab,getDB:()=>$l,getEmotionStylesheet:()=>aw,getExtendsInElement:()=>yb,getExtendsStack:()=>nl,getExtendsStackRegistry:()=>Kd,getFrequencyInArray:()=>r_,getFunctionSource:()=>Oe,getHashedExtend:()=>sl,getImportMapScript:()=>AS,getInObjectByPath:()=>z_,getLocalStorage:()=>lb,getNev:()=>Q_,getPageMetadata:()=>QS,getParentStateInKey:()=>pp,getPath:()=>vl,getQuery:()=>Fl,getRef:()=>mS,getRoot:()=>Rl,getRootContext:()=>Ll,getRootData:()=>Dl,getRootState:()=>Ol,getRootStateInKey:()=>dp,getSpreadChildren:()=>bb,global:()=>t_,hasFunction:()=>te,hasHandlerPlugin:()=>Di,hasOwnProperty:()=>B_,hashContent:()=>Sn,inheritChildExtends:()=>Zd,inheritChildPropsExtends:()=>Xd,inheritParentProps:()=>ul,inheritRecursiveChildExtends:()=>Qd,init:()=>to,initProps:()=>Eb,insertAfterImportMap:()=>XS,installPrunedLibraryIconLoader:()=>rf,is:()=>ue,isArray:()=>P,isBoolean:()=>Md,isBuiltinElementMethod:()=>E_,isContextComponent:()=>Sb,isCyclic:()=>G_,isDOMNode:()=>le,isDate:()=>Nd,isDefined:()=>Nt,isDevelopment:()=>zo,isEmpty:()=>Ud,isEmptyObject:()=>N_,isEqualDeep:()=>Vd,isFailedRevival:()=>zr,isFunction:()=>I,isHtmlElement:()=>Mc,isLazyFunction:()=>P_,isLocal:()=>Z_,isLoudDevRuntime:()=>J,isMalformedDependency:()=>is,isMethod:()=>wS,isMobile:()=>sb,isNode:()=>ro,isNot:()=>n_,isNotProduction:()=>so,isNull:()=>Bd,isNumber:()=>fe,isObject:()=>k,isObjectLike:()=>U,isPhoto:()=>RS,isPolyglotRetranslatableKey:()=>gl,isPolyglotWritableKey:()=>qr,isProduction:()=>Ho,isProtectedElementMethod:()=>Ur,isRevived:()=>Wr,isStaging:()=>X_,isState:()=>Db,isString:()=>E,isStringFunction:()=>Ri,isStringTag:()=>qc,isTest:()=>zd,isTesting:()=>Y_,isUndefined:()=>Wt,isUniversallyReservedKey:()=>kS,isUnresolvableDependency:()=>Jo,isValidDependencyMap:()=>as,isValidHtmlTag:()=>ub,isWrappedLibrary:()=>Re,joinArrays:()=>Ei,jointStacks:()=>gb,jsonForScript:()=>Qr,keys:()=>Fp,lastLevel:()=>rm,lastPathname:()=>rc,libraryIconPruneReplacer:()=>iw,libraryIdentifier:()=>nh,libraryPackageSpecs:()=>Xi,librarySpecsFor:()=>Zp,loadCssFile:()=>PS,loadJavascript:()=>MS,loadJavascriptFile:()=>DS,loadJavascriptFileEmbedSync:()=>IS,loadJavascriptFileSync:()=>LS,loadLazy:()=>dT,loadRemoteCSS:()=>BS,loadRemoteScript:()=>qi,log:()=>bS,logGroupIf:()=>rb,logIf:()=>ob,lookdown:()=>dS,lookdownAll:()=>pS,lookup:()=>uS,lowercaseFirstLetter:()=>Fr,makeObjectWithoutPrototype:()=>$_,map:()=>L_,mapStringsWithContextComponents:()=>al,markPolyglotSeeded:()=>Bn,markRevived:()=>Oi,markTextNotReady:()=>zi,matchRoute:()=>mT,matchesComponentNaming:()=>Mn,memoize:()=>tb,merge:()=>Ot,mergeSharedLibraries:()=>Kl,mergeSharedLibraryDesignSystems:()=>ql,mergeStateData:()=>Go,nextElement:()=>Ml,normalizeIgnoreList:()=>zl,normalizeLibraryKey:()=>ls,objectToString:()=>Kc,objectizeStringProperty:()=>cl,overwrite:()=>Xc,overwriteDeep:()=>ee,overwriteShallow:()=>Kr,overwriteState:()=>Pb,parse:()=>jp,parseDeep:()=>El,parseQuery:()=>yT,parseRoutePattern:()=>om,payloadHasComputedIconName:()=>oh,pickStartLang:()=>Wp,pickupElementFromProps:()=>np,pickupPropsFromElement:()=>ep,planLibraryIconPrune:()=>sw,polyglotAddressLang:()=>Hp,polyglotFallbackLang:()=>fo,polyglotLangStorageKey:()=>Hi,polyglotLanguages:()=>yn,polyglotSeededKeys:()=>Ko,polyglotStartLang:()=>rs,polyglotStartRule:()=>zp,polyglotStartupScript:()=>TS,previousElement:()=>Bl,promoteActiveRootState:()=>Ui,propExists:()=>kb,propertizeElement:()=>op,propertizeUpdate:()=>xb,readBrenderStamp:()=>Jr,readJsonDataBlock:()=>$n,reinit:()=>ZT,remove:()=>yC,removeChars:()=>nw,removeCookie:()=>cb,removeDuplicateProps:()=>pl,removeDuplicatesInArray:()=>Ai,removeFromArray:()=>s_,removeFromObject:()=>j_,removeNestedKeyByPath:()=>V_,removeValueFromArray:()=>$c,removeValueFromArrayAll:()=>l_,reorderArrayByValues:()=>u_,repairLegacyArrowScopePreamble:()=>zc,replaceLiteralsWithObjectFields:()=>Gt,replaceOctalEscapeSequences:()=>b_,resolveAsset:()=>pe,resolveFileReferences:()=>ps,resolveHandler:()=>Li,resolveRouterElement:()=>zu,resolveSharedLibraries:()=>Yl,returnValueAsText:()=>sp,router:()=>An,runGuards:()=>VP,runPluginHook:()=>Wo,saveScrollPosition:()=>Fu,scopeElementParam:()=>$d,scopeReceiverExpression:()=>R_,scratchSystem:()=>_a,scratchUtils:()=>ir,self:()=>e_,set:()=>Ps,setActiveRootState:()=>Cl,setCookie:()=>ib,setHashedExtend:()=>Gd,setInObjectByPath:()=>H_,setLocalStorage:()=>fb,setNodeStyles:()=>$p,setProps:()=>gS,setPropsPrototype:()=>dl,sharedLibrary:()=>jS,sharedLibraryFiles:()=>fs,splitPackageSpecifier:()=>jl,spotByPath:()=>Al,srcsetFor:()=>ta,stringIncludesAny:()=>Uc,stringToObject:()=>M_,stripVersionRangePrefix:()=>Ul,swapItemsInArray:()=>i_,syncProps:()=>hl,themeColorKey:()=>ds,toCamelCase:()=>uo,toDashCase:()=>of,toDescriptionCase:()=>rw,toPriorityOrder:()=>He,toTitleCase:()=>ow,toggleFullscreen:()=>ES,triggerEventOn:()=>lo,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>y_,unstackArrayOfObjects:()=>Nc,update:()=>Tb,updateProps:()=>Ab,variables:()=>Nl,verbose:()=>Vi,warn:()=>Pl,warnLibraryAliasCollision:()=>Zi,window:()=>R});var DW={group:"group",imagePair:"image-pair","image-pair":"image-pair",old:"old",new:"new"},LW=/^(?:\*|\.?-?[_a-zA-Z][\w-]*)$/,IW=/^-?[_a-zA-Z][\w-]*$/,PW=new Set(["root","*"]),MW="@media (prefers-reduced-motion: no-preference)",BW="@media (prefers-reduced-motion: reduce)",NW=(t,e)=>{let n=E(t)?{animation:t}:k(t)?t:null;if(!n)return null;let o;try{o=Xt(n,e)}catch{return null}let r={};for(let s in o){let i=o[s];(E(i)||fe(i))&&(r[s]=i)}return Object.keys(r).length?r:null},cB=(t,e,n={})=>{if(!k(t))return null;if(globalThis.__SMBLS_BUILD_DROP_F_viewTransition__)return Object.keys(t).length&&Vt("viewTransition")||null;let o=!n.scope||n.scope===":root",r=l=>{n.verbose!==!1&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls] designSystem.viewTransition: "+l))},s={key:"viewTransition",state:{},context:{designSystem:e}},i={},a={},c=(l,f,u)=>{for(let d in f){if(d==="types"&&!u)continue;let p=DW[d];if(!p){r(`${l}.${d} is not a view-transition part (group, imagePair, old, new)`);continue}let g=`${u}::view-transition-${p}(${l})`,h=NW(f[d],s);h&&(i[g]=h,a[g]={animation:"none"})}};for(let l in t){let f=t[l];if(k(f)){if(!LW.test(l)){r(`"${l}" is not a view-transition name`);continue}if(!o&&PW.has(l)){r(`"${l}" belongs to the document's primary app; a scoped app (${n.scope}) emits its own names only`);continue}if(c(l,f,""),k(f.types))for(let u in f.types){if(!IW.test(u)||!k(f.types[u])){r(`${l}.types.${u} is not a view-transition type with parts`);continue}c(l,f.types[u],`:root:active-view-transition-type(${u})`)}}}return Object.keys(i).length?{[MW]:i,[BW]:a}:null};var $W=L(),fB=(t=$W,e)=>{let n=k(e.localFile)?e.localFile:{},o=ut(n.designSystem||{});return mt(t,o,ne)},FW={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Am=(t,e)=>{let n=!e||e===":root",o={};for(let r in t)if(r.startsWith("@media")){let s=n?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;o[r]={[s]:t[r]}}else n?o[r]=t[r]:o[`${e}${r}, ${r} ${e}`]=t[r];return o},YT=(t,e)=>{t.CSS_MEDIA_VARS&&At(Am(t.CSS_MEDIA_VARS,e));let n=Ls(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&At(n)},uB=(t,e)=>{let n=cB(t.viewTransition,t,{scope:e,verbose:t.verbose});n&&At(n)},vm=t=>{if(typeof window<"u"&&window.location)try{let e=new URLSearchParams(window.location.search).get("globalTheme");if(e)return e}catch{}return t},lB=(t,e)=>{t.useVariable&&(At({[e]:t.CSS_VARS}),YT(t,e)),t.useReset&&At(t.reset);let n=t.animation;if(n){let o={};for(let r in n)o[`@keyframes ${r}`]=n[r];At(o)}uB(t,e)},dB=(t,e,n,o,r)=>{t.useFontImport&&At(pf(t.font,t.files));let s=null;return r?ru(r):n.recordCss?s=ou(()=>lB(t,e)):lB(t,e),(o.svg||t.useSvgSprite)&&Hf(t.svg,{document:n.document}),(o.icons||t.useIconSprite)&&Ds(t.icons,{document:n.document}),s},to=(t,e=FW)=>{let n=fB(t||{},e),o=e.scopeSelector||":root",r=vm(e.globalTheme),s=Ps({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:r,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...n},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=o);let i={svg:!!t.svg,icons:!!t.icons},a=dB(s,o,e,i);return a&&typeof e.recordCss=="function"&&e.recordCss({rules:a,sprites:i}),s},XT=(t,e,n,o)=>{let r=n.scopeSelector||":root";if(Gh(t.config,e),n.files!==void 0&&(e.files=n.files),n.assets!==void 0&&(e.assets=n.assets),n.themeRoot!==void 0&&(e.themeRoot=n.themeRoot),or(e),rr(e),Zf(e),e.__svgCache={},o){ht(e);try{Xf("font",o)}finally{dt()}}ht(e);try{dB(e,r,n,t.sprites||{},t.rules)}finally{dt()}return e},Cm={},ZT=(t,e=Cm)=>{let n=fB(t||{},e),o=e.scopeSelector||":root",r=Ps({verbose:!1,...n});return e.preventInject||(At({[o]:r.CSS_VARS}),YT(r,o),At(r.reset),uB(r,o)),r},QT=(t,e=Cm)=>{At(t)},jW=(t,e=Cm)=>{let n=e.scopeSelector||":root";At({[n]:t.CSS_VARS}),YT(t,n)};var UW=(t,e=Cm)=>{};var pB=10,VW=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return!!e&&typeof e.requestAnimationFrame=="function"},HW=t=>{try{let e=t.defaultView;return e&&e.frameElement||null}catch{return null}},zW=t=>{let e=t&&t.document||(typeof document<"u"?document:null);if(!e)return()=>!0;let n=!!e.defaultView,o=HW(e);return()=>!(n&&!e.defaultView||o&&!o.isConnected)},hB=Symbol("smbls.bootGone"),gB=t=>{let e,n={live:zW(t),dead:!1,gone:new Promise(o=>{e=o}),lost(){n.dead||(n.dead=!0,e(hB))}};return n},uc=t=>t?t.dead?!1:t.live()?!0:(Iu(t),!1):!0,WW=(t,e)=>e?Promise.race([t,e.gone]):t,Or=async(t,e)=>await WW(t,e)!==hB&&uc(e),JT=t=>{if(!(!t||!t.__ref))try{rn(t)}catch{}},mB=new WeakSet,dc=t=>(mB.add(t),t),Zu=t=>!!t&&typeof t=="object"&&mB.has(t),yB=t=>{let e=t&&typeof t=="object"?t.firstRender:void 0;if(e===!1||!VW(t))return null;if(e===void 0||e===!0)return{budget:pB,progressive:!1};if(e&&typeof e=="object"){let o=e.budget===void 0?pB:Zn(e.budget);return o?{budget:o,progressive:e.progressive===!0}:null}let n=Zn(e);return n?{budget:n,progressive:!1}:null},tE=new WeakMap,eE=(t,e)=>(tE.set(t,e),e),nE=t=>{tE.delete(t)},_B=t=>{let e=t&&tE.get(t);return!e||e.routeTaken?null:(e.routeTaken=!0,e)},GW=Object.freeze({deferAttach:!0}),bB=async(t,e,n,o,r)=>{let s=r.lease||null;if(await Qn(),!uc(s))return null;let i=o.mountYield;i===void 0&&(o.mountYield=r.budget);let a=o.mountWhole;a===void 0&&(o.mountWhole=!r.progressive),r.pageOptions={mountYield:o.mountYield,mountWhole:o.mountWhole};let c;r.commit=new Promise(d=>{c=d}),r.committed=!1;let l=!r.progressive;eE(n,r);let f=Ws(),u=null;s&&(n.__mountLease=s);try{if(u=zt(t,e,n.key,o,l?GW:void 0),!await Or(Io(u),s)||r.routeReady&&!await Or(r.routeReady,s)||!await Or(xe(),s))return Om(u);for(;!Tr();)if(!await Or(xe(),s))return Om(u);return l&&wr(u),r.committed=!0,c(),r.page&&await Io(r.page),await xe(),u}finally{r.committed=!0,c(),f(),o.mountYield=i,o.mountWhole=a,s&&(n.__mountLease=null),nE(n)}},Om=t=>(JT(t),null);var wB=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,KW=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},rE={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},qW=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),o=t;for(let r of n){if(!o||!o[r])return null;o=o[r]}return o},Qu=(t,e)=>(zu||qW)(t,e),YW=["manual","auto","restore"],oE=new WeakMap,SB=(t,e)=>{let n=e.claims[e.claims.length-1],o=n?n.value:e.found;t.scrollRestoration!==o&&(t.scrollRestoration=o)},XW=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!YW.includes(n)){if(t.verbose!==!1){let o=typeof n=="string"?JSON.stringify(n):`a ${typeof n}`;globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls/router] router.scrollRestoration must be 'manual', 'auto' or 'restore', got ${o} \u2014 the browser default stays`)}return}try{let o=t.window||R,r=o&&o.history;if(!r||!("scrollRestoration"in r))return;let s=oE.get(r);s||(s={found:r.scrollRestoration,claims:[]},oE.set(r,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),SB(r,s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{let a=s.claims.indexOf(i);if(a!==-1){s.claims.splice(a,1),s.claims.length||oE.delete(r);try{SB(r,s)}catch{}}})}catch{}}},ZW=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=Fu,o=t.window||R;if(typeof n!="function"||!o||typeof o.addEventListener!="function")return;let r=t.document||o.document,s=()=>n(o),i=()=>{r.visibilityState==="hidden"&&n(o)};o.addEventListener("pagehide",s);let a=!!r&&typeof r.addEventListener=="function";a&&r.addEventListener("visibilitychange",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{o.removeEventListener("pagehide",s),a&&r.removeEventListener("visibilitychange",i)})},xB=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=rE:e.router=Ot(e.router||{},rE);let n=e.router;XW(e,n),ZW(e,n);let o=(i,a)=>{let c=i.context?.window||R,l=KW(n);if(!l){if(!c.location)return;let{pathname:u,search:d,hash:p}=c.location;u=wB(u),l=u+d+p}let f=i;if(n.customRouterElement){let u=Qu(i,n.customRouterElement);u&&(f=u,i.routes&&(f.routes=i.routes))}if(f.routes)return An(l,f,{},{initialRender:!0,pushState:!1,...a})},r=async(i,a)=>{let c=_B(i.context);if(c)return QW(i,c,o);await o(i)},s=!Wt(t.onRenderRouter);return n&&n.initRouter&&!s&&(t.onRenderRouter=(i,a)=>e.__firstNavigation=r(i,a)),JW(e,n),n},QW=(t,e,n)=>{let o;return e.routeReady=new Promise(s=>{o=s}),(async()=>{try{if(await Qn(),!t.__ref||!uc(e.lease))return;let s=n(t,e.progressive?{mountOptions:e.pageOptions}:{mountOptions:e.pageOptions,firstView:e});await xe(),o(),await s}finally{o()}})()},sE=(t,e)=>{if(e.router===!1)return;let n=e.router||rE;if(!n.popState)return;let o=e.utils&&e.utils.router?e.utils.router:An,r=e.window||R,s=async i=>{let{pathname:a,search:c,hash:l}=r.location;a=wB(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=Qu(t,n.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};r.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>r.removeEventListener("popstate",s))},JW=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return mt(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};var lE=/*@__PURE__*/$({},{components:()=>aE,functions:()=>Bo});var cE=/*@__PURE__*/$({},{AlertTemplate:()=>jm,ConfirmTemplate:()=>Fm,CustomTemplate:()=>Vm,ModalLayer:()=>$m,ModalRoot:()=>Nm,PromptTemplate:()=>Um,windowsComponents:()=>aE});var iE=/*@__PURE__*/$({},{alertDialog:()=>Mm,closeAllModals:()=>Im,closeModal:()=>Dm,confirmDialog:()=>Pm,getLayer:()=>Rm,openModal:()=>Lm,promptDialog:()=>Bm,windowsFunctions:()=>Bo});function at(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function pc(t){let e=t;for(;e;){if(e.key==="ModalRoot")return e;if(e.ModalRoot&&e.ModalRoot.__ref)return e.ModalRoot;e=e.parent}let n=t?.getRoot?.();return n?.ModalRoot?n.ModalRoot:typeof globalThis<"u"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function Rm(){return at(this)}var t9=(t,e)=>{let n=t&&t["ModalLayer_"+e],o=n?.node||n?.__ref?.node;!o||typeof o.style?.setProperty!="function"||(o.style.setProperty("display","none","important"),o.style.setProperty("opacity","0","important"),o.style.setProperty("visibility","hidden","important"),o.style.setProperty("pointer-events","none","important"))},kB=(t,e)=>{let n=t&&t["ModalLayer_"+e],o=n?.node||n?.__ref?.node;!o||typeof o.style?.removeProperty!="function"||(o.style.removeProperty("display"),o.style.removeProperty("opacity"),o.style.removeProperty("visibility"),o.style.removeProperty("pointer-events"))};function Dm(t){let e=pc(this);if(!e)return;let n=e.state?.stack||[];if(!n.length)return;let o,r,s;if(t){if(s=[],o=n.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),o.length===n.length)return;r=n.filter(i=>i.id===t)}else o=n.slice(0,-1),r=n.slice(-1),s=[n.length-1];e.state.update({stack:o});for(let i of s)t9(e,i);for(let i of r)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function Lm(t={}){let e=pc(this);if(!e)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[windows] openModal: ModalRoot is not mounted on the app root. Add `ModalRoot: {}` to your shell tree and import windowsComponents into context."),null;e.__modalIdCounter=(e.__modalIdCounter||0)+1;let n=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,o={id:n,template:t.template||"custom",title:t.title,message:t.message,icon:t.icon,confirmText:t.confirmText,cancelText:t.cancelText,okText:t.okText,confirmTheme:t.confirmTheme,placeholder:t.placeholder,defaultValue:t.defaultValue,dismissOnBackdrop:t.dismissOnBackdrop,content:t.content,width:t.width,maxWidth:t.maxWidth,maxHeight:t.maxHeight,onConfirm:t.onConfirm,onCancel:t.onCancel,onOk:t.onOk,onClose:t.onClose},r=e.state?.stack||[];if(r.length>=5)return console.warn("[windows] openModal: stack already at the 5-layer maximum, dropping the new layer. Close some modals first."),null;let s=r.length;return kB(e,s),e.state.update({stack:[...r,o]}),n}function Im(){let t=pc(this);if(!t)return;let e=t.state?.stack;if(!e?.length)return;let n=e.slice();t.state.update({stack:[]});for(let o=n.length-1;o>=0;o--){let r=n[o];if(typeof r?.onClose=="function")try{r.onClose()}catch(s){console.warn("[windows] onClose threw:",s)}}}function Pm(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function Mm(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function Bm(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var Bo={openModal:Lm,closeModal:Dm,closeAllModals:Im,confirmDialog:Pm,alertDialog:Mm,promptDialog:Bm,getLayer:Rm};var e9=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),TB=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(e9),n=[];for(let o=0;o<e.length;o++){let r=e[o];(r.offsetParent!==null||r===document.activeElement)&&n.push(r)}return n},EB=t=>{let e=t.state?.stack||[];if(!e.length)return null;let n=t["ModalLayer_"+(e.length-1)];return n?.node||n?.__ref?.node||null},Nm={tag:"div",position:"fixed",inset:"0",zIndex:"2000",pointerEvents:"none",state:{stack:[]},subscribeTo:["stack"],ModalLayer_0:{__slotIndex:0,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[0]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_1:{__slotIndex:1,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[1]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_2:{__slotIndex:2,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[2]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_3:{__slotIndex:3,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[3]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_4:{__slotIndex:4,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[4]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},onInit:(t,e)=>{if(typeof window>"u")return;globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=t;let n=t.context;if(n){n.functions||(n.functions={});for(let c in Bo)c in n.functions||(n.functions[c]=Bo[c])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let o=c=>{if(typeof c?.onCancel=="function")try{c.onCancel()}catch(l){console.warn("[windows] onCancel threw:",l)}if(typeof c?.onClose=="function")try{c.onClose()}catch(l){console.warn("[windows] onClose threw:",l)}},r=()=>{let c=t.state?.stack||[];if(!c.length)return;let l=c.length-1,f=c[l];t.state.update({stack:c.slice(0,-1)});let u=t["ModalLayer_"+l],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),o(f)},s=c=>{let l=t.state?.stack;if(l?.length){if(c.key==="Tab"){let f=EB(t);if(!f)return;let u=TB(f);if(!u.length){c.preventDefault();let m=f.querySelector?.('[role="dialog"]')||f;try{m.focus?.()}catch{}return}let d=u[0],p=u[u.length-1],g=document.activeElement;if(!f.contains(g)){c.preventDefault();try{d.focus()}catch{}return}if(c.shiftKey&&g===d){c.preventDefault();try{p.focus()}catch{}}else if(!c.shiftKey&&g===p){c.preventDefault();try{d.focus()}catch{}}return}c.key!=="Escape"||c.defaultPrevented||l[l.length-1]?.dismissOnBackdrop!==!1&&(c.preventDefault(),r())}};window.addEventListener("keydown",s),t.__escHandler=s;let i=c=>{let l=t.state?.stack||[];if(c<0||c>=l.length)return;let f=l[c];t.state.update({stack:l.filter((p,g)=>g!==c)});let u=t["ModalLayer_"+c],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),o(f)},a=c=>{let l=t.state?.stack||[];if(!l.length)return;let f=c.target?.closest?.('[data-key="Close"]');if(f){for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u],p=d?.node||d?.__ref?.node;if(p&&p.contains(f)){c.preventDefault(),c.stopPropagation(),i(u);return}}return}for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u];if((d?.node||d?.__ref?.node)===c.target){if(l[u]?.dismissOnBackdrop===!1)return;c.preventDefault(),c.stopPropagation(),i(u);return}}};document.addEventListener("click",a,!0),t.__clickDelegate=a},onUpdate:t=>{if(typeof window>"u")return;let n=(t.state&&t.state.stack||[]).length,o=t.__prevStackLen||0;if(n!==o)if(t.__prevStackLen=n,t.__modalOpeners=t.__modalOpeners||[],n>o)t.__modalOpeners[n]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[n]||null,typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{let r=EB(t);if(!r)return;let i=TB(r)[0]||r.querySelector&&r.querySelector('[role="dialog"]')||r;try{i.focus&&i.focus()}catch{}});else{let r=null;for(let s=o;s>n;s--)t.__modalOpeners[s]&&(r=r||t.__modalOpeners[s]),t.__modalOpeners[s]=null;if(r&&typeof r.focus=="function"&&r.isConnected!==!1)try{r.focus()}catch{}}},onDestroy:t=>{typeof window>"u"||(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__===t&&(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=null),t.__escHandler&&(window.removeEventListener("keydown",t.__escHandler),delete t.__escHandler),t.__clickDelegate&&(document.removeEventListener("click",t.__clickDelegate,!0),delete t.__clickDelegate))}};var $m={tag:"div",position:"fixed",inset:"0",alignItems:"center",justifyContent:"center",padding:"A",theme:"backdrop",transition:"opacity C defaultBezier",zIndex:(t,e)=>`${2e3+(t.__slotIndex||0)*10}`,display:(t,e)=>t.layer?"flex":"none",opacity:(t,e)=>t.layer?"1":"0",visibility:(t,e)=>t.layer?"visible":"hidden",pointerEvents:(t,e)=>t.layer?"auto":"none",ModalWindow:{attr:{role:"dialog","aria-modal":"true",tabindex:"-1","aria-labelledby":t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}},width:t=>at(t)?.width||"H",maxWidth:t=>at(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>at(t)?.maxHeight||"100%",animation:"modalIn",animationDuration:"D",animationTimingFunction:"springBezier",onClick:t=>t.stopPropagation(),onMousedown:t=>t.stopPropagation(),ModalHeader:{display:"none"},overflow:"visible",ConfirmTemplate:{hide:t=>at(t)?.template!=="confirm"},AlertTemplate:{hide:t=>at(t)?.template!=="alert"},PromptTemplate:{hide:t=>at(t)?.template!=="prompt"},CustomTemplate:{hide:t=>at(t)?.template!=="custom"}}};var hc=(t,e,n)=>at(t)?.[e]||n,n9=t=>{let e=at(t)?.icon;return e===null||e===!1},Fm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>hc(t,"title","Are you sure?"),attr:{id:t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>n9(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>hc(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>hc(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>hc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let o=at(e);if(o?.onCancel)try{o.onCancel()}catch(r){console.warn("[windows] confirm.onCancel threw:",r)}e.call("closeModal",o?.id)}},ConfirmBtn:{extends:"Button",theme:t=>hc(t,"confirmTheme","primary"),text:t=>hc(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let o=at(e);if(o?.onConfirm)try{o.onConfirm()}catch(r){console.warn("[windows] confirm.onConfirm threw:",r)}e.call("closeModal",o?.id)}}}};var Ju=(t,e,n)=>at(t)?.[e]||n,jm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>Ju(t,"title","Notice"),attr:{id:t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>Ju(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Ju(t,"message",""),P:{tag:"p",margin:"0",text:t=>Ju(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>Ju(t,"okText","OK"),onClick:(t,e,n)=>{let o=at(e);if(o?.onOk)try{o.onOk()}catch(r){console.warn("[windows] alert.onOk threw:",r)}e.call("closeModal",o?.id)}}}};var gc=(t,e,n)=>at(t)?.[e]||n,Um={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=at(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let o=t.InputRow&&t.InputRow.node;o&&(o.value=t.scope.value)},onUpdate:(t,e)=>{let n=at(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let o=t.InputRow&&t.InputRow.node;o&&(o.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>gc(t,"title","Enter a value"),attr:{id:t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!gc(t,"message",""),P:{tag:"p",margin:"0",text:t=>gc(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>gc(t,"placeholder",""),value:(t,e)=>t.parent.scope?.value||"",onInput:(t,e,n)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,n)=>{if(t.key!=="Enter")return;t.preventDefault();let o=at(e),r=e.parent.scope?.value||"";if(o?.onConfirm)try{o.onConfirm(r)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",o?.id)}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>gc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let o=at(e);if(o?.onCancel)try{o.onCancel()}catch(r){console.warn("[windows] prompt.onCancel threw:",r)}e.call("closeModal",o?.id)}},ConfirmBtn:{extends:"Button",theme:"primary",text:t=>gc(t,"confirmText","OK"),onClick:(t,e,n)=>{let o=at(e),r=e.parent.parent.scope?.value||"";if(o?.onConfirm)try{o.onConfirm(r)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",o?.id)}}}};var Vm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>at(t)?.title||"",hide:t=>!at(t)?.title,position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0",attr:{id:t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}}},Slot:{tag:"div",flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",onInit:t=>{let e=W(()=>{let n=at(t),o=n?.content||null,r=n?.id||null;if(!o){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==r){t.__lastLayerId=r;try{t.set(o);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in Bo)i in s.functions||(s.functions[i]=Bo[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var AB={extends:"Button",theme:"tertiary"};var aE={ModalRoot:Nm,ModalLayer:$m,ConfirmTemplate:Fm,AlertTemplate:jm,PromptTemplate:Um,CustomTemplate:Vm,"smbls.CancelButton":AB};var _E=/*@__PURE__*/$({},{components:()=>hE,functions:()=>mE});var gE=/*@__PURE__*/$({},{Dropdown:()=>qm,DropdownList:()=>Ym,DropdownParent:()=>Xm,DropdownParentFocus:()=>Zm,DropdownRoot:()=>Gm,DropdownSiblingFocus:()=>Qm,DropdownTrigger:()=>Km,dropdownComponents:()=>hE});var vB=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),o9=(t,e,n,o)=>{let r=vB(t,n,o),s=i=>r[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":r.bottom>=r.top?"bottom":"top"},r9=(t,e,n,o,r)=>{let s=vB(e,o,r),i=t==="top"||t==="bottom"?n.height+8:n.width+8;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i||a&&s[a]>s[t]?a:t};var fE=(t,e,n)=>{let o;return t==="bottom"?o=n-e.bottom-16:t==="top"?o=e.top-16:o=n-16,Math.max(40,Math.floor(o))},Hm=(t,e,n)=>Math.max(e,Math.min(n,t)),No=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:fE("center",null,g)}}let o=typeof window<"u"?window.innerWidth:1024,r=typeof window<"u"?window.innerHeight:768,s={width:Math.max(120,e?.width||0),height:Math.max(40,e?.height||0)};if(n==="center"){let g=fE("center",t,r),h=Math.min(s.height,g),m=Hm((o-s.width)/2,8,Math.max(8,o-s.width-8)),y=Hm((r-h)/2,8,Math.max(8,r-h-8));return{left:m,top:y,side:"center",align:"center",maxHeight:g}}let i,a;if(n==="auto")i=o9(t,s,o,r),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=r9(i,t,s,o,r)}let c=fE(i,t,r),l=Math.min(s.height,c),f,u;i==="bottom"||i==="top"?(a==="start"?f=t.left:a==="end"?f=t.right-s.width:f=t.left+(t.width-s.width)/2,u=i==="bottom"?t.bottom+8:t.top-l-8):(a==="start"?u=t.top:a==="end"?u=t.bottom-l:u=t.top+(t.height-l)/2,f=i==="right"?t.right+8:t.left-s.width-8);let d=Math.max(8,o-s.width-8),p=Math.max(8,r-l-8);return f=Hm(f,8,d),u=Hm(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},mc=t=>{switch(t){case"bottom":return"translateY(-6px)";case"top":return"translateY(6px)";case"left":return"translateX(6px)";case"right":return"translateX(-6px)";case"center":return"translateY(0px)";default:return"translateY(-6px)"}};var Rr={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},s9=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},uE=t=>t?.getRoot?.()?.DropdownRoot||null,i9=0,a9=()=>`dropdown_${++i9}_${Date.now().toString(36)}`;function zm(t={}){let e=uE(this);if(!e)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[dropdown] openDropdown: DropdownRoot is not mounted on the app root. Add `DropdownRoot: {}` to your shell tree and import dropdown components into context."),null;let n=t.anchorEl?.node||t.anchorEl,o=t.anchorRect||s9(n);if(!o)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let r=t.id||a9(),i=t.restoreEl?.node||t.restoreEl||n||(typeof document<"u"?document.activeElement:null),a={id:r,content:t.content||null,anchor:o,placement:t.placement||Rr.placement,trigger:t.trigger||Rr.trigger,offset:t.offset??Rr.offset,minWidth:t.minWidth||Rr.minWidth,maxWidth:t.maxWidth||Rr.maxWidth,maxHeight:t.maxHeight||Rr.maxHeight,theme:t.theme||null,shadow:t.shadow||null,background:t.background||null,round:t.round||null,role:t.role||null,ariaLabel:t.ariaLabel||null,ariaLabelledby:t.ariaLabelledby||null,focusIn:!!t.focusIn,onOpen:t.onOpen,onClose:t.onClose,restoreEl:i},c=e.state?.layer;if(c?.onClose)try{c.onClose(c)}catch(l){console.warn("[dropdown] prev onClose threw:",l)}if(e.state.update({layer:a}),typeof a.onOpen=="function")try{a.onOpen(a)}catch(l){console.warn("[dropdown] onOpen threw:",l)}return r}function Wm(t){let e=uE(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function si(t){let e=uE(this);if(!e)return;let n=e.state?.layer;if(!n)return;let o=typeof t=="string"?t:t?.id;if(o&&n.id&&o!==n.id)return;let r=n.onClose,s=n.restoreEl,i=typeof document<"u"?document:null,a=i?i.activeElement:null,c=e.node?.querySelector?.('[data-smbls-dropdown="panel"]'),l=!a||a===i?.body,f=!!(c&&a&&c.contains(a)),u=l||f;if(e.state.update({layer:null}),u&&s&&typeof s.focus=="function")try{s.focus()}catch(d){console.warn("[dropdown] focus restore threw:",d)}if(typeof r=="function")try{r(n)}catch(d){console.warn("[dropdown] onClose threw:",d)}}var dE=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},CB=t=>{let e=t.getBoundingClientRect(),n=t.offsetWidth||e.width,o=Math.max(t.offsetHeight||e.height,t.scrollHeight||0);return{width:n,height:o}},c9=`
88
+ )`};var MH={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},BH={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},NH={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},ML={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...MH,...BH,...NH,backdrop:{"@light":{background:"scrim",backdropFilter:"blur(8px)"},"@dark":{background:"scrim",backdropFilter:"blur(8px)"}},backdropSoft:{"@light":{background:"scrimSoft",backdropFilter:"blur(4px)"},"@dark":{background:"scrimSoft",backdropFilter:"blur(4px)"}},none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var BL={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var NL={ratio:1.618,subSequence:!0};var $L={SourceSans:[{url:""}]},FL={system:{isDefault:!0,isSystemFallback:!0,value:["system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"','"Liberation Sans"'],type:"sans-serif"}};var jL=new Set,$H=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",R0=(t,e,n)=>{let o=t+":"+e;if(jL.has(o)||(jL.add(o),typeof console>"u"||!console.error))return;let r=n&&n.__ref&&n.__ref.path,s=r&&r.length?` (at <${r.join(".")}>)`:"",i=$H(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${s} is not in this build: symbols.json ${i} left it out because the project source never names it. Add "${e}" to ${i}.keep.`)},D=t=>({onInit:{always:!0,handler:e=>R0("component",t,e)}}),UL=new Set,VL=t=>{for(let e of t)e&&UL.add(e)},HL=t=>UL.has(t);var D0={...globalThis.__SMBLS_BUILD_DROP_I_symbols__?{}:{symbols:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_logo__?{}:{logo:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowDownCircle__?{}:{arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowDownLeft__?{}:{arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowDownRight__?{}:{arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowDown__?{}:{arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowLeftCircle__?{}:{arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowLeft__?{}:{arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowRight__?{}:{arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowRightCircle__?{}:{arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowUpCircle__?{}:{arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowUpLeft__?{}:{arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowUpRight__?{}:{arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_arrowUp__?{}:{arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_checkCircle__?{}:{checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_check__?{}:{check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_chevronDown__?{}:{chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_chevronLeft__?{}:{chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_chevronRight__?{}:{chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_chevronUp__?{}:{chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_copy__?{}:{copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_eyeOff__?{}:{eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_eye__?{}:{eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_info__?{}:{info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_lock__?{}:{lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_minus__?{}:{minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_sun__?{}:{sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_moon__?{}:{moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_moreHorizontal__?{}:{moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_moreVertical__?{}:{moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_send__?{}:{send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_smile__?{}:{smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_search__?{}:{search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_upload__?{}:{upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_video__?{}:{video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_x__?{}:{x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_star__?{}:{star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>'},...globalThis.__SMBLS_BUILD_DROP_I_plus__?{}:{plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'}};globalThis.__SMBLS_BUILD_DROP_ICONS__&&VL(["symbols","logo","arrowDownCircle","arrowDownLeft","arrowDownRight","arrowDown","arrowLeftCircle","arrowLeft","arrowRight","arrowRightCircle","arrowUpCircle","arrowUpLeft","arrowUpRight","arrowUp","checkCircle","check","chevronDown","chevronLeft","chevronRight","chevronUp","copy","eyeOff","eye","info","lock","minus","sun","moon","moreHorizontal","moreVertical","send","smile","search","upload","video","x","star","plus"].filter(t=>!Object.prototype.hasOwnProperty.call(D0,t)));var zL={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920.02px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680.02px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440.02px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366.02px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280.02px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024.02px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768.02px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560.02px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480.02px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375.02px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var WL={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var GL={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var Zs={version:"0.0.1",color:IL,gradient:PL,theme:ML,typography:BL,spacing:NL,font:$L,fontFamily:FL,timing:WL,icons:D0,media:zL,sizes:GL,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}},modalIn:{from:{transform:"scale(0.95)",opacity:0},to:{transform:"",opacity:1}},modalOut:{to:{transform:"scale(0.95)",opacity:0}}},devices:{},class:{},svg:{},grid:{},shape:{}};var dc=/*@__PURE__*/$({},{A:()=>oM,AssetPicture:()=>fI,Audio:()=>pI,Avatar:()=>CM,B:()=>LI,Block:()=>KL,Box:()=>om,Br:()=>BI,Bridge:()=>zI,Button:()=>iM,ButtonSet:()=>fM,COMPONENTS:()=>ii,Caption:()=>kI,Checkbox:()=>KI,CheckboxHgroup:()=>qI,Circle:()=>aI,CircleButton:()=>cM,Clickable:()=>rI,Data:()=>PI,Dialog:()=>mM,DialogFooter:()=>_M,DialogHeader:()=>yM,Dropdown:()=>eB,DropdownDisclosure:()=>rB,DropdownList:()=>nB,DropdownParent:()=>oB,DropdownParentFocus:()=>sB,DropdownSiblingFocus:()=>iB,FileIcon:()=>cP,Flex:()=>YL,Focusable:()=>sI,FocusableComponent:()=>iI,Footnote:()=>DI,Form:()=>eI,Grid:()=>ZL,Gutter:()=>JL,H1:()=>mI,H2:()=>yI,H3:()=>_I,H4:()=>bI,H5:()=>SI,H6:()=>wI,Headline:()=>OI,Hgroup:()=>UI,HgroupButton:()=>HI,HgroupRows:()=>VI,Hoverable:()=>oI,Hr:()=>MI,I:()=>II,Icon:()=>iP,IconButton:()=>uM,IconText:()=>aP,Iframe:()=>nI,Img:()=>tI,Inline:()=>qL,InlineFlex:()=>XL,InlineGrid:()=>QL,Input:()=>WI,Italic:()=>vI,KangorooButton:()=>lM,Li:()=>NI,Link:()=>CT,Notification:()=>aB,NumberInput:()=>GI,Ol:()=>FI,P:()=>xI,Picture:()=>lI,Radio:()=>YI,RadioHgroup:()=>XI,Range:()=>OM,RouteLink:()=>rM,RouterLink:()=>OT,SHAPES:()=>em,Select:()=>sM,Shape:()=>$0,Span:()=>gI,SquareButton:()=>aM,Strong:()=>TI,Subhead:()=>RI,Svg:()=>uI,Text:()=>hI,Textarea:()=>JI,TextareaWithButton:()=>tP,Theme:()=>cI,Title:()=>CI,Toggle:()=>ZI,ToggleHgroup:()=>QI,Tooltip:()=>EM,TooltipHidden:()=>AM,TooltipLayer:()=>FT,TooltipParent:()=>vM,U:()=>EI,Ul:()=>$I,Underline:()=>AI,Video:()=>dI,depth:()=>nm,focusableRingEnabled:()=>Fu,focusableRingToken:()=>B0,focusableRingValue:()=>Qs,getSystemGlobalTheme:()=>ju});var L0=/*@__PURE__*/$({},{Block:()=>KL,Flex:()=>YL,Grid:()=>ZL,Gutter:()=>JL,Inline:()=>qL,InlineFlex:()=>XL,InlineGrid:()=>QL});var KL=globalThis.__SMBLS_BUILD_DROP_C_Block__?D("Block"):{display:"block"},qL=globalThis.__SMBLS_BUILD_DROP_C_Inline__?D("Inline"):{display:"inline"},YL=globalThis.__SMBLS_BUILD_DROP_C_Flex__?D("Flex"):{display:"flex"},XL=globalThis.__SMBLS_BUILD_DROP_C_InlineFlex__?D("InlineFlex"):{display:"inline-flex"},ZL=globalThis.__SMBLS_BUILD_DROP_C_Grid__?D("Grid"):{display:"grid"},QL=globalThis.__SMBLS_BUILD_DROP_C_InlineGrid__?D("InlineGrid"):{display:"inline-grid"},JL=globalThis.__SMBLS_BUILD_DROP_C_Gutter__?D("Gutter"):{boxSize:"C1"};var I0=/*@__PURE__*/$({},{Img:()=>tI});var tI={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=ge(t);return e&&e.src||t.src},srcset:t=>{let e=ge(t);return(e?ff(e):"")||t.srcset||t.srcSet}}};var P0=/*@__PURE__*/$({},{Form:()=>eI});var eI=globalThis.__SMBLS_BUILD_DROP_C_Form__?D("Form"):{tag:"form"};var M0=/*@__PURE__*/$({},{Iframe:()=>nI});var nI=globalThis.__SMBLS_BUILD_DROP_C_Iframe__?D("Iframe"):{tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var N0=/*@__PURE__*/$({},{Clickable:()=>rI,Focusable:()=>sI,FocusableComponent:()=>iI,Hoverable:()=>oI,focusableRingEnabled:()=>Fu,focusableRingToken:()=>B0,focusableRingValue:()=>Qs});var FH={appearance:"none",fontFamily:"inherit"},oI=globalThis.__SMBLS_BUILD_DROP_C_Hoverable__?D("Hoverable"):{transition:"opacity C defaultBezier, transform C defaultBezier",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},rI=globalThis.__SMBLS_BUILD_DROP_C_Clickable__?D("Clickable"):{extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function Fu(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function B0(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let o=n.outline||void 0,r=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return o||r!==void 0?{outline:o,outlineOffset:r}:null}function Qs(t,e,n){let o=B0(t);return o&&o[e]!==void 0?o[e]:n}var sI=globalThis.__SMBLS_BUILD_DROP_C_Focusable__?D("Focusable"):{border:"none",outline:t=>Fu(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>Fu(t)?Qs(t,"outline","solid X currentColor"):"none",outlineOffset:t=>Fu(t)?Qs(t,"outlineOffset"):void 0}},iI=globalThis.__SMBLS_BUILD_DROP_C_FocusableComponent__?D("FocusableComponent"):{extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",cursor:"pointer",":disabled":{cursor:"not-allowed"},style:FH};var U0=/*@__PURE__*/$({},{Picture:()=>lI});var j0=/*@__PURE__*/$({},{Theme:()=>cI,getSystemGlobalTheme:()=>ju});var F0=/*@__PURE__*/$({},{Circle:()=>aI,SHAPES:()=>em,Shape:()=>$0,default:()=>jH,depth:()=>nm});var un=L(),nm={4:{boxShadow:`rgba(0,0,0,.10) 0 2${un.unit.default} 4${un.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${un.unit.default} 6${un.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${un.unit.default} 10${un.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${un.unit.default} 16${un.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${un.unit.default} 26${un.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${un.unit.default} 42${un.unit.default}`}},sc=t=>ft(t.shapeDirectionColor)||ft(t.borderColor)||ft(t.backgroundColor)||ft(t.background),tm=t=>{let e=pu.transition(t.transition,t);return e&&e.transition},em={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:sc(t),transition:tm(t),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:t=>({position:"relative","&:before":{content:'""',display:"block",background:sc(t),transition:tm(t),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:sc(t),transition:tm(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:tm(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${sc(t)} 25%, transparent 25%), linear-gradient(315deg, ${sc(t)} 25%, transparent 25%)`},"&:after":{background:sc(t),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},$0={deps:{exec:bt,getSpacingBasedOnRatio:Me,getMediaColor:Vt},classlist:{shape:t=>t.deps.exec(em[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=em[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},aI=globalThis.__SMBLS_BUILD_DROP_C_Circle__?D("Circle"):{round:"100%"},jH=$0;var ju=({context:t,state:e})=>{let n=e&&e.root,o=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},cI=globalThis.__SMBLS_BUILD_DROP_C_Theme__?D("Theme"):{deps:{depth:nm},classlist:{depth:t=>!Gt(t.depth)&&t.deps.depth[t.depth]}};var lI=globalThis.__SMBLS_BUILD_DROP_C_Picture__?D("Picture"):{deps:{getSystemGlobalTheme:ju},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:ju},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:o}=t,{media:r}=n.designSystem,s=o.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":r[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var V0=/*@__PURE__*/$({},{AssetPicture:()=>fI});var fI=globalThis.__SMBLS_BUILD_DROP_C_AssetPicture__?D("AssetPicture"):{tag:"picture",children:t=>{let e=ge(t);if(e)return uf(e,t.alt)}};var H0=/*@__PURE__*/$({},{Svg:()=>uI});var uI={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:n,utils:o}=e,r=n&&n.svg,s=t.spriteId||n&&n.useSvgSprite,i=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof i=="string"){let d=i.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let m=o&&o.scratchSystem&&o.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof m=="function"?m({[p]:i},{document:g}):o&&typeof o.init=="function"&&o.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}if(!s&&i)return i;let c=t.spriteId;if(c)return a(c);if(r&&r[i])return a(i);let l=Symbol.for(i),f=r[l];if(f&&r[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=r[l]=`svg-${(u>>>0).toString(36)}`,o.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var z0=/*@__PURE__*/$({},{Video:()=>dI});var dI=globalThis.__SMBLS_BUILD_DROP_C_Video__?D("Video"):{tag:"video",controls:!0,attr:{src:t=>{let e=ge(t);return e&&e.src||t.src}},children:t=>{let e=ge(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var W0=/*@__PURE__*/$({},{Audio:()=>pI});var pI=globalThis.__SMBLS_BUILD_DROP_C_Audio__?D("Audio"):{tag:"audio",controls:!0,attr:{src:t=>{let e=ge(t);return e&&e.src||t.src}},children:t=>{let e=ge(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var G0=/*@__PURE__*/$({},{B:()=>LI,Caption:()=>kI,Data:()=>PI,Footnote:()=>DI,H1:()=>mI,H2:()=>yI,H3:()=>_I,H4:()=>bI,H5:()=>SI,H6:()=>wI,Headline:()=>OI,I:()=>II,Italic:()=>vI,P:()=>xI,Span:()=>gI,Strong:()=>TI,Subhead:()=>RI,Text:()=>hI,Title:()=>CI,U:()=>EI,Underline:()=>AI});var hI=globalThis.__SMBLS_BUILD_DROP_C_Text__?D("Text"):{},gI=globalThis.__SMBLS_BUILD_DROP_C_Span__?D("Span"):{tag:"span"},mI=globalThis.__SMBLS_BUILD_DROP_C_H1__?D("H1"):{tag:"h1"},yI=globalThis.__SMBLS_BUILD_DROP_C_H2__?D("H2"):{tag:"h2"},_I=globalThis.__SMBLS_BUILD_DROP_C_H3__?D("H3"):{tag:"h3"},bI=globalThis.__SMBLS_BUILD_DROP_C_H4__?D("H4"):{tag:"h4"},SI=globalThis.__SMBLS_BUILD_DROP_C_H5__?D("H5"):{tag:"h5"},wI=globalThis.__SMBLS_BUILD_DROP_C_H6__?D("H6"):{tag:"h6"},xI=globalThis.__SMBLS_BUILD_DROP_C_P__?D("P"):{tag:"p"},kI=globalThis.__SMBLS_BUILD_DROP_C_Caption__?D("Caption"):{tag:"caption"},TI=globalThis.__SMBLS_BUILD_DROP_C_Strong__?D("Strong"):{tag:"strong",fontWeight:"700"},EI=globalThis.__SMBLS_BUILD_DROP_C_U__?D("U"):{tag:"u"},AI=globalThis.__SMBLS_BUILD_DROP_C_Underline__?D("Underline"):{tag:"u"},vI=globalThis.__SMBLS_BUILD_DROP_C_Italic__?D("Italic"):{tag:"i"},CI=globalThis.__SMBLS_BUILD_DROP_C_Title__?D("Title"):{},OI=globalThis.__SMBLS_BUILD_DROP_C_Headline__?D("Headline"):{tag:"h6",fontSize:"B",fontWeight:500},RI=globalThis.__SMBLS_BUILD_DROP_C_Subhead__?D("Subhead"):{tag:"span",fontSize:"Z1"},DI=globalThis.__SMBLS_BUILD_DROP_C_Footnote__?D("Footnote"):{tag:"span",fontSize:"Z"},LI=globalThis.__SMBLS_BUILD_DROP_C_B__?D("B"):{tag:"b"},II=globalThis.__SMBLS_BUILD_DROP_C_I__?D("I"):{tag:"i"},PI=globalThis.__SMBLS_BUILD_DROP_C_Data__?D("Data"):{tag:"data"};var K0=/*@__PURE__*/$({},{Box:()=>om,Br:()=>BI,Hr:()=>MI,Li:()=>NI,Ol:()=>FI,Ul:()=>$I});var UH=t=>{if(!t.context)return;let{props:e,__ref:n}=t,o=Zt(e,t,{unpack:!1});n.__class=o},om=globalThis.__SMBLS_BUILD_DROP_C_Box__?D("Box"):{extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:UH},MI=globalThis.__SMBLS_BUILD_DROP_C_Hr__?D("Hr"):{tag:"hr",margin:"C1 0"},BI=globalThis.__SMBLS_BUILD_DROP_C_Br__?D("Br"):{tag:"br"},NI=globalThis.__SMBLS_BUILD_DROP_C_Li__?D("Li"):{tag:"li"},$I=globalThis.__SMBLS_BUILD_DROP_C_Ul__?D("Ul"):{tag:"ul",childExtends:{extends:"Li"}},FI=globalThis.__SMBLS_BUILD_DROP_C_Ol__?D("Ol"):{tag:"ol",childExtends:{extends:"Li"}};var q0=/*@__PURE__*/$({},{Hgroup:()=>UI,HgroupButton:()=>HI,HgroupRows:()=>VI});var jI=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},UI=globalThis.__SMBLS_BUILD_DROP_C_Hgroup__?D("Hgroup"):{display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:jI,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:jI,margin:"0",color:"paragraph"}},VI=globalThis.__SMBLS_BUILD_DROP_C_HgroupRows__?D("HgroupRows"):{extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},HI=globalThis.__SMBLS_BUILD_DROP_C_HgroupButton__?D("HgroupButton"):{extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Y0=/*@__PURE__*/$({},{Bridge:()=>zI});var zI=globalThis.__SMBLS_BUILD_DROP_C_Bridge__?D("Bridge"):{tag:"div"};var X0=/*@__PURE__*/$({},{Input:()=>WI});var WI={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,required:t=>t.required,type:t=>t.type}};var Z0=/*@__PURE__*/$({},{NumberInput:()=>GI});var GI={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var Q0=/*@__PURE__*/$({},{Checkbox:()=>KI,CheckboxHgroup:()=>qI});var KI={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",position:"absolute",opacity:"0",width:"1px",height:"1px",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},":focus-visible + div":{outline:t=>Qs(t,"outline","solid X currentColor"),outlineOffset:t=>Qs(t,"outlineOffset","Z")},attr:{checked:t=>t.call("exec",t.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},qI=globalThis.__SMBLS_BUILD_DROP_C_CheckboxHgroup__?D("CheckboxHgroup"):{display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var J0=/*@__PURE__*/$({},{Radio:()=>YI,RadioHgroup:()=>XI});var YI=globalThis.__SMBLS_BUILD_DROP_C_Radio__?D("Radio"):{extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},XI=globalThis.__SMBLS_BUILD_DROP_C_RadioHgroup__?D("RadioHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var tT=/*@__PURE__*/$({},{Toggle:()=>ZI,ToggleHgroup:()=>QI});var ZI={extends:"Checkbox",Input:{role:"switch",":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},QI=globalThis.__SMBLS_BUILD_DROP_C_ToggleHgroup__?D("ToggleHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var eT=/*@__PURE__*/$({},{Textarea:()=>JI,TextareaWithButton:()=>tP});var JI=globalThis.__SMBLS_BUILD_DROP_C_Textarea__?D("Textarea"):{tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},tP=globalThis.__SMBLS_BUILD_DROP_C_TextareaWithButton__?D("TextareaWithButton"):{display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var rT=/*@__PURE__*/$({},{FileIcon:()=>cP,Icon:()=>iP,IconText:()=>aP});var eP=new Set,nP=(t,e)=>{if(!eP.has(t)&&(eP.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,o=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${o} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},oP=(t,e)=>{let n=t.find(o=>o&&HL(o));return n?(R0("icon",n,e),!0):!1},rP=new WeakMap,VH=t=>{let e=rP.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},rP.set(t,e)),e},HH=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},zH=(t,e,n)=>{let o=n&&n.context&&n.context.document||(typeof document<"u"?document:null);ht(t);try{let r=L();r&&!r.__svgCache&&(r.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=Ls(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&o&&Object.keys(s).length&&Is(s,{document:o}),Object.keys(s).length>0}finally{dt()}},WH=(t,e,n,o,r)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=VH(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(r),a.pending.has(e))return!0;let l=()=>i(e,t),f=Promise.resolve().then(l).then(u=>{let d=HH(u,n);return d?zH(s,d,o):!1}).catch(u=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,u),!1)).then(u=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),u||a.failed.add(e),d&&d.forEach(p=>{try{p(u)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,f),!0},GH="0 0 24 24",KH=/<(symbol|svg)\b[^>]*>/i,qH={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},nT=(t,e)=>{let n=t.match(qH[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},sP=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},YH=(t,e)=>{if(typeof t!="string")return;let n=t.match(KH);if(!n)return;let o=(nT(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),r=o.length===4&&o[2]>0&&o[3]>0?[o[2],o[3]]:void 0,s=sP(nT(n[0],"width")),i=sP(nT(n[0],"height")),a=s>0&&i>0?[s,i]:void 0,c=n[1].toLowerCase()==="symbol"||e?r||a:a||r;return c?`0 0 ${c[0]} ${c[1]}`:void 0},oT=t=>{let e=t.call("exec",t.viewBox,t);if(e)return e;let n=t.context&&t.context.designSystem,o=!!(t.spriteId||n&&n.useSvgSprite);return YH(t.call("exec",t.src,t),o)||GH},iP={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:o}=t,{icons:r,useIconSprite:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,c=!1,l=(h,m)=>{try{return{value:t.call("exec",h,m)}}catch(y){if(t.__ref&&(t.__ref.__iconNameError=y),!c&&typeof console<"u"&&console.warn){c=!0;let x=t.__ref&&t.__ref.path,T=x&&x.length?` at <${x.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${T} \u2014 treated as no name (a painted glyph stays):`,y&&y.message||y)}return{threw:!0}}},f=(h,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:x}=m&&m.utils,v=x(h).split(/([a-z])([A-Z])/g),_=v[1]?v[0]:h.split(".")[0].split(" ")[0],b=y&&y[_];if(b){let S=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=b[S]||b[h.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${h}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=h=>{let{key:m}=h,y=l(h.name||h.icon||m,h);if(y.threw)return{name:m,threw:!0};let x=y.value;return h.call("isString",x)&&x.includes("{{")&&(x=h.call("replaceLiteralsWithObjectFields",x)),{name:h.call("isString",x)?x:m}},d=t.src,p,g=()=>{let h=u(t);if(h.threw&&t.node&&t.node.innerHTML)return;let m=h.name,y=m;if(m.includes(" ")){let B=m.split(" ");m=B[0]+B.slice(1).map(M=>M.charAt(0).toUpperCase()+M.slice(1)).join("")}let x=a(m),T=x.split(/([a-z])([A-Z])/g),v=f(y,n);if(v){Object.assign(t,v);return}let _,b=t[".isActive"];b&&(b.name||b.icon)&&t.isActive&&(_=l(b.name||b.icon,t).value);let S=o&&o[".isActive"];S&&S.icon&&o.isActive&&(_=l(S.icon||S.Icon.name||S.Icon.icon,t).value),t.call("isString",_)&&_.includes("{{")&&(_=t.call("replaceLiteralsWithObjectFields",_));let w;r[_]&&(w=_),r[x]?w=x:r[T[0]+T[1]]?w=T[0]+T[1]:r[T[0]]?w=T[0]:i&&t.warn("Can't find icon:",m,w);let A=r[w],C=o&&o.src||d;!A&&!C&&(WH(n,y,x,t,M=>{if(!(p&&p._disposed)){if(!M)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&oP([_,x,T[0]+T[1],T[0]],t)||nP(y,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&oP([_,x,T[0]+T[1],T[0]],t)||nP(y,t));let O=s&&w,N=A||C||r.noIcon;if(!(t.spriteId===O&&t.src===N&&t.node&&t.node.innerHTML)){if(t.spriteId=O,t.src=N,typeof t.html=="function"&&t.node){let B=t.context&&t.context.designSystem;B&&ht(B);try{let M=t.html(t,t.state,t.context);M!=null&&typeof M!="function"&&(t.node.innerHTML=M)}finally{B&&dt()}}t.node&&t.attr&&t.attr.viewBox===oT&&t.node.setAttribute("viewBox",oT(t))}};p=W(g,{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0}),t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(p))},attr:{viewBox:oT,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},aP=globalThis.__SMBLS_BUILD_DROP_C_IconText__?D("IconText"):{display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},cP=globalThis.__SMBLS_BUILD_DROP_C_FileIcon__?D("FileIcon"):{display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var RT=/*@__PURE__*/$({},{A:()=>oM,Link:()=>CT,RouteLink:()=>rM,RouterLink:()=>OT});var cc=/*@__PURE__*/$({},{default:()=>Bz,getActiveRoute:()=>vT,lastLevel:()=>lm,lastPathname:()=>ac,loadLazy:()=>ST,matchRoute:()=>TT,parseQuery:()=>ET,parseRoutePattern:()=>cm,resolveRouterElement:()=>qu,router:()=>Cn,runGuards:()=>QP,saveScrollPosition:()=>Hu});var sT="__smblsRouter",iT=new WeakMap,XH=0,aT=()=>Date.now().toString(36)+(++XH).toString(36)+Math.random().toString(36).slice(2,6),cT=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},No=t=>{try{return t.state}catch{return}},Vu=t=>{try{let{pathname:e,search:n,hash:o}=t.location;return e+n+o}catch{return null}},dP=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},pP=t=>{let e=dP(t)?t[sT]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},lT=(t,e)=>t==null?{[sT]:e}:dP(t)?{...t,[sT]:e}:null,fT=()=>({key:aT(),index:0,chain:aT()}),ic=(t,e)=>{let n=pP(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:Vu(t),state:e}},hP=(t,e)=>{let n=pP(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Uu=(t,e,n)=>!!n&&Vu(t)===n.url&&hP(e,n),uT=(t,e,n)=>({...t,url:e,state:n}),dT=(t,e)=>{let n=No(e),o=ic(t,n);if(o.key)return o;let r=fT(),s=lT(n,r);if(!s)return o;try{e.replaceState(s,null)}catch{return o}return uT(r,o.url,s)},ZH=(t,e)=>{let n=iT.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},iT.set(t,n)),n||null},gP="smbls.router.scroll",lP=100,QH=1e3,fP=["wheel","touchstart","keydown","pointerdown"],mP=t=>{try{return t.sessionStorage||null}catch{return null}},yP=t=>{try{let e=JSON.parse(t.getItem(gP)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},_P=(t,e)=>{if(!t.positions){t.positions=new Map;let n=mP(e);if(n)for(let[o,r]of yP(n))r&&Number.isFinite(r.top)&&Number.isFinite(r.left)&&t.positions.set(o,{top:r.top,left:r.left})}return t.positions},pT=(t,e,n,o)=>{let r=_P(t,e);r.delete(n),r.set(n,{top:Math.round(Number(o.scrollTop)||0),left:Math.round(Number(o.scrollLeft)||0)}),r.size>lP&&r.delete(r.keys().next().value);let s=mP(e);if(s)try{let i=new Map(yP(s));for(let[a,c]of r)i.delete(a),i.set(a,c);s.setItem(gP,JSON.stringify(Array.from(i).slice(-lP)))}catch{}},uP=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},JH=(t,e,n,o,r,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=o;let a=typeof i=="number"&&i>=0?i:QH,c=()=>Math.max(0,(Number(r.scrollHeight)||0)-(Number(r.clientHeight)||0)),l=(h,m)=>{typeof r.scrollTo=="function"?r.scrollTo({top:h,left:m,behavior:"instant"}):(r.scrollTop=h,r.scrollLeft=m)},f=typeof t.addEventListener=="function",u=()=>o.end("visitor");if(o.end=h=>{if(!o.outcome&&(o.outcome=h,f))for(let m of fP)t.removeEventListener(m,u,!0)},c()>=s.top-1)return l(s.top,s.left),o.end("placed");Number(r.scrollTop)>0&&l(0,0);let d=Number(r.scrollTop)||0,p=Date.now();if(f)for(let h of fP)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(o.outcome)return;if(n.seq!==o.seq)return o.end("overtaken");if(Math.abs((Number(r.scrollTop)||0)-d)>1)return o.end("visitor");let h=c()>=s.top-1;if(!h&&Date.now()-p<a)return uP(t,e,g);l(Math.min(s.top,c()),s.left),o.end(h?"placed":"clamped")};uP(t,e,g)},tz=(t,e)=>{let{win:n,history:o,track:r}=t,s=r.pops.get(e);if(s)return s;let i=ic(n,No(o)),a=r.expect;r.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=r.current,f=!!(i.key&&l&&l.key===i.key),u=f?null:l;u&&u.key&&t.scrollNode&&pT(r,n,u.key,t.scrollNode),c={to:i,from:u,stay:f,seq:r.seq,settled:!1,committed:!1},r.pending=c}return r.pops.set(e,c),c},ez=t=>{let{win:e,history:n,track:o}=t,r=No(n);if(o.pending&&Uu(e,r,o.pending.to)||o.expect&&Uu(e,r,o.expect.away))return;let s=o.current;if(s&&(s.key?hP(r,s):Uu(e,r,s))){s.url=Vu(e),s.state=r;return}o.current=t.restore?dT(e,n):ic(e,r),o.pending=null,o.seq++},bP=(t,e,n)=>{let o=e.scrollRestoration==="restore",r=cT(t),s=o||Array.isArray(e.guards)&&e.guards.length>0,i=r&&ZH(r,s);if(!i)return null;let a={win:t,history:r,track:i,restore:o,scrollNode:o&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=tz(a,c):ez(a),a},rm=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},hT=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:o,track:r}=t;return rm(r,e),r.seq!==e.seq||!Uu(n,No(o),e.to)?!1:(r.current=t.restore&&!e.to.key?dT(n,o):e.to,r.seq++,e.committed=!0,!0)},SP=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&rm(t.track,e)},nz=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},gT=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:o,history:r,track:s}=t;rm(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Uu(o,No(r),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let f=s.expect={key:i.key,url:i.url,away:a};nz(o,s,f);try{r.go(i.index-a.index)}catch{s.expect=null}return}let c=fT(),l=lT(i.state,c);try{r.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?uT(c,i.url,l):ic(o,No(r)),s.seq++},wP=(t,e)=>{let n=Vu(e);t&&n!==null&&(t.__routerAddress=n)},mT=(t,e,n)=>{let o=t&&t.pop;if(o&&!o.echo&&o.from)return gT(t,!0);o&&!o.settled&&rm(t.track,o);let r=cT(n),s=e&&e.__routerAddress;if(!(!r||!s||s===Vu(n)))try{r.replaceState(No(r),null,s)}catch{}},xP=(t,e,n,o,r=t&&t.win)=>{if(!t){try{o?r.history.replaceState(e,null,n):r.history.pushState(e,null,n)}catch{}return}let{history:s,track:i}=t,a=i.current;!o&&a&&a.key&&t.scrollNode&&pT(i,r,a.key,t.scrollNode);let c=o?ic(r,No(s)):dT(r,s),l=c.key?o?{key:c.key,index:c.index,chain:c.chain}:{key:aT(),index:c.index+1,chain:c.chain}:fT(),f=lT(e,l);try{o?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?uT(l,n,f):ic(r,No(s)),i.pending=null,i.expect=null,i.seq++},kP=(t,e,n,o)=>{if(!t||!t.restore||!e)return!1;let r=t.pop;if(r?r.stay||!r.committed:!n.initialRender)return!1;let{win:s,track:i}=t,a=i.current,c=a&&a.key&&_P(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(r?l.pop===r:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||JH(s,o,i,{key:a.key,pop:r,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},Hu=t=>{let e=cT(t),n=e&&iT.get(e);!n||!n.scrollNode||!n.current||!n.current.key||pT(n,t,n.current.key,n.scrollNode)};var vP=["components","functions","methods","snippets"],CP=new Set(["pages",...vP]),yT=new Set(["default","__esModule"]),Or=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Ut=t=>!!t&&typeof t=="object"&&!Array.isArray(t),sm=new WeakMap,TP=new WeakMap,_T=new WeakMap,EP=new Set,Js=(t,e=console.warn)=>{EP.has(t)||(EP.add(t),e(t))},OP=t=>Ut(t&&t.lazy),RP=(t,e)=>{let n=t&&t.lazy;return Ut(n)&&Or(n,e)?n[e]:void 0},Wu=(t,e)=>{let n=RP(t,e);return Ut(n)&&Or(n,"load")?n.load:n},oz=(t,e)=>{let n=RP(t,e);return Ut(n)&&typeof n.when=="function"?n.when:null},rz=t=>{let e=new Error(`[smbls/router] lazy group "${t}" waits: its \`when\` said false \u2014 nothing was requested`);return e.code="LAZY_WAITING",e},bT=(t,e)=>{let n=sm.get(t);n||(sm.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let r of n.values())r.disposed=!0,r.waiting.clear();sm.delete(t)}));let o=n.get(e);return o||(o={status:"idle",attempts:0,promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,o)),o},DP=(t,e)=>!OP(e)||!Ut(t)||!Or(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,am=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&_T.has(t),LP=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&Ht("lazyRoutes",e),null),IP=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",sz=(t,e)=>typeof Wu(t,e)!="function"?"error":IP(sm.get(t)?.get(e)),iz=(t,e)=>{let n=TP.get(t);if(n&&n.group===e)return n;let{lazy:o,state:r,...s}=t,i=r==null||Ut(r)||typeof r=="function";i?s.state=(c,l)=>{let f=typeof r=="function"?r(c,l):r;return{...Ut(f)?f:null,lazyStatus:sz(c.context,e)}}:(s.state=r,!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&Js(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(r)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return TP.set(t,a),_T.set(s,a),a},az=t=>t.__ref&&t.__ref.contentElementKey||"content",zu=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,o=n&&am(n.content)?_T.get(n.content):null;return!o||o.group!==e?null:{record:o,page:t[az(t)]}},im=(t,e,n)=>{let o=zu(t,e);if(!o||!o.record.hasStatus)return;let r=o.page&&o.page.state;if(!(!r||typeof r.update!="function"||r.lazyStatus===n))try{r.update({lazyStatus:n})}catch(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},cz=t=>Ut(t)?!Object.keys(t).some(n=>CP.has(n))&&Ut(t.default)?t.default:t:{},lz=t=>{let e={};if(!Ut(t))return e;for(let n of Object.keys(t)){if(yT.has(n))continue;let o=n.charCodeAt(0)===47,r=o?n:"/"+(n==="index"?"":n);(o||!Or(e,r))&&(e[r]=t[n])}return e},PP=(t,e,n,o,r)=>{if(!Ut(t))return 0;let s=0;for(let i of Object.keys(t))DP(t[i],o)===e&&(s++,Or(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Or(t,i)?t[i]!==n[i]&&r.push(`pages['${i}']`):t[i]=n[i];return s},AP=(t,e,n)=>{let o=t[e];if(!Ut(o)){t[e]={...n};return}try{for(let r in n)o[r]=n[r];if(Object.keys(n).every(r=>o[r]===n[r]))return}catch{}t[e]={...o,...n}},fz=t=>{let e=t.__ref&&t.__ref.origin;if(!Ut(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let o=t.key;if(typeof o!="string"||!/^[A-Z]/.test(o))return[];let r=[o.indexOf("_"),o.indexOf(".")].filter(s=>s>0);return[r.length?o.slice(0,Math.min(...r)):o]},uz=(t,e,n,o)=>{let r=new Set;for(let i of o.waiting){let a=zu(i,e);a&&a.page&&r.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||r.has(l)||!l.node)){for(let f of fz(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");Js(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}s(l)}}};s(t)},dz=(t,e,n,o)=>{let r=t.context,s=cz(n),i=!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J(),a=[],c=new Set;if(i)for(let p of Object.keys(s))CP.has(p)||yT.has(p)||Js(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of vP){let g=s[p];if(!Ut(g))continue;let h=Ut(r[p])?r[p]:{},m={};for(let x of Object.keys(g))if(!yT.has(x)){if(Or(h,x)){h[x]!==g[x]&&a.push(`${p}.${x}`);continue}m[x]=g[x]}let y=Object.keys(m);if(y.length&&(AP(r,p,m),p==="components"&&y.forEach(x=>c.add(x)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Ut(r.utils))){let x={};for(let T of y)Or(r.utils,T)||(x[T]=m[T]);Object.keys(x).length&&AP(r,"utils",x)}}l&&Wa(r);let f=lz(s.pages);o.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Ut(r.pages)&&d.add(r.pages),u&&Ut(u.routes)&&d.add(u.routes);for(let p of o.maps)d.add(p);for(let p of o.waiting)Ut(p.routes)&&d.add(p.routes);for(let p of d)PP(p,e,f,r,a);i&&a.length&&Js(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&u&&uz(u,e,c,o)},MP=(t,e)=>{let n=t&&t.__ref,o=n&&n.__lazyRoute;if(!o||o.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!zu(t,e))return;let r=()=>o.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}});Promise.resolve().then(r).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},Gu=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",pz=(t,e,n)=>!!t&&(Gu(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),BP=(t,e)=>{let n=t.context,o=bT(n,e);if(o.status==="loading"||o.status==="loaded")return o.promise;let r=Wu(n,e),s=oz(n,e),i=o.failure;o.status="loading";let a,c=!1,l=!1,f=()=>s?s(t):!0,u=p=>{if(p===!1)throw l=!0,rz(e);return a=r(o.attempts++)},d=Promise.resolve().then(f).then(u).then(p=>{c=!0,o.disposed||dz(t,e,p,o)}).then(()=>{o.status="loaded",o.failure=null;let p=[...o.waiting];o.waiting.clear();for(let g of p)MP(g,e)},p=>{if(l){if(o.status="waiting",o.promise=null,o.disposed)throw p;for(let h of[...o.waiting])zu(h,e)?im(h,e,"waiting"):o.waiting.delete(h);throw p}let g=!c&&pz(i,a,p);if(o.failure=c?null:{returned:a,error:p},o.status=g?"reload":"error",o.promise=null,o.disposed)throw p;g?Js(`[smbls/router] lazy group "${e}" cannot load in this page: its loader handed back the import that already failed (the same promise or the same error) and requested nothing \u2014 a bundler that keeps a failed dynamic import (parcel) does this. Its routes show their placeholder with lazyStatus 'reload'; reloading the page loads the group.`,h=>console.error(h,p)):console.error(`[smbls/router] lazy group "${e}" failed to load. Its routes show their placeholder with lazyStatus 'error'; the next navigation to one of them, or loadLazy('${e}'), calls the group's loader again.`,p);for(let h of[...o.waiting])zu(h,e)?im(h,e,o.status):o.waiting.delete(h);throw p});d.catch(()=>{}),o.promise=d;for(let p of o.waiting)im(p,e,"loading");return d},NP=(t,e,n)=>{let o=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return LP(o,e);let r=DP(t,o);if(!r)return null;let s=bT(o,r);if(Ut(n)&&s.maps.add(n),s.status==="loaded"&&PP(n,r,s.pages||{},o,[])>0)return{rematch:!0};let i=typeof Wu(o,r)=="function";return i?BP(e,r):Js(`[smbls/router] a route names lazy group "${r}", which context.lazy does not declare as a loader (\`lazy: { ${r}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:iz(t,r).definition,group:r,status:i?"loading":"error"}},$P=(t,e,n)=>{if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__||!e||!e.group||e.status==="error")return;let o=t.context,r=t.__ref;if(!r||typeof Wu(o,e.group)!="function")return;let s=bT(o,e.group);if(r.__lazyRoute={group:e.group,rerender:n},im(t,e.group,IP(s)),s.status==="loaded"){let i=()=>MP(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function ST(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return Promise.resolve(LP(n,e));let o=Wu(n,t);return typeof o!="function"?(o===void 0&&OP(n)&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&J()&&Js(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):BP(e,t)}var hz=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),FP=(t,e,n)=>{let o=n.mountOptions;if(!o)return;let r=e.context&&e.context.domqlOptions;for(let s in o)t[s]=r&&s in r?r[s]:void 0},GP=t=>{let e=Jn;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},gz=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},mz=t=>{let e=Xg;return typeof e!="function"||!e(t)?null:Bo(t)},kT=Object.freeze({holdTail:!0}),yz=t=>typeof t.holdPage=="function"&&typeof Ue=="function",KP=(t,e)=>{let n=()=>Ue(t);Gu(e)?e.then(n,n):n()},_z=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}KP(e,n)},qP=Object.freeze({holdTail:!0,deferAttach:!0}),bz=(t,e,n,o)=>{let r=t.firstView;if(!r||typeof Ue!="function"||typeof Tr!="function")return null;if(!r.committed)return kT;if(!GP(o))return null;let s=e.node;return!e[n]&&s&&s.isConnected?qP:(o.mountYield=void 0,null)},Sz=async()=>{await Te();let t=vr;if(typeof t=="function")for(;!t();)await Te()},wz=(t,e,n,o)=>{if(e===kT){t.firstView.page=n,KP(n,t.firstView.commit);return}e===qP&&Sz().then(()=>{n.__ref&&o()&&Tr(n),Ue(n)})},YP=/^:(.+)/,XP=/^\*$/,jP=new Map,cm=t=>{let e=jP.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),o=[],r=!1;for(let i=0;i<n.length;i++){let a=n[i].match(YP);a?o.push({index:i,name:a[1]}):XP.test(n[i])&&(r=!0)}let s={segments:n,params:o,hasWildcard:r,pattern:t};return jP.set(t,s),s},TT=(t,e,n=0)=>{let r=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),s="/"+(r[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=cm(l),u=xz(r,f);u>a&&(a=u,i=l,c=ZP(r,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},xz=(t,e)=>{let{segments:n,hasWildcard:o}=e;if(!o&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let r=0,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])r+=3;else if(YP.test(n[i]))r+=1;else if(XP.test(n[i]))r+=.5;else return-1;return r},ZP=(t,e)=>{let n={};for(let{index:o,name:r}of e.params)t[o]&&(n[r]=decodeURIComponent(t[o]));return n},ET=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((o,r)=>{e[r]!==void 0?(Array.isArray(e[r])||(e[r]=[e[r]]),e[r].push(o)):e[r]=o}),e},xT=t=>!!t&&typeof t=="object"&&typeof t.route=="string",UP=t=>t===!1||typeof t=="string"||xT(t)?t:void 0,kz=10,AT=(t,e,n=0)=>{for(let o=n;o<t.length;o++){let r=t[o](e);if(Gu(r))return Promise.resolve(r).then(i=>{let a=UP(i);return a===void 0?AT(t,e,o+1):a});let s=UP(r);if(s!==void 0)return s}return!0},QP=async(t,e)=>!t||!t.length?!0:AT(t,e),VP=(t,e,n,o)=>{if(typeof t!="string"||!n||!Object.prototype.hasOwnProperty.call(n,t))return null;let r=n[t];if(!r)return null;let s=e.replace(/^\//,"").split("/").filter(Boolean).slice(o||0);return{route:t,content:r,params:t==="/*"?{}:ZP(s,cm(t))}},qu=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),o=t;for(let r of n){if(!o||!o[r])return null;o=o[r]}return o},Tz=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let o=qu(t,n);return!o||o===t?t:(t.routes&&(o.routes=t.routes),o)},vT=(t=0,e)=>{e||(e=typeof R<"u"?R.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},ac,lm=0,HP=0,wT=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,Ez=t=>t&&(t.scrollingElement||t.documentElement)||null,JP={level:lm,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},tM=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},eM=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},Az=(t,e,n,o,r,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(eM(e),!n||!n.node||typeof t.onRouteExit>"u"||!tM(s,i))return null;let c=typeof r=="number"&&r>=0?r:JP.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...o,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=po("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},Ku=new WeakMap,vz=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,Cz=(t,e,n,o)=>{let r=vz(t.transition);return!r||!e||am(e.content)||!n||typeof n.startViewTransition!="function"||Ku.get(n)>0||!tM(n,o)?null:r},Oz=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},Rz=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},Dz=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},Lz=100,Iz=1e3,zP=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,WP=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},Pz=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},Mz=(t,e,n,o,r,s,i)=>{let a=t.node,c=a&&a.style,l=typeof n.name=="string"&&n.name?n.name:null,f=e.__routeTransition,u={transition:null,updating:!1,name:l,previousName:f&&f.name&&c?f.previousName:c&&c.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===s){u.updating=!0,u.swapStarted=WP(r),Ku.set(o,(Ku.get(o)||0)+1);try{return i()}finally{Ku.set(o,Ku.get(o)-1),u.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=u.previousName)};l&&c&&(c.viewTransitionName=l);let g=Rz(n),h=null;try{h=g.length&&Dz(r)?o.startViewTransition({update:d,types:g}):o.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,Pz(h.ready);let m=!1,y=null,x=()=>{m=!0,y!==null&&(r.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},T=()=>{if(!(m||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(x,x):x();let v=zP(n.swapBudget,Lz),_=zP(n.timeout,Iz);_!==1/0&&h.ready&&typeof h.ready.then=="function"&&r&&typeof r.setTimeout=="function"&&h.ready.then(()=>{m||(y=r.setTimeout(()=>{y=null,T()},_))},()=>{});let b=h.updateCallbackDone;return!b||typeof b.then!="function"?Promise.resolve():(v!==1/0&&b.then(()=>{u.swapStarted!==void 0&&WP(r)-u.swapStarted>v&&T()},()=>{}),b)},Cn=async(t,e,n={},o={})=>{let r=e||void 0,s=r?.context?.window||R,i=r?.context?.document||wt,a={...JP,...r.context.routerOptions,...o};lm=a.lastLevel,r=Tz(r,a);let c=!(o&&o.render===!1),l=r.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let f=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";t=wT(t);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(u+t),{pathname:g,search:h,hash:m}=p,y=ET(h),x=r.node,T=m&&m!==s.location.hash.slice(1),v=g!==ac,_=ac,b=++HP;ac=g;let S=()=>{HP===b&&(ac=_)},w=l.__routerRendered,A,C,O,N;if(a.useParamsMatching){let G=TT(g,r.routes,a.level);A=G.key,C=G.routePath,O=G.content,N=G.params}else{A=vT(a.level,g),C=A;let G=r.routes;O=G?G[A||"/"]||G["/*"]:null,N={}}if(o&&o.route!=null){let G=VP(o.route,g,r.routes,a.level);!G&&!a.silent&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] route",o.route,"chosen for",g,"is not one of the routes:",Object.keys(r.routes||{}))),A=G?G.route:o.route,O=G?G.content:null,N=G?G.params:{}}a.scrollNode===void 0&&(a.scrollNode=Ez(i));let B=a.scrollToNode?x:a.scrollNode;if(r.state?.root?.debugging){r.state.root.debugging=!1;return}let M=bP(s,a,B);if(M&&M.pop&&M.pop.echo)return;if(!O){S(),a.onNotFound?a.onNotFound({pathname:g,route:A,element:r}):(a.silent||console.warn("[smbls/router] no content matched for path",g,"\u2014 available routes:",Object.keys(r.routes||{})),a.event&&a.event.type==="popstate"&&mT(M,l,s));return}let K=o&&o.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let G={pathname:g,route:A,params:N,query:y,hash:m,element:r,state:n},z=AT(a.guards,G);if(Gu(z)&&(z=await z,l.__routerStartSeq!==K)){S(),SP(M);return}if(z===!1){S(),gT(M);return}let vt=Bt=>{let Tt=new d(u+wT(Bt));return Tt.pathname===g&&Tt.search===h&&Tt.hash===m},gt=typeof z=="string"?z:xT(z)&&typeof z.path=="string"&&!vt(z.path)?z.path:null;if(xT(z)&&gt===null){let Bt=VP(z.route,g,r.routes,a.level);if(!Bt){a.silent||globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] a guard chose route",z.route,"for",g,"\u2014 not one of the routes:",Object.keys(r.routes||{})),S(),a.onNotFound?a.onNotFound({pathname:g,route:z.route,element:r}):a.event&&a.event.type==="popstate"&&mT(M,l,s);return}A=Bt.route,O=Bt.content,N=Bt.params,o={...o,route:Bt.route}}else if(gt!==null){let Bt=!!(M&&M.pop);if(Bt&&!hT(M))return;let Tt=[...o&&o.__redirectChain||[],g],Ct=new d(u+wT(gt)).pathname,He=Tt.includes(Ct)||Tt.length>=kz;He&&!a.silent&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] redirect loop:",[...Tt,Ct].join(" \u2192 "),"\u2014 rendering",Ct,"without its guards"));let Dt={...o,__redirectChain:Tt};return He&&(Dt.guards=[]),typeof z=="string"?delete Dt.route:Dt.route=z.route,Bt&&(Dt.event=void 0),delete Dt.render,(Bt||a.initialRender)&&(Dt.pushState=!0,Dt.replace=!0),Cn(gt,e,n,Dt)}}let q=c?NP(O,r,r.routes):null;if(q&&q.rematch)return Cn(t,r,n,o);q&&(O=q.content,a.lazy={group:q.group,status:q.status});let tt=l.__routerNavSeq=(l.__routerNavSeq||0)+1,nt=!w||w.content!==O||w.route!==A,ot=!!w&&w.content===O,X=!(!c||a.keepSamePage===!0&&ot&&a.force!==!0)&&(v||nt||a.force===!0);if(X&&w&&!am(w.content)){let G=Az(r,l,r[f],{from:w.route,to:A,pathname:g,params:N,query:y,hash:m},a.exitTimeout,i,s);if(G&&(await G,l.__routerNavSeq!==tt||(l.__routeExit&&l.__routeExit.wait===G&&(l.__routeExit=null),typeof r?.set!="function")))return}else eM(l);let Q=X?Cz(a,w,i,s):null;if(X&&Oz(l),a.pushState){let G=g+(h||"")+(m||"");xP(M,n,G,a.replace,s)}else M&&hT(M);wP(l,s);let rt=hz(r,a,f),et=()=>{let G=X?bz(a,r,f,rt):null,z=(!!w||GP(rt))&&!!B&&B.scrollTop===0&&!B.scrollLeft,vt=!w&&!!a.initialRender&&!!B&&gz(r)&&(Number(B.scrollTop)>0||Number(B.scrollLeft)>0),Bt=v||!T?{route:A,routePath:C,hash:m,params:N,query:y,debugging:!1}:{params:N,query:y};a.updateState&&r.state.update(Bt,{preventContentUpdate:!0});let Tt=null;if(X){f&&a.removeOldElement&&r[f].remove();let He=r.__ref?.origin?.content,Dt={};if(He)for(let Y in He){let st=He[Y];Y==="__ref"||Y==="props"||Y==="node"||Y==="parent"||Y==="key"||(typeof st=="string"||typeof st=="number"||typeof st=="boolean"||typeof st=="object"&&st!==null&&!st.node&&!st.__ref)&&(Dt[Y]=st)}let Ce={...Dt,...typeof O=="object"?O:{extends:O}};a.useFragment&&(Ce.tag="fragment");let H={content:O,route:A},Et=l.__routerRendered;try{if(typeof r?.set!="function")return;l.__routerRendered=H;let Y=!G&&yz(a),st=r.set(Ce,rt,G||(Y?kT:void 0));st&&G?wz(a,G,st,()=>l.__routerNavSeq===tt):st&&Y&&_z(a,st),Tt=mz(r[f])}catch(Y){l.__routerRendered===H&&(l.__routerRendered=Et),console.error("[smbls/router] failed to render route content",g,Y)}}else ot&&w.route!==A&&l.__routerRendered===w&&(l.__routerRendered={content:O,route:A});let Ct=()=>{let He=!v&&T,Dt=!c||kP(M,B,a,i);if(!Dt&&!vt&&a.scrollToTop&&!He&&!z&&B?.scrollTo&&B.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!Dt&&!vt&&a.scrollToNode&&O[f]?.node?.scrollTo&&O[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!Dt&&m){let Ce=i.getElementById(m.slice(1));if(Ce&&B?.scrollTo){let H=s.getComputedStyle?s.getComputedStyle(Ce):null,Et=H&&parseFloat(H.scrollMarginTop)||0,Y=Ce.getBoundingClientRect().top+B.scrollTop-Et-(a.scrollToOffset||0);B.scrollTo({...a.scrollToOptions||{},top:Y,left:0})}}q&&$P(r,q,Ce=>Cn(t,r,n,{...o,...Ce})),po("routeChanged",r,a)};if(Tt)return Tt.then(()=>{FP(rt,r,a),l.__routerNavSeq===tt&&Ct()});FP(rt,r,a),Ct()},pt=Q?Mz(r,l,Q,i,s,tt,et):null;if(pt){await pt;return}return et()},Bz=Cn;var Nz=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let o=n.getAttribute("target");return o&&o.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},$z=(t,e)=>{let n=t.slice(1),o=e.node&&e.node.ownerDocument,r=n&&o?o.getElementById(n):null;r&&(typeof r.scrollIntoView=="function"&&r.scrollIntoView(),typeof r.focus=="function"&&(r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),r.focus()))},nM=(t,e,n)=>{let{context:o}=e,{href:r,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",r,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a||Nz(t,e))return;if(a.startsWith("#")){t.preventDefault(),$z(a,e);return}let{utils:c,snippets:l,functions:f,routerOptions:u}=o,d=e.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Cn)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},CT={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>_r(t,t.href)||_r(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:nM},oM=globalThis.__SMBLS_BUILD_DROP_C_A__?D("A"):{extends:"Link"},OT={onClick:nM},rM=globalThis.__SMBLS_BUILD_DROP_C_RouteLink__?D("RouteLink"):{extends:[CT,OT]};var DT=/*@__PURE__*/$({},{Select:()=>sM});var sM=globalThis.__SMBLS_BUILD_DROP_C_Select__?D("Select"):{extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var LT=/*@__PURE__*/$({},{Button:()=>iM,ButtonSet:()=>fM,CircleButton:()=>cM,IconButton:()=>uM,KangorooButton:()=>lM,SquareButton:()=>aM});var iM=globalThis.__SMBLS_BUILD_DROP_C_Button__?D("Button"):{extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},aM=globalThis.__SMBLS_BUILD_DROP_C_SquareButton__?D("SquareButton"):{extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},cM=globalThis.__SMBLS_BUILD_DROP_C_CircleButton__?D("CircleButton"):{extends:"SquareButton",round:"C"},lM=globalThis.__SMBLS_BUILD_DROP_C_KangorooButton__?D("KangorooButton"):{extends:"Button",childExtends:"IconText"},fM=globalThis.__SMBLS_BUILD_DROP_C_ButtonSet__?D("ButtonSet"):{tag:"nav",display:"flex",childExtends:"SquareButton"},uM={extends:["SquareButton","ClickableItem"],round:"Z"};var PT=/*@__PURE__*/$({},{Dialog:()=>mM,DialogFooter:()=>_M,DialogHeader:()=>yM});var Fz={ok:1,cancel:1},ti=new WeakMap,jz=0,dn=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},IT=t=>{let e=ti.get(t);return e||(e={id:"smbls-dialog-"+ ++jz,want:void 0,waiting:!1},ti.set(t,e)),e},Yu=(t,e,n,o)=>t[e]!==void 0||n!==void 0&&t[n]!==void 0||!!t.attr&&typeof t.attr=="object"&&t.attr[e]!==void 0||o!==void 0&&!!t.aria&&typeof t.aria=="object"&&t.aria[o]!==void 0,lc=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},dM=["methods","functions","utils"],Uz=t=>{for(let e=0;e<dM.length;e++){let n=t[dM[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},fm=(t,e,n)=>{let o=t.context;if(!o||!Uz(o))return n;let r=t.call("polyglot",e);return typeof r=="string"&&r&&r!==e?r:n},pM=t=>{let e=ti.get(t),n=dn(t);if(!e||!n)return!0;if(!n.isConnected)return!1;if(e.want){if(!n.open&&typeof n.showModal=="function")try{n.showModal()}catch{}}else n.open&&typeof n.close=="function"&&n.close();return!0},hM=t=>{queueMicrotask(()=>{if(pM(t))return;let e=ti.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,pM(t)}))})},Vz=t=>{let e=t.__ref;if(!e||!dn(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||Yu(t,"data-dialog"))return;let n=W(()=>{let o=t.modal,r=dn(t);if(!r)return;if(o==null){lc(r,"data-dialog",null);return}lc(r,"data-dialog","modal");let s=IT(t),i=!!o;s.want!==i&&(s.want=i,hM(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},Hz=t=>t.dialogTitle===!0,zz=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},gM=t=>{let e=zz(t);return!e||!e.locked},Wz=t=>t.key==="Escape"||t.key==="Esc",Gz=t=>{let e=t.__ref,n=dn(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let o=IT(t),r=!Yu(t,"closedby","closedBy"),s=W(()=>{let l=!!t.locked,f=dn(t);f&&r&&lc(f,"closedby",l?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(s);let i=l=>{t.locked&&l.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,c=l=>{let f=dn(t);f&&f.open&&f.isConnected&&Wz(l)&&t.locked&&l.preventDefault()};n.addEventListener("cancel",i),a&&a.addEventListener("keydown",c),o.unlock=()=>{n.removeEventListener("cancel",i),a&&a.removeEventListener("keydown",c)}},Kz=t=>{let e=dn(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||Yu(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(Hz):null,o=dn(n);if(!o)return;let r=o.getAttribute("id");if(!r){if(Yu(n,"id"))return;r=IT(t).id+"-title",lc(o,"id",r)}lc(e,"aria-labelledby",r)},qz=(t,e)=>{let n=dn(e),o=t.target;if(!n||t.defaultPrevented||!o||typeof o.closest!="function")return;let r=o.closest("[data-dialog-action]");if(!r||!n.contains(r))return;let s=r.getAttribute("data-dialog-action");if(Fz[s]!==1)return;let i=n.ownerDocument.defaultView,a=new i.Event(s,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(s)},Yz=t=>{let e=ti.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=dn(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},Xz=t=>{let e=ti.get(t),n=dn(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},Zz=t=>{let e=ti.get(t);e&&e.want&&hM(t)},Qz=t=>{let e=dn(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||Yu(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&lc(e,"data-dialog","modal")},mM=globalThis.__SMBLS_BUILD_DROP_C_Dialog__?D("Dialog"):{display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onAttachNode:{always:!0,handler:t=>Qz(t)},onComplete:{always:!0,handler:t=>{Vz(t),Gz(t),Kz(t)}},onRender:{always:!0,handler:t=>Zz(t)},onClick:(t,e)=>qz(t,e),onBeforeRemove:{always:!0,handler:t=>Yz(t)},onRemove:{always:!0,handler:t=>Xz(t)}},yM=globalThis.__SMBLS_BUILD_DROP_C_DialogHeader__?D("DialogHeader"):{extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>fm(t,"dialog.title","Title")},SquareButton:{if:gM,icon:"x",theme:"transparent",aria:{label:t=>fm(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},_M=globalThis.__SMBLS_BUILD_DROP_C_DialogFooter__?D("DialogFooter"):{display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{if:gM,text:t=>fm(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>fm(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var jT=/*@__PURE__*/$({},{Tooltip:()=>EM,TooltipHidden:()=>AM,TooltipLayer:()=>FT,TooltipParent:()=>vM});var Jz='[data-tooltip]:not([data-tooltip=""])',bM={top:1,bottom:1,left:1,right:1},MT={top:"bottom",bottom:"top",left:"right",right:"left"},ei=6,SM=new WeakMap,tW=0,Ee=t=>{let e=SM.get(t);return e||(e={id:"smbls-tooltip-"+ ++tW,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},SM.set(t,e)),e},BT=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},eW=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},nW=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},wM=(t,e)=>{let n=eW(t);if(!e||!n)return null;let o;try{o=e.closest(Jz)}catch{return null}if(!o||!n.contains(o))return null;for(let r=o;r&&r!==n;r=r.parentElement)if(nW(r))return null;return o},oW=(t,e)=>!!(e&&t.node&&t.node.contains(e)),rW=t=>{try{return t.matches(":focus-visible")}catch{return!0}},xM=(t,e)=>typeof t=="number"&&t>=0?t:e,hm=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},NT=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),sW=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},$T=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let o=n.split(/\s+/).filter(r=>r&&r!==e);o.length?t.setAttribute("aria-describedby",o.join(" ")):t.removeAttribute("aria-describedby")},iW=(t,e,n,o,r)=>{let s={top:t.top,bottom:r-t.bottom,left:t.left,right:o-t.right},i=f=>(f==="top"||f==="bottom"?e.height:e.width)+ei;s[n]<i(n)&&s[MT[n]]>=i(MT[n])&&(n=MT[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+ei:t.top-e.height-ei):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+ei:t.left-e.width-ei);let l=(f,u)=>Math.max(ei,Math.min(u-ei,f));return{left:l(a,o-e.width),top:l(c,r-e.height),side:n}},aW=t=>{let e=t.ownerDocument,n=e&&e.defaultView,o=e&&e.documentElement;return{width:o&&o.clientWidth||n&&n.innerWidth||0,height:o&&o.clientHeight||n&&n.innerHeight||0}},cW=t=>(t.title||"")+(t.description||""),dm=(t,e=0)=>{let o=Ee(t).shown;if(!o||!NT(t))return;if(!o.isConnected){pm(t);return}let r=t.node,s=t.state;if(r.textContent!==cW(s)){e<3&&setTimeout(()=>dm(t,e+1),0);return}let i=o.getBoundingClientRect(),a=r.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),f=aW(r),u=o.getAttribute("data-tooltip-placement"),d=bM[u]?u:bM[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=iW(i,{width:a.width,height:a.height},d,f.width,f.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},lW=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},kM=(t,e)=>{let n=Ee(t);hm(n),!(!NT(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&$T(n.shown,n.id),n.shown=e,sW(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),lW(()=>dm(t)))};function pm(t){let e=Ee(t);hm(e),e.shown&&$T(e.shown,e.id),e.shown=null,NT(t)&&t.state.open&&t.state.update({open:!1})}var um=(t,e)=>{let n=Ee(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let o=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(o===n.shown){hm(n);return}if(!o){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){pm(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,pm(t)},xM(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){kM(t,o);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,kM(t,o)},xM(t.tooltipDelay,250))},TM=t=>{let e=Ee(t);e.shown&&(e.dismissed=e.shown,pm(t))},FT=globalThis.__SMBLS_BUILD_DROP_C_TooltipLayer__?D("TooltipLayer"):{role:"tooltip",id:t=>Ee(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=Ee(e),o=BT(t.target),r=oW(e,o)?n.shown:wM(e,o);r===n.hover&&(r||!n.shown)||(n.hover=r,um(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Ee(e);n.hover&&(n.hover=null,um(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Ee(e),o=BT(t.target);n.shown&&o&&n.shown.contains(o)&&TM(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Ee(e),o=BT(t.target),r=o&&rW(o)?wM(e,o):null;r!==n.focus&&(n.focus=r,um(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Ee(e);n.focus&&(n.focus=null,um(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&TM(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Ee(e).shown&&dm(e)}},onWindowResize:(t,e)=>{Ee(e).shown&&dm(e)},onBeforeRemove:t=>{let e=Ee(t);hm(e),e.shown&&$T(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var EM=globalThis.__SMBLS_BUILD_DROP_C_Tooltip__?D("Tooltip"):{display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>Nt(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},AM=globalThis.__SMBLS_BUILD_DROP_C_TooltipHidden__?D("TooltipHidden"):{extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},vM=globalThis.__SMBLS_BUILD_DROP_C_TooltipParent__?D("TooltipParent"):{position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,o=e||n;if(!o)return;let r=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":r||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var UT=/*@__PURE__*/$({},{Avatar:()=>CM});var fW=t=>{let n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="32" fill="#71718A"/><text x="32" y="42" font-family="system-ui,sans-serif" font-size="28" font-weight="700" text-anchor="middle" fill="#fff">${String(t||"").trim().charAt(0).toUpperCase()||"?"}</text></svg>`;return"data:image/svg+xml;utf8,"+encodeURIComponent(n)},CM=globalThis.__SMBLS_BUILD_DROP_C_Avatar__?D("Avatar"):{extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=fW(n)},attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call("exec",t.text,t):t.key&&t.key!=="no-avatar"?t.key:""}};var VT=/*@__PURE__*/$({},{Range:()=>OM});var OM={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:aa("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:aa("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,n)=>{let o=t.call("exec",t[e],t);return(t.call("isFunction",o)?o(t,t.state):o!==void 0?o:n!==void 0?n:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var QT=/*@__PURE__*/$({},{Dropdown:()=>eB,DropdownDisclosure:()=>rB,DropdownList:()=>nB,DropdownParent:()=>oB,DropdownParentFocus:()=>sB,DropdownSiblingFocus:()=>iB});var Sm="hover",IM="focus",Xu="sibling",$o="disclosure",RM={menu:1,listbox:1,tree:1,grid:1,dialog:1},uW={DIV:1,SPAN:1,LABEL:1,P:1,STRONG:1,B:1,EM:1,SMALL:1,H1:1,H2:1,H3:1,H4:1,H5:1,H6:1},dW={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},pW='button, a[href], [role^="menuitem"], [role="option"]',hW={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},mm=new WeakMap,ym=new WeakMap,_m=new WeakMap,zT=new WeakMap,PM=new WeakSet,gW=0,_t=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},fc=(t,e)=>{let n=_t(t);return n?n.getAttribute(e):null},Rt=(t,e)=>{let n=_t(t);return!!n&&!!e&&(n===e||n.contains(e))},HT=t=>{let e=_t(t);return!!e&&e.hasAttribute("dropdown")},WT=t=>{let e=_t(t);return!!e&&e.tagName==="BUTTON"},gm=t=>WT(t)||fc(t,"role")==="button",DM=t=>{let e=_t(t);return!!e&&uW[e.tagName]===1&&!e.isContentEditable},MM=t=>{let e=_t(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},Zu=t=>{let e=fc(t,"role");return!!e&&e.indexOf("menuitem")===0&&MM(t)},mW=t=>{let e=_t(t);if(!e||!MM(t))return!1;if(dW[e.tagName]===1)return e.getAttribute("type")!=="hidden";if(e.tagName==="A"&&e.hasAttribute("href"))return!0;let n=e.getAttribute("tabindex");return n!==null&&parseInt(n,10)>=0},ni=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],Ae=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,GT=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},BM={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},NM=(t,e)=>{if(t[e]!==void 0)return!0;let n=BM[e];if(n!==void 0&&t[n]!==void 0)return!0;let o=t.attr;if(o&&typeof o=="object"&&o[e]!==void 0)return!0;if(e.indexOf("aria-")===0){let r=t.aria;if(r&&typeof r=="object"&&r[e.slice(5)]!==void 0)return!0}return!1},yW=(t,e)=>{let n=BM[e],o=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!o&&typeof o=="object"&&typeof o[e]=="function"},eo=(t,e,n)=>!e.hasAttribute(n)&&!NM(t,n),Rr=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},_W=(t,e)=>{let n=_t(t);if(n)for(let o in e)Rr(n,o,e[o])},bm=t=>{let e=_t(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},bW=t=>{let e=mm.get(t);return e||(e={id:"smbls-dropdown-"+ ++gW,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},mm.set(t,e)),e},LM=(t,e)=>!!e&&!!_t(e)&&!!t&&t[e.key]===e,SW=(t,e)=>{let n=null,o=null;if(e===Xu){let s=t.parent?ni(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(HT(s[i])){n=s[i];break}return(gm(t)||DM(t))&&(o=t),{panel:n,trigger:o}}let r=ni(t);for(let s=0;s<r.length;s++)if(HT(r[s])){n=r[s];break}if(gm(t))return{panel:n,trigger:t};for(let s=0;s<r.length;s++){let i=r[s];if(!(!_t(i)||i.key==="Input_trigger"||HT(i))){(gm(i)||DM(i))&&(o=i);break}}return{panel:n,trigger:o}},wW=t=>{let e=fc(t,"role");if(e&&RM[e]===1)return{el:t,role:e};let n=ni(t);for(let o=0;o<n.length;o++){let r=fc(n[o],"role");if(r&&RM[r]===1)return{el:n[o],role:r}}return null},pn=t=>{let e=Ae(t);if(!e||!_t(t))return null;let n=bW(t);if(n.trigger){let p=e===Xu?t.parent:t;if((n.trigger===t||LM(t,n.trigger))&&LM(p,n.panel))return n}let{panel:o,trigger:r}=SW(t,e);if(!o||!r)return n.trigger=n.panel=n.popup=null,null;n.trigger=r,n.panel=o;let s=e===$o?null:wW(o);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=_t(r),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&eo(r,i,"id")&&(a.id=c=n.id+"-trigger"),gm(r)||(eo(r,i,"role")&&(a.role="button"),eo(r,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&eo(r,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=_t(o),f=l.getAttribute("id");if(!f&&eo(o,l,"id")&&(f=n.id+"-panel",Rr(l,"id",f)),f&&eo(r,i,"aria-controls")&&(a["aria-controls"]=f),n.owns=eo(r,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=wm(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),_W(r,a),n.popupRole==="menu"&&c){let p=_t(n.popup);eo(n.popup,p,"aria-label")&&eo(n.popup,p,"aria-labelledby")&&Rr(p,"aria-labelledby",c)}r!==t&&e===IM&&fc(t,"tabindex")==="0"&&!yW(t,"tabindex")&&Rr(_t(t),"tabindex","-1");let u=GT(t),d=_t(u);return d&&!d.hasAttribute("tabindex")&&(NM(u,"tabindex")||Rr(d,"tabindex","-1"),eo(u,d,"aria-hidden")&&Rr(d,"aria-hidden","true")),oi(t,n),n},$M=t=>{let e=_t(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},FM=t=>Rt(t,$M(t)),wm=(t,e,n)=>{if(e.open!==null)return e.open;let o=Ae(t);return n||o===Sm||o===$o?!1:FM(t)},oi=(t,e,n)=>{let o=e.open===null?null:String(e.open);if(e.written.open!==o){e.written.open=o;let s=_t(t);s&&Rr(s,"data-dropdown-open",o)}if(!e.owns)return;let r=wm(t,e,n)?"true":"false";if(e.written.expanded!==r){e.written.expanded=r;let s=_t(e.trigger);s&&Rr(s,"aria-expanded",r)}},si=t=>{let e=ym.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},ym.set(t,e)),e},jM=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&_m.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let o=_m.get(e);o&&o.set(!0)},UM=(t,e)=>{let n=si(t);n.chosen=!0,jM(n,e)},VM=t=>{let e=si(t);if(e.settling=!1,e.chosen)return;let n=ni(t);for(let o=0;o<n.length;o++)if(Zu(n[o])){jM(e,n[o]);return}},HM=(t,e)=>{if(!e||!e.contains(t))return!1;let n=[];for(let r=t;r!==e;r=r.parentElement)n.push(r);n.push(e);let o=!1;for(let r=n.length-1;r>=0;r--){let s=typeof n[r].getAnimations=="function"?n[r].getAnimations():[];for(let i=0;i<s.length;i++)s[i].transitionProperty==="visibility"&&(s[i].finish(),o=!0)}return o},zM=(t,e)=>{let n=_t(t);if(!n)return;let o=n.ownerDocument.activeElement,r=bm(t);!r&&e&&n.ownerDocument.activeElement===o&&HM(n,_t(e))&&(r=bm(t));let s=t.parent;r&&s&&ym.has(s)&&UM(s,t)},xW=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?Zu:mW)},kW=(t,e,n)=>{if(n==="trigger"){let s=$M(t);(!Rt(t,s)&&!Rt(e.panel,s)||Rt(GT(t),s))&&bm(e.trigger);return}let o=xW(e);if(!o.length)return;let r=n==="last"?o[o.length-1]:null;if(!r)for(let s=0;s<o.length&&!r;s++)fc(o[s],"aria-checked")==="true"&&(r=o[s]);zM(r||o[0],e.panel)},KT=(t,e,n)=>{let o=_t(t),r=o&&o.ownerDocument;n&&!e.outside&&r?(e.outside=s=>{if(!_t(t)||!_t(t).isConnected){KT(t,e,!1);return}Rt(t,s.target)||Rt(e.panel,s.target)||le(t,e,!1)},e.outsideDoc=r,r.addEventListener("pointerdown",e.outside,!0)):!n&&e.outside&&(e.outsideDoc.removeEventListener("pointerdown",e.outside,!0),e.outside=e.outsideDoc=null)},WM=(t,e)=>{let n=_t(t),o=n&&n.ownerDocument&&n.ownerDocument.defaultView;if(!o||typeof o.Event!="function")return;let r=new o.Event("toggle");Object.defineProperty(r,"newState",{value:e?"open":"closed"}),Object.defineProperty(r,"oldState",{value:e?"closed":"open"}),n.dispatchEvent(r)},uc=(t,e,n)=>{let o=e.open===!0;if(e.open=!0,oi(t,e),Ae(t)===$o){KT(t,e,!0);let r=_t(e.panel);r&&HM(r,r),o||WM(t,!0)}n&&kW(t,e,n)},le=(t,e,n)=>{let o=e.open===!0;e.open=!1,oi(t,e),e.outside&&KT(t,e,!1),n&&bm(e.trigger),o&&Ae(t)===$o&&WM(t,!1)},TW=t=>{let e=t.__ref;if(!e||Ae(t)!==$o||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=W(()=>{let o=t.open;o!=null&&Fr(()=>{let r=pn(t);!r||!!o==(r.open===!0)||(o?uc(t,r,null):le(t,r,FM(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},xm=(t,e,n)=>e.trigger===t?!Rt(e.panel,n):Rt(e.trigger,n)?!0:Rt(GT(t),n),qT=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(pW):null;return!!n&&Rt(t,n)},GM=(t,e,n)=>{let o=t.key;o==="Escape"||o==="Esc"?(t.preventDefault(),le(e,n,!0)):o==="Tab"&&n.popupRole==="menu"&&Rt(n.popup,t.target)&&le(e,n,!1)},km=t=>{Ae(t)===Xu&&t.parent&&PM.add(t.parent),pn(t),TW(t)},Tm=(t,e)=>{let n=pn(e);n&&(n.pressedOpen=wm(e,n))},EW=(t,e)=>{let n=mm.get(e);!n||!n.trigger||n.open!==!1||Ae(e)!==Sm||(n.open=null,oi(e,n))},Em=(t,e)=>{if(Ae(e)===$o){vW(t,e);return}if(t.defaultPrevented)return;let n=pn(e);if(!n)return;let o=t.target;if(Rt(n.panel,o)){if(Ae(e)!==Sm||!qT(n.panel,o))return;(n.open===!0||t.detail===0)&&le(e,n,!0);return}if(!xm(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?le(e,n,!0):uc(e,n,n.popupRole==="menu"?"first":"trigger")},Am=(t,e)=>{if(t.defaultPrevented)return;if(Ae(e)===$o){CW(t,e);return}let n=pn(e);if(!n)return;let o=t.target;if(Rt(n.panel,o)){GM(t,e,n);return}if(!xm(e,n,o))return;let r=t.key;if(r==="ArrowDown"||r==="Down"||r==="ArrowUp"||r==="Up")t.preventDefault(),uc(e,n,r==="ArrowUp"||r==="Up"?"last":"first");else if(r==="Escape"||r==="Esc"){if(!wm(e,n))return;t.preventDefault(),le(e,n,!1)}else(r==="Enter"||r===" "||r==="Spacebar")&&!WT(n.trigger)&&(t.preventDefault(),n.open===!0?le(e,n,!0):uc(e,n,n.popupRole==="menu"?"first":"trigger"))},AW=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),vW=(t,e)=>{let n=pn(e);if(!n)return;let o=t.target;if(Rt(n.panel,o)){n.open===!0&&!AW(t)&&e.keepOpen!==!0&&qT(n.panel,o)&&le(e,n,!0);return}if(t.defaultPrevented||!xm(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?le(e,n,!0):uc(e,n,"trigger")},CW=(t,e)=>{let n=pn(e);if(!n)return;let o=t.key;if(o==="Escape"||o==="Esc"){if(n.open!==!0)return;t.preventDefault(),le(e,n,!0);return}(o==="Enter"||o===" "||o==="Spacebar")&&!WT(n.trigger)&&!Rt(n.panel,t.target)&&xm(e,n,t.target)&&(t.preventDefault(),n.open===!0?le(e,n,!0):uc(e,n,"trigger"))},YT=(t,e)=>{let n=pn(e);n&&(n.open===null&&Rt(n.panel,t.target)&&(n.open=!0),oi(e,n))},Qu=(t,e)=>{let n=mm.get(e);if(!n||!n.trigger)return;let o=t.relatedTarget;if(Ae(e)===$o){n.open===!0&&o&&!Rt(e,o)&&!Rt(n.panel,o)&&le(e,n,!1);return}if(o&&(Rt(e,o)||Rt(n.panel,o))){n.open===null&&Rt(n.panel,o)&&(n.open=!0,oi(e,n));return}n.open=null,oi(e,n,!0)},KM=t=>{let e=t.parent;if(!e||!PM.has(e))return null;let n=ni(e);for(let o=n.indexOf(t)-1;o>=0&&n[o];o--)if(Ae(n[o])===Xu)return n[o];return null},XT=t=>{let e=KM(t),n=e?pn(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},qM=t=>{let e=KM(t);e&&pn(e)},YM=(t,e)=>{if(t.defaultPrevented)return;let n=XT(e);n&&GM(t,n.ctrl,n.rec)},XM=(t,e)=>{if(t.defaultPrevented||!qT(e,t.target))return;let n=XT(e);n&&le(n.ctrl,n.rec,!0)},ZM=(t,e)=>{let n=XT(e);n&&Qu(t,n.ctrl)},OW=(t,e)=>{let n=e.parent,o=Ae(n)?pn(n):null;if(o&&o.panel===e){le(n,o,!0);return}let r=_t(e),s=r&&r.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},QM=(t,e)=>{if(Ae(e.parent)&&pn(e.parent))return;let n=_t(e);n&&n===n.ownerDocument.activeElement&&n.blur()},RW=(t,e)=>{if(t.defaultPrevented)return;let n=hW[t.key];if(!n)return;let o=typeof e.lookdownAll=="function"?e.lookdownAll(Zu):[];if(!o.length)return;let r=-1;for(let i=0;i<o.length&&r===-1;i++)Rt(o[i],t.target)&&(r=i);let s;n==="first"?s=0:n==="last"?s=o.length-1:r===-1?s=n>0?0:o.length-1:s=(r+n+o.length)%o.length,t.preventDefault(),zM(o[s])},DW=(t,e)=>{let n=ni(e);for(let o=0;o<n.length;o++)if(Rt(n[o],t.target)){Zu(n[o])&&UM(e,n[o]);return}},LW=t=>{let e=t.parent;if(!e)return"0";let n=si(e),o=_m.get(t);if(!o){n.stop===null&&(n.stop=t.key);let r=n.stop===t.key;r&&(n.stopItem=t),n.ready&&!n.chosen&&!n.settling&&(n.settling=!0,queueMicrotask(()=>VM(e))),o=yn(r),_m.set(t,o)}return o.get()?"0":"-1"},IW=t=>{qM(t);let e=si(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&Zu(e.stopItem))&&VM(t)},PW=t=>{let e=zT.get(t),n=!e;n&&(e={tick:yn(0),seen:0,checked:!1},zT.set(t,e));let o=e.tick.get();return o===e.seen&&(e.checked=!!Fr(()=>t.isActive)),e.seen=o,n&&t.parent&&BW(t.parent),e.checked?"true":"false"},MW=(t,e)=>{if(e.checkRows.get(),!t.node){tB(t);return}let n=ni(t);for(let o=0;o<n.length;o++){let r=zT.get(n[o]);if(!r)continue;let s=!!n[o].isActive;s!==r.checked&&(r.checked=s,r.tick.set(r.tick.peek()+1))}},JM=t=>{let e=si(t);e.checks||(e.checkRows||(e.checkRows=yn(0)),e.checks=W(()=>MW(t,e),{label:"DropdownList.checks"}))},tB=t=>{let e=ym.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},BW=t=>{let e=si(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||JM(t)},NW=t=>{si(t).owned=!0},ri={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},ZT={opacity:0,visibility:"hidden"},eB=globalThis.__SMBLS_BUILD_DROP_C_Dropdown__?D("Dropdown"):{attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden",onComplete:{always:!0,handler:qM},onKeydown:YM,onClick:XM,onFocusout:ZM},nB=globalThis.__SMBLS_BUILD_DROP_C_DropdownList__?D("DropdownList"):{display:"flex",attr:{dropdown:!0},role:"menu",padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",listStyleType:"none",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",children:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},onKeydown:(t,e)=>{RW(t,e),YM(t,e)},onInit:{always:!0,handler:NW},onComplete:{always:!0,handler:IW},onRender:{always:!0,handler:JM},onBeforeRemove:{always:!0,handler:tB},onFocusin:DW,onClick:XM,onFocusout:ZM,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>LW(t),aria:{checked:t=>PW(t)},isActive:(t,e)=>e.active===t.key,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},':where([aria-checked="true"])':{style:{svg:{opacity:"1"}}},Icon:{name:"check",opacity:"0.1"},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},oB=globalThis.__SMBLS_BUILD_DROP_C_DropdownParent__?D("DropdownParent"):{position:"relative",zIndex:999,dropdownMode:Sm,":hover":{zIndex:1e3,"& [dropdown]":{...ri}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...ri}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...ZT}},onComplete:{always:!0,handler:km},onPointerdown:Tm,onPointerenter:EW,onClick:Em,onKeydown:Am,onFocusin:YT,onFocusout:Qu},rB=globalThis.__SMBLS_BUILD_DROP_C_DropdownDisclosure__?D("DropdownDisclosure"):{position:"relative",dropdownMode:$o,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...ri}},onComplete:{always:!0,handler:km},onPointerdown:Tm,onClick:Em,onKeydown:Am,onFocusout:Qu},sB=globalThis.__SMBLS_BUILD_DROP_C_DropdownParentFocus__?D("DropdownParentFocus"):{position:"relative",tabindex:"0",dropdownMode:IM,":focus-within":{zIndex:1e3,"& [dropdown]":{...ri}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...ri}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...ZT}},onComplete:{always:!0,handler:km},onPointerdown:Tm,onClick:Em,onKeydown:Am,onFocusin:YT,onFocusout:Qu,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>QM(t,e)},Dropdown:{onClick:(t,e)=>OW(t,e)}},iB=globalThis.__SMBLS_BUILD_DROP_C_DropdownSiblingFocus__?D("DropdownSiblingFocus"):{position:"relative",tabindex:"0",dropdownMode:Xu,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...ri}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...ri}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...ZT}},onComplete:{always:!0,handler:km},onPointerdown:Tm,onClick:Em,onKeydown:Am,onFocusin:YT,onFocusout:Qu,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>QM(t,e)}};var JT=/*@__PURE__*/$({},{Notification:()=>aB});var aB=globalThis.__SMBLS_BUILD_DROP_C_Notification__?D("Notification"):{display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var ii=Object.assign({},L0,I0,P0,M0,N0,U0,V0,H0,F0,z0,W0,j0,G0,K0,q0,Y0,X0,Z0,Q0,J0,tT,eT,rT,RT,DT,LT,PT,jT,UT,VT,QT,JT);function vm(t){if(t==null)return 0;if(typeof t!="object")return cB(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let o=0;o<t.length;o++)e=(e^vm(t[o]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let o=0;o<n.length;o++)e=(e^cB(n[o]))*16777619,e=(e^vm(t[n[o]]))*16777619;return e>>>0}function cB(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function Cm(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!Cm(t[r],e[r]))return!1;return!0}let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++){let s=n[r];if(!Object.prototype.hasOwnProperty.call(e,s)||!Cm(t[s],e[s]))return!1}return!0}function tE(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let n=!1,o={};for(let r in t)if(r in e){let s=tE(t[r],e[r]);o[r]=s,s!==t[r]&&(n=!0)}else o[r]=t[r];for(let r in e)r in t||(o[r]=e[r],n=!0);return n?o:t}function eE(t,e,n){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(n||(n=new WeakSet),n.has(e))return t;n.add(e);for(let o in e){let r=e[o];r&&typeof r=="object"&&!Array.isArray(r)&&t[o]&&typeof t[o]=="object"&&!Array.isArray(t[o])?eE(t[o],r,n):t[o]=r}return t}function Dr(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function pc(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Ju(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Dr(e)}function lB(t){return t.split(`
89
+ `).map(Dr).join(`
90
+ `)}var fB={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function uB(t,e){let n=fB[t]||Dr(t),o=Ju(e),r=`_${n}-${o}`,s=pc(t),i=UW[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${r}{${a}}`;return`${r}
91
+ ${c}`}var UW={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"},VW="@media (hover: hover)",HW=/(?:^|[^\\]):hover(?![\w-])/,dB=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function pB(t){let e=t.split("\0"),n=[],o=[];for(let r=0;r+1<e.length;r+=2){let s=e[r],i=e[r+1];if(!i||dB(i))continue;let a=fB[s]||Dr(s),c=Ju(i),l=`_${a}-${c}`,f=pc(s);n.push(l),o.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+o.join(`
92
+ `)}function hB(t,e,n){let o=t+e,r=`_c${Dr(o)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(dB(u)||(i+=`${pc(f)}:${u};`))}let a,c;if(t.startsWith("@media"))c=`.${r}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(":")||t.startsWith("&")||t.startsWith("[")&&!t.includes("&")){let l=t.startsWith("&")?t.slice(1):t;c=`.${r}${l}`,a=`${c}{${i}}`}else t.includes("&")?(c=t.replace("&",`.${r}`),a=`${c}{${i}}`):(c=`.${r} ${t}`,a=`${c}{${i}}`);return n!==!1&&HW.test(c)&&(a=`${VW}{${a}}`),`${r}
93
+ ${a}`}var nE=null;function Rm(t){nE=t}var On={structuralHash:vm,deepEqual:Cm,mergeStructural:tE,overwriteDeep:eE,shortHash:Dr,toKebab:pc,sanitizeValue:Ju,batchShortHash:lB,atomicCssClass:uB,batchAtomicCss:pB,compoundCssClass:hB},gB=!1,Om=null;function mB(t){return Om||(Om=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(On.structuralHash=e.structuralHash),e.deepEqual&&(On.deepEqual=e.deepEqual),e.mergeStructural&&(On.mergeStructural=e.mergeStructural),e.overwriteDeep&&(On.overwriteDeep=e.overwriteDeep),e.shortHash&&(On.shortHash=e.shortHash),e.toKebab&&(On.toKebab=e.toKebab),e.sanitizeValue&&(On.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(On.batchShortHash=e.batchShortHash),e.atomicCssClass&&(On.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(On.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(On.compoundCssClass=e.compoundCssClass),gB=!0,nE&&e.batchAtomicCss&&nE({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Om)}function yB(){return gB}var td=/*@__PURE__*/$({},{BRENDER_REGISTRY_BLOCK:()=>ef,BRENDER_REGISTRY_TREE_BLOCK:()=>nf,BRENDER_STAMP_META:()=>rh,CDN_PROVIDERS:()=>Ye,DESIGN_SYSTEM_BLOCK:()=>af,DESIGN_SYSTEM_DEFERRED:()=>sf,DESIGN_SYSTEM_LINK:()=>rf,DOMQL_EVENTS:()=>L_,DOMQ_PROPERTIES:()=>Ho,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Ri,ENV:()=>tb,HTML_TAGS:()=>Bi,LIBRARY_PACKAGES:()=>oh,LIBRARY_SCOPES_KEY:()=>fs,METHODS:()=>Wo,METHODS_EXL:()=>Gc,NODE_ENV:()=>_n,OPTIONS:()=>vl,PACKAGE_MANAGER_TO_CDN:()=>er,PARSED_DOMQ_PROPERTIES:()=>Wc,POLYGLOT_LANG_STORAGE_KEY:()=>Gp,PROPS_METHODS:()=>zo,PROTOTYPE_KEYS:()=>ao,REVIVED_MARK:()=>Qc,STATE_DATA_MERGE_EXL:()=>wp,STATE_METHODS:()=>Vr,STATE_PROPERTIES:()=>R_,SVG_TAGS:()=>kv,TYPES:()=>Fc,UNIVERSAL_RESERVED_KEYS:()=>Wp,__resetBuiltinMethodWarnings:()=>qS,addCaching:()=>gp,addContext:()=>hp,addExtend:()=>xb,addExtends:()=>Mn,addItemAfterEveryElement:()=>m_,addProtoToArray:()=>Vc,addRef:()=>up,alternateLinkKey:()=>ps,applyCSS:()=>iE,applyDependentState:()=>Fb,applyEvent:()=>$p,applyEventUpdate:()=>Fp,applyExtends:()=>Av,applyProps:()=>dl,arrayContainsOtherArray:()=>l_,arraysEqual:()=>__,arrayzeValue:()=>ms,bareLibraryKey:()=>Gl,bindLibraryGlobalScopes:()=>ql,brenderStampMeta:()=>ow,buildImgSrcset:()=>ff,buildSourcesAndImg:()=>uf,cache:()=>gS,call:()=>AS,captureSnapshot:()=>CS,checkForStateTypes:()=>Mb,checkIfInherits:()=>Sp,checkIfStringIsInArray:()=>w_,clone:()=>F_,cloneAndMergeArrayExtend:()=>rl,cloneFunction:()=>ab,collectExtendsList:()=>Ni,concatAddExtends:()=>bb,copyJavaScriptToClipboard:()=>lw,copyStringToClipboard:()=>cw,createBasedOnType:()=>fp,createElement:()=>Pb,createElementExtends:()=>Jd,createExtends:()=>il,createExtendsFromKeys:()=>$i,createExtendsStack:()=>op,createIfConditionFlag:()=>cb,createInheritedState:()=>Bb,createKey:()=>nl,createNestedObject:()=>K_,createNestedObjectByKeyPath:()=>$b,createObjectWithoutPrototype:()=>Kd,createParent:()=>dp,createPath:()=>pp,createProps:()=>pl,createPropsStack:()=>cp,createPrunedLibraryIconLoader:()=>lh,createRoot:()=>Ib,createScope:()=>Ub,createSnapshotId:()=>el,currentPathname:()=>as,customDecodeURIComponent:()=>O_,customEncodeURIComponent:()=>C_,cutArrayAfterValue:()=>h_,cutArrayBeforeValue:()=>p_,debounce:()=>ol,debounceOnContext:()=>sb,decodeBrenderRegistry:()=>of,decodeNewlines:()=>v_,deepClone:()=>ut,deepContains:()=>W_,deepDefaults:()=>Qi,deepDestringifyFunctions:()=>he,deepExtend:()=>Qd,deepMerge:()=>mt,deepMergeExtends:()=>Bn,deepStringifyFunctions:()=>Yc,defineSetter:()=>TS,designSystemBlock:()=>nw,designSystemLink:()=>ew,destringifyGlobalScope:()=>qr,detectHeightOnInit:()=>PS,detectInfiniteLoop:()=>Z_,document:()=>wt,encodeNewlines:()=>A_,error:()=>ss,escapeHtml:()=>j,escapeRegExp:()=>x_,evaluateText:()=>tr,excludeKeysFromObject:()=>J_,exec:()=>bt,exposeBagGlobalScopes:()=>Yl,extendCachedRegistry:()=>Sb,extendStackRegistry:()=>al,extractArrayExtend:()=>ll,faviconLinkKey:()=>rr,fetchLibraryData:()=>ea,fibonacciNumberByIndex:()=>MS,fileEntryUrl:()=>sh,filterArrays:()=>b_,filterArraysFast:()=>S_,finalizeExtends:()=>rp,findClosestNumber:()=>ih,findClosestNumberInFactory:()=>aw,findInheritedState:()=>bp,findKeyPosition:()=>T_,flattenExtend:()=>Fi,formatDate:()=>IS,generateHash:()=>Yd,generateHeadArrayTags:()=>na,generateKey:()=>tl,generateMetaTags:()=>sw,get:()=>SS,getActiveRoute:()=>vT,getCDNDirUrl:()=>Zp,getCDNUrl:()=>wn,getCapitalCaseKeys:()=>Tb,getCdnProviderFromConfig:()=>Xi,getChildStateInKey:()=>_p,getChildren:()=>kS,getContext:()=>Bl,getCookie:()=>pb,getDB:()=>Ul,getEmotionStylesheet:()=>gw,getExtendsInElement:()=>kb,getExtendsStack:()=>sl,getExtendsStackRegistry:()=>Zd,getFrequencyInArray:()=>f_,getFunctionSource:()=>De,getHashedExtend:()=>cl,getImportMapScript:()=>LS,getInObjectByPath:()=>X_,getLocalStorage:()=>gb,getNev:()=>rb,getPageMetadata:()=>iw,getParentStateInKey:()=>yp,getPath:()=>Rl,getQuery:()=>Vl,getRef:()=>xS,getRoot:()=>Il,getRootContext:()=>Ml,getRootData:()=>Pl,getRootState:()=>Ll,getRootStateInKey:()=>mp,getSpreadChildren:()=>Eb,global:()=>i_,hasFunction:()=>ee,hasHandlerPlugin:()=>Pi,hasOwnProperty:()=>V_,hashContent:()=>xn,inheritChildExtends:()=>ep,inheritChildPropsExtends:()=>tp,inheritParentProps:()=>hl,inheritRecursiveChildExtends:()=>np,init:()=>no,initProps:()=>Db,insertAfterImportMap:()=>rw,installPrunedLibraryIconLoader:()=>lf,is:()=>pe,isArray:()=>P,isBoolean:()=>Fd,isBuiltinElementMethod:()=>D_,isContextComponent:()=>Ab,isCyclic:()=>Q_,isDOMNode:()=>ue,isDate:()=>Ud,isDefined:()=>Nt,isDevelopment:()=>Ko,isEmpty:()=>Wd,isEmptyObject:()=>H_,isEqualDeep:()=>Gd,isFailedRevival:()=>Gr,isFunction:()=>I,isHtmlElement:()=>$c,isLazyFunction:()=>j_,isLocal:()=>ob,isLoudDevRuntime:()=>J,isMalformedDependency:()=>cs,isMethod:()=>vS,isMobile:()=>ub,isNode:()=>io,isNot:()=>c_,isNotProduction:()=>co,isNull:()=>jd,isNumber:()=>de,isObject:()=>k,isObjectLike:()=>U,isPhoto:()=>BS,isPolyglotRetranslatableKey:()=>_l,isPolyglotWritableKey:()=>Xr,isProduction:()=>Go,isProtectedElementMethod:()=>Hr,isRevived:()=>Kr,isStaging:()=>nb,isState:()=>Nb,isString:()=>E,isStringFunction:()=>Ii,isStringTag:()=>Zc,isTest:()=>qd,isTesting:()=>eb,isUndefined:()=>Gt,isUniversallyReservedKey:()=>OS,isUnresolvableDependency:()=>nr,isValidDependencyMap:()=>ls,isValidHtmlTag:()=>yb,isWrappedLibrary:()=>Ie,joinArrays:()=>Ci,jointStacks:()=>wb,jsonForScript:()=>ts,keys:()=>Hp,lastLevel:()=>lm,lastPathname:()=>ac,libraryIconPruneReplacer:()=>hw,libraryIdentifier:()=>ah,libraryPackageSpecs:()=>Ji,librarySpecsFor:()=>nh,loadCssFile:()=>jS,loadJavascript:()=>US,loadJavascriptFile:()=>NS,loadJavascriptFileEmbedSync:()=>FS,loadJavascriptFileSync:()=>$S,loadLazy:()=>ST,loadRemoteCSS:()=>VS,loadRemoteScript:()=>Zi,log:()=>ES,logGroupIf:()=>fb,logIf:()=>lb,lookdown:()=>_S,lookdownAll:()=>bS,lookup:()=>yS,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>z_,map:()=>$_,mapStringsWithContextComponents:()=>fl,markPolyglotSeeded:()=>$n,markRevived:()=>Li,markTextNotReady:()=>Ki,matchRoute:()=>TT,matchesComponentNaming:()=>Nn,memoize:()=>ib,merge:()=>Ot,mergeSharedLibraries:()=>Xl,mergeSharedLibraryDesignSystems:()=>Zl,mergeSharedLibraryTranslations:()=>Ql,mergeStateData:()=>Yo,nextElement:()=>$l,normalizeIgnoreList:()=>Kl,normalizeLibraryKey:()=>us,objectToString:()=>Xc,objectizeStringProperty:()=>ul,overwrite:()=>Jc,overwriteDeep:()=>ne,overwriteShallow:()=>Yr,overwriteState:()=>jb,parse:()=>zp,parseDeep:()=>Cl,parseQuery:()=>ET,parseRoutePattern:()=>cm,payloadHasComputedIconName:()=>ch,pickStartLang:()=>Yp,pickupElementFromProps:()=>ip,pickupPropsFromElement:()=>sp,planLibraryIconPrune:()=>pw,polyglotAddressLang:()=>Kp,polyglotFallbackLang:()=>ho,polyglotLangStorageKey:()=>Gi,polyglotLanguages:()=>Le,polyglotSeededKeys:()=>Xo,polyglotStartLang:()=>is,polyglotStartRule:()=>qp,polyglotStartupScript:()=>RS,previousElement:()=>Fl,promoteActiveRootState:()=>zi,propExists:()=>Ob,propertizeElement:()=>ap,propertizeUpdate:()=>Cb,readBrenderStamp:()=>es,readJsonDataBlock:()=>jn,reinit:()=>sE,remove:()=>AC,removeChars:()=>fw,removeCookie:()=>hb,removeDuplicateProps:()=>ml,removeDuplicatesInArray:()=>Oi,removeFromArray:()=>u_,removeFromObject:()=>G_,removeNestedKeyByPath:()=>q_,removeValueFromArray:()=>Uc,removeValueFromArrayAll:()=>g_,reorderArrayByValues:()=>y_,repairLegacyArrowScopePreamble:()=>Kc,replaceLiteralsWithObjectFields:()=>Kt,replaceOctalEscapeSequences:()=>E_,resolveAsset:()=>ge,resolveFileReferences:()=>gs,resolveHandler:()=>Mi,resolveRouterElement:()=>qu,resolveSharedLibraries:()=>Jl,returnValueAsText:()=>lp,router:()=>Cn,runGuards:()=>QP,runPluginHook:()=>qo,saveScrollPosition:()=>Hu,scopeElementParam:()=>Vd,scopeReceiverExpression:()=>B_,scratchSystem:()=>wa,scratchUtils:()=>lr,self:()=>a_,set:()=>Bs,setActiveRootState:()=>Dl,setCookie:()=>db,setHashedExtend:()=>Xd,setInObjectByPath:()=>Y_,setLocalStorage:()=>mb,setNodeStyles:()=>Vp,setProps:()=>wS,setPropsPrototype:()=>gl,sharedLibrary:()=>KS,sharedLibraryFiles:()=>ds,splitPackageSpecifier:()=>Hl,spotByPath:()=>Ol,srcsetFor:()=>oa,stringIncludesAny:()=>zc,stringToObject:()=>U_,stripVersionRangePrefix:()=>zl,swapItemsInArray:()=>d_,syncProps:()=>yl,themeColorKey:()=>hs,toCamelCase:()=>go,toDashCase:()=>cf,toDescriptionCase:()=>dw,toPriorityOrder:()=>Ge,toTitleCase:()=>uw,toggleFullscreen:()=>DS,triggerEventOn:()=>po,triggerEventOnUpdate:()=>hS,trimStringFromSymbols:()=>k_,unstackArrayOfObjects:()=>jc,update:()=>Rb,updateProps:()=>Lb,variables:()=>jl,verbose:()=>Wi,warn:()=>Nl,warnLibraryAliasCollision:()=>ta,window:()=>R});var WW={group:"group",imagePair:"image-pair","image-pair":"image-pair",old:"old",new:"new"},GW=/^(?:\*|\.?-?[_a-zA-Z][\w-]*)$/,KW=/^-?[_a-zA-Z][\w-]*$/,qW=new Set(["root","*"]),YW="@media (prefers-reduced-motion: no-preference)",XW="@media (prefers-reduced-motion: reduce)",ZW=(t,e)=>{let n=E(t)?{animation:t}:k(t)?t:null;if(!n)return null;let o;try{o=Zt(n,e)}catch{return null}let r={};for(let s in o){let i=o[s];(E(i)||de(i))&&(r[s]=i)}return Object.keys(r).length?r:null},_B=(t,e,n={})=>{if(!k(t))return null;if(globalThis.__SMBLS_BUILD_DROP_F_viewTransition__)return Object.keys(t).length&&Ht("viewTransition")||null;let o=!n.scope||n.scope===":root",r=l=>{n.verbose!==!1&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls] designSystem.viewTransition: "+l))},s={key:"viewTransition",state:{},context:{designSystem:e}},i={},a={},c=(l,f,u)=>{for(let d in f){if(d==="types"&&!u)continue;let p=WW[d];if(!p){r(`${l}.${d} is not a view-transition part (group, imagePair, old, new)`);continue}let g=`${u}::view-transition-${p}(${l})`,h=ZW(f[d],s);h&&(i[g]=h,a[g]={animation:"none"})}};for(let l in t){let f=t[l];if(k(f)){if(!GW.test(l)){r(`"${l}" is not a view-transition name`);continue}if(!o&&qW.has(l)){r(`"${l}" belongs to the document's primary app; a scoped app (${n.scope}) emits its own names only`);continue}if(c(l,f,""),k(f.types))for(let u in f.types){if(!KW.test(u)||!k(f.types[u])){r(`${l}.types.${u} is not a view-transition type with parts`);continue}c(l,f.types[u],`:root:active-view-transition-type(${u})`)}}}return Object.keys(i).length?{[YW]:i,[XW]:a}:null};var QW=L(),SB=(t=QW,e)=>{let n=k(e.localFile)?e.localFile:{},o=ut(n.designSystem||{});return mt(t,o,re)},JW={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Dm=(t,e)=>{let n=!e||e===":root",o={};for(let r in t)if(r.startsWith("@media")){let s=n?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;o[r]={[s]:t[r]}}else n?o[r]=t[r]:o[`${e}${r}, ${r} ${e}`]=t[r];return o},oE=(t,e)=>{t.CSS_MEDIA_VARS&&At(Dm(t.CSS_MEDIA_VARS,e));let n=Ps(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&At(n)},wB=(t,e)=>{let n=_B(t.viewTransition,t,{scope:e,verbose:t.verbose});n&&At(n)},Lm=t=>{if(typeof window<"u"&&window.location)try{let e=new URLSearchParams(window.location.search).get("globalTheme");if(e)return e}catch{}return t},bB=(t,e)=>{t.useVariable&&(At({[e]:t.CSS_VARS}),oE(t,e)),t.useReset&&At(t.reset);let n=t.animation;if(n){let o={};for(let r in n)o[`@keyframes ${r}`]=n[r];At(o)}wB(t,e)},xB=(t,e,n,o,r)=>{t.useFontImport&&At(yf(t.font,t.files));let s=null;return r?cu(r):n.recordCss?s=au(()=>bB(t,e)):bB(t,e),(o.svg||t.useSvgSprite)&&Kf(t.svg,{document:n.document}),(o.icons||t.useIconSprite)&&Is(t.icons,{document:n.document}),s},no=(t,e=JW)=>{let n=SB(t||{},e),o=e.scopeSelector||":root",r=Lm(e.globalTheme),s=Bs({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:r,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...n},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=o);let i={svg:!!t.svg,icons:!!t.icons},a=xB(s,o,e,i);return a&&typeof e.recordCss=="function"&&e.recordCss({rules:a,sprites:i}),s},rE=(t,e,n,o)=>{let r=n.scopeSelector||":root";if(Zh(t.config,e),n.files!==void 0&&(e.files=n.files),n.assets!==void 0&&(e.assets=n.assets),n.themeRoot!==void 0&&(e.themeRoot=n.themeRoot),ir(e),ar(e),eu(e),e.__svgCache={},o){ht(e);try{tu("font",o)}finally{dt()}}ht(e);try{xB(e,r,n,t.sprites||{},t.rules)}finally{dt()}return e},Im={},sE=(t,e=Im)=>{let n=SB(t||{},e),o=e.scopeSelector||":root",r=Bs({verbose:!1,...n});return e.preventInject||(At({[o]:r.CSS_VARS}),oE(r,o),At(r.reset),wB(r,o)),r},iE=(t,e=Im)=>{At(t)},t9=(t,e=Im)=>{let n=e.scopeSelector||":root";At({[n]:t.CSS_VARS}),oE(t,n)};var e9=(t,e=Im)=>{};var kB=10,n9=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return!!e&&typeof e.requestAnimationFrame=="function"},o9=t=>{try{let e=t.defaultView;return e&&e.frameElement||null}catch{return null}},r9=t=>{let e=t&&t.document||(typeof document<"u"?document:null);if(!e)return()=>!0;let n=!!e.defaultView,o=o9(e);return()=>!(n&&!e.defaultView||o&&!o.isConnected)},TB=Symbol("smbls.bootGone"),EB=t=>{let e,n={live:r9(t),dead:!1,gone:new Promise(o=>{e=o}),lost(){n.dead||(n.dead=!0,e(TB))}};return n},hc=t=>t?t.dead?!1:t.live()?!0:(Nu(t),!1):!0,s9=(t,e)=>e?Promise.race([t,e.gone]):t,Lr=async(t,e)=>await s9(t,e)!==TB&&hc(e),aE=t=>{if(!(!t||!t.__ref))try{ln(t)}catch{}},AB=new WeakSet,gc=t=>(AB.add(t),t),ed=t=>!!t&&typeof t=="object"&&AB.has(t),vB=t=>{let e=t&&typeof t=="object"?t.firstRender:void 0;if(e===!1||!n9(t))return null;if(e===void 0||e===!0)return{budget:kB,progressive:!1};if(e&&typeof e=="object"){let o=e.budget===void 0?kB:Jn(e.budget);return o?{budget:o,progressive:e.progressive===!0}:null}let n=Jn(e);return n?{budget:n,progressive:!1}:null},cE=new WeakMap,lE=(t,e)=>(cE.set(t,e),e),fE=t=>{cE.delete(t)},CB=t=>{let e=t&&cE.get(t);return!e||e.routeTaken?null:(e.routeTaken=!0,e)},i9=Object.freeze({deferAttach:!0}),OB=async(t,e,n,o,r)=>{let s=r.lease||null;if(await to(),!hc(s))return null;let i=o.mountYield;i===void 0&&(o.mountYield=r.budget);let a=o.mountWhole;a===void 0&&(o.mountWhole=!r.progressive),r.pageOptions={mountYield:o.mountYield,mountWhole:o.mountWhole};let c;r.commit=new Promise(d=>{c=d}),r.committed=!1;let l=!r.progressive;lE(n,r);let f=Ks(),u=null;s&&(n.__mountLease=s);try{if(u=Wt(t,e,n.key,o,l?i9:void 0),!await Lr(Bo(u),s)||r.routeReady&&!await Lr(r.routeReady,s)||!await Lr(Te(),s))return Pm(u);for(;!vr();)if(!await Lr(Te(),s))return Pm(u);return l&&Tr(u),r.committed=!0,c(),r.page&&await Bo(r.page),await Te(),u}finally{r.committed=!0,c(),f(),o.mountYield=i,o.mountWhole=a,s&&(n.__mountLease=null),fE(n)}},Pm=t=>(aE(t),null);var DB=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,a9=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},dE={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},c9=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),o=t;for(let r of n){if(!o||!o[r])return null;o=o[r]}return o},nd=(t,e)=>(qu||c9)(t,e),l9=["manual","auto","restore"],uE=new WeakMap,RB=(t,e)=>{let n=e.claims[e.claims.length-1],o=n?n.value:e.found;t.scrollRestoration!==o&&(t.scrollRestoration=o)},f9=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!l9.includes(n)){if(t.verbose!==!1){let o=typeof n=="string"?JSON.stringify(n):`a ${typeof n}`;globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls/router] router.scrollRestoration must be 'manual', 'auto' or 'restore', got ${o} \u2014 the browser default stays`)}return}try{let o=t.window||R,r=o&&o.history;if(!r||!("scrollRestoration"in r))return;let s=uE.get(r);s||(s={found:r.scrollRestoration,claims:[]},uE.set(r,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),RB(r,s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{let a=s.claims.indexOf(i);if(a!==-1){s.claims.splice(a,1),s.claims.length||uE.delete(r);try{RB(r,s)}catch{}}})}catch{}}},u9=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=Hu,o=t.window||R;if(typeof n!="function"||!o||typeof o.addEventListener!="function")return;let r=t.document||o.document,s=()=>n(o),i=()=>{r.visibilityState==="hidden"&&n(o)};o.addEventListener("pagehide",s);let a=!!r&&typeof r.addEventListener=="function";a&&r.addEventListener("visibilitychange",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{o.removeEventListener("pagehide",s),a&&r.removeEventListener("visibilitychange",i)})},LB=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=dE:e.router=Ot(e.router||{},dE);let n=e.router;f9(e,n),u9(e,n);let o=(i,a)=>{let c=i.context?.window||R,l=a9(n);if(!l){if(!c.location)return;let{pathname:u,search:d,hash:p}=c.location;u=DB(u),l=u+d+p}let f=i;if(n.customRouterElement){let u=nd(i,n.customRouterElement);u&&(f=u,i.routes&&(f.routes=i.routes))}if(f.routes)return Cn(l,f,{},{initialRender:!0,pushState:!1,...a})},r=async(i,a)=>{let c=CB(i.context);if(c)return d9(i,c,o);await o(i)},s=!Gt(t.onRenderRouter);return n&&n.initRouter&&!s&&(t.onRenderRouter=(i,a)=>e.__firstNavigation=r(i,a)),p9(e,n),n},d9=(t,e,n)=>{let o;return e.routeReady=new Promise(s=>{o=s}),(async()=>{try{if(await to(),!t.__ref||!hc(e.lease))return;let s=n(t,e.progressive?{mountOptions:e.pageOptions}:{mountOptions:e.pageOptions,firstView:e});await Te(),o(),await s}finally{o()}})()},pE=(t,e)=>{if(e.router===!1)return;let n=e.router||dE;if(!n.popState)return;let o=e.utils&&e.utils.router?e.utils.router:Cn,r=e.window||R,s=async i=>{let{pathname:a,search:c,hash:l}=r.location;a=DB(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=nd(t,n.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};r.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>r.removeEventListener("popstate",s))},p9=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return mt(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};var yE=/*@__PURE__*/$({},{components:()=>gE,functions:()=>Fo});var mE=/*@__PURE__*/$({},{AlertTemplate:()=>Wm,ConfirmTemplate:()=>zm,CustomTemplate:()=>Km,ModalLayer:()=>Hm,ModalRoot:()=>Vm,PromptTemplate:()=>Gm,windowsComponents:()=>gE});var hE=/*@__PURE__*/$({},{alertDialog:()=>jm,closeAllModals:()=>$m,closeModal:()=>Bm,confirmDialog:()=>Fm,getLayer:()=>Mm,openModal:()=>Nm,promptDialog:()=>Um,windowsFunctions:()=>Fo});function at(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function mc(t){let e=t;for(;e;){if(e.key==="ModalRoot")return e;if(e.ModalRoot&&e.ModalRoot.__ref)return e.ModalRoot;e=e.parent}let n=t?.getRoot?.();return n?.ModalRoot?n.ModalRoot:typeof globalThis<"u"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function Mm(){return at(this)}var h9=(t,e)=>{let n=t&&t["ModalLayer_"+e],o=n?.node||n?.__ref?.node;!o||typeof o.style?.setProperty!="function"||(o.style.setProperty("display","none","important"),o.style.setProperty("opacity","0","important"),o.style.setProperty("visibility","hidden","important"),o.style.setProperty("pointer-events","none","important"))},IB=(t,e)=>{let n=t&&t["ModalLayer_"+e],o=n?.node||n?.__ref?.node;!o||typeof o.style?.removeProperty!="function"||(o.style.removeProperty("display"),o.style.removeProperty("opacity"),o.style.removeProperty("visibility"),o.style.removeProperty("pointer-events"))};function Bm(t){let e=mc(this);if(!e)return;let n=e.state?.stack||[];if(!n.length)return;let o,r,s;if(t){if(s=[],o=n.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),o.length===n.length)return;r=n.filter(i=>i.id===t)}else o=n.slice(0,-1),r=n.slice(-1),s=[n.length-1];e.state.update({stack:o});for(let i of s)h9(e,i);for(let i of r)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function Nm(t={}){let e=mc(this);if(!e)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[windows] openModal: ModalRoot is not mounted on the app root. Add `ModalRoot: {}` to your shell tree and import windowsComponents into context."),null;e.__modalIdCounter=(e.__modalIdCounter||0)+1;let n=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,o={id:n,template:t.template||"custom",title:t.title,message:t.message,icon:t.icon,confirmText:t.confirmText,cancelText:t.cancelText,okText:t.okText,confirmTheme:t.confirmTheme,placeholder:t.placeholder,defaultValue:t.defaultValue,dismissOnBackdrop:t.dismissOnBackdrop,content:t.content,width:t.width,maxWidth:t.maxWidth,maxHeight:t.maxHeight,onConfirm:t.onConfirm,onCancel:t.onCancel,onOk:t.onOk,onClose:t.onClose},r=e.state?.stack||[];if(r.length>=5)return console.warn("[windows] openModal: stack already at the 5-layer maximum, dropping the new layer. Close some modals first."),null;let s=r.length;return IB(e,s),e.state.update({stack:[...r,o]}),n}function $m(){let t=mc(this);if(!t)return;let e=t.state?.stack;if(!e?.length)return;let n=e.slice();t.state.update({stack:[]});for(let o=n.length-1;o>=0;o--){let r=n[o];if(typeof r?.onClose=="function")try{r.onClose()}catch(s){console.warn("[windows] onClose threw:",s)}}}function Fm(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function jm(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function Um(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var Fo={openModal:Nm,closeModal:Bm,closeAllModals:$m,confirmDialog:Fm,alertDialog:jm,promptDialog:Um,getLayer:Mm};var g9=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),PB=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(g9),n=[];for(let o=0;o<e.length;o++){let r=e[o];(r.offsetParent!==null||r===document.activeElement)&&n.push(r)}return n},MB=t=>{let e=t.state?.stack||[];if(!e.length)return null;let n=t["ModalLayer_"+(e.length-1)];return n?.node||n?.__ref?.node||null},Vm={tag:"div",position:"fixed",inset:"0",zIndex:"2000",pointerEvents:"none",state:{stack:[]},subscribeTo:["stack"],ModalLayer_0:{__slotIndex:0,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[0]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_1:{__slotIndex:1,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[1]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_2:{__slotIndex:2,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[2]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_3:{__slotIndex:3,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[3]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_4:{__slotIndex:4,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[4]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},onInit:(t,e)=>{if(typeof window>"u")return;globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=t;let n=t.context;if(n){n.functions||(n.functions={});for(let c in Fo)c in n.functions||(n.functions[c]=Fo[c])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let o=c=>{if(typeof c?.onCancel=="function")try{c.onCancel()}catch(l){console.warn("[windows] onCancel threw:",l)}if(typeof c?.onClose=="function")try{c.onClose()}catch(l){console.warn("[windows] onClose threw:",l)}},r=()=>{let c=t.state?.stack||[];if(!c.length)return;let l=c.length-1,f=c[l];t.state.update({stack:c.slice(0,-1)});let u=t["ModalLayer_"+l],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),o(f)},s=c=>{let l=t.state?.stack;if(l?.length){if(c.key==="Tab"){let f=MB(t);if(!f)return;let u=PB(f);if(!u.length){c.preventDefault();let m=f.querySelector?.('[role="dialog"]')||f;try{m.focus?.()}catch{}return}let d=u[0],p=u[u.length-1],g=document.activeElement;if(!f.contains(g)){c.preventDefault();try{d.focus()}catch{}return}if(c.shiftKey&&g===d){c.preventDefault();try{p.focus()}catch{}}else if(!c.shiftKey&&g===p){c.preventDefault();try{d.focus()}catch{}}return}c.key!=="Escape"||c.defaultPrevented||l[l.length-1]?.dismissOnBackdrop!==!1&&(c.preventDefault(),r())}};window.addEventListener("keydown",s),t.__escHandler=s;let i=c=>{let l=t.state?.stack||[];if(c<0||c>=l.length)return;let f=l[c];t.state.update({stack:l.filter((p,g)=>g!==c)});let u=t["ModalLayer_"+c],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),o(f)},a=c=>{let l=t.state?.stack||[];if(!l.length)return;let f=c.target?.closest?.('[data-key="Close"]');if(f){for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u],p=d?.node||d?.__ref?.node;if(p&&p.contains(f)){c.preventDefault(),c.stopPropagation(),i(u);return}}return}for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u];if((d?.node||d?.__ref?.node)===c.target){if(l[u]?.dismissOnBackdrop===!1)return;c.preventDefault(),c.stopPropagation(),i(u);return}}};document.addEventListener("click",a,!0),t.__clickDelegate=a},onUpdate:t=>{if(typeof window>"u")return;let n=(t.state&&t.state.stack||[]).length,o=t.__prevStackLen||0;if(n!==o)if(t.__prevStackLen=n,t.__modalOpeners=t.__modalOpeners||[],n>o)t.__modalOpeners[n]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[n]||null,typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{let r=MB(t);if(!r)return;let i=PB(r)[0]||r.querySelector&&r.querySelector('[role="dialog"]')||r;try{i.focus&&i.focus()}catch{}});else{let r=null;for(let s=o;s>n;s--)t.__modalOpeners[s]&&(r=r||t.__modalOpeners[s]),t.__modalOpeners[s]=null;if(r&&typeof r.focus=="function"&&r.isConnected!==!1)try{r.focus()}catch{}}},onDestroy:t=>{typeof window>"u"||(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__===t&&(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=null),t.__escHandler&&(window.removeEventListener("keydown",t.__escHandler),delete t.__escHandler),t.__clickDelegate&&(document.removeEventListener("click",t.__clickDelegate,!0),delete t.__clickDelegate))}};var Hm={tag:"div",position:"fixed",inset:"0",alignItems:"center",justifyContent:"center",padding:"A",theme:"backdrop",transition:"opacity C defaultBezier",zIndex:(t,e)=>`${2e3+(t.__slotIndex||0)*10}`,display:(t,e)=>t.layer?"flex":"none",opacity:(t,e)=>t.layer?"1":"0",visibility:(t,e)=>t.layer?"visible":"hidden",pointerEvents:(t,e)=>t.layer?"auto":"none",ModalWindow:{attr:{role:"dialog","aria-modal":"true",tabindex:"-1","aria-labelledby":t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}},width:t=>at(t)?.width||"H",maxWidth:t=>at(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>at(t)?.maxHeight||"100%",animation:"modalIn",animationDuration:"D",animationTimingFunction:"springBezier",onClick:t=>t.stopPropagation(),onMousedown:t=>t.stopPropagation(),ModalHeader:{display:"none"},overflow:"visible",ConfirmTemplate:{hide:t=>at(t)?.template!=="confirm"},AlertTemplate:{hide:t=>at(t)?.template!=="alert"},PromptTemplate:{hide:t=>at(t)?.template!=="prompt"},CustomTemplate:{hide:t=>at(t)?.template!=="custom"}}};var yc=(t,e,n)=>at(t)?.[e]||n,m9=t=>{let e=at(t)?.icon;return e===null||e===!1},zm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>yc(t,"title","Are you sure?"),attr:{id:t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>m9(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>yc(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>yc(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>yc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let o=at(e);if(o?.onCancel)try{o.onCancel()}catch(r){console.warn("[windows] confirm.onCancel threw:",r)}e.call("closeModal",o?.id)}},ConfirmBtn:{extends:"Button",theme:t=>yc(t,"confirmTheme","primary"),text:t=>yc(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let o=at(e);if(o?.onConfirm)try{o.onConfirm()}catch(r){console.warn("[windows] confirm.onConfirm threw:",r)}e.call("closeModal",o?.id)}}}};var od=(t,e,n)=>at(t)?.[e]||n,Wm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>od(t,"title","Notice"),attr:{id:t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>od(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!od(t,"message",""),P:{tag:"p",margin:"0",text:t=>od(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>od(t,"okText","OK"),onClick:(t,e,n)=>{let o=at(e);if(o?.onOk)try{o.onOk()}catch(r){console.warn("[windows] alert.onOk threw:",r)}e.call("closeModal",o?.id)}}}};var _c=(t,e,n)=>at(t)?.[e]||n,Gm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=at(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let o=t.InputRow&&t.InputRow.node;o&&(o.value=t.scope.value)},onUpdate:(t,e)=>{let n=at(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let o=t.InputRow&&t.InputRow.node;o&&(o.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>_c(t,"title","Enter a value"),attr:{id:t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!_c(t,"message",""),P:{tag:"p",margin:"0",text:t=>_c(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>_c(t,"placeholder",""),value:(t,e)=>t.parent.scope?.value||"",onInput:(t,e,n)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,n)=>{if(t.key!=="Enter")return;t.preventDefault();let o=at(e),r=e.parent.scope?.value||"";if(o?.onConfirm)try{o.onConfirm(r)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",o?.id)}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>_c(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let o=at(e);if(o?.onCancel)try{o.onCancel()}catch(r){console.warn("[windows] prompt.onCancel threw:",r)}e.call("closeModal",o?.id)}},ConfirmBtn:{extends:"Button",theme:"primary",text:t=>_c(t,"confirmText","OK"),onClick:(t,e,n)=>{let o=at(e),r=e.parent.parent.scope?.value||"";if(o?.onConfirm)try{o.onConfirm(r)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",o?.id)}}}};var Km={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>at(t)?.title||"",hide:t=>!at(t)?.title,position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0",attr:{id:t=>{let e=at(t)?.id;return e?"modal-title-"+e:null}}},Slot:{tag:"div",flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",onInit:t=>{let e=W(()=>{let n=at(t),o=n?.content||null,r=n?.id||null;if(!o){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==r){t.__lastLayerId=r;try{t.set(o);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in Fo)i in s.functions||(s.functions[i]=Fo[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var BB={extends:"Button",theme:"tertiary"};var gE={ModalRoot:Vm,ModalLayer:Hm,ConfirmTemplate:zm,AlertTemplate:Wm,PromptTemplate:Gm,CustomTemplate:Km,"smbls.CancelButton":BB};var AE=/*@__PURE__*/$({},{components:()=>xE,functions:()=>TE});var kE=/*@__PURE__*/$({},{Dropdown:()=>Jm,DropdownList:()=>ty,DropdownParent:()=>ey,DropdownParentFocus:()=>ny,DropdownRoot:()=>Zm,DropdownSiblingFocus:()=>oy,DropdownTrigger:()=>Qm,dropdownComponents:()=>xE});var NB=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),y9=(t,e,n,o)=>{let r=NB(t,n,o),s=i=>r[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":r.bottom>=r.top?"bottom":"top"},_9=(t,e,n,o,r)=>{let s=NB(e,o,r),i=t==="top"||t==="bottom"?n.height+8:n.width+8;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i||a&&s[a]>s[t]?a:t};var _E=(t,e,n)=>{let o;return t==="bottom"?o=n-e.bottom-16:t==="top"?o=e.top-16:o=n-16,Math.max(40,Math.floor(o))},qm=(t,e,n)=>Math.max(e,Math.min(n,t)),jo=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:_E("center",null,g)}}let o=typeof window<"u"?window.innerWidth:1024,r=typeof window<"u"?window.innerHeight:768,s={width:Math.max(120,e?.width||0),height:Math.max(40,e?.height||0)};if(n==="center"){let g=_E("center",t,r),h=Math.min(s.height,g),m=qm((o-s.width)/2,8,Math.max(8,o-s.width-8)),y=qm((r-h)/2,8,Math.max(8,r-h-8));return{left:m,top:y,side:"center",align:"center",maxHeight:g}}let i,a;if(n==="auto")i=y9(t,s,o,r),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=_9(i,t,s,o,r)}let c=_E(i,t,r),l=Math.min(s.height,c),f,u;i==="bottom"||i==="top"?(a==="start"?f=t.left:a==="end"?f=t.right-s.width:f=t.left+(t.width-s.width)/2,u=i==="bottom"?t.bottom+8:t.top-l-8):(a==="start"?u=t.top:a==="end"?u=t.bottom-l:u=t.top+(t.height-l)/2,f=i==="right"?t.right+8:t.left-s.width-8);let d=Math.max(8,o-s.width-8),p=Math.max(8,r-l-8);return f=qm(f,8,d),u=qm(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},bc=t=>{switch(t){case"bottom":return"translateY(-6px)";case"top":return"translateY(6px)";case"left":return"translateX(6px)";case"right":return"translateX(-6px)";case"center":return"translateY(0px)";default:return"translateY(-6px)"}};var Ir={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},b9=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},bE=t=>t?.getRoot?.()?.DropdownRoot||null,S9=0,w9=()=>`dropdown_${++S9}_${Date.now().toString(36)}`;function Ym(t={}){let e=bE(this);if(!e)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[dropdown] openDropdown: DropdownRoot is not mounted on the app root. Add `DropdownRoot: {}` to your shell tree and import dropdown components into context."),null;let n=t.anchorEl?.node||t.anchorEl,o=t.anchorRect||b9(n);if(!o)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let r=t.id||w9(),i=t.restoreEl?.node||t.restoreEl||n||(typeof document<"u"?document.activeElement:null),a={id:r,content:t.content||null,anchor:o,placement:t.placement||Ir.placement,trigger:t.trigger||Ir.trigger,offset:t.offset??Ir.offset,minWidth:t.minWidth||Ir.minWidth,maxWidth:t.maxWidth||Ir.maxWidth,maxHeight:t.maxHeight||Ir.maxHeight,theme:t.theme||null,shadow:t.shadow||null,background:t.background||null,round:t.round||null,role:t.role||null,ariaLabel:t.ariaLabel||null,ariaLabelledby:t.ariaLabelledby||null,focusIn:!!t.focusIn,onOpen:t.onOpen,onClose:t.onClose,restoreEl:i},c=e.state?.layer;if(c?.onClose)try{c.onClose(c)}catch(l){console.warn("[dropdown] prev onClose threw:",l)}if(e.state.update({layer:a}),typeof a.onOpen=="function")try{a.onOpen(a)}catch(l){console.warn("[dropdown] onOpen threw:",l)}return r}function Xm(t){let e=bE(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function ai(t){let e=bE(this);if(!e)return;let n=e.state?.layer;if(!n)return;let o=typeof t=="string"?t:t?.id;if(o&&n.id&&o!==n.id)return;let r=n.onClose,s=n.restoreEl,i=typeof document<"u"?document:null,a=i?i.activeElement:null,c=e.node?.querySelector?.('[data-smbls-dropdown="panel"]'),l=!a||a===i?.body,f=!!(c&&a&&c.contains(a)),u=l||f;if(e.state.update({layer:null}),u&&s&&typeof s.focus=="function")try{s.focus()}catch(d){console.warn("[dropdown] focus restore threw:",d)}if(typeof r=="function")try{r(n)}catch(d){console.warn("[dropdown] onClose threw:",d)}}var SE=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},$B=t=>{let e=t.getBoundingClientRect(),n=t.offsetWidth||e.width,o=Math.max(t.offsetHeight||e.height,t.scrollHeight||0);return{width:n,height:o}},x9=`
94
94
  @keyframes smbls-dropdown-fade-in {
95
95
  from { opacity: 0; transform: var(--smbls-dropdown-from, translateY(-6px)) scale(0.98); }
96
96
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
@@ -157,22 +157,22 @@ ${a}`}var qT=null;function Em(t){qT=t}var vn={structuralHash:xm,deepEqual:km,mer
157
157
  [data-smbls-dropdown="panel"]:not([data-smbls-shadowed]) {
158
158
  box-shadow: none !important;
159
159
  }
160
- `,l9=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=c9,document.head.appendChild(t)},OB=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let o=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",o),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},f9=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},u9=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},d9=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],RB=(t,e)=>{if(!t.node)return;let n=new Set;for(let[o,r]of d9){let s=e?.[r];s&&(t.node.setAttribute(o,s),n.add(o))}if(t.__a11yAttrs)for(let o of t.__a11yAttrs)n.has(o)||t.node.removeAttribute(o);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},p9='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',h9=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(p9)){if(n.matches(":disabled"))continue;let o=n.getAttribute("tabindex");if(!(o!==null&&parseInt(o,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},Gm={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(l9(),typeof window>"u")return;let e=o=>{o.key!=="Escape"||o.defaultPrevented||t.state?.layer&&(o.preventDefault(),si.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=o=>{let r=t.state?.layer;if(!r)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(o.target))return;let i=r.anchor;if(i){let a=o.clientX,c=o.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}si.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return No(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return No(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":mc(No(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return dE(e,No(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=W(()=>{let n=t.parent?.layer,o=n?.content||null,r=n?.id||null;if(!o){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,RB(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==r){t.__lastLayerId=r;try{t.set(o)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=f9(t.content)),OB(t,n),RB(t,n),u9(t),n.focusIn&&h9(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;OB(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=CB(t.node);t._lastSize=i;let a=No(s.anchor,i,s.placement);t.node.style.maxHeight=dE(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",mc(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=CB(t.node),o=t._lastSize;(!o||Math.abs(o.width-n.width)>1||Math.abs(o.height-n.height)>1)&&(t._lastSize=n);let s=No(e.anchor,n,e.placement);t.node.style.maxHeight=dE(e,s),t.node.style.left=s.left+"px",t.node.style.top=s.top+"px",t.node.style.setProperty("--smbls-dropdown-from",mc(s.side))}}}};var pE=t=>{let o=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(o&&t.dropdownId&&o.id===t.dropdownId){t.call("closeDropdown");return}let r={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let s in r)r[s]===void 0&&delete r[s];t.call("openDropdown",r)},Km={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),pE(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&pE(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>pE(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var qm={extends:"smbls.Dropdown"},Ym={extends:"smbls.DropdownList"},Xm={extends:"smbls.DropdownParent"},Zm={extends:"smbls.DropdownParentFocus"},Qm={extends:"smbls.DropdownSiblingFocus"};var hE={DropdownRoot:Gm,DropdownTrigger:Km,Dropdown:qm,DropdownList:Ym,DropdownParent:Xm,DropdownParentFocus:Zm,DropdownSiblingFocus:Qm};var yE=/*@__PURE__*/$({},{DROPDOWN_DEFAULTS:()=>Rr,closeDropdown:()=>si,computePosition:()=>No,dropdownFunctions:()=>mE,fadeInTransform:()=>mc,openDropdown:()=>zm,setDropdownInert:()=>Wm});var mE={openDropdown:zm,closeDropdown:si,setDropdownInert:Wm};var TE=/*@__PURE__*/$({},{components:()=>ZB,functions:()=>QB});var g9=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),m9=(t,e,n,o,r)=>{let s=g9(e,o,r),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},DB=(t,e,n)=>Math.max(e,Math.min(n,t)),IB=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let o=typeof window<"u"?window.innerWidth:1024,r=typeof window<"u"?window.innerHeight:768,s=m9(n,t,e,o,r),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=DB(i,6,o-e.width-6),a=DB(a,6,r-e.height-6),{left:i,top:a,side:s}},LB={bottom:["0","-10%"],top:["0","10%"],left:["10%","0"],right:["-10%","0"]},PB=t=>(LB[t]||LB.bottom).join(" ");var Dr={placement:"bottom",theme:"dialog",delay:250,hideDelay:100,warmWindow:300},MB=t=>{if(!t||typeof t!="object")return null;let e=Number(t.left),n=Number(t.top),o=Number(t.width??t.right-t.left),r=Number(t.height??t.bottom-t.top),s={left:e,top:n,right:Number(t.right??e+o),bottom:Number(t.bottom??n+r),width:o,height:r};for(let i in s)if(!Number.isFinite(s[i]))return null;return s},y9=t=>!t||typeof t.getBoundingClientRect!="function"?null:MB(t.getBoundingClientRect()),bE=t=>t?.getRoot?.()?.TooltipRoot||null,SE=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},wE=t=>!!(t&&t.open!==!1&&t.size),BB=(t,e=Date.now())=>{let n=bE(t)?.state?.tip;return n?n.open!==!1?!0:typeof n.closedAt=="number"&&e-n.closedAt<Dr.warmWindow:!1},NB=(t,e,n=0)=>{let o=SE(t);if(!o||o.id!==e||o.open===!1)return;let r=t.Panel?.node;if(!r||typeof r.getBoundingClientRect!="function")return;if(r.textContent!==(o.text||"")){n<3&&setTimeout(()=>NB(t,e,n+1),0);return}let s=r.getBoundingClientRect();t.state.update({tip:{...o,size:{width:s.width,height:s.height}}})},_9=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},b9=0,S9=()=>`tooltip_${++b9}_${Date.now().toString(36)}`;function $B(t={}){let e=bE(this);if(!e)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,o=MB(t.anchorRect);t.anchorRect!=null&&!o&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[tooltip] openTooltip: anchorRect is not a rect ({ left, top, right, bottom, width, height }); the anchor element's own box is used."));let r=o||y9(n);if(!r)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let s=t.id||S9(),i=SE(e),a=wE(i),c={id:s,owner:t.owner||null,text:t.text||"",anchor:r,placement:t.placement||Dr.placement,theme:t.theme||Dr.theme,open:!0,glide:a,size:a?i.size:null};return e.state.update({tip:c}),_9(()=>NB(e,s)),s}function FB(t){let e=bE(this);if(!e)return;let n=SE(e);if(!n||n.open===!1)return;let o=typeof t=="string"?t:t?.id;if(o&&n.id&&o!==n.id)return;let r=typeof t=="object"?t?.owner:null;r&&n.owner&&r!==n.owner||e.state.update({tip:{...n,open:!1,closedAt:Date.now()}})}var jB=t=>{let e=t.tip;return e?.anchor?IB(e.anchor,e.size||{width:0,height:0},e.placement):null},xE=t=>wE(t.tip),w9=t=>{let e=t.tip;return!e||e.open===!1?"Z opacity defaultBezier, Z translate defaultBezier, Z visibility defaultBezier, Z transform defaultBezier":e.size?e.glide?"A transform defaultBezier, A translate defaultBezier, A opacity defaultBezier, A visibility defaultBezier":"A opacity defaultBezier, A translate defaultBezier, A visibility defaultBezier":"Z opacity defaultBezier, Z visibility defaultBezier"},UB=t=>{let e=typeof window<"u"&&window.devicePixelRatio||1;return Math.round(t*e)/e},VB={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",left:"0",top:"0",tip:(t,e)=>e?.tip||null,transform:t=>{let e=jB(t);return e?`translate3d(${UB(e.left)}px, ${UB(e.top)}px, 0)`:"translate3d(-9999px, -9999px, 0)"},translate:t=>{if(xE(t))return"0 0";let e=jB(t);return PB(e?e.side:"bottom")},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Dr.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>xE(t)?"1":"0",visibility:t=>xE(t)?"visible":"hidden",transition:t=>w9(t)}};var kE=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},x9=0,GB=t=>t._tooltipOwner||(t._tooltipOwner=`tooltip_trigger_${++x9}`),HB=t=>{t.tooltipText&&(kE(t),t.call("openTooltip",{anchorEl:t,anchorRect:t.tooltipAnchorRect||void 0,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key,owner:GB(t)}))},zB=t=>{if(t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),BB(t)){t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),HB(t);return}t._tooltipShowTimer||(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,HB(t)},t.tooltipDelay??Dr.delay))},WB=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",{id:t.tooltipId||t.key,owner:GB(t)})},t.tooltipHideDelay??Dr.hideDelay))},KB={onMouseenter:(t,e)=>zB(e),onMouseleave:(t,e)=>WB(e),onFocus:(t,e)=>zB(e),onBlur:(t,e)=>WB(e),onMouseover:(t,e)=>kE(e),onFocusin:(t,e)=>kE(e)};var qB={display:"flex",theme:"dialog",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},YB={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},XB={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,o=e||n;if(!o)return;let r=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":r||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var ZB={TooltipRoot:VB,TooltipTrigger:KB,Tooltip:qB,TooltipHidden:YB,TooltipParent:XB};var QB={openTooltip:$B,closeTooltip:FB};var od=/*@__PURE__*/$({},{LEVELS:()=>td,analyzePlugin:()=>Jm,attachBrowserListeners:()=>cy,attachNetworkListeners:()=>nd,classifyEvent:()=>DE,createAnalyzeState:()=>cN,createBeaconSink:()=>PE,createConsoleSink:()=>LE,createDedupe:()=>CE,createEnrich:()=>AE,createMemorySink:()=>IE,createPipeline:()=>oy,createRedact:()=>ny,createRemoteSink:()=>sy,createSample:()=>OE,createSummarize:()=>vE,default:()=>Jm,emitFetchEvent:()=>iN,makeEvent:()=>ct,meetsLevel:()=>ty,normalizeLevel:()=>ed,resolveSinks:()=>ay,summarizeElement:()=>ii});var k9=0,T9=()=>`${Date.now().toString(36)}-${(k9++).toString(36)}`,ct=(t,e,n={})=>({id:T9(),ts:Date.now(),type:t,level:e,...n}),E9=t=>{let e=[],n=t,o=0;for(;n&&o<32;)n.key!=null&&e.unshift(String(n.key)),n=n.parent,o++;return e.join(" > ")},ii=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:E9(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var yc=t=>t?.context?.analyze,A9={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},v9=(t,{category:e,type:n,level:o})=>r=>{let s=yc(r);!s||!s.shouldCapture(e)||s.emit(ct(n,o,{hook:t,element:ii(r)}))},JB=t=>(e,n)=>{let o=yc(e);!o||!o.shouldCapture("state")||o.emit(ct("state","debug",{hook:t,element:ii(e),changedKeys:n?.changedKeys||null}))},Jm={name:"analyze",error(t,e){let n=yc(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let o=e?.error||e?.err||(e instanceof Error?e:null);n.emit(ct("error","error",{hook:e?.hook||"error",element:ii(t),error:o,message:o?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=yc(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(ct("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=yc(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=yc(t);if(!e||!e.shouldCapture("updates"))return;let n=null;t.__ref?.__analyzeUpdateStart!=null&&(n=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(ct("update","debug",{hook:"update",element:ii(t),durationMs:n}))},beforeStateUpdate:JB("beforeStateUpdate"),stateUpdate:JB("stateUpdate")};for(let[t,e]of Object.entries(A9))Jm[t]=v9(t,e);var td={error:0,warn:1,info:2,debug:3,trace:4};var ty=(t,e)=>{let n=td[t],o=td[e];return n==null||o==null?!0:n<=o},ed=t=>td[t]!=null?t:"warn";var ey=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var C9=(t,e)=>{for(let n of e)if(n instanceof RegExp){if(n.test(t))return!0}else if(typeof n=="string"&&t.toLowerCase().includes(n.toLowerCase()))return!0;return!1},O9=(t,e)=>{if(e!=="redact"){if(e==="hash"){let n=0,o=String(t);for(let r=0;r<o.length;r++)n=(n<<5)-n+o.charCodeAt(r)|0;return`#${(n>>>0).toString(36)}`}return"***"}},EE=(t,e,n,o)=>{if(o>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>EE(s,e,n,o+1));let r={};for(let s of Object.keys(t))if(C9(s,e)||ey.test(s)){let a=O9(t[s],n);a!==void 0&&(r[s]=a)}else r[s]=EE(t[s],e,n,o+1);return r},ny=(t=[],e="mask")=>{let n=Array.isArray(t)?t:[t];return o=>{if(!o)return o;let{id:r,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...g}=o,h=EE(g,n,e,0);return{id:r,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...h}}};var AE=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,n=typeof navigator<"u"?navigator.userAgent:null,o=t.config.buildHash||null,r=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=R,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:r,build:o,route:i},meta:{ua:n,viewport:c}}}},vE=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},CE=(t=1e3,e=500)=>{let n=new Map;return o=>{if(!o)return o;let r=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=n.get(r),i=o.ts||Date.now();if(s&&i-s<t)return null;if(n.set(r,i),n.size>e){let a=Math.ceil(e/10),c=0;for(let l of n.keys()){if(c++>=a)break;n.delete(l)}}return o}},OE=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},tN={redact:t=>ny(t.config.redact||[],t.config.maskStrategy),enrich:t=>AE(t),summarize:()=>vE(),dedupe:t=>CE(t.config.cache?.dedupeWindowMs||1e3),sample:t=>OE(t.config.sample||{})},R9=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=tN[t];return n?n(e):null}return null},oy=t=>{let e=t.config,n=Array.isArray(e.transformers)?e.transformers.slice():[],o=n.findIndex(s=>s==="redact");o>=0&&n.splice(o,1);let r=[];e.redact!==!1&&r.push(tN.redact(t));for(let s of n){let i=R9(s,t);i&&r.push(i)}return s=>{let i=s;for(let a of r){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=r.slice(r.indexOf(a)+1),f=[];for(let u of c){let d=u,p=!1;for(let g of l)if(d=g(d),d==null){p=!0;break}!p&&d!=null&&f.push(d)}return f}i=c}return i}};var ry=typeof R<"u"&&typeof R.document<"u",D9=5e3,L9=50,I9=3,P9=1500,M9=1e3,DE=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",B9=t=>{try{return JSON.stringify(t)}catch{return null}},N9=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},$9=t=>{if(!t)return null;let e=String(t),n;return(n=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:n[1]}:(n=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:n[1]}:(n=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:n[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(n=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:n[1]}):(n=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:n[1]}:{name:null,version:null}},F9=()=>{if(!ry)return null;try{let t=R.document?.documentElement?.getAttribute("data-theme")||null,e=typeof R.matchMedia=="function"?R.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},j9=()=>{if(!ry)return null;let t=R.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:R.document?.referrer||null,title:R.document?.title||null,ua:e?.userAgent||null,browser:$9(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:N9(),viewport:R.innerWidth?{w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}:null,screen:n?{w:n.width||null,h:n.height||null,availW:n.availWidth||null,availH:n.availHeight||null,colorDepth:n.colorDepth||null,orientation:n.orientation?.type||null}:null,theme:F9()}},sy=(t={})=>{let e=t.url,n=typeof t.transport=="function"?t.transport:null,o=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!n)return()=>{};let r=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:DE,p=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,h=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:D9,y=t.maxBatch||L9,x=t.maxRetries!=null?t.maxRetries:I9,T=t.backoffMs||P9,v=t.queueLimit||M9,_=t.sampleRate!=null?t.sampleRate:1,b=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,S=t.sessionId||b(),w=[],A=[],C=null,O=null,N=()=>{C||!w.length||(C=setTimeout(q,m))},B=X=>{if(O)return;let Q=T*Math.pow(2,Math.max(0,X-1));O=setTimeout(()=>{if(O=null,!A.length)return;let rt=A.shift();K(rt.envelope,rt.attempt)},Q)},M=(X,Q=!1)=>{let rt=u?RE(u):null,et={id:S,sentAt:Date.now()};Q&&(et.endedAt=Date.now());let pt={v:1,session:et,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:j9(),user:rt?.user||null,traits:rt?.traits||null,tags:rt?.tags||null,events:X};if((h?RE(h)===!0:g)&&(pt.app.debug=!0),p)try{return p(pt)||null}catch{return pt}return pt},K=async(X,Q=1)=>{if(X)try{let rt=!0;if(n){let et=await n(X);rt=et!==!1&&et?.ok!==!1}else rt=await U9(e,X,{apiKey:r,getAuth:f});!rt&&Q<x&&(A.push({envelope:X,attempt:Q+1}),B(Q+1))}catch{Q<x&&(A.push({envelope:X,attempt:Q+1}),B(Q+1))}},q=(X=!1,Q=!1)=>{if(C&&(clearTimeout(C),C=null),!w.length&&!Q)return;let rt=w;w=[];let et=M(rt,Q);if(et){if(X&&ry){if(typeof o=="function"&&RE(()=>o(et)))return;if(navigator.sendBeacon&&e){let pt=B9(et);if(pt)try{navigator.sendBeacon(e,new R.Blob([pt],{type:"application/json"}));return}catch{}}}K(et)}},tt=!1,nt=()=>{tt||(tt=!0,q(!0,!0))};ry&&(R.addEventListener("pagehide",nt,{passive:!0}),R.addEventListener("beforeunload",nt,{passive:!0}),R.addEventListener("visibilitychange",()=>{R.document.visibilityState==="hidden"&&q(!0)},{passive:!0}));let ot=X=>{if(!X||_<1&&Math.random()>_)return;tt&&(tt=!1);let Q={...X,log_type:d(X)};w.push(Q),w.length>v&&(w=w.slice(-v)),w.length>=y?q():N()},Z=X=>(q(!1,!0),S=X||b(),tt=!1,ot.sessionId=S,S);return ot.flush=()=>q(!1),ot.endSession=nt,ot.startNewSession=Z,ot.sessionId=S,ot},RE=t=>{try{return t()}catch{return null}},U9=async(t,e,{apiKey:n,getAuth:o})=>{let r={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(n&&(r["X-Analyze-Key"]=n),o)try{let s=await o();s&&(r.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:"POST",headers:r,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var V9={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},H9="\x1B[0m",iy=typeof R<"u"&&typeof R.document<"u",LE=(t={})=>{let e=t.minLevel||null,n=console.error.bind(console),o=console.warn.bind(console),r=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?n:s.level==="warn"?o:r,a=`[analyze:${s.type}]`;if(iy)i(a,s);else{let c=V9[s.level]||"";i(`${c}${a}${H9}`,s)}}},IE=(t,e={})=>{let n=e.max||t.config.cache?.max||500,o=new Array(n),r=0,s=0,i=a=>{o[r]=a,r=(r+1)%n,s<n&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(r-s+n)%n;for(let l=0;l<s;l++)a[l]=o[(c+l)%n];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{r=0,s=0}},i},PE=(t={})=>{let e=t.url,n=t.batchMs!=null?t.batchMs:5e3,o=t.maxBatch||50;if(!e)return()=>{};let r=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!r.length)return;let c=JSON.stringify({events:r});r=[];let l=iy?new R.Blob([c],{type:"application/json"}):c;if(iy&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};iy&&(R.addEventListener("pagehide",i,{passive:!0}),R.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(r.push(c),r.length>=o?i():s||(s=setTimeout(i,n)))};return a.flush=i,a},eN={console:LE,memory:IE,beacon:PE,remote:sy},nN=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},ay=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],n=[];for(let o of e)if(typeof o=="function")n.push(o);else if(typeof o=="string"){let r=eN[o];if(!r)continue;n.push(o==="memory"?r(t,{}):r(o==="remote"?nN(t,{}):{}))}else if(o&&typeof o=="object"&&o.type){let r=eN[o.type];if(!r)continue;n.push(o.type==="memory"?r(t,o):r(o.type==="remote"?nN(t,o):o))}return n};var z9=typeof R<"u"&&typeof R.document<"u",W9=new Set(["password","hidden"]),oN=(t,e)=>{let n=0,o=null,r=null;return(...s)=>{let i=Date.now();i-n>=e?(n=i,t(...s)):(r=s,o||(o=setTimeout(()=>{n=Date.now(),o=null,r&&(t(...r),r=null)},e-(i-n))))}},ME="__analyzeKeyPath",_c=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[ME])return e[ME];let n=[],o=e,r=0,s=null;for(;o&&r<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),n.unshift(a))}o=o.parentNode,r++}let i;if(n.length)i={selector:null,key:s,path:n.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[ME]=i}catch{}return i},G9=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let n=0,o=String(t||"");for(let r=0;r<o.length;r++)n=(n<<5)-n+o.charCodeAt(r)|0;return`#${(n>>>0).toString(36)}`}return"***"}},K9=t=>!!(!t||t.tagName==="INPUT"&&W9.has(t.type)||ey.test(t.name||"")||ey.test(t.id||"")||t.dataset?.analyze==="skip"),cy=t=>{if(!z9)return;let e=t.config.capture,n=t.config.throttle,o=t.__teardown,r=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(r(R,"error",s=>{t.emit(ct("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),r(R,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(ct("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){r(R,"click",i=>{t.emit(ct("pointer","info",{hook:"click",target:_c(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:rN(i)}))},{passive:!0,capture:!0}),r(R,"dblclick",i=>{t.emit(ct("pointer","info",{hook:"dblclick",target:_c(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),r(R,"contextmenu",i=>{t.emit(ct("pointer","info",{hook:"contextmenu",target:_c(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=oN(i=>{t.emit(ct("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);r(R,"pointermove",s,{passive:!0})}if(e.keyboard&&r(R,"keydown",s=>{t.emit(ct("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:rN(s),target:_c(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=K9(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=G9(a.value,t.config.maskStrategy)),t.emit(ct("forms","info",{hook:i.type,target:_c(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};r(R,"input",s,{passive:!0,capture:!0}),r(R,"change",s,{passive:!0,capture:!0}),r(R,"submit",i=>{t.emit(ct("forms","info",{hook:"submit",target:_c(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=oN(()=>{t.emit(ct("scroll","trace",{hook:"scroll",x:R.scrollX,y:R.scrollY}))},n.scroll);r(R,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=tl(()=>{t.emit(ct("viewport","info",{hook:"resize",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))},n.resize);r(R,"resize",s,{passive:!0}),r(R,"orientationchange",()=>{t.emit(ct("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),r(R.document,"visibilitychange",()=>{t.emit(ct("viewport","info",{hook:"visibilitychange",hidden:R.document.hidden}))},{passive:!0}),t.emit(ct("viewport","info",{hook:"initial",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(ct("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(sN)}))}catch{}return i.apply(console,a)},o.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(ct("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}o.push(()=>s.disconnect())}catch{}},rN=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),q9=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=sN(t.cause)),e},sN=t=>{if(t==null)return t;if(t instanceof Error)return q9(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};var Y9=typeof R<"u"&&typeof R.document<"u",iN=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let o=e.phase==="error"?"error":"info";n.emit(ct("network",o,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},nd=t=>{if(Y9&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof R.fetch=="function"){let e=R.fetch.bind(R),n=function(o,r){if(r?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(o,r);let s=typeof o=="string"?o:o&&o.url||"",i=(r?.method||typeof o=="object"&&o?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(ct("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(o,r).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(ct("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(ct("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};R.fetch=n,t.__teardown.push(()=>{R.fetch=e})}if(typeof R.XMLHttpRequest=="function"){let e=R.XMLHttpRequest,n=e.prototype.open,o=e.prototype.send;e.prototype.open=function(r,s){return this.__analyze={method:String(r).toUpperCase(),url:String(s)},n.apply(this,arguments)},e.prototype.send=function(r){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return o.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(ct("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(ct("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(ct("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),o.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=n,e.prototype.send=o})}}};var X9={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},Z9={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Q9={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},J9={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},t8=t=>{let e={...X9,...t};return e.replay&&Object.assign(e,Z9),e.telemetry&&Object.assign(e,Q9),e.remote&&Object.assign(e,J9),Object.assign(e,t),e},e8=64,n8=()=>{if(typeof R>"u"||!R.location)return null;try{let e=new URLSearchParams(R.location.search).get("analyze");return e||null}catch{return null}},cN=(t={})=>{let e=t===!0?{}:{...t};e.capture=t8(e.capture||{});let n=n8();(n==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),n==="off"&&(e.enabled=!1),e.level=ed(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let o={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},r=()=>{o.__pipeline||(o.__pipeline=oy(o),o.__sinks=ay(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&ty(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<e8&&o.__preBuffer.push(s);return}r(),aN(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){r();for(let a of i)aN(o,a)}try{cy(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{nd(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=ed(s)},o.setCapture=(s,i)=>{if(o.config.capture[s]=!!i,s==="network"&&i&&o.__ready)try{nd(o)}catch(a){console.error("[analyze] network attach error:",a)}},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.startNewSession=s=>{let i=s||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(o.config.sinks)?o.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(o.__sinks)for(let c of o.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},aN=(t,e)=>{let n=t.__pipeline(e);if(n==null)return;let o=Array.isArray(n)?n:[n];for(let r of o){if(typeof t.config.onEvent=="function")try{t.config.onEvent(r)}catch{}for(let s of t.__sinks)try{s(r)}catch(i){console.error("[analyze] sink error:",i)}}};var HE=/*@__PURE__*/$({},{shorthandPlugin:()=>fy});var VE=/*@__PURE__*/$({},{PRESERVE_VALUE_KEYS:()=>Jt,SKIP_INLINE_KEYS:()=>Lr,abbrToProp:()=>Qt,decode:()=>pN,encode:()=>fN,expand:()=>ci,isComponentKey:()=>Cn,isSelectorKey:()=>On,parse:()=>li,parseFurther:()=>ui,propToAbbr:()=>fn,shorten:()=>rd,shorthandPlugin:()=>fy,stringify:()=>ai,stringifyFurther:()=>fi});var fn={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},Qt=Object.create(null);for(let t in fn)Qt[fn[t]]=t;var BE=Object.create(null);for(let t in fn){let e=fn[t];if(BE[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${BE[e]}"`);BE[e]=t}var Jt=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Lr=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function Cn(t){return/^[A-Z]/.test(t)}function On(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function fN(t){if(!t||typeof t!="object")return"";let e=[];for(let n in t){let o=t[n];if(typeof o=="function"||o!==null&&typeof o=="object"&&!Array.isArray(o)||o===void 0)continue;let r=fn[n]||n;if(o===!0)e.push(r);else if(o===!1)e.push("!"+r);else if(Array.isArray(o)){let s=o.map(i=>ly(i));e.push(r+":"+s.join(","))}else e.push(r+":"+ly(o))}return e.join(" ")}function ly(t){return String(t).replace(/ /g,"_")}function rd(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?rd(n):n});let e={};for(let n in t){let o=t[n];if(Cn(n)){e[n]=NE(o);continue}if(On(n)){e[n]=NE(o);continue}let r=fn[n]||n;if(Jt.has(n)||Jt.has(r)){e[r]=o;continue}e[r]=NE(o)}return e}function NE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?rd(e):e}):typeof t=="object"?rd(t):t}function ai(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(o){return o!==null&&typeof o=="object"?ai(o):o});let e={},n=[];for(let o in t){let r=t[o];if(Cn(o)){e[o]=lN(r);continue}if(On(o)){e[o]=lN(r);continue}let s=fn[o]||o;if(Jt.has(o)||Jt.has(s)){e[s]=r;continue}if(typeof r=="function"){e[s]=r;continue}if(r==null){e[s]=r;continue}if(Lr.has(o)||Lr.has(s)){e[s]=r;continue}if(Array.isArray(r)){if(r.some(function(a){return a!==null&&typeof a=="object"})){e[s]=r.map(function(a){return a!==null&&typeof a=="object"?ai(a):a});continue}if(r.length<=1){e[s]=r;continue}n.push(s+":"+r.map(ly).join(","));continue}if(typeof r=="object"){e[s]=ai(r);continue}r===!0?n.push(s):r===!1?n.push("!"+s):typeof r=="number"||typeof r=="string"&&(r.includes(",")||r.includes("_"))?e[s]=r:n.push(s+":"+ly(r))}return n.length&&(e.in=n.join(" ")),e}function lN(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ai(e):e}):typeof t=="object"?ai(t):t}function pN(t){if(!t||typeof t!="string")return{};let e={},n=hN(t);for(let o of n){if(o.startsWith("!")){let c=o.slice(1),l=Qt[c]||c;e[l]=!1;continue}let r=o.indexOf(":");if(r===-1){let c=Qt[o]||o;e[c]=!0;continue}let s=o.slice(0,r),i=o.slice(r+1),a=Qt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(uN);continue}e[a]=uN(i)}return e}function hN(t){return t.trim().split(/\s+/).filter(Boolean)}function uN(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function dN(t){return t.replace(/_/g," ")}function o8(t){if(!t||typeof t!="string")return{};let e={},n=hN(t);for(let o of n){if(o.startsWith("!")){let c=o.slice(1),l=Qt[c]||c;e[l]=!1;continue}let r=o.indexOf(":");if(r===-1){let c=Qt[o]||o;e[c]=!0;continue}let s=o.slice(0,r),i=o.slice(r+1),a=Qt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(dN);continue}e[a]=dN(i)}return e}function ci(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?ci(n):n});let e={};for(let n in t){let o=t[n];if(Cn(n)){e[n]=$E(o);continue}let r=Qt[n]||n;if(On(n)&&r===n){e[n]=$E(o);continue}if(Jt.has(r)||Jt.has(n)){e[r]=o;continue}e[r]=$E(o)}return e}function $E(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ci(e):e}):typeof t=="object"?ci(t):t}function li(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?li(n):n});let e={};if(typeof t.in=="string"){let n=o8(t.in);for(let o in n)e[o]=n[o]}for(let n in t){if(n==="in")continue;let o=t[n];if(Cn(n)){e[n]=FE(o);continue}let r=Qt[n]||n;if(On(n)&&r===n){e[n]=FE(o);continue}if(Jt.has(r)||Jt.has(n)){e[r]=o;continue}e[r]=FE(o)}return e}function FE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?li(e):e}):typeof t=="object"?li(t):t}function gN(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function r8(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){let o=t[n+1];if(o===","||o==="_"||o==="\\"){e+=o,n+=2;continue}}t[n]==="_"?e+=" ":e+=t[n],n++}return e}function s8(t){let e=[],n="",o=0;for(;o<t.length;){if(t[o]==="\\"&&o+1<t.length){n+=t[o]+t[o+1],o+=2;continue}if(t[o]===","){e.push(n),n="",o++;continue}n+=t[o],o++}return e.push(n),e}function mN(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function fi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(o){return o!==null&&typeof o=="object"?fi(o):o});let e={},n=[];for(let o in t){let r=t[o];if(Cn(o)){let i=yN(r);e[o]=mN(i)?i.in:i;continue}if(On(o)){let i=yN(r);e[o]=mN(i)?i.in:i;continue}let s=fn[o]||o;if(Jt.has(o)||Jt.has(s)){e[s]=r;continue}if(typeof r=="function"){e[s]=r;continue}if(r==null){e[s]=r;continue}if(Lr.has(o)||Lr.has(s)){e[s]=r;continue}if(Array.isArray(r)){if(r.some(function(a){return a!==null&&typeof a=="object"})){e[s]=r.map(function(a){return a!==null&&typeof a=="object"?fi(a):a});continue}if(r.length<=1){e[s]=r;continue}n.push(s+":"+r.map(gN).join(","));continue}if(typeof r=="object"){e[s]=fi(r);continue}if(r===!0){n.push(s);continue}if(r===!1){n.push("!"+s);continue}if(typeof r=="number"){n.push(s+":#"+r);continue}n.push(s+":"+gN(r))}return n.length&&(e.in=n.join(" ")),e}function yN(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?fi(e):e}):typeof t=="object"?fi(t):t}function _N(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):r8(t)}function jE(t){if(!t||typeof t!="string")return{};let e={},n=t.trim().split(/\s+/).filter(Boolean);for(let o of n){if(o.startsWith("!")){let l=o.slice(1),f=Qt[l]||l;e[f]=!1;continue}let r=o.indexOf(":");if(r===-1){let l=Qt[o]||o;e[l]=!0;continue}let s=o.slice(0,r),i=o.slice(r+1),a=Qt[s]||s,c=s8(i);if(c.length>1){e[a]=c.map(_N);continue}e[a]=_N(i)}return e}function ui(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?ui(n):n});let e={};if(typeof t.in=="string"){let n=jE(t.in);for(let o in n)e[o]=n[o]}for(let n in t){if(n==="in")continue;let o=t[n];if(Cn(n)){typeof o=="string"?e[n]=jE(o):e[n]=UE(o);continue}let r=Qt[n]||n;if(On(n)&&r===n){typeof o=="string"?e[n]=jE(o):e[n]=UE(o);continue}if(Jt.has(r)||Jt.has(n)){e[r]=o;continue}e[r]=UE(o)}return e}function UE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ui(e):e}):typeof t=="object"?ui(t):t}var i8={shorten:ci,stringify:li,stringifyFurther:ui};function a8(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>e(o));let n={};for(let o in t){let r=t[o];n[o]=r&&typeof r=="object"?e(r):r}return n}var c8=["components","pages","snippets"],fy={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let o=i8[e===!0?"shorten":e];if(o){for(let r of c8)t[r]&&(t[r]=a8(t[r],o));t.app&&typeof t.app=="object"&&(t.app=o(t.app))}}};var sd=/*@__PURE__*/$({},{Inspect:()=>uy,inspectPlugin:()=>f8});function bN(t){return E(t)?t:P(t)?t.find(e=>E(e)):""}function zE(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&bN(t.extends),o=t.parent&&t.parent.childExtends&&bN(t.parent.childExtends);return(e||n||o||"").split("_")[0].split(".")[0].split("+")[0]}function dy(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:o}=t.context,r=zE(t);return o&&o.onInitInspect&&!o.onInitInspect(r,t,t.state)?dy(t.parent):r&&(e[r]||n[r])?t:dy(t.parent)}var l8=(t,e,n)=>{let o=n.window||window;o.onkeydown=r=>{r.altKey&&r.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=r=>{t.state.preventSelect&&(!r.altKey||!r.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},uy={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:l8,onMousemove:(t,e,n)=>{let o=t.target.ref,r=dy(o),s=e.Inspector.state;if(!r||!n.debugging||!r.__ref)return s.update({area:!1});let i=zE(r),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=r.node.getBoundingClientRect(),p={x:l,y:f,width:u,height:d};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,n)=>{if(!n.debugging)return;let o=t.target.ref,r=dy(o);if(!r)return;let s=zE(r);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(k(e)){let{Content:n,...o}=e;for(let r in o)lc[r]||(o[r].__ref||(o[r].__ref={}),o[r].__ref.__componentKey||(o[r].__ref.__componentKey=r))}},onBeforeUpdate:(t,e,n)=>{let{area:o}=n,r=n.area&&n.parent.debugging,s;if(!r)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
160
+ `,k9=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=x9,document.head.appendChild(t)},FB=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let o=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",o),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},T9=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},E9=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},A9=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],jB=(t,e)=>{if(!t.node)return;let n=new Set;for(let[o,r]of A9){let s=e?.[r];s&&(t.node.setAttribute(o,s),n.add(o))}if(t.__a11yAttrs)for(let o of t.__a11yAttrs)n.has(o)||t.node.removeAttribute(o);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},v9='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',C9=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(v9)){if(n.matches(":disabled"))continue;let o=n.getAttribute("tabindex");if(!(o!==null&&parseInt(o,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},Zm={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(k9(),typeof window>"u")return;let e=o=>{o.key!=="Escape"||o.defaultPrevented||t.state?.layer&&(o.preventDefault(),ai.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=o=>{let r=t.state?.layer;if(!r)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(o.target))return;let i=r.anchor;if(i){let a=o.clientX,c=o.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}ai.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return jo(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return jo(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":bc(jo(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return SE(e,jo(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=W(()=>{let n=t.parent?.layer,o=n?.content||null,r=n?.id||null;if(!o){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,jB(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==r){t.__lastLayerId=r;try{t.set(o)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=T9(t.content)),FB(t,n),jB(t,n),E9(t),n.focusIn&&C9(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;FB(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=$B(t.node);t._lastSize=i;let a=jo(s.anchor,i,s.placement);t.node.style.maxHeight=SE(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",bc(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=$B(t.node),o=t._lastSize;(!o||Math.abs(o.width-n.width)>1||Math.abs(o.height-n.height)>1)&&(t._lastSize=n);let s=jo(e.anchor,n,e.placement);t.node.style.maxHeight=SE(e,s),t.node.style.left=s.left+"px",t.node.style.top=s.top+"px",t.node.style.setProperty("--smbls-dropdown-from",bc(s.side))}}}};var wE=t=>{let o=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(o&&t.dropdownId&&o.id===t.dropdownId){t.call("closeDropdown");return}let r={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let s in r)r[s]===void 0&&delete r[s];t.call("openDropdown",r)},Qm={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),wE(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&wE(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>wE(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Jm={extends:"smbls.Dropdown"},ty={extends:"smbls.DropdownList"},ey={extends:"smbls.DropdownParent"},ny={extends:"smbls.DropdownParentFocus"},oy={extends:"smbls.DropdownSiblingFocus"};var xE={DropdownRoot:Zm,DropdownTrigger:Qm,Dropdown:Jm,DropdownList:ty,DropdownParent:ey,DropdownParentFocus:ny,DropdownSiblingFocus:oy};var EE=/*@__PURE__*/$({},{DROPDOWN_DEFAULTS:()=>Ir,closeDropdown:()=>ai,computePosition:()=>jo,dropdownFunctions:()=>TE,fadeInTransform:()=>bc,openDropdown:()=>Ym,setDropdownInert:()=>Xm});var TE={openDropdown:Ym,closeDropdown:ai,setDropdownInert:Xm};var LE=/*@__PURE__*/$({},{components:()=>aN,functions:()=>cN});var O9=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),R9=(t,e,n,o,r)=>{let s=O9(e,o,r),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},UB=(t,e,n)=>Math.max(e,Math.min(n,t)),HB=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let o=typeof window<"u"?window.innerWidth:1024,r=typeof window<"u"?window.innerHeight:768,s=R9(n,t,e,o,r),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=UB(i,6,o-e.width-6),a=UB(a,6,r-e.height-6),{left:i,top:a,side:s}},VB={bottom:["0","-10%"],top:["0","10%"],left:["10%","0"],right:["-10%","0"]},zB=t=>(VB[t]||VB.bottom).join(" ");var Pr={placement:"bottom",theme:"dialog",delay:250,hideDelay:100,warmWindow:300},WB=t=>{if(!t||typeof t!="object")return null;let e=Number(t.left),n=Number(t.top),o=Number(t.width??t.right-t.left),r=Number(t.height??t.bottom-t.top),s={left:e,top:n,right:Number(t.right??e+o),bottom:Number(t.bottom??n+r),width:o,height:r};for(let i in s)if(!Number.isFinite(s[i]))return null;return s},D9=t=>!t||typeof t.getBoundingClientRect!="function"?null:WB(t.getBoundingClientRect()),vE=t=>t?.getRoot?.()?.TooltipRoot||null,CE=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},OE=t=>!!(t&&t.open!==!1&&t.size),GB=(t,e=Date.now())=>{let n=vE(t)?.state?.tip;return n?n.open!==!1?!0:typeof n.closedAt=="number"&&e-n.closedAt<Pr.warmWindow:!1},KB=(t,e,n=0)=>{let o=CE(t);if(!o||o.id!==e||o.open===!1)return;let r=t.Panel?.node;if(!r||typeof r.getBoundingClientRect!="function")return;if(r.textContent!==(o.text||"")){n<3&&setTimeout(()=>KB(t,e,n+1),0);return}let s=r.getBoundingClientRect();t.state.update({tip:{...o,size:{width:s.width,height:s.height}}})},L9=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},I9=0,P9=()=>`tooltip_${++I9}_${Date.now().toString(36)}`;function qB(t={}){let e=vE(this);if(!e)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,o=WB(t.anchorRect);t.anchorRect!=null&&!o&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[tooltip] openTooltip: anchorRect is not a rect ({ left, top, right, bottom, width, height }); the anchor element's own box is used."));let r=o||D9(n);if(!r)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let s=t.id||P9(),i=CE(e),a=OE(i),c={id:s,owner:t.owner||null,text:t.text||"",anchor:r,placement:t.placement||Pr.placement,theme:t.theme||Pr.theme,open:!0,glide:a,size:a?i.size:null};return e.state.update({tip:c}),L9(()=>KB(e,s)),s}function YB(t){let e=vE(this);if(!e)return;let n=CE(e);if(!n||n.open===!1)return;let o=typeof t=="string"?t:t?.id;if(o&&n.id&&o!==n.id)return;let r=typeof t=="object"?t?.owner:null;r&&n.owner&&r!==n.owner||e.state.update({tip:{...n,open:!1,closedAt:Date.now()}})}var XB=t=>{let e=t.tip;return e?.anchor?HB(e.anchor,e.size||{width:0,height:0},e.placement):null},RE=t=>OE(t.tip),M9=t=>{let e=t.tip;return!e||e.open===!1?"Z opacity defaultBezier, Z translate defaultBezier, Z visibility defaultBezier, Z transform defaultBezier":e.size?e.glide?"A transform defaultBezier, A translate defaultBezier, A opacity defaultBezier, A visibility defaultBezier":"A opacity defaultBezier, A translate defaultBezier, A visibility defaultBezier":"Z opacity defaultBezier, Z visibility defaultBezier"},ZB=t=>{let e=typeof window<"u"&&window.devicePixelRatio||1;return Math.round(t*e)/e},QB={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",left:"0",top:"0",tip:(t,e)=>e?.tip||null,transform:t=>{let e=XB(t);return e?`translate3d(${ZB(e.left)}px, ${ZB(e.top)}px, 0)`:"translate3d(-9999px, -9999px, 0)"},translate:t=>{if(RE(t))return"0 0";let e=XB(t);return zB(e?e.side:"bottom")},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Pr.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>RE(t)?"1":"0",visibility:t=>RE(t)?"visible":"hidden",transition:t=>M9(t)}};var DE=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},B9=0,nN=t=>t._tooltipOwner||(t._tooltipOwner=`tooltip_trigger_${++B9}`),JB=t=>{t.tooltipText&&(DE(t),t.call("openTooltip",{anchorEl:t,anchorRect:t.tooltipAnchorRect||void 0,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key,owner:nN(t)}))},tN=t=>{if(t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),GB(t)){t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),JB(t);return}t._tooltipShowTimer||(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,JB(t)},t.tooltipDelay??Pr.delay))},eN=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",{id:t.tooltipId||t.key,owner:nN(t)})},t.tooltipHideDelay??Pr.hideDelay))},oN={onMouseenter:(t,e)=>tN(e),onMouseleave:(t,e)=>eN(e),onFocus:(t,e)=>tN(e),onBlur:(t,e)=>eN(e),onMouseover:(t,e)=>DE(e),onFocusin:(t,e)=>DE(e)};var rN={display:"flex",theme:"dialog",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},sN={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},iN={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,o=e||n;if(!o)return;let r=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":r||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var aN={TooltipRoot:QB,TooltipTrigger:oN,Tooltip:rN,TooltipHidden:sN,TooltipParent:iN};var cN={openTooltip:qB,closeTooltip:YB};var ad=/*@__PURE__*/$({},{LEVELS:()=>rd,analyzePlugin:()=>ry,attachBrowserListeners:()=>py,attachNetworkListeners:()=>id,classifyEvent:()=>FE,createAnalyzeState:()=>_N,createBeaconSink:()=>VE,createConsoleSink:()=>jE,createDedupe:()=>BE,createEnrich:()=>PE,createMemorySink:()=>UE,createPipeline:()=>cy,createRedact:()=>ay,createRemoteSink:()=>fy,createSample:()=>NE,createSummarize:()=>ME,default:()=>ry,emitFetchEvent:()=>mN,makeEvent:()=>ct,meetsLevel:()=>sy,normalizeLevel:()=>sd,resolveSinks:()=>dy,summarizeElement:()=>ci});var N9=0,$9=()=>`${Date.now().toString(36)}-${(N9++).toString(36)}`,ct=(t,e,n={})=>({id:$9(),ts:Date.now(),type:t,level:e,...n}),F9=t=>{let e=[],n=t,o=0;for(;n&&o<32;)n.key!=null&&e.unshift(String(n.key)),n=n.parent,o++;return e.join(" > ")},ci=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:F9(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Sc=t=>t?.context?.analyze,j9={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},U9=(t,{category:e,type:n,level:o})=>r=>{let s=Sc(r);!s||!s.shouldCapture(e)||s.emit(ct(n,o,{hook:t,element:ci(r)}))},lN=t=>(e,n)=>{let o=Sc(e);!o||!o.shouldCapture("state")||o.emit(ct("state","debug",{hook:t,element:ci(e),changedKeys:n?.changedKeys||null}))},ry={name:"analyze",error(t,e){let n=Sc(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let o=e?.error||e?.err||(e instanceof Error?e:null);n.emit(ct("error","error",{hook:e?.hook||"error",element:ci(t),error:o,message:o?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Sc(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(ct("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Sc(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Sc(t);if(!e||!e.shouldCapture("updates"))return;let n=null;t.__ref?.__analyzeUpdateStart!=null&&(n=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(ct("update","debug",{hook:"update",element:ci(t),durationMs:n}))},beforeStateUpdate:lN("beforeStateUpdate"),stateUpdate:lN("stateUpdate")};for(let[t,e]of Object.entries(j9))ry[t]=U9(t,e);var rd={error:0,warn:1,info:2,debug:3,trace:4};var sy=(t,e)=>{let n=rd[t],o=rd[e];return n==null||o==null?!0:n<=o},sd=t=>rd[t]!=null?t:"warn";var iy=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var V9=(t,e)=>{for(let n of e)if(n instanceof RegExp){if(n.test(t))return!0}else if(typeof n=="string"&&t.toLowerCase().includes(n.toLowerCase()))return!0;return!1},H9=(t,e)=>{if(e!=="redact"){if(e==="hash"){let n=0,o=String(t);for(let r=0;r<o.length;r++)n=(n<<5)-n+o.charCodeAt(r)|0;return`#${(n>>>0).toString(36)}`}return"***"}},IE=(t,e,n,o)=>{if(o>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>IE(s,e,n,o+1));let r={};for(let s of Object.keys(t))if(V9(s,e)||iy.test(s)){let a=H9(t[s],n);a!==void 0&&(r[s]=a)}else r[s]=IE(t[s],e,n,o+1);return r},ay=(t=[],e="mask")=>{let n=Array.isArray(t)?t:[t];return o=>{if(!o)return o;let{id:r,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...g}=o,h=IE(g,n,e,0);return{id:r,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...h}}};var PE=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,n=typeof navigator<"u"?navigator.userAgent:null,o=t.config.buildHash||null,r=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=R,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:r,build:o,route:i},meta:{ua:n,viewport:c}}}},ME=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},BE=(t=1e3,e=500)=>{let n=new Map;return o=>{if(!o)return o;let r=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=n.get(r),i=o.ts||Date.now();if(s&&i-s<t)return null;if(n.set(r,i),n.size>e){let a=Math.ceil(e/10),c=0;for(let l of n.keys()){if(c++>=a)break;n.delete(l)}}return o}},NE=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},fN={redact:t=>ay(t.config.redact||[],t.config.maskStrategy),enrich:t=>PE(t),summarize:()=>ME(),dedupe:t=>BE(t.config.cache?.dedupeWindowMs||1e3),sample:t=>NE(t.config.sample||{})},z9=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=fN[t];return n?n(e):null}return null},cy=t=>{let e=t.config,n=Array.isArray(e.transformers)?e.transformers.slice():[],o=n.findIndex(s=>s==="redact");o>=0&&n.splice(o,1);let r=[];e.redact!==!1&&r.push(fN.redact(t));for(let s of n){let i=z9(s,t);i&&r.push(i)}return s=>{let i=s;for(let a of r){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=r.slice(r.indexOf(a)+1),f=[];for(let u of c){let d=u,p=!1;for(let g of l)if(d=g(d),d==null){p=!0;break}!p&&d!=null&&f.push(d)}return f}i=c}return i}};var ly=typeof R<"u"&&typeof R.document<"u",W9=5e3,G9=50,K9=3,q9=1500,Y9=1e3,FE=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",X9=t=>{try{return JSON.stringify(t)}catch{return null}},Z9=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},Q9=t=>{if(!t)return null;let e=String(t),n;return(n=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:n[1]}:(n=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:n[1]}:(n=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:n[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(n=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:n[1]}):(n=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:n[1]}:{name:null,version:null}},J9=()=>{if(!ly)return null;try{let t=R.document?.documentElement?.getAttribute("data-theme")||null,e=typeof R.matchMedia=="function"?R.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},t8=()=>{if(!ly)return null;let t=R.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:R.document?.referrer||null,title:R.document?.title||null,ua:e?.userAgent||null,browser:Q9(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:Z9(),viewport:R.innerWidth?{w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}:null,screen:n?{w:n.width||null,h:n.height||null,availW:n.availWidth||null,availH:n.availHeight||null,colorDepth:n.colorDepth||null,orientation:n.orientation?.type||null}:null,theme:J9()}},fy=(t={})=>{let e=t.url,n=typeof t.transport=="function"?t.transport:null,o=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!n)return()=>{};let r=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:FE,p=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,h=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:W9,y=t.maxBatch||G9,x=t.maxRetries!=null?t.maxRetries:K9,T=t.backoffMs||q9,v=t.queueLimit||Y9,_=t.sampleRate!=null?t.sampleRate:1,b=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,S=t.sessionId||b(),w=[],A=[],C=null,O=null,N=()=>{C||!w.length||(C=setTimeout(q,m))},B=X=>{if(O)return;let Q=T*Math.pow(2,Math.max(0,X-1));O=setTimeout(()=>{if(O=null,!A.length)return;let rt=A.shift();K(rt.envelope,rt.attempt)},Q)},M=(X,Q=!1)=>{let rt=u?$E(u):null,et={id:S,sentAt:Date.now()};Q&&(et.endedAt=Date.now());let pt={v:1,session:et,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:t8(),user:rt?.user||null,traits:rt?.traits||null,tags:rt?.tags||null,events:X};if((h?$E(h)===!0:g)&&(pt.app.debug=!0),p)try{return p(pt)||null}catch{return pt}return pt},K=async(X,Q=1)=>{if(X)try{let rt=!0;if(n){let et=await n(X);rt=et!==!1&&et?.ok!==!1}else rt=await e8(e,X,{apiKey:r,getAuth:f});!rt&&Q<x&&(A.push({envelope:X,attempt:Q+1}),B(Q+1))}catch{Q<x&&(A.push({envelope:X,attempt:Q+1}),B(Q+1))}},q=(X=!1,Q=!1)=>{if(C&&(clearTimeout(C),C=null),!w.length&&!Q)return;let rt=w;w=[];let et=M(rt,Q);if(et){if(X&&ly){if(typeof o=="function"&&$E(()=>o(et)))return;if(navigator.sendBeacon&&e){let pt=X9(et);if(pt)try{navigator.sendBeacon(e,new R.Blob([pt],{type:"application/json"}));return}catch{}}}K(et)}},tt=!1,nt=()=>{tt||(tt=!0,q(!0,!0))};ly&&(R.addEventListener("pagehide",nt,{passive:!0}),R.addEventListener("beforeunload",nt,{passive:!0}),R.addEventListener("visibilitychange",()=>{R.document.visibilityState==="hidden"&&q(!0)},{passive:!0}));let ot=X=>{if(!X||_<1&&Math.random()>_)return;tt&&(tt=!1);let Q={...X,log_type:d(X)};w.push(Q),w.length>v&&(w=w.slice(-v)),w.length>=y?q():N()},Z=X=>(q(!1,!0),S=X||b(),tt=!1,ot.sessionId=S,S);return ot.flush=()=>q(!1),ot.endSession=nt,ot.startNewSession=Z,ot.sessionId=S,ot},$E=t=>{try{return t()}catch{return null}},e8=async(t,e,{apiKey:n,getAuth:o})=>{let r={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(n&&(r["X-Analyze-Key"]=n),o)try{let s=await o();s&&(r.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:"POST",headers:r,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var n8={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},o8="\x1B[0m",uy=typeof R<"u"&&typeof R.document<"u",jE=(t={})=>{let e=t.minLevel||null,n=console.error.bind(console),o=console.warn.bind(console),r=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?n:s.level==="warn"?o:r,a=`[analyze:${s.type}]`;if(uy)i(a,s);else{let c=n8[s.level]||"";i(`${c}${a}${o8}`,s)}}},UE=(t,e={})=>{let n=e.max||t.config.cache?.max||500,o=new Array(n),r=0,s=0,i=a=>{o[r]=a,r=(r+1)%n,s<n&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(r-s+n)%n;for(let l=0;l<s;l++)a[l]=o[(c+l)%n];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{r=0,s=0}},i},VE=(t={})=>{let e=t.url,n=t.batchMs!=null?t.batchMs:5e3,o=t.maxBatch||50;if(!e)return()=>{};let r=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!r.length)return;let c=JSON.stringify({events:r});r=[];let l=uy?new R.Blob([c],{type:"application/json"}):c;if(uy&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};uy&&(R.addEventListener("pagehide",i,{passive:!0}),R.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(r.push(c),r.length>=o?i():s||(s=setTimeout(i,n)))};return a.flush=i,a},uN={console:jE,memory:UE,beacon:VE,remote:fy},dN=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},dy=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],n=[];for(let o of e)if(typeof o=="function")n.push(o);else if(typeof o=="string"){let r=uN[o];if(!r)continue;n.push(o==="memory"?r(t,{}):r(o==="remote"?dN(t,{}):{}))}else if(o&&typeof o=="object"&&o.type){let r=uN[o.type];if(!r)continue;n.push(o.type==="memory"?r(t,o):r(o.type==="remote"?dN(t,o):o))}return n};var r8=typeof R<"u"&&typeof R.document<"u",s8=new Set(["password","hidden"]),pN=(t,e)=>{let n=0,o=null,r=null;return(...s)=>{let i=Date.now();i-n>=e?(n=i,t(...s)):(r=s,o||(o=setTimeout(()=>{n=Date.now(),o=null,r&&(t(...r),r=null)},e-(i-n))))}},HE="__analyzeKeyPath",wc=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[HE])return e[HE];let n=[],o=e,r=0,s=null;for(;o&&r<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),n.unshift(a))}o=o.parentNode,r++}let i;if(n.length)i={selector:null,key:s,path:n.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[HE]=i}catch{}return i},i8=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let n=0,o=String(t||"");for(let r=0;r<o.length;r++)n=(n<<5)-n+o.charCodeAt(r)|0;return`#${(n>>>0).toString(36)}`}return"***"}},a8=t=>!!(!t||t.tagName==="INPUT"&&s8.has(t.type)||iy.test(t.name||"")||iy.test(t.id||"")||t.dataset?.analyze==="skip"),py=t=>{if(!r8)return;let e=t.config.capture,n=t.config.throttle,o=t.__teardown,r=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(r(R,"error",s=>{t.emit(ct("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),r(R,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(ct("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){r(R,"click",i=>{t.emit(ct("pointer","info",{hook:"click",target:wc(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:hN(i)}))},{passive:!0,capture:!0}),r(R,"dblclick",i=>{t.emit(ct("pointer","info",{hook:"dblclick",target:wc(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),r(R,"contextmenu",i=>{t.emit(ct("pointer","info",{hook:"contextmenu",target:wc(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=pN(i=>{t.emit(ct("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);r(R,"pointermove",s,{passive:!0})}if(e.keyboard&&r(R,"keydown",s=>{t.emit(ct("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:hN(s),target:wc(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=a8(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=i8(a.value,t.config.maskStrategy)),t.emit(ct("forms","info",{hook:i.type,target:wc(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};r(R,"input",s,{passive:!0,capture:!0}),r(R,"change",s,{passive:!0,capture:!0}),r(R,"submit",i=>{t.emit(ct("forms","info",{hook:"submit",target:wc(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=pN(()=>{t.emit(ct("scroll","trace",{hook:"scroll",x:R.scrollX,y:R.scrollY}))},n.scroll);r(R,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=ol(()=>{t.emit(ct("viewport","info",{hook:"resize",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))},n.resize);r(R,"resize",s,{passive:!0}),r(R,"orientationchange",()=>{t.emit(ct("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),r(R.document,"visibilitychange",()=>{t.emit(ct("viewport","info",{hook:"visibilitychange",hidden:R.document.hidden}))},{passive:!0}),t.emit(ct("viewport","info",{hook:"initial",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(ct("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(gN)}))}catch{}return i.apply(console,a)},o.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(ct("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}o.push(()=>s.disconnect())}catch{}},hN=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),c8=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=gN(t.cause)),e},gN=t=>{if(t==null)return t;if(t instanceof Error)return c8(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};var l8=typeof R<"u"&&typeof R.document<"u",mN=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let o=e.phase==="error"?"error":"info";n.emit(ct("network",o,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},id=t=>{if(l8&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof R.fetch=="function"){let e=R.fetch.bind(R),n=function(o,r){if(r?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(o,r);let s=typeof o=="string"?o:o&&o.url||"",i=(r?.method||typeof o=="object"&&o?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(ct("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(o,r).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(ct("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(ct("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};R.fetch=n,t.__teardown.push(()=>{R.fetch=e})}if(typeof R.XMLHttpRequest=="function"){let e=R.XMLHttpRequest,n=e.prototype.open,o=e.prototype.send;e.prototype.open=function(r,s){return this.__analyze={method:String(r).toUpperCase(),url:String(s)},n.apply(this,arguments)},e.prototype.send=function(r){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return o.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(ct("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(ct("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(ct("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),o.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=n,e.prototype.send=o})}}};var f8={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},u8={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},d8={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},p8={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},h8=t=>{let e={...f8,...t};return e.replay&&Object.assign(e,u8),e.telemetry&&Object.assign(e,d8),e.remote&&Object.assign(e,p8),Object.assign(e,t),e},g8=64,m8=()=>{if(typeof R>"u"||!R.location)return null;try{let e=new URLSearchParams(R.location.search).get("analyze");return e||null}catch{return null}},_N=(t={})=>{let e=t===!0?{}:{...t};e.capture=h8(e.capture||{});let n=m8();(n==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),n==="off"&&(e.enabled=!1),e.level=sd(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let o={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},r=()=>{o.__pipeline||(o.__pipeline=cy(o),o.__sinks=dy(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&sy(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<g8&&o.__preBuffer.push(s);return}r(),yN(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){r();for(let a of i)yN(o,a)}try{py(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{id(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=sd(s)},o.setCapture=(s,i)=>{if(o.config.capture[s]=!!i,s==="network"&&i&&o.__ready)try{id(o)}catch(a){console.error("[analyze] network attach error:",a)}},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.startNewSession=s=>{let i=s||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(o.config.sinks)?o.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(o.__sinks)for(let c of o.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},yN=(t,e)=>{let n=t.__pipeline(e);if(n==null)return;let o=Array.isArray(n)?n:[n];for(let r of o){if(typeof t.config.onEvent=="function")try{t.config.onEvent(r)}catch{}for(let s of t.__sinks)try{s(r)}catch(i){console.error("[analyze] sink error:",i)}}};var ZE=/*@__PURE__*/$({},{shorthandPlugin:()=>gy});var XE=/*@__PURE__*/$({},{PRESERVE_VALUE_KEYS:()=>te,SKIP_INLINE_KEYS:()=>Mr,abbrToProp:()=>Jt,decode:()=>kN,encode:()=>SN,expand:()=>fi,isComponentKey:()=>Rn,isSelectorKey:()=>Dn,parse:()=>ui,parseFurther:()=>pi,propToAbbr:()=>hn,shorten:()=>cd,shorthandPlugin:()=>gy,stringify:()=>li,stringifyFurther:()=>di});var hn={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},Jt=Object.create(null);for(let t in hn)Jt[hn[t]]=t;var zE=Object.create(null);for(let t in hn){let e=hn[t];if(zE[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${zE[e]}"`);zE[e]=t}var te=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Mr=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function Rn(t){return/^[A-Z]/.test(t)}function Dn(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function SN(t){if(!t||typeof t!="object")return"";let e=[];for(let n in t){let o=t[n];if(typeof o=="function"||o!==null&&typeof o=="object"&&!Array.isArray(o)||o===void 0)continue;let r=hn[n]||n;if(o===!0)e.push(r);else if(o===!1)e.push("!"+r);else if(Array.isArray(o)){let s=o.map(i=>hy(i));e.push(r+":"+s.join(","))}else e.push(r+":"+hy(o))}return e.join(" ")}function hy(t){return String(t).replace(/ /g,"_")}function cd(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?cd(n):n});let e={};for(let n in t){let o=t[n];if(Rn(n)){e[n]=WE(o);continue}if(Dn(n)){e[n]=WE(o);continue}let r=hn[n]||n;if(te.has(n)||te.has(r)){e[r]=o;continue}e[r]=WE(o)}return e}function WE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?cd(e):e}):typeof t=="object"?cd(t):t}function li(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(o){return o!==null&&typeof o=="object"?li(o):o});let e={},n=[];for(let o in t){let r=t[o];if(Rn(o)){e[o]=bN(r);continue}if(Dn(o)){e[o]=bN(r);continue}let s=hn[o]||o;if(te.has(o)||te.has(s)){e[s]=r;continue}if(typeof r=="function"){e[s]=r;continue}if(r==null){e[s]=r;continue}if(Mr.has(o)||Mr.has(s)){e[s]=r;continue}if(Array.isArray(r)){if(r.some(function(a){return a!==null&&typeof a=="object"})){e[s]=r.map(function(a){return a!==null&&typeof a=="object"?li(a):a});continue}if(r.length<=1){e[s]=r;continue}n.push(s+":"+r.map(hy).join(","));continue}if(typeof r=="object"){e[s]=li(r);continue}r===!0?n.push(s):r===!1?n.push("!"+s):typeof r=="number"||typeof r=="string"&&(r.includes(",")||r.includes("_"))?e[s]=r:n.push(s+":"+hy(r))}return n.length&&(e.in=n.join(" ")),e}function bN(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?li(e):e}):typeof t=="object"?li(t):t}function kN(t){if(!t||typeof t!="string")return{};let e={},n=TN(t);for(let o of n){if(o.startsWith("!")){let c=o.slice(1),l=Jt[c]||c;e[l]=!1;continue}let r=o.indexOf(":");if(r===-1){let c=Jt[o]||o;e[c]=!0;continue}let s=o.slice(0,r),i=o.slice(r+1),a=Jt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(wN);continue}e[a]=wN(i)}return e}function TN(t){return t.trim().split(/\s+/).filter(Boolean)}function wN(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function xN(t){return t.replace(/_/g," ")}function y8(t){if(!t||typeof t!="string")return{};let e={},n=TN(t);for(let o of n){if(o.startsWith("!")){let c=o.slice(1),l=Jt[c]||c;e[l]=!1;continue}let r=o.indexOf(":");if(r===-1){let c=Jt[o]||o;e[c]=!0;continue}let s=o.slice(0,r),i=o.slice(r+1),a=Jt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(xN);continue}e[a]=xN(i)}return e}function fi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?fi(n):n});let e={};for(let n in t){let o=t[n];if(Rn(n)){e[n]=GE(o);continue}let r=Jt[n]||n;if(Dn(n)&&r===n){e[n]=GE(o);continue}if(te.has(r)||te.has(n)){e[r]=o;continue}e[r]=GE(o)}return e}function GE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?fi(e):e}):typeof t=="object"?fi(t):t}function ui(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?ui(n):n});let e={};if(typeof t.in=="string"){let n=y8(t.in);for(let o in n)e[o]=n[o]}for(let n in t){if(n==="in")continue;let o=t[n];if(Rn(n)){e[n]=KE(o);continue}let r=Jt[n]||n;if(Dn(n)&&r===n){e[n]=KE(o);continue}if(te.has(r)||te.has(n)){e[r]=o;continue}e[r]=KE(o)}return e}function KE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ui(e):e}):typeof t=="object"?ui(t):t}function EN(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function _8(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){let o=t[n+1];if(o===","||o==="_"||o==="\\"){e+=o,n+=2;continue}}t[n]==="_"?e+=" ":e+=t[n],n++}return e}function b8(t){let e=[],n="",o=0;for(;o<t.length;){if(t[o]==="\\"&&o+1<t.length){n+=t[o]+t[o+1],o+=2;continue}if(t[o]===","){e.push(n),n="",o++;continue}n+=t[o],o++}return e.push(n),e}function AN(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function di(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(o){return o!==null&&typeof o=="object"?di(o):o});let e={},n=[];for(let o in t){let r=t[o];if(Rn(o)){let i=vN(r);e[o]=AN(i)?i.in:i;continue}if(Dn(o)){let i=vN(r);e[o]=AN(i)?i.in:i;continue}let s=hn[o]||o;if(te.has(o)||te.has(s)){e[s]=r;continue}if(typeof r=="function"){e[s]=r;continue}if(r==null){e[s]=r;continue}if(Mr.has(o)||Mr.has(s)){e[s]=r;continue}if(Array.isArray(r)){if(r.some(function(a){return a!==null&&typeof a=="object"})){e[s]=r.map(function(a){return a!==null&&typeof a=="object"?di(a):a});continue}if(r.length<=1){e[s]=r;continue}n.push(s+":"+r.map(EN).join(","));continue}if(typeof r=="object"){e[s]=di(r);continue}if(r===!0){n.push(s);continue}if(r===!1){n.push("!"+s);continue}if(typeof r=="number"){n.push(s+":#"+r);continue}n.push(s+":"+EN(r))}return n.length&&(e.in=n.join(" ")),e}function vN(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?di(e):e}):typeof t=="object"?di(t):t}function CN(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):_8(t)}function qE(t){if(!t||typeof t!="string")return{};let e={},n=t.trim().split(/\s+/).filter(Boolean);for(let o of n){if(o.startsWith("!")){let l=o.slice(1),f=Jt[l]||l;e[f]=!1;continue}let r=o.indexOf(":");if(r===-1){let l=Jt[o]||o;e[l]=!0;continue}let s=o.slice(0,r),i=o.slice(r+1),a=Jt[s]||s,c=b8(i);if(c.length>1){e[a]=c.map(CN);continue}e[a]=CN(i)}return e}function pi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?pi(n):n});let e={};if(typeof t.in=="string"){let n=qE(t.in);for(let o in n)e[o]=n[o]}for(let n in t){if(n==="in")continue;let o=t[n];if(Rn(n)){typeof o=="string"?e[n]=qE(o):e[n]=YE(o);continue}let r=Jt[n]||n;if(Dn(n)&&r===n){typeof o=="string"?e[n]=qE(o):e[n]=YE(o);continue}if(te.has(r)||te.has(n)){e[r]=o;continue}e[r]=YE(o)}return e}function YE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?pi(e):e}):typeof t=="object"?pi(t):t}var S8={shorten:fi,stringify:ui,stringifyFurther:pi};function w8(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>e(o));let n={};for(let o in t){let r=t[o];n[o]=r&&typeof r=="object"?e(r):r}return n}var x8=["components","pages","snippets"],gy={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let o=S8[e===!0?"shorten":e];if(o){for(let r of x8)t[r]&&(t[r]=w8(t[r],o));t.app&&typeof t.app=="object"&&(t.app=o(t.app))}}};var ld=/*@__PURE__*/$({},{Inspect:()=>my,inspectPlugin:()=>T8});function ON(t){return E(t)?t:P(t)?t.find(e=>E(e)):""}function QE(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&ON(t.extends),o=t.parent&&t.parent.childExtends&&ON(t.parent.childExtends);return(e||n||o||"").split("_")[0].split(".")[0].split("+")[0]}function yy(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:o}=t.context,r=QE(t);return o&&o.onInitInspect&&!o.onInitInspect(r,t,t.state)?yy(t.parent):r&&(e[r]||n[r])?t:yy(t.parent)}var k8=(t,e,n)=>{let o=n.window||window;o.onkeydown=r=>{r.altKey&&r.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=r=>{t.state.preventSelect&&(!r.altKey||!r.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},my={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:k8,onMousemove:(t,e,n)=>{let o=t.target.ref,r=yy(o),s=e.Inspector.state;if(!r||!n.debugging||!r.__ref)return s.update({area:!1});let i=QE(r),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=r.node.getBoundingClientRect(),p={x:l,y:f,width:u,height:d};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,n)=>{if(!n.debugging)return;let o=t.target.ref,r=yy(o);if(!r)return;let s=QE(r);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(k(e)){let{Content:n,...o}=e;for(let r in o)dc[r]||(o[r].__ref||(o[r].__ref={}),o[r].__ref.__componentKey||(o[r].__ref.__componentKey=r))}},onBeforeUpdate:(t,e,n)=>{let{area:o}=n,r=n.area&&n.parent.debugging,s;if(!r)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
161
161
  display: block !important;
162
162
  top: ${a-6}px;
163
163
  left: ${i-6}px;
164
164
  width: ${c+12}px;
165
165
  height: ${l+12}px;
166
- `}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},f8={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(uy):t.extends?t.extends=[t.extends,uy]:t.extends=[uy]}};var QE=/*@__PURE__*/$({},{DefaultSyncApp:()=>S8,FORBIDDEN_SEGMENTS:()=>id,Notifications:()=>gy,SyncComponent:()=>ZE,applyOpsToCtx:()=>ad,connectToSocket:()=>EN,deletePath:()=>WE,isSafePath:()=>py,liveSyncTransport:()=>hy,notificationsPlugin:()=>T8,onOps:()=>YE,onSnapshot:()=>qE,seedRawDesignSystem:()=>bc,setPath:()=>GE,syncPlugin:()=>k8,wantsLiveSync:()=>di});var id=new Set(["__proto__","constructor","prototype"]),py=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(id.has(t[e]))return!1;return!0},WE=(t,e)=>{!t||!py(e)||e.reduce((n,o,r,s)=>{if(n&&o in n){if(r!==s.length-1)return n[o];delete n[o]}},t)},GE=(t,e,n,o=!1)=>{!t||!py(e)||e.reduce((r,s,i,a)=>{if(r){if(i!==a.length-1)return!r[s]&&o&&(r[s]={}),r[s];r[s]=n}},t)},ad=(t,e)=>{let n=new Set;if(!Array.isArray(e))return n;for(let[o,r,s]of e)if(!(!Array.isArray(r)||!r.length))switch(n.add(r[0]),o){case"delete":WE(t,r);break;case"update":case"set":GE(t,r,s,!0);break;default:break}return n},wN=(t,e)=>{if(!e||typeof e!="object"||Array.isArray(e))return null;let n=t&&(t.__raw||t)||{},o=null;for(let r of Object.keys(e))id.has(r)||Object.prototype.hasOwnProperty.call(n,r)||(o||(o={}),o[r]=e[r]);return o},u8=()=>typeof R<"u"&&!!R&&!!R.__SYMBOLS_ENV__,d8=()=>{try{if(R.self!==R.top)return!0}catch{return!0}try{return new URLSearchParams(R.location.search).has("liveSync")}catch{return!1}},SN=Object.freeze({mode:null,baseUrl:null}),hy=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?u8()&&!d8()?SN:{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:SN},di=t=>hy(t).mode!==null,bc=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},xN=(t,e,n,o="designSystem")=>{for(let r in e){if(id.has(r))continue;let s=`${o}/${r}`;if(n.has(s))continue;let i=e[r],a=t[r];if(i&&typeof i=="object"&&!Array.isArray(i)){if(!a||typeof a!="object"||Array.isArray(a)){if(r in t)continue;t[r]={}}xN(t[r],i,n,s)}else r in t||(t[r]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},KE=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let r={designSystem:t.__rawDesignSystem};ad(r,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return ql(n,o,xN)};var qE=(t,e,n)=>{let o=!1;return(r={})=>{let{data:s}=r,{schema:i}=r;s&&(s=t.call("deepDestringifyFunctions",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(n[a]&&typeof n[a]=="object")if(a==="designSystem"){if(bc(n,c),o){let l=KE(n);l&&to(l)}}else Kr(n[a],c);else n[a]=c}),o=!0,i&&(n.schema=i))}},YE=(t,e,n)=>(o={})=>{let{changes:r}=o;if(!r||!Array.isArray(r)||!r.length)return;r=t.call("deepDestringifyFunctions",r,Array.isArray(r)?[]:{});let s=r.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]==="designSystem"),i=s.length?r.filter(c=>!s.includes(c)):r,a=ad(n,i);if(s.length&&a.add("designSystem"),a.has("designSystem")){let c=KE(n,s);c?to(c):n.__warnedNoRawDesignSystem||(n.__warnedNoRawDesignSystem=!0,console.warn("[sync] design-system op ignored: no raw design system was seeded on this client. Re-initing from the processed config would corrupt every token, so the update is skipped \u2014 reload to pick it up. Seed it at boot with seedRawDesignSystem(ctx, ds)."))}if(a.has("state")){let c=wN(e,n.state);if(c){let l=typeof e.$update=="function"?e.$update:e.update;typeof l=="function"&&l.call(e,c)}}if(["pages","components","snippets","functions","assets"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=n.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var p8={success:"green",error:"red",warning:"yellow"},kN=(t,e,n)=>{if(t.symbols){if(!n.connected){n.notifications.connected={title:"Connected",message:"to the Symbols live server"},n.update({connected:!0});let o=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(o)},3e3)}}else if(n.connected){n.notifications.connected={title:"Disconnected",type:"error"},n.update({connected:!1});let o=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(o)},3e3)}},gy={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:p8[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,n,o)=>{n.update({animation:"fadeInUp"})},onClick:(e,n,o)=>{delete o.notifications[n.key],n.update({animation:"fadeOutDown"}),o.onClose&&o.onClose(e,n,o)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var h8=!1,g8=()=>h8?"http://localhost:8080":"https://api.symbols.app",XE=null,m8=()=>(XE||(XE=import("./smbls.socket-io-client.esm.js").then(t=>{let e=t&&(t.io||t.default);if(typeof e!="function")throw new TypeError("socket.io-client exports no io()");return e}).catch(t=>(console.warn("[sync] socket.io-client failed to load \u2014 live sync disabled",t),null))),XE),y8=async t=>{try{let e=t||g8(),n=await R.fetch(`${e}/service-token`,{method:"GET"}),o;try{let r=await n.clone().json();if(r&&typeof r.token=="string")return r.token.trim();o=await n.text()}catch{o=await n.text()}return(o||"").replace(/\s+/gu,"")||void 0}catch(e){console.warn("[sync] Failed to fetch service-token",e)}},TN=(t,e,n,o)=>{t.on("snapshot",qE(e,n,o)),t.on("ops",YE(e,n,o)),t.on("clients",r=>{o.editor?.verbose&&kN(r,e,n)}),t.on("disconnect",r=>{o.editor?.verbose&&console.info("[sync] disconnected",r)})},_8=async(t,e,n,o,r)=>{let s=await y8(o);if(!s)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=n.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let a=n.editor?.projectId||null,c=await r;if(!c)return null;let l=c(o,{path:"/collab-socket",transports:["websocket"],auth:{token:s,projectId:a,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return l.on("connect",()=>{n.editor?.verbose&&console.info("[sync] connected (collab)")}),TN(l,t,e,n),l},b8=async(t,e,n,o)=>{let r=await o;if(!r)return null;let s=r({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return s.on("connect",()=>{n.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),TN(s,t,e,n),s.on("reload",()=>{typeof R<"u"&&R.location&&R.location.reload()}),s},EN=async(t,e,n)=>{let{mode:o,baseUrl:r}=hy(n);if(!o)return null;let s=m8();return o==="collab"?_8(t,e,n,r,s):o==="runner"?b8(t,e,n,s):null},ZE={onInit:EN},S8={extends:[ZE,gy]},AN=t=>typeof t>"u",w8=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),x8=t=>t?.editor?.runtime==="runner",vN=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},k8={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!AN(n.liveSync)?n.liveSync:di(e))&&(w8(e)&&!x8(e)&&!e?.key||vN(t,ZE))}},T8={name:"notifications",beforeCreate(t,e){if(!e)return;let n=AN(e.notifications)?null:e.notifications,o=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&o)&&vN(t,gy)}};var tA=/*@__PURE__*/$({},{fetchAsync:()=>O8,fetchSync:()=>C8});var CN=R&&R.location&&typeof R.location.host=="string"?R.location.host:null,JE=CN!==null?CN.includes("dev."):zo(),ON=JE?"http://localhost:8080/get":"https://api.symbols.app/get",E8={endpoint:ON},RN=async(t,e=E8)=>{let n=e.endpoint||ON,o=e.serviceRoute?P(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",r;try{return r=await globalThis.fetch(n+"/?"+o,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await r.json()}catch(s){if(I(e.onError))return e.onError(s);console.error(s)}},A8=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let o=await RN(t,n),r=JE||e.isDevelopment?de(o):de(o.releases[0]);n.serviceRoute?P(n.serviceRoute)?n.serviceRoute.forEach(s=>{ee(e[s],r[s.toLowerCase()])}):ee(e[n.serviceRoute],r):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{ee(e[s],r[s.toLowerCase()])})}return e},v8=async(t,e,n)=>{let{editor:o}=e;if(o&&o.remote){let r=await RN(t,o),s=JE||e.isDevelopment?de(r):de(r.releases[0]);n(s)}},C8=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await A8(t,e)}catch(n){console.error(n)}},O8=(t,e,n,o)=>{if(e&&n.editor)try{n.editor.async&&v8(e,n,o||(r=>{let s=r.designSystem;k(s)&&n.utils.init(s),k(r.state)&&t.state.set(r.state)}))}catch(r){console.error(r)}};var R8={windows:()=>Promise.resolve(lE),dropdown:()=>Promise.resolve(_E),tooltip:()=>Promise.resolve(TE),analyze:()=>Promise.resolve(od),shorthand:()=>Promise.resolve(HE),inspect:()=>Promise.resolve(sd),sync:()=>globalThis.__SMBLS_BUILD_DROP_F_liveSync__?Promise.resolve(Vt("liveSync")):Promise.resolve(QE),fetch:()=>Promise.resolve(ns),fetchOnCreate:()=>Promise.resolve(tA)},Fe=(t,e)=>Array.isArray(t.plugins)&&t.plugins.some(n=>n&&n.name===e),DN=t=>{let e=[];return t.shorthand&&e.push("shorthand"),t.analyze&&!Fe(t,"analyze")&&e.push("analyze"),t.inspect&&!Fe(t,"inspect")&&e.push("inspect"),t.fetch&&e.push("fetch"),t.windows!==!1&&e.push("windows"),t.dropdown!==!1&&e.push("dropdown"),t.tooltip!==!1&&e.push("tooltip"),e},cd={},LN={},ce=t=>{if(cd[t])return cd[t];let e=R8[t];return e?(cd[t]=e().then(n=>(LN[t]=n,n),n=>(delete cd[t],console.error(`[smbls] the ${t} module failed to load; the app runs without it`,n),null)),cd[t]):Promise.resolve(null)},Sc=t=>LN[t]||null;var pi=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let n of e.__teardowns)try{n()}catch(o){console.error("[smbls] destroy teardown error:",o)}e.__teardowns.length=0}try{rn(t)}catch(n){console.error("[smbls] dispose error:",n)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(n){console.error("[analyze] destroy error:",n)}return t.__destroyed=!0,!0};var iA=/*@__PURE__*/$({},{Helmet:()=>t$,applyElementMetadata:()=>Sy,applyMetadata:()=>M8,default:()=>Q8,extractMetadata:()=>I8,generateHeadHtml:()=>Z8,helmetPlugin:()=>wy,resolveMetadata:()=>ld});var un={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},$o=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key){let e=`${t.tag}[${t.attr}="${t.key}"]`;return t.key==="theme-color"?`${e}:not([data-smbls-theme-color])`:e}},IN=t=>de({v:t}).v,PN=(t,e,n,o)=>{try{return bt(t,e,n)}catch(r){console.warn(`[helmet] metadata factory for "${o}" threw; treating as unset:`,r&&r.message||r);return}},my=Object.freeze({authored:!0}),ld=(t,e,n,o)=>{if(!t)return{};let r=t;E(r)&&te(r)&&(r=IN(r));let s=I(r),i=!s&&o?.authored===!0,a=s?PN(r,e,n,"metadata"):k(r)?{...r}:{};if(!k(a))return{};for(let c in a){let l=a[c],f=i&&E(l)&&!te(l);E(l)&&te(l)&&(l=IN(l)),I(l)?l=PN(l,e,n,c):E(l)&&te(l)&&(l=void 0),E(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,my):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},D8=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),L8=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t["/*"])return t["/*"];if(t["*"])return t["*"];for(let n in t)if(D8(t[n]))return t[n]},I8=(t,e="/",n,o,r)=>{let s=t.pages||{},i=L8(s,e),a={};if(t.integrations?.seo&&(a={...t.integrations.seo}),t.app?.metadata){let f=ld(t.app.metadata,n,o,my);a={...a,...f}}let c=new Set;if(i){let f=i.metadata||i.helmet||{},u=r?ld(f,r,r.state,my):ld(f,n,o,my);for(let d in u)c.add(d);a={...a,...u},!a.title&&i.state?.title&&(a.title=i.state.title,c.add("title")),!a.description&&i.state?.description&&(a.description=i.state.description,c.add("description"))}a.title||(a.title=t.name||"Symbols"),a.title&&(c.has("title")||!a["og:title"])&&(c.has("og:title")||(a["og:title"]=a.title)),a.description&&(c.has("description")||!a["og:description"])&&(c.has("og:description")||(a["og:description"]=a.description)),a.title&&!a["twitter:title"]&&(a["twitter:title"]=a.title),a.description&&!a["twitter:description"]&&(a["twitter:description"]=a.description);let l=c.has("og:url")?a["og:url"]:c.has("url")?a.url:void 0;if(l)a["og:url"]=l;else if(a["og:url"]||a.url){let f=(a["og:url"]||a.url||"").replace(/\/$/,"");if(f&&e&&e!=="/"){let u=e.startsWith("/")?e:"/"+e;a["og:url"]=f+u}}return ps(a,fs(t.files,t.sharedLibraries))},jN=(t,e)=>ps(ld(t,e,e.state),e.context?.files),UN=t=>t.context?.document||typeof document<"u"&&document,VN=t=>Object.prototype.hasOwnProperty.call(un,t),_y=new Map;for(let t in un){let e=$o(un[t]);_y.has(e)||_y.set(e,un[t])}var by=t=>t.head||t.querySelector("head"),oA=(t,e)=>{let n=by(t);return n?n.querySelector(e):null},eA=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),rA=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},sA=(t,e)=>{let n=by(e);if(!n)return null;let o=e.createElement(t.tag);return t.attr&&o.setAttribute(t.attr,t.key),n.appendChild(o),o},hi=(t,e,n,o)=>{let r=t.head||t.querySelector("head");if(!r)return;let s=new Map;for(let a of r.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Map;n.forEach((a,c)=>{i.has(a)||i.set(a,c)});for(let[a,c]of s)i.has(a)||c.remove();for(let a of n){if(s.has(a))continue;let c=o(a,i.get(a));c&&(c.setAttribute(e,a),r.appendChild(c))}},HN=(t,e)=>{let o=(e||[]).filter(s=>s!=null).map(s=>E(s)?s:JSON.stringify(s)),r=o.map(Sn);hi(t,"data-smbls-jsonld",r,(s,i)=>{let a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=o[i],a})},zN=(t,e)=>{let n=(e||[]).filter(r=>r!=null&&String(r).trim()),o=n.map(Sn);hi(t,"data-smbls-style",o,(r,s)=>{let i=t.createElement("style");return i.textContent=String(n[s]),i})},WN=t=>(t||[]).filter(e=>e&&(E(e)?e.trim():e.src)),GN=t=>E(t)?t:String(t.src),KN=(t,e)=>{let n=t.createElement("script");return E(e)?n.setAttribute("src",e):(e.src&&n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.async&&(n.async=!0),e.defer&&(n.defer=!0),e.integrity&&n.setAttribute("integrity",e.integrity),e.crossorigin&&n.setAttribute("crossorigin",e.crossorigin),e.referrerpolicy&&n.setAttribute("referrerpolicy",e.referrerpolicy),e.nomodule&&(n.noModule=!0),e.body&&(n.textContent=String(e.body))),n},P8=(t,e)=>{let n=WN(e),o=n.map(GN);hi(t,"data-smbls-script",o,(r,s)=>KN(t,n[s]))},qN=(t,e)=>{let n=(e||[]).filter(r=>k(r)),o=n.map(us);hi(t,"data-smbls-alternate",o,(r,s)=>{let i=t.createElement("link");i.setAttribute("rel","alternate");for(let[a,c]of Object.entries(n[s]))i.setAttribute(a,c);return i})},YN=(t,e)=>{let n=(e||[]).filter(r=>r!=null),o=n.map(er);hi(t,"data-smbls-favicon",o,(r,s)=>{let i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),k(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},XN=(t,e)=>{let n=e?String(e):"",o=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";hi(t,"data-smbls-single-icon",n?[n]:[],r=>{let s=t.createElement("link");return s.setAttribute("rel","icon"),s.setAttribute("href",r),o&&s.setAttribute("type",o),s})},ZN=(t,e)=>{let n=(e||[]).filter(r=>k(r)),o=n.map(ds);hi(t,"data-smbls-theme-color",o,(r,s)=>{let i=n[s],a=t.createElement("meta");return a.setAttribute("name","theme-color"),i.content!==void 0&&a.setAttribute("content",i.content),i.media!==void 0&&a.setAttribute("media",i.media),a})},M8=(t,e)=>{if(!(!k(t)||!e)){for(let n in t){let o=t[n];if(o==null||!VN(n)||n==="theme-color"&&Array.isArray(o))continue;let r=un[n],s=oA(e,$o(r))||sA(r,e);s&&rA(s,r,o)}Array.isArray(t.jsonLd)&&HN(e,t.jsonLd),Array.isArray(t.styles)&&zN(e,t.styles),Array.isArray(t.scripts)&&P8(e,t.scripts),Array.isArray(t.alternate)&&qN(e,t.alternate),Array.isArray(t.favicons)&&YN(e,t.favicons),(t.icon||t.favicon)&&XN(e,t.icon||t.favicon),Array.isArray(t["theme-color"])&&ZN(e,t["theme-color"])}},MN=new WeakMap,nA=new WeakMap,QN=t=>{let e=t.location;return e&&E(e.pathname)?e.pathname:null},B8=t=>{let e=MN.get(t);return e||(e={doc:t,layers:[],servedPath:QN(t),originals:new Map,owned:new Set,lists:new Set},MN.set(t,e)),e},N8=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},BN=t=>{try{return JSON.stringify(t===void 0?null:t)??null}catch{return null}},$8=t=>{if(!k(t))return!0;for(let e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},F8=(t,e)=>{let n=nA.get(t);if(n)return n;let o=B8(e),r={element:t,values:null,signature:BN(null),disposed:!1,set(i){if(r.disposed)return;let a=BN(i);r.values=i,!(a!==null&&a===r.signature)&&(r.signature=a,$N(o))},dispose(){if(r.disposed)return;r.disposed=!0;let i=o.layers.indexOf(r);if(i!==-1&&o.layers.splice(i,1),!$8(r.values))try{$N(o)}catch(a){console.warn("[helmet] could not re-render the head after an element left:",a&&a.message||a)}}},s=o.layers.length;for(let i=0;i<o.layers.length;i++)if(N8(t,o.layers[i].element)){s=i;break}return o.layers.splice(s,0,r),nA.set(t,r),r},JN=(t,e,n,o)=>{let r=F8(t,e),s=W(()=>{let a=n();r.set(a),o&&o(a)}),i=t.__ref?.__effects;i&&i.push(s,r)},j8=$o(un.title),U8=$o(un.description),V8=$o(un["og:title"]),H8=$o(un["og:description"]),z8=$o(un["twitter:title"]),W8=$o(un["twitter:description"]),NN=(t,e,n,o)=>{let r=t.get(e);if(!r||!r.value)return;let s=t.get(n);(!s||!s.value||s.rank<r.rank)&&t.set(n,r);let i=t.get(o);(!i||!i.value)&&t.set(o,r)},yy={jsonLd:HN,styles:zN,alternate:qN,favicons:YN,icon:XN,"theme-color":ZN},G8=Object.keys(yy).filter(t=>t!=="icon"),K8=t=>{let e=new Map,n={},o=[];for(let r=0;r<t.length;r++){let s=t[r].values;if(!k(s))continue;for(let a in s){let c=s[a];c==null||!VN(a)||a==="theme-color"&&Array.isArray(c)||e.set($o(un[a]),{value:String(c),rank:r})}for(let a of G8)Array.isArray(s[a])&&(n[a]=s[a]);let i=s.icon||s.favicon;i&&(n.icon=i),Array.isArray(s.scripts)&&o.push(...s.scripts)}return NN(e,j8,V8,z8),NN(e,U8,H8,W8),{tags:e,lists:n,scripts:o}},q8=(t,e,n)=>{let{doc:o,originals:r}=t,s=_y.get(e),i=oA(o,e),a=r.get(e);a||(a={value:i?eA(i,s):null,rendered:!1},r.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=sA(s,o)),i&&(eA(i,s)!==n&&rA(i,s,n),t.owned.add(e))},Y8=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let o=_y.get(e),r=oA(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&QN(n)===t.servedPath){let a=r||sA(o,n);a&&eA(a,o)!==s.value&&rA(a,o,s.value)}else r&&r.remove()},X8=(t,e)=>{let n=WN(e);if(!n.length)return;let o=by(t),r=new Set;for(let s of o.querySelectorAll("[data-smbls-script]"))r.add(s.getAttribute("data-smbls-script"));for(let s of n){let i=GN(s);if(r.has(i))continue;let a=KN(t,s);a.setAttribute("data-smbls-script",i),o.appendChild(a),r.add(i)}},$N=t=>{let{doc:e}=t;if(!by(e))return;let{tags:n,lists:o,scripts:r}=K8(t.layers);for(let s of[...t.owned])n.has(s)||Y8(t,s);for(let[s,{value:i}]of n)q8(t,s,i);for(let s in yy)o[s]!==void 0?(yy[s](e,o[s]),t.lists.add(s)):t.lists.delete(s)&&yy[s](e,null);X8(e,r)},Z8=t=>{let e=['<meta charset="UTF-8">'],n=new Set(["charset","jsonLd","styles","scripts"]),o=!1;for(let[r,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||n.has(r)||typeof s=="function")continue;if(r==="title"){e.push(`<title>${j(s)}</title>`);continue}if(r==="viewport"){o||(e.push(`<meta name="viewport" content="${j(s)}">`),o=!0);continue}if(r==="canonical"){e.push(`<link rel="canonical" href="${j(s)}">`);continue}if(r==="icon"||r==="favicon"){let f=j(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u} data-smbls-single-icon="${f}">`);continue}if(r==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(k(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${j(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${j(er(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${j(f)}" data-smbls-favicon="${j(er(f))}">`)});continue}if(r==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(k(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${j(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${j(us(f))}">`)}});continue}if(r==="theme-color"&&Array.isArray(s)){s.forEach(f=>{if(!k(f))return;let u=['name="theme-color"'];f.content!==void 0&&u.push(`content="${j(f.content)}"`),f.media!==void 0&&u.push(`media="${j(f.media)}"`),u.push(`data-smbls-theme-color="${j(ds(f))}"`),e.push(`<meta ${u.join(" ")}>`)});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>r.startsWith(f)),l=a.some(f=>r.startsWith(f));if(r.startsWith("http-equiv:")){let f=r.replace("http-equiv:","");e.push(`<meta http-equiv="${j(f)}" content="${j(s)}">`)}else if(r.startsWith("itemprop:")){let f=r.replace("itemprop:","");e.push(`<meta itemprop="${j(f)}" content="${j(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${j(r)}" content="${j(f)}">`)):e.push(`<meta property="${j(r)}" content="${j(s)}">`):l?e.push(`<meta name="${j(r)}" content="${j(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${j(r)}" content="${j(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${j(r)}" content="${j(s)}">`)}return o||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),e.push(...Ji(t)),e.join(`
167
- `)},t$={define:{metadata:(t,e)=>{Sy(t,e,n=>{let o=e.state?.root;k(o)&&(o.$helmet=n)})}}},Sy=(t,e,n)=>{let o=UN(e);o&&JN(e,o,()=>jN(t,e),n)},FN=t=>{let e=t.metadata;return e?jN(e,t):null},wy={name:"helmet",create(t){if(!t.metadata)return;let e=UN(t);e&&JN(t,e,()=>FN(t))},update(t){let e=nA.get(t);if(!e)return wy.create(t);e.disposed||e.set(FN(t))}},Q8=t$;var e$=(t,e,n,o)=>{if(!t||!o?.fetch)return;let r=Sc("fetch");if(r){r.executeFetch(t,e,n,o);return}ce("fetch").then(s=>{s&&s.executeFetch(t,e,n,o)})},n$=(t,e)=>{t&&Sy(t,e)},o$=async(t,e)=>{if(!t)return;let n={tag:"fragment",...t},o=async()=>{await e.set(n,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(o):await o(),n},wc={routes:t=>t,metadata:n$,fetch:e$,$router:o$},r$=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=n$),t.fetch!==!1&&(e.fetch=e$),t.router!==!1&&(e.$router=o$),e};var aA={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},xy={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},cA={...aA,router:xy},J8={state:{},pages:{},components:{},router:xy,define:wc},Ir=J8;var s$=(t,e)=>U(t.extends)?t.extends:[];var i$=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!Array.isArray(t))return null;let o=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let[r,s]of Xi(t,Zi))o[r]||(o[r]=s);return o};var lA=/*@__PURE__*/$({},{apiUrl:()=>ky,channelByApiUrl:()=>f$,channelNames:()=>eG,channels:()=>Ee,currentChannel:()=>Pr,defaultChannel:()=>fG,deployTarget:()=>aG,isKnownChannel:()=>lG,mermaidUrl:()=>iG,normalizeOwnerSegment:()=>uG,normalizeProjectKey:()=>pG,normalizeProjectSlug:()=>dG,parseSymboLsHost:()=>hG,previewProjectUrl:()=>sG,previewUrl:()=>u$,resolveChannel:()=>mi,screenshotCdnHost:()=>d$,screenshotCdnUrl:()=>cG,setChannel:()=>nG,shellUrl:()=>rG,socketUrl:()=>oG});var Ee={channels:{local:{api:"http://localhost:8080",socket:"http://localhost:8080",shell:"http://my.localhost:1355",preview:"http://preview.localhost:1355",mermaidApex:"localhost:1355",deploy:{}},development:{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.my.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},"demo-dev":{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.demo.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-demo-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},next:{api:"https://next.api.symbols.app",socket:"https://next.api.symbols.app",shell:"https://next.my.symbols.app",preview:"https://next.preview.symbols.app",mermaidApex:"next.symbo.ls",deploy:{shellBucket:"smbls-my-next",previewWorker:"smbls-preview-next",mermaidWorker:"mermaid-next"}},test:{api:"https://test.api.symbols.app",socket:"https://test.api.symbols.app",shell:"https://test.my.symbols.app",preview:"https://test.preview.symbols.app",mermaidApex:"test.symbo.ls",deploy:{shellBucket:"smbls-my-test",previewWorker:"smbls-preview-test",mermaidWorker:"mermaid-test"}},upcoming:{api:"https://upcoming.api.symbols.app",socket:"https://upcoming.api.symbols.app",shell:"https://upcoming.my.symbols.app",preview:"https://upcoming.preview.symbols.app",mermaidApex:"upcoming.symbo.ls",deploy:{shellBucket:"smbls-my-upcoming",previewWorker:"smbls-preview-upcoming",mermaidWorker:"mermaid-upcoming"}},staging:{api:"https://staging.api.symbols.app",socket:"https://staging.api.symbols.app",shell:"https://staging.my.symbols.app",preview:"https://staging.preview.symbols.app",mermaidApex:"staging.symbo.ls",deploy:{shellBucket:"smbls-my-staging",previewWorker:"smbls-preview-staging",mermaidWorker:"mermaid-staging"}},demo:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://demo.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-demo",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}},production:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://my.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-prod",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}}},defaultChannel:"production",screenshotCdn:"screenshots.api.symbols.app"};var eG=Object.keys(Ee.channels),Rn=t=>!!(t&&Ee.channels[t]),mi=t=>Rn(t)?Ee.channels[t]:Ee.channels[Ee.defaultChannel],nG=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Rn(t)?t:null,xc=void 0)},xc,gi=t=>typeof process<"u"&&process.env&&process.env[t]||null,Pr=()=>{if(xc!==void 0)return xc;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=gi("SYMBOLS_CHANNEL"),n=gi("NODE_ENV"),o=gi("SYMBOLS_API_URL")||gi("SYMBOLS_API_BASE_URL"),r=o?f$(String(o).trim().replace(/\/+$/,"")):null;return xc=Rn(t)&&t||Rn(e)&&e||Rn(r)&&r||Rn(n)&&n||Ee.defaultChannel,xc===Ee.defaultChannel&&!Rn(t)&&!Rn(e)&&!Rn(r)&&!Rn(n)&&typeof process<"u"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${n||"unset"}, __SYMBOLS_CHANNEL__ unset) \u2014 falling back to "${Ee.defaultChannel}". Outbound URLs (shellUrl${o?"":"/apiUrl"}) will target production`+(o?` (the API follows ${o}, which is no known channel)`:"")+"; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel."),xc},a$=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],c$=t=>{let e=a$.indexOf(t);return e===-1?a$.length:e},f$=t=>{if(!t)return null;let e=Object.keys(Ee.channels).filter(n=>Ee.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,o)=>c$(n)-c$(o))[0]},ky=(t=Pr())=>gi("SYMBOLS_API_URL")||mi(t).api,oG=(t=Pr())=>gi("SYMBOLS_SOCKET_URL")||mi(t).socket,rG=(t=Pr())=>mi(t).shell||null,u$=(t=Pr())=>mi(t).preview||null,sG=({owner:t,key:e,env:n="production"}={},o=Pr())=>{let r=u$(o);if(!r||!t||!e)return null;let s=r.match(/^(https?:\/\/)(.+)$/);if(!s)return null;let[,i,a]=s,c=`${encodeURIComponent(t)}--${encodeURIComponent(e)}`,l=`${i}${c}.${a}/`;return!n||n==="production"||n==="prod"?l:`${l}?env=${encodeURIComponent(n)}`},iG=({owner:t,key:e,env:n="production"}={},o=Pr())=>{let r=mi(o).mermaidApex;if(!r||!t||!e)return null;let i=!n||n==="production"||n==="prod"?"":`--${encodeURIComponent(n)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${r.startsWith("localhost")?"http":"https"}://${a}.${r}`},aG=(t=Pr())=>mi(t).deploy||{},d$=()=>gi("SYMBOLS_SCREENSHOT_CDN")||Ee.screenshotCdn,cG=({owner:t,key:e,page:n="root",componentKey:o,env:r="production",width:s}={})=>{if(!t||!e)return null;let i=o?`component/${encodeURIComponent(o)}`:encodeURIComponent(String(n||"root").replace(/^\/+/,"").replace(/\//g,"-")||"root"),a=[];r&&r!=="production"&&a.push(`env=${encodeURIComponent(r)}`),s&&a.push(`w=${Number(s)}`);let c=a.length?`?${a.join("&")}`:"";return`https://${d$()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},lG=Rn,fG=Ee.defaultChannel,uG=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",dG=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",pG=(t,e={})=>{let n=String(t||"").trim();if(!n)return"";/\.symbo\.ls$/iu.test(n)&&(n=n.replace(/\.symbo\.ls$/iu,"")),n.includes("/")&&(n=n.split("/").pop());let o=typeof e.owner=="string"?e.owner.trim():"";return o&&n.startsWith(`${o}--`)?n=n.slice(o.length+2):!o&&n.includes("--")&&(n=n.slice(n.indexOf("--")+2)),n},l$={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},hG=t=>{if(typeof t!="string"||!t)return null;let e=t.toLowerCase().replace(/^www\./,"").replace(/\/$/,"");if(!e.endsWith(".symbo.ls"))return null;let n=e.split(".");if(n.length<4||n.slice(-2).join(".")!=="symbo.ls")return null;if(n.length===4){let s=n[1],i=n[0],a=l$[s];if(a&&i.includes("--")){let c=i.split("--");if(c.length===2||c.length===3){let[l,f,u]=c;if(l&&f){let d=u?l$[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(n.length>=5)return{projectKey:n[1],owner:n[2],env:n[0]};let o=n[1],r=n[0];if(r.includes("--")){let[s,i]=r.split("--",2);return!s||!i?null:{projectKey:s,owner:o,env:i}}return{projectKey:r,owner:o,env:"production"}};var h$=t=>{let e={faces:0,links:0,kept:0};if(!t)return e;let n=_G(Un());for(let o in t){let r=t[o];if(!r||!r.fontFace)continue;let s=Array.isArray(r.fontFace)?r.fontFace:[r.fontFace];for(let i of s){if(g$(i)){let a=mG(i);a&&yG(a)&&e.links++;continue}if(gG(i)){if(!p$(i))continue;if(n.has(fA(i))){e.kept++;continue}At(i.trim()),e.faces++;continue}if(typeof i=="string"&&i.includes("font-family")){if(!p$(i))continue;if(n.has(fA(i))){e.kept++;continue}At(`@font-face { ${i} }`),e.faces++}}}return e},g$=t=>typeof t=="string"&&t.trim().startsWith("@import"),gG=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),mG=t=>{if(!g$(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},yG=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||Un();if(!n||!n.head)return null;let o="data-smbls-font",r=n.head.querySelectorAll(`link[rel="stylesheet"][${o}]`);for(let i=0;i<r.length;i++)if(r[i].getAttribute(o)===t)return r[i];let s=n.createElement("link");return s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.setAttribute(o,t),n.head.appendChild(s),s},Ty=(t,e)=>{let n=new RegExp(`(?:^|[;{\\s])${e}\\s*:\\s*([^;}]+)`,"i").exec(t);return n?n[1].trim().toLowerCase():null},fA=t=>{let e=String(t||""),n=Ty(e,"font-family");if(!n)return null;let o=Ty(e,"font-weight")||"400";return o==="normal"?o="400":o==="bold"&&(o="700"),n.replace(/^['"]|['"]$/g,"")+"|"+o+"|"+(Ty(e,"font-style")||"normal")},p$=t=>{let e=Ty(String(t||""),"src");return!!e&&e!=="none"},uA=t=>{if(!t)return null;let e=t.type;if(e===5)return t.cssText||"";if(typeof e=="number")return null;let n=t.cssText||"";return/^\s*@font-face/i.test(n)?n:null},_G=t=>{let e=new Set,n=t&&t.styleSheets;if(!n)return e;for(let o=0;o<n.length;o++){let r;try{r=n[o].cssRules}catch{continue}if(r)for(let s=0;s<r.length;s++){let i=uA(r[s]);if(i===null)continue;let a=fA(i);a&&e.add(a)}}return e};var S$='meta[name="brender"]',bG=3e3,dA=t=>t.document||(typeof document<"u"?document:null),w$=(t,e)=>{let n=t.parent;return n&&n.nodeType===1?n:n&&n.node&&n.node.nodeType===1?n.node:e?e.body:null},x$=(t,e)=>{if(e&&e.__BRENDER__)return!0;let n=dA(t);if(!n||typeof n.querySelector!="function")return!1;let o=n.documentElement;if(o&&typeof o.hasAttribute=="function"&&o.hasAttribute("data-brender")||n.querySelector(S$))return!0;let r=w$(t,n);for(let s=r&&r.firstElementChild;s;s=s.nextElementSibling)if(s.hasAttribute("data-br"))return!0;return!1},k$=t=>{let e=dA(t);return!e||!e.head?null:Array.from(e.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]'))},T$=(t,e)=>{if(!e||!e.length)return;let n=[];for(let r of e){let s=null;try{s=r.sheet&&r.sheet.cssRules}catch{s=null}if(s&&s.length)for(let i=0;i<s.length;i++){let a=uA(s[i]);a!==null&&n.push(a)}else{let i=String(r.textContent||"").match(/@font-face\s*\{[^}]*\}/gi);i&&n.push(...i)}}let o=e.find(r=>r.parentNode);if(n.length&&o&&t&&typeof t.createElement=="function"){let r=t.createElement("style");r.setAttribute("data-smbls-faces",""),r.textContent=n.join(`
168
- `),o.parentNode.insertBefore(r,o)}e.forEach(r=>{r.parentNode&&r.remove()})},m$=t=>{console.warn("[smbls] the pre-render registry is not JSON \u2014 the page renders fresh:",t.message)},pA=["paths","tree"],SG=(t,e)=>{let n=$n(e,Ql,{warn:m$});if(n)return{map:Jl(n.value),block:n.block};let o=$n(e,Zl,{warn:m$});return o?{map:k(o.value)?o.value:null,block:o.block}:t&&k(t.__BR_REGISTRY__)?{map:t.__BR_REGISTRY__,legacy:!0}:null},wG=(t,e,n)=>!n||!n.map||t.hydrate===!1?!1:n.legacy?t.hydrate===!0||k(t.hydrate)||!!e&&e.__BRENDER_HYDRATE__===!0:!0,xG=t=>{let e=k(t.hydrate)?t.hydrate.timeout:void 0;return typeof e=="number"&&e>=0?e:bG},E$=(t,e,n)=>{if(t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__,delete t.__BRENDER_HYDRATE__),n&&n.block&&n.block.parentNode&&n.block.remove(),e&&typeof e.querySelector=="function"){let o=e.querySelector(S$);o&&o.remove();let r=e.documentElement;r&&typeof r.hasAttribute=="function"&&r.hasAttribute("data-brender")&&r.removeAttribute("data-brender")}},kG=()=>new Promise(t=>{if(typeof MessageChannel=="function"){let e=new MessageChannel;e.port1.onmessage=()=>{e.port1.close(),t()},e.port2.postMessage(null)}else setTimeout(t,0)}),A$=async(t,e)=>{let n=t.__firstNavigation;if(n&&typeof n.then=="function")try{await n}catch{}for(let o=0;o<20&&e.pending.size;o++){let r=Sc("fetch"),s=r&&typeof r.whenRequestsIdle=="function"?r.whenRequestsIdle:null;if(s&&await s(),await kG(),!s||!(r.requestsInFlight()>0))return}},TG=["click","keydown"],v$=(t,e,n,o,r,s)=>{let i=!1,a=null,c=()=>f(),l=u=>{let d=u?"addEventListener":"removeEventListener";if(n&&typeof n[d]=="function")for(let p of TG)n[d](p,c,!0);e&&typeof e[d]=="function"&&e[d]("popstate",c)},f=()=>{if(i)return;i=!0,a!==null&&clearTimeout(a),l(!1),t.__hydration===o&&delete t.__hydration;let u=0;for(let d of o.pending)d.parentNode&&(d.remove(),u++);o.pending.clear(),o.pendingIn.clear(),o.whole=null,xr(o),T$(n,s),e&&(e.__BRENDER_HYDRATION__={adopted:o.adopted,misses:o.misses,removed:u}),E$(e,n,r),C$(t,e,o.root,!0)};if(!o.pending.size)return f();a=setTimeout(f,xG(t)),l(!0),A$(t,o).then(f,f)},EG=1e3,AG=(t,e)=>{t&&typeof t.requestIdleCallback=="function"?t.requestIdleCallback(e,{timeout:EG}):setTimeout(e,0)},y$=(t,e)=>{let n=Sc("fetch");!n||typeof n.seedIsStale!="function"||!n.seedIsStale()||AG(t,()=>{n.revalidateSeed(e).then(o=>{o&&t&&((t.__BRENDER_HYDRATION__||(t.__BRENDER_HYDRATION__={replaced:!0})).refreshed=o)},o=>console.error("[smbls] refreshing a stale pre-rendered page failed:",o))})},C$=(t,e,n,o)=>{let r=Sc("fetch");if(!r||typeof r.seedIsStale!="function")return;let s=()=>{let i=()=>y$(e,n);A$(t,{pending:{size:1}}).then(i,i)};if(r.seedIsStale())return o?y$(e,n):s();typeof r.whenSeedTaken=="function"&&r.whenSeedTaken(s)},vG=t=>({bubbles:!0,cancelable:!0,composed:!0,detail:t.detail,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons}),CG=(t,e,n,o)=>{if(!t||typeof t.addEventListener!="function")return{replay(){}};let r=[],s=a=>{for(let c=a;c&&c!==n;c=c.parentNode)if(o.pending.has(c))return!0;return!1},i=a=>{s(a.target)&&(a.preventDefault(),a.stopImmediatePropagation(),r.push({target:a.target,init:vG(a)}))};return t.addEventListener("click",i,!0),{replay(){t.removeEventListener("click",i,!0);let a=e&&e.MouseEvent||(typeof MouseEvent=="function"?MouseEvent:null);if(a)for(let{target:c,init:l}of r)c.isConnected&&o.claimed.has(OG(c,n,o))&&c.dispatchEvent(new a("click",l))}}},OG=(t,e,n)=>{for(let o=t;o&&o!==e;o=o.parentNode)if(n.claimed.has(o))return o;return null},RG=async()=>{for(await xe();!Tr();)await xe()},DG=async(t,e,n,o,r,s,i,a,c,l,f,u)=>{let d=f.mountYield,p=f.mountWhole;d===void 0&&(f.mountYield=u.budget),p===void 0&&(f.mountWhole=!0);let g=eE(r,{budget:u.budget,progressive:!0,pageOptions:{mountYield:f.mountYield,mountWhole:f.mountWhole}}),h=Ws(),m=CG(i,s,o,a),y=u.lease||null;g.lease=y,y&&(r.__mountLease=y);let x=null,T=!1;try{try{x=t(e,n,r.key,f)}catch(v){console.error("[smbls] hydration failed, rendering fresh:",v),delete r.__hydration,xr(a);for(let _ of a.claimed)_.parentNode&&_.remove();return null}T=!await Or(Io(x),y)||g.routeReady&&!await Or(g.routeReady,y)||!await Or(RG(),y),T&&(r.__hydration===a&&delete r.__hydration,xr(a),JT(x))}finally{f.mountYield=d,f.mountWhole=p,y&&(r.__mountLease=null),nE(r),h(),x||m.replay()}return T?(m.replay(),dc(k(e)?e:{})):(a.root=x,v$(r,s,i,a,c,l),m.replay(),x)},_$=(t,e,n,o,r,s,i,a,c,l,f)=>{if(!o||typeof o.querySelectorAll!="function")return null;let u=T=>{for(let v=T;v&&v!==o;v=v.parentNode)if(v.parentNode===o&&v.localName==="svg"&&v.id)return!0;return!1},d={};for(let T of o.querySelectorAll("[data-br]")){let v=T.getAttribute("data-br");u(T)?T.removeAttribute("data-br"):d[v]=T}let p={},g=new Set,h=new Map,m=a.map;for(let T in m){let v=m[T],_=d[v];if(!_||p[v])continue;p[v]=_,g.add(_);let b=_.parentNode;b&&h.set(b,(h.get(b)||0)+1)}for(let T in d)p[T]||d[T].removeAttribute("data-br");let y={registry:m,nodes:p,claimed:new Set,pending:g,pendingIn:h,adopted:0,misses:0};if(r.__hydration=y,f)return DG(t,e,n,o,r,s,i,y,a,c,l,f);let x;try{x=t(e,n,r.key,l)}catch(T){console.error("[smbls] hydration failed, rendering fresh:",T),delete r.__hydration,xr(y);for(let v of y.claimed)v.parentNode&&v.remove();return null}return y.root=x,v$(r,s,i,y,a,c),x},b$=(t,e,n,o,r,s,i,a,c,l)=>{if(T$(i,c),o){let u=[];for(let d of o.childNodes){if(d.nodeType===1){let p=d.localName;if(p==="script"||p==="link"||p==="style"||p==="svg"&&d.id)continue}u.push(d)}u.forEach(d=>d.remove())}i&&typeof i.querySelectorAll=="function"&&i.querySelectorAll("[data-br]").forEach(u=>u.removeAttribute("data-br")),s&&(s.__BRENDER_HYDRATION__={replaced:!0});let f=t(e,n,r.key,l);return E$(s,i,a),Promise.resolve(f).then(u=>C$(r,s,u,!1),()=>{}),f},O$=(t,e,n,o,r,s,i,a=null)=>{let c=dA(o),l=n&&n.nodeType?n:n&&n.node||w$(o,c),f=SG(r,c);o.prerendered=!0;let u=Jr(c);if(u&&(o.prerender=u),wG(o,r,f)){if(a)return Qn().then(()=>uc(a.lease)?_$(t,e,n,l,o,r,c,f,s,i,a):dc(k(e)?e:{})).then(p=>p||b$(t,e,n,l,o,r,c,f,s,i));let d=_$(t,e,n,l,o,r,c,f,s,i,a);if(d)return d}return b$(t,e,n,l,o,r,c,f,s,i)};var P$=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let n=typeof document<"u"?document:e.document;t.document=t.document||n;let o=t.window;return o&&o!==e&&typeof o.URL!="function"?(typeof console<"u"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub (warned once; applies to every embed app this session)")),t.window=e):t.window=o||e,t.window},R$=(t="smbls")=>{let e={};for(let n in ri)Object.prototype.hasOwnProperty.call(ri,n)&&(Mn(n)?e[`smbls.${n}`]=ri[n]:e[n]=ri[n]);return e},M$=t=>t.components?{...R$(),...t.components}:R$(),B$=t=>({...Xu,...sc,...ir,...t.utils,...t.snippets,...t.functions}),N$=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var $$=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,LG=3e3,IG=(t,e,n=o=>import(o))=>{if(typeof globalThis>"u")return Promise.resolve(null);try{let o=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(o[t])return Promise.resolve(o[t]);let r=()=>n(e),s=Promise.resolve().then(r).then(a=>(a&&!o[t]&&(o[t]=a),o[t]||null)).catch(()=>null);return new Promise(a=>{let c=setTimeout(()=>a(null),LG);s.then(l=>{clearTimeout(c),a(l)})})}catch{return Promise.resolve(null)}},D$={},yA=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:o=!1,cdnProvider:r,packageManager:s,symbolsConfig:i,registerDependency:a=IG})=>{if(r||(r=Qo[s]||Ki(i)||"esmsh"),!t)return null;if(!as(t))return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] dependencies is ${Array.isArray(t)?"an ARRAY":`a ${typeof t}`}, not a package-name-keyed object \u2014 skipping the CDN fetch loop. This usually means a project's config.js declares its own "dependencies" field that collides with the platform package map once context.js spreads them together.`),null;let c=!1;for(let d in t){c=!0;break}if(!c)return null;let l=zo()&&o?`?${Math.random()}`:"",f=async(d,p)=>{let g=_n(d,p,r)+l;try{await Promise.race([qi(g,{document:n,type:"module"}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,g)}catch(h){if(console.error(`Failed to load ${d} from ${r}:`,h),r!=="symbols")try{let m=_n(d,p,"symbols")+l;await Promise.race([qi(m,{document:n,type:"module"}),new Promise((y,x)=>setTimeout(()=>x(new Error(`Timeout fallback ${d}`)),2e4))]),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let p=t[d];if(!(e&&e[d])&&!D$[d]&&(D$[d]=!0,!Jo(d))){if(is(d)){globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] dependency "${d}" looks like an un-interpolated template placeholder, not a real package specifier \u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}$$(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},L$=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,PG=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof Oe=="function"?Oe(t):Function.prototype.toString.call(t)}catch{return""}return""},MG=t=>{let e=new Set;if(!t)return e;let n=[t.globalScope,t.functions,t.methods,t.snippets];for(let o=0;o<n.length;o++){let r=n[o];if(!r||typeof r!="object")continue;let s=Object.keys(r);for(let i=0;i<s.length;i++){let a;try{a=r[s[i]]}catch{continue}let c=PG(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;L$.lastIndex=0;let l;for(;(l=L$.exec(c))!==null;)e.add(l[1])}}return e},BG=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!="function")return e;let n;try{n=t.querySelectorAll('script[type="importmap"]')}catch{return e}for(let o=0;o<n.length;o++){let r;try{r=JSON.parse(n[o].textContent||"")}catch{continue}let s=r&&typeof r=="object"?r.imports:null;if(s&&typeof s=="object"){let i=Object.keys(s);for(let a=0;a<i.length;a++)e.add(i[a])}}return e},NG=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let n of e)if(n.length>1&&n.endsWith("/")&&t.length>n.length&&t.startsWith(n))return!0;return!1},F$=(t,{syncRead:e=MG(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:o=BG(n)}={})=>{let r=t&&t.dependencies;if(!as(r))return null;let s=!t.document||t.document===n,i=t.dependenciesOnDemand,a=null,c=null;for(let l in r)s&&!(i&&i[l])&&!e.has(l)&&NG(l,o)?(c||(c={}))[l]=r[l]:(a||(a={}))[l]=r[l];return{blocking:a,deferred:c}},$G=t=>import(t),hA={},FG=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},jG=(t,{importModule:e=$G}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let o in t)if(!(Jo(o)||is(o))&&!$$(o)){if(!hA[o]){let r=()=>e(o);hA[o]=Promise.resolve().then(r).then(s=>(FG(o,s),s||null),()=>null)}n.push(hA[o])}return Promise.all(n)},UG=2e3,VG=3e3,j$=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:o=VG}={})=>t?new Promise(r=>{let s=()=>{jG(t,{importModule:n}).then(r,r)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:UG}):setTimeout(s,0)},a=e&&e.document;if(a&&a.readyState&&a.readyState!=="complete"&&typeof e.addEventListener=="function"){let c=!0,l=null,f=()=>{c&&(c=!1,clearTimeout(l),typeof e.removeEventListener=="function"&&e.removeEventListener("load",f),i())};e.addEventListener("load",f,{once:!0}),l=setTimeout(f,o)}else i()}):null,U$=async(t,e)=>{let n=e.window||window,o=e.cdnProvider||Ki(e.symbolsConfig)||"esmsh",r=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=o)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]&&Jo(a))return await u.require(a,c);if(!u.packages[a]){let d=zo()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=_n(a,p,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=_n(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=_n(a,"latest",c)+d;try{await i.utils.loadRemoteScript(p,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let h=_n(a,"latest","symbols")+d;await i.utils.loadRemoteScript(h,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};n.packages?n.packages=Ot(n.packages,t):n.packages=t,n.require||(e.utils.require=await r(e),n.require=e.utils.require),n.requireOnDemand||(e.utils.requireOnDemand=await s(e),n.requireOnDemand=e.utils.requireOnDemand)},HG=/\s+/g,V$=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,zG=(t,e)=>{let n="";for(let o in t){let r=t[o];typeof r=="boolean"&&r?n+=` ${o}`:typeof r=="string"?n+=` ${r}`:typeof r=="function"&&(n+=` ${V$(r,e)}`)}return n},WG=(t,e,n)=>{if(!t)return;let{key:o}=e;t===!0&&(t=e.classlist={key:o}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=zG(t,e));let r=t.replace(HG," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",r);else if(n)try{n.className=r}catch{}return r},GG=()=>(t,e,n)=>{let o=V$(t,e);if(t){let{__ref:r}=e;r.__class.style=o}H$()(e.classlist,e,e.state,!0)},H$=()=>(t,e,n,o)=>{if(e.style&&!o)return;let{__ref:r}=e,{__class:s,__classNames:i}=r;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Me(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&WG(i,e,e.node)}},KG=()=>({style:GG(),classlist:H$()}),qG=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],gA=new WeakSet,mA=!1,YG=t=>!!t&&typeof t=="object",XG=new Set(["key","document","files","assets","themeRoot","config","newConfig","recordCss","router"]),z$=t=>t.toLowerCase()==="font",ZG=t=>{let e=2166136261,n=16777619^t.length;for(let o=0;o<t.length;o++){let r=t.charCodeAt(o);e=Math.imul(e^r,16777619),n=Math.imul(n^r,1540483477)}return(e>>>0).toString(36)+"."+(n>>>0).toString(36)+"."+t.length.toString(36)},I$=(t,e)=>typeof e=="function"?"fn:"+String(e):e,W$=(t,e)=>{let n={};for(let r in t||{})z$(r)||(n[r]=t[r]);let o={};for(let r in e)XG.has(r)||(o[r]=e[r]);return o.globalTheme=vm(e.globalTheme)||"auto",ZG(1+"|"+JSON.stringify(n,I$)+"|"+JSON.stringify(o,I$))},QG=t=>{let e={};for(let n in t||{})z$(n)&&k(t[n])&&mt(e,ut(t[n]),ne);return k(Ys.font)&&mt(e,ut(Ys.font),ne),e},JG=(t,e)=>{if(t.preparedDesignSystem!==void 0){let o=t.preparedDesignSystem;return delete t.preparedDesignSystem,o}let n=$n(e,nf);return n?n.value:null},G$=t=>{if(!t||t.preparedDesignSystem!==void 0)return null;let e=t.document||(typeof document<"u"?document:null);if(!e||typeof e.querySelector!="function"||typeof globalThis.fetch!="function")return null;try{let n=e.querySelector(tf),o=n&&n.href;if(o)return globalThis.fetch(o,{credentials:"same-origin"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);let r=e.querySelector(ef),s=r&&r.getAttribute("content");if(!s)return null;let i=new URL(s,e.baseURI||void 0).href,a=globalThis.fetch(i,{credentials:"same-origin",priority:"low"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);return e7(a,i,t.window||e.defaultView)}catch{return null}},t7=(t,e)=>{let n=e&&e.performance||(typeof performance<"u"?performance:null);if(!n||typeof n.getEntriesByName!="function")return!1;try{let o=n.getEntriesByName(t);for(let r=0;r<o.length;r++)if(o[r].responseEnd>0)return!0}catch{}return!1},e7=(t,e,n)=>{let o=!1,r=t.then(s=>(o=!0,s));return r.deferred=!0,r.ready=()=>o||t7(e,n),r},K$=t=>!!t&&(t.deferred!==!0||t.ready()),n7=t=>k(t)&&t.format===1&&typeof t.fingerprint=="string"&&k(t.config)&&Array.isArray(t.rules),o7=(t,e,n,o)=>{if(o.localFile)return null;let r=Wh(t);return r?{format:1,fingerprint:W$(n.designSystem,o),config:r,rules:e.rules,sprites:e.sprites}:null},q$=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,o=e.initOptions||{},r=e.registry||KG(),s=()=>e.designSystem?mt(ut(e.designSystem),ut(Ys),ne):ut(Ys),i={};for(let m of qG)e[m]!==void 0&&(i[m]=e[m]);let a,c=YG(n),f=c&&gA.has(n)&&!e.skipDesignSystemInit,u=!f&&!mA,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let p={key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...cA,...i,...o};if(e.skipDesignSystemInit){if(a=L(t)||L(),a&&(a.__domDocument=n),a?.CSS_VARS){ht(a);try{At({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&At(Am(a.CSS_MEDIA_VARS,d));let m=Ls(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(m).length&&At(m)}finally{dt()}}}else if(e.isolateDesignSystem&&!f){let m=Eh();m.__domDocument=n;let y=null,x=e.captureDesignSystem?T=>{y=T}:void 0;ht(m);try{a=to(s(),{...p,config:m,recordCss:x})}finally{dt()}y&&(e.preparedDesignSystem=o7(a,y,e,p))}else if(u){let m=L();m&&(m.__domDocument=n);let y=m&&m._scratchConfig&&!p.localFile?JG(e,n):null;n7(y)&&y.fingerprint===W$(e.designSystem,p)?(a=XT(y,m,p,QG(e.designSystem)),e.designSystemSource="prepared"):(a=to(s(),p),e.designSystemSource="processed"),a&&a!==m&&(a.__domDocument=n),c&&gA.add(n),mA=!0}else{let m=_f(t,s(),{cleanBase:!0});for(let y in i)m[y]=i[y];if(m.__domDocument=n,f){let y=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=y,m.varPrefix=y}ht(m);try{a=to(m,p)}finally{dt()}c&&gA.add(n),mA=!0}let g=a?.CONFIG||a,h=g?.font;if(h){ht(g);try{h$(h)}finally{dt()}}return[a,r]},Y$=(t,e)=>{let n={};e.state&&Go(n,e.state),t&&t.state&&Go(n,t.state);let o=e.polyglot;if(o){let r=null;try{typeof localStorage<"u"&&(r=localStorage.getItem(o.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=rs({polyglot:o,pathname:ss(e.window),stored:r,stateLang:n.lang});(r||s!==fo(n.lang,o))&&s!==n.lang&&(n.lang=s),o.translations&&r7(e,o,n,s)}return n.isRootState=!0,ut(n)},r7=(t,e,n,o)=>{let r=new Set,s=new Set,i=(l,f)=>{if(!s.has(l)){if(!qr(t,l,n)){r.add(l);return}n[l]=f,s.add(l),Bn(t,l,f)}},a=e.translations[o];if(a&&typeof a=="object")for(let l in a)i(l,a[l]);let c=new Set(yn(e,!1));for(let l in e.translations)c.has(l)||i(l,e.translations[l]);r.size&&e.verbose!==!1&&t.verbose!==!1&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[polyglot] ${r.size} translation key${r.size===1?"":"s"} collide${r.size===1?"s":""} with a declared root-state key (${[...r].join(", ")}) \u2014 the declared value wins and the translation is NOT seeded into state. Rename the translation key, or read it with \`{{ key | polyglot }}\` instead of a bare \`{{ key }}\`.`))},X$=(t,e)=>{k(t.routes)&&k(e.pages)&&Ot(t.routes,e.pages);let n=t.routes||e.pages||{},o=[];for(let r in n){if(r.charCodeAt(0)===47)continue;let i="/"+(r==="index"?"":r);Object.prototype.hasOwnProperty.call(n,i)?o.push(`${r} -> ${i}`):n[i]=n[r],delete n[r]}return o.length&&e&&e.verbose!==!1&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] preparePages kept ${o.length} explicitly declared route${o.length===1?"":"s"} over a same-named page key (${o.join(", ")}). A bare page NAME never overwrites a declared '/route'. This usually means a shared library ships a page under its export name that collides with one of your routes \u2014 add it to that library's ignoreList if you did not intend the collision.`)),n},_A=t=>{Kl(t,t.sharedLibraries)};var kA=/*@__PURE__*/$({},{default:()=>m7,getActiveLang:()=>_i,getLanguages:()=>ud,getLocalStateLang:()=>gd,getPendingLang:()=>fd,initPolyglot:()=>Ay,loadTranslations:()=>yi,polyglotPlugin:()=>Tc,setLang:()=>pd,trackLoadTranslations:()=>xA,translate:()=>dd,upsertTranslation:()=>hd});var s7="smbls_t_",i7="smbls_tv_",bA=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return e?e.localStorage:null},kc={get(t,e){try{return bA(t)?.getItem(e)??null}catch{return null}},set(t,e,n){try{bA(t)?.setItem(e,n)}catch(o){console.warn("[polyglot] localStorage unavailable:",o.message)}},remove(t,e){try{bA(t)?.removeItem(e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}}},Z$=new WeakMap,Q$=t=>{let e=Z$.get(t);return e||(e={},Z$.set(t,e)),e},J$=new WeakMap,oF=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,rF=t=>{let e=J$.get(t);return e||(e={seq:0,pending:pn(null),wake:null},J$.set(t,e)),e},tF=(t,e,n)=>new Promise(o=>{let r=null,s=()=>{r!==null&&clearTimeout(r),r=null,t.wake===s&&(t.wake=null),o()};t.wake=s,Promise.resolve(e).then(s,s),n>0&&(r=setTimeout(s,n))}),wA=(t,e)=>!!(t?.translations&&t.translations[e]),a7=3e3,c7=2147483647,l7=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,c7):0:a7},f7=/\p{L}/gu,u7=(...t)=>{let e=new Set,n=(o,r)=>{if(typeof o=="string"){let s=o.match(f7);if(s)for(let i=0;i<s.length;i++)e.add(s[i])}else if(o&&typeof o=="object"&&r<8)for(let s in o)n(o[s],r+1)};for(let o=0;o<t.length;o++)n(t[o],0);return Array.from(e).join("")},d7=(t,e)=>{let n=t?.fonts;if(!e||!n||!t.body||typeof n.check!="function"||typeof n.load!="function")return null;try{let r=(t.defaultView||globalThis).getComputedStyle(t.body).fontFamily;if(!r)return null;let s="1em "+r;return n.check(s,e)?null:Promise.resolve(n.load(s,e)).then(()=>{},()=>{})}catch{return null}};function _i(){let t=this?.context,e=t?.polyglot,n=this?.state?.root||t?.state?.root;return fo(n?.lang||t?.state?.lang,e)}function fd(){let t=this?.context,e=oF(t,this?.state?.root||t?.state?.root);return e?rF(e).pending.get():null}function ud(){let t=this?.context?.polyglot;return t?yn(t):[]}var Ey=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let n=e.split("."),o=t;for(let r=0;r<n.length;r++){if(o==null)return;o=o[n[r]]}return o},eF=(t,e,n)=>{let o=e.lastIndexOf(".");if(o===-1)return t[e+"_"+n];let r=Ey(t,e.substring(0,o));if(r!=null)return r[e.substring(o+1)+"_"+n]};function dd(t,e){if(!t)return"";let n=this?.context,o=n?.polyglot,r=e||this.call("getActiveLang"),s=this?.state;if(s){let l=eF(s,t,r);if(l!==void 0)return l}if(o?.translations){let l=o.translations[r];if(l){let f=Ey(l,t);if(f!==void 0)return f}}let i=s?.root||n?.state?.root,a=i?.translations;if(a){let l=a[r];if(l){let f=Ey(l,t);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=eF(s,t,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=Ey(l,t);if(f!==void 0)return f}}return p7(o,i,r)&&typeof zi=="function"&&zi(),t}var p7=(t,e,n)=>!!t?.fetch&&!wA(e,n)&&!t._fetchFailed?.[n];async function yi(t,e){let n=this?.context,o=n?.polyglot,r=this?.state?.root||n?.state?.root;if(!o||!r)return;if(e&&e.inFlight===!0)return Q$(r)[(o.storagePrefix||"smbls")+":"+t];let s=o.storagePrefix||s7,i=o.storageVersionPrefix||(o.storagePrefix?o.storagePrefix.replace(/_$/,"v_"):i7);if(o.translations&&o.translations[t]&&!o.fetch||!o.fetch||o._fetchFailed?.[t])return;if(!r.translations?.[t]){let f=kc.get(n,s+t);if(f)try{let u=JSON.parse(f),d={translations:{...r.translations||{}}};d.translations[t]=u,r.update&&r.update(d)}catch(u){console.warn("[polyglot] Failed to apply language update:",u.message)}}let a=Q$(r),c=(o.storagePrefix||"smbls")+":"+t;if(a[c])return a[c];let l=this;return a[c]=(async()=>{try{let f=o.fetch,u=parseInt(kc.get(n,i+t),10)||0,d,p,g;if(I(f)){let m=await f(t,u,l);if(!m||m.changed===!1)return;d=m.translations||m.data||m,p=m.version||0,g=!0}else if(k(f)){let m=l.getDB||(()=>n.fetch),y=I(m)?await m.call(l):n.fetch;if(!y)return;let x=f.rpc||f.from||"get_translations_if_changed",T={p_lang:t,p_cached_version:u,...f.params||{}},v=await y.rpc({from:x,params:T});if(v.error)throw o._fetchFailed||(o._fetchFailed={}),o._fetchFailed[t]=!0,v.error;let _=v.data;if(!_||!_.changed)return;d=_.translations||{},p=_.version||0,g=!0}else return;if(!g||!d)return;kc.set(n,s+t,JSON.stringify(d)),p&&kc.set(n,i+t,String(p));let h={translations:{...r.translations||{}}};h.translations[t]=d,r.update&&r.update(h)}catch(f){if(o.verbose!==!1){let u=f?.message||f?.details||(typeof f=="object"?JSON.stringify(f):String(f));console.warn("[polyglot] Failed to load translations for",t,"-",u)}}finally{delete a[c]}})(),a[c]}var SA=new WeakMap,nF=Symbol.for("@symbo.ls/polyglot:trackedLoadTranslations");function xA(t){if(!I(t)||t[nF]||t===yi)return t;let e=function(n,o){let r=this?.context,s=this?.state?.root||r?.state?.root,a=(r?.polyglot?.storagePrefix||"smbls")+":"+n;if(o&&o.inFlight===!0){let l=s&&SA.get(s);return l&&l[a]?l[a]:yi.call(this,n,o)}let c=t.call(this,n,o);if(s&&c&&typeof c.then=="function"){let l=SA.get(s);l||SA.set(s,l={});let f=Promise.resolve(c);l[a]=f;let u=()=>{l[a]===f&&delete l[a]};f.then(u,u)}return c};return e[nF]=!0,e}var h7=(t,e,n)=>{let o=t.__ref;if(!o||o.contentManaged||n==null||typeof n=="object")return;let r=o.__textNode;if(!r||r.parentNode!==e)return;let s=String(n);r.nodeValue!==s&&(r.nodeValue=s)};async function pd(t,e){let n=this?.context,o=n?.polyglot,r=this?.state?.root||n?.state?.root,s=n?.document||globalThis.document;if(!r)return;e?.persist!==!1&&kc.set(n,Hi(o),t);let i=rF(oF(n,r)),a=++i.seq;i.wake&&i.wake();let c=()=>i.seq===a;if(this.call("getActiveLang")===t){i.pending.set(null),s?.documentElement&&(s.documentElement.lang=t);return}try{if(o?.fetch){let f=this.call("loadTranslations",t);if(!wA(r,t)){i.pending.set(t);let u=null;if(await tF(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!wA(r,t)&&!o.translations?.[t])return}}let l=l7(o);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=d7(s,u7(o?.translations?.[t],r.translations?.[t]));if(f&&(i.pending.set(t),await tF(i,f,l),!c()))return}i.pending.set(null),g7(n,o,r,s,t)}finally{c()&&i.pending.set(null)}}function g7(t,e,n,o,r){t?.state&&(t.state.lang=r);let s=e?.translations?.[r],i={lang:r},a=c=>gl(t,c,n);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}n.update&&n.update(i);for(let c in i)c!=="lang"&&Bn(t,c,i[c]);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c])){for(let f in l)n[c][f]=l[f];Bn(t,c,n[c])}}if(o&&s){let c=o.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{h7(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}o?.documentElement&&(o.documentElement.lang=r)}async function hd(t,e,n){let o=this?.context,r=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=n),r?.translations?.[e]&&(r.translations[e][t]=n),r?.fetch&&k(r.fetch)){let i=this.getDB||(()=>o.fetch),a=I(i)?await i.call(this):o.fetch;if(!a)return;let c=r.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:n}});if(l?.error)throw l.error;return l.data}}async function Ay(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let o=kc.get(t,Hi(e)),r=rs({polyglot:e,pathname:ss(t.window),stored:o,stateLang:n.lang||t?.state?.lang}),s=t?.document||globalThis.document;s?.documentElement&&(s.documentElement.lang=r),n.update&&n.lang!==r&&n.update({lang:r}),e.fetch&&!(e.translations&&e.translations[r])&&await this.call("loadTranslations",r)}function gd(t){try{let e=_i.call(this),n=this?.state;if(!n)return"";let o=t.lastIndexOf(".");if(o===-1)return n[t+e]??"";let r=t.substring(0,o).split("."),s=n;for(let i=0;i<r.length;i++){if(s==null)return"";s=s[r[i]]}return s==null?"":s[t.substring(o+1)+e]??""}catch{return""}}var Tc={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Ay.call(t))}},m7=Tc;var md={polyglot:dd,getLocalStateLang:gd,getActiveLang:_i,getLang:_i,setLang:pd,getPendingLang:fd,getLanguages:ud,loadTranslations:yi,upsertTranslation:hd};var EA=/*@__PURE__*/$({},{SYSTEM_METRICS:()=>yd,capsizeHandler:()=>TA,capsizePlugin:()=>Cy,computeCapsize:()=>sF,default:()=>y7,resolveFontSizePx:()=>iF,resolveMetrics:()=>aF});var yd={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},vy=t=>parseFloat(t.toFixed(4)),sF=(t,e,n)=>{let{ascent:o,descent:r,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(r),l=o+c+s,f=n!==void 0?n:l/i*t,u=f/t,d=l/i,p=(o-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${vy(t/16)}rem`,lineHeight:`${vy(f)}px`,capHeightTrim:`${vy(-p)}em`,baselineTrim:`${vy(-g)}em`}},iF=(t,e)=>{if(typeof t=="number")return t;let n=e?.designSystem;if(!n)return null;let{typography:o}=n;if(o?.sequence){let s=String(t).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let r=parseFloat(t);return isNaN(r)?null:typeof t=="string"&&t.endsWith("rem")?r*(n.typography?.browserDefault||16):r},aF=(t,e)=>{let o=e?.designSystem?.font_family||{};if(t){let s=o[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(yd[i])return yd[i]}let r=o.default||Object.keys(o)[0];if(r){let s=o[r];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(yd[a])return yd[a]}}return null},TA=(t,e,n,o)=>{if(!t)return;let r=iF(e.fontSize,o);if(!r)return;let s=aF(e.fontFamily,o);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=sF(r,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Cy={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},y7=Cy;var _7="@symbo.ls/fetch:EARLY",b7=()=>new Promise(t=>setTimeout(t,0)),AA=t=>{let e=typeof globalThis<"u"?globalThis[Symbol.for(_7)]:null,n=e&&e.afterFirstView;return typeof n!="function"||e.afterFirstViewRan?null:(e.afterFirstViewRan=!0,Promise.resolve(t&&t.__firstNavigation).catch(()=>{}).then(b7).then(()=>{try{n(e.ctx||{})}catch(o){console.error("[smbls] fetch.early afterFirstView failed:",o)}}))};var OA=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),RA=t=>Re(t)?t.library!==void 0?t.library:t.key??t.name:t,S7=(t,e)=>{let n=e?.sharedLibraries,o=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,r=0,s=i=>{let a=r++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(o&&o[a])return o[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=RA(i);if(!OA(a))return i;let c=s(a);return c?Re(i)?{...i,library:c}:c:null}).filter(Boolean)},DA=new WeakMap,w7={lazy:!0,window:globalThis},cF=["components","pages","functions","methods","snippets"],x7=cF.filter(t=>t!=="methods"),vA=t=>{if(!t||typeof t!="object")return!1;let e=new WeakSet,n=[t];for(;n.length;){let o=n.pop();if(!o||typeof o!="object"||e.has(o))continue;e.add(o);let r;try{r=Object.keys(o)}catch{continue}for(let s of r){let i;try{i=o[s]}catch{continue}if(typeof i=="function")return!0;i&&typeof i=="object"&&n.push(i)}}return!1},k7=(t,e)=>{if(Wr(e)||Wr(t))return"boot-revived";if(vA(t))return"local";if(e&&typeof e=="object"){if(vA(e.app))return"local";for(let n of x7)if(vA(e[n]))return"local"}return"raw-json"},lF=(t,e)=>{let n=e?t[e]:t;if(!k(n))return;let o=de(n,{},w7);try{Object.assign(n,o)}catch(r){if(e)t[e]=o;else throw r}},T7=t=>{if(!k(t)||Wr(t))return t;for(let e of[...cF,"app"])lF(t,e);return Oi(t)},E7=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let o=Re(n)?n.library:n;k(o)&&!e.has(o)&&T7(o)}return t},LA=new WeakMap,CA=t=>{let e=DA.get(t);e&&(DA.delete(t),j$(e))},fF=t=>t.notifications===!0||t.notifications!==!1&&!!t.editor&&t.editor.verbose===!0,uF=t=>t.sync!==!1&&di(t)||fF(t),dF=t=>{let e={shorthand:null,analyze:null,inspect:null,fetch:null,sync:null,windows:null,dropdown:null,tooltip:null};for(let n of DN(t))e[n]=ce(n);return uF(t)&&(e.sync=ce("sync")),e},IA=async(t,e={})=>{let n=e.symbolsConfig,o=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,r=e.key=e.key||o||(E(t)?t:"smblsapp");e.define=e.define||wc,e.cssPropsRegistry=St,e.window=P$(e);let s=dF(e),i=k7(t,e);if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&e.sharedLibraries&&e.sharedLibraries.length)_A(e);else if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(x=>{let T=RA(x);return typeof T=="string"||OA(T)})){e.sharedLibraries=S7(e.sharedLibraries,e.symbolsConfig);let x=new Set(e.sharedLibraries.map(v=>RA(v)).filter(v=>k(v)&&!OA(v))),T=await Yl(e.sharedLibraries,{apiBaseUrl:ky()});e.sharedLibraries=i==="raw-json"?T:E7(T,x)}i$(e.sharedLibraries),_A(e)}di(e)&&bc(e,e.designSystem);let a=LA.get(e);a&&(LA.delete(e),K$(a)&&(e.preparedDesignSystem=await a));let[c,l]=q$(r,e);if(e.designSystem=c,e.registry=l,rf(e,{apiBaseUrl:ky()}),e.cases||(e.cases={}),e.shorthand){let y=await(s.shorthand||ce("shorthand"));y&&y.shorthandPlugin.prepareContext(e)}let f=Y$(t,e);if(e.state=f,Cl(f),e.pages=X$(t,e),e.components=M$(e),e.utils=B$(e),Qo[e.packageManager]){let y=F$(e);y&&y.deferred?(y.blocking&&await yA({...e,dependencies:y.blocking}),DA.set(e,y.deferred)):e.dependencies=await yA(e)}if(e.methods=N$(e),e.routerOptions=xB(t,e),e.defaultExtends=[Qg],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope=e.globalScope||{},e.plugins.some(y=>!y||typeof y!="object")){let y=e.plugins.filter(x=>!x||typeof x!="object");e.plugins=e.plugins.filter(x=>x&&typeof x=="object"),e.verbose!==!1&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] context.plugins carried ${y.length} non-plugin entr${y.length===1?"y":"ies"} (${y.map(x=>JSON.stringify(x)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`))}let u=e.globalScope;e.globalScope&&k(e.globalScope)&&(e.globalScope=Gr(e.globalScope));let d=(y,x)=>{i==="raw-json"&&lF(y,x)};d(t),d(e,"components"),d(e,"pages"),d(e,"functions"),d(e,"methods"),d(e,"snippets"),d(e,"app"),Wl(e,u),Gl(e);let p=y=>y&&typeof y.select=="function";if(e.fetch?.__resolved&&!p(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!p(e.db.__resolved)&&delete e.db.__resolved,e.polyglot&&!Fe(e,"polyglot")){e.plugins.push(Tc);for(let y in md)typeof e.functions[y]!="function"&&(e.functions[y]=md[y])}if(e.polyglot&&e.functions&&typeof e.functions.loadTranslations=="function"&&(e.functions.loadTranslations=xA(e.functions.loadTranslations)),Fe(e,"helmet")||e.plugins.push(wy),Fe(e,"inertOutside")||e.plugins.push(Kg),e.fetch){let y=await(s.fetch||ce("fetch"));if(y){Fe(e,"fetch")||e.plugins.push(y.fetchPlugin);let{fetchFunctions:x}=y;for(let T in x)typeof e.functions[T]!="function"&&(e.functions[T]=x[T])}}if(e.designSystem?.typography?.useCapsize!==!1&&!Fe(e,"capsize")&&(e.plugins.push(Cy),e.cssPropsRegistry.useCapsize=TA),e.shorthand&&!Fe(e,"shorthand")){let y=await(s.shorthand||ce("shorthand"));y&&e.plugins.push(y.shorthandPlugin)}if(e.analyze&&!Fe(e,"analyze")){let y=await(s.analyze||ce("analyze"));if(y){let x=e.analyze===!0?{}:e.analyze;e.analyze=y.createAnalyzeState(x),e.plugins.push(y.analyzePlugin)}}let g=e.sync!==!1&&di(e),h=uF(e)?await(s.sync||ce("sync")):null;if(h&&g&&!Fe(e,"sync")&&e.plugins.push(h.syncPlugin),e.inspect&&!Fe(e,"inspect")){let y=await(s.inspect||ce("inspect"));y&&e.plugins.push(y.inspectPlugin)}h&&fF(e)&&!Fe(e,"notifications")&&e.plugins.push(h.notificationsPlugin);let m=async y=>{if(e[y]===!1)return;let x=await(s[y]||ce(y));if(!x)return;let{components:T,functions:v}=x;for(let _ in T)k(e.components[_])||(e.components[_]=T[_]);for(let _ in v)typeof e.functions[_]!="function"&&(e.functions[_]=v[_])};return await m("windows"),await m("dropdown"),await m("tooltip"),e},_d=async(t,e)=>{k(e)||(e={});let n=yB(e);dF(e);let o=G$(e);if(o&&LA.set(e,o),n&&(n.lease=gB(e),await Qn(),!n.lease.live()))return dc(k(t)?t:{});ro(t)?(e.parent=t,t={}):E(t)?(e.key=t,t={}):k(t)?t={...t}:t={};let r=e.window||(typeof window<"u"?window:null),s=x$(e,r);globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s&&Vt("prerender");let i=!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s?k$(e):null;if(await IA(t,e),e.useReset!==!1){let u=e.document||(typeof document<"u"?document:null);if(u){let d=u.head.querySelector("style[data-smbls]");d||(d=u.createElement("style"),d.setAttribute("data-smbls",""),u.head.appendChild(d));let p=d.sheet;if(p){try{p.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{p.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&k(e.app))for(let u in e.app)t[u]===void 0&&(t[u]=e.app[u]);t.extends=s$(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await U$({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let u of e.plugins)if(typeof u.beforeCreate=="function")try{u.beforeCreate(t,e)}catch(d){console.error(`[smbls] plugin "${u.name||"?"}" beforeCreate error:`,d)}let a=e.document;if(!a||!a.createElement)return CA(e),t;let c=e.parent||a.body,l={verbose:e.verbose,context:e,...e.domqlOptions};if(!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s){let u=await O$(zt,t,c,e,r,i,l,n);return Zu(u)||(CA(e),AA(e)),u}let f=n?await bB(t,c,e,l,n):zt(t,c,e.key,l);return f?(CA(e),AA(e),typeof window<"u"&&!e.document&&(window.__smblsApp=f),f):dc(t)};var PA=(t,e)=>{if(!k(e))return mt(t,{});let{state:n,...o}=e;return mt(t,o),n!==void 0&&(k(t.state)&&k(n)?Go(t.state,n):t.state===void 0&&(t.state=n)),t},A7=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let o=t.themeStorageKey;if(n==="auto"&&o&&typeof localStorage<"u")try{let s=localStorage.getItem(o);s&&(n=s)}catch{}let r=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",r),t.globalTheme=n,t.themeRoot=e},v7=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},pF=t=>{let e=v7();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},MA=(t,e=Ir,n)=>{let o={...Ir,...PA(e,n)};return pF(o),A7(o),_d(t,o).then(s=>{if(Zu(s))return s.destroy=()=>pi(s),s;if(sE(s,o),s.destroy=()=>pi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Qu(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,o),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},C7=(t,e=Ir,n)=>{let o=MA(t,e,n),r={...Ir,...PA(e,n)},s=r.key;return s&&r.editor&&r.editor.async&&ce("fetchOnCreate").then(i=>{i&&i.fetchAsync(o,s,{utils:Xu,...r})}),o},O7=async(t,e=Ir,n)=>{let o={...Ir,...PA(e,n)};pF(o);let r=e.key;if(r&&o.editor){let i=await ce("fetchOnCreate");i&&await i.fetchSync(r,o)}let s=await _d(t,o);return Zu(s)?(s.destroy=()=>pi(s),s):(sE(s,o),s.destroy=()=>pi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Qu(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},o.onCreate&&await o.onCreate(s,s.state,s.context,o),s)},R7=(t={},e=Ir,n)=>MA({deps:{isUndefined:Wt},...t},mt({domqlOptions:{onlyResolveExtends:!0}},e),n);var hF={"@symbo.ls/signal":Ic,"@symbo.ls/scratch":px,"@symbo.ls/element":qg,"@symbo.ls/css":ng,"@symbo.ls/utils":ea,"@symbo.ls/state":xk,"@symbo.ls/router":sc,"@symbo.ls/polyglot":kA,"@symbo.ls/helmet":iA,"@symbo.ls/fetch":ns,"@symbo.ls/capsize":EA,"@symbo.ls/shorthand":VE,"@symbo.ls/analyze":od,"@symbo.ls/inspect":sd,"@symbo.ls/channels":lA},gF=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),o=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let r in hF)o[r]||(o[r]=hF[r]);if(e)for(let r in e)o[r]||(o[r]=e[r]);return o},mF=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:null);if(!n||!e||typeof e!="object")return null;let o=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let r in e){let s=e[r];if(typeof s!="function"||Object.prototype.hasOwnProperty.call(o,r))continue;let i=a=>(Object.defineProperty(o,r,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(o,r,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return o},yF=["@symbo.ls/sdk"],_F=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!t||typeof t!="object")return null;let o=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let r in t){let s=t[r];!s||typeof s!="object"&&typeof s!="function"||o[r]||(o[r]=s)}return o};var $A=/*@__PURE__*/$({},{BUILD_DOMQL_SYSTEM_PROMPT:()=>DF,DEFAULT_MAX_TOKENS:()=>My,DEFAULT_MODEL:()=>Mr,DEFAULT_PROVIDER:()=>Iy,DEFAULT_TEMPERATURE:()=>Py,MODEL_TIER_ALIASES:()=>NA,PROVIDER_MODELS:()=>SF,SIMONE_BASE_URL:()=>bd,SIMONE_CHAT_PATH:()=>Oy,SIMONE_CODE_PATH:()=>Ry,SIMONE_CODE_SYMBOLS_PATH:()=>Dy,SIMONE_HEALTH_PATH:()=>Ly,SIMONE_TOOLS_PATH:()=>bF,WORKSPACE_SYSTEM_PROMPT:()=>RF,buildMessages:()=>EF,chat:()=>Sd,health:()=>TF,parseSimoneResponse:()=>CF,resolveModel:()=>LF,streamChat:()=>Sd,streamCode:()=>xF,streamCodeSymbols:()=>kF,toLegacyEnvelope:()=>OF});var bd="https://symbols-service-production.up.railway.app",Oy="/api/chat",Ry="/api/code",Dy="/api/code-symbols",Ly="/api/health",bF="/api/tools",Iy="openai-compatible",Mr="claude-sonnet-4-6",Py=.7,My=4096,SF={"openai-compatible":["claude-sonnet-4-6","claude-opus-4-6","gpt-4o","gpt-4o-mini","deepseek-chat"],anthropic:["claude-sonnet-4-6","claude-sonnet-4-5-20250929","claude-opus-4-1-20250805","claude-haiku-4-5-20251001"],openrouter:["google/gemini-3-pro-preview"],gemini:["gemini-3-pro-preview"]};function wF(t,e){return t?t.replace(/\/$/,"")+e:e}function D7(t){if(!t.startsWith("data: "))return null;let e=t.slice(6);if(e==="[DONE]")return{done:!0};try{return{chunk:JSON.parse(e)}}catch{return{raw:e}}}async function Sd(t,e={},n){let{baseUrl:o=bd,path:r=Oy,provider:s=Iy,model:i=Mr,temperature:a=.7,maxTokens:c=4096,effort:l,apiKeys:f,signal:u,headers:d}=e;if(!Array.isArray(t)||t.length===0)throw new TypeError("simone: messages must be a non-empty array");let p={messages:t,provider:s,model:i,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(wF(o,r),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let v=g.statusText;try{let b=await g.text();try{let S=JSON.parse(b);v=S.error||S.detail||v}catch{v=b||v}}catch{}let _=new Error(`simone: HTTP ${g.status} \u2014 ${v}`);throw _.status=g.status,_}if(!g.body||typeof g.body.getReader!="function"){let v=await g.text();return n&&n(v),{text:v,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],x=[],T="";try{for(;;){let{done:v,value:_}=await h.read();if(v)break;T+=m.decode(_,{stream:!0});let b=T.indexOf(`
169
- `);for(;b!==-1;){let S=T.slice(0,b).trim();if(T=T.slice(b+1),S){let w=D7(S);if(w?.done)return{text:y.join(""),errors:x};let A=w?.chunk;A?.delta&&(y.push(A.delta),n&&n(A.delta)),A?.error&&x.push(A.error)}b=T.indexOf(`
170
- `)}}return{text:y.join(""),errors:x}}finally{h.cancel().catch(()=>{})}}function xF(t,e={},n){return Sd(t,{...e,path:Ry},n)}function kF(t,e={},n){return Sd(t,{...e,path:Dy},n)}async function TF(t={}){let{baseUrl:e=bd,signal:n,headers:o}=t,r=await fetch(wF(e,Ly),{method:"GET",headers:o,signal:n});if(!r.ok)throw new Error(`simone health: HTTP ${r.status}`);return r.json()}function EF({system:t,history:e=[],user:n,context:o}){let r=[];t&&r.push({role:"system",content:t});for(let s of e)!s||!s.role||typeof s.content!="string"||!s.content||r.push({role:s.role,content:s.content});if(n){let s=n;if(o!=null){let i=typeof o=="string"?o:JSON.stringify(o,null,2);s=`${s}
166
+ `}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},T8={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(my):t.extends?t.extends=[t.extends,my]:t.extends=[my]}};var aA=/*@__PURE__*/$({},{DefaultSyncApp:()=>P8,FORBIDDEN_SEGMENTS:()=>fd,Notifications:()=>Sy,SyncComponent:()=>iA,applyOpsToCtx:()=>ud,connectToSocket:()=>MN,deletePath:()=>JE,isSafePath:()=>_y,liveSyncTransport:()=>by,notificationsPlugin:()=>$8,onOps:()=>rA,onSnapshot:()=>oA,seedRawDesignSystem:()=>xc,setPath:()=>tA,syncPlugin:()=>N8,wantsLiveSync:()=>hi});var fd=new Set(["__proto__","constructor","prototype"]),_y=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(fd.has(t[e]))return!1;return!0},JE=(t,e)=>{!t||!_y(e)||e.reduce((n,o,r,s)=>{if(n&&o in n){if(r!==s.length-1)return n[o];delete n[o]}},t)},tA=(t,e,n,o=!1)=>{!t||!_y(e)||e.reduce((r,s,i,a)=>{if(r){if(i!==a.length-1)return!r[s]&&o&&(r[s]={}),r[s];r[s]=n}},t)},ud=(t,e)=>{let n=new Set;if(!Array.isArray(e))return n;for(let[o,r,s]of e)if(!(!Array.isArray(r)||!r.length))switch(n.add(r[0]),o){case"delete":JE(t,r);break;case"update":case"set":tA(t,r,s,!0);break;default:break}return n},DN=(t,e)=>{if(!e||typeof e!="object"||Array.isArray(e))return null;let n=t&&(t.__raw||t)||{},o=null;for(let r of Object.keys(e))fd.has(r)||Object.prototype.hasOwnProperty.call(n,r)||(o||(o={}),o[r]=e[r]);return o},E8=()=>typeof R<"u"&&!!R&&!!R.__SYMBOLS_ENV__,A8=()=>{try{if(R.self!==R.top)return!0}catch{return!0}try{return new URLSearchParams(R.location.search).has("liveSync")}catch{return!1}},RN=Object.freeze({mode:null,baseUrl:null}),by=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?E8()&&!A8()?RN:{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:RN},hi=t=>by(t).mode!==null,xc=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},LN=(t,e,n,o="designSystem")=>{for(let r in e){if(fd.has(r))continue;let s=`${o}/${r}`;if(n.has(s))continue;let i=e[r],a=t[r];if(i&&typeof i=="object"&&!Array.isArray(i)){if(!a||typeof a!="object"||Array.isArray(a)){if(r in t)continue;t[r]={}}LN(t[r],i,n,s)}else r in t||(t[r]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},eA=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let r={designSystem:t.__rawDesignSystem};ud(r,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return Zl(n,o,LN)},nA=t=>{!t||!t.polyglot||!Array.isArray(t.sharedLibraries)||Ql(t.polyglot,t.sharedLibraries)};var oA=(t,e,n)=>{let o=!1;return(r={})=>{let{data:s}=r,{schema:i}=r;s&&(s=t.call("deepDestringifyFunctions",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(n[a]&&typeof n[a]=="object")if(a==="designSystem"){if(xc(n,c),o){let l=eA(n);l&&no(l)}}else Yr(n[a],c);else n[a]=c}),"polyglot"in s&&nA(n),o=!0,i&&(n.schema=i))}},rA=(t,e,n)=>(o={})=>{let{changes:r}=o;if(!r||!Array.isArray(r)||!r.length)return;r=t.call("deepDestringifyFunctions",r,Array.isArray(r)?[]:{});let s=r.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]==="designSystem"),i=s.length?r.filter(c=>!s.includes(c)):r,a=ud(n,i);if(s.length&&a.add("designSystem"),a.has("polyglot")&&nA(n),a.has("designSystem")){let c=eA(n,s);c?no(c):n.__warnedNoRawDesignSystem||(n.__warnedNoRawDesignSystem=!0,console.warn("[sync] design-system op ignored: no raw design system was seeded on this client. Re-initing from the processed config would corrupt every token, so the update is skipped \u2014 reload to pick it up. Seed it at boot with seedRawDesignSystem(ctx, ds)."))}if(a.has("state")){let c=DN(e,n.state);if(c){let l=typeof e.$update=="function"?e.$update:e.update;typeof l=="function"&&l.call(e,c)}}if(["pages","components","snippets","functions","assets"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=n.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var v8={success:"green",error:"red",warning:"yellow"},IN=(t,e,n)=>{if(t.symbols){if(!n.connected){n.notifications.connected={title:"Connected",message:"to the Symbols live server"},n.update({connected:!0});let o=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(o)},3e3)}}else if(n.connected){n.notifications.connected={title:"Disconnected",type:"error"},n.update({connected:!1});let o=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(o)},3e3)}},Sy={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:v8[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,n,o)=>{n.update({animation:"fadeInUp"})},onClick:(e,n,o)=>{delete o.notifications[n.key],n.update({animation:"fadeOutDown"}),o.onClose&&o.onClose(e,n,o)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var C8=!1,O8=()=>C8?"http://localhost:8080":"https://api.symbols.app",sA=null,R8=()=>(sA||(sA=import("./smbls.socket-io-client.esm.js").then(t=>{let e=t&&(t.io||t.default);if(typeof e!="function")throw new TypeError("socket.io-client exports no io()");return e}).catch(t=>(console.warn("[sync] socket.io-client failed to load \u2014 live sync disabled",t),null))),sA),D8=async t=>{try{let e=t||O8(),n=await R.fetch(`${e}/service-token`,{method:"GET"}),o;try{let r=await n.clone().json();if(r&&typeof r.token=="string")return r.token.trim();o=await n.text()}catch{o=await n.text()}return(o||"").replace(/\s+/gu,"")||void 0}catch(e){console.warn("[sync] Failed to fetch service-token",e)}},PN=(t,e,n,o)=>{t.on("snapshot",oA(e,n,o)),t.on("ops",rA(e,n,o)),t.on("clients",r=>{o.editor?.verbose&&IN(r,e,n)}),t.on("disconnect",r=>{o.editor?.verbose&&console.info("[sync] disconnected",r)})},L8=async(t,e,n,o,r)=>{let s=await D8(o);if(!s)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=n.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let a=n.editor?.projectId||null,c=await r;if(!c)return null;let l=c(o,{path:"/collab-socket",transports:["websocket"],auth:{token:s,projectId:a,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return l.on("connect",()=>{n.editor?.verbose&&console.info("[sync] connected (collab)")}),PN(l,t,e,n),l},I8=async(t,e,n,o)=>{let r=await o;if(!r)return null;let s=r({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return s.on("connect",()=>{n.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),PN(s,t,e,n),s.on("reload",()=>{typeof R<"u"&&R.location&&R.location.reload()}),s},MN=async(t,e,n)=>{let{mode:o,baseUrl:r}=by(n);if(!o)return null;let s=R8();return o==="collab"?L8(t,e,n,r,s):o==="runner"?I8(t,e,n,s):null},iA={onInit:MN},P8={extends:[iA,Sy]},BN=t=>typeof t>"u",M8=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),B8=t=>t?.editor?.runtime==="runner",NN=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},N8={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!BN(n.liveSync)?n.liveSync:hi(e))&&(M8(e)&&!B8(e)&&!e?.key||NN(t,iA))}},$8={name:"notifications",beforeCreate(t,e){if(!e)return;let n=BN(e.notifications)?null:e.notifications,o=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&o)&&NN(t,Sy)}};var lA=/*@__PURE__*/$({},{fetchAsync:()=>H8,fetchSync:()=>V8});var $N=R&&R.location&&typeof R.location.host=="string"?R.location.host:null,cA=$N!==null?$N.includes("dev."):Ko(),FN=cA?"http://localhost:8080/get":"https://api.symbols.app/get",F8={endpoint:FN},jN=async(t,e=F8)=>{let n=e.endpoint||FN,o=e.serviceRoute?P(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",r;try{return r=await globalThis.fetch(n+"/?"+o,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await r.json()}catch(s){if(I(e.onError))return e.onError(s);console.error(s)}},j8=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let o=await jN(t,n),r=cA||e.isDevelopment?he(o):he(o.releases[0]);n.serviceRoute?P(n.serviceRoute)?n.serviceRoute.forEach(s=>{ne(e[s],r[s.toLowerCase()])}):ne(e[n.serviceRoute],r):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{ne(e[s],r[s.toLowerCase()])})}return e},U8=async(t,e,n)=>{let{editor:o}=e;if(o&&o.remote){let r=await jN(t,o),s=cA||e.isDevelopment?he(r):he(r.releases[0]);n(s)}},V8=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await j8(t,e)}catch(n){console.error(n)}},H8=(t,e,n,o)=>{if(e&&n.editor)try{n.editor.async&&U8(e,n,o||(r=>{let s=r.designSystem;k(s)&&n.utils.init(s),k(r.state)&&t.state.set(r.state)}))}catch(r){console.error(r)}};var z8={windows:()=>Promise.resolve(yE),dropdown:()=>Promise.resolve(AE),tooltip:()=>Promise.resolve(LE),analyze:()=>Promise.resolve(ad),shorthand:()=>Promise.resolve(ZE),inspect:()=>Promise.resolve(ld),sync:()=>globalThis.__SMBLS_BUILD_DROP_F_liveSync__?Promise.resolve(Ht("liveSync")):Promise.resolve(aA),fetch:()=>Promise.resolve(rs),fetchOnCreate:()=>Promise.resolve(lA)},Ve=(t,e)=>Array.isArray(t.plugins)&&t.plugins.some(n=>n&&n.name===e),UN=t=>{let e=[];return t.shorthand&&e.push("shorthand"),t.analyze&&!Ve(t,"analyze")&&e.push("analyze"),t.inspect&&!Ve(t,"inspect")&&e.push("inspect"),t.fetch&&e.push("fetch"),t.windows!==!1&&e.push("windows"),t.dropdown!==!1&&e.push("dropdown"),t.tooltip!==!1&&e.push("tooltip"),e},dd={},VN={},fe=t=>{if(dd[t])return dd[t];let e=z8[t];return e?(dd[t]=e().then(n=>(VN[t]=n,n),n=>(delete dd[t],console.error(`[smbls] the ${t} module failed to load; the app runs without it`,n),null)),dd[t]):Promise.resolve(null)},kc=t=>VN[t]||null;var gi=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let n of e.__teardowns)try{n()}catch(o){console.error("[smbls] destroy teardown error:",o)}e.__teardowns.length=0}try{ln(t)}catch(n){console.error("[smbls] dispose error:",n)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(n){console.error("[analyze] destroy error:",n)}return t.__destroyed=!0,!0};var gA=/*@__PURE__*/$({},{Helmet:()=>f$,applyElementMetadata:()=>Ey,applyMetadata:()=>Y8,default:()=>dG,extractMetadata:()=>K8,generateHeadHtml:()=>uG,helmetPlugin:()=>Ay,resolveMetadata:()=>pd});var gn={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},Uo=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key){let e=`${t.tag}[${t.attr}="${t.key}"]`;return t.key==="theme-color"?`${e}:not([data-smbls-theme-color])`:e}},HN=t=>he({v:t}).v,zN=(t,e,n,o)=>{try{return bt(t,e,n)}catch(r){console.warn(`[helmet] metadata factory for "${o}" threw; treating as unset:`,r&&r.message||r);return}},wy=Object.freeze({authored:!0}),pd=(t,e,n,o)=>{if(!t)return{};let r=t;E(r)&&ee(r)&&(r=HN(r));let s=I(r),i=!s&&o?.authored===!0,a=s?zN(r,e,n,"metadata"):k(r)?{...r}:{};if(!k(a))return{};for(let c in a){let l=a[c],f=i&&E(l)&&!ee(l);E(l)&&ee(l)&&(l=HN(l)),I(l)?l=zN(l,e,n,c):E(l)&&ee(l)&&(l=void 0),E(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,wy):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},W8=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),G8=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t["/*"])return t["/*"];if(t["*"])return t["*"];for(let n in t)if(W8(t[n]))return t[n]},K8=(t,e="/",n,o,r)=>{let s=t.pages||{},i=G8(s,e),a={};if(t.integrations?.seo&&(a={...t.integrations.seo}),t.app?.metadata){let f=pd(t.app.metadata,n,o,wy);a={...a,...f}}let c=new Set;if(i){let f=i.metadata||i.helmet||{},u=r?pd(f,r,r.state,wy):pd(f,n,o,wy);for(let d in u)c.add(d);a={...a,...u},!a.title&&i.state?.title&&(a.title=i.state.title,c.add("title")),!a.description&&i.state?.description&&(a.description=i.state.description,c.add("description"))}a.title||(a.title=t.name||"Symbols"),a.title&&(c.has("title")||!a["og:title"])&&(c.has("og:title")||(a["og:title"]=a.title)),a.description&&(c.has("description")||!a["og:description"])&&(c.has("og:description")||(a["og:description"]=a.description)),a.title&&!a["twitter:title"]&&(a["twitter:title"]=a.title),a.description&&!a["twitter:description"]&&(a["twitter:description"]=a.description);let l=c.has("og:url")?a["og:url"]:c.has("url")?a.url:void 0;if(l)a["og:url"]=l;else if(a["og:url"]||a.url){let f=(a["og:url"]||a.url||"").replace(/\/$/,"");if(f&&e&&e!=="/"){let u=e.startsWith("/")?e:"/"+e;a["og:url"]=f+u}}return gs(a,ds(t.files,t.sharedLibraries))},XN=(t,e)=>gs(pd(t,e,e.state),e.context?.files),ZN=t=>t.context?.document||typeof document<"u"&&document,QN=t=>Object.prototype.hasOwnProperty.call(gn,t),ky=new Map;for(let t in gn){let e=Uo(gn[t]);ky.has(e)||ky.set(e,gn[t])}var Ty=t=>t.head||t.querySelector("head"),dA=(t,e)=>{let n=Ty(t);return n?n.querySelector(e):null},fA=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),pA=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},hA=(t,e)=>{let n=Ty(e);if(!n)return null;let o=e.createElement(t.tag);return t.attr&&o.setAttribute(t.attr,t.key),n.appendChild(o),o},mi=(t,e,n,o)=>{let r=t.head||t.querySelector("head");if(!r)return;let s=new Map;for(let a of r.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Map;n.forEach((a,c)=>{i.has(a)||i.set(a,c)});for(let[a,c]of s)i.has(a)||c.remove();for(let a of n){if(s.has(a))continue;let c=o(a,i.get(a));c&&(c.setAttribute(e,a),r.appendChild(c))}},JN=(t,e)=>{let o=(e||[]).filter(s=>s!=null).map(s=>E(s)?s:JSON.stringify(s)),r=o.map(xn);mi(t,"data-smbls-jsonld",r,(s,i)=>{let a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=o[i],a})},t$=(t,e)=>{let n=(e||[]).filter(r=>r!=null&&String(r).trim()),o=n.map(xn);mi(t,"data-smbls-style",o,(r,s)=>{let i=t.createElement("style");return i.textContent=String(n[s]),i})},e$=t=>(t||[]).filter(e=>e&&(E(e)?e.trim():e.src)),n$=t=>E(t)?t:String(t.src),o$=(t,e)=>{let n=t.createElement("script");return E(e)?n.setAttribute("src",e):(e.src&&n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.async&&(n.async=!0),e.defer&&(n.defer=!0),e.integrity&&n.setAttribute("integrity",e.integrity),e.crossorigin&&n.setAttribute("crossorigin",e.crossorigin),e.referrerpolicy&&n.setAttribute("referrerpolicy",e.referrerpolicy),e.nomodule&&(n.noModule=!0),e.body&&(n.textContent=String(e.body))),n},q8=(t,e)=>{let n=e$(e),o=n.map(n$);mi(t,"data-smbls-script",o,(r,s)=>o$(t,n[s]))},r$=(t,e)=>{let n=(e||[]).filter(r=>k(r)),o=n.map(ps);mi(t,"data-smbls-alternate",o,(r,s)=>{let i=t.createElement("link");i.setAttribute("rel","alternate");for(let[a,c]of Object.entries(n[s]))i.setAttribute(a,c);return i})},s$=(t,e)=>{let n=(e||[]).filter(r=>r!=null),o=n.map(rr);mi(t,"data-smbls-favicon",o,(r,s)=>{let i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),k(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},i$=(t,e)=>{let n=e?String(e):"",o=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";mi(t,"data-smbls-single-icon",n?[n]:[],r=>{let s=t.createElement("link");return s.setAttribute("rel","icon"),s.setAttribute("href",r),o&&s.setAttribute("type",o),s})},a$=(t,e)=>{let n=(e||[]).filter(r=>k(r)),o=n.map(hs);mi(t,"data-smbls-theme-color",o,(r,s)=>{let i=n[s],a=t.createElement("meta");return a.setAttribute("name","theme-color"),i.content!==void 0&&a.setAttribute("content",i.content),i.media!==void 0&&a.setAttribute("media",i.media),a})},Y8=(t,e)=>{if(!(!k(t)||!e)){for(let n in t){let o=t[n];if(o==null||!QN(n)||n==="theme-color"&&Array.isArray(o))continue;let r=gn[n],s=dA(e,Uo(r))||hA(r,e);s&&pA(s,r,o)}Array.isArray(t.jsonLd)&&JN(e,t.jsonLd),Array.isArray(t.styles)&&t$(e,t.styles),Array.isArray(t.scripts)&&q8(e,t.scripts),Array.isArray(t.alternate)&&r$(e,t.alternate),Array.isArray(t.favicons)&&s$(e,t.favicons),(t.icon||t.favicon)&&i$(e,t.icon||t.favicon),Array.isArray(t["theme-color"])&&a$(e,t["theme-color"])}},WN=new WeakMap,uA=new WeakMap,c$=t=>{let e=t.location;return e&&E(e.pathname)?e.pathname:null},X8=t=>{let e=WN.get(t);return e||(e={doc:t,layers:[],servedPath:c$(t),originals:new Map,owned:new Set,lists:new Set},WN.set(t,e)),e},Z8=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},GN=t=>{try{return JSON.stringify(t===void 0?null:t)??null}catch{return null}},Q8=t=>{if(!k(t))return!0;for(let e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},J8=(t,e)=>{let n=uA.get(t);if(n)return n;let o=X8(e),r={element:t,values:null,signature:GN(null),disposed:!1,set(i){if(r.disposed)return;let a=GN(i);r.values=i,!(a!==null&&a===r.signature)&&(r.signature=a,qN(o))},dispose(){if(r.disposed)return;r.disposed=!0;let i=o.layers.indexOf(r);if(i!==-1&&o.layers.splice(i,1),!Q8(r.values))try{qN(o)}catch(a){console.warn("[helmet] could not re-render the head after an element left:",a&&a.message||a)}}},s=o.layers.length;for(let i=0;i<o.layers.length;i++)if(Z8(t,o.layers[i].element)){s=i;break}return o.layers.splice(s,0,r),uA.set(t,r),r},l$=(t,e,n,o)=>{let r=J8(t,e),s=W(()=>{let a=n();r.set(a),o&&o(a)}),i=t.__ref?.__effects;i&&i.push(s,r)},tG=Uo(gn.title),eG=Uo(gn.description),nG=Uo(gn["og:title"]),oG=Uo(gn["og:description"]),rG=Uo(gn["twitter:title"]),sG=Uo(gn["twitter:description"]),KN=(t,e,n,o)=>{let r=t.get(e);if(!r||!r.value)return;let s=t.get(n);(!s||!s.value||s.rank<r.rank)&&t.set(n,r);let i=t.get(o);(!i||!i.value)&&t.set(o,r)},xy={jsonLd:JN,styles:t$,alternate:r$,favicons:s$,icon:i$,"theme-color":a$},iG=Object.keys(xy).filter(t=>t!=="icon"),aG=t=>{let e=new Map,n={},o=[];for(let r=0;r<t.length;r++){let s=t[r].values;if(!k(s))continue;for(let a in s){let c=s[a];c==null||!QN(a)||a==="theme-color"&&Array.isArray(c)||e.set(Uo(gn[a]),{value:String(c),rank:r})}for(let a of iG)Array.isArray(s[a])&&(n[a]=s[a]);let i=s.icon||s.favicon;i&&(n.icon=i),Array.isArray(s.scripts)&&o.push(...s.scripts)}return KN(e,tG,nG,rG),KN(e,eG,oG,sG),{tags:e,lists:n,scripts:o}},cG=(t,e,n)=>{let{doc:o,originals:r}=t,s=ky.get(e),i=dA(o,e),a=r.get(e);a||(a={value:i?fA(i,s):null,rendered:!1},r.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=hA(s,o)),i&&(fA(i,s)!==n&&pA(i,s,n),t.owned.add(e))},lG=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let o=ky.get(e),r=dA(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&c$(n)===t.servedPath){let a=r||hA(o,n);a&&fA(a,o)!==s.value&&pA(a,o,s.value)}else r&&r.remove()},fG=(t,e)=>{let n=e$(e);if(!n.length)return;let o=Ty(t),r=new Set;for(let s of o.querySelectorAll("[data-smbls-script]"))r.add(s.getAttribute("data-smbls-script"));for(let s of n){let i=n$(s);if(r.has(i))continue;let a=o$(t,s);a.setAttribute("data-smbls-script",i),o.appendChild(a),r.add(i)}},qN=t=>{let{doc:e}=t;if(!Ty(e))return;let{tags:n,lists:o,scripts:r}=aG(t.layers);for(let s of[...t.owned])n.has(s)||lG(t,s);for(let[s,{value:i}]of n)cG(t,s,i);for(let s in xy)o[s]!==void 0?(xy[s](e,o[s]),t.lists.add(s)):t.lists.delete(s)&&xy[s](e,null);fG(e,r)},uG=t=>{let e=['<meta charset="UTF-8">'],n=new Set(["charset","jsonLd","styles","scripts"]),o=!1;for(let[r,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||n.has(r)||typeof s=="function")continue;if(r==="title"){e.push(`<title>${j(s)}</title>`);continue}if(r==="viewport"){o||(e.push(`<meta name="viewport" content="${j(s)}">`),o=!0);continue}if(r==="canonical"){e.push(`<link rel="canonical" href="${j(s)}">`);continue}if(r==="icon"||r==="favicon"){let f=j(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u} data-smbls-single-icon="${f}">`);continue}if(r==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(k(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${j(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${j(rr(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${j(f)}" data-smbls-favicon="${j(rr(f))}">`)});continue}if(r==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(k(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${j(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${j(ps(f))}">`)}});continue}if(r==="theme-color"&&Array.isArray(s)){s.forEach(f=>{if(!k(f))return;let u=['name="theme-color"'];f.content!==void 0&&u.push(`content="${j(f.content)}"`),f.media!==void 0&&u.push(`media="${j(f.media)}"`),u.push(`data-smbls-theme-color="${j(hs(f))}"`),e.push(`<meta ${u.join(" ")}>`)});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>r.startsWith(f)),l=a.some(f=>r.startsWith(f));if(r.startsWith("http-equiv:")){let f=r.replace("http-equiv:","");e.push(`<meta http-equiv="${j(f)}" content="${j(s)}">`)}else if(r.startsWith("itemprop:")){let f=r.replace("itemprop:","");e.push(`<meta itemprop="${j(f)}" content="${j(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${j(r)}" content="${j(f)}">`)):e.push(`<meta property="${j(r)}" content="${j(s)}">`):l?e.push(`<meta name="${j(r)}" content="${j(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${j(r)}" content="${j(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${j(r)}" content="${j(s)}">`)}return o||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),e.push(...na(t)),e.join(`
167
+ `)},f$={define:{metadata:(t,e)=>{Ey(t,e,n=>{let o=e.state?.root;k(o)&&(o.$helmet=n)})}}},Ey=(t,e,n)=>{let o=ZN(e);o&&l$(e,o,()=>XN(t,e),n)},YN=t=>{let e=t.metadata;return e?XN(e,t):null},Ay={name:"helmet",create(t){if(!t.metadata)return;let e=ZN(t);e&&l$(t,e,()=>YN(t))},update(t){let e=uA.get(t);if(!e)return Ay.create(t);e.disposed||e.set(YN(t))}},dG=f$;var u$=(t,e,n,o)=>{if(!t||!o?.fetch)return;let r=kc("fetch");if(r){r.executeFetch(t,e,n,o);return}fe("fetch").then(s=>{s&&s.executeFetch(t,e,n,o)})},d$=(t,e)=>{t&&Ey(t,e)},p$=async(t,e)=>{if(!t)return;let n={tag:"fragment",...t},o=async()=>{await e.set(n,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(o):await o(),n},yi={routes:t=>t,metadata:d$,fetch:u$,$router:p$},h$=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=d$),t.fetch!==!1&&(e.fetch=u$),t.router!==!1&&(e.$router=p$),e};var mA={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Cy={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},yA={...mA,router:Cy},vy={state:{},pages:{},components:{},router:Cy,define:yi},g$=t=>{let e={...vy,...t};for(let n of Object.keys(vy)){let o=vy[n];e[n]===o&&o&&typeof o=="object"&&(e[n]={...o})}return e},Tc=vy;var m$=(t,e)=>U(t.extends)?t.extends:[];var y$=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!Array.isArray(t))return null;let o=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let[r,s]of Ji(t,ta))o[r]||(o[r]=s);return o};var _A=/*@__PURE__*/$({},{apiUrl:()=>Oy,channelByApiUrl:()=>w$,channelNames:()=>hG,channels:()=>ve,currentChannel:()=>Br,defaultChannel:()=>kG,deployTarget:()=>SG,isKnownChannel:()=>xG,mermaidUrl:()=>bG,normalizeOwnerSegment:()=>TG,normalizeProjectKey:()=>AG,normalizeProjectSlug:()=>EG,parseSymboLsHost:()=>vG,previewProjectUrl:()=>_G,previewUrl:()=>x$,resolveChannel:()=>bi,screenshotCdnHost:()=>k$,screenshotCdnUrl:()=>wG,setChannel:()=>gG,shellUrl:()=>yG,socketUrl:()=>mG});var ve={channels:{local:{api:"http://localhost:8080",socket:"http://localhost:8080",shell:"http://my.localhost:1355",preview:"http://preview.localhost:1355",mermaidApex:"localhost:1355",deploy:{}},development:{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.my.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},"demo-dev":{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.demo.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-demo-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},next:{api:"https://next.api.symbols.app",socket:"https://next.api.symbols.app",shell:"https://next.my.symbols.app",preview:"https://next.preview.symbols.app",mermaidApex:"next.symbo.ls",deploy:{shellBucket:"smbls-my-next",previewWorker:"smbls-preview-next",mermaidWorker:"mermaid-next"}},test:{api:"https://test.api.symbols.app",socket:"https://test.api.symbols.app",shell:"https://test.my.symbols.app",preview:"https://test.preview.symbols.app",mermaidApex:"test.symbo.ls",deploy:{shellBucket:"smbls-my-test",previewWorker:"smbls-preview-test",mermaidWorker:"mermaid-test"}},upcoming:{api:"https://upcoming.api.symbols.app",socket:"https://upcoming.api.symbols.app",shell:"https://upcoming.my.symbols.app",preview:"https://upcoming.preview.symbols.app",mermaidApex:"upcoming.symbo.ls",deploy:{shellBucket:"smbls-my-upcoming",previewWorker:"smbls-preview-upcoming",mermaidWorker:"mermaid-upcoming"}},staging:{api:"https://staging.api.symbols.app",socket:"https://staging.api.symbols.app",shell:"https://staging.my.symbols.app",preview:"https://staging.preview.symbols.app",mermaidApex:"staging.symbo.ls",deploy:{shellBucket:"smbls-my-staging",previewWorker:"smbls-preview-staging",mermaidWorker:"mermaid-staging"}},demo:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://demo.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-demo",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}},production:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://my.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-prod",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}}},defaultChannel:"production",screenshotCdn:"screenshots.api.symbols.app"};var hG=Object.keys(ve.channels),Ln=t=>!!(t&&ve.channels[t]),bi=t=>Ln(t)?ve.channels[t]:ve.channels[ve.defaultChannel],gG=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Ln(t)?t:null,Ec=void 0)},Ec,_i=t=>typeof process<"u"&&process.env&&process.env[t]||null,Br=()=>{if(Ec!==void 0)return Ec;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=_i("SYMBOLS_CHANNEL"),n=_i("NODE_ENV"),o=_i("SYMBOLS_API_URL")||_i("SYMBOLS_API_BASE_URL"),r=o?w$(String(o).trim().replace(/\/+$/,"")):null;return Ec=Ln(t)&&t||Ln(e)&&e||Ln(r)&&r||Ln(n)&&n||ve.defaultChannel,Ec===ve.defaultChannel&&!Ln(t)&&!Ln(e)&&!Ln(r)&&!Ln(n)&&typeof process<"u"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${n||"unset"}, __SYMBOLS_CHANNEL__ unset) \u2014 falling back to "${ve.defaultChannel}". Outbound URLs (shellUrl${o?"":"/apiUrl"}) will target production`+(o?` (the API follows ${o}, which is no known channel)`:"")+"; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel."),Ec},_$=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],b$=t=>{let e=_$.indexOf(t);return e===-1?_$.length:e},w$=t=>{if(!t)return null;let e=Object.keys(ve.channels).filter(n=>ve.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,o)=>b$(n)-b$(o))[0]},Oy=(t=Br())=>_i("SYMBOLS_API_URL")||bi(t).api,mG=(t=Br())=>_i("SYMBOLS_SOCKET_URL")||bi(t).socket,yG=(t=Br())=>bi(t).shell||null,x$=(t=Br())=>bi(t).preview||null,_G=({owner:t,key:e,env:n="production"}={},o=Br())=>{let r=x$(o);if(!r||!t||!e)return null;let s=r.match(/^(https?:\/\/)(.+)$/);if(!s)return null;let[,i,a]=s,c=`${encodeURIComponent(t)}--${encodeURIComponent(e)}`,l=`${i}${c}.${a}/`;return!n||n==="production"||n==="prod"?l:`${l}?env=${encodeURIComponent(n)}`},bG=({owner:t,key:e,env:n="production"}={},o=Br())=>{let r=bi(o).mermaidApex;if(!r||!t||!e)return null;let i=!n||n==="production"||n==="prod"?"":`--${encodeURIComponent(n)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${r.startsWith("localhost")?"http":"https"}://${a}.${r}`},SG=(t=Br())=>bi(t).deploy||{},k$=()=>_i("SYMBOLS_SCREENSHOT_CDN")||ve.screenshotCdn,wG=({owner:t,key:e,page:n="root",componentKey:o,env:r="production",width:s}={})=>{if(!t||!e)return null;let i=o?`component/${encodeURIComponent(o)}`:encodeURIComponent(String(n||"root").replace(/^\/+/,"").replace(/\//g,"-")||"root"),a=[];r&&r!=="production"&&a.push(`env=${encodeURIComponent(r)}`),s&&a.push(`w=${Number(s)}`);let c=a.length?`?${a.join("&")}`:"";return`https://${k$()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},xG=Ln,kG=ve.defaultChannel,TG=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",EG=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",AG=(t,e={})=>{let n=String(t||"").trim();if(!n)return"";/\.symbo\.ls$/iu.test(n)&&(n=n.replace(/\.symbo\.ls$/iu,"")),n.includes("/")&&(n=n.split("/").pop());let o=typeof e.owner=="string"?e.owner.trim():"";return o&&n.startsWith(`${o}--`)?n=n.slice(o.length+2):!o&&n.includes("--")&&(n=n.slice(n.indexOf("--")+2)),n},S$={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},vG=t=>{if(typeof t!="string"||!t)return null;let e=t.toLowerCase().replace(/^www\./,"").replace(/\/$/,"");if(!e.endsWith(".symbo.ls"))return null;let n=e.split(".");if(n.length<4||n.slice(-2).join(".")!=="symbo.ls")return null;if(n.length===4){let s=n[1],i=n[0],a=S$[s];if(a&&i.includes("--")){let c=i.split("--");if(c.length===2||c.length===3){let[l,f,u]=c;if(l&&f){let d=u?S$[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(n.length>=5)return{projectKey:n[1],owner:n[2],env:n[0]};let o=n[1],r=n[0];if(r.includes("--")){let[s,i]=r.split("--",2);return!s||!i?null:{projectKey:s,owner:o,env:i}}return{projectKey:r,owner:o,env:"production"}};var E$=t=>{let e={faces:0,links:0,kept:0};if(!t)return e;let n=DG(Hn());for(let o in t){let r=t[o];if(!r||!r.fontFace)continue;let s=Array.isArray(r.fontFace)?r.fontFace:[r.fontFace];for(let i of s){if(A$(i)){let a=OG(i);a&&RG(a)&&e.links++;continue}if(CG(i)){if(!T$(i))continue;if(n.has(bA(i))){e.kept++;continue}At(i.trim()),e.faces++;continue}if(typeof i=="string"&&i.includes("font-family")){if(!T$(i))continue;if(n.has(bA(i))){e.kept++;continue}At(`@font-face { ${i} }`),e.faces++}}}return e},A$=t=>typeof t=="string"&&t.trim().startsWith("@import"),CG=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),OG=t=>{if(!A$(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},RG=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||Hn();if(!n||!n.head)return null;let o="data-smbls-font",r=n.head.querySelectorAll(`link[rel="stylesheet"][${o}]`);for(let i=0;i<r.length;i++)if(r[i].getAttribute(o)===t)return r[i];let s=n.createElement("link");return s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.setAttribute(o,t),n.head.appendChild(s),s},Ry=(t,e)=>{let n=new RegExp(`(?:^|[;{\\s])${e}\\s*:\\s*([^;}]+)`,"i").exec(t);return n?n[1].trim().toLowerCase():null},bA=t=>{let e=String(t||""),n=Ry(e,"font-family");if(!n)return null;let o=Ry(e,"font-weight")||"400";return o==="normal"?o="400":o==="bold"&&(o="700"),n.replace(/^['"]|['"]$/g,"")+"|"+o+"|"+(Ry(e,"font-style")||"normal")},T$=t=>{let e=Ry(String(t||""),"src");return!!e&&e!=="none"},SA=t=>{if(!t)return null;let e=t.type;if(e===5)return t.cssText||"";if(typeof e=="number")return null;let n=t.cssText||"";return/^\s*@font-face/i.test(n)?n:null},DG=t=>{let e=new Set,n=t&&t.styleSheets;if(!n)return e;for(let o=0;o<n.length;o++){let r;try{r=n[o].cssRules}catch{continue}if(r)for(let s=0;s<r.length;s++){let i=SA(r[s]);if(i===null)continue;let a=bA(i);a&&e.add(a)}}return e};var D$='meta[name="brender"]',LG=3e3,wA=t=>t.document||(typeof document<"u"?document:null),L$=(t,e)=>{let n=t.parent;return n&&n.nodeType===1?n:n&&n.node&&n.node.nodeType===1?n.node:e?e.body:null},I$=(t,e)=>{if(e&&e.__BRENDER__)return!0;let n=wA(t);if(!n||typeof n.querySelector!="function")return!1;let o=n.documentElement;if(o&&typeof o.hasAttribute=="function"&&o.hasAttribute("data-brender")||n.querySelector(D$))return!0;let r=L$(t,n);for(let s=r&&r.firstElementChild;s;s=s.nextElementSibling)if(s.hasAttribute("data-br"))return!0;return!1},P$=t=>{let e=wA(t);return!e||!e.head?null:Array.from(e.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]'))},M$=(t,e)=>{if(!e||!e.length)return;let n=[];for(let r of e){let s=null;try{s=r.sheet&&r.sheet.cssRules}catch{s=null}if(s&&s.length)for(let i=0;i<s.length;i++){let a=SA(s[i]);a!==null&&n.push(a)}else{let i=String(r.textContent||"").match(/@font-face\s*\{[^}]*\}/gi);i&&n.push(...i)}}let o=e.find(r=>r.parentNode);if(n.length&&o&&t&&typeof t.createElement=="function"){let r=t.createElement("style");r.setAttribute("data-smbls-faces",""),r.textContent=n.join(`
168
+ `),o.parentNode.insertBefore(r,o)}e.forEach(r=>{r.parentNode&&r.remove()})},v$=t=>{console.warn("[smbls] the pre-render registry is not JSON \u2014 the page renders fresh:",t.message)},xA=["paths","tree"],IG=(t,e)=>{let n=jn(e,nf,{warn:v$});if(n)return{map:of(n.value),block:n.block};let o=jn(e,ef,{warn:v$});return o?{map:k(o.value)?o.value:null,block:o.block}:t&&k(t.__BR_REGISTRY__)?{map:t.__BR_REGISTRY__,legacy:!0}:null},PG=(t,e,n)=>!n||!n.map||t.hydrate===!1?!1:n.legacy?t.hydrate===!0||k(t.hydrate)||!!e&&e.__BRENDER_HYDRATE__===!0:!0,MG=t=>{let e=k(t.hydrate)?t.hydrate.timeout:void 0;return typeof e=="number"&&e>=0?e:LG},B$=(t,e,n)=>{if(t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__,delete t.__BRENDER_HYDRATE__),n&&n.block&&n.block.parentNode&&n.block.remove(),e&&typeof e.querySelector=="function"){let o=e.querySelector(D$);o&&o.remove();let r=e.documentElement;r&&typeof r.hasAttribute=="function"&&r.hasAttribute("data-brender")&&r.removeAttribute("data-brender")}},BG=()=>new Promise(t=>{if(typeof MessageChannel=="function"){let e=new MessageChannel;e.port1.onmessage=()=>{e.port1.close(),t()},e.port2.postMessage(null)}else setTimeout(t,0)}),N$=async(t,e)=>{let n=t.__firstNavigation;if(n&&typeof n.then=="function")try{await n}catch{}for(let o=0;o<20&&e.pending.size;o++){let r=kc("fetch"),s=r&&typeof r.whenRequestsIdle=="function"?r.whenRequestsIdle:null;if(s&&await s(),await BG(),!s||!(r.requestsInFlight()>0))return}},NG=["click","keydown"],$$=(t,e,n,o,r,s)=>{let i=!1,a=null,c=()=>f(),l=u=>{let d=u?"addEventListener":"removeEventListener";if(n&&typeof n[d]=="function")for(let p of NG)n[d](p,c,!0);e&&typeof e[d]=="function"&&e[d]("popstate",c)},f=()=>{if(i)return;i=!0,a!==null&&clearTimeout(a),l(!1),t.__hydration===o&&delete t.__hydration;let u=0;for(let d of o.pending)d.parentNode&&(d.remove(),u++);o.pending.clear(),o.pendingIn.clear(),o.whole=null,Er(o),M$(n,s),e&&(e.__BRENDER_HYDRATION__={adopted:o.adopted,misses:o.misses,removed:u}),B$(e,n,r),F$(t,e,o.root,!0)};if(!o.pending.size)return f();a=setTimeout(f,MG(t)),l(!0),N$(t,o).then(f,f)},$G=1e3,FG=(t,e)=>{t&&typeof t.requestIdleCallback=="function"?t.requestIdleCallback(e,{timeout:$G}):setTimeout(e,0)},C$=(t,e)=>{let n=kc("fetch");!n||typeof n.seedIsStale!="function"||!n.seedIsStale()||FG(t,()=>{n.revalidateSeed(e).then(o=>{o&&t&&((t.__BRENDER_HYDRATION__||(t.__BRENDER_HYDRATION__={replaced:!0})).refreshed=o)},o=>console.error("[smbls] refreshing a stale pre-rendered page failed:",o))})},F$=(t,e,n,o)=>{let r=kc("fetch");if(!r||typeof r.seedIsStale!="function")return;let s=()=>{let i=()=>C$(e,n);N$(t,{pending:{size:1}}).then(i,i)};if(r.seedIsStale())return o?C$(e,n):s();typeof r.whenSeedTaken=="function"&&r.whenSeedTaken(s)},jG=t=>({bubbles:!0,cancelable:!0,composed:!0,detail:t.detail,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons}),UG=(t,e,n,o)=>{if(!t||typeof t.addEventListener!="function")return{replay(){}};let r=[],s=a=>{for(let c=a;c&&c!==n;c=c.parentNode)if(o.pending.has(c))return!0;return!1},i=a=>{s(a.target)&&(a.preventDefault(),a.stopImmediatePropagation(),r.push({target:a.target,init:jG(a)}))};return t.addEventListener("click",i,!0),{replay(){t.removeEventListener("click",i,!0);let a=e&&e.MouseEvent||(typeof MouseEvent=="function"?MouseEvent:null);if(a)for(let{target:c,init:l}of r)c.isConnected&&o.claimed.has(VG(c,n,o))&&c.dispatchEvent(new a("click",l))}}},VG=(t,e,n)=>{for(let o=t;o&&o!==e;o=o.parentNode)if(n.claimed.has(o))return o;return null},HG=async()=>{for(await Te();!vr();)await Te()},zG=async(t,e,n,o,r,s,i,a,c,l,f,u)=>{let d=f.mountYield,p=f.mountWhole;d===void 0&&(f.mountYield=u.budget),p===void 0&&(f.mountWhole=!0);let g=lE(r,{budget:u.budget,progressive:!0,pageOptions:{mountYield:f.mountYield,mountWhole:f.mountWhole}}),h=Ks(),m=UG(i,s,o,a),y=u.lease||null;g.lease=y,y&&(r.__mountLease=y);let x=null,T=!1;try{try{x=t(e,n,r.key,f)}catch(v){console.error("[smbls] hydration failed, rendering fresh:",v),delete r.__hydration,Er(a);for(let _ of a.claimed)_.parentNode&&_.remove();return null}T=!await Lr(Bo(x),y)||g.routeReady&&!await Lr(g.routeReady,y)||!await Lr(HG(),y),T&&(r.__hydration===a&&delete r.__hydration,Er(a),aE(x))}finally{f.mountYield=d,f.mountWhole=p,y&&(r.__mountLease=null),fE(r),h(),x||m.replay()}return T?(m.replay(),gc(k(e)?e:{})):(a.root=x,$$(r,s,i,a,c,l),m.replay(),x)},O$=(t,e,n,o,r,s,i,a,c,l,f)=>{if(!o||typeof o.querySelectorAll!="function")return null;let u=T=>{for(let v=T;v&&v!==o;v=v.parentNode)if(v.parentNode===o&&v.localName==="svg"&&v.id)return!0;return!1},d={};for(let T of o.querySelectorAll("[data-br]")){let v=T.getAttribute("data-br");u(T)?T.removeAttribute("data-br"):d[v]=T}let p={},g=new Set,h=new Map,m=a.map;for(let T in m){let v=m[T],_=d[v];if(!_||p[v])continue;p[v]=_,g.add(_);let b=_.parentNode;b&&h.set(b,(h.get(b)||0)+1)}for(let T in d)p[T]||d[T].removeAttribute("data-br");let y={registry:m,nodes:p,claimed:new Set,pending:g,pendingIn:h,adopted:0,misses:0};if(r.__hydration=y,f)return zG(t,e,n,o,r,s,i,y,a,c,l,f);let x;try{x=t(e,n,r.key,l)}catch(T){console.error("[smbls] hydration failed, rendering fresh:",T),delete r.__hydration,Er(y);for(let v of y.claimed)v.parentNode&&v.remove();return null}return y.root=x,$$(r,s,i,y,a,c),x},R$=(t,e,n,o,r,s,i,a,c,l)=>{if(M$(i,c),o){let u=[];for(let d of o.childNodes){if(d.nodeType===1){let p=d.localName;if(p==="script"||p==="link"||p==="style"||p==="svg"&&d.id)continue}u.push(d)}u.forEach(d=>d.remove())}i&&typeof i.querySelectorAll=="function"&&i.querySelectorAll("[data-br]").forEach(u=>u.removeAttribute("data-br")),s&&(s.__BRENDER_HYDRATION__={replaced:!0});let f=t(e,n,r.key,l);return B$(s,i,a),Promise.resolve(f).then(u=>F$(r,s,u,!1),()=>{}),f},j$=(t,e,n,o,r,s,i,a=null)=>{let c=wA(o),l=n&&n.nodeType?n:n&&n.node||L$(o,c),f=IG(r,c);o.prerendered=!0;let u=es(c);if(u&&(o.prerender=u),PG(o,r,f)){if(a)return to().then(()=>hc(a.lease)?O$(t,e,n,l,o,r,c,f,s,i,a):gc(k(e)?e:{})).then(p=>p||R$(t,e,n,l,o,r,c,f,s,i));let d=O$(t,e,n,l,o,r,c,f,s,i,a);if(d)return d}return R$(t,e,n,l,o,r,c,f,s,i)};var W$=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let n=typeof document<"u"?document:e.document;t.document=t.document||n;let o=t.window;return o&&o!==e&&typeof o.URL!="function"?(typeof console<"u"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub (warned once; applies to every embed app this session)")),t.window=e):t.window=o||e,t.window},U$=(t="smbls")=>{let e={};for(let n in ii)Object.prototype.hasOwnProperty.call(ii,n)&&(Nn(n)?e[`smbls.${n}`]=ii[n]:e[n]=ii[n]);return e},G$=t=>t.components?{...U$(),...t.components}:U$(),K$=t=>({...td,...cc,...lr,...t.utils,...t.snippets,...t.functions}),q$=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var Y$=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,WG=3e3,GG=(t,e,n=o=>import(o))=>{if(typeof globalThis>"u")return Promise.resolve(null);try{let o=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(o[t])return Promise.resolve(o[t]);let r=()=>n(e),s=Promise.resolve().then(r).then(a=>(a&&!o[t]&&(o[t]=a),o[t]||null)).catch(()=>null);return new Promise(a=>{let c=setTimeout(()=>a(null),WG);s.then(l=>{clearTimeout(c),a(l)})})}catch{return Promise.resolve(null)}},V$={},AA=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:o=!1,cdnProvider:r,packageManager:s,symbolsConfig:i,registerDependency:a=GG})=>{if(r||(r=er[s]||Xi(i)||"esmsh"),!t)return null;if(!ls(t))return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] dependencies is ${Array.isArray(t)?"an ARRAY":`a ${typeof t}`}, not a package-name-keyed object \u2014 skipping the CDN fetch loop. This usually means a project's config.js declares its own "dependencies" field that collides with the platform package map once context.js spreads them together.`),null;let c=!1;for(let d in t){c=!0;break}if(!c)return null;let l=Ko()&&o?`?${Math.random()}`:"",f=async(d,p)=>{let g=wn(d,p,r)+l;try{await Promise.race([Zi(g,{document:n,type:"module"}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,g)}catch(h){if(console.error(`Failed to load ${d} from ${r}:`,h),r!=="symbols")try{let m=wn(d,p,"symbols")+l;await Promise.race([Zi(m,{document:n,type:"module"}),new Promise((y,x)=>setTimeout(()=>x(new Error(`Timeout fallback ${d}`)),2e4))]),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let p=t[d];if(!(e&&e[d])&&!V$[d]&&(V$[d]=!0,!nr(d))){if(cs(d)){globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] dependency "${d}" looks like an un-interpolated template placeholder, not a real package specifier \u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}Y$(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},H$=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,KG=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof De=="function"?De(t):Function.prototype.toString.call(t)}catch{return""}return""},qG=t=>{let e=new Set;if(!t)return e;let n=[t.globalScope,t.functions,t.methods,t.snippets];for(let o=0;o<n.length;o++){let r=n[o];if(!r||typeof r!="object")continue;let s=Object.keys(r);for(let i=0;i<s.length;i++){let a;try{a=r[s[i]]}catch{continue}let c=KG(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;H$.lastIndex=0;let l;for(;(l=H$.exec(c))!==null;)e.add(l[1])}}return e},YG=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!="function")return e;let n;try{n=t.querySelectorAll('script[type="importmap"]')}catch{return e}for(let o=0;o<n.length;o++){let r;try{r=JSON.parse(n[o].textContent||"")}catch{continue}let s=r&&typeof r=="object"?r.imports:null;if(s&&typeof s=="object"){let i=Object.keys(s);for(let a=0;a<i.length;a++)e.add(i[a])}}return e},XG=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let n of e)if(n.length>1&&n.endsWith("/")&&t.length>n.length&&t.startsWith(n))return!0;return!1},X$=(t,{syncRead:e=qG(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:o=YG(n)}={})=>{let r=t&&t.dependencies;if(!ls(r))return null;let s=!t.document||t.document===n,i=t.dependenciesOnDemand,a=null,c=null;for(let l in r)s&&!(i&&i[l])&&!e.has(l)&&XG(l,o)?(c||(c={}))[l]=r[l]:(a||(a={}))[l]=r[l];return{blocking:a,deferred:c}},ZG=t=>import(t),kA={},QG=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},JG=(t,{importModule:e=ZG}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let o in t)if(!(nr(o)||cs(o))&&!Y$(o)){if(!kA[o]){let r=()=>e(o);kA[o]=Promise.resolve().then(r).then(s=>(QG(o,s),s||null),()=>null)}n.push(kA[o])}return Promise.all(n)},tK=2e3,eK=3e3,Z$=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:o=eK}={})=>t?new Promise(r=>{let s=()=>{JG(t,{importModule:n}).then(r,r)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:tK}):setTimeout(s,0)},a=e&&e.document;if(a&&a.readyState&&a.readyState!=="complete"&&typeof e.addEventListener=="function"){let c=!0,l=null,f=()=>{c&&(c=!1,clearTimeout(l),typeof e.removeEventListener=="function"&&e.removeEventListener("load",f),i())};e.addEventListener("load",f,{once:!0}),l=setTimeout(f,o)}else i()}):null,Q$=async(t,e)=>{let n=e.window||window,o=e.cdnProvider||Xi(e.symbolsConfig)||"esmsh",r=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=o)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]&&nr(a))return await u.require(a,c);if(!u.packages[a]){let d=Ko()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=wn(a,p,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=wn(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=wn(a,"latest",c)+d;try{await i.utils.loadRemoteScript(p,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let h=wn(a,"latest","symbols")+d;await i.utils.loadRemoteScript(h,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};n.packages?n.packages=Ot(n.packages,t):n.packages=t,n.require||(e.utils.require=await r(e),n.require=e.utils.require),n.requireOnDemand||(e.utils.requireOnDemand=await s(e),n.requireOnDemand=e.utils.requireOnDemand)},nK=/\s+/g,J$=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,oK=(t,e)=>{let n="";for(let o in t){let r=t[o];typeof r=="boolean"&&r?n+=` ${o}`:typeof r=="string"?n+=` ${r}`:typeof r=="function"&&(n+=` ${J$(r,e)}`)}return n},rK=(t,e,n)=>{if(!t)return;let{key:o}=e;t===!0&&(t=e.classlist={key:o}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=oK(t,e));let r=t.replace(nK," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",r);else if(n)try{n.className=r}catch{}return r},sK=()=>(t,e,n)=>{let o=J$(t,e);if(t){let{__ref:r}=e;r.__class.style=o}tF()(e.classlist,e,e.state,!0)},tF=()=>(t,e,n,o)=>{if(e.style&&!o)return;let{__ref:r}=e,{__class:s,__classNames:i}=r;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=$e(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&rK(i,e,e.node)}},iK=()=>({style:sK(),classlist:tF()}),aK=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],TA=new WeakSet,EA=!1,cK=t=>!!t&&typeof t=="object",lK=new Set(["key","document","files","assets","themeRoot","config","newConfig","recordCss","router"]),eF=t=>t.toLowerCase()==="font",fK=t=>{let e=2166136261,n=16777619^t.length;for(let o=0;o<t.length;o++){let r=t.charCodeAt(o);e=Math.imul(e^r,16777619),n=Math.imul(n^r,1540483477)}return(e>>>0).toString(36)+"."+(n>>>0).toString(36)+"."+t.length.toString(36)},z$=(t,e)=>typeof e=="function"?"fn:"+String(e):e,nF=(t,e)=>{let n={};for(let r in t||{})eF(r)||(n[r]=t[r]);let o={};for(let r in e)lK.has(r)||(o[r]=e[r]);return o.globalTheme=Lm(e.globalTheme)||"auto",fK(1+"|"+JSON.stringify(n,z$)+"|"+JSON.stringify(o,z$))},uK=t=>{let e={};for(let n in t||{})eF(n)&&k(t[n])&&mt(e,ut(t[n]),re);return k(Zs.font)&&mt(e,ut(Zs.font),re),e},dK=(t,e)=>{if(t.preparedDesignSystem!==void 0){let o=t.preparedDesignSystem;return delete t.preparedDesignSystem,o}let n=jn(e,af);return n?n.value:null},oF=t=>{if(!t||t.preparedDesignSystem!==void 0)return null;let e=t.document||(typeof document<"u"?document:null);if(!e||typeof e.querySelector!="function"||typeof globalThis.fetch!="function")return null;try{let n=e.querySelector(rf),o=n&&n.href;if(o)return globalThis.fetch(o,{credentials:"same-origin"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);let r=e.querySelector(sf),s=r&&r.getAttribute("content");if(!s)return null;let i=new URL(s,e.baseURI||void 0).href,a=globalThis.fetch(i,{credentials:"same-origin",priority:"low"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);return hK(a,i,t.window||e.defaultView)}catch{return null}},pK=(t,e)=>{let n=e&&e.performance||(typeof performance<"u"?performance:null);if(!n||typeof n.getEntriesByName!="function")return!1;try{let o=n.getEntriesByName(t);for(let r=0;r<o.length;r++)if(o[r].responseEnd>0)return!0}catch{}return!1},hK=(t,e,n)=>{let o=!1,r=t.then(s=>(o=!0,s));return r.deferred=!0,r.ready=()=>o||pK(e,n),r},rF=t=>!!t&&(t.deferred!==!0||t.ready()),gK=t=>k(t)&&t.format===1&&typeof t.fingerprint=="string"&&k(t.config)&&Array.isArray(t.rules),mK=(t,e,n,o)=>{if(o.localFile)return null;let r=Xh(t);return r?{format:1,fingerprint:nF(n.designSystem,o),config:r,rules:e.rules,sprites:e.sprites}:null},sF=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,o=e.initOptions||{},r=e.registry||iK(),s=()=>e.designSystem?mt(ut(e.designSystem),ut(Zs),re):ut(Zs),i={};for(let m of aK)e[m]!==void 0&&(i[m]=e[m]);let a,c=cK(n),f=c&&TA.has(n)&&!e.skipDesignSystemInit,u=!f&&!EA,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let p={key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...yA,...i,...o};if(e.skipDesignSystemInit){if(a=L(t)||L(),a&&(a.__domDocument=n),a?.CSS_VARS){ht(a);try{At({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&At(Dm(a.CSS_MEDIA_VARS,d));let m=Ps(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(m).length&&At(m)}finally{dt()}}}else if(e.isolateDesignSystem&&!f){let m=Rh();m.__domDocument=n;let y=null,x=e.captureDesignSystem?T=>{y=T}:void 0;ht(m);try{a=no(s(),{...p,config:m,recordCss:x})}finally{dt()}y&&(e.preparedDesignSystem=mK(a,y,e,p))}else if(u){let m=L();m&&(m.__domDocument=n);let y=m&&m._scratchConfig&&!p.localFile?dK(e,n):null;gK(y)&&y.fingerprint===nF(e.designSystem,p)?(a=rE(y,m,p,uK(e.designSystem)),e.designSystemSource="prepared"):(a=no(s(),p),e.designSystemSource="processed"),a&&a!==m&&(a.__domDocument=n),c&&TA.add(n),EA=!0}else{let m=xf(t,s(),{cleanBase:!0});for(let y in i)m[y]=i[y];if(m.__domDocument=n,f){let y=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=y,m.varPrefix=y}ht(m);try{a=no(m,p)}finally{dt()}c&&TA.add(n),EA=!0}let g=a?.CONFIG||a,h=g?.font;if(h){ht(g);try{E$(h)}finally{dt()}}return[a,r]},iF=(t,e)=>{let n={};e.state&&Yo(n,e.state),t&&t.state&&Yo(n,t.state);let o=e.polyglot;if(o){let r=null;try{typeof localStorage<"u"&&(r=localStorage.getItem(o.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=is({polyglot:o,pathname:as(e.window),stored:r,stateLang:n.lang});(r||s!==ho(n.lang,o))&&s!==n.lang&&(n.lang=s),o.translations&&yK(e,o,n,s)}return n.isRootState=!0,ut(n)},yK=(t,e,n,o)=>{let r=new Set,s=new Set,i=(l,f)=>{if(!s.has(l)){if(!Xr(t,l,n)){r.add(l);return}n[l]=f,s.add(l),$n(t,l,f)}},a=e.translations[o];if(a&&typeof a=="object")for(let l in a)i(l,a[l]);let c=new Set(Le(e,!1));for(let l in e.translations)c.has(l)||i(l,e.translations[l]);r.size&&e.verbose!==!1&&t.verbose!==!1&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[polyglot] ${r.size} translation key${r.size===1?"":"s"} collide${r.size===1?"s":""} with a declared root-state key (${[...r].join(", ")}) \u2014 the declared value wins and the translation is NOT seeded into state. Rename the translation key, or read it with \`{{ key | polyglot }}\` instead of a bare \`{{ key }}\`.`))},aF=(t,e)=>{k(t.routes)&&k(e.pages)&&Ot(t.routes,e.pages);let n=t.routes||e.pages||{},o=[];for(let r in n){if(r.charCodeAt(0)===47)continue;let i="/"+(r==="index"?"":r);Object.prototype.hasOwnProperty.call(n,i)?o.push(`${r} -> ${i}`):n[i]=n[r],delete n[r]}return o.length&&e&&e.verbose!==!1&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] preparePages kept ${o.length} explicitly declared route${o.length===1?"":"s"} over a same-named page key (${o.join(", ")}). A bare page NAME never overwrites a declared '/route'. This usually means a shared library ships a page under its export name that collides with one of your routes \u2014 add it to that library's ignoreList if you did not intend the collision.`)),n},vA=t=>{Xl(t,t.sharedLibraries)};var LA=/*@__PURE__*/$({},{default:()=>OK,getActiveLang:()=>wi,getLanguages:()=>gd,getLocalStateLang:()=>bd,getPendingLang:()=>hd,initPolyglot:()=>Ly,loadTranslations:()=>Si,polyglotPlugin:()=>vc,setLang:()=>yd,trackLoadTranslations:()=>DA,translate:()=>md,upsertTranslation:()=>_d});var _K="smbls_t_",bK="smbls_tv_",CA=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return e?e.localStorage:null},Ac={get(t,e){try{return CA(t)?.getItem(e)??null}catch{return null}},set(t,e,n){try{CA(t)?.setItem(e,n)}catch(o){console.warn("[polyglot] localStorage unavailable:",o.message)}},remove(t,e){try{CA(t)?.removeItem(e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}}},cF=new WeakMap,lF=t=>{let e=cF.get(t);return e||(e={},cF.set(t,e)),e},fF=new WeakMap,hF=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,gF=t=>{let e=fF.get(t);return e||(e={seq:0,pending:yn(null),wake:null},fF.set(t,e)),e},uF=(t,e,n)=>new Promise(o=>{let r=null,s=()=>{r!==null&&clearTimeout(r),r=null,t.wake===s&&(t.wake=null),o()};t.wake=s,Promise.resolve(e).then(s,s),n>0&&(r=setTimeout(s,n))}),RA=(t,e)=>!!(t?.translations&&t.translations[e]),SK=3e3,wK=2147483647,xK=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,wK):0:SK},kK=/\p{L}/gu,TK=(...t)=>{let e=new Set,n=(o,r)=>{if(typeof o=="string"){let s=o.match(kK);if(s)for(let i=0;i<s.length;i++)e.add(s[i])}else if(o&&typeof o=="object"&&r<8)for(let s in o)n(o[s],r+1)};for(let o=0;o<t.length;o++)n(t[o],0);return Array.from(e).join("")},EK=(t,e)=>{let n=t?.fonts;if(!e||!n||!t.body||typeof n.check!="function"||typeof n.load!="function")return null;try{let r=(t.defaultView||globalThis).getComputedStyle(t.body).fontFamily;if(!r)return null;let s="1em "+r;return n.check(s,e)?null:Promise.resolve(n.load(s,e)).then(()=>{},()=>{})}catch{return null}};function wi(){let t=this?.context,e=t?.polyglot,n=this?.state?.root||t?.state?.root;return ho(n?.lang||t?.state?.lang,e)}function hd(){let t=this?.context,e=hF(t,this?.state?.root||t?.state?.root);return e?gF(e).pending.get():null}function gd(){let t=this?.context?.polyglot;return t?Le(t):[]}var Dy=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let n=e.split("."),o=t;for(let r=0;r<n.length;r++){if(o==null)return;o=o[n[r]]}return o},dF=(t,e,n)=>{let o=e.lastIndexOf(".");if(o===-1)return t[e+"_"+n];let r=Dy(t,e.substring(0,o));if(r!=null)return r[e.substring(o+1)+"_"+n]};function md(t,e){if(!t)return"";let n=this?.context,o=n?.polyglot,r=e||this.call("getActiveLang"),s=this?.state;if(s){let l=dF(s,t,r);if(l!==void 0)return l}if(o?.translations){let l=o.translations[r];if(l){let f=Dy(l,t);if(f!==void 0)return f}}let i=s?.root||n?.state?.root,a=i?.translations;if(a){let l=a[r];if(l){let f=Dy(l,t);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=dF(s,t,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=Dy(l,t);if(f!==void 0)return f}}return AK(o,i,r)&&typeof Ki=="function"&&Ki(),t}var AK=(t,e,n)=>!!t?.fetch&&!RA(e,n)&&!t._fetchFailed?.[n];async function Si(t,e){let n=this?.context,o=n?.polyglot,r=this?.state?.root||n?.state?.root;if(!o||!r)return;if(e&&e.inFlight===!0)return lF(r)[(o.storagePrefix||"smbls")+":"+t];let s=o.storagePrefix||_K,i=o.storageVersionPrefix||(o.storagePrefix?o.storagePrefix.replace(/_$/,"v_"):bK);if(o.translations&&o.translations[t]&&!o.fetch||!o.fetch||o._fetchFailed?.[t])return;if(!r.translations?.[t]){let f=Ac.get(n,s+t);if(f)try{let u=JSON.parse(f),d={translations:{...r.translations||{}}};d.translations[t]=u,r.update&&r.update(d)}catch(u){console.warn("[polyglot] Failed to apply language update:",u.message)}}let a=lF(r),c=(o.storagePrefix||"smbls")+":"+t;if(a[c])return a[c];let l=this;return a[c]=(async()=>{try{let f=o.fetch,u=parseInt(Ac.get(n,i+t),10)||0,d,p,g;if(I(f)){let m=await f(t,u,l);if(!m||m.changed===!1)return;d=m.translations||m.data||m,p=m.version||0,g=!0}else if(k(f)){let m=l.getDB||(()=>n.fetch),y=I(m)?await m.call(l):n.fetch;if(!y)return;let x=f.rpc||f.from||"get_translations_if_changed",T={p_lang:t,p_cached_version:u,...f.params||{}},v=await y.rpc({from:x,params:T});if(v.error)throw o._fetchFailed||(o._fetchFailed={}),o._fetchFailed[t]=!0,v.error;let _=v.data;if(!_||!_.changed)return;d=_.translations||{},p=_.version||0,g=!0}else return;if(!g||!d)return;Ac.set(n,s+t,JSON.stringify(d)),p&&Ac.set(n,i+t,String(p));let h={translations:{...r.translations||{}}};h.translations[t]=d,r.update&&r.update(h)}catch(f){if(o.verbose!==!1){let u=f?.message||f?.details||(typeof f=="object"?JSON.stringify(f):String(f));console.warn("[polyglot] Failed to load translations for",t,"-",u)}}finally{delete a[c]}})(),a[c]}var OA=new WeakMap,pF=Symbol.for("@symbo.ls/polyglot:trackedLoadTranslations");function DA(t){if(!I(t)||t[pF]||t===Si)return t;let e=function(n,o){let r=this?.context,s=this?.state?.root||r?.state?.root,a=(r?.polyglot?.storagePrefix||"smbls")+":"+n;if(o&&o.inFlight===!0){let l=s&&OA.get(s);return l&&l[a]?l[a]:Si.call(this,n,o)}let c=t.call(this,n,o);if(s&&c&&typeof c.then=="function"){let l=OA.get(s);l||OA.set(s,l={});let f=Promise.resolve(c);l[a]=f;let u=()=>{l[a]===f&&delete l[a]};f.then(u,u)}return c};return e[pF]=!0,e}var vK=(t,e,n)=>{let o=t.__ref;if(!o||o.contentManaged||n==null||typeof n=="object")return;let r=o.__textNode;if(!r||r.parentNode!==e)return;let s=String(n);r.nodeValue!==s&&(r.nodeValue=s)};async function yd(t,e){let n=this?.context,o=n?.polyglot,r=this?.state?.root||n?.state?.root,s=n?.document||globalThis.document;if(!r)return;e?.persist!==!1&&Ac.set(n,Gi(o),t);let i=gF(hF(n,r)),a=++i.seq;i.wake&&i.wake();let c=()=>i.seq===a;if(this.call("getActiveLang")===t){i.pending.set(null),s?.documentElement&&(s.documentElement.lang=t);return}try{if(o?.fetch){let f=this.call("loadTranslations",t);if(!RA(r,t)){i.pending.set(t);let u=null;if(await uF(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!RA(r,t)&&!o.translations?.[t])return}}let l=xK(o);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=EK(s,TK(o?.translations?.[t],r.translations?.[t]));if(f&&(i.pending.set(t),await uF(i,f,l),!c()))return}i.pending.set(null),CK(n,o,r,s,t)}finally{c()&&i.pending.set(null)}}function CK(t,e,n,o,r){t?.state&&(t.state.lang=r);let s=e?.translations?.[r],i={lang:r},a=c=>_l(t,c,n);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}n.update&&n.update(i);for(let c in i)c!=="lang"&&$n(t,c,i[c]);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c])){for(let f in l)n[c][f]=l[f];$n(t,c,n[c])}}if(o&&s){let c=o.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{vK(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}o?.documentElement&&(o.documentElement.lang=r)}async function _d(t,e,n){let o=this?.context,r=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=n),r?.translations?.[e]&&(r.translations[e][t]=n),r?.fetch&&k(r.fetch)){let i=this.getDB||(()=>o.fetch),a=I(i)?await i.call(this):o.fetch;if(!a)return;let c=r.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:n}});if(l?.error)throw l.error;return l.data}}async function Ly(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let o=Ac.get(t,Gi(e)),r=is({polyglot:e,pathname:as(t.window),stored:o,stateLang:n.lang||t?.state?.lang}),s=t?.document||globalThis.document;s?.documentElement&&(s.documentElement.lang=r),n.update&&n.lang!==r&&n.update({lang:r}),e.fetch&&!(e.translations&&e.translations[r])&&await this.call("loadTranslations",r)}function bd(t){try{let e=wi.call(this),n=this?.state;if(!n)return"";let o=t.lastIndexOf(".");if(o===-1)return n[t+e]??"";let r=t.substring(0,o).split("."),s=n;for(let i=0;i<r.length;i++){if(s==null)return"";s=s[r[i]]}return s==null?"":s[t.substring(o+1)+e]??""}catch{return""}}var vc={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Ly.call(t))}},OK=vc;var Sd={polyglot:md,getLocalStateLang:bd,getActiveLang:wi,getLang:wi,setLang:yd,getPendingLang:hd,getLanguages:gd,loadTranslations:Si,upsertTranslation:_d};var PA=/*@__PURE__*/$({},{SYSTEM_METRICS:()=>wd,capsizeHandler:()=>IA,capsizePlugin:()=>Py,computeCapsize:()=>mF,default:()=>RK,resolveFontSizePx:()=>yF,resolveMetrics:()=>_F});var wd={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},Iy=t=>parseFloat(t.toFixed(4)),mF=(t,e,n)=>{let{ascent:o,descent:r,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(r),l=o+c+s,f=n!==void 0?n:l/i*t,u=f/t,d=l/i,p=(o-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${Iy(t/16)}rem`,lineHeight:`${Iy(f)}px`,capHeightTrim:`${Iy(-p)}em`,baselineTrim:`${Iy(-g)}em`}},yF=(t,e)=>{if(typeof t=="number")return t;let n=e?.designSystem;if(!n)return null;let{typography:o}=n;if(o?.sequence){let s=String(t).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let r=parseFloat(t);return isNaN(r)?null:typeof t=="string"&&t.endsWith("rem")?r*(n.typography?.browserDefault||16):r},_F=(t,e)=>{let o=e?.designSystem?.font_family||{};if(t){let s=o[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(wd[i])return wd[i]}let r=o.default||Object.keys(o)[0];if(r){let s=o[r];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(wd[a])return wd[a]}}return null},IA=(t,e,n,o)=>{if(!t)return;let r=yF(e.fontSize,o);if(!r)return;let s=_F(e.fontFamily,o);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=mF(r,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Py={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},RK=Py;var DK="@symbo.ls/fetch:EARLY",LK=()=>new Promise(t=>setTimeout(t,0)),MA=t=>{let e=typeof globalThis<"u"?globalThis[Symbol.for(DK)]:null,n=e&&e.afterFirstView;return typeof n!="function"||e.afterFirstViewRan?null:(e.afterFirstViewRan=!0,Promise.resolve(t&&t.__firstNavigation).catch(()=>{}).then(LK).then(()=>{try{n(e.ctx||{})}catch(o){console.error("[smbls] fetch.early afterFirstView failed:",o)}}))};var $A=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),FA=t=>Ie(t)?t.library!==void 0?t.library:t.key??t.name:t,IK=(t,e)=>{let n=e?.sharedLibraries,o=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,r=0,s=i=>{let a=r++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(o&&o[a])return o[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=FA(i);if(!$A(a))return i;let c=s(a);return c?Ie(i)?{...i,library:c}:c:null}).filter(Boolean)},jA=new WeakMap,PK={lazy:!0,window:globalThis},bF=["components","pages","functions","methods","snippets"],MK=bF.filter(t=>t!=="methods"),BA=t=>{if(!t||typeof t!="object")return!1;let e=new WeakSet,n=[t];for(;n.length;){let o=n.pop();if(!o||typeof o!="object"||e.has(o))continue;e.add(o);let r;try{r=Object.keys(o)}catch{continue}for(let s of r){let i;try{i=o[s]}catch{continue}if(typeof i=="function")return!0;i&&typeof i=="object"&&n.push(i)}}return!1},BK=(t,e)=>{if(Kr(e)||Kr(t))return"boot-revived";if(BA(t))return"local";if(e&&typeof e=="object"){if(BA(e.app))return"local";for(let n of MK)if(BA(e[n]))return"local"}return"raw-json"},SF=(t,e)=>{let n=e?t[e]:t;if(!k(n))return;let o=he(n,{},PK);try{Object.assign(n,o)}catch(r){if(e)t[e]=o;else throw r}},NK=t=>{if(!k(t)||Kr(t))return t;for(let e of[...bF,"app"])SF(t,e);return Li(t)},$K=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let o=Ie(n)?n.library:n;k(o)&&!e.has(o)&&NK(o)}return t},UA=new WeakMap,NA=t=>{let e=jA.get(t);e&&(jA.delete(t),Z$(e))},wF=t=>t.notifications===!0||t.notifications!==!1&&!!t.editor&&t.editor.verbose===!0,xF=t=>t.sync!==!1&&hi(t)||wF(t),kF=t=>{let e={shorthand:null,analyze:null,inspect:null,fetch:null,sync:null,windows:null,dropdown:null,tooltip:null};for(let n of UN(t))e[n]=fe(n);return xF(t)&&(e.sync=fe("sync")),e},VA=async(t,e={})=>{let n=e.symbolsConfig,o=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,r=e.key=e.key||o||(E(t)?t:"smblsapp");(!e.define||e.define===yi)&&(e.define={...yi}),e.cssPropsRegistry=St,e.window=W$(e);let s=kF(e),i=BK(t,e);if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&e.sharedLibraries&&e.sharedLibraries.length)vA(e);else if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(x=>{let T=FA(x);return typeof T=="string"||$A(T)})){e.sharedLibraries=IK(e.sharedLibraries,e.symbolsConfig);let x=new Set(e.sharedLibraries.map(v=>FA(v)).filter(v=>k(v)&&!$A(v))),T=await Jl(e.sharedLibraries,{apiBaseUrl:Oy()});e.sharedLibraries=i==="raw-json"?T:$K(T,x)}y$(e.sharedLibraries),vA(e)}hi(e)&&xc(e,e.designSystem);let a=UA.get(e);a&&(UA.delete(e),rF(a)&&(e.preparedDesignSystem=await a));let[c,l]=sF(r,e);if(e.designSystem=c,e.registry=l,lf(e,{apiBaseUrl:Oy()}),e.cases||(e.cases={}),e.shorthand){let y=await(s.shorthand||fe("shorthand"));y&&y.shorthandPlugin.prepareContext(e)}let f=iF(t,e);if(e.state=f,Dl(f),e.pages=aF(t,e),e.components=G$(e),e.utils=K$(e),er[e.packageManager]){let y=X$(e);y&&y.deferred?(y.blocking&&await AA({...e,dependencies:y.blocking}),jA.set(e,y.deferred)):e.dependencies=await AA(e)}if(e.methods=q$(e),e.routerOptions=LB(t,e),e.defaultExtends=[om],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope=e.globalScope||{},e.plugins.some(y=>!y||typeof y!="object")){let y=e.plugins.filter(x=>!x||typeof x!="object");e.plugins=e.plugins.filter(x=>x&&typeof x=="object"),e.verbose!==!1&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] context.plugins carried ${y.length} non-plugin entr${y.length===1?"y":"ies"} (${y.map(x=>JSON.stringify(x)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`))}let u=e.globalScope;e.globalScope&&k(e.globalScope)&&(e.globalScope=qr(e.globalScope));let d=(y,x)=>{i==="raw-json"&&SF(y,x)};d(t),d(e,"components"),d(e,"pages"),d(e,"functions"),d(e,"methods"),d(e,"snippets"),d(e,"app"),ql(e,u),Yl(e);let p=y=>y&&typeof y.select=="function";if(e.fetch?.__resolved&&!p(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!p(e.db.__resolved)&&delete e.db.__resolved,e.polyglot&&!Ve(e,"polyglot")){e.plugins.push(vc);for(let y in Sd)typeof e.functions[y]!="function"&&(e.functions[y]=Sd[y])}if(e.polyglot&&e.functions&&typeof e.functions.loadTranslations=="function"&&(e.functions.loadTranslations=DA(e.functions.loadTranslations)),Ve(e,"helmet")||e.plugins.push(Ay),Ve(e,"inertOutside")||e.plugins.push(Qg),e.fetch){let y=await(s.fetch||fe("fetch"));if(y){Ve(e,"fetch")||e.plugins.push(y.fetchPlugin);let{fetchFunctions:x}=y;for(let T in x)typeof e.functions[T]!="function"&&(e.functions[T]=x[T])}}if(e.designSystem?.typography?.useCapsize!==!1&&!Ve(e,"capsize")&&(e.plugins.push(Py),e.cssPropsRegistry.useCapsize=IA),e.shorthand&&!Ve(e,"shorthand")){let y=await(s.shorthand||fe("shorthand"));y&&e.plugins.push(y.shorthandPlugin)}if(e.analyze&&!Ve(e,"analyze")){let y=await(s.analyze||fe("analyze"));if(y){let x=e.analyze===!0?{}:e.analyze;e.analyze=y.createAnalyzeState(x),e.plugins.push(y.analyzePlugin)}}let g=e.sync!==!1&&hi(e),h=xF(e)?await(s.sync||fe("sync")):null;if(h&&g&&!Ve(e,"sync")&&e.plugins.push(h.syncPlugin),e.inspect&&!Ve(e,"inspect")){let y=await(s.inspect||fe("inspect"));y&&e.plugins.push(y.inspectPlugin)}h&&wF(e)&&!Ve(e,"notifications")&&e.plugins.push(h.notificationsPlugin);let m=async y=>{if(e[y]===!1)return;let x=await(s[y]||fe(y));if(!x)return;let{components:T,functions:v}=x;for(let _ in T)k(e.components[_])||(e.components[_]=T[_]);for(let _ in v)typeof e.functions[_]!="function"&&(e.functions[_]=v[_])};return await m("windows"),await m("dropdown"),await m("tooltip"),e},xd=async(t,e)=>{k(e)||(e={});let n=vB(e);kF(e);let o=oF(e);if(o&&UA.set(e,o),n&&(n.lease=EB(e),await to(),!n.lease.live()))return gc(k(t)?t:{});io(t)?(e.parent=t,t={}):E(t)?(e.key=t,t={}):k(t)?t={...t}:t={};let r=e.window||(typeof window<"u"?window:null),s=I$(e,r);globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s&&Ht("prerender");let i=!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s?P$(e):null;if(await VA(t,e),e.useReset!==!1){let u=e.document||(typeof document<"u"?document:null);if(u){let d=u.head.querySelector("style[data-smbls]");d||(d=u.createElement("style"),d.setAttribute("data-smbls",""),u.head.appendChild(d));let p=d.sheet;if(p){try{p.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{p.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&k(e.app))for(let u in e.app)t[u]===void 0&&(t[u]=e.app[u]);t.extends=m$(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await Q$({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let u of e.plugins)if(typeof u.beforeCreate=="function")try{u.beforeCreate(t,e)}catch(d){console.error(`[smbls] plugin "${u.name||"?"}" beforeCreate error:`,d)}let a=e.document;if(!a||!a.createElement)return NA(e),t;let c=e.parent||a.body,l={verbose:e.verbose,context:e,...e.domqlOptions};if(!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s){let u=await j$(Wt,t,c,e,r,i,l,n);return ed(u)||(NA(e),MA(e)),u}let f=n?await OB(t,c,e,l,n):Wt(t,c,e.key,l);return f?(NA(e),MA(e),typeof window<"u"&&!e.document&&(window.__smblsApp=f),f):gc(t)};var FK=(t,e)=>{if(!k(e))return mt(t,{});let{state:n,...o}=e;return mt(t,o),n!==void 0&&(k(t.state)&&k(n)?Yo(t.state,n):t.state===void 0&&(t.state=n)),t},HA=(t,e)=>g$(FK(t===Tc?{}:t,e)),jK=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let o=t.themeStorageKey;if(n==="auto"&&o&&typeof localStorage<"u")try{let s=localStorage.getItem(o);s&&(n=s)}catch{}let r=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",r),t.globalTheme=n,t.themeRoot=e},UK=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},TF=t=>{let e=UK();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},zA=(t,e=Tc,n)=>{let o=HA(e,n);return TF(o),jK(o),xd(t,o).then(s=>{if(ed(s))return s.destroy=()=>gi(s),s;if(pE(s,o),s.destroy=()=>gi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=nd(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,o),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},VK=(t,e=Tc,n)=>{let o=zA(t,e,n),r=HA(e,n),s=r.key;return s&&r.editor&&r.editor.async&&fe("fetchOnCreate").then(i=>{i&&i.fetchAsync(o,s,{utils:td,...r})}),o},HK=async(t,e=Tc,n)=>{let o=HA(e,n);TF(o);let r=e.key;if(r&&o.editor){let i=await fe("fetchOnCreate");i&&await i.fetchSync(r,o)}let s=await xd(t,o);return ed(s)?(s.destroy=()=>gi(s),s):(pE(s,o),s.destroy=()=>gi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=nd(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},o.onCreate&&await o.onCreate(s,s.state,s.context,o),s)},zK=(t={},e=Tc,n)=>zA({deps:{isUndefined:Gt},...t},mt({domqlOptions:{onlyResolveExtends:!0}},e),n);var EF={"@symbo.ls/signal":Bc,"@symbo.ls/scratch":wx,"@symbo.ls/element":Jg,"@symbo.ls/css":ag,"@symbo.ls/utils":ra,"@symbo.ls/state":Rk,"@symbo.ls/router":cc,"@symbo.ls/polyglot":LA,"@symbo.ls/helmet":gA,"@symbo.ls/fetch":rs,"@symbo.ls/capsize":PA,"@symbo.ls/shorthand":XE,"@symbo.ls/analyze":ad,"@symbo.ls/inspect":ld,"@symbo.ls/channels":_A},AF=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),o=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let r in EF)o[r]||(o[r]=EF[r]);if(e)for(let r in e)o[r]||(o[r]=e[r]);return o},vF=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:null);if(!n||!e||typeof e!="object")return null;let o=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let r in e){let s=e[r];if(typeof s!="function"||Object.prototype.hasOwnProperty.call(o,r))continue;let i=a=>(Object.defineProperty(o,r,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(o,r,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return o},CF=["@symbo.ls/sdk"],OF=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!t||typeof t!="object")return null;let o=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let r in t){let s=t[r];!s||typeof s!="object"&&typeof s!="function"||o[r]||(o[r]=s)}return o};var KA=/*@__PURE__*/$({},{BUILD_DOMQL_SYSTEM_PROMPT:()=>VF,DEFAULT_MAX_TOKENS:()=>Uy,DEFAULT_MODEL:()=>Nr,DEFAULT_PROVIDER:()=>Fy,DEFAULT_TEMPERATURE:()=>jy,MODEL_TIER_ALIASES:()=>GA,PROVIDER_MODELS:()=>DF,SIMONE_BASE_URL:()=>kd,SIMONE_CHAT_PATH:()=>My,SIMONE_CODE_PATH:()=>By,SIMONE_CODE_SYMBOLS_PATH:()=>Ny,SIMONE_HEALTH_PATH:()=>$y,SIMONE_TOOLS_PATH:()=>RF,WORKSPACE_SYSTEM_PROMPT:()=>UF,buildMessages:()=>BF,chat:()=>Td,health:()=>MF,parseSimoneResponse:()=>FF,resolveModel:()=>HF,streamChat:()=>Td,streamCode:()=>IF,streamCodeSymbols:()=>PF,toLegacyEnvelope:()=>jF});var kd="https://symbols-service-production.up.railway.app",My="/api/chat",By="/api/code",Ny="/api/code-symbols",$y="/api/health",RF="/api/tools",Fy="openai-compatible",Nr="claude-sonnet-4-6",jy=.7,Uy=4096,DF={"openai-compatible":["claude-sonnet-4-6","claude-opus-4-6","gpt-4o","gpt-4o-mini","deepseek-chat"],anthropic:["claude-sonnet-4-6","claude-sonnet-4-5-20250929","claude-opus-4-1-20250805","claude-haiku-4-5-20251001"],openrouter:["google/gemini-3-pro-preview"],gemini:["gemini-3-pro-preview"]};function LF(t,e){return t?t.replace(/\/$/,"")+e:e}function WK(t){if(!t.startsWith("data: "))return null;let e=t.slice(6);if(e==="[DONE]")return{done:!0};try{return{chunk:JSON.parse(e)}}catch{return{raw:e}}}async function Td(t,e={},n){let{baseUrl:o=kd,path:r=My,provider:s=Fy,model:i=Nr,temperature:a=.7,maxTokens:c=4096,effort:l,apiKeys:f,signal:u,headers:d}=e;if(!Array.isArray(t)||t.length===0)throw new TypeError("simone: messages must be a non-empty array");let p={messages:t,provider:s,model:i,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(LF(o,r),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let v=g.statusText;try{let b=await g.text();try{let S=JSON.parse(b);v=S.error||S.detail||v}catch{v=b||v}}catch{}let _=new Error(`simone: HTTP ${g.status} \u2014 ${v}`);throw _.status=g.status,_}if(!g.body||typeof g.body.getReader!="function"){let v=await g.text();return n&&n(v),{text:v,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],x=[],T="";try{for(;;){let{done:v,value:_}=await h.read();if(v)break;T+=m.decode(_,{stream:!0});let b=T.indexOf(`
169
+ `);for(;b!==-1;){let S=T.slice(0,b).trim();if(T=T.slice(b+1),S){let w=WK(S);if(w?.done)return{text:y.join(""),errors:x};let A=w?.chunk;A?.delta&&(y.push(A.delta),n&&n(A.delta)),A?.error&&x.push(A.error)}b=T.indexOf(`
170
+ `)}}return{text:y.join(""),errors:x}}finally{h.cancel().catch(()=>{})}}function IF(t,e={},n){return Td(t,{...e,path:By},n)}function PF(t,e={},n){return Td(t,{...e,path:Ny},n)}async function MF(t={}){let{baseUrl:e=kd,signal:n,headers:o}=t,r=await fetch(LF(e,$y),{method:"GET",headers:o,signal:n});if(!r.ok)throw new Error(`simone health: HTTP ${r.status}`);return r.json()}function BF({system:t,history:e=[],user:n,context:o}){let r=[];t&&r.push({role:"system",content:t});for(let s of e)!s||!s.role||typeof s.content!="string"||!s.content||r.push({role:s.role,content:s.content});if(n){let s=n;if(o!=null){let i=typeof o=="string"?o:JSON.stringify(o,null,2);s=`${s}
171
171
 
172
172
  ---
173
173
  Context:
174
174
  \`\`\`json
175
175
  ${i}
176
- \`\`\``}r.push({role:"user",content:s})}return r}var vF=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,L7=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function I7(t){let e=[];for(let n of t.matchAll(vF))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function P7(t){return t.replace(vF,"").trim()}function BA(t){if(!t||!/[{[]/.test(t))return null;try{return JSON.parse(t)}catch{}try{return JSON.parse(t.replace(/,\s*([}\]])/g,"$1"))}catch{}return null}function AF(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&L7.has(t.type)}function CF(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=I7(e),o=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),r=n.filter(i=>i.lang==="json"),s=P7(e);for(let i of r){let a=BA(i.code);if(AF(a))return{kind:"asset",text:s||a.description||"",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||""}`.trim()}}if(o.length>0){let i=o[0].code,a=BA("["+i+"]");return Array.isArray(a)&&a.length>1?{kind:"multi",text:s,assets:a,code:i,message:s||`Generated ${a.length} items`}:{kind:"component",text:s,code:i,message:s||"Generated a component"}}if(e.startsWith("{")){let i=BA(e);if(AF(i))return{kind:"asset",text:i.description||"",asset:i,message:i.description||`Generated ${i.type}: ${i.title||i.key||""}`.trim()}}return{kind:"text",text:e,message:e}}function OF(t){if(!t)return{code_response:{type:"error",content:"Empty response from assistant"}};switch(t.kind){case"asset":return{code_response:{type:"json_response",data:t.asset}};case"multi":return{code_response:{type:"symbols_component_code",component_code:t.code}};case"component":return{code_response:{type:"symbols_component_code",component_code:t.code,analysis_text:t.text}};default:return{code_response:{type:"plain_text_response",content:t.text||t.message||""}}}}var RF=["You are Simone, the Symbols.app assistant.","You help users build DOMQL v3 components, pages, and design-system entries.",'When the user asks for a component or page, return a single ```json fenced block whose body is one asset object with shape { type, key, title, description, value }. type is one of "component", "page", "function", "state", "color", "font", "icon", "theme".',"For multiple assets, return one ```js fenced block with comma-separated asset objects.","For general questions, reply with prose only."].join(" "),DF=["You are a DOMQL v3.14 code generator for the Symbols workspace.","Output EXECUTABLE DOMQL v3.14 for the requested page(s)/component(s) \u2014 never a description, never a plan, never an explanation.","Author data-first object schemas: child elements are UPPERCASE keys; styling lives in flat element props (NO attr/props/on wrappers); use design-system tokens (color/typography/spacing keys), never raw px/rem/hex/rgba; `extends` and `childExtends` are quoted strings; event handlers are flat (onClick, onInit) \u2014 never on:{} or props:{} wrappers.","OUTPUT FORMAT \u2014 pick ONE:","- SINGLE page/component: emit exactly one ```js fenced code block whose body is a single DOMQL object literal (an expression \u2014 start with `{`, no `export`, no variable assignment, no surrounding prose).",'- MULTIPLE pages/components: emit exactly one ```json fenced code block whose body is an object of the shape { "pages": { "PageKey": "<DOMQL object-literal source string>" }, "components": { "CompKey": "<DOMQL object-literal source string>" } }. Include only the sections you produce; each value is the DOMQL source for that key.',"Keys are PascalCase. Default to a single page unless the request clearly needs several distinct pages/components.","Emit ONLY the single fenced block. No text before or after it."].join(`
177
- `),NA={Starter:Mr,Free:Mr,Pro:"claude-opus-4-6"};function LF(t){return t?NA[t]||t:Mr}Em(eu);gF(void 0,{smbls:FA,"@symbo-ls/simone-server":$A});mF(void 0,{"@symbo.ls/windows":()=>({...cE,...iE}),"@symbo.ls/dropdown":()=>({...gE,...yE})});var IF=Symbol.for("smbls.serverUtils");globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__&&typeof globalThis[IF]!="function"&&(globalThis[IF]=()=>import("./smbls.server-utils.esm.js"));export{Gx as ANIMATION_PROPS,a3 as ARIA_ROLES,mr as ATTR_TRANSFORMS,kn as BARE_SEQUENCE_TOKEN_RE,Kx as BLOCK_PROPS,MR as BREAKPOINTS_CONTAINER_NAME,ek as BREAKPOINT_PROPS,Zl as BRENDER_REGISTRY_BLOCK,Ql as BRENDER_REGISTRY_TREE_BLOCK,Jp as BRENDER_STAMP_META,Ge as CDN_PROVIDERS,ms as COMPOUND_CSS_KEYWORDS,Ss as CONFIG,ne as CONFIG_MERGE_EXL,Je as CSS_LONGHAND_SHORTHANDS,oa as CSS_NAMED_COLOR_HEX,po as CSS_NATIVE_COLOR_REGEX,St as CSS_PROPS_REGISTRY,kt as CSS_SHORTHAND_LONGHANDS,Ti as CSS_UNITS,Ys as DEFAULT_CONFIG,Mt as DEFAULT_CSS_PROPERTIES_LIST,Ra as DELEGATED_EVENTS,nf as DESIGN_SYSTEM_BLOCK,ef as DESIGN_SYSTEM_DEFERRED,tf as DESIGN_SYSTEM_LINK,aA as DESIGN_SYSTEM_OPTIONS,A_ as DOMQL_EVENTS,jo as DOMQ_PROPERTIES,T1 as DOM_EVENTS,vi as ELEMENT_METHOD_OVERRIDE_POINTS,q_ as ENV,De as FACTORY,Qx as FLEX_PROPS,qx as FONT_PROPS,Jx as GRID_PROPS,yF as HOST_REGISTERED_PACKAGES,Oo as HTML_ATTRIBUTES,Ii as HTML_TAGS,Qp as LIBRARY_PACKAGES,cs as LIBRARY_SCOPES_KEY,Vn as LIFECYCLE_EVENTS,dx as LIVE_KEYS,Vo as METHODS,Hc as METHODS_EXL,Yx as MISC_PROPS,og as MIXINS,hn as NODE_ENV,Tl as OPTIONS,Qo as PACKAGE_MANAGER_TO_CDN,Vc as PARSED_DOMQ_PROPERTIES,Vp as POLYGLOT_LANG_STORAGE_KEY,Xx as POSITION_PROPS,xa as PREPARED_FORMAT,pA as PRERENDER_REGISTRY_FORMATS,Uo as PROPS_METHODS,Ht as REGISTRY,qA as RESERVED_STORE_METHODS,Yc as REVIVED_MARK,xy as ROUTER_OPTIONS,xi as SIGNAL_ENGINE_KEY,Si as SIGNAL_INSTANCES_KEY,Oh as STANDARD_SCHEME_QUERIES,yp as STATE_DATA_MERGE_EXL,T_ as STATE_PROPERTIES,KA as STORE_METHOD_NAMES,Na as SVG_TAGS,Zx as THEME_PROPS,qf as TILING_POSITION_KEYWORDS,Kf as TILING_SIZE_KEYWORDS,lu as TIMING_PROPS,Bc as TYPES,Up as UNIVERSAL_RESERVED_KEYS,Vh as VALUE_TRANSFORMERS,fR as VERSION,US as __resetBuiltinMethodWarnings,Qy as __resetSignalEngine,Zy as __resetSignalInstances,cx as __resetSkinWarnings,YA as __resetStateShadowWarnings,JC as activateConfig,up as addCaching,fp as addContext,su as addDelegatedEvent,mb as addExtend,In as addExtends,f_ as addItemAfterEveryElement,Ua as addMethods,Fc as addProtoToArray,ap as addRef,XT as adoptPrepared,ua as aliasCaseVariants,us as alternateLinkKey,Lw as animation,Hf as appendSVGSprite,Ds as appendSvgIconsSprite,Ak as applyAttrTransforms,QT as applyCSS,Ib as applyDependentState,Vf as applyDocument,Pp as applyEvent,Mp as applyEventUpdate,Pa as applyExtends,Ph as applyHeadings,xg as applyInitialState,sr as applyMediaSequenceVars,ll as applyProps,zf as applyReset,Ef as applySequenceGlobalVars,bo as applySequenceVars,Wf as applySkins,Rf as applySpacingSequence,Se as applyStateMethods,Zf as applyThemeRoot,Uf as applyTimingSequence,ik as applyTrueProps,$f as applyTypographySequence,o_ as arrayContainsOtherArray,d_ as arraysEqual,hs as arrayzeValue,Rx as assertEmitIntegrity,cr as atSchemes,Hl as bareLibraryKey,Rd as batch,Wl as bindLibraryGlobalScopes,Rw as breakpoints,gg as breakpointsContainerName,YS as brenderStampMeta,sf as buildImgSrcset,Ls as buildSkinVarStyles,af as buildSourcesAndImg,Am as buildThemeVarStyles,lS as cache,hr as cacheNode,SS as call,gu as callStateMethod,Ro as camelToAttr,C1 as camelToLowerAttr,xS as captureSnapshot,Hh as changeGlobalTheme,pw as changeLightness,sn as checkAttributeByTagName,Ek as checkEventFunctions,Ob as checkForStateTypes,Of as checkIfBoxSize,mp as checkIfInherits,g_ as checkIfStringIsInArray,Nw as class,I_ as clone,el as cloneAndMergeArrayExtend,eb as cloneFunction,Pi as collectExtendsList,kw as color,Cf as colorPairSchemes,Ke as colorStringToRgbaArray,lc as components,_s as compositeOverBackdrop,sa as compoundLayers,pb as concatAddExtends,tk as containerBreakpointQuery,aa as contrastRatio,vf as convertSvgToSymbol,ew as copyJavaScriptToClipboard,tw as copyStringToClipboard,Ld as countUntrackedReads,MA as create,C7 as createAsync,ip as createBasedOnType,WA as createComputed,_f as createConfig,r$ as createDefine,_d as createDomqlElement,W as createEffect,Cb as createElement,Yd as createElementExtends,ol as createExtends,Mi as createExtendsFromKeys,Jd as createExtendsStack,Ba as createHTMLNode,nb as createIfConditionFlag,Rb as createInheritedState,Jc as createKey,U_ as createNestedObject,Lb as createNestedObjectByKeyPath,Hd as createObjectWithoutPrototype,cp as createParent,lp as createPath,Eh as createPristineConfig,fl as createProps,rp as createPropsStack,rh as createPrunedLibraryIconLoader,vb as createRoot,Mb as createScope,Id as createScopeStore,pn as createSignal,R7 as createSkeleton,Qc as createSnapshotId,bk as createState,eo as createStore,O7 as createSync,Me as css,nu as cssCamelName,kh as cssMediaVars,_e as cssPropName,ka as cssShorthandDepth,Ta as cssShorthandStatesLonghand,Qf as cssShorthandStatesThemeLonghand,xh as cssVars,ss as currentPathname,k_ as customDecodeURIComponent,x_ as customEncodeURIComponent,c_ as cutArrayAfterValue,a_ as cutArrayBeforeValue,tl as debounce,J_ as debounceOnContext,Jl as decodeBrenderRegistry,w_ as decodeNewlines,ut as deepClone,F_ as deepContains,Yi as deepDefaults,de as deepDestringifyFunctions,qd as deepExtend,mt as deepMerge,Pn as deepMergeExtends,Gc as deepStringifyFunctions,wc as defaultDefine,rr as defineResolvedThemeSignal,_S as defineSetter,or as defineThemeSignal,qS as designSystemBlock,KS as designSystemLink,Gr as destringifyGlobalScope,pi as destroy,CS as detectHeightOnInit,W_ as detectInfiniteLoop,zn as detectTag,Dw as devices,rn as dispose,vm as effectiveGlobalTheme,S_ as encodeNewlines,os as error,j as escapeHtml,m_ as escapeRegExp,Zo as evaluateText,K_ as excludeKeysFromObject,bt as exec,m3 as executeAttr,FV as exetuteClassPerComponent,Gl as exposeBagGlobalScopes,hb as extendCachedRegistry,rl as extendStackRegistry,il as extractArrayExtend,vk as extractConditionalAttrs,er as faviconLinkKey,Qi as fetchLibraryData,OS as fibonacciNumberByIndex,th as fileEntryUrl,p_ as filterArrays,h_ as filterArraysFast,g3 as filterAttributesByTagName,tp as finalizeExtends,eh as findClosestNumber,JS as findClosestNumberInFactory,vh as findHeadingLetter,Tf as findHeadings,gp as findInheritedState,__ as findKeyPosition,Bi as flattenExtend,yw as font,Sw as fontFace,_w as fontFamily,bw as fontFamilyTypes,vs as forcedScheme,vS as formatDate,Wd as generateHash,Ji as generateHeadArrayTags,Zc as generateKey,ZS as generateMetaTags,he as generateSequence,Gw as generateSequencePosition,Af as generateSprite,xf as generateSubSequence,hS as get,L as getActiveConfig,Un as getActiveDocument,_i as getActiveLang,Kp as getCDNDirUrl,_n as getCDNUrl,Mx as getCacheSize,_b as getCapitalCaseKeys,Ki as getCdnProviderFromConfig,hp as getChildStateInKey,yS as getChildren,ft as getColor,lh as getColorShade,Il as getContext,ab as getCookie,$l as getDB,go as getDefaultOrFirstKey,eg as getEmitStats,aw as getEmotionStylesheet,yb as getExtendsInElement,nl as getExtendsStack,Kd as getExtendsStackRegistry,_o as getFnPrefixAndValue,gw as getFontFace,bs as getFontFaceEach,_h as getFontFaceEachString,pf as getFontFaceString,Nf as getFontFamily,mh as getFontFormat,Ff as getFontSizeByKey,r_ as getFrequencyInArray,Oe as getFunctionSource,sl as getHashedExtend,AS as getImportMapScript,z_ as getInObjectByPath,ud as getLanguages,gd as getLocalStateLang,lb as getLocalStorage,If as getMediaBorder,Ut as getMediaColor,Qe as getMediaTheme,Q_ as getNev,Ce as getObserver,QS as getPageMetadata,pp as getParentStateInKey,vl as getPath,fd as getPendingLang,Fl as getQuery,mS as getRef,QC as getResolvedThemeSignal,xn as getRgbTone,Rl as getRoot,Ll as getRootContext,Dl as getRootData,Ol as getRootState,dp as getRootStateInKey,Lh as getSafeInk,Qw as getSafeInkInfo,ws as getSequenceValue,kf as getSequenceValueBySymbols,jn as getSequenceValuePropertyPair,Lf as getShadow,jf as getShapeByKey,GA as getSignals,da as getSizeValue,Le as getSpacingBasedOnRatio,$t as getSpacingByKey,bb as getSpreadChildren,wf as getSubratio,Sf as getSubratioDifference,se as getSystemGlobalTheme,nx as getTheme,ZC as getThemeSignal,ge as getTimingByKey,Ie as getTimingFunction,t_ as global,Tw as gradient,Bw as grid,te as hasFunction,Di as hasHandlerPlugin,B_ as hasOwnProperty,Sn as hashContent,lw as hexToRgb,sh as hexToRgbArray,uw as hexToRgba,ch as hslToRgb,vw as icons,xs as inForcedColors,Zd as inheritChildExtends,Xd as inheritChildPropsExtends,ul as inheritParentProps,Qd as inheritRecursiveChildExtends,to as init,Ay as initPolyglot,Eb as initProps,At as injectGlobal,XS as insertAfterImportMap,rf as installPrunedLibraryIconLoader,ue as is,P as isArray,Md as isBoolean,E_ as isBuiltinElementMethod,Pt as isCSSVar,Sb as isContextComponent,G_ as isCyclic,le as isDOMNode,Nd as isDate,Nt as isDefined,zo as isDevelopment,no as isDomDocument,Ud as isEmpty,N_ as isEmptyObject,Vs as isEnumeratedTrueFalseAttr,Vd as isEqualDeep,zr as isFailedRevival,ks as isForcedColorsQuery,I as isFunction,ca as isGoogleFontsUrl,oo as isHostObject,Mc as isHtmlElement,uh as isInertCompoundValue,Ts as isIntendedSystemColorWord,P_ as isLazyFunction,Z_ as isLocal,J as isLoudDevRuntime,is as isMalformedDependency,wS as isMethod,sb as isMobile,ys as isNativeColorToken,ro as isNode,n_ as isNot,so as isNotProduction,Bd as isNull,fe as isNumber,k as isObject,U as isObjectLike,RS as isPhoto,ar as isPlainColor,gl as isPolyglotRetranslatableKey,qr as isPolyglotWritableKey,Ho as isProduction,Ur as isProtectedElementMethod,Pc as isRawUnitValue,qe as isResolvedColor,Wr as isRevived,$r as isScalingUnit,X_ as isStaging,Db as isState,xt as isStore,E as isString,Ri as isStringFunction,qc as isStringTag,Co as isSvgTag,zd as isTest,Y_ as isTesting,wk as isTracking,Wt as isUndefined,kS as isUniversallyReservedKey,Jo as isUnresolvableDependency,as as isValidDependencyMap,ub as isValidHtmlTag,Ma as isValidTag,aB as isWasmLoaded,Re as isWrappedLibrary,Jy as isWritableFamilyBucket,Ei as joinArrays,ia as joinCompoundLayers,gb as jointStacks,Qr as jsonForScript,Oa as keyframes,Fp as keys,iw as libraryIconPruneReplacer,nh as libraryIdentifier,Xi as libraryPackageSpecs,Zp as librarySpecsFor,ph as linearChannelToSrgb,Cs as literalPairCompound,wo as literalSchemeMap,PS as loadCssFile,MS as loadJavascript,DS as loadJavascriptFile,IS as loadJavascriptFileEmbedSync,LS as loadJavascriptFileSync,BS as loadRemoteCSS,qi as loadRemoteScript,yi as loadTranslations,iB as loadWasm,bS as log,rb as logGroupIf,ob as logIf,dS as lookdown,pS as lookdownAll,uS as lookup,Fr as lowercaseFirstLetter,$_ as makeObjectWithoutPrototype,L_ as map,al as mapStringsWithContextComponents,Bn as markPolyglotSeeded,Oi as markRevived,zi as markTextNotReady,Mn as matchesComponentNaming,ww as media,tb as memoize,Ot as merge,Kl as mergeSharedLibraries,ql as mergeSharedLibraryDesignSystems,Go as mergeStateData,cw as mixTwoColors,dw as mixTwoRgb,fh as mixTwoRgba,Ml as nextElement,zl as normalizeIgnoreList,ls as normalizeLibraryKey,Xe as numToLetterMap,Kc as objectToString,cl as objectizeStringProperty,hh as oklabToLinearSrgb,ff as oklabToOklch,uf as oklchToGamutSafeSrgb,gh as oklchToOklab,ra as opacify,Xc as overwrite,ee as overwriteDeep,Kr as overwriteShallow,Pb as overwriteState,Fo as parkHostObject,jp as parse,Yt as parseColorToken,El as parseDeep,oh as payloadHasComputedIconName,Wp as pickStartLang,np as pickupElementFromProps,ep as pickupPropsFromElement,sw as planLibraryIconPrune,Hp as polyglotAddressLang,fo as polyglotFallbackLang,md as polyglotFunctions,Hi as polyglotLangStorageKey,yn as polyglotLanguages,Tc as polyglotPlugin,Ko as polyglotSeededKeys,rs as polyglotStartLang,zp as polyglotStartRule,TS as polyglotStartupScript,dt as popConfig,hg as popStaticCssPass,IA as prepareContext,Bl as previousElement,Ui as promoteActiveRootState,kb as propExists,op as propertizeElement,xb as propertizeUpdate,ht as pushConfig,pg as pushStaticCssPass,Es as quietColorProbe,yo as quietSequenceProbe,Jr as readBrenderStamp,$n as readJsonDataBlock,ou as recordRules,Va as refreshContextProto,La as registerEvent,_F as registerHostPackages,wi as registerSignalInstance,ZT as reinit,gs as relativeLuminance,ja as remove,nw as removeChars,cb as removeCookie,iu as removeDelegatedEvent,pl as removeDuplicateProps,Ai as removeDuplicatesInArray,s_ as removeFromArray,j_ as removeFromObject,V_ as removeNestedKeyByPath,$c as removeValueFromArray,l_ as removeValueFromArrayAll,u_ as reorderArrayByValues,zc as repairLegacyArrowScopePreamble,Gt as replaceLiteralsWithObjectFields,b_ as replaceOctalEscapeSequences,ru as replayRules,Ox as resetEmitStats,pe as resolveAsset,oe as resolveBorderValue,As as resolveColorRgb,fr as resolveColorsInGradient,ho as resolveCompoundWords,ki as resolveConfigDocument,HR as resolveDesignSystemClass,ps as resolveFileReferences,Tk as resolveFileSource,Ye as resolveFileUrl,PR as resolveGridTracks,Li as resolveHandler,gr as resolvePropValue,ha as resolveShadowNonColorWord,Os as resolveShadowValue,Yl as resolveSharedLibraries,ck as resolveStyleBlockTokens,hw as returnSubThemeOrDefault,sp as returnValueAsText,Gh as reviveConfig,ih as rgbArrayToHex,ah as rgbToHSL,fw as rgbToHex,Wo as runPluginHook,Ih as runThroughMedia,Dh as schemeGuardSelector,Rh as schemeMediaQuery,$d as scopeElementParam,R_ as scopeReceiverExpression,fa as scratchDefaultConfig,_a as scratchSystem,ir as scratchUtils,e_ as self,Cw as semanticIcons,mo as sequence,Kn as serializeAttrValue,Wh as serializeConfig,Ps as set,Th as setActiveConfig,Cx as setActiveDocument,Cl as setActiveRootState,lr as setAdaptiveSchemeVar,UW as setClass,jV as setClassname,So as setColor,ib as setCookie,Em as setCssEngineHook,df as setCustomFont,nr as setCustomFontMedia,Xf as setEach,Bf as setFont,ma as setFontFamily,la as setFontImport,pa as setGradient,Gd as setHashedExtend,yh as setInCustomFontMedia,H_ as setInObjectByPath,pd as setLang,fb as setLocalStorage,ga as setMediaTheme,$p as setNodeStyles,Lc as setObserver,gS as setProps,dl as setPropsPrototype,ya as setSVG,bf as setScalingVar,ur as setShadow,Ah as setSubScalingVar,Rs as setSvgIcon,Pf as setTheme,ux as setValue,Kw as setVariables,eu as setWasmEngine,Dd as settled,Aw as shadow,jw as shape,jS as sharedLibrary,fs as sharedLibraryFiles,Fw as sizes,Uw as skins,xw as spacing,cf as splitCompoundWords,jl as splitPackageSpecifier,Ao as splitSelectorList,Df as splitSpacedValue,wn as splitTopLevelCommas,lt as splitTopLevelSpaces,Uh as splitTransition,Al as spotByPath,ta as srcsetFor,dh as srgbChannelToLinear,lf as srgbToOklab,Uc as stringIncludesAny,M_ as stringToObject,Ul as stripVersionRangePrefix,Iw as svg,bh as svgData,Pw as svg_data,i_ as swapItemsInArray,hl as syncProps,Mw as templates,Ew as theme,ds as themeColorKey,Ow as timing,yf as toCamel,uo as toCamelCase,of as toDashCase,rw as toDescriptionCase,na as toLinearChannel,He as toPriorityOrder,ow as toTitleCase,ES as toggleFullscreen,$h as transformBackgroundImage,Mh as transformBorder,xo as transformBorderRadius,Gf as transformBoxShadow,WR as transformClassname,Yf as transformDuration,jh as transformGridTemplate,Nh as transformShadow,Lt as transformSize,F as transformSizeRatio,Bh as transformTextStroke,Is as transformTilingValue,fx as transformTransition,ak as transformersByPrefix,Fh as transfromGap,dd as translate,lo as triggerEventOn,cS as triggerEventOnUpdate,y_ as trimStringFromSymbols,hf as typography,mw as unit,Nc as unstackArrayOfObjects,Nr as untrack,Fa as update,Ab as updateProps,jW as updateVars,hd as upsertTranslation,Xt as useCssInProps,Sk as useHostState,VR as usePropsAsCSS,zR as useSelectorsAsCSS,Nl as variables,$w as vars,Vi as verbose,Vw as viewTransition,Pl as warn,Zi as warnLibraryAliasCollision,Pd as warnStateKeyShadowsMethod,R as window,Eo as wrapHoverRule};
176
+ \`\`\``}r.push({role:"user",content:s})}return r}var $F=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,GK=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function KK(t){let e=[];for(let n of t.matchAll($F))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function qK(t){return t.replace($F,"").trim()}function WA(t){if(!t||!/[{[]/.test(t))return null;try{return JSON.parse(t)}catch{}try{return JSON.parse(t.replace(/,\s*([}\]])/g,"$1"))}catch{}return null}function NF(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&GK.has(t.type)}function FF(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=KK(e),o=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),r=n.filter(i=>i.lang==="json"),s=qK(e);for(let i of r){let a=WA(i.code);if(NF(a))return{kind:"asset",text:s||a.description||"",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||""}`.trim()}}if(o.length>0){let i=o[0].code,a=WA("["+i+"]");return Array.isArray(a)&&a.length>1?{kind:"multi",text:s,assets:a,code:i,message:s||`Generated ${a.length} items`}:{kind:"component",text:s,code:i,message:s||"Generated a component"}}if(e.startsWith("{")){let i=WA(e);if(NF(i))return{kind:"asset",text:i.description||"",asset:i,message:i.description||`Generated ${i.type}: ${i.title||i.key||""}`.trim()}}return{kind:"text",text:e,message:e}}function jF(t){if(!t)return{code_response:{type:"error",content:"Empty response from assistant"}};switch(t.kind){case"asset":return{code_response:{type:"json_response",data:t.asset}};case"multi":return{code_response:{type:"symbols_component_code",component_code:t.code}};case"component":return{code_response:{type:"symbols_component_code",component_code:t.code,analysis_text:t.text}};default:return{code_response:{type:"plain_text_response",content:t.text||t.message||""}}}}var UF=["You are Simone, the Symbols.app assistant.","You help users build DOMQL v3 components, pages, and design-system entries.",'When the user asks for a component or page, return a single ```json fenced block whose body is one asset object with shape { type, key, title, description, value }. type is one of "component", "page", "function", "state", "color", "font", "icon", "theme".',"For multiple assets, return one ```js fenced block with comma-separated asset objects.","For general questions, reply with prose only."].join(" "),VF=["You are a DOMQL v3.14 code generator for the Symbols workspace.","Output EXECUTABLE DOMQL v3.14 for the requested page(s)/component(s) \u2014 never a description, never a plan, never an explanation.","Author data-first object schemas: child elements are UPPERCASE keys; styling lives in flat element props (NO attr/props/on wrappers); use design-system tokens (color/typography/spacing keys), never raw px/rem/hex/rgba; `extends` and `childExtends` are quoted strings; event handlers are flat (onClick, onInit) \u2014 never on:{} or props:{} wrappers.","OUTPUT FORMAT \u2014 pick ONE:","- SINGLE page/component: emit exactly one ```js fenced code block whose body is a single DOMQL object literal (an expression \u2014 start with `{`, no `export`, no variable assignment, no surrounding prose).",'- MULTIPLE pages/components: emit exactly one ```json fenced code block whose body is an object of the shape { "pages": { "PageKey": "<DOMQL object-literal source string>" }, "components": { "CompKey": "<DOMQL object-literal source string>" } }. Include only the sections you produce; each value is the DOMQL source for that key.',"Keys are PascalCase. Default to a single page unless the request clearly needs several distinct pages/components.","Emit ONLY the single fenced block. No text before or after it."].join(`
177
+ `),GA={Starter:Nr,Free:Nr,Pro:"claude-opus-4-6"};function HF(t){return t?GA[t]||t:Nr}Rm(su);AF(void 0,{smbls:qA,"@symbo-ls/simone-server":KA});vF(void 0,{"@symbo.ls/windows":()=>({...mE,...hE}),"@symbo.ls/dropdown":()=>({...kE,...EE})});var zF=Symbol.for("smbls.serverUtils");globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__&&typeof globalThis[zF]!="function"&&(globalThis[zF]=()=>import("./smbls.server-utils.esm.js"));export{tk as ANIMATION_PROPS,w3 as ARIA_ROLES,br as ATTR_TRANSFORMS,En as BARE_SEQUENCE_TOKEN_RE,ek as BLOCK_PROPS,WR as BREAKPOINTS_CONTAINER_NAME,lk as BREAKPOINT_PROPS,ef as BRENDER_REGISTRY_BLOCK,nf as BRENDER_REGISTRY_TREE_BLOCK,rh as BRENDER_STAMP_META,Ye as CDN_PROVIDERS,_s as COMPOUND_CSS_KEYWORDS,xs as CONFIG,re as CONFIG_MERGE_EXL,on as CSS_LONGHAND_SHORTHANDS,ia as CSS_NAMED_COLOR_HEX,mo as CSS_NATIVE_COLOR_REGEX,St as CSS_PROPS_REGISTRY,kt as CSS_SHORTHAND_LONGHANDS,vi as CSS_UNITS,Zs as DEFAULT_CONFIG,Mt as DEFAULT_CSS_PROPERTIES_LIST,Ia as DELEGATED_EVENTS,af as DESIGN_SYSTEM_BLOCK,sf as DESIGN_SYSTEM_DEFERRED,rf as DESIGN_SYSTEM_LINK,mA as DESIGN_SYSTEM_OPTIONS,L_ as DOMQL_EVENTS,Ho as DOMQ_PROPERTIES,P1 as DOM_EVENTS,Ri as ELEMENT_METHOD_OVERRIDE_POINTS,tb as ENV,Pe as FACTORY,ik as FLEX_PROPS,nk as FONT_PROPS,ak as GRID_PROPS,CF as HOST_REGISTERED_PACKAGES,Lo as HTML_ATTRIBUTES,Bi as HTML_TAGS,oh as LIBRARY_PACKAGES,fs as LIBRARY_SCOPES_KEY,zn as LIFECYCLE_EVENTS,Sx as LIVE_KEYS,Wo as METHODS,Gc as METHODS_EXL,ok as MISC_PROPS,cg as MIXINS,_n as NODE_ENV,vl as OPTIONS,er as PACKAGE_MANAGER_TO_CDN,Wc as PARSED_DOMQ_PROPERTIES,Gp as POLYGLOT_LANG_STORAGE_KEY,rk as POSITION_PROPS,Ea as PREPARED_FORMAT,xA as PRERENDER_REGISTRY_FORMATS,zo as PROPS_METHODS,ao as PROTOTYPE_KEYS,zt as REGISTRY,ov as RESERVED_STORE_METHODS,Qc as REVIVED_MARK,Cy as ROUTER_OPTIONS,Ei as SIGNAL_ENGINE_KEY,ki as SIGNAL_INSTANCES_KEY,Ph as STANDARD_SCHEME_QUERIES,wp as STATE_DATA_MERGE_EXL,R_ as STATE_PROPERTIES,nv as STORE_METHOD_NAMES,ja as SVG_TAGS,sk as THEME_PROPS,Qf as TILING_POSITION_KEYWORDS,Zf as TILING_SIZE_KEYWORDS,pu as TIMING_PROPS,Fc as TYPES,Wp as UNIVERSAL_RESERVED_KEYS,Kh as VALUE_TRANSFORMERS,SR as VERSION,qS as __resetBuiltinMethodWarnings,r_ as __resetSignalEngine,o_ as __resetSignalInstances,mx as __resetSkinWarnings,rv as __resetStateShadowWarnings,lO as activateConfig,gp as addCaching,hp as addContext,lu as addDelegatedEvent,xb as addExtend,Mn as addExtends,m_ as addItemAfterEveryElement,za as addMethods,Vc as addProtoToArray,up as addRef,rE as adoptPrepared,ha as aliasCaseVariants,ps as alternateLinkKey,jw as animation,Kf as appendSVGSprite,Is as appendSvgIconsSprite,Pk as applyAttrTransforms,iE as applyCSS,Fb as applyDependentState,Gf as applyDocument,$p as applyEvent,Fp as applyEventUpdate,Na as applyExtends,Fh as applyHeadings,vg as applyInitialState,cr as applyMediaSequenceVars,dl as applyProps,qf as applyReset,Of as applySequenceGlobalVars,xo as applySequenceVars,Yf as applySkins,Pf as applySpacingSequence,xe as applyStateMethods,eu as applyThemeRoot,Wf as applyTimingSequence,hk as applyTrueProps,Vf as applyTypographySequence,l_ as arrayContainsOtherArray,__ as arraysEqual,ms as arrayzeValue,$x as assertEmitIntegrity,ur as atSchemes,Gl as bareLibraryKey,Pd as batch,ql as bindLibraryGlobalScopes,$w as breakpoints,Sg as breakpointsContainerName,ow as brenderStampMeta,ff as buildImgSrcset,Ps as buildSkinVarStyles,uf as buildSourcesAndImg,Dm as buildThemeVarStyles,gS as cache,yr as cacheNode,AS as call,bu as callStateMethod,Io as camelToAttr,$1 as camelToLowerAttr,CS as captureSnapshot,qh as changeGlobalTheme,ww as changeLightness,fn as checkAttributeByTagName,Ik as checkEventFunctions,Mb as checkForStateTypes,If as checkIfBoxSize,Sp as checkIfInherits,w_ as checkIfStringIsInArray,Ww as class,F_ as clone,rl as cloneAndMergeArrayExtend,ab as cloneFunction,Ni as collectExtendsList,Dw as color,Lf as colorPairSchemes,Ze as colorStringToRgbaArray,dc as components,Ss as compositeOverBackdrop,ca as compoundLayers,bb as concatAddExtends,ck as containerBreakpointQuery,fa as contrastRatio,Df as convertSvgToSymbol,lw as copyJavaScriptToClipboard,cw as copyStringToClipboard,Bd as countUntrackedReads,zA as create,VK as createAsync,fp as createBasedOnType,tv as createComputed,xf as createConfig,h$ as createDefine,xd as createDomqlElement,W as createEffect,Pb as createElement,Jd as createElementExtends,il as createExtends,$i as createExtendsFromKeys,op as createExtendsStack,Fa as createHTMLNode,cb as createIfConditionFlag,Bb as createInheritedState,nl as createKey,K_ as createNestedObject,$b as createNestedObjectByKeyPath,Kd as createObjectWithoutPrototype,dp as createParent,pp as createPath,Rh as createPristineConfig,pl as createProps,cp as createPropsStack,lh as createPrunedLibraryIconLoader,Ib as createRoot,Ub as createScope,Nd as createScopeStore,yn as createSignal,zK as createSkeleton,el as createSnapshotId,vk as createState,oo as createStore,HK as createSync,$e as css,iu as cssCamelName,Ch as cssMediaVars,Se as cssPropName,Aa as cssShorthandDepth,va as cssShorthandStatesLonghand,nu as cssShorthandStatesThemeLonghand,vh as cssVars,as as currentPathname,O_ as customDecodeURIComponent,C_ as customEncodeURIComponent,h_ as cutArrayAfterValue,p_ as cutArrayBeforeValue,ol as debounce,sb as debounceOnContext,of as decodeBrenderRegistry,v_ as decodeNewlines,ut as deepClone,W_ as deepContains,Qi as deepDefaults,he as deepDestringifyFunctions,Qd as deepExtend,mt as deepMerge,Bn as deepMergeExtends,Yc as deepStringifyFunctions,yi as defaultDefine,ar as defineResolvedThemeSignal,TS as defineSetter,ir as defineThemeSignal,nw as designSystemBlock,ew as designSystemLink,qr as destringifyGlobalScope,gi as destroy,PS as detectHeightOnInit,Z_ as detectInfiniteLoop,Gn as detectTag,Fw as devices,ln as dispose,Lm as effectiveGlobalTheme,A_ as encodeNewlines,ss as error,j as escapeHtml,x_ as escapeRegExp,tr as evaluateText,J_ as excludeKeysFromObject,bt as exec,R3 as executeAttr,JV as exetuteClassPerComponent,Yl as exposeBagGlobalScopes,Sb as extendCachedRegistry,al as extendStackRegistry,ll as extractArrayExtend,Mk as extractConditionalAttrs,rr as faviconLinkKey,ea as fetchLibraryData,MS as fibonacciNumberByIndex,sh as fileEntryUrl,b_ as filterArrays,S_ as filterArraysFast,O3 as filterAttributesByTagName,rp as finalizeExtends,ih as findClosestNumber,aw as findClosestNumberInFactory,Lh as findHeadingLetter,Cf as findHeadings,bp as findInheritedState,T_ as findKeyPosition,Fi as flattenExtend,Ew as font,Cw as fontFace,Aw as fontFamily,vw as fontFamilyTypes,Os as forcedScheme,IS as formatDate,Yd as generateHash,na as generateHeadArrayTags,tl as generateKey,sw as generateMetaTags,me as generateSequence,tx as generateSequencePosition,Rf as generateSprite,Af as generateSubSequence,SS as get,L as getActiveConfig,Hn as getActiveDocument,wi as getActiveLang,Zp as getCDNDirUrl,wn as getCDNUrl,Hx as getCacheSize,Tb as getCapitalCaseKeys,Xi as getCdnProviderFromConfig,_p as getChildStateInKey,kS as getChildren,ft as getColor,hh as getColorShade,Bl as getContext,pb as getCookie,Ul as getDB,_o as getDefaultOrFirstKey,ig as getEmitStats,gw as getEmotionStylesheet,kb as getExtendsInElement,sl as getExtendsStack,Zd as getExtendsStackRegistry,wo as getFnPrefixAndValue,kw as getFontFace,ws as getFontFaceEach,kh as getFontFaceEachString,yf as getFontFaceString,Uf as getFontFamily,wh as getFontFormat,Hf as getFontSizeByKey,f_ as getFrequencyInArray,De as getFunctionSource,cl as getHashedExtend,LS as getImportMapScript,X_ as getInObjectByPath,gd as getLanguages,bd as getLocalStateLang,gb as getLocalStorage,Nf as getMediaBorder,Vt as getMediaColor,nn as getMediaTheme,rb as getNev,Re as getObserver,iw as getPageMetadata,yp as getParentStateInKey,Rl as getPath,hd as getPendingLang,Vl as getQuery,xS as getRef,cO as getResolvedThemeSignal,Tn as getRgbTone,Il as getRoot,Ml as getRootContext,Pl as getRootData,Ll as getRootState,mp as getRootStateInKey,Nh as getSafeInk,ix as getSafeInkInfo,ks as getSequenceValue,vf as getSequenceValueBySymbols,Vn as getSequenceValuePropertyPair,Bf as getShadow,zf as getShapeByKey,ev as getSignals,ga as getSizeValue,Me as getSpacingBasedOnRatio,Ft as getSpacingByKey,Eb as getSpreadChildren,Ef as getSubratio,Tf as getSubratioDifference,ae as getSystemGlobalTheme,fx as getTheme,aO as getThemeSignal,ye as getTimingByKey,Be as getTimingFunction,i_ as global,Lw as gradient,zw as grid,ee as hasFunction,Pi as hasHandlerPlugin,V_ as hasOwnProperty,xn as hashContent,yw as hexToRgb,fh as hexToRgbArray,bw as hexToRgba,ph as hslToRgb,Mw as icons,Ts as inForcedColors,ep as inheritChildExtends,tp as inheritChildPropsExtends,hl as inheritParentProps,np as inheritRecursiveChildExtends,no as init,Ly as initPolyglot,Db as initProps,At as injectGlobal,rw as insertAfterImportMap,lf as installPrunedLibraryIconLoader,pe as is,P as isArray,Fd as isBoolean,D_ as isBuiltinElementMethod,Pt as isCSSVar,Ab as isContextComponent,Q_ as isCyclic,ue as isDOMNode,Ud as isDate,Nt as isDefined,Ko as isDevelopment,ro as isDomDocument,Wd as isEmpty,H_ as isEmptyObject,zs as isEnumeratedTrueFalseAttr,Gd as isEqualDeep,Gr as isFailedRevival,Es as isForcedColorsQuery,I as isFunction,ua as isGoogleFontsUrl,so as isHostObject,$c as isHtmlElement,mh as isInertCompoundValue,As as isIntendedSystemColorWord,j_ as isLazyFunction,ob as isLocal,J as isLoudDevRuntime,cs as isMalformedDependency,vS as isMethod,ub as isMobile,bs as isNativeColorToken,io as isNode,c_ as isNot,co as isNotProduction,jd as isNull,de as isNumber,k as isObject,U as isObjectLike,BS as isPhoto,fr as isPlainColor,_l as isPolyglotRetranslatableKey,Xr as isPolyglotWritableKey,Go as isProduction,Hr as isProtectedElementMethod,Nc as isRawUnitValue,Qe as isResolvedColor,Kr as isRevived,jr as isScalingUnit,nb as isStaging,Nb as isState,xt as isStore,E as isString,Ii as isStringFunction,Zc as isStringTag,Do as isSvgTag,qd as isTest,eb as isTesting,Ok as isTracking,Gt as isUndefined,OS as isUniversallyReservedKey,nr as isUnresolvableDependency,ls as isValidDependencyMap,yb as isValidHtmlTag,$a as isValidTag,yB as isWasmLoaded,Ie as isWrappedLibrary,s_ as isWritableFamilyBucket,Ci as joinArrays,la as joinCompoundLayers,wb as jointStacks,ts as jsonForScript,La as keyframes,Hp as keys,hw as libraryIconPruneReplacer,ah as libraryIdentifier,Ji as libraryPackageSpecs,nh as librarySpecsFor,_h as linearChannelToSrgb,Rs as literalPairCompound,To as literalSchemeMap,jS as loadCssFile,US as loadJavascript,NS as loadJavascriptFile,FS as loadJavascriptFileEmbedSync,$S as loadJavascriptFileSync,VS as loadRemoteCSS,Zi as loadRemoteScript,Si as loadTranslations,mB as loadWasm,ES as log,fb as logGroupIf,lb as logIf,_S as lookdown,bS as lookdownAll,yS as lookup,Ur as lowercaseFirstLetter,z_ as makeObjectWithoutPrototype,$_ as map,fl as mapStringsWithContextComponents,$n as markPolyglotSeeded,Li as markRevived,Ki as markTextNotReady,Nn as matchesComponentNaming,Ow as media,ib as memoize,Ot as merge,Xl as mergeSharedLibraries,Zl as mergeSharedLibraryDesignSystems,Ql as mergeSharedLibraryTranslations,Yo as mergeStateData,mw as mixTwoColors,Sw as mixTwoRgb,gh as mixTwoRgba,$l as nextElement,Kl as normalizeIgnoreList,us as normalizeLibraryKey,tn as numToLetterMap,Xc as objectToString,ul as objectizeStringProperty,bh as oklabToLinearSrgb,hf as oklabToOklch,gf as oklchToGamutSafeSrgb,Sh as oklchToOklab,aa as opacify,Jc as overwrite,ne as overwriteDeep,Yr as overwriteShallow,jb as overwriteState,Vo as parkHostObject,zp as parse,Xt as parseColorToken,Cl as parseDeep,ch as payloadHasComputedIconName,Yp as pickStartLang,ip as pickupElementFromProps,sp as pickupPropsFromElement,pw as planLibraryIconPrune,Kp as polyglotAddressLang,ho as polyglotFallbackLang,Sd as polyglotFunctions,Gi as polyglotLangStorageKey,Le as polyglotLanguages,vc as polyglotPlugin,Xo as polyglotSeededKeys,is as polyglotStartLang,qp as polyglotStartRule,RS as polyglotStartupScript,dt as popConfig,bg as popStaticCssPass,VA as prepareContext,Fl as previousElement,zi as promoteActiveRootState,Ob as propExists,ap as propertizeElement,Cb as propertizeUpdate,ht as pushConfig,_g as pushStaticCssPass,vs as quietColorProbe,So as quietSequenceProbe,es as readBrenderStamp,jn as readJsonDataBlock,au as recordRules,Wa as refreshContextProto,Ma as registerEvent,OF as registerHostPackages,Ti as registerSignalInstance,sE as reinit,ys as relativeLuminance,Ha as remove,fw as removeChars,hb as removeCookie,fu as removeDelegatedEvent,ml as removeDuplicateProps,Oi as removeDuplicatesInArray,u_ as removeFromArray,G_ as removeFromObject,q_ as removeNestedKeyByPath,Uc as removeValueFromArray,g_ as removeValueFromArrayAll,y_ as reorderArrayByValues,Kc as repairLegacyArrowScopePreamble,Kt as replaceLiteralsWithObjectFields,E_ as replaceOctalEscapeSequences,cu as replayRules,Nx as resetEmitStats,ge as resolveAsset,se as resolveBorderValue,Cs as resolveColorRgb,pr as resolveColorsInGradient,yo as resolveCompoundWords,Ai as resolveConfigDocument,JR as resolveDesignSystemClass,gs as resolveFileReferences,Lk as resolveFileSource,Je as resolveFileUrl,zR as resolveGridTracks,Mi as resolveHandler,_r as resolvePropValue,ya as resolveShadowNonColorWord,Ds as resolveShadowValue,Jl as resolveSharedLibraries,mk as resolveStyleBlockTokens,xw as returnSubThemeOrDefault,lp as returnValueAsText,Zh as reviveConfig,uh as rgbArrayToHex,dh as rgbToHSL,_w as rgbToHex,qo as runPluginHook,$h as runThroughMedia,Bh as schemeGuardSelector,Mh as schemeMediaQuery,Vd as scopeElementParam,B_ as scopeReceiverExpression,pa as scratchDefaultConfig,wa as scratchSystem,lr as scratchUtils,a_ as self,Bw as semanticIcons,bo as sequence,Yn as serializeAttrValue,Xh as serializeConfig,Bs as set,Oh as setActiveConfig,Bx as setActiveDocument,Dl as setActiveRootState,dr as setAdaptiveSchemeVar,e9 as setClass,t3 as setClassname,ko as setColor,db as setCookie,Rm as setCssEngineHook,mf as setCustomFont,sr as setCustomFontMedia,tu as setEach,jf as setFont,ba as setFontFamily,da as setFontImport,ma as setGradient,Xd as setHashedExtend,xh as setInCustomFontMedia,Y_ as setInObjectByPath,yd as setLang,mb as setLocalStorage,_a as setMediaTheme,Vp as setNodeStyles,Mc as setObserver,wS as setProps,gl as setPropsPrototype,Sa as setSVG,kf as setScalingVar,hr as setShadow,Dh as setSubScalingVar,Ls as setSvgIcon,$f as setTheme,bx as setValue,ex as setVariables,su as setWasmEngine,Md as settled,Pw as shadow,qw as shape,KS as sharedLibrary,ds as sharedLibraryFiles,Kw as sizes,Yw as skins,Rw as spacing,df as splitCompoundWords,Hl as splitPackageSpecifier,Oo as splitSelectorList,Mf as splitSpacedValue,kn as splitTopLevelCommas,lt as splitTopLevelSpaces,Gh as splitTransition,Ol as spotByPath,oa as srcsetFor,yh as srgbChannelToLinear,pf as srgbToOklab,zc as stringIncludesAny,U_ as stringToObject,zl as stripVersionRangePrefix,Uw as svg,Th as svgData,Vw as svg_data,d_ as swapItemsInArray,yl as syncProps,Hw as templates,Iw as theme,hs as themeColorKey,Nw as timing,wf as toCamel,go as toCamelCase,cf as toDashCase,dw as toDescriptionCase,sa as toLinearChannel,Ge as toPriorityOrder,uw as toTitleCase,DS as toggleFullscreen,Hh as transformBackgroundImage,jh as transformBorder,Eo as transformBorderRadius,Xf as transformBoxShadow,e1 as transformClassname,Jf as transformDuration,Wh as transformGridTemplate,Vh as transformShadow,Lt as transformSize,F as transformSizeRatio,Uh as transformTextStroke,Ms as transformTilingValue,_x as transformTransition,gk as transformersByPrefix,zh as transfromGap,md as translate,po as triggerEventOn,hS as triggerEventOnUpdate,k_ as trimStringFromSymbols,_f as typography,Tw as unit,jc as unstackArrayOfObjects,Fr as untrack,Va as update,Lb as updateProps,t9 as updateVars,_d as upsertTranslation,Zt as useCssInProps,Ck as useHostState,QR as usePropsAsCSS,t1 as useSelectorsAsCSS,jl as variables,Gw as vars,Wi as verbose,Xw as viewTransition,Nl as warn,ta as warnLibraryAliasCollision,$d as warnStateKeyShadowsMethod,R as window,Co as wrapHoverRule};
178
178
  //# sourceMappingURL=smbls.esm.js.map