@saasbase-io/core-elements 1.21.1 → 1.22.1

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.
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function D(e,t,r,i){function s(o){return o instanceof r?o:new r(function(n){n(o)})}return new(r||(r=Promise))(function(o,n){function h(y){try{g(i.next(y))}catch(w){n(w)}}function u(y){try{g(i.throw(y))}catch(w){n(w)}}function g(y){y.done?o(y.value):s(y.value).then(h,u)}g((i=i.apply(e,t||[])).next())})}class Nr{constructor(){this.data=new Map}static get Instance(){return Nr.instance||(Nr.instance=new Nr),Nr.instance}get(t){return this.data.get(t)}set(t,r){this.data.set(t,r)}setConfig(t){this.data.set("config",t)}getConfig(){return this.data.get("config")}getApiBaseUrl(){const t=this.getConfig().domain;return t.startsWith("localhost")?`http://${t}`:`https://${t}`}remove(t){this.data.delete(t)}clear(){this.data.clear()}}const Mt=Nr.Instance;class ct extends Error{constructor(t,r,i){super(r),this.name="LoginflowError",this.code=t,this.details=i}}class Te{constructor(){}static get Instance(){return Te.instance||(Te.instance=new Te),Te.instance}request(t){return D(this,arguments,void 0,function*(r,i={}){const s=Mt.getConfig(),o=`${Mt.getApiBaseUrl()}${r}`,n=5e4,h=new AbortController,u=setTimeout(()=>h.abort(),n);try{const g=yield fetch(o,Object.assign(Object.assign({},i),{signal:h.signal,headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},s.apiKey&&{Authorization:`Bearer ${s.apiKey}`}),s.headers),i.headers)}));if(clearTimeout(u),!g.ok){const y=yield g.json().catch(()=>({}));throw new ct(y.code||"API_ERROR",y.message||`HTTP ${g.status}: ${g.statusText}`,y.details)}return yield g.json()}catch(g){throw clearTimeout(u),g instanceof ct?g:g instanceof Error?g.name==="AbortError"?new ct("TIMEOUT","Request timeout"):new ct("NETWORK_ERROR",g.message):new ct("UNKNOWN_ERROR","An unknown error occurred")}})}post(t,r){return D(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"POST",body:r?JSON.stringify(r):void 0})})}get(t){return D(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"GET"})})}}class kt{constructor(){this.AUTH_SESSION_STORAGE_KEY="saasbase_auth_session",this.refreshTimeoutId=null,this.refreshPromise=null}static get Instance(){return kt.instance||(kt.instance=new kt),kt.instance}setCurrentSession(t){localStorage.setItem(this.AUTH_SESSION_STORAGE_KEY,JSON.stringify(t))}getCurrentSession(){const t=this.getStoredSession();return t?this.isSessionExpired(t)?(this.clearSession(),null):(this.shouldRefreshToken(t)&&this.triggerBackgroundRefresh(t),t):null}isAuthenticated(){return this.getCurrentSession()!==null}getAuthenticatedUser(){const t=this.getCurrentSession();if(!t||!t.id_token)return null;const r=this.decodeJWT(t.id_token);return r||null}cleanup(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshPromise=null}clearSession(){localStorage.removeItem(this.AUTH_SESSION_STORAGE_KEY)}isSessionExpired(t){return!t||!t.expires_at?!0:Date.now()>=t.expires_at}cleanExpiredSession(){const t=this.getStoredSession();t&&this.isSessionExpired(t)&&this.clearSession()}getStoredSession(){const t=localStorage.getItem(this.AUTH_SESSION_STORAGE_KEY);if(!t)return null;try{return JSON.parse(t)}catch{return this.clearSession(),null}}decodeJWT(t){try{const i=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(i).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(s)}catch{return null}}shouldRefreshToken(t){if(!t||!t.expires_at||!t.refresh_token)return!1;const r=Date.now(),i=t.expires_at,s=t.expires_in||3600,o=r+s*1e3*.2;return i<=o}scheduleTokenRefresh(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null);const t=this.getCurrentSession();if(!t||!t.expires_at||!t.refresh_token)return;const r=Date.now(),i=t.expires_at,s=t.expires_in||3600,o=i-r-s*1e3*.2;o>0&&(this.refreshTimeoutId=setTimeout(()=>{this.triggerBackgroundRefresh(t)},o))}triggerBackgroundRefresh(t){this.refreshPromise||t.refresh_token&&(this.refreshPromise=this.refreshTokens(t.refresh_token).then(r=>(r&&(this.setCurrentSession(r),this.scheduleTokenRefresh()),r)).catch(r=>(console.error("Background token refresh failed:",r),null)).finally(()=>{this.refreshPromise=null}))}refreshTokens(t){return D(this,void 0,void 0,function*(){try{const r=yield Te.Instance.post("/login-flow/v1/refresh",{refresh_token:t});return{id_token:r.id_token,access_token:r.access_token,refresh_token:r.refresh_token,expires_in:r.expires_in,expires_at:Date.now()+r.expires_in*1e3}}catch(r){return r instanceof ct?console.error("Token refresh failed:",r.message,r.details):console.error("Token refresh failed:",r),this.clearSession(),null}})}}class bd{constructor(t=sessionStorage){this.storage=t,this.FLOW_STATE_KEY="saasbase_loginflow_state",this.FLOW_EXPIRY_MS=540*1e3}getFlowState(){const t=this.storage.getItem(this.FLOW_STATE_KEY);if(!t)return null;try{const r=JSON.parse(t);return this.isExpired(r)?(this.clearFlowState(),null):r}catch{return this.clearFlowState(),null}}saveFlowState(t,r,i){const s=Date.now(),o=this.getFlowState(),n={flowType:t,flow_id:r,state:i.state,startedAt:(o==null?void 0:o.startedAt)||s,lastUpdatedAt:s,render_spec:i.render_spec};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(n))}restoreFromHistory(t){const r={flowType:t.flowType,flow_id:t.flow_id,state:t.state,startedAt:t.timestamp,lastUpdatedAt:t.timestamp,render_spec:void 0};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(r))}clearFlowState(){this.storage.removeItem(this.FLOW_STATE_KEY)}isExpired(t){return Date.now()-t.lastUpdatedAt>this.FLOW_EXPIRY_MS}get expiryMs(){return this.FLOW_EXPIRY_MS}}class ps{static detect(t,r=window.location){const i=r.pathname.toLowerCase();return i.includes(t.signinUrl)?"signin":i.includes(t.signupUrl)?"signup":"custom"}}class fd{constructor(){this.listeners=new Map}on(t,r){this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(r)}off(t,r){var i;(i=this.listeners.get(t))===null||i===void 0||i.delete(r)}emit(t,r){const i=this.listeners.get(t);i&&i.forEach(s=>{try{s(r)}catch(o){console.error(`[FlowEventBus] Error in event handler for ${t}:`,o)}})}clear(){this.listeners.clear()}clearEvent(t){this.listeners.delete(t)}}class bc{getNavigationType(){const t=performance.getEntriesByType("navigation");if(t.length>0)return t[0].type;const r=performance.navigation;if(r)switch(r.type){case 1:return"reload";case 2:return"back_forward";default:return"navigate"}return"navigate"}}class en{constructor(t,r,i=window.location,s,o){this.httpClient=Te.Instance,this.redirectTimeoutId=null,this.eventHandlers=new Map([["switch_to_signin",this.handleSwitchToSignin.bind(this)],["switch_to_signup",this.handleSwitchToSignup.bind(this)]]);const n=Mt.getConfig();if(!n.domain)throw new ct("CONFIG_ERROR","Domain is required");if(!n.appId)throw new ct("CONFIG_ERROR","App ID is required");if(!n.clientSecret)throw new ct("CONFIG_ERROR","Client Secret is required");this.flowId=t,this.location=i,this.flowStateManager=s||new bd,this.flowEventBus=r||new fd,this.navigationTypeDetector=o||new bc,kt.Instance.cleanExpiredSession(),kt.Instance.scheduleTokenRefresh()}static init(t,r,i,s,o){return D(this,void 0,void 0,function*(){const n=new en(t,r,i,s,o),h=yield n.initializeFlowInternal();return{sdk:n,flowType:h.flowType,isResumed:h.isResumed,state:h.state,render_spec:h.render_spec,auth_result:h.auth_result}})}startFlow(t,r){return D(this,void 0,void 0,function*(){if(!r.app_id)throw new ct("VALIDATION_ERROR","Client ID is required");const i=`/v1/auth-flow/${t}/start`;return this.executeFlowRequest(()=>this.httpClient.post(i,r),"START_FLOW_ERROR","Failed to start flow")})}resumeFlow(t){return D(this,void 0,void 0,function*(){const r=`/v1/auth-flow/${t}/resume`;return this.executeFlowRequest(()=>this.httpClient.post(r),"RESUME_FLOW_ERROR","Failed to resume flow")})}processEvent(t,r){return D(this,void 0,void 0,function*(){if(!t.event)throw new ct("VALIDATION_ERROR","Event type is required");const i=this.eventHandlers.get(t.event);return i?yield i():yield this.processServerEvent(t,r)})}executeFlowRequest(t,r,i,s){return D(this,void 0,void 0,function*(){try{const o=yield t();return s&&(yield s(o)),this.processAuthResult(o.auth_result),o.redirection&&this.redirect(o.redirection),o}catch(o){throw o instanceof ct?o:new ct(r,i,o instanceof Error?{originalError:o.message,stack:o.stack}:o)}})}processServerEvent(t,r){return D(this,void 0,void 0,function*(){let i=this.flowStateManager.getFlowState();if(!i&&(console.warn("Flow state expired, restarting flow before processing event"),yield this.initializeFlowInternal(),i=this.flowStateManager.getFlowState(),!i))throw new ct("FLOW_RESTART_ERROR","Failed to restart flow - no flow state after initialization");const s=i.state,o=`/v1/auth-flow/${i.flowType}/events`,n=yield this.executeFlowRequest(()=>this.httpClient.post(o,t),"PROCESS_EVENT_ERROR","Failed to process event",r);if(!n.auth_result){this.flowStateManager.saveFlowState(i.flowType,i.flow_id,n);const h=this.flowStateManager.getFlowState();if(h){const u=s!==n.state;this.flowEventBus.emit("flow:updated",{flowState:h,isNewStep:u})}}return n})}processAuthResult(t){if(t){const r={id_token:t.id_token,access_token:t.access_token,refresh_token:t.refresh_token,expires_in:t.expires_in,expires_at:Date.now()+t.expires_in*1e3};kt.Instance.setCurrentSession(r),kt.Instance.scheduleTokenRefresh(),this.flowStateManager.clearFlowState(),this.reloadPage()}}initializeFlowInternal(){return D(this,void 0,void 0,function*(){const t=Mt.getConfig(),r=ps.detect(t,this.location);this.validateFlowType(r);const i=this.flowStateManager.getFlowState();return this.shouldResumeFlow(i,r)?yield this.resumeExistingFlow(i,r):yield this.startNewFlow(r)})}validateFlowType(t){if(t==="custom"&&!this.flowId)throw new ct("FLOW_ID_ERROR","Flow ID is required for custom flows")}shouldResumeFlow(t,r){if(!t)return!1;const s=new URLSearchParams(this.location.search).get("resume")==="true",o=this.navigationTypeDetector.getNavigationType();if(o==="navigate"&&!s)return this.flowStateManager.clearFlowState(),console.log(`Fresh navigation detected (type: ${o}), starting new flow`),!1;if(t.flowType!==r)return this.flowStateManager.clearFlowState(),console.log(`Flow type changed from ${t.flowType} to ${r}, starting new flow, flow_id: ${this.flowId}`),!1;if(r==="custom"&&t.flow_id!==this.flowId)return this.flowStateManager.clearFlowState(),console.log(`Custom flow ID changed, starting new flow, flow_id: ${this.flowId}`),!1;const n=s?"explicit resume=true":`navigation type: ${o}`;return console.log(`Resuming existing flow (${n})`),!0}resumeExistingFlow(t,r){return D(this,void 0,void 0,function*(){try{const i=yield this.resumeFlow(r);if(!i.auth_result){this.flowStateManager.saveFlowState(r,t.flow_id,i);const s=this.flowStateManager.getFlowState();s&&this.flowEventBus.emit("flow:resumed",{flowState:s})}return{flowType:r,isResumed:!0,state:i.state,render_spec:i.render_spec,auth_result:i.auth_result}}catch(i){return this.flowStateManager.clearFlowState(),console.warn("Failed to resume flow, starting fresh:",i),yield this.startNewFlow(r)}})}startNewFlow(t){return D(this,void 0,void 0,function*(){const r=Mt.getConfig(),i=new URLSearchParams(this.location.search),s={};i.forEach((h,u)=>{s[u]=h}),console.log("metadata",s);const o={app_id:r.appId,client_secret:r.clientSecret,origin_url:this.location.href,signin_url:r.signinUrl,signup_url:r.signupUrl,locale:r.locale||"en",flow_id:this.determineFlowId(t),metadata:s},n=yield this.startFlow(t,o);if(!n.auth_result){this.flowStateManager.saveFlowState(t,o.flow_id,n);const h=this.flowStateManager.getFlowState();h&&this.flowEventBus.emit("flow:started",{flowState:h})}return{flowType:t,isResumed:!1,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result}})}determineFlowId(t){switch(t){case"signin":return this.flowId||"signin-flow";case"signup":return this.flowId||"signup-flow";case"custom":if(!this.flowId)throw new ct("FLOW_ID_ERROR","Flow ID is required for custom flows");return this.flowId}}handleSwitchToSignin(){return D(this,void 0,void 0,function*(){const t=Mt.getConfig();return this.redirect({url:t.signinUrl,redirect_delay:0}),{state:"End"}})}handleSwitchToSignup(){return D(this,void 0,void 0,function*(){const t=Mt.getConfig();return this.redirect({url:t.signupUrl,redirect_delay:0}),{state:"End"}})}redirect(t){t.url&&(this.redirectTimeoutId!==null&&(console.log("Clearing existing redirect timeout before scheduling new redirect to:",t.url),clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.redirectTimeoutId=setTimeout(()=>{this.location.href=t.url},t.redirect_delay*1e3))}reloadPage(){setTimeout(()=>{this.location.reload()},0)}getEventBus(){return this.flowEventBus}cleanup(){this.redirectTimeoutId&&(clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.flowEventBus.clear()}}class fc{constructor(t){this.delayMs=t,this.timerId=null}debounce(t){this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{t(),this.timerId=null},this.delayMs)}cancel(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}isPending(){return this.timerId!==null}}class vc{pushState(t,r,i){history.pushState(t,r,i)}replaceState(t,r,i){history.replaceState(t,r,i)}get state(){return history.state}}class yc{constructor(t,r,i=!1,s=window.location,o,n){this.popstateListener=null,this.pageshowListener=null,this.isProcessing=!1,this.isHandlingNavigationEvent=!1,this.onFlowRestartNeeded=null,this.onFlowRestartNeeded=r,this.skipHistoryTracking=i,this.debouncer=new fc(200),this.location=s,this.flowStateManager=o||new bd,this.historyAdapter=n||new vc,this.subscribeToFlowEvents(t),this.initializeListener()}subscribeToFlowEvents(t){t.on("flow:started",this.handleFlowStart.bind(this)),t.on("flow:updated",this.handleFlowUpdate.bind(this)),t.on("flow:resumed",this.handleFlowResume.bind(this))}initializeListener(){this.popstateListener=t=>{console.log("[NavigationManager] popstate event received"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Debounce timeout fired, handling popstate"),this.handlePopState(t)})},this.pageshowListener=t=>{t.persisted&&(console.log("[NavigationManager] Page restored from bfcache"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Handling bfcache restoration"),this.handleBfcacheRestoration()}))},window.addEventListener("popstate",this.popstateListener),window.addEventListener("pageshow",this.pageshowListener)}handlePopState(t){return D(this,void 0,void 0,function*(){if(this.isProcessing){console.log("[NavigationManager] Already processing popstate, skipping");return}console.log("[NavigationManager] Starting popstate processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const r=t.state,i=this.flowStateManager.getFlowState(),s=Mt.getConfig(),o=ps.detect(s,this.location);if(r&&this.restoreHistoryStateToSession(r),this.shouldRestartFlow(r,i,o)){yield this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from history")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}})}handleBfcacheRestoration(){return D(this,void 0,void 0,function*(){if(this.isProcessing){console.log("[NavigationManager] Already processing bfcache restoration, skipping");return}console.log("[NavigationManager] Starting bfcache restoration processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const t=this.historyAdapter.state,r=this.flowStateManager.getFlowState(),i=Mt.getConfig(),s=ps.detect(i,this.location);if(t&&this.restoreHistoryStateToSession(t),this.shouldRestartFlow(t,r,s)){yield this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from bfcache")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}})}restoreHistoryStateToSession(t){console.log("[NavigationManager] Restoring history state to session storage:",t),this.flowStateManager.restoreFromHistory(t)}shouldRestartFlow(t,r,i){return t&&t.flowType!==i?(console.log("[NavigationManager] Flow type changed via navigation:",t.flowType,"→",i),this.flowStateManager.clearFlowState(),!0):t?Date.now()-t.timestamp>this.flowStateManager.expiryMs?(console.log("[NavigationManager] History state expired, clearing and restarting flow"),this.flowStateManager.clearFlowState(),!0):(console.log("[NavigationManager] Valid history state restored, triggering restart to resume flow"),!0):(console.log("[NavigationManager] No history state, skipping"),!1)}triggerFlowRestart(){return D(this,void 0,void 0,function*(){this.onFlowRestartNeeded&&(yield this.onFlowRestartNeeded())})}createHistoryState(t){return{flowType:t.flowType,flow_id:t.flow_id,state:t.state,timestamp:Date.now()}}updateBrowserHistory(t,r){if(this.skipHistoryTracking){console.log("[NavigationManager] Skipping history tracking (created from navigation)");return}const i=this.createHistoryState(t);try{r==="push"?(this.historyAdapter.pushState(i,"",this.location.href),console.log("[NavigationManager] Pushed state to history")):(this.historyAdapter.replaceState(i,"",this.location.href),console.log("[NavigationManager] Replaced state in history"))}catch(s){console.error("[NavigationManager] Failed to update history:",s)}}handleFlowStart(t){this.updateBrowserHistory(t.flowState,"replace")}handleFlowUpdate(t){const r=this.isHandlingNavigationEvent||!t.isNewStep?"replace":"push";this.updateBrowserHistory(t.flowState,r)}handleFlowResume(t){this.updateBrowserHistory(t.flowState,"replace")}destroy(){this.debouncer.cancel(),this.popstateListener&&(window.removeEventListener("popstate",this.popstateListener),this.popstateListener=null),this.pageshowListener&&(window.removeEventListener("pageshow",this.pageshowListener),this.pageshowListener=null),this.onFlowRestartNeeded=null}}let Me=new AbortController;class wc{constructor(){this.httpClient=Te.Instance,this.capabilities={webauthn:!1},this.capabilitiesDetected=!1}detectCapabilities(){return D(this,void 0,void 0,function*(){if(!this.capabilitiesDetected)try{if(typeof window.PublicKeyCredential=="function"?this.capabilities.webauthn=!0:this.capabilities.webauthn=!1,typeof PublicKeyCredential.getClientCapabilities=="function"){const t=yield PublicKeyCredential.getClientCapabilities();this.capabilities=Object.assign(Object.assign({},this.capabilities),t);return}typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(this.capabilities.userVerifyingPlatformAuthenticator=yield PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()),(PublicKeyCredential==null?void 0:PublicKeyCredential.isConditionalMediationAvailable)!==void 0&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"?this.capabilities.conditionalGet=yield PublicKeyCredential.isConditionalMediationAvailable():this.capabilities.conditionalGet=!1}finally{this.capabilitiesDetected=!0}})}fetchPublicKeyCredentialRequestOptions(t,r){return D(this,void 0,void 0,function*(){try{return this.httpClient.post("/webauthn/login/options",{conditional:r,flow_type:t})}catch(i){return console.error("error",i),null}})}fetchPublicKeyCredentialCreationOptions(t,r){return D(this,void 0,void 0,function*(){try{return this.httpClient.post("/webauthn/register/options",{conditional:r,flow_type:t})}catch(i){return console.error("error",i),null}})}startRegistration(t,r){return D(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialCreationOptionsJSON provided"),null;Me.abort(),Me=new AbortController;const i=this.toPublicKeyCredentialCreationOptions(t),s={signal:Me.signal,publicKey:i};if(r){if(!this.isConditionalCreateAvailable())return console.error("Conditional create mediation not supported in this browser"),null;s.mediation="conditional"}try{const o=yield navigator.credentials.create(s);if(!o){console.error("no credential returned by authenticator");return}const{id:n,rawId:h,response:u,type:g}=o;let y;typeof u.getTransports=="function"&&(y=u.getTransports());let w;if(typeof u.getPublicKeyAlgorithm=="function")try{w=u.getPublicKeyAlgorithm()}catch(S){Ks("getPublicKeyAlgorithm()",S)}let E;if(typeof u.getPublicKey=="function")try{const S=u.getPublicKey();S!==null&&(E=this.bufferToBase64URLString(S))}catch(S){Ks("getPublicKey()",S)}let C;if(typeof u.getAuthenticatorData=="function")try{C=this.bufferToBase64URLString(u.getAuthenticatorData())}catch(S){Ks("getAuthenticatorData()",S)}return{id:n,rawId:this.bufferToBase64URLString(h),response:{attestationObject:this.bufferToBase64URLString(u.attestationObject),clientDataJSON:this.bufferToBase64URLString(u.clientDataJSON),transports:y,publicKeyAlgorithm:w,publicKey:E,authenticatorData:C},type:g,clientExtensionResults:o.getClientExtensionResults(),authenticatorAttachment:this.toAuthenticatorAttachment(o.authenticatorAttachment)}}catch(o){const n=this.identifyAuthenticationError({error:o,options:s});return n instanceof qe?console.error(`WebAuthn authentication failed with code: ${n.code}, message: ${n.message}`):console.error("WebAuthn authentication failed with error:",o),null}})}startAuthentication(t,r){return D(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialRequestOptionsJSON provided"),null;if(!this.isWebAuthnAvailable())return console.error("WebAuthn not supported in this browser"),null;Me.abort(),Me=new AbortController;const i=this.toPublicKeyCredentialRequestOptions(t),s={signal:Me.signal,publicKey:i};if(r){if(!this.isConditionalGetAvailable())return console.error("Conditional mediation not supported in this browser"),null;s.mediation="conditional",s.publicKey&&(s.publicKey.allowCredentials=[])}try{const o=yield navigator.credentials.get(s);return this.toPublicKeyCredentialJSON(o)}catch(o){const n=this.identifyAuthenticationError({error:o,options:s});return n instanceof qe?console.error(`WebAuthn authentication failed with code: ${n.code}, message: ${n.message}`):console.error("WebAuthn authentication failed with error:",o),null}})}signalUnknownCredential(t,r){return D(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),this.isSignalUnknownCredentialAvailable())try{yield PublicKeyCredential.signalUnknownCredential({rpId:t,credentialId:r})}catch(i){console.error("Failed to signal unknown credential:",i)}else console.warn("signalUnknownCredential not supported in this browser")})}signalCurrentUserDetails(t){return D(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),this.isSignalCurrentUserDetailsAvailable())try{yield PublicKeyCredential.signalCurrentUserDetails(t)}catch(r){console.error("Failed to signal current user details:",r)}else console.warn("signalCurrentUserDetails not supported. Ask user to update manually.")})}toPublicKeyCredentialDescriptor(t){const{id:r}=t;return Object.assign(Object.assign({},t),{id:this.base64URLStringToBuffer(r),type:t.type,transports:t.transports})}toAuthenticatorAttachment(t){const r=["cross-platform","platform"];if(t&&!(r.indexOf(t)<0))return t}bufferToBase64URLString(t){const r=new Uint8Array(t);let i="";for(const o of r)i+=String.fromCharCode(o);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}base64URLStringToBuffer(t){const r=t.replace(/-/g,"+").replace(/_/g,"/"),i=(4-r.length%4)%4,s=r.padEnd(r.length+i,"="),o=atob(s),n=new ArrayBuffer(o.length),h=new Uint8Array(n);for(let u=0;u<o.length;u++)h[u]=o.charCodeAt(u);return n}toPublicKeyCredentialJSON(t){if(typeof t.toJSON=="function")return t.toJSON();const r=t.response;return{id:t.id,type:t.type,rawId:this.bufferToBase64URLString(t.rawId),authenticatorAttachment:this.toAuthenticatorAttachment(t.authenticatorAttachment),clientExtensionResults:t==null?void 0:t.getClientExtensionResults(),response:{clientDataJSON:this.bufferToBase64URLString(r.clientDataJSON),authenticatorData:this.bufferToBase64URLString(r.authenticatorData),signature:this.bufferToBase64URLString(r.signature),userHandle:r.userHandle?this.bufferToBase64URLString(r.userHandle):void 0}}}toPublicKeyCredentialCreationOptions(t){var r;if(typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const i={challenge:this.base64URLStringToBuffer(t.challenge),rp:{id:t.rp.id,name:t.rp.name},user:{displayName:t.user.displayName,id:this.base64URLStringToBuffer(t.user.id),name:t.user.name},pubKeyCredParams:t.pubKeyCredParams.map(s=>({alg:s.alg,type:s.type})),timeout:t.timeout};if(t.attestation&&(i.attestation=t.attestation),t.extensions!==void 0&&(i.extensions=t.extensions),t.authenticatorSelection){const s={};t.authenticatorSelection.authenticatorAttachment&&(s.authenticatorAttachment=t.authenticatorSelection.authenticatorAttachment),t.authenticatorSelection.requireResidentKey&&(s.requireResidentKey=t.authenticatorSelection.requireResidentKey),t.authenticatorSelection.residentKey&&(s.residentKey=t.authenticatorSelection.residentKey),t.authenticatorSelection.userVerification&&(s.userVerification=t.authenticatorSelection.userVerification),i.authenticatorSelection=s}return!((r=t.excludeCredentials)===null||r===void 0)&&r.length&&(i.excludeCredentials=t.excludeCredentials.map(s=>this.toPublicKeyCredentialDescriptor(s))),i}toPublicKeyCredentialRequestOptions(t){var r;if(typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const i={challenge:this.base64URLStringToBuffer(t.challenge)};return t.rpId!==void 0&&(i.rpId=t.rpId),t.timeout!==void 0&&(i.timeout=t.timeout),t.userVerification!==void 0&&(i.userVerification=t.userVerification),t.extensions!==void 0&&(i.extensions=t.extensions),!((r=t.allowCredentials)===null||r===void 0)&&r.length&&(i.allowCredentials=t.allowCredentials.map(s=>this.toPublicKeyCredentialDescriptor(s))),i}identifyAuthenticationError({error:t,options:r}){const{publicKey:i}=r;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(r.signal instanceof AbortSignal)return new qe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new qe({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const s=window.location.hostname;if(_c(s)){if(i.rpId!==s)return new qe({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new qe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new qe({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}isPublicKeyCredentialRequestOptionsJSON(t){return typeof t=="object"&&t!==null&&"challenge"in t}isWebAuthnAvailable(){return this.capabilities.webauthn}isSignalAllAcceptedCredentialsAvailable(){return!!this.capabilities.signalAllAcceptedCredentials}isSignalCurrentUserDetailsAvailable(){return!!this.capabilities.signalCurrentUserDetails}isSignalUnknownCredentialAvailable(){return!!this.capabilities.signalUnknownCredential}isConditionalGetAvailable(){return!!this.capabilities.conditionalGet}isConditionalCreateAvailable(){return!!this.capabilities.conditionalCreate}isHybridTransportAvailable(){return!!this.capabilities.hybridTransport}destroy(){Me.abort()}}function Ks(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
2
- `,t)}class qe extends Error{constructor({message:t,code:r,cause:i,name:s}){super(t),this.name=s??i.name,this.code=r}}function _c(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}class zr{constructor(){this.configured=!1,this.loginflow=null,this.navigationManager=null,this.flowEventBus=null,this.webauthnService=null}static get Instance(){return zr.instance||(zr.instance=new zr),zr.instance}ensureConfigured(){if(!this.configured)throw new ct("NOT_CONFIGURED","Auth.configure() must be called before using Auth methods")}ensureLoginflowInitialized(){if(!this.loginflow)throw new ct("LOGINFLOW_NOT_INITIALIZED","Call Auth.startLoginflow() first")}startLoginflowInternal(t){return D(this,arguments,void 0,function*(r,i=!1){this.ensureConfigured(),this.webauthnService&&(console.log("[AuthService] Cleaning up and aborting ongoing webauthn flows"),this.webauthnService.destroy(),this.webauthnService=null),this.loginflow&&(console.log("[AuthService] Cleaning up old loginflow instance"),this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(console.log("[AuthService] Cleaning up old navigation manager instance"),this.navigationManager.destroy(),this.navigationManager=null),this.webauthnService=new wc,this.webauthnService.detectCapabilities(),this.flowEventBus=new fd,this.navigationManager=new yc(this.flowEventBus,()=>D(this,void 0,void 0,function*(){console.log("[AuthService] Navigation restart triggered, restarting loginflow"),yield this.startLoginflowInternal(void 0,!1)}),i);const s=yield en.init(r,this.flowEventBus),o=Mt.getConfig();this.startPasskeyAuthentication(s.flowType,!0),this.loginflow=s.sdk;const n={flowType:s.flowType,isResumed:s.isResumed,state:s.state,render_spec:s.render_spec,auth_result:s.auth_result};return o.onFlowStateChange&&o.onFlowStateChange({eventType:s.isResumed?"flow_resumed":"flow_started",flowType:s.flowType,state:s.state,render_spec:s.render_spec,auth_result:s.auth_result,isResumed:s.isResumed}),n})}configure(t){if(!t.domain||!t.appId||!t.clientSecret)throw new ct("CONFIG_ERROR","domain, appId, and clientSecret are required");Mt.setConfig(t),this.configured=!0}isAuthenticated(){return this.ensureConfigured(),kt.Instance.isAuthenticated()}getCurrentSession(){return this.ensureConfigured(),kt.Instance.getCurrentSession()}getAuthenticatedUser(){return this.ensureConfigured(),kt.Instance.getAuthenticatedUser()}startLoginflow(t){return D(this,void 0,void 0,function*(){return this.startLoginflowInternal(t,!1)})}processLoginflowEvent(t){return D(this,void 0,void 0,function*(){var r,i;this.ensureConfigured(),this.ensureLoginflowInitialized();const s=Mt.getConfig(),o=ps.detect(s,location);if(t.event==="signin_with_passkey"&&!(!((r=t.data)===null||r===void 0)&&r.credential_request)){const h=yield this.getPasskeyCredential(o,!1);if(!h||!h.cred)return console.error("no credential returned by browser"),{state:""};t.data={credential_request:h.cred}}if(t.event==="register_passkey"&&!(!((i=t.data)===null||i===void 0)&&i.conditional)){console.log("attempt to register a passkey");const h=yield this.createPasskeyCredential(o,!1);if(!h)return console.error("no credential created by browser"),{state:""};t.data={credential_creation_response:h,conditional:!1}}const n=yield this.loginflow.processEvent(t,h=>D(this,void 0,void 0,function*(){var u;if(!((u=h.data)===null||u===void 0)&&u.conditional_create_enabled){console.log("attempt to register a passkey conditionally");const g=yield this.registerPasskey(o,!0);g&&(g.render_spec=void 0,h.render_spec=void 0)}}));if(console.log("render spec",n.render_spec),s.onFlowStateChange){const h=sessionStorage.getItem("saasbase_loginflow_state");let u="custom";if(h)try{u=JSON.parse(h).flowType}catch(g){console.error("Failed to parse flow state:",g)}s.onFlowStateChange({eventType:"flow_updated",flowType:u,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result})}return n})}getPasskeyCredential(t,r){return D(this,void 0,void 0,function*(){var i,s;const o=yield(i=this.webauthnService)===null||i===void 0?void 0:i.fetchPublicKeyCredentialRequestOptions(t,r);if(!o)return console.error("failed to fetch public key request options"),null;try{return{cred:yield(s=this.webauthnService)===null||s===void 0?void 0:s.startAuthentication(o,r),options:o}}catch(n){return console.error("error starting authentication",n),null}})}startPasskeyAuthentication(t){return D(this,arguments,void 0,function*(r,i=!1){var s,o;const n=yield this.getPasskeyCredential(r,i);if(!n||!n.cred){console.error("no credential found");return}const{cred:h,options:u}=n;try{((s=(yield this.processLoginflowEvent({event:"signin_with_passkey",data:{credential_request:h}})).data)===null||s===void 0?void 0:s.error)==="CredentialNotFound"&&(u.rpId&&h.id?(o=this.webauthnService)===null||o===void 0||o.signalUnknownCredential(u.rpId,h.id):console.log("missing rpId or credential id for signalUnknownCredential"))}catch(g){console.error("failed to signin with passkey",g)}})}createPasskeyCredential(t,r){return D(this,void 0,void 0,function*(){var i,s;try{const o=yield(i=this.webauthnService)===null||i===void 0?void 0:i.fetchPublicKeyCredentialCreationOptions(t,r);if(!o){console.warn("no credential creation option returned by webauthn service"),console.log("skipping conditional passkey registration...");return}return(s=this.webauthnService)===null||s===void 0?void 0:s.startRegistration(o,r)}catch(o){console.log("error",o)}})}registerPasskey(t){return D(this,arguments,void 0,function*(r,i=!1){try{const s=yield this.createPasskeyCredential(r,i),o=yield this.processLoginflowEvent({event:"register_passkey",data:{credential_creation_response:s,conditional:i}});return console.log("passkey creation res",o),o}catch(s){console.log("error",s)}})}signOut(){this.ensureConfigured(),kt.Instance.clearSession(),kt.Instance.cleanup(),this.loginflow&&(this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(this.navigationManager.destroy(),this.navigationManager=null),this.flowEventBus&&(this.flowEventBus.clear(),this.flowEventBus=null),window.location.reload(),console.log("Refreshed the page to clear any in-memory state")}}const ht=zr.Instance;/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function D(e,t,r,i){function s(o){return o instanceof r?o:new r(function(n){n(o)})}return new(r||(r=Promise))(function(o,n){function h(y){try{g(i.next(y))}catch(w){n(w)}}function p(y){try{g(i.throw(y))}catch(w){n(w)}}function g(y){y.done?o(y.value):s(y.value).then(h,p)}g((i=i.apply(e,t||[])).next())})}class zr{constructor(){this.data=new Map}static get Instance(){return zr.instance||(zr.instance=new zr),zr.instance}get(t){return this.data.get(t)}set(t,r){this.data.set(t,r)}setConfig(t){this.data.set("config",t)}getConfig(){return this.data.get("config")}getApiBaseUrl(){const t=this.getConfig().domain;return t.startsWith("localhost")?`http://${t}`:`https://${t}`}remove(t){this.data.delete(t)}clear(){this.data.clear()}}const Mt=zr.Instance;class pt extends Error{constructor(t,r,i){super(r),this.name="LoginflowError",this.code=t,this.details=i}}class Te{constructor(){}static get Instance(){return Te.instance||(Te.instance=new Te),Te.instance}request(t){return D(this,arguments,void 0,function*(r,i={}){const s=Mt.getConfig(),o=`${Mt.getApiBaseUrl()}${r}`,n=5e4,h=new AbortController,p=setTimeout(()=>h.abort(),n);try{const g=yield fetch(o,Object.assign(Object.assign({},i),{signal:h.signal,headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},s.apiKey&&{Authorization:`Bearer ${s.apiKey}`}),s.headers),i.headers)}));if(clearTimeout(p),!g.ok){const y=yield g.json().catch(()=>({}));throw new pt(y.code||"API_ERROR",y.message||`HTTP ${g.status}: ${g.statusText}`,y.details)}return yield g.json()}catch(g){throw clearTimeout(p),g instanceof pt?g:g instanceof Error?g.name==="AbortError"?new pt("TIMEOUT","Request timeout"):new pt("NETWORK_ERROR",g.message):new pt("UNKNOWN_ERROR","An unknown error occurred")}})}post(t,r){return D(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"POST",body:r?JSON.stringify(r):void 0})})}get(t){return D(this,void 0,void 0,function*(){return this.request(t,{credentials:"include",method:"GET"})})}}class kt{constructor(){this.AUTH_SESSION_STORAGE_KEY="saasbase_auth_session",this.refreshTimeoutId=null,this.refreshPromise=null}static get Instance(){return kt.instance||(kt.instance=new kt),kt.instance}setCurrentSession(t){localStorage.setItem(this.AUTH_SESSION_STORAGE_KEY,JSON.stringify(t))}getCurrentSession(){const t=this.getStoredSession();return t?this.isSessionExpired(t)?(this.clearSession(),null):(this.shouldRefreshToken(t)&&this.triggerBackgroundRefresh(t),t):null}isAuthenticated(){return this.getCurrentSession()!==null}getAuthenticatedUser(){const t=this.getCurrentSession();if(!t||!t.id_token)return null;const r=this.decodeJWT(t.id_token);return r||null}cleanup(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),this.refreshPromise=null}clearSession(){localStorage.removeItem(this.AUTH_SESSION_STORAGE_KEY)}isSessionExpired(t){return!t||!t.expires_at?!0:Date.now()>=t.expires_at}cleanExpiredSession(){const t=this.getStoredSession();t&&this.isSessionExpired(t)&&this.clearSession()}getStoredSession(){const t=localStorage.getItem(this.AUTH_SESSION_STORAGE_KEY);if(!t)return null;try{return JSON.parse(t)}catch{return this.clearSession(),null}}decodeJWT(t){try{const i=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(i).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(s)}catch{return null}}shouldRefreshToken(t){if(!t||!t.expires_at||!t.refresh_token)return!1;const r=Date.now(),i=t.expires_at,s=t.expires_in||3600,o=r+s*1e3*.2;return i<=o}scheduleTokenRefresh(){this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null);const t=this.getCurrentSession();if(!t||!t.expires_at||!t.refresh_token)return;const r=Date.now(),i=t.expires_at,s=t.expires_in||3600,o=i-r-s*1e3*.2;o>0&&(this.refreshTimeoutId=setTimeout(()=>{this.triggerBackgroundRefresh(t)},o))}triggerBackgroundRefresh(t){this.refreshPromise||t.refresh_token&&(this.refreshPromise=this.refreshTokens(t.refresh_token).then(r=>(r&&(this.setCurrentSession(r),this.scheduleTokenRefresh()),r)).catch(r=>(console.error("Background token refresh failed:",r),null)).finally(()=>{this.refreshPromise=null}))}refreshTokens(t){return D(this,void 0,void 0,function*(){try{const r=yield Te.Instance.post("/login-flow/v1/refresh",{refresh_token:t});return{id_token:r.id_token,access_token:r.access_token,refresh_token:r.refresh_token,expires_in:r.expires_in,expires_at:Date.now()+r.expires_in*1e3}}catch(r){return r instanceof pt?console.error("Token refresh failed:",r.message,r.details):console.error("Token refresh failed:",r),this.clearSession(),null}})}}class bd{constructor(t=sessionStorage){this.storage=t,this.FLOW_STATE_KEY="saasbase_loginflow_state",this.FLOW_EXPIRY_MS=540*1e3}getFlowState(){const t=this.storage.getItem(this.FLOW_STATE_KEY);if(!t)return null;try{const r=JSON.parse(t);return this.isExpired(r)?(this.clearFlowState(),null):r}catch{return this.clearFlowState(),null}}saveFlowState(t,r,i){const s=Date.now(),o=this.getFlowState(),n={flowType:t,flow_id:r,state:i.state,startedAt:(o==null?void 0:o.startedAt)||s,lastUpdatedAt:s,render_spec:i.render_spec};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(n))}restoreFromHistory(t){const r={flowType:t.flowType,flow_id:t.flow_id,state:t.state,startedAt:t.timestamp,lastUpdatedAt:t.timestamp,render_spec:void 0};this.storage.setItem(this.FLOW_STATE_KEY,JSON.stringify(r))}clearFlowState(){this.storage.removeItem(this.FLOW_STATE_KEY)}isExpired(t){return Date.now()-t.lastUpdatedAt>this.FLOW_EXPIRY_MS}get expiryMs(){return this.FLOW_EXPIRY_MS}}class gs{static detect(t,r=window.location){const i=r.pathname.toLowerCase();return i.includes(t.signinUrl)?"signin":i.includes(t.signupUrl)?"signup":"custom"}}class fd{constructor(){this.listeners=new Map}on(t,r){this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(r)}off(t,r){var i;(i=this.listeners.get(t))===null||i===void 0||i.delete(r)}emit(t,r){const i=this.listeners.get(t);i&&i.forEach(s=>{try{s(r)}catch(o){console.error(`[FlowEventBus] Error in event handler for ${t}:`,o)}})}clear(){this.listeners.clear()}clearEvent(t){this.listeners.delete(t)}}class bc{getNavigationType(){const t=performance.getEntriesByType("navigation");if(t.length>0)return t[0].type;const r=performance.navigation;if(r)switch(r.type){case 1:return"reload";case 2:return"back_forward";default:return"navigate"}return"navigate"}}class en{constructor(t,r,i=window.location,s,o){this.httpClient=Te.Instance,this.redirectTimeoutId=null,this.eventHandlers=new Map([["switch_to_signin",this.handleSwitchToSignin.bind(this)],["switch_to_signup",this.handleSwitchToSignup.bind(this)]]);const n=Mt.getConfig();if(!n.domain)throw new pt("CONFIG_ERROR","Domain is required");if(!n.appId)throw new pt("CONFIG_ERROR","App ID is required");if(!n.clientSecret)throw new pt("CONFIG_ERROR","Client Secret is required");this.flowId=t,this.location=i,this.flowStateManager=s||new bd,this.flowEventBus=r||new fd,this.navigationTypeDetector=o||new bc,kt.Instance.cleanExpiredSession(),kt.Instance.scheduleTokenRefresh()}static init(t,r,i,s,o){return D(this,void 0,void 0,function*(){const n=new en(t,r,i,s,o),h=yield n.initializeFlowInternal();return{sdk:n,flowType:h.flowType,isResumed:h.isResumed,state:h.state,render_spec:h.render_spec,auth_result:h.auth_result}})}startFlow(t,r){return D(this,void 0,void 0,function*(){if(!r.app_id)throw new pt("VALIDATION_ERROR","Client ID is required");const i=`/v1/auth-flow/${t}/start`;return this.executeFlowRequest(()=>this.httpClient.post(i,r),"START_FLOW_ERROR","Failed to start flow")})}resumeFlow(t){return D(this,void 0,void 0,function*(){const r=`/v1/auth-flow/${t}/resume`;return this.executeFlowRequest(()=>this.httpClient.post(r),"RESUME_FLOW_ERROR","Failed to resume flow")})}processEvent(t,r){return D(this,void 0,void 0,function*(){if(!t.event)throw new pt("VALIDATION_ERROR","Event type is required");const i=this.eventHandlers.get(t.event);return i?yield i():yield this.processServerEvent(t,r)})}executeFlowRequest(t,r,i,s){return D(this,void 0,void 0,function*(){try{const o=yield t();return s&&(yield s(o)),this.processAuthResult(o.auth_result),o.redirection&&this.redirect(o.redirection),o}catch(o){throw o instanceof pt?o:new pt(r,i,o instanceof Error?{originalError:o.message,stack:o.stack}:o)}})}processServerEvent(t,r){return D(this,void 0,void 0,function*(){let i=this.flowStateManager.getFlowState();if(!i&&(console.warn("Flow state expired, restarting flow before processing event"),yield this.initializeFlowInternal(),i=this.flowStateManager.getFlowState(),!i))throw new pt("FLOW_RESTART_ERROR","Failed to restart flow - no flow state after initialization");const s=i.state,o=`/v1/auth-flow/${i.flowType}/events`,n=yield this.executeFlowRequest(()=>this.httpClient.post(o,t),"PROCESS_EVENT_ERROR","Failed to process event",r);if(!n.auth_result){this.flowStateManager.saveFlowState(i.flowType,i.flow_id,n);const h=this.flowStateManager.getFlowState();if(h){const p=s!==n.state;this.flowEventBus.emit("flow:updated",{flowState:h,isNewStep:p})}}return n})}processAuthResult(t){if(t){const r={id_token:t.id_token,access_token:t.access_token,refresh_token:t.refresh_token,expires_in:t.expires_in,expires_at:Date.now()+t.expires_in*1e3};kt.Instance.setCurrentSession(r),kt.Instance.scheduleTokenRefresh(),this.flowStateManager.clearFlowState(),this.reloadPage()}}initializeFlowInternal(){return D(this,void 0,void 0,function*(){const t=Mt.getConfig(),r=gs.detect(t,this.location);this.validateFlowType(r);const i=this.flowStateManager.getFlowState();return this.shouldResumeFlow(i,r)?yield this.resumeExistingFlow(i,r):yield this.startNewFlow(r)})}validateFlowType(t){if(t==="custom"&&!this.flowId)throw new pt("FLOW_ID_ERROR","Flow ID is required for custom flows")}shouldResumeFlow(t,r){if(!t)return!1;const s=new URLSearchParams(this.location.search).get("resume")==="true",o=this.navigationTypeDetector.getNavigationType();if(o==="navigate"&&!s)return this.flowStateManager.clearFlowState(),console.log(`Fresh navigation detected (type: ${o}), starting new flow`),!1;if(t.flowType!==r)return this.flowStateManager.clearFlowState(),console.log(`Flow type changed from ${t.flowType} to ${r}, starting new flow, flow_id: ${this.flowId}`),!1;if(r==="custom"&&t.flow_id!==this.flowId)return this.flowStateManager.clearFlowState(),console.log(`Custom flow ID changed, starting new flow, flow_id: ${this.flowId}`),!1;const n=s?"explicit resume=true":`navigation type: ${o}`;return console.log(`Resuming existing flow (${n})`),!0}resumeExistingFlow(t,r){return D(this,void 0,void 0,function*(){try{const i=yield this.resumeFlow(r);if(!i.auth_result){this.flowStateManager.saveFlowState(r,t.flow_id,i);const s=this.flowStateManager.getFlowState();s&&this.flowEventBus.emit("flow:resumed",{flowState:s})}return{flowType:r,isResumed:!0,state:i.state,render_spec:i.render_spec,auth_result:i.auth_result}}catch(i){return this.flowStateManager.clearFlowState(),console.warn("Failed to resume flow, starting fresh:",i),yield this.startNewFlow(r)}})}startNewFlow(t){return D(this,void 0,void 0,function*(){const r=Mt.getConfig(),i=new URLSearchParams(this.location.search),s={};i.forEach((h,p)=>{s[p]=h}),console.log("metadata",s);const o={app_id:r.appId,client_secret:r.clientSecret,origin_url:this.location.href,signin_url:r.signinUrl,signup_url:r.signupUrl,locale:r.locale||"en",flow_id:this.determineFlowId(t),metadata:s},n=yield this.startFlow(t,o);if(!n.auth_result){this.flowStateManager.saveFlowState(t,o.flow_id,n);const h=this.flowStateManager.getFlowState();h&&this.flowEventBus.emit("flow:started",{flowState:h})}return{flowType:t,isResumed:!1,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result}})}determineFlowId(t){switch(t){case"signin":return this.flowId||"signin-flow";case"signup":return this.flowId||"signup-flow";case"custom":if(!this.flowId)throw new pt("FLOW_ID_ERROR","Flow ID is required for custom flows");return this.flowId}}handleSwitchToSignin(){return D(this,void 0,void 0,function*(){const t=Mt.getConfig();return this.redirect({url:t.signinUrl,redirect_delay:0}),{state:"End"}})}handleSwitchToSignup(){return D(this,void 0,void 0,function*(){const t=Mt.getConfig();return this.redirect({url:t.signupUrl,redirect_delay:0}),{state:"End"}})}redirect(t){t.url&&(this.redirectTimeoutId!==null&&(console.log("Clearing existing redirect timeout before scheduling new redirect to:",t.url),clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.redirectTimeoutId=setTimeout(()=>{this.location.href=t.url},t.redirect_delay*1e3))}reloadPage(){setTimeout(()=>{this.location.reload()},0)}getEventBus(){return this.flowEventBus}cleanup(){this.redirectTimeoutId&&(clearTimeout(this.redirectTimeoutId),this.redirectTimeoutId=null),this.flowEventBus.clear()}}class fc{constructor(t){this.delayMs=t,this.timerId=null}debounce(t){this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{t(),this.timerId=null},this.delayMs)}cancel(){this.timerId&&(clearTimeout(this.timerId),this.timerId=null)}isPending(){return this.timerId!==null}}class vc{pushState(t,r,i){history.pushState(t,r,i)}replaceState(t,r,i){history.replaceState(t,r,i)}get state(){return history.state}}class yc{constructor(t,r,i=!1,s=window.location,o,n){this.popstateListener=null,this.pageshowListener=null,this.isProcessing=!1,this.isHandlingNavigationEvent=!1,this.onFlowRestartNeeded=null,this.onFlowRestartNeeded=r,this.skipHistoryTracking=i,this.debouncer=new fc(200),this.location=s,this.flowStateManager=o||new bd,this.historyAdapter=n||new vc,this.subscribeToFlowEvents(t),this.initializeListener()}subscribeToFlowEvents(t){t.on("flow:started",this.handleFlowStart.bind(this)),t.on("flow:updated",this.handleFlowUpdate.bind(this)),t.on("flow:resumed",this.handleFlowResume.bind(this))}initializeListener(){this.popstateListener=t=>{console.log("[NavigationManager] popstate event received"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Debounce timeout fired, handling popstate"),this.handlePopState(t)})},this.pageshowListener=t=>{t.persisted&&(console.log("[NavigationManager] Page restored from bfcache"),this.debouncer.debounce(()=>{console.log("[NavigationManager] Handling bfcache restoration"),this.handleBfcacheRestoration()}))},window.addEventListener("popstate",this.popstateListener),window.addEventListener("pageshow",this.pageshowListener)}handlePopState(t){return D(this,void 0,void 0,function*(){if(this.isProcessing){console.log("[NavigationManager] Already processing popstate, skipping");return}console.log("[NavigationManager] Starting popstate processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const r=t.state,i=this.flowStateManager.getFlowState(),s=Mt.getConfig(),o=gs.detect(s,this.location);if(r&&this.restoreHistoryStateToSession(r),this.shouldRestartFlow(r,i,o)){yield this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from history")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}})}handleBfcacheRestoration(){return D(this,void 0,void 0,function*(){if(this.isProcessing){console.log("[NavigationManager] Already processing bfcache restoration, skipping");return}console.log("[NavigationManager] Starting bfcache restoration processing"),this.isProcessing=!0,this.isHandlingNavigationEvent=!0;try{const t=this.historyAdapter.state,r=this.flowStateManager.getFlowState(),i=Mt.getConfig(),s=gs.detect(i,this.location);if(t&&this.restoreHistoryStateToSession(t),this.shouldRestartFlow(t,r,s)){yield this.triggerFlowRestart();return}console.log("[NavigationManager] Valid state restored from bfcache")}finally{this.isProcessing=!1,this.isHandlingNavigationEvent=!1}})}restoreHistoryStateToSession(t){console.log("[NavigationManager] Restoring history state to session storage:",t),this.flowStateManager.restoreFromHistory(t)}shouldRestartFlow(t,r,i){return t&&t.flowType!==i?(console.log("[NavigationManager] Flow type changed via navigation:",t.flowType,"→",i),this.flowStateManager.clearFlowState(),!0):t?Date.now()-t.timestamp>this.flowStateManager.expiryMs?(console.log("[NavigationManager] History state expired, clearing and restarting flow"),this.flowStateManager.clearFlowState(),!0):(console.log("[NavigationManager] Valid history state restored, triggering restart to resume flow"),!0):(console.log("[NavigationManager] No history state, skipping"),!1)}triggerFlowRestart(){return D(this,void 0,void 0,function*(){this.onFlowRestartNeeded&&(yield this.onFlowRestartNeeded())})}createHistoryState(t){return{flowType:t.flowType,flow_id:t.flow_id,state:t.state,timestamp:Date.now()}}updateBrowserHistory(t,r){if(this.skipHistoryTracking){console.log("[NavigationManager] Skipping history tracking (created from navigation)");return}const i=this.createHistoryState(t);try{r==="push"?(this.historyAdapter.pushState(i,"",this.location.href),console.log("[NavigationManager] Pushed state to history")):(this.historyAdapter.replaceState(i,"",this.location.href),console.log("[NavigationManager] Replaced state in history"))}catch(s){console.error("[NavigationManager] Failed to update history:",s)}}handleFlowStart(t){this.updateBrowserHistory(t.flowState,"replace")}handleFlowUpdate(t){const r=this.isHandlingNavigationEvent||!t.isNewStep?"replace":"push";this.updateBrowserHistory(t.flowState,r)}handleFlowResume(t){this.updateBrowserHistory(t.flowState,"replace")}destroy(){this.debouncer.cancel(),this.popstateListener&&(window.removeEventListener("popstate",this.popstateListener),this.popstateListener=null),this.pageshowListener&&(window.removeEventListener("pageshow",this.pageshowListener),this.pageshowListener=null),this.onFlowRestartNeeded=null}}let qe=new AbortController;class wc{constructor(){this.httpClient=Te.Instance,this.capabilities={webauthn:!1},this.capabilitiesDetected=!1}detectCapabilities(){return D(this,void 0,void 0,function*(){if(!this.capabilitiesDetected)try{if(typeof window.PublicKeyCredential=="function"?this.capabilities.webauthn=!0:this.capabilities.webauthn=!1,typeof PublicKeyCredential.getClientCapabilities=="function"){const t=yield PublicKeyCredential.getClientCapabilities();this.capabilities=Object.assign(Object.assign({},this.capabilities),t);return}typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(this.capabilities.userVerifyingPlatformAuthenticator=yield PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()),(PublicKeyCredential==null?void 0:PublicKeyCredential.isConditionalMediationAvailable)!==void 0&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"?this.capabilities.conditionalGet=yield PublicKeyCredential.isConditionalMediationAvailable():this.capabilities.conditionalGet=!1}finally{this.capabilitiesDetected=!0}})}fetchPublicKeyCredentialRequestOptions(t,r){return D(this,void 0,void 0,function*(){try{return this.httpClient.post("/webauthn/login/options",{conditional:r,flow_type:t})}catch(i){return console.error("error",i),null}})}fetchPublicKeyCredentialCreationOptions(t,r){return D(this,void 0,void 0,function*(){try{return this.httpClient.post("/webauthn/register/options",{conditional:r,flow_type:t})}catch(i){return console.error("error",i),null}})}startRegistration(t,r){return D(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialCreationOptionsJSON provided"),null;qe.abort(),qe=new AbortController;const i=this.toPublicKeyCredentialCreationOptions(t),s={signal:qe.signal,publicKey:i};if(r){if(!this.isConditionalCreateAvailable())return console.error("Conditional create mediation not supported in this browser"),null;s.mediation="conditional"}try{const o=yield navigator.credentials.create(s);if(!o){console.error("no credential returned by authenticator");return}const{id:n,rawId:h,response:p,type:g}=o;let y;typeof p.getTransports=="function"&&(y=p.getTransports());let w;if(typeof p.getPublicKeyAlgorithm=="function")try{w=p.getPublicKeyAlgorithm()}catch(S){Ks("getPublicKeyAlgorithm()",S)}let E;if(typeof p.getPublicKey=="function")try{const S=p.getPublicKey();S!==null&&(E=this.bufferToBase64URLString(S))}catch(S){Ks("getPublicKey()",S)}let C;if(typeof p.getAuthenticatorData=="function")try{C=this.bufferToBase64URLString(p.getAuthenticatorData())}catch(S){Ks("getAuthenticatorData()",S)}return{id:n,rawId:this.bufferToBase64URLString(h),response:{attestationObject:this.bufferToBase64URLString(p.attestationObject),clientDataJSON:this.bufferToBase64URLString(p.clientDataJSON),transports:y,publicKeyAlgorithm:w,publicKey:E,authenticatorData:C},type:g,clientExtensionResults:o.getClientExtensionResults(),authenticatorAttachment:this.toAuthenticatorAttachment(o.authenticatorAttachment)}}catch(o){const n=this.identifyAuthenticationError({error:o,options:s});return n instanceof Ve?console.error(`WebAuthn authentication failed with code: ${n.code}, message: ${n.message}`):console.error("WebAuthn authentication failed with error:",o),null}})}startAuthentication(t,r){return D(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),!t)return console.error("No PublicKeyCredentialRequestOptionsJSON provided"),null;if(!this.isWebAuthnAvailable())return console.error("WebAuthn not supported in this browser"),null;qe.abort(),qe=new AbortController;const i=this.toPublicKeyCredentialRequestOptions(t),s={signal:qe.signal,publicKey:i};if(r){if(!this.isConditionalGetAvailable())return console.error("Conditional mediation not supported in this browser"),null;s.mediation="conditional",s.publicKey&&(s.publicKey.allowCredentials=[])}try{const o=yield navigator.credentials.get(s);return this.toPublicKeyCredentialJSON(o)}catch(o){const n=this.identifyAuthenticationError({error:o,options:s});return n instanceof Ve?console.error(`WebAuthn authentication failed with code: ${n.code}, message: ${n.message}`):console.error("WebAuthn authentication failed with error:",o),null}})}signalUnknownCredential(t,r){return D(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),this.isSignalUnknownCredentialAvailable())try{yield PublicKeyCredential.signalUnknownCredential({rpId:t,credentialId:r})}catch(i){console.error("Failed to signal unknown credential:",i)}else console.warn("signalUnknownCredential not supported in this browser")})}signalCurrentUserDetails(t){return D(this,void 0,void 0,function*(){if(yield this.detectCapabilities(),this.isSignalCurrentUserDetailsAvailable())try{yield PublicKeyCredential.signalCurrentUserDetails(t)}catch(r){console.error("Failed to signal current user details:",r)}else console.warn("signalCurrentUserDetails not supported. Ask user to update manually.")})}toPublicKeyCredentialDescriptor(t){const{id:r}=t;return Object.assign(Object.assign({},t),{id:this.base64URLStringToBuffer(r),type:t.type,transports:t.transports})}toAuthenticatorAttachment(t){const r=["cross-platform","platform"];if(t&&!(r.indexOf(t)<0))return t}bufferToBase64URLString(t){const r=new Uint8Array(t);let i="";for(const o of r)i+=String.fromCharCode(o);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}base64URLStringToBuffer(t){const r=t.replace(/-/g,"+").replace(/_/g,"/"),i=(4-r.length%4)%4,s=r.padEnd(r.length+i,"="),o=atob(s),n=new ArrayBuffer(o.length),h=new Uint8Array(n);for(let p=0;p<o.length;p++)h[p]=o.charCodeAt(p);return n}toPublicKeyCredentialJSON(t){if(typeof t.toJSON=="function")return t.toJSON();const r=t.response;return{id:t.id,type:t.type,rawId:this.bufferToBase64URLString(t.rawId),authenticatorAttachment:this.toAuthenticatorAttachment(t.authenticatorAttachment),clientExtensionResults:t==null?void 0:t.getClientExtensionResults(),response:{clientDataJSON:this.bufferToBase64URLString(r.clientDataJSON),authenticatorData:this.bufferToBase64URLString(r.authenticatorData),signature:this.bufferToBase64URLString(r.signature),userHandle:r.userHandle?this.bufferToBase64URLString(r.userHandle):void 0}}}toPublicKeyCredentialCreationOptions(t){var r;if(typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const i={challenge:this.base64URLStringToBuffer(t.challenge),rp:{id:t.rp.id,name:t.rp.name},user:{displayName:t.user.displayName,id:this.base64URLStringToBuffer(t.user.id),name:t.user.name},pubKeyCredParams:t.pubKeyCredParams.map(s=>({alg:s.alg,type:s.type})),timeout:t.timeout};if(t.attestation&&(i.attestation=t.attestation),t.extensions!==void 0&&(i.extensions=t.extensions),t.authenticatorSelection){const s={};t.authenticatorSelection.authenticatorAttachment&&(s.authenticatorAttachment=t.authenticatorSelection.authenticatorAttachment),t.authenticatorSelection.requireResidentKey&&(s.requireResidentKey=t.authenticatorSelection.requireResidentKey),t.authenticatorSelection.residentKey&&(s.residentKey=t.authenticatorSelection.residentKey),t.authenticatorSelection.userVerification&&(s.userVerification=t.authenticatorSelection.userVerification),i.authenticatorSelection=s}return!((r=t.excludeCredentials)===null||r===void 0)&&r.length&&(i.excludeCredentials=t.excludeCredentials.map(s=>this.toPublicKeyCredentialDescriptor(s))),i}toPublicKeyCredentialRequestOptions(t){var r;if(typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const i={challenge:this.base64URLStringToBuffer(t.challenge)};return t.rpId!==void 0&&(i.rpId=t.rpId),t.timeout!==void 0&&(i.timeout=t.timeout),t.userVerification!==void 0&&(i.userVerification=t.userVerification),t.extensions!==void 0&&(i.extensions=t.extensions),!((r=t.allowCredentials)===null||r===void 0)&&r.length&&(i.allowCredentials=t.allowCredentials.map(s=>this.toPublicKeyCredentialDescriptor(s))),i}identifyAuthenticationError({error:t,options:r}){const{publicKey:i}=r;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(r.signal instanceof AbortSignal)return new Ve({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Ve({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const s=window.location.hostname;if(_c(s)){if(i.rpId!==s)return new Ve({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Ve({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Ve({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}isPublicKeyCredentialRequestOptionsJSON(t){return typeof t=="object"&&t!==null&&"challenge"in t}isWebAuthnAvailable(){return this.capabilities.webauthn}isSignalAllAcceptedCredentialsAvailable(){return!!this.capabilities.signalAllAcceptedCredentials}isSignalCurrentUserDetailsAvailable(){return!!this.capabilities.signalCurrentUserDetails}isSignalUnknownCredentialAvailable(){return!!this.capabilities.signalUnknownCredential}isConditionalGetAvailable(){return!!this.capabilities.conditionalGet}isConditionalCreateAvailable(){return!!this.capabilities.conditionalCreate}isHybridTransportAvailable(){return!!this.capabilities.hybridTransport}destroy(){qe.abort()}}function Ks(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
2
+ `,t)}class Ve extends Error{constructor({message:t,code:r,cause:i,name:s}){super(t),this.name=s??i.name,this.code=r}}function _c(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}class Ur{constructor(){this.configured=!1,this.loginflow=null,this.navigationManager=null,this.flowEventBus=null,this.webauthnService=null}static get Instance(){return Ur.instance||(Ur.instance=new Ur),Ur.instance}ensureConfigured(){if(!this.configured)throw new pt("NOT_CONFIGURED","Auth.configure() must be called before using Auth methods")}ensureLoginflowInitialized(){if(!this.loginflow)throw new pt("LOGINFLOW_NOT_INITIALIZED","Call Auth.startLoginflow() first")}startLoginflowInternal(t){return D(this,arguments,void 0,function*(r,i=!1){this.ensureConfigured(),this.webauthnService&&(console.log("[AuthService] Cleaning up and aborting ongoing webauthn flows"),this.webauthnService.destroy(),this.webauthnService=null),this.loginflow&&(console.log("[AuthService] Cleaning up old loginflow instance"),this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(console.log("[AuthService] Cleaning up old navigation manager instance"),this.navigationManager.destroy(),this.navigationManager=null),this.webauthnService=new wc,this.webauthnService.detectCapabilities(),this.flowEventBus=new fd,this.navigationManager=new yc(this.flowEventBus,()=>D(this,void 0,void 0,function*(){console.log("[AuthService] Navigation restart triggered, restarting loginflow"),yield this.startLoginflowInternal(void 0,!1)}),i);const s=yield en.init(r,this.flowEventBus),o=Mt.getConfig();this.startPasskeyAuthentication(s.flowType,!0),this.loginflow=s.sdk;const n={flowType:s.flowType,isResumed:s.isResumed,state:s.state,render_spec:s.render_spec,auth_result:s.auth_result};return o.onFlowStateChange&&o.onFlowStateChange({eventType:s.isResumed?"flow_resumed":"flow_started",flowType:s.flowType,state:s.state,render_spec:s.render_spec,auth_result:s.auth_result,isResumed:s.isResumed}),n})}configure(t){if(!t.domain||!t.appId||!t.clientSecret)throw new pt("CONFIG_ERROR","domain, appId, and clientSecret are required");Mt.setConfig(t),this.configured=!0}isAuthenticated(){return this.ensureConfigured(),kt.Instance.isAuthenticated()}getCurrentSession(){return this.ensureConfigured(),kt.Instance.getCurrentSession()}getAuthenticatedUser(){return this.ensureConfigured(),kt.Instance.getAuthenticatedUser()}startLoginflow(t){return D(this,void 0,void 0,function*(){return this.startLoginflowInternal(t,!1)})}processLoginflowEvent(t){return D(this,void 0,void 0,function*(){var r,i;this.ensureConfigured(),this.ensureLoginflowInitialized();const s=Mt.getConfig(),o=gs.detect(s,location);if(t.event==="signin_with_passkey"&&!(!((r=t.data)===null||r===void 0)&&r.credential_request)){const h=yield this.getPasskeyCredential(o,!1);if(!h||!h.cred)return console.error("no credential returned by browser"),{state:""};t.data={credential_request:h.cred}}if(t.event==="register_passkey"&&!(!((i=t.data)===null||i===void 0)&&i.conditional)){console.log("attempt to register a passkey");const h=yield this.createPasskeyCredential(o,!1);if(!h)return console.error("no credential created by browser"),{state:""};t.data={credential_creation_response:h,conditional:!1}}const n=yield this.loginflow.processEvent(t,h=>D(this,void 0,void 0,function*(){var p;if(!((p=h.data)===null||p===void 0)&&p.conditional_create_enabled){console.log("attempt to register a passkey conditionally");const g=yield this.registerPasskey(o,!0);g&&(g.render_spec=void 0,h.render_spec=void 0)}}));if(console.log("render spec",n.render_spec),s.onFlowStateChange){const h=sessionStorage.getItem("saasbase_loginflow_state");let p="custom";if(h)try{p=JSON.parse(h).flowType}catch(g){console.error("Failed to parse flow state:",g)}s.onFlowStateChange({eventType:"flow_updated",flowType:p,state:n.state,render_spec:n.render_spec,auth_result:n.auth_result})}return n})}getPasskeyCredential(t,r){return D(this,void 0,void 0,function*(){var i,s;const o=yield(i=this.webauthnService)===null||i===void 0?void 0:i.fetchPublicKeyCredentialRequestOptions(t,r);if(!o)return console.error("failed to fetch public key request options"),null;try{return{cred:yield(s=this.webauthnService)===null||s===void 0?void 0:s.startAuthentication(o,r),options:o}}catch(n){return console.error("error starting authentication",n),null}})}startPasskeyAuthentication(t){return D(this,arguments,void 0,function*(r,i=!1){var s,o;const n=yield this.getPasskeyCredential(r,i);if(!n||!n.cred){console.error("no credential found");return}const{cred:h,options:p}=n;try{((s=(yield this.processLoginflowEvent({event:"signin_with_passkey",data:{credential_request:h}})).data)===null||s===void 0?void 0:s.error)==="CredentialNotFound"&&(p.rpId&&h.id?(o=this.webauthnService)===null||o===void 0||o.signalUnknownCredential(p.rpId,h.id):console.log("missing rpId or credential id for signalUnknownCredential"))}catch(g){console.error("failed to signin with passkey",g)}})}createPasskeyCredential(t,r){return D(this,void 0,void 0,function*(){var i,s;try{const o=yield(i=this.webauthnService)===null||i===void 0?void 0:i.fetchPublicKeyCredentialCreationOptions(t,r);if(!o){console.warn("no credential creation option returned by webauthn service"),console.log("skipping conditional passkey registration...");return}return(s=this.webauthnService)===null||s===void 0?void 0:s.startRegistration(o,r)}catch(o){console.log("error",o)}})}registerPasskey(t){return D(this,arguments,void 0,function*(r,i=!1){try{const s=yield this.createPasskeyCredential(r,i),o=yield this.processLoginflowEvent({event:"register_passkey",data:{credential_creation_response:s,conditional:i}});return console.log("passkey creation res",o),o}catch(s){console.log("error",s)}})}signOut(){this.ensureConfigured(),kt.Instance.clearSession(),kt.Instance.cleanup(),this.loginflow&&(this.loginflow.cleanup(),this.loginflow=null),this.navigationManager&&(this.navigationManager.destroy(),this.navigationManager=null),this.flowEventBus&&(this.flowEventBus.clear(),this.flowEventBus=null),window.location.reload(),console.log("Refreshed the page to clear any in-memory state")}}const dt=Ur.Instance;/**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const Qi=globalThis,rn=Qi.ShadowRoot&&(Qi.ShadyCSS===void 0||Qi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sn=Symbol(),Nn=new WeakMap;let vd=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==sn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(rn&&t===void 0){const i=r!==void 0&&r.length===1;i&&(t=Nn.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Nn.set(r,t))}return t}toString(){return this.cssText}};const xc=e=>new vd(typeof e=="string"?e:e+"",void 0,sn),yd=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[o+1],e[0]);return new vd(r,e,sn)},Sc=(e,t)=>{if(rn)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const i=document.createElement("style"),s=Qi.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)}},zn=rn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const i of t.cssRules)r+=i.cssText;return xc(r)})(e):e;/**
6
+ */const ts=globalThis,rn=ts.ShadowRoot&&(ts.ShadyCSS===void 0||ts.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sn=Symbol(),Nn=new WeakMap;let vd=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==sn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(rn&&t===void 0){const i=r!==void 0&&r.length===1;i&&(t=Nn.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Nn.set(r,t))}return t}toString(){return this.cssText}};const xc=e=>new vd(typeof e=="string"?e:e+"",void 0,sn),yd=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[o+1],e[0]);return new vd(r,e,sn)},Sc=(e,t)=>{if(rn)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const i=document.createElement("style"),s=ts.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)}},zn=rn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const i of t.cssRules)r+=i.cssText;return xc(r)})(e):e;/**
7
7
  * @license
8
8
  * Copyright 2017 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */const{is:$c,defineProperty:Cc,getOwnPropertyDescriptor:Ec,getOwnPropertyNames:kc,getOwnPropertySymbols:Rc,getPrototypeOf:Ic}=Object,Le=globalThis,jn=Le.trustedTypes,Oc=jn?jn.emptyScript:"",Ys=Le.reactiveElementPolyfillSupport,hi=(e,t)=>e,gs={toAttribute(e,t){switch(t){case Boolean:e=e?Oc:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},on=(e,t)=>!$c(e,t),Un={attribute:!0,type:String,converter:gs,reflect:!1,useDefault:!1,hasChanged:on};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Le.litPropertyMetadata??(Le.litPropertyMetadata=new WeakMap);let Lr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Un){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,r);s!==void 0&&Cc(this.prototype,t,s)}}static getPropertyDescriptor(t,r,i){const{get:s,set:o}=Ec(this.prototype,t)??{get(){return this[r]},set(n){this[r]=n}};return{get:s,set(n){const h=s==null?void 0:s.call(this);o==null||o.call(this,n),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Un}static _$Ei(){if(this.hasOwnProperty(hi("elementProperties")))return;const t=Ic(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(hi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hi("properties"))){const r=this.properties,i=[...kc(r),...Rc(r)];for(const s of i)this.createProperty(s,r[s])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[i,s]of r)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[r,i]of this.elementProperties){const s=this._$Eu(r,i);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)r.unshift(zn(s))}else t!==void 0&&r.push(zn(t));return r}static _$Eu(t,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Sc(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$ET(t,r){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:gs).toAttribute(r,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,r){var o,n;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const h=i.getPropertyOptions(s),u=typeof h.converter=="function"?{fromAttribute:h.converter}:((o=h.converter)==null?void 0:o.fromAttribute)!==void 0?h.converter:gs;this._$Em=s;const g=u.fromAttribute(r,h.type);this[s]=g??((n=this._$Ej)==null?void 0:n.get(s))??g,this._$Em=null}}requestUpdate(t,r,i,s=!1,o){var n;if(t!==void 0){const h=this.constructor;if(s===!1&&(o=this[t]),i??(i=h.getPropertyOptions(t)),!((i.hasChanged??on)(o,r)||i.useDefault&&i.reflect&&o===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(h._$Eu(t,i))))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:i,reflect:s,wrapped:o},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??r??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(r=void 0),this._$AL.set(t,r)),s===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,n]of s){const{wrapped:h}=n,u=this[o];h!==!0||this._$AL.has(o)||u===void 0||this.C(o,void 0,n,u)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(r)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};Lr.elementStyles=[],Lr.shadowRootOptions={mode:"open"},Lr[hi("elementProperties")]=new Map,Lr[hi("finalized")]=new Map,Ys==null||Ys({ReactiveElement:Lr}),(Le.reactiveElementVersions??(Le.reactiveElementVersions=[])).push("2.1.2");/**
10
+ */const{is:$c,defineProperty:Cc,getOwnPropertyDescriptor:Ec,getOwnPropertyNames:kc,getOwnPropertySymbols:Rc,getPrototypeOf:Ic}=Object,Le=globalThis,Un=Le.trustedTypes,Oc=Un?Un.emptyScript:"",Ys=Le.reactiveElementPolyfillSupport,ui=(e,t)=>e,ms={toAttribute(e,t){switch(t){case Boolean:e=e?Oc:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},on=(e,t)=>!$c(e,t),jn={attribute:!0,type:String,converter:ms,reflect:!1,useDefault:!1,hasChanged:on};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Le.litPropertyMetadata??(Le.litPropertyMetadata=new WeakMap);let Nr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=jn){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,r);s!==void 0&&Cc(this.prototype,t,s)}}static getPropertyDescriptor(t,r,i){const{get:s,set:o}=Ec(this.prototype,t)??{get(){return this[r]},set(n){this[r]=n}};return{get:s,set(n){const h=s==null?void 0:s.call(this);o==null||o.call(this,n),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??jn}static _$Ei(){if(this.hasOwnProperty(ui("elementProperties")))return;const t=Ic(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ui("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ui("properties"))){const r=this.properties,i=[...kc(r),...Rc(r)];for(const s of i)this.createProperty(s,r[s])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[i,s]of r)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[r,i]of this.elementProperties){const s=this._$Eu(r,i);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)r.unshift(zn(s))}else t!==void 0&&r.push(zn(t));return r}static _$Eu(t,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Sc(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$ET(t,r){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:ms).toAttribute(r,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,r){var o,n;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const h=i.getPropertyOptions(s),p=typeof h.converter=="function"?{fromAttribute:h.converter}:((o=h.converter)==null?void 0:o.fromAttribute)!==void 0?h.converter:ms;this._$Em=s;const g=p.fromAttribute(r,h.type);this[s]=g??((n=this._$Ej)==null?void 0:n.get(s))??g,this._$Em=null}}requestUpdate(t,r,i,s=!1,o){var n;if(t!==void 0){const h=this.constructor;if(s===!1&&(o=this[t]),i??(i=h.getPropertyOptions(t)),!((i.hasChanged??on)(o,r)||i.useDefault&&i.reflect&&o===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(h._$Eu(t,i))))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:i,reflect:s,wrapped:o},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??r??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(r=void 0),this._$AL.set(t,r)),s===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,n]of s){const{wrapped:h}=n,p=this[o];h!==!0||this._$AL.has(o)||p===void 0||this.C(o,void 0,n,p)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(r)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};Nr.elementStyles=[],Nr.shadowRootOptions={mode:"open"},Nr[ui("elementProperties")]=new Map,Nr[ui("finalized")]=new Map,Ys==null||Ys({ReactiveElement:Nr}),(Le.reactiveElementVersions??(Le.reactiveElementVersions=[])).push("2.1.2");/**
11
11
  * @license
12
12
  * Copyright 2017 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
14
- */const ui=globalThis,Dn=e=>e,ms=ui.trustedTypes,Bn=ms?ms.createPolicy("lit-html",{createHTML:e=>e}):void 0,wd="$lit$",Fe=`lit$${Math.random().toFixed(9).slice(2)}$`,_d="?"+Fe,Ac=`<${_d}>`,fr=document,yi=()=>fr.createComment(""),wi=e=>e===null||typeof e!="object"&&typeof e!="function",nn=Array.isArray,Pc=e=>nn(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Xs=`[
15
- \f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mn=/-->/g,qn=/>/g,Ve=RegExp(`>|${Xs}(?:([^\\s"'>=/]+)(${Xs}*=${Xs}*(?:[^
16
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Vn=/'/g,Hn=/"/g,xd=/^(?:script|style|textarea|title)$/i,Sd=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),d=Sd(1),te=Sd(2),vr=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Gn=new WeakMap,er=fr.createTreeWalker(fr,129);function $d(e,t){if(!nn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bn!==void 0?Bn.createHTML(t):t}const Fc=(e,t)=>{const r=e.length-1,i=[];let s,o=t===2?"<svg>":t===3?"<math>":"",n=Qr;for(let h=0;h<r;h++){const u=e[h];let g,y,w=-1,E=0;for(;E<u.length&&(n.lastIndex=E,y=n.exec(u),y!==null);)E=n.lastIndex,n===Qr?y[1]==="!--"?n=Mn:y[1]!==void 0?n=qn:y[2]!==void 0?(xd.test(y[2])&&(s=RegExp("</"+y[2],"g")),n=Ve):y[3]!==void 0&&(n=Ve):n===Ve?y[0]===">"?(n=s??Qr,w=-1):y[1]===void 0?w=-2:(w=n.lastIndex-y[2].length,g=y[1],n=y[3]===void 0?Ve:y[3]==='"'?Hn:Vn):n===Hn||n===Vn?n=Ve:n===Mn||n===qn?n=Qr:(n=Ve,s=void 0);const C=n===Ve&&e[h+1].startsWith("/>")?" ":"";o+=n===Qr?u+Ac:w>=0?(i.push(g),u.slice(0,w)+wd+u.slice(w)+Fe+C):u+Fe+(w===-2?h:C)}return[$d(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let Go=class Cd{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let o=0,n=0;const h=t.length-1,u=this.parts,[g,y]=Fc(t,r);if(this.el=Cd.createElement(g,i),er.currentNode=this.el.content,r===2||r===3){const w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(s=er.nextNode())!==null&&u.length<h;){if(s.nodeType===1){if(s.hasAttributes())for(const w of s.getAttributeNames())if(w.endsWith(wd)){const E=y[n++],C=s.getAttribute(w).split(Fe),S=/([.?@])?(.*)/.exec(E);u.push({type:1,index:o,name:S[2],strings:C,ctor:S[1]==="."?Lc:S[1]==="?"?Nc:S[1]==="@"?zc:ws}),s.removeAttribute(w)}else w.startsWith(Fe)&&(u.push({type:6,index:o}),s.removeAttribute(w));if(xd.test(s.tagName)){const w=s.textContent.split(Fe),E=w.length-1;if(E>0){s.textContent=ms?ms.emptyScript:"";for(let C=0;C<E;C++)s.append(w[C],yi()),er.nextNode(),u.push({type:2,index:++o});s.append(w[E],yi())}}}else if(s.nodeType===8)if(s.data===_d)u.push({type:2,index:o});else{let w=-1;for(;(w=s.data.indexOf(Fe,w+1))!==-1;)u.push({type:7,index:o}),w+=Fe.length-1}o++}}static createElement(t,r){const i=fr.createElement("template");return i.innerHTML=t,i}};function Vr(e,t,r=e,i){var n,h;if(t===vr)return t;let s=i!==void 0?(n=r._$Co)==null?void 0:n[i]:r._$Cl;const o=wi(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((h=s==null?void 0:s._$AO)==null||h.call(s,!1),o===void 0?s=void 0:(s=new o(e),s._$AT(e,r,i)),i!==void 0?(r._$Co??(r._$Co=[]))[i]=s:r._$Cl=s),s!==void 0&&(t=Vr(e,s._$AS(e,t.values),s,i)),t}let Tc=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??fr).importNode(r,!0);er.currentNode=s;let o=er.nextNode(),n=0,h=0,u=i[0];for(;u!==void 0;){if(n===u.index){let g;u.type===2?g=new an(o,o.nextSibling,this,t):u.type===1?g=new u.ctor(o,u.name,u.strings,this,t):u.type===6&&(g=new jc(o,this,t)),this._$AV.push(g),u=i[++h]}n!==(u==null?void 0:u.index)&&(o=er.nextNode(),n++)}return er.currentNode=fr,s}p(t){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},an=class Ed{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,r,i,s){this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Vr(this,t,r),wi(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==vr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Pc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==m&&wi(this._$AH)?this._$AA.nextSibling.data=t:this.T(fr.createTextNode(t)),this._$AH=t}$(t){var o;const{values:r,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Go.createElement($d(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(r);else{const n=new Tc(s,this),h=n.u(this.options);n.p(r),this.T(h),this._$AH=n}}_$AC(t){let r=Gn.get(t.strings);return r===void 0&&Gn.set(t.strings,r=new Go(t)),r}k(t){nn(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,s=0;for(const o of t)s===r.length?r.push(i=new Ed(this.O(yi()),this.O(yi()),this,this.options)):i=r[s],i._$AI(o),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,r);t!==this._$AB;){const s=Dn(t).nextSibling;Dn(t).remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}},ws=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,s,o){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=m}_$AI(t,r=this,i,s){const o=this.strings;let n=!1;if(o===void 0)t=Vr(this,t,r,0),n=!wi(t)||t!==this._$AH&&t!==vr,n&&(this._$AH=t);else{const h=t;let u,g;for(t=o[0],u=0;u<o.length-1;u++)g=Vr(this,h[i+u],r,u),g===vr&&(g=this._$AH[u]),n||(n=!wi(g)||g!==this._$AH[u]),g===m?t=m:t!==m&&(t+=(g??"")+o[u+1]),this._$AH[u]=g}n&&!s&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Lc=class extends ws{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}},Nc=class extends ws{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==m)}},zc=class extends ws{constructor(t,r,i,s,o){super(t,r,i,s,o),this.type=5}_$AI(t,r=this){if((t=Vr(this,t,r,0)??m)===vr)return;const i=this._$AH,s=t===m&&i!==m||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==m&&(i===m||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,t):this._$AH.handleEvent(t)}},jc=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Vr(this,t)}};const Zs=ui.litHtmlPolyfillSupport;Zs==null||Zs(Go,an),(ui.litHtmlVersions??(ui.litHtmlVersions=[])).push("3.3.2");const Uc=(e,t,r)=>{const i=(r==null?void 0:r.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const o=(r==null?void 0:r.renderBefore)??null;i._$litPart$=s=new an(t.insertBefore(yi(),o),o,void 0,r??{})}return s._$AI(e),s};/**
14
+ */const gi=globalThis,Dn=e=>e,bs=gi.trustedTypes,Bn=bs?bs.createPolicy("lit-html",{createHTML:e=>e}):void 0,wd="$lit$",Fe=`lit$${Math.random().toFixed(9).slice(2)}$`,_d="?"+Fe,Ac=`<${_d}>`,vr=document,_i=()=>vr.createComment(""),xi=e=>e===null||typeof e!="object"&&typeof e!="function",nn=Array.isArray,Pc=e=>nn(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Xs=`[
15
+ \f\r]`,ei=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mn=/-->/g,qn=/>/g,He=RegExp(`>|${Xs}(?:([^\\s"'>=/]+)(${Xs}*=${Xs}*(?:[^
16
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Vn=/'/g,Hn=/"/g,xd=/^(?:script|style|textarea|title)$/i,Sd=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),d=Sd(1),te=Sd(2),yr=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Gn=new WeakMap,rr=vr.createTreeWalker(vr,129);function $d(e,t){if(!nn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bn!==void 0?Bn.createHTML(t):t}const Fc=(e,t)=>{const r=e.length-1,i=[];let s,o=t===2?"<svg>":t===3?"<math>":"",n=ei;for(let h=0;h<r;h++){const p=e[h];let g,y,w=-1,E=0;for(;E<p.length&&(n.lastIndex=E,y=n.exec(p),y!==null);)E=n.lastIndex,n===ei?y[1]==="!--"?n=Mn:y[1]!==void 0?n=qn:y[2]!==void 0?(xd.test(y[2])&&(s=RegExp("</"+y[2],"g")),n=He):y[3]!==void 0&&(n=He):n===He?y[0]===">"?(n=s??ei,w=-1):y[1]===void 0?w=-2:(w=n.lastIndex-y[2].length,g=y[1],n=y[3]===void 0?He:y[3]==='"'?Hn:Vn):n===Hn||n===Vn?n=He:n===Mn||n===qn?n=ei:(n=He,s=void 0);const C=n===He&&e[h+1].startsWith("/>")?" ":"";o+=n===ei?p+Ac:w>=0?(i.push(g),p.slice(0,w)+wd+p.slice(w)+Fe+C):p+Fe+(w===-2?h:C)}return[$d(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let Go=class Cd{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let o=0,n=0;const h=t.length-1,p=this.parts,[g,y]=Fc(t,r);if(this.el=Cd.createElement(g,i),rr.currentNode=this.el.content,r===2||r===3){const w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(s=rr.nextNode())!==null&&p.length<h;){if(s.nodeType===1){if(s.hasAttributes())for(const w of s.getAttributeNames())if(w.endsWith(wd)){const E=y[n++],C=s.getAttribute(w).split(Fe),S=/([.?@])?(.*)/.exec(E);p.push({type:1,index:o,name:S[2],strings:C,ctor:S[1]==="."?Lc:S[1]==="?"?Nc:S[1]==="@"?zc:_s}),s.removeAttribute(w)}else w.startsWith(Fe)&&(p.push({type:6,index:o}),s.removeAttribute(w));if(xd.test(s.tagName)){const w=s.textContent.split(Fe),E=w.length-1;if(E>0){s.textContent=bs?bs.emptyScript:"";for(let C=0;C<E;C++)s.append(w[C],_i()),rr.nextNode(),p.push({type:2,index:++o});s.append(w[E],_i())}}}else if(s.nodeType===8)if(s.data===_d)p.push({type:2,index:o});else{let w=-1;for(;(w=s.data.indexOf(Fe,w+1))!==-1;)p.push({type:7,index:o}),w+=Fe.length-1}o++}}static createElement(t,r){const i=vr.createElement("template");return i.innerHTML=t,i}};function Hr(e,t,r=e,i){var n,h;if(t===yr)return t;let s=i!==void 0?(n=r._$Co)==null?void 0:n[i]:r._$Cl;const o=xi(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((h=s==null?void 0:s._$AO)==null||h.call(s,!1),o===void 0?s=void 0:(s=new o(e),s._$AT(e,r,i)),i!==void 0?(r._$Co??(r._$Co=[]))[i]=s:r._$Cl=s),s!==void 0&&(t=Hr(e,s._$AS(e,t.values),s,i)),t}let Tc=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??vr).importNode(r,!0);rr.currentNode=s;let o=rr.nextNode(),n=0,h=0,p=i[0];for(;p!==void 0;){if(n===p.index){let g;p.type===2?g=new an(o,o.nextSibling,this,t):p.type===1?g=new p.ctor(o,p.name,p.strings,this,t):p.type===6&&(g=new Uc(o,this,t)),this._$AV.push(g),p=i[++h]}n!==(p==null?void 0:p.index)&&(o=rr.nextNode(),n++)}return rr.currentNode=vr,s}p(t){let r=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},an=class Ed{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,r,i,s){this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Hr(this,t,r),xi(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==yr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Pc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==m&&xi(this._$AH)?this._$AA.nextSibling.data=t:this.T(vr.createTextNode(t)),this._$AH=t}$(t){var o;const{values:r,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Go.createElement($d(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(r);else{const n=new Tc(s,this),h=n.u(this.options);n.p(r),this.T(h),this._$AH=n}}_$AC(t){let r=Gn.get(t.strings);return r===void 0&&Gn.set(t.strings,r=new Go(t)),r}k(t){nn(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let i,s=0;for(const o of t)s===r.length?r.push(i=new Ed(this.O(_i()),this.O(_i()),this,this.options)):i=r[s],i._$AI(o),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,r);t!==this._$AB;){const s=Dn(t).nextSibling;Dn(t).remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}},_s=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,s,o){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=m}_$AI(t,r=this,i,s){const o=this.strings;let n=!1;if(o===void 0)t=Hr(this,t,r,0),n=!xi(t)||t!==this._$AH&&t!==yr,n&&(this._$AH=t);else{const h=t;let p,g;for(t=o[0],p=0;p<o.length-1;p++)g=Hr(this,h[i+p],r,p),g===yr&&(g=this._$AH[p]),n||(n=!xi(g)||g!==this._$AH[p]),g===m?t=m:t!==m&&(t+=(g??"")+o[p+1]),this._$AH[p]=g}n&&!s&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Lc=class extends _s{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}},Nc=class extends _s{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==m)}},zc=class extends _s{constructor(t,r,i,s,o){super(t,r,i,s,o),this.type=5}_$AI(t,r=this){if((t=Hr(this,t,r,0)??m)===yr)return;const i=this._$AH,s=t===m&&i!==m||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==m&&(i===m||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,t):this._$AH.handleEvent(t)}},Uc=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Hr(this,t)}};const Zs=gi.litHtmlPolyfillSupport;Zs==null||Zs(Go,an),(gi.litHtmlVersions??(gi.litHtmlVersions=[])).push("3.3.3");const jc=(e,t,r)=>{const i=(r==null?void 0:r.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const o=(r==null?void 0:r.renderBefore)??null;i._$litPart$=s=new an(t.insertBefore(_i(),o),o,void 0,r??{})}return s._$AI(e),s};/**
17
17
  * @license
18
18
  * Copyright 2017 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const rr=globalThis;let v=class extends Lr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const t=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=t.firstChild),t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Uc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return vr}};var md;v._$litElement$=!0,v.finalized=!0,(md=rr.litElementHydrateSupport)==null||md.call(rr,{LitElement:v});const Js=rr.litElementPolyfillSupport;Js==null||Js({LitElement:v});(rr.litElementVersions??(rr.litElementVersions=[])).push("4.2.2");/**
20
+ */const ir=globalThis;let v=class extends Nr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const t=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=t.firstChild),t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=jc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return yr}};var md;v._$litElement$=!0,v.finalized=!0,(md=ir.litElementHydrateSupport)==null||md.call(ir,{LitElement:v});const Js=ir.litElementPolyfillSupport;Js==null||Js({LitElement:v});(ir.litElementVersions??(ir.litElementVersions=[])).push("4.2.2");/**
21
21
  * @license
22
22
  * Copyright 2017 Google LLC
23
23
  * SPDX-License-Identifier: BSD-3-Clause
24
- */const p=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/**
24
+ */const u=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */const Dc={attribute:!0,type:String,converter:gs,reflect:!1,hasChanged:on},Bc=(e=Dc,t,r)=>{const{kind:i,metadata:s}=r;let o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),i==="setter"&&((e=Object.create(e)).wrapped=!0),o.set(r.name,e),i==="accessor"){const{name:n}=r;return{set(h){const u=t.get.call(this);t.set.call(this,h),this.requestUpdate(n,u,e,!0,h)},init(h){return h!==void 0&&this.C(n,void 0,e,h),h}}}if(i==="setter"){const{name:n}=r;return function(h){const u=this[n];t.call(this,h),this.requestUpdate(n,u,e,!0,h)}}throw Error("Unsupported decorator location: "+i)};function a(e){return(t,r)=>typeof r=="object"?Bc(e,t,r):((i,s,o)=>{const n=s.hasOwnProperty(o);return s.constructor.createProperty(o,i),n?Object.getOwnPropertyDescriptor(s,o):void 0})(e,t,r)}/**
28
+ */const Dc={attribute:!0,type:String,converter:ms,reflect:!1,hasChanged:on},Bc=(e=Dc,t,r)=>{const{kind:i,metadata:s}=r;let o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),i==="setter"&&((e=Object.create(e)).wrapped=!0),o.set(r.name,e),i==="accessor"){const{name:n}=r;return{set(h){const p=t.get.call(this);t.set.call(this,h),this.requestUpdate(n,p,e,!0,h)},init(h){return h!==void 0&&this.C(n,void 0,e,h),h}}}if(i==="setter"){const{name:n}=r;return function(h){const p=this[n];t.call(this,h),this.requestUpdate(n,p,e,!0,h)}}throw Error("Unsupported decorator location: "+i)};function a(e){return(t,r)=>typeof r=="object"?Bc(e,t,r):((i,s,o)=>{const n=s.hasOwnProperty(o);return s.constructor.createProperty(o,i),n?Object.getOwnPropertyDescriptor(s,o):void 0})(e,t,r)}/**
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
@@ -37,11 +37,11 @@
37
37
  * @license
38
38
  * Copyright 2017 Google LLC
39
39
  * SPDX-License-Identifier: BSD-3-Clause
40
- */function Ci(e,t){return(r,i,s)=>{const o=n=>{var h;return((h=n.renderRoot)==null?void 0:h.querySelector(e))??null};return Mc(r,i,{get(){return o(this)}})}}var qc=Object.defineProperty,Vc=(e,t,r,i)=>{for(var s=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=n(t,r,s)||s);return s&&qc(t,r,s),s};class de extends v{constructor(){super(),this.shadow=!1,this.__initialAttributesCache=null}parseJsonAttribute(t){try{const r=this.getAttribute(t);return r?JSON.parse(r):{}}catch{return{}}}get sbStyle(){return this.parseJsonAttribute("sb-style")}getAttributesToExclude(){return[]}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,i=""){var s,o;t.some(n=>this.isCustomPropertySet(n))&&((o=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||o.classList.add(i))}moveAttributesToElement(t,r=["id","class"]){t&&r.forEach(i=>{const s=this.getAttribute(i);s!==null&&(t.setAttribute(i,s),this.removeAttribute(i))})}removeAttributesFromHost(t=["id","class"]){t.forEach(r=>{this.hasAttribute(r)&&this.removeAttribute(r)})}captureHostAttributes(){if(this.__initialAttributesCache)return this.__initialAttributesCache;const t={};return Array.from(this.attributes).forEach(r=>{t[r.name]=r.value}),this.__initialAttributesCache=t,t}getHostClass(){return this.captureHostAttributes().class??""}removeDuplicateContent(){var o;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{var h;return n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&!((h=n.textContent)!=null&&h.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,i=[];let s;for(;s=t.nextNode();){let n;if(s.nodeType===Node.TEXT_NODE){const h=(o=s.textContent)==null?void 0:o.trim();if(!h)continue;n=`text:${h}`}else if(s instanceof HTMLElement){const h=Array.from(s.attributes).map(u=>`${u.name}=${u.value}`).sort().join(":");n=`element:${s.tagName}:${h}`}else continue;if(r.has(n)){const h=r.get(n);h!=null&&h.parentNode&&i.push(h),r.set(n,s)}else r.set(n,s)}i.forEach(n=>{var h;return(h=n.parentNode)==null?void 0:h.removeChild(n)})}moveLightDomChildrenInto(t,r){let i;r!=null&&r.length?(i=r.filter(s=>this.contains(s)&&s!==t&&!s.contains(t)),i.forEach(s=>{const o=Array.from(t.childNodes).find(n=>{var h;return(h=n.isEqualNode)==null?void 0:h.call(n,s)});o&&t.removeChild(o)})):i=Array.from(this.childNodes).filter(s=>s!==t&&!t.contains(s)&&!s.contains(t)),i.forEach(s=>t.appendChild(s))}}Vc([a({type:Boolean})],de.prototype,"shadow");/**
40
+ */function ki(e,t){return(r,i,s)=>{const o=n=>{var h;return((h=n.renderRoot)==null?void 0:h.querySelector(e))??null};return Mc(r,i,{get(){return o(this)}})}}var qc=Object.defineProperty,Vc=(e,t,r,i)=>{for(var s=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=n(t,r,s)||s);return s&&qc(t,r,s),s};class de extends v{constructor(){super(),this.shadow=!1,this.__initialAttributesCache=null}parseJsonAttribute(t){try{const r=this.getAttribute(t);return r?JSON.parse(r):{}}catch{return{}}}get sbStyle(){return this.parseJsonAttribute("sb-style")}getAttributesToExclude(){return[]}getFilteredAttributes(){const t={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(t[r.name]=r.value??"")}),t}isCustomPropertySet(t){const r=getComputedStyle(this).getPropertyValue(t).trim();return r!=="inherit"&&r.length>0}applyCustomClass(t,r,i=""){var s,o;t.some(n=>this.isCustomPropertySet(n))&&((o=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||o.classList.add(i))}moveAttributesToElement(t,r=["id","class"]){t&&r.forEach(i=>{const s=this.getAttribute(i);s!==null&&(t.setAttribute(i,s),this.removeAttribute(i))})}removeAttributesFromHost(t=["id","class"]){t.forEach(r=>{this.hasAttribute(r)&&this.removeAttribute(r)})}captureHostAttributes(){if(this.__initialAttributesCache)return this.__initialAttributesCache;const t={};return Array.from(this.attributes).forEach(r=>{t[r.name]=r.value}),this.__initialAttributesCache=t,t}getHostClass(){return this.captureHostAttributes().class??""}removeDuplicateContent(){var o;const t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{var h;return n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&!((h=n.textContent)!=null&&h.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,i=[];let s;for(;s=t.nextNode();){let n;if(s.nodeType===Node.TEXT_NODE){const h=(o=s.textContent)==null?void 0:o.trim();if(!h)continue;n=`text:${h}`}else if(s instanceof HTMLElement){const h=Array.from(s.attributes).map(p=>`${p.name}=${p.value}`).sort().join(":");n=`element:${s.tagName}:${h}`}else continue;if(r.has(n)){const h=r.get(n);h!=null&&h.parentNode&&i.push(h),r.set(n,s)}else r.set(n,s)}i.forEach(n=>{var h;return(h=n.parentNode)==null?void 0:h.removeChild(n)})}moveLightDomChildrenInto(t,r){let i;r!=null&&r.length?(i=r.filter(s=>this.contains(s)&&s!==t&&!s.contains(t)),i.forEach(s=>{const o=Array.from(t.childNodes).find(n=>{var h;return(h=n.isEqualNode)==null?void 0:h.call(n,s)});o&&t.removeChild(o)})):i=Array.from(this.childNodes).filter(s=>s!==t&&!t.contains(s)&&!s.contains(t)),i.forEach(s=>t.appendChild(s))}}Vc([a({type:Boolean})],de.prototype,"shadow");/**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
- */const kd={CHILD:2},_s=e=>(...t)=>({_$litDirective$:e,values:t});let Rd=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};/**
44
+ */const kd={CHILD:2},xs=e=>(...t)=>({_$litDirective$:e,values:t});let Rd=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};/**
45
45
  * @license
46
46
  * Copyright 2020 Google LLC
47
47
  * SPDX-License-Identifier: BSD-3-Clause
@@ -49,11 +49,11 @@
49
49
  * @license
50
50
  * Copyright 2017 Google LLC
51
51
  * SPDX-License-Identifier: BSD-3-Clause
52
- */const pi=(e,t)=>{var i;const r=e._$AN;if(r===void 0)return!1;for(const s of r)(i=s._$AO)==null||i.call(s,t,!1),pi(s,t);return!0},bs=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},Id=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),Kc(t)}};function Gc(e){this._$AN!==void 0?(bs(this),this._$AM=e,Id(this)):this._$AM=e}function Wc(e,t=!1,r=0){const i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(i))for(let o=r;o<i.length;o++)pi(i[o],!1),bs(i[o]);else i!=null&&(pi(i,!1),bs(i));else pi(this,e)}const Kc=e=>{e.type==kd.CHILD&&(e._$AP??(e._$AP=Wc),e._$AQ??(e._$AQ=Gc))};class Od extends Rd{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,i){super._$AT(t,r,i),Id(this),this.isConnected=t._$AU}_$AO(t,r=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.call(this)),r&&(pi(this,t),bs(this))}setValue(t){if(Hc(this._$Ct))this._$Ct._$AI(t,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}/**
52
+ */const mi=(e,t)=>{var i;const r=e._$AN;if(r===void 0)return!1;for(const s of r)(i=s._$AO)==null||i.call(s,t,!1),mi(s,t);return!0},fs=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},Id=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),Kc(t)}};function Gc(e){this._$AN!==void 0?(fs(this),this._$AM=e,Id(this)):this._$AM=e}function Wc(e,t=!1,r=0){const i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(i))for(let o=r;o<i.length;o++)mi(i[o],!1),fs(i[o]);else i!=null&&(mi(i,!1),fs(i));else mi(this,e)}const Kc=e=>{e.type==kd.CHILD&&(e._$AP??(e._$AP=Wc),e._$AQ??(e._$AQ=Gc))};class Od extends Rd{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,i){super._$AT(t,r,i),Id(this),this.isConnected=t._$AU}_$AO(t,r=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.call(this)),r&&(mi(this,t),fs(this))}setValue(t){if(Hc(this._$Ct))this._$Ct._$AI(t,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}/**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
55
55
  * SPDX-License-Identifier: BSD-3-Clause
56
- */let fs=class extends Rd{constructor(t){if(super(t),this.it=m,t.type!==kd.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===m||t==null)return this._t=void 0,this.it=t;if(t===vr)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};fs.directiveName="unsafeHTML",fs.resultType=1;const ln=_s(fs);/**
56
+ */let vs=class extends Rd{constructor(t){if(super(t),this.it=m,t.type!==kd.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===m||t==null)return this._t=void 0,this.it=t;if(t===yr)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};vs.directiveName="unsafeHTML",vs.resultType=1;const ln=xs(vs);/**
57
57
  * @license
58
58
  * Copyright 2021 Google LLC
59
59
  * SPDX-License-Identifier: BSD-3-Clause
@@ -73,15 +73,15 @@
73
73
  * @license
74
74
  * Copyright 2021 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
76
- */let Xc=class extends Event{constructor(t,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r}};class Kn extends Yc{constructor(t,r,i){var s,o;super(r.context!==void 0?r.initialValue:i),this.onContextRequest=n=>{if(n.context!==this.context)return;const h=n.contextTarget??n.composedPath()[0];h!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,h,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;const h=new Set;for(const[u,{consumerHost:g}]of this.subscriptions)h.has(u)||(h.add(u),g.dispatchEvent(new Ad(this.context,g,u,!0)));n.stopPropagation()},this.host=t,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),(o=(s=this.host).addController)==null||o.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Xc(this.context,this.host))}}/**
76
+ */let Xc=class extends Event{constructor(t,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r}};class Kn extends Yc{constructor(t,r,i){var s,o;super(r.context!==void 0?r.initialValue:i),this.onContextRequest=n=>{if(n.context!==this.context)return;const h=n.contextTarget??n.composedPath()[0];h!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,h,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;const h=new Set;for(const[p,{consumerHost:g}]of this.subscriptions)h.has(p)||(h.add(p),g.dispatchEvent(new Ad(this.context,g,p,!0)));n.stopPropagation()},this.host=t,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),(o=(s=this.host).addController)==null||o.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Xc(this.context,this.host))}}/**
77
77
  * @license
78
78
  * Copyright 2017 Google LLC
79
79
  * SPDX-License-Identifier: BSD-3-Clause
80
- */function Ue({context:e}){return(t,r)=>{const i=new WeakMap;if(typeof r=="object")return{get(){return t.get.call(this)},set(s){return i.get(this).setValue(s),t.set.call(this,s)},init(s){return i.set(this,new Kn(this,{context:e,initialValue:s})),s}};{t.constructor.addInitializer((n=>{i.set(n,new Kn(n,{context:e}))}));const s=Object.getOwnPropertyDescriptor(t,r);let o;if(s===void 0){const n=new WeakMap;o={get(){return n.get(this)},set(h){i.get(this).setValue(h),n.set(this,h)},configurable:!0,enumerable:!0}}else{const n=s.set;o={...s,set(h){i.get(this).setValue(h),n==null||n.call(this,h)}}}return void Object.defineProperty(t,r,o)}}}/**
80
+ */function je({context:e}){return(t,r)=>{const i=new WeakMap;if(typeof r=="object")return{get(){return t.get.call(this)},set(s){return i.get(this).setValue(s),t.set.call(this,s)},init(s){return i.set(this,new Kn(this,{context:e,initialValue:s})),s}};{t.constructor.addInitializer((n=>{i.set(n,new Kn(n,{context:e}))}));const s=Object.getOwnPropertyDescriptor(t,r);let o;if(s===void 0){const n=new WeakMap;o={get(){return n.get(this)},set(h){i.get(this).setValue(h),n.set(this,h)},configurable:!0,enumerable:!0}}else{const n=s.set;o={...s,set(h){i.get(this).setValue(h),n==null||n.call(this,h)}}}return void Object.defineProperty(t,r,o)}}}/**
81
81
  * @license
82
82
  * Copyright 2022 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */function Lt({context:e,subscribe:t}){return(r,i)=>{typeof i=="object"?i.addInitializer((function(){new Wn(this,{context:e,callback:s=>{r.set.call(this,s)},subscribe:t})})):r.constructor.addInitializer((s=>{new Wn(s,{context:e,callback:o=>{s[i]=o},subscribe:t})}))}}const Qs=new WeakMap,Zc=_s(class extends Od{render(e){return m}update(e,[t]){var i;const r=t!==this.G;return r&&this.G!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=(i=e.options)==null?void 0:i.host,this.rt(this.ct=e.element)),m}rt(e){if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let r=Qs.get(t);r===void 0&&(r=new WeakMap,Qs.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G=="function"?(e=Qs.get(this.ht??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Jc=Object.create,vs=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,th=Object.getOwnPropertyNames,eh=Object.getPrototypeOf,rh=Object.prototype.hasOwnProperty,Pd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ih=(e,t)=>{let r={};for(var i in e)vs(r,i,{get:e[i],enumerable:!0});return vs(r,Symbol.toStringTag,{value:"Module"}),r},sh=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=th(t),o=0,n=s.length,h;o<n;o++)h=s[o],!rh.call(e,h)&&h!==r&&vs(e,h,{get:(u=>t[u]).bind(null,h),enumerable:!(i=Qc(t,h))||i.enumerable});return e},oh=(e,t,r)=>(r=e==null?{}:Jc(eh(e)),sh(vs(r,"default",{value:e,enumerable:!0}),e));function c(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function l(e,t,r,i){var s=arguments.length,o=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var h=e.length-1;h>=0;h--)(n=e[h])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}var _=class extends v{constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(e=>{e==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),e==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(e)&&this.removeAttribute(e)})}getFilteredAttributes(){let e={};return Array.from(this.attributes).forEach(t=>{this.getAttributesToExclude().includes(t.name)||(e[t.name]=t.value??"")}),e}isCustomPropertySet(e){let t=getComputedStyle(this).getPropertyValue(e).trim();return t!=="inherit"&&t.length>0}applyCustomClass(e,t,r=""){var s,o;let i="";e.some(n=>this.isCustomPropertySet(n))&&(i=r),i&&((o=(s=this.shadowRoot)==null?void 0:s.querySelector(t))==null||o.classList.add(i))}removeDuplicateContent(){var s;let e=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{var n;return o.nodeType===Node.COMMENT_NODE||o.nodeType===Node.TEXT_NODE&&!((n=o.textContent)!=null&&n.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),t=new Map,r=[],i;for(;i=e.nextNode();){let o;if(i.nodeType===Node.TEXT_NODE){let n=(s=i.textContent)==null?void 0:s.trim();if(!n)continue;o=`text:${n}`}else if(i instanceof HTMLElement){let n=Array.from(i.attributes).map(h=>`${h.name}=${h.value}`).sort().join(":");o=`element:${i.tagName}:${n}`}else continue;if(t.has(o)){let n=t.get(o);n&&n.parentNode&&r.push(n),t.set(o,i)}else t.set(o,i)}r.forEach(o=>{o.parentNode&&(console.log("Removing duplicate:",o),o.parentNode.removeChild(o))})}moveLightDomChildrenInto(e,t){let r;if(t&&t.length>0){r=t.filter(i=>this.contains(i)&&i!==e&&!i.contains(e));for(let i of r){let s=Array.from(e.childNodes).find(o=>{var n;return(n=o.isEqualNode)==null?void 0:n.call(o,i)});s&&e.removeChild(s)}}else r=Array.from(this.childNodes).filter(i=>i!==e&&!e.contains(i)&&!i.contains(e));for(let i of r)e.appendChild(i)}normalizeEnum(e,t,r){if(!e)return r;let i=Object.values(t),s=Object.keys(t);return i.includes(e)?e:s.includes(e)?t[e]:r}observeStyleAndClassSync(e){this.mutationObserver=new MutationObserver(t=>{for(let r of t)if(r.type==="attributes"){if(r.attributeName==="style"){let i=this.getAttribute("style")||"";i&&(this.customStyle=i,this.removeAttribute("style"))}if(r.attributeName==="class"){let i=this.getAttribute("class")||"";i&&(e.className=i,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}};l([a({type:String,reflect:!0}),c("design:type",Object)],_.prototype,"customClass",void 0),l([a({type:String,reflect:!0}),c("design:type",Object)],_.prototype,"customStyle",void 0);function dn(){let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let r=(e+Math.random()*16)%16|0;return(t=="x"?r:r&3|8).toString(16)})}var Yn=yd`
84
+ */function Lt({context:e,subscribe:t}){return(r,i)=>{typeof i=="object"?i.addInitializer((function(){new Wn(this,{context:e,callback:s=>{r.set.call(this,s)},subscribe:t})})):r.constructor.addInitializer((s=>{new Wn(s,{context:e,callback:o=>{s[i]=o},subscribe:t})}))}}const Qs=new WeakMap,Zc=xs(class extends Od{render(e){return m}update(e,[t]){var i;const r=t!==this.G;return r&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=(i=e.options)==null?void 0:i.host,this.rt(this.ct=e.element)),m}rt(e){if(this.G!==void 0)if(this.isConnected||(e=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let r=Qs.get(t);r===void 0&&(r=new WeakMap,Qs.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.ht,void 0),r.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return typeof this.G=="function"?(e=Qs.get(this.ht??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Jc=Object.create,ys=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,th=Object.getOwnPropertyNames,eh=Object.getPrototypeOf,rh=Object.prototype.hasOwnProperty,Pd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ih=(e,t)=>{let r={};for(var i in e)ys(r,i,{get:e[i],enumerable:!0});return ys(r,Symbol.toStringTag,{value:"Module"}),r},sh=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=th(t),o=0,n=s.length,h;o<n;o++)h=s[o],!rh.call(e,h)&&h!==r&&ys(e,h,{get:(p=>t[p]).bind(null,h),enumerable:!(i=Qc(t,h))||i.enumerable});return e},oh=(e,t,r)=>(r=e==null?{}:Jc(eh(e)),sh(ys(r,"default",{value:e,enumerable:!0}),e));function c(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function l(e,t,r,i){var s=arguments.length,o=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var h=e.length-1;h>=0;h--)(n=e[h])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}var _=class extends v{constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(e=>{e==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),e==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(e)&&this.removeAttribute(e)})}getFilteredAttributes(){let e={};return Array.from(this.attributes).forEach(t=>{this.getAttributesToExclude().includes(t.name)||(e[t.name]=t.value??"")}),e}isCustomPropertySet(e){let t=getComputedStyle(this).getPropertyValue(e).trim();return t!=="inherit"&&t.length>0}applyCustomClass(e,t,r=""){var s,o;let i="";e.some(n=>this.isCustomPropertySet(n))&&(i=r),i&&((o=(s=this.shadowRoot)==null?void 0:s.querySelector(t))==null||o.classList.add(i))}removeDuplicateContent(){var s;let e=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{var n;return o.nodeType===Node.COMMENT_NODE||o.nodeType===Node.TEXT_NODE&&!((n=o.textContent)!=null&&n.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),t=new Map,r=[],i;for(;i=e.nextNode();){let o;if(i.nodeType===Node.TEXT_NODE){let n=(s=i.textContent)==null?void 0:s.trim();if(!n)continue;o=`text:${n}`}else if(i instanceof HTMLElement){let n=Array.from(i.attributes).map(h=>`${h.name}=${h.value}`).sort().join(":");o=`element:${i.tagName}:${n}`}else continue;if(t.has(o)){let n=t.get(o);n&&n.parentNode&&r.push(n),t.set(o,i)}else t.set(o,i)}r.forEach(o=>{o.parentNode&&(console.log("Removing duplicate:",o),o.parentNode.removeChild(o))})}moveLightDomChildrenInto(e,t){let r;if(t&&t.length>0){r=t.filter(i=>this.contains(i)&&i!==e&&!i.contains(e));for(let i of r){let s=Array.from(e.childNodes).find(o=>{var n;return(n=o.isEqualNode)==null?void 0:n.call(o,i)});s&&e.removeChild(s)}}else r=Array.from(this.childNodes).filter(i=>i!==e&&!e.contains(i)&&!i.contains(e));for(let i of r)e.appendChild(i)}normalizeEnum(e,t,r){if(!e)return r;let i=Object.values(t),s=Object.keys(t);return i.includes(e)?e:s.includes(e)?t[e]:r}observeStyleAndClassSync(e){this.mutationObserver=new MutationObserver(t=>{for(let r of t)if(r.type==="attributes"){if(r.attributeName==="style"){let i=this.getAttribute("style")||"";i&&(this.customStyle=i,this.removeAttribute("style"))}if(r.attributeName==="class"){let i=this.getAttribute("class")||"";i&&(e.className=i,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}};l([a({type:String,reflect:!0}),c("design:type",Object)],_.prototype,"customClass",void 0),l([a({type:String,reflect:!0}),c("design:type",Object)],_.prototype,"customStyle",void 0);function dn(){let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let r=(e+Math.random()*16)%16|0;return(t=="x"?r:r&3|8).toString(16)})}var Yn=yd`
85
85
  @font-face {
86
86
  font-family: 'GeistSans';
87
87
 
@@ -2941,7 +2941,7 @@ body {
2941
2941
  .\\[\\&_svg\\]\\:shrink-0 svg {
2942
2942
  flex-shrink: 0;
2943
2943
  }
2944
- `,Fd=new CSSStyleSheet;Fd.replaceSync(Yn.cssText||Yn.toString());var qr,nh=(qr=class extends v{constructor(){super()}connectedCallback(){super.connectedCallback(),this.shadowRoot?this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,Fd]:console.error("Shadow root not available in ShadowWrapper")}render(){return d`<div><slot></slot></div>`}},qr.styles=yd`
2944
+ `,Fd=new CSSStyleSheet;Fd.replaceSync(Yn.cssText||Yn.toString());var Vr,nh=(Vr=class extends v{constructor(){super()}connectedCallback(){super.connectedCallback(),this.shadowRoot?this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,Fd]:console.error("Shadow root not available in ShadowWrapper")}render(){return d`<div><slot></slot></div>`}},Vr.styles=yd`
2945
2945
  :host {
2946
2946
  display: block;
2947
2947
  border: 2px solid black;
@@ -2950,21 +2950,21 @@ body {
2950
2950
  .wrapper {
2951
2951
  display: block;
2952
2952
  }
2953
- `,qr);customElements.define("shadow-wrapper",nh);function Td(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Td(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Ld(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Td(e))&&(i&&(i+=" "),i+=t);return i}var cn="-",ah=e=>{let t=dh(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{let o=s.split(cn);return o[0]===""&&o.length!==1&&o.shift(),Nd(o,t)||lh(s)},getConflictingClassGroupIds:(s,o)=>{let n=r[s]||[];return o&&i[s]?[...n,...i[s]]:n}}},Nd=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let r=e[0],i=t.nextPart.get(r),s=i?Nd(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(cn);return(n=t.validators.find(({validator:h})=>h(o)))==null?void 0:n.classGroupId},Xn=/^\[(.+)\]$/,lh=e=>{if(Xn.test(e)){let t=Xn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},dh=e=>{let{theme:t,prefix:r}=e,i={nextPart:new Map,validators:[]};return hh(Object.entries(e.classGroups),r).forEach(([s,o])=>{Wo(o,i,s,t)}),i},Wo=(e,t,r,i)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:Zn(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(ch(s)){Wo(s(i),t,r,i);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,n])=>{Wo(n,Zn(t,o),r,i)})})},Zn=(e,t)=>{let r=e;return t.split(cn).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},ch=e=>e.isThemeGetter,hh=(e,t)=>t?e.map(([r,i])=>[r,i.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,n])=>[t+o,n])):s)]):e,uh=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,i=new Map,s=(o,n)=>{r.set(o,n),t++,t>e&&(t=0,i=r,r=new Map)};return{get(o){let n=r.get(o);if(n!==void 0)return n;if((n=i.get(o))!==void 0)return s(o,n),n},set(o,n){r.has(o)?r.set(o,n):s(o,n)}}},zd="!",ph=e=>{let{separator:t,experimentalParseClassName:r}=e,i=t.length===1,s=t[0],o=t.length,n=h=>{let u=[],g=0,y=0,w;for(let S=0;S<h.length;S++){let k=h[S];if(g===0){if(k===s&&(i||h.slice(S,S+o)===t)){u.push(h.slice(y,S)),y=S+o;continue}if(k==="/"){w=S;continue}}k==="["?g++:k==="]"&&g--}let E=u.length===0?h:h.substring(y),C=E.startsWith(zd);return{modifiers:u,hasImportantModifier:C,baseClassName:C?E.substring(1):E,maybePostfixModifierPosition:w&&w>y?w-y:void 0}};return r?h=>r({className:h,parseClassName:n}):n},gh=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(i=>{i[0]==="["?(t.push(...r.sort(),i),r=[]):r.push(i)}),t.push(...r.sort()),t},mh=e=>({cache:uh(e.cacheSize),parseClassName:ph(e),...ah(e)}),bh=/\s+/,fh=(e,t)=>{let{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s}=t,o=[],n=e.trim().split(bh),h="";for(let u=n.length-1;u>=0;--u){let g=n[u],{modifiers:y,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:C}=r(g),S=!!C,k=i(S?E.substring(0,C):E);if(!k){if(!S){h=g+(h.length>0?" "+h:h);continue}if(k=i(E),!k){h=g+(h.length>0?" "+h:h);continue}S=!1}let O=gh(y).join(":"),A=w?O+zd:O,F=A+k;if(o.includes(F))continue;o.push(F);let V=s(k,S);for(let M=0;M<V.length;++M){let J=V[M];o.push(A+J)}h=g+(h.length>0?" "+h:h)}return h};function vh(){let e=0,t,r,i="";for(;e<arguments.length;)(t=arguments[e++])&&(r=jd(t))&&(i&&(i+=" "),i+=r);return i}var jd=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=jd(e[i]))&&(r&&(r+=" "),r+=t);return r};function yh(e,...t){let r,i,s,o=n;function n(u){return r=mh(t.reduce((g,y)=>y(g),e())),i=r.cache.get,s=r.cache.set,o=h,h(u)}function h(u){let g=i(u);if(g)return g;let y=fh(u,r);return s(u,y),y}return function(){return o(vh.apply(null,arguments))}}var Y=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ud=/^\[(?:([a-z-]+):)?(.+)\]$/i,wh=/^\d+\/\d+$/,_h=new Set(["px","full","screen"]),xh=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$h=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ch=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=e=>jr(e)||_h.has(e)||wh.test(e),_e=e=>Gr(e,"length",Th),jr=e=>!!e&&!Number.isNaN(Number(e)),to=e=>Gr(e,"number",jr),ti=e=>!!e&&Number.isInteger(Number(e)),kh=e=>e.endsWith("%")&&jr(e.slice(0,-1)),z=e=>Ud.test(e),xe=e=>xh.test(e),Rh=new Set(["length","size","percentage"]),Ih=e=>Gr(e,Rh,Dd),Oh=e=>Gr(e,"position",Dd),Ah=new Set(["image","url"]),Ph=e=>Gr(e,Ah,Nh),Fh=e=>Gr(e,"",Lh),ei=()=>!0,Gr=(e,t,r)=>{let i=Ud.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):r(i[2]):!1},Th=e=>Sh.test(e)&&!$h.test(e),Dd=()=>!1,Lh=e=>Ch.test(e),Nh=e=>Eh.test(e),zh=yh(()=>{let e=Y("colors"),t=Y("spacing"),r=Y("blur"),i=Y("brightness"),s=Y("borderColor"),o=Y("borderRadius"),n=Y("borderSpacing"),h=Y("borderWidth"),u=Y("contrast"),g=Y("grayscale"),y=Y("hueRotate"),w=Y("invert"),E=Y("gap"),C=Y("gradientColorStops"),S=Y("gradientColorStopPositions"),k=Y("inset"),O=Y("margin"),A=Y("opacity"),F=Y("padding"),V=Y("saturate"),M=Y("scale"),J=Y("sepia"),it=Y("skew"),st=Y("space"),U=Y("translate"),vt=()=>["auto","contain","none"],Wt=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",z,t],P=()=>[z,t],Be=()=>["",ge,_e],Nt=()=>["auto",jr,z],pe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Kt=()=>["solid","dashed","dotted","double","none"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],jt=()=>["start","end","center","between","around","evenly","stretch"],Ft=()=>["","0",z],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ot=()=>[jr,z];return{cacheSize:500,separator:":",theme:{colors:[ei],spacing:[ge,_e],blur:["none","",xe,z],brightness:ot(),borderColor:[e],borderRadius:["none","","full",xe,z],borderSpacing:P(),borderWidth:Be(),contrast:ot(),grayscale:Ft(),hueRotate:ot(),invert:Ft(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[kh,_e],inset:ue(),margin:ue(),opacity:ot(),padding:P(),saturate:ot(),scale:ot(),sepia:Ft(),skew:ot(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[xe]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...pe(),z]}],overflow:[{overflow:Wt()}],"overflow-x":[{"overflow-x":Wt()}],"overflow-y":[{"overflow-y":Wt()}],overscroll:[{overscroll:vt()}],"overscroll-x":[{"overscroll-x":vt()}],"overscroll-y":[{"overscroll-y":vt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ti,z]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:Ft()}],shrink:[{shrink:Ft()}],order:[{order:["first","last","none",ti,z]}],"grid-cols":[{"grid-cols":[ei]}],"col-start-end":[{col:["auto",{span:["full",ti,z]},z]}],"col-start":[{"col-start":Nt()}],"col-end":[{"col-end":Nt()}],"grid-rows":[{"grid-rows":[ei]}],"row-start-end":[{row:["auto",{span:[ti,z]},z]}],"row-start":[{"row-start":Nt()}],"row-end":[{"row-end":Nt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...jt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...jt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...jt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[O]}],mx:[{mx:[O]}],my:[{my:[O]}],ms:[{ms:[O]}],me:[{me:[O]}],mt:[{mt:[O]}],mr:[{mr:[O]}],mb:[{mb:[O]}],ml:[{ml:[O]}],"space-x":[{"space-x":[st]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[st]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,t]}],"min-w":[{"min-w":[z,t,"min","max","fit"]}],"max-w":[{"max-w":[z,t,"none","full","min","max","fit","prose",{screen:[xe]},xe]}],h:[{h:[z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xe,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",to]}],"font-family":[{font:[ei]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",jr,to]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ge,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Kt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ge,_e]}],"underline-offset":[{"underline-offset":["auto",ge,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...pe(),Oh]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ih]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ph]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Kt(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Kt()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Kt()]}],"outline-offset":[{"outline-offset":[ge,z]}],"outline-w":[{outline:[ge,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[ge,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xe,Fh]}],"shadow-color":[{shadow:[ei]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...zt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":zt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",xe,z]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[w]}],saturate:[{saturate:[V]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:ot()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:ot()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ti,z]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[it]}],"skew-y":[{"skew-y":[it]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ge,_e,to]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function b(...e){return zh(Ld(e))}var jh=class extends Od{constructor(){super(...arguments),this.prevData={}}render(e){return m}update(e,[t]){var r;this.element!==e.element&&(this.element=e.element),this.host=((r=e.options)==null?void 0:r.host)||this.element,this.apply(t),this.groom(t),this.prevData={...t}}apply(e){if(!e)return;let{prevData:t,element:r}=this;for(let i in e){let s=e[i];s!==t[i]&&(r[i]=s)}}groom(e){let{prevData:t,element:r}=this;if(t)for(let i in t)(!e||!(i in e)&&r[i]===t[i])&&(r[i]=void 0)}},Uh=class extends jh{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(let t in e){let r=e[t];r!==this.eventData[t]&&this.applyEvent(t,r)}}applyEvent(e,t){let{prevData:r,element:i}=this;this.eventData[e]=t,r[e]&&i.removeEventListener(e,this,t),i.addEventListener(e,this,t)}groom(e){let{prevData:t,element:r}=this;if(t)for(let i in t)(!e||!(i in e)&&r[i]===t[i])&&this.groomEvent(i,t[i])}groomEvent(e,t){let{element:r}=this;delete this.eventData[e],r.removeEventListener(e,this,t)}handleEvent(e){let t=this.eventData[e.type];typeof t=="function"?t.call(this.host,e):t.handleEvent(e)}disconnected(){let{eventData:e,element:t}=this;for(let r in e){let i=r.slice(1),s=e[r];t.removeEventListener(i,this,s)}}reconnected(){let{eventData:e,element:t}=this;for(let r in e){let i=r.slice(1),s=e[r];t.addEventListener(i,this,s)}}},wt=_s(class extends Uh{apply(e){if(!e)return;let{prevData:t,element:r}=this;for(let i in e){let s=e[i];if(s===t[i])continue;let o=i.slice(1);switch(i[0]){case"@":this.eventData[o]=s,this.applyEvent(o,s);break;case".":r[o]=s;break;case"?":s?r.setAttribute(o,""):r.removeAttribute(o);break;default:s==null?r.removeAttribute(i):r.setAttribute(i,String(s));break}}}groom(e){let{prevData:t,element:r}=this;if(t)for(let i in t){let s=i.slice(1);if(!e||!(i in e)&&r[s]===t[i])switch(i[0]){case"@":this.groomEvent(s,t[i]);break;case".":r[s]=void 0;break;case"?":r.removeAttribute(s);break;default:r.removeAttribute(i);break}}}}),_i={base:[""],item:["rtg-border-b-accordion-item-width-border rtg-border-b-accordion-item-color-border"],trigger:["rtg-flex rtg-flex-1 rtg-gap-accordion-trigger-space-gap rtg-justify-between rtg-items-start","rtg-py-accordion-trigger-space-py","rtg-w-accordion-trigger-space-w","rtg-rounded-accordion-trigger-radius rtg-outline-none","rtg-text-accordion-trigger-font rtg-font-accordion-trigger-font-weight rtg-text-left","rtg-transition-all","hover:rtg-underline","focus-visible:rtg-border-accordion-trigger-width-border-focus focus-visible:rtg-border-accordion-trigger-color-border-focus","focus-visible:rtg-ring-accordion-trigger-width-ring-focus focus-visible:rtg-ring-accordion-trigger-color-ring-focus","disabled:rtg-pointer-events-none disabled:rtg-opacity-50","[&[data-state=open]>svg]:rtg-rotate-180"],chevron:["rtg-shrink-0","rtg-size-accordion-trigger-icon-space-size","rtg-text-accordion-trigger-icon-color-text","rtg-translate-y-0.5 rtg-transition-transform rtg-duration-200","rtg-pointer-events-none"],content:["rtg-overflow-hidden","rtg-text-accordion-content-font rtg-font-accordion-content-font-weight","data-[state=closed]:rtg-h-accordion-content-space-h-closed","data-[state=closed]:rtg-animate-accordion-content-animate-closed","data-[state=open]:rtg-animate-accordion-content-animate-open","data-[state=open]:rtg-h-fit","[&>div]:rtg-pt-accordion-content-div-space-pt [&>div]:rtg-pb-accordion-content-div-space-pb"]},Ko=class extends _{constructor(...e){super(...e),this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof Ur);)e=e.parentElement;return e}get _item(){let e=this.parentElement;for(;e&&!(e instanceof ne);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,t;return!!((e=this._item)!=null&&e.value)&&!!((t=this._accordion)!=null&&t.selectedItems.includes(this._item.value))}render(){var e;return d`
2953
+ `,Vr);customElements.define("shadow-wrapper",nh);function Td(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Td(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Ld(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Td(e))&&(i&&(i+=" "),i+=t);return i}var cn="-",ah=e=>{let t=dh(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{let o=s.split(cn);return o[0]===""&&o.length!==1&&o.shift(),Nd(o,t)||lh(s)},getConflictingClassGroupIds:(s,o)=>{let n=r[s]||[];return o&&i[s]?[...n,...i[s]]:n}}},Nd=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let r=e[0],i=t.nextPart.get(r),s=i?Nd(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(cn);return(n=t.validators.find(({validator:h})=>h(o)))==null?void 0:n.classGroupId},Xn=/^\[(.+)\]$/,lh=e=>{if(Xn.test(e)){let t=Xn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},dh=e=>{let{theme:t,prefix:r}=e,i={nextPart:new Map,validators:[]};return hh(Object.entries(e.classGroups),r).forEach(([s,o])=>{Wo(o,i,s,t)}),i},Wo=(e,t,r,i)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:Zn(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(ch(s)){Wo(s(i),t,r,i);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,n])=>{Wo(n,Zn(t,o),r,i)})})},Zn=(e,t)=>{let r=e;return t.split(cn).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},ch=e=>e.isThemeGetter,hh=(e,t)=>t?e.map(([r,i])=>[r,i.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,n])=>[t+o,n])):s)]):e,ph=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,i=new Map,s=(o,n)=>{r.set(o,n),t++,t>e&&(t=0,i=r,r=new Map)};return{get(o){let n=r.get(o);if(n!==void 0)return n;if((n=i.get(o))!==void 0)return s(o,n),n},set(o,n){r.has(o)?r.set(o,n):s(o,n)}}},zd="!",uh=e=>{let{separator:t,experimentalParseClassName:r}=e,i=t.length===1,s=t[0],o=t.length,n=h=>{let p=[],g=0,y=0,w;for(let S=0;S<h.length;S++){let k=h[S];if(g===0){if(k===s&&(i||h.slice(S,S+o)===t)){p.push(h.slice(y,S)),y=S+o;continue}if(k==="/"){w=S;continue}}k==="["?g++:k==="]"&&g--}let E=p.length===0?h:h.substring(y),C=E.startsWith(zd);return{modifiers:p,hasImportantModifier:C,baseClassName:C?E.substring(1):E,maybePostfixModifierPosition:w&&w>y?w-y:void 0}};return r?h=>r({className:h,parseClassName:n}):n},gh=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(i=>{i[0]==="["?(t.push(...r.sort(),i),r=[]):r.push(i)}),t.push(...r.sort()),t},mh=e=>({cache:ph(e.cacheSize),parseClassName:uh(e),...ah(e)}),bh=/\s+/,fh=(e,t)=>{let{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s}=t,o=[],n=e.trim().split(bh),h="";for(let p=n.length-1;p>=0;--p){let g=n[p],{modifiers:y,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:C}=r(g),S=!!C,k=i(S?E.substring(0,C):E);if(!k){if(!S){h=g+(h.length>0?" "+h:h);continue}if(k=i(E),!k){h=g+(h.length>0?" "+h:h);continue}S=!1}let O=gh(y).join(":"),A=w?O+zd:O,F=A+k;if(o.includes(F))continue;o.push(F);let V=s(k,S);for(let M=0;M<V.length;++M){let Q=V[M];o.push(A+Q)}h=g+(h.length>0?" "+h:h)}return h};function vh(){let e=0,t,r,i="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ud(t))&&(i&&(i+=" "),i+=r);return i}var Ud=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=Ud(e[i]))&&(r&&(r+=" "),r+=t);return r};function yh(e,...t){let r,i,s,o=n;function n(p){return r=mh(t.reduce((g,y)=>y(g),e())),i=r.cache.get,s=r.cache.set,o=h,h(p)}function h(p){let g=i(p);if(g)return g;let y=fh(p,r);return s(p,y),y}return function(){return o(vh.apply(null,arguments))}}var Y=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},jd=/^\[(?:([a-z-]+):)?(.+)\]$/i,wh=/^\d+\/\d+$/,_h=new Set(["px","full","screen"]),xh=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$h=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ch=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Eh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=e=>jr(e)||_h.has(e)||wh.test(e),_e=e=>Wr(e,"length",Th),jr=e=>!!e&&!Number.isNaN(Number(e)),to=e=>Wr(e,"number",jr),ri=e=>!!e&&Number.isInteger(Number(e)),kh=e=>e.endsWith("%")&&jr(e.slice(0,-1)),z=e=>jd.test(e),xe=e=>xh.test(e),Rh=new Set(["length","size","percentage"]),Ih=e=>Wr(e,Rh,Dd),Oh=e=>Wr(e,"position",Dd),Ah=new Set(["image","url"]),Ph=e=>Wr(e,Ah,Nh),Fh=e=>Wr(e,"",Lh),ii=()=>!0,Wr=(e,t,r)=>{let i=jd.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):r(i[2]):!1},Th=e=>Sh.test(e)&&!$h.test(e),Dd=()=>!1,Lh=e=>Ch.test(e),Nh=e=>Eh.test(e),zh=yh(()=>{let e=Y("colors"),t=Y("spacing"),r=Y("blur"),i=Y("brightness"),s=Y("borderColor"),o=Y("borderRadius"),n=Y("borderSpacing"),h=Y("borderWidth"),p=Y("contrast"),g=Y("grayscale"),y=Y("hueRotate"),w=Y("invert"),E=Y("gap"),C=Y("gradientColorStops"),S=Y("gradientColorStopPositions"),k=Y("inset"),O=Y("margin"),A=Y("opacity"),F=Y("padding"),V=Y("saturate"),M=Y("scale"),Q=Y("sepia"),it=Y("skew"),st=Y("space"),j=Y("translate"),vt=()=>["auto","contain","none"],Wt=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",z,t],P=()=>[z,t],Me=()=>["",ge,_e],Nt=()=>["auto",jr,z],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Kt=()=>["solid","dashed","dotted","double","none"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ut=()=>["start","end","center","between","around","evenly","stretch"],Ft=()=>["","0",z],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ot=()=>[jr,z];return{cacheSize:500,separator:":",theme:{colors:[ii],spacing:[ge,_e],blur:["none","",xe,z],brightness:ot(),borderColor:[e],borderRadius:["none","","full",xe,z],borderSpacing:P(),borderWidth:Me(),contrast:ot(),grayscale:Ft(),hueRotate:ot(),invert:Ft(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[kh,_e],inset:pe(),margin:pe(),opacity:ot(),padding:P(),saturate:ot(),scale:ot(),sepia:Ft(),skew:ot(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[xe]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ue(),z]}],overflow:[{overflow:Wt()}],"overflow-x":[{"overflow-x":Wt()}],"overflow-y":[{"overflow-y":Wt()}],overscroll:[{overscroll:vt()}],"overscroll-x":[{"overscroll-x":vt()}],"overscroll-y":[{"overscroll-y":vt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ri,z]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:Ft()}],shrink:[{shrink:Ft()}],order:[{order:["first","last","none",ri,z]}],"grid-cols":[{"grid-cols":[ii]}],"col-start-end":[{col:["auto",{span:["full",ri,z]},z]}],"col-start":[{"col-start":Nt()}],"col-end":[{"col-end":Nt()}],"grid-rows":[{"grid-rows":[ii]}],"row-start-end":[{row:["auto",{span:[ri,z]},z]}],"row-start":[{"row-start":Nt()}],"row-end":[{"row-end":Nt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...Ut()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ut(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ut(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[O]}],mx:[{mx:[O]}],my:[{my:[O]}],ms:[{ms:[O]}],me:[{me:[O]}],mt:[{mt:[O]}],mr:[{mr:[O]}],mb:[{mb:[O]}],ml:[{ml:[O]}],"space-x":[{"space-x":[st]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[st]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,t]}],"min-w":[{"min-w":[z,t,"min","max","fit"]}],"max-w":[{"max-w":[z,t,"none","full","min","max","fit","prose",{screen:[xe]},xe]}],h:[{h:[z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xe,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",to]}],"font-family":[{font:[ii]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",jr,to]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ge,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Kt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ge,_e]}],"underline-offset":[{"underline-offset":["auto",ge,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),Oh]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ih]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ph]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Kt(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Kt()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Kt()]}],"outline-offset":[{"outline-offset":[ge,z]}],"outline-w":[{outline:[ge,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[ge,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xe,Fh]}],"shadow-color":[{shadow:[ii]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...zt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":zt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",xe,z]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[w]}],saturate:[{saturate:[V]}],sepia:[{sepia:[Q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:ot()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:ot()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ri,z]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[it]}],"skew-y":[{"skew-y":[it]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ge,_e,to]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function b(...e){return zh(Ld(e))}var Uh=class extends Od{constructor(){super(...arguments),this.prevData={}}render(e){return m}update(e,[t]){var r;this.element!==e.element&&(this.element=e.element),this.host=((r=e.options)==null?void 0:r.host)||this.element,this.apply(t),this.groom(t),this.prevData={...t}}apply(e){if(!e)return;let{prevData:t,element:r}=this;for(let i in e){let s=e[i];s!==t[i]&&(r[i]=s)}}groom(e){let{prevData:t,element:r}=this;if(t)for(let i in t)(!e||!(i in e)&&r[i]===t[i])&&(r[i]=void 0)}},jh=class extends Uh{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(let t in e){let r=e[t];r!==this.eventData[t]&&this.applyEvent(t,r)}}applyEvent(e,t){let{prevData:r,element:i}=this;this.eventData[e]=t,r[e]&&i.removeEventListener(e,this,t),i.addEventListener(e,this,t)}groom(e){let{prevData:t,element:r}=this;if(t)for(let i in t)(!e||!(i in e)&&r[i]===t[i])&&this.groomEvent(i,t[i])}groomEvent(e,t){let{element:r}=this;delete this.eventData[e],r.removeEventListener(e,this,t)}handleEvent(e){let t=this.eventData[e.type];typeof t=="function"?t.call(this.host,e):t.handleEvent(e)}disconnected(){let{eventData:e,element:t}=this;for(let r in e){let i=r.slice(1),s=e[r];t.removeEventListener(i,this,s)}}reconnected(){let{eventData:e,element:t}=this;for(let r in e){let i=r.slice(1),s=e[r];t.addEventListener(i,this,s)}}},wt=xs(class extends jh{apply(e){if(!e)return;let{prevData:t,element:r}=this;for(let i in e){let s=e[i];if(s===t[i])continue;let o=i.slice(1);switch(i[0]){case"@":this.eventData[o]=s,this.applyEvent(o,s);break;case".":r[o]=s;break;case"?":s?r.setAttribute(o,""):r.removeAttribute(o);break;default:s==null?r.removeAttribute(i):r.setAttribute(i,String(s));break}}}groom(e){let{prevData:t,element:r}=this;if(t)for(let i in t){let s=i.slice(1);if(!e||!(i in e)&&r[s]===t[i])switch(i[0]){case"@":this.groomEvent(s,t[i]);break;case".":r[s]=void 0;break;case"?":r.removeAttribute(s);break;default:r.removeAttribute(i);break}}}}),Si={base:[""],item:["rtg-border-b-accordion-item-width-border rtg-border-b-accordion-item-color-border"],trigger:["rtg-flex rtg-flex-1 rtg-gap-accordion-trigger-space-gap rtg-justify-between rtg-items-start","rtg-py-accordion-trigger-space-py","rtg-w-accordion-trigger-space-w","rtg-rounded-accordion-trigger-radius rtg-outline-none","rtg-text-accordion-trigger-font rtg-font-accordion-trigger-font-weight rtg-text-left","rtg-transition-all","hover:rtg-underline","focus-visible:rtg-border-accordion-trigger-width-border-focus focus-visible:rtg-border-accordion-trigger-color-border-focus","focus-visible:rtg-ring-accordion-trigger-width-ring-focus focus-visible:rtg-ring-accordion-trigger-color-ring-focus","disabled:rtg-pointer-events-none disabled:rtg-opacity-50","[&[data-state=open]>svg]:rtg-rotate-180"],chevron:["rtg-shrink-0","rtg-size-accordion-trigger-icon-space-size","rtg-text-accordion-trigger-icon-color-text","rtg-translate-y-0.5 rtg-transition-transform rtg-duration-200","rtg-pointer-events-none"],content:["rtg-overflow-hidden","rtg-text-accordion-content-font rtg-font-accordion-content-font-weight","data-[state=closed]:rtg-h-accordion-content-space-h-closed","data-[state=closed]:rtg-animate-accordion-content-animate-closed","data-[state=open]:rtg-animate-accordion-content-animate-open","data-[state=open]:rtg-h-fit","[&>div]:rtg-pt-accordion-content-div-space-pt [&>div]:rtg-pb-accordion-content-div-space-pb"]},Ko=class extends _{constructor(...e){super(...e),this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof Dr);)e=e.parentElement;return e}get _item(){let e=this.parentElement;for(;e&&!(e instanceof ne);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,t;return!!((e=this._item)!=null&&e.value)&&!!((t=this._accordion)!=null&&t.selectedItems.includes(this._item.value))}render(){var e;return d`
2954
2954
  <div
2955
2955
  part="accordion-content"
2956
2956
  role="region"
2957
2957
  data-state=${this.hasActiveState()?"open":"closed"}
2958
2958
  data-orientation="vertical"
2959
- class=${b(_i.content,this.className)}
2959
+ class=${b(Si.content,this.className)}
2960
2960
  @click=${t=>t.stopPropagation()}
2961
2961
  >
2962
2962
  <div>${ln(((e=this.textContent)==null?void 0:e.trim())||"")}</div>
2963
2963
  </div>
2964
- `}};Ko=l([p("rtg-accordion-content")],Ko);var ne=class extends _{constructor(...e){super(...e),this.value="",this.tabindex=0,this._initialChildren=[],this._onClick=t=>{let r=t.target.closest("rtg-accordion-trigger");!r||!this._accordion||(t.preventDefault(),t.stopPropagation(),this._accordion.raiseEvent(this.value),r.requestUpdate(),setTimeout(()=>this.requestUpdate(),0))},this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof Ur);)e=e.parentElement;return e}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._initialChildren=this.filterChildren(),this.addEventListener("click",this._onClick),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListener("click",this._onClick),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}filterChildren(){return Array.from(this.children).filter(e=>e instanceof Yo||e instanceof Ko)}render(){var r;let e=(r=this._accordion)==null?void 0:r.selectedItems.includes(this.value),t=this._initialChildren.length?this._initialChildren:this.filterChildren();return d`
2964
+ `}};Ko=l([u("rtg-accordion-content")],Ko);var ne=class extends _{constructor(...e){super(...e),this.value="",this.tabindex=0,this._initialChildren=[],this._onClick=t=>{let r=t.target.closest("rtg-accordion-trigger");!r||!this._accordion||(t.preventDefault(),t.stopPropagation(),this._accordion.raiseEvent(this.value),r.requestUpdate(),setTimeout(()=>this.requestUpdate(),0))},this._onAccordionClick=()=>{this.requestUpdate()}}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof Dr);)e=e.parentElement;return e}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._initialChildren=this.filterChildren(),this.addEventListener("click",this._onClick),(e=this._accordion)==null||e.addEventListener("clicked-accordion",this._onAccordionClick)}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListener("click",this._onClick),(e=this._accordion)==null||e.removeEventListener("clicked-accordion",this._onAccordionClick)}filterChildren(){return Array.from(this.children).filter(e=>e instanceof Yo||e instanceof Ko)}render(){var r;let e=(r=this._accordion)==null?void 0:r.selectedItems.includes(this.value),t=this._initialChildren.length?this._initialChildren:this.filterChildren();return d`
2965
2965
  <div
2966
2966
  data-state=${e?"open":"closed"}
2967
- class="${b(_i.item,this.className)}"
2967
+ class="${b(Si.item,this.className)}"
2968
2968
  value=${this.value}
2969
2969
  role="tablist"
2970
2970
  data-orientation="vertical"
@@ -2972,7 +2972,7 @@ body {
2972
2972
  >
2973
2973
  ${t}
2974
2974
  </div>
2975
- `}};l([a({type:String}),c("design:type",Object)],ne.prototype,"value",void 0),l([a({type:Number}),c("design:type",Object)],ne.prototype,"tabindex",void 0),ne=l([p("rtg-accordion-item")],ne);var Yo=class extends _{get _item(){let e=this.parentElement;for(;e&&!(e instanceof ne);)e=e.parentElement;return e}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof Ur);)e=e.parentElement;return e}getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,t;return!!((e=this._item)!=null&&e.value)&&!!((t=this._accordion)!=null&&t.selectedItems.includes(this._item.value))}render(){var t;let e=this.hasActiveState();return d`
2975
+ `}};l([a({type:String}),c("design:type",Object)],ne.prototype,"value",void 0),l([a({type:Number}),c("design:type",Object)],ne.prototype,"tabindex",void 0),ne=l([u("rtg-accordion-item")],ne);var Yo=class extends _{get _item(){let e=this.parentElement;for(;e&&!(e instanceof ne);)e=e.parentElement;return e}get _accordion(){let e=this.parentElement;for(;e&&!(e instanceof Dr);)e=e.parentElement;return e}getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}hasActiveState(){var e,t;return!!((e=this._item)!=null&&e.value)&&!!((t=this._accordion)!=null&&t.selectedItems.includes(this._item.value))}render(){var t;let e=this.hasActiveState();return d`
2976
2976
  <button
2977
2977
  type="button"
2978
2978
  part="accordion-trigger"
@@ -2981,7 +2981,7 @@ body {
2981
2981
  aria-selected=${e}
2982
2982
  aria-expanded=${e}
2983
2983
  data-state=${e?"open":"closed"}
2984
- class="${b(_i.trigger,this.className)}"
2984
+ class="${b(Si.trigger,this.className)}"
2985
2985
  tabindex="-1"
2986
2986
  data-orientation="horizontal"
2987
2987
  data-radix-collection-item
@@ -2996,23 +2996,23 @@ body {
2996
2996
  stroke-width="2"
2997
2997
  stroke-linecap="round"
2998
2998
  stroke-linejoin="round"
2999
- class=${b(_i.chevron,"lucide lucide-chevron-down-icon lucide-chevron-down")}
2999
+ class=${b(Si.chevron,"lucide lucide-chevron-down-icon lucide-chevron-down")}
3000
3000
  >
3001
3001
  <path d="m6 9 6 6 6-6" />
3002
3002
  </svg>
3003
3003
  </button>
3004
- `}};Yo=l([p("rtg-accordion-trigger")],Yo);var Pe=(function(e){return e.MULTIPLE="multiple",e.SINGLE="single",e})({}),Jn,Ur=class extends _{constructor(...e){super(...e),this.type=Pe.MULTIPLE,this.selectedItems=[],this._initialChildren=[]}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._initialChildren=Array.from(this.children).filter(e=>e instanceof ne)}willUpdate(e){e.has("type")&&(this.type===Pe.SINGLE&&this.selectedItems.length>1&&(this.selectedItems=this.selectedItems.slice(0,1)),this._initialChildren.forEach(t=>{t instanceof ne&&t.requestUpdate()}))}updated(e){e.has("type")&&this._initialChildren.forEach(t=>{t instanceof ne&&t.requestUpdate()})}setSelectedItems(e){let t=this.selectedItems.indexOf(e);if(t>-1)if(this.type===Pe.SINGLE)this.selectedItems=[];else if(this.type===Pe.MULTIPLE)this.selectedItems.splice(t,1);else throw Error("Invalid accordion type");else if(this.type===Pe.SINGLE)this.selectedItems=[e];else if(this.type===Pe.MULTIPLE)this.selectedItems.push(e);else throw Error("Invalid accordion type")}raiseEvent(e){this.setSelectedItems(e),this.dispatchEvent(new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}}))}render(){let e=this._initialChildren.length?this._initialChildren:Array.from(this.children).filter(t=>t instanceof ne);return d`
3004
+ `}};Yo=l([u("rtg-accordion-trigger")],Yo);var Pe=(function(e){return e.MULTIPLE="multiple",e.SINGLE="single",e})({}),Jn,Dr=class extends _{constructor(...e){super(...e),this.type=Pe.MULTIPLE,this.selectedItems=[],this._initialChildren=[]}getAttributesToExclude(){return["variant","data-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._initialChildren=Array.from(this.children).filter(e=>e instanceof ne)}willUpdate(e){e.has("type")&&(this.type===Pe.SINGLE&&this.selectedItems.length>1&&(this.selectedItems=this.selectedItems.slice(0,1)),this._initialChildren.forEach(t=>{t instanceof ne&&t.requestUpdate()}))}updated(e){e.has("type")&&this._initialChildren.forEach(t=>{t instanceof ne&&t.requestUpdate()})}setSelectedItems(e){let t=this.selectedItems.indexOf(e);if(t>-1)if(this.type===Pe.SINGLE)this.selectedItems=[];else if(this.type===Pe.MULTIPLE)this.selectedItems.splice(t,1);else throw Error("Invalid accordion type");else if(this.type===Pe.SINGLE)this.selectedItems=[e];else if(this.type===Pe.MULTIPLE)this.selectedItems.push(e);else throw Error("Invalid accordion type")}raiseEvent(e){this.setSelectedItems(e),this.dispatchEvent(new CustomEvent("clicked-accordion",{bubbles:!0,composed:!0,detail:{selectedItems:this.selectedItems}}))}render(){let e=this._initialChildren.length?this._initialChildren:Array.from(this.children).filter(t=>t instanceof ne);return d`
3005
3005
  <div
3006
3006
  data-orientation="vertical"
3007
3007
  ${wt(this.getFilteredAttributes())}
3008
3008
  part="accordion"
3009
- class="${b(_i.base,this.className)}"
3009
+ class="${b(Si.base,this.className)}"
3010
3010
  >
3011
3011
  ${e}
3012
3012
  </div>
3013
- `}};l([a({type:String}),c("design:type",typeof(Jn=Pe!==void 0&&Pe)=="function"?Jn:Object)],Ur.prototype,"type",void 0),Ur=l([p("rtg-accordion")],Ur);var eo=class extends v{constructor(...e){super(...e),this.variant="default"}get _rootSlot(){return this.querySelector('[data-slot="alert"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="alert" data-variant=${this.variant}></div>`}};l([a({type:String}),c("design:type",Object)],eo.prototype,"variant",void 0),eo=l([p("rtg-alert")],eo);var Qn=class extends v{get _titleSlot(){return this.querySelector('[data-slot="alert-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._titleSlot&&((r=this._titleSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="alert-title"></div>`}};Qn=l([p("rtg-alert-title")],Qn);var ta=class extends v{get _descriptionSlot(){return this.querySelector('[data-slot="alert-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._descriptionSlot&&((r=this._descriptionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="alert-description"></div>`}};ta=l([p("rtg-alert-description")],ta);var ea=class extends v{get _actionSlot(){return this.querySelector('[data-slot="alert-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._actionSlot&&((r=this._actionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="alert-action"></div>`}};ea=l([p("rtg-alert-action")],ea);var ra={host:["rtg-block rtg-relative rtg-w-full"],self:["rtg-absolute rtg-inset-0"]},ro=class extends v{constructor(...e){super(...e),this.ratio=1/1,this._userClass="",this._userStyle=""}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._userClass=this.getAttribute("class")??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=b(this.className,ra.host)}updated(e){e.has("ratio")&&(this.style.paddingBottom=this.ratio>0?`${100/this.ratio}%`:"0%")}firstUpdated(){var t;this.style.paddingBottom=this.ratio>0?`${100/this.ratio}%`:"0%";let e=this.querySelector(".aspect-ratio");if(e){if(this._userClass&&(e.className=b(e.className,this._userClass)),this._userStyle){let r=(t=e.getAttribute("style"))==null?void 0:t.trim(),i=this._userStyle.trim();e.setAttribute("style",[r,i].filter(Boolean).join("; "))}Array.from(this.childNodes).forEach(r=>{r!==e&&e.appendChild(r)})}}render(){return d`
3013
+ `}};l([a({type:String}),c("design:type",typeof(Jn=Pe!==void 0&&Pe)=="function"?Jn:Object)],Dr.prototype,"type",void 0),Dr=l([u("rtg-accordion")],Dr);var eo=class extends v{constructor(...e){super(...e),this.variant="default"}get _rootSlot(){return this.querySelector('[data-slot="alert"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="alert" data-variant=${this.variant}></div>`}};l([a({type:String}),c("design:type",Object)],eo.prototype,"variant",void 0),eo=l([u("rtg-alert")],eo);var Qn=class extends v{get _titleSlot(){return this.querySelector('[data-slot="alert-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._titleSlot&&((r=this._titleSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="alert-title"></div>`}};Qn=l([u("rtg-alert-title")],Qn);var ta=class extends v{get _descriptionSlot(){return this.querySelector('[data-slot="alert-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._descriptionSlot&&((r=this._descriptionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="alert-description"></div>`}};ta=l([u("rtg-alert-description")],ta);var ea=class extends v{get _actionSlot(){return this.querySelector('[data-slot="alert-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._actionSlot&&((r=this._actionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="alert-action"></div>`}};ea=l([u("rtg-alert-action")],ea);var ra={host:["rtg-block rtg-relative rtg-w-full"],self:["rtg-absolute rtg-inset-0"]},ro=class extends v{constructor(...e){super(...e),this.ratio=1/1,this._userClass="",this._userStyle=""}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._userClass=this.getAttribute("class")??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=b(this.className,ra.host)}updated(e){e.has("ratio")&&(this.style.paddingBottom=this.ratio>0?`${100/this.ratio}%`:"0%")}firstUpdated(){var t;this.style.paddingBottom=this.ratio>0?`${100/this.ratio}%`:"0%";let e=this.querySelector(".aspect-ratio");if(e){if(this._userClass&&(e.className=b(e.className,this._userClass)),this._userStyle){let r=(t=e.getAttribute("style"))==null?void 0:t.trim(),i=this._userStyle.trim();e.setAttribute("style",[r,i].filter(Boolean).join("; "))}Array.from(this.childNodes).forEach(r=>{r!==e&&e.appendChild(r)})}}render(){return d`
3014
3014
  <div class="${b("aspect-ratio",ra.self)}"></div>
3015
- `}};l([a({type:Number,reflect:!0}),c("design:type",Object)],ro.prototype,"ratio",void 0),ro=l([p("rtg-aspect-ratio")],ro);var ri=class extends v{constructor(...e){super(...e),this.size="default",this._imageLoaded=!1,this._imageError=!1}get _rootSlot(){return this.querySelector('[data-slot="avatar"]')}get _avatarImageChild(){return this.querySelector("rtg-avatar-image")}get _avatarFallbackChild(){return this.querySelector("rtg-avatar-fallback")}_syncChildren(){let e=this._imageError||!this._imageLoaded;this._avatarImageChild&&(this._avatarImageChild.style.display=e?"none":""),this._avatarFallbackChild&&(this._avatarFallbackChild.style.display=e?"":"none")}_onImageLoad(){this._imageLoaded=!0,this._imageError=!1,this._syncChildren()}_onImageError(){this._imageLoaded=!1,this._imageError=!0,this._syncChildren()}connectedCallback(){super.connectedCallback(),this.addEventListener("rtg-avatar:image-load",this._onImageLoad),this.addEventListener("rtg-avatar:image-error",this._onImageError)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("rtg-avatar:image-load",this._onImageLoad),this.removeEventListener("rtg-avatar:image-error",this._onImageError)}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<span data-slot="avatar" data-size=${this.size}></span>`}};l([a({type:String}),c("design:type",Object)],ri.prototype,"size",void 0),l([x(),c("design:type",Object)],ri.prototype,"_imageLoaded",void 0),l([x(),c("design:type",Object)],ri.prototype,"_imageError",void 0),ri=l([p("rtg-avatar")],ri);var Ii=class extends v{_onLoad(){this.dispatchEvent(new CustomEvent("rtg-avatar:image-load",{bubbles:!0,composed:!0}))}_onError(){this.dispatchEvent(new CustomEvent("rtg-avatar:image-error",{bubbles:!0,composed:!0}))}createRenderRoot(){return this}render(){return d`
3015
+ `}};l([a({type:Number,reflect:!0}),c("design:type",Object)],ro.prototype,"ratio",void 0),ro=l([u("rtg-aspect-ratio")],ro);var si=class extends v{constructor(...e){super(...e),this.size="default",this._imageLoaded=!1,this._imageError=!1}get _rootSlot(){return this.querySelector('[data-slot="avatar"]')}get _avatarImageChild(){return this.querySelector("rtg-avatar-image")}get _avatarFallbackChild(){return this.querySelector("rtg-avatar-fallback")}_syncChildren(){let e=this._imageError||!this._imageLoaded;this._avatarImageChild&&(this._avatarImageChild.style.display=e?"none":""),this._avatarFallbackChild&&(this._avatarFallbackChild.style.display=e?"":"none")}_onImageLoad(){this._imageLoaded=!0,this._imageError=!1,this._syncChildren()}_onImageError(){this._imageLoaded=!1,this._imageError=!0,this._syncChildren()}connectedCallback(){super.connectedCallback(),this.addEventListener("rtg-avatar:image-load",this._onImageLoad),this.addEventListener("rtg-avatar:image-error",this._onImageError)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("rtg-avatar:image-load",this._onImageLoad),this.removeEventListener("rtg-avatar:image-error",this._onImageError)}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<span data-slot="avatar" data-size=${this.size}></span>`}};l([a({type:String}),c("design:type",Object)],si.prototype,"size",void 0),l([x(),c("design:type",Object)],si.prototype,"_imageLoaded",void 0),l([x(),c("design:type",Object)],si.prototype,"_imageError",void 0),si=l([u("rtg-avatar")],si);var Oi=class extends v{_onLoad(){this.dispatchEvent(new CustomEvent("rtg-avatar:image-load",{bubbles:!0,composed:!0}))}_onError(){this.dispatchEvent(new CustomEvent("rtg-avatar:image-error",{bubbles:!0,composed:!0}))}createRenderRoot(){return this}render(){return d`
3016
3016
  <img
3017
3017
  data-slot="avatar-image"
3018
3018
  src=${this.src??""}
@@ -3020,7 +3020,7 @@ body {
3020
3020
  @load=${this._onLoad}
3021
3021
  @error=${this._onError}
3022
3022
  />
3023
- `}};l([a({type:String}),c("design:type",String)],Ii.prototype,"src",void 0),l([a({type:String}),c("design:type",String)],Ii.prototype,"alt",void 0),Ii=l([p("rtg-avatar-image")],Ii);var ia=class extends v{get _fallbackSlot(){return this.querySelector('[data-slot="avatar-fallback"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._fallbackSlot&&((r=this._fallbackSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<span data-slot="avatar-fallback"></span>`}};ia=l([p("rtg-avatar-fallback")],ia);var sa=class extends v{get _badgeSlot(){return this.querySelector('[data-slot="avatar-badge"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._badgeSlot&&((r=this._badgeSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<span data-slot="avatar-badge"></span>`}};sa=l([p("rtg-avatar-badge")],sa);var oa=class extends v{get _groupSlot(){return this.querySelector('[data-slot="avatar-group"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._groupSlot&&((r=this._groupSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="avatar-group"></div>`}};oa=l([p("rtg-avatar-group")],oa);var na=class extends v{get _groupCountSlot(){return this.querySelector('[data-slot="avatar-group-count"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._groupCountSlot&&((r=this._groupCountSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="avatar-group-count"></div>`}};na=l([p("rtg-avatar-group-count")],na);var Ir=class extends v{constructor(...e){super(...e),this.variant="default"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="badge"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return this.href?d`
3023
+ `}};l([a({type:String}),c("design:type",String)],Oi.prototype,"src",void 0),l([a({type:String}),c("design:type",String)],Oi.prototype,"alt",void 0),Oi=l([u("rtg-avatar-image")],Oi);var ia=class extends v{get _fallbackSlot(){return this.querySelector('[data-slot="avatar-fallback"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._fallbackSlot&&((r=this._fallbackSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<span data-slot="avatar-fallback"></span>`}};ia=l([u("rtg-avatar-fallback")],ia);var sa=class extends v{get _badgeSlot(){return this.querySelector('[data-slot="avatar-badge"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._badgeSlot&&((r=this._badgeSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<span data-slot="avatar-badge"></span>`}};sa=l([u("rtg-avatar-badge")],sa);var oa=class extends v{get _groupSlot(){return this.querySelector('[data-slot="avatar-group"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._groupSlot&&((r=this._groupSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="avatar-group"></div>`}};oa=l([u("rtg-avatar-group")],oa);var na=class extends v{get _groupCountSlot(){return this.querySelector('[data-slot="avatar-group-count"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._groupCountSlot&&((r=this._groupCountSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="avatar-group-count"></div>`}};na=l([u("rtg-avatar-group-count")],na);var Or=class extends v{constructor(...e){super(...e),this.variant="default"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="badge"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return this.href?d`
3024
3024
  <a
3025
3025
  data-slot="badge"
3026
3026
  data-variant=${this.variant}
@@ -3036,13 +3036,13 @@ body {
3036
3036
  aria-label=${this.ariaLabel??m}
3037
3037
  aria-invalid=${this.invalid||this.ariaInvalid==="true"?"true":m}
3038
3038
  ></span>
3039
- `}};l([a({type:String}),c("design:type",Object)],Ir.prototype,"variant",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Ir.prototype,"invalid",void 0),l([a({type:String}),c("design:type",String)],Ir.prototype,"href",void 0),l([a({type:String}),c("design:type",Object)],Ir.prototype,"target",void 0),Ir=l([p("rtg-badge")],Ir);var Wr={list:["rtg-flex rtg-flex-wrap rtg-gap-breadcrumb-list-space-gap-sm sm:rtg-gap-breadcrumb-list-space-gap rtg-items-center","rtg-text-breadcrumb-list-font rtg-font-breadcrumb-list-font-weight rtg-text-breadcrumb-list-color-text rtg-break-words"],item:["rtg-inline-flex rtg-gap-breadcrumb-item-space-gap rtg-items-center"],link:["rtg-transition-colors","hover:rtg-text-breadcrumb-link-color-text-hover"],page:["rtg-font-breadcrumb-page-font-weight rtg-text-breadcrumb-page-color-text"],separator:["[&>svg]:rtg-size-breadcrumb-separator-icon-space-size"],ellipsis:["rtg-flex rtg-justify-center rtg-items-center","rtg-size-breadcrumb-ellipsis-space-size","[&>svg]:rtg-size-breadcrumb-ellipsis-icon-space-size"]},aa=class extends _{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){return d`
3039
+ `}};l([a({type:String}),c("design:type",Object)],Or.prototype,"variant",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Or.prototype,"invalid",void 0),l([a({type:String}),c("design:type",String)],Or.prototype,"href",void 0),l([a({type:String}),c("design:type",Object)],Or.prototype,"target",void 0),Or=l([u("rtg-badge")],Or);var Kr={list:["rtg-flex rtg-flex-wrap rtg-gap-breadcrumb-list-space-gap-sm sm:rtg-gap-breadcrumb-list-space-gap rtg-items-center","rtg-text-breadcrumb-list-font rtg-font-breadcrumb-list-font-weight rtg-text-breadcrumb-list-color-text rtg-break-words"],item:["rtg-inline-flex rtg-gap-breadcrumb-item-space-gap rtg-items-center"],link:["rtg-transition-colors","hover:rtg-text-breadcrumb-link-color-text-hover"],page:["rtg-font-breadcrumb-page-font-weight rtg-text-breadcrumb-page-color-text"],separator:["[&>svg]:rtg-size-breadcrumb-separator-icon-space-size"],ellipsis:["rtg-flex rtg-justify-center rtg-items-center","rtg-size-breadcrumb-ellipsis-space-size","[&>svg]:rtg-size-breadcrumb-ellipsis-icon-space-size"]},aa=class extends _{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){return d`
3040
3040
  <span
3041
3041
  ${wt(this.getFilteredAttributes())}
3042
3042
  id="rtg-bread-crumb-ellipsis"
3043
3043
  role="presentation"
3044
3044
  aria-hidden="true"
3045
- class="${b(Wr.ellipsis,this.className)}"
3045
+ class="${b(Kr.ellipsis,this.className)}"
3046
3046
  part="breadcrumb-ellipsis"
3047
3047
  >
3048
3048
  <svg
@@ -3060,36 +3060,36 @@ body {
3060
3060
  <circle cx="5" cy="12" r="1" />
3061
3061
  </svg>
3062
3062
  </span>
3063
- `}};aa=l([p("rtg-bread-crumb-ellipsis")],aa);var la=class extends _{get _containerElement(){return this.querySelector("li[part=breadcrumb-item]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3063
+ `}};aa=l([u("rtg-bread-crumb-ellipsis")],aa);var la=class extends _{get _containerElement(){return this.querySelector("li[part=breadcrumb-item]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3064
3064
  <li
3065
3065
  ${wt(this.getFilteredAttributes())}
3066
3066
  id="rtg-bread-crumb-item"
3067
- class="${b(Wr.item,this.className)}"
3067
+ class="${b(Kr.item,this.className)}"
3068
3068
  part="breadcrumb-item"
3069
3069
  ></li>
3070
- `}};la=l([p("rtg-bread-crumb-item")],la);var io=class extends _{constructor(...e){super(...e),this.href="/"}get _containerElement(){return this.querySelector("a[part=breadcrumb-link]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3070
+ `}};la=l([u("rtg-bread-crumb-item")],la);var io=class extends _{constructor(...e){super(...e),this.href="/"}get _containerElement(){return this.querySelector("a[part=breadcrumb-link]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3071
3071
  <a
3072
3072
  ${wt(this.getFilteredAttributes())}
3073
3073
  id="rtg-bread-crumb-link"
3074
- class="${b(Wr.link,this.className)}"
3074
+ class="${b(Kr.link,this.className)}"
3075
3075
  href="${this.href}"
3076
3076
  part="breadcrumb-link"
3077
3077
  >
3078
3078
  </a>
3079
- `}};l([a({type:String}),c("design:type",String)],io.prototype,"href",void 0),io=l([p("rtg-bread-crumb-link")],io);var da=class extends _{get _containerElement(){return this.querySelector("ol[part=breadcrumb-list]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3079
+ `}};l([a({type:String}),c("design:type",String)],io.prototype,"href",void 0),io=l([u("rtg-bread-crumb-link")],io);var da=class extends _{get _containerElement(){return this.querySelector("ol[part=breadcrumb-list]")}getAttributesToExclude(){return["variant"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3080
3080
  <ol
3081
3081
  ${wt(this.getFilteredAttributes())}
3082
3082
  id="rtg-bread-crumb-list"
3083
- class="${b(Wr.list,this.className)}"
3083
+ class="${b(Kr.list,this.className)}"
3084
3084
  part="breadcrumb-list"
3085
3085
  ></ol>
3086
- `}};da=l([p("rtg-bread-crumb-list")],da);var ca=class extends _{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){return d`
3086
+ `}};da=l([u("rtg-bread-crumb-list")],da);var ca=class extends _{getAttributesToExclude(){return[""]}createRenderRoot(){return this}render(){return d`
3087
3087
  <li
3088
3088
  ${wt(this.getFilteredAttributes())}
3089
3089
  id="rtg-bread-crumb-separator"
3090
3090
  role="presentation"
3091
3091
  aria-hidden="true"
3092
- class="${b(Wr.separator,this.className)}"
3092
+ class="${b(Kr.separator,this.className)}"
3093
3093
  part="breadcrumb-separator"
3094
3094
  >
3095
3095
  <svg
@@ -3105,24 +3105,24 @@ body {
3105
3105
  <path d="m9 18 6-6-6-6" />
3106
3106
  </svg>
3107
3107
  </li>
3108
- `}};ca=l([p("rtg-bread-crumb-separator")],ca);var ha=class extends _{get _containerElement(){return this.querySelector("span[part=breadcrumb-text]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3108
+ `}};ca=l([u("rtg-bread-crumb-separator")],ca);var ha=class extends _{get _containerElement(){return this.querySelector("span[part=breadcrumb-text]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3109
3109
  <span
3110
3110
  ${wt(this.getFilteredAttributes())}
3111
3111
  id="rtg-bread-crumb-text"
3112
3112
  aria-disabled="true"
3113
3113
  aria-current="page"
3114
- class="${b(Wr.page,this.className)}"
3114
+ class="${b(Kr.page,this.className)}"
3115
3115
  part="breadcrumb-text"
3116
3116
  >
3117
3117
  </span>
3118
- `}};ha=l([p("rtg-bread-crumb-text")],ha);var ua=class extends _{get _containerElement(){return this.querySelector("nav[part=breadcrumb]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3118
+ `}};ha=l([u("rtg-bread-crumb-text")],ha);var pa=class extends _{get _containerElement(){return this.querySelector("nav[part=breadcrumb]")}getAttributesToExclude(){return[""]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3119
3119
  <nav
3120
3120
  ${wt(this.getFilteredAttributes())}
3121
3121
  part="breadcrumb"
3122
3122
  class="${b(this.className)}"
3123
3123
  aria-label="breadcrumb"
3124
3124
  ></nav>
3125
- `}};ua=l([p("rtg-bread-crumb")],ua);var Yt=class extends v{constructor(...e){super(...e),this.variant="default",this.size="default",this.type="button"}get _rootSlot(){return this.querySelector('[data-slot="button"]')}_handleClick(e){this.onClick&&this.onClick(e)}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return this.href?d`
3125
+ `}};pa=l([u("rtg-bread-crumb")],pa);var Yt=class extends v{constructor(...e){super(...e),this.variant="default",this.size="default",this.type="button"}get _rootSlot(){return this.querySelector('[data-slot="button"]')}_handleClick(e){this.onClick&&this.onClick(e)}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return this.href?d`
3126
3126
  <a
3127
3127
  data-slot="button"
3128
3128
  data-variant=${this.variant}
@@ -3145,7 +3145,7 @@ body {
3145
3145
  aria-invalid=${this.invalid||this.ariaInvalid==="true"?"true":m}
3146
3146
  @click=${this._handleClick}
3147
3147
  ></button>
3148
- `}};l([a({type:String}),c("design:type",Object)],Yt.prototype,"variant",void 0),l([a({type:String}),c("design:type",Object)],Yt.prototype,"size",void 0),l([a({type:String}),c("design:type",Object)],Yt.prototype,"type",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Yt.prototype,"disabled",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Yt.prototype,"invalid",void 0),l([a({type:String}),c("design:type",String)],Yt.prototype,"href",void 0),l([a({type:String}),c("design:type",Object)],Yt.prototype,"target",void 0),l([a({attribute:!1,type:Function}),c("design:type",Function)],Yt.prototype,"onClick",void 0),Yt=l([p("rtg-button")],Yt);var Dh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Bh(e){let t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function Mh(e){let t=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),r=new Intl.DateTimeFormat("en-US",{month:"long"}).format(e),i=e.getDate(),s=e.getFullYear();return`${t}, ${r} ${i}${Bh(i)}, ${s}`}var pa=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ga=Ld,hn=(e,t)=>r=>{var h;if((t==null?void 0:t.variants)==null)return ga(e,r==null?void 0:r.class,r==null?void 0:r.className);let{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{let g=r==null?void 0:r[u],y=s==null?void 0:s[u];if(g===null)return null;let w=pa(g)||pa(y);return i[u][w]}),n=r&&Object.entries(r).reduce((u,g)=>{let[y,w]=g;return w===void 0||(u[y]=w),u},{});return ga(e,o,(h=t==null?void 0:t.compoundVariants)==null?void 0:h.reduce((u,g)=>{let{class:y,className:w,...E}=g;return Object.entries(E).every(C=>{let[S,k]=C;return Array.isArray(k)?k.includes({...s,...n}[S]):{...s,...n}[S]===k})?[...u,y,w]:u},[]),r==null?void 0:r.class,r==null?void 0:r.className)},gi=hn(["rtg-inline-flex rtg-items-center rtg-justify-center rtg-shrink-0","rtg-text-button-font-size rtg-font-button-font-weight rtg-whitespace-nowrap","rtg-rounded-button-radius rtg-outline-none","rtg-transition-all","disabled:rtg-opacity-button-opacity-disabled disabled:rtg-pointer-events-none","focus-visible:rtg-border-button-width-border-focus focus-visible:rtg-border-button-color-border-focus focus-visible:rtg-ring-button-width-ring-focus","aria-invalid:rtg-border-button-width-border-invalid aria-invalid:rtg-border-button-color-border-invalid","aria-invalid:rtg-ring-button-width-ring-invalid aria-invalid:rtg-ring-button-color-ring-invalid",'[&_svg]:rtg-pointer-events-none [&_svg:not([class*="rtg-size-"])]:rtg-size-button-icon-space-size [&_svg]:rtg-shrink-0'],{variants:{variant:{default:["rtg-bg-button-default-color-bg rtg-text-button-default-color-text","hover:rtg-bg-button-default-color-bg-hover","focus-visible:rtg-ring-button-default-color-ring-focus"],destructive:["rtg-bg-button-destructive-color-bg rtg-text-button-destructive-color-text","hover:rtg-bg-button-destructive-color-bg-hover","focus-visible:rtg-ring-button-destructive-color-ring-focus"],outline:["rtg-bg-button-outline-color-bg","rtg-border-button-outline-width-border rtg-border-button-outline-color-border","hover:rtg-bg-button-outline-color-bg-hover hover:rtg-text-button-outline-color-text-hover","focus-visible:rtg-ring-button-outline-color-ring-focus"],secondary:["rtg-bg-button-secondary-color-bg rtg-text-button-secondary-color-text","hover:rtg-bg-button-secondary-color-bg-hover","focus-visible:rtg-ring-button-secondary-color-ring-focus"],ghost:["hover:rtg-bg-button-ghost-color-bg-hover hover:rtg-text-button-ghost-color-text-hover","focus-visible:rtg-ring-button-ghost-color-ring-focus"],link:["rtg-text-button-link-color-text rtg-underline-offset-4","hover:rtg-underline","focus-visible:rtg-ring-button-link-color-ring-focus"]},size:{default:["rtg-h-button-space-h-default","rtg-gap-button-space-gap-default rtg-px-button-space-px-default rtg-py-button-space-py-default","has-[>svg]:rtg-px-button-space-px-default-has-icon"],sm:["rtg-h-button-space-h-sm","rtg-gap-button-space-gap-sm rtg-px-button-space-px-sm","has-[>svg]:rtg-px-button-space-px-sm-has-icon"],lg:["rtg-h-button-space-h-lg","rtg-gap-button-space-gap-lg rtg-px-button-space-px-lg","has-[>svg]:rtg-px-button-space-px-lg-has-icon"],icon:"rtg-size-button-space-size-icon","icon-sm":"rtg-size-button-space-size-icon-sm","icon-lg":"rtg-size-button-space-size-icon-lg"}},defaultVariants:{variant:"default",size:"default"}}),q={host:["rtg-contents"],root:["group/calendar","rtg-relative","rtg-p-calendar-space-p","rtg-w-fit","rtg-bg-calendar-color-bg"],months:["rtg-flex rtg-relative","rtg-flex-col md:rtg-flex-row rtg-gap-calendar-months-space-gap"],nav:["rtg-flex rtg-absolute rtg-top-0 rtg-inset-x-0","rtg-gap-calendar-nav-space-gap rtg-justify-between rtg-items-center","rtg-w-full"],month:["rtg-flex","rtg-flex-col rtg-gap-calendar-month-space-gap","rtg-w-full"],buttonPrevious:[b(gi({variant:"ghost",size:"icon-sm"})),"rtg-select-none","aria-disabled:rtg-opacity-calendar-button-previous-opacity-disabled"],buttonNext:[b(gi({variant:"ghost",size:"icon-sm"})),"rtg-select-none","aria-disabled:rtg-opacity-calendar-button-next-opacity-disabled"],chevron:["rtg-size-calendar-chevron-space-size"],monthCaption:["rtg-flex rtg-justify-center rtg-items-center","rtg-px-calendar-month-caption-space-px","rtg-w-full rtg-h-calendar-month-caption-space-h"],captionLabel:["rtg-text-calendar-caption-label-font rtg-font-calendar-caption-label-font-weight","rtg-select-none"],monthGrid:["rtg-w-full","rtg-border-collapse"],weekdays:["rtg-flex"],weekday:["rtg-flex-1","rtg-text-calendar-weekday-font rtg-font-calendar-weekday-font-weight rtg-text-calendar-weekday-color-text","rtg-rounded-calendar-weekday-radius","rtg-select-none"],weeks:[""],week:["rtg-flex","rtg-mt-calendar-week-space-mt","rtg-w-full"],day:{base:["group/day","rtg-aspect-square rtg-relative","rtg-w-full rtg-h-full","rtg-p-calendar-day-space-p","rtg-text-center","rtg-select-none"],today:["rtg-bg-calendar-day-today-color-bg","rtg-rounded-calendar-day-radius"],selected:{common:["rtg-bg-calendar-day-color-bg-selected"],single:["rtg-rounded-calendar-day-radius"],range:{start:["rtg-rounded-l-calendar-day-radius"],middle:["rtg-rounded-none"],end:["rtg-rounded-r-calendar-day-radius"]}},index:{first:["rtg-rounded-l-calendar-day-radius"],last:["rtg-rounded-r-calendar-day-radius"]}},dayButton:{base:[gi({variant:"ghost",size:"icon"}),"rtg-aspect-square rtg-flex","rtg-flex-col rtg-gap-calendar-day-button-space-gap","rtg-size-auto rtg-w-full rtg-min-w-calendar-day-button-space-min-w","rtg-text-calendar-day-button-font rtg-font-calendar-day-button-font-weight","disabled:rtg-text-calendar-day-button-color-text-disabled disabled:rtg-opacity-calendar-day-button-opacity-disabled","data-[selected-single=true]:rtg-text-calendar-day-button-color-text-single-selected data-[selected-single=true]:rtg-bg-calendar-day-button-color-bg-single-selected","data-[range-start=true]:rtg-text-calendar-day-button-color-text-range-start data-[range-start=true]:rtg-bg-calendar-day-button-color-bg-range-start","data-[range-middle=true]:rtg-text-calendar-day-button-color-text-range-middle data-[range-middle=true]:rtg-bg-calendar-day-button-color-bg-range-middle","data-[range-end=true]:rtg-text-calendar-day-button-color-text-range-end data-[range-end=true]:rtg-bg-calendar-day-button-color-bg-range-end","[&>span]:rtg-text-calendar-day-button-span-font [&>span]:rtg-opacity-calendar-day-button-span-opacity","group-data-[focused=true]/day:rtg-relative group-data-[focused=true]/day:rtg-z-10","group-data-[focused=true]/day:rtg-border-calendar-day-width-border-focus group-data-[focused=true]/day:rtg-border-calendar-day-color-border-focus","group-data-[focused=true]/day:rtg-ring-calendar-day-width-ring-focus group-data-[focused=true]/day:rtg-ring-calendar-day-color-ring-focus"],outside:["rtg-text-calendar-day-button-outside-color-text"],today:["rtg-text-calendar-day-button-today-color-text","rtg-bg-calendar-day-button-today-color-bg"]}},ma,Or=class extends v{constructor(...e){super(...e),this.currentDate=new Date,this.selectedStartDate=null,this.selectedEndDate=null,this.mode="single",this._userClass="",this._userStyle=""}getDaysInMonth(e,t){return new Date(e,t+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(e,t){if(!t){let r=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);r.getMonth()===this.currentDate.getMonth()&&(this.mode==="single"?(this.selectedStartDate=r,this.selectedEndDate=null):this.mode==="range"&&(!this.selectedStartDate||this.selectedEndDate?(this.selectedStartDate=r,this.selectedEndDate=null):r>=this.selectedStartDate?this.selectedEndDate=r:(this.selectedEndDate=this.selectedStartDate,this.selectedStartDate=r)),this.dispatchEvent(new CustomEvent("date-selected",{detail:{startDate:this.selectedStartDate,endDate:this.selectedEndDate},bubbles:!0,composed:!0})))}}isDayInRange(e,t){return!this.selectedStartDate||!this.selectedEndDate||e.getMonth()!==this.currentDate.getMonth()?!1:t?e>this.selectedStartDate&&e<this.selectedEndDate:e>=this.selectedStartDate&&e<=this.selectedEndDate}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._userClass=((e=this.getAttribute("class"))==null?void 0:e.replace(b(q.host),""))??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=b(q.host)}firstUpdated(e){var r;let t=this.querySelector(".calendar");if(t&&(this._userClass&&(t.className=b("calendar",q.root,this._userClass)),this._userStyle)){let i=(r=t.getAttribute("style"))==null?void 0:r.trim(),s=this._userStyle.trim();t.setAttribute("style",[i,s].filter(Boolean).join("; "))}}render(){let e=this.currentDate.getFullYear(),t=this.currentDate.getMonth(),r=this.getDaysInMonth(e,t),i=new Date(e,t,1).getDay(),s=new Date(e,t,0).getDate(),o=[];for(let g=i-1;g>=0;g--)o.push({day:String(s-g),month:t-1,isOutside:!0});for(let g=1;g<=r;g++)o.push({day:String(g),month:t,isOutside:!1});let n=o.length%7;if(n!==0){let g=7-n;for(let y=1;y<=g;y++)o.push({day:String(y),month:t+1,isOutside:!0})}let h=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"}),u=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"});return d`
3148
+ `}};l([a({type:String}),c("design:type",Object)],Yt.prototype,"variant",void 0),l([a({type:String}),c("design:type",Object)],Yt.prototype,"size",void 0),l([a({type:String}),c("design:type",Object)],Yt.prototype,"type",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Yt.prototype,"disabled",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Yt.prototype,"invalid",void 0),l([a({type:String}),c("design:type",String)],Yt.prototype,"href",void 0),l([a({type:String}),c("design:type",Object)],Yt.prototype,"target",void 0),l([a({attribute:!1,type:Function}),c("design:type",Function)],Yt.prototype,"onClick",void 0),Yt=l([u("rtg-button")],Yt);var Dh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Bh(e){let t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function Mh(e){let t=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),r=new Intl.DateTimeFormat("en-US",{month:"long"}).format(e),i=e.getDate(),s=e.getFullYear();return`${t}, ${r} ${i}${Bh(i)}, ${s}`}var ua=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ga=Ld,hn=(e,t)=>r=>{var h;if((t==null?void 0:t.variants)==null)return ga(e,r==null?void 0:r.class,r==null?void 0:r.className);let{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(p=>{let g=r==null?void 0:r[p],y=s==null?void 0:s[p];if(g===null)return null;let w=ua(g)||ua(y);return i[p][w]}),n=r&&Object.entries(r).reduce((p,g)=>{let[y,w]=g;return w===void 0||(p[y]=w),p},{});return ga(e,o,(h=t==null?void 0:t.compoundVariants)==null?void 0:h.reduce((p,g)=>{let{class:y,className:w,...E}=g;return Object.entries(E).every(C=>{let[S,k]=C;return Array.isArray(k)?k.includes({...s,...n}[S]):{...s,...n}[S]===k})?[...p,y,w]:p},[]),r==null?void 0:r.class,r==null?void 0:r.className)},bi=hn(["rtg-inline-flex rtg-items-center rtg-justify-center rtg-shrink-0","rtg-text-button-font-size rtg-font-button-font-weight rtg-whitespace-nowrap","rtg-rounded-button-radius rtg-outline-none","rtg-transition-all","disabled:rtg-opacity-button-opacity-disabled disabled:rtg-pointer-events-none","focus-visible:rtg-border-button-width-border-focus focus-visible:rtg-border-button-color-border-focus focus-visible:rtg-ring-button-width-ring-focus","aria-invalid:rtg-border-button-width-border-invalid aria-invalid:rtg-border-button-color-border-invalid","aria-invalid:rtg-ring-button-width-ring-invalid aria-invalid:rtg-ring-button-color-ring-invalid",'[&_svg]:rtg-pointer-events-none [&_svg:not([class*="rtg-size-"])]:rtg-size-button-icon-space-size [&_svg]:rtg-shrink-0'],{variants:{variant:{default:["rtg-bg-button-default-color-bg rtg-text-button-default-color-text","hover:rtg-bg-button-default-color-bg-hover","focus-visible:rtg-ring-button-default-color-ring-focus"],destructive:["rtg-bg-button-destructive-color-bg rtg-text-button-destructive-color-text","hover:rtg-bg-button-destructive-color-bg-hover","focus-visible:rtg-ring-button-destructive-color-ring-focus"],outline:["rtg-bg-button-outline-color-bg","rtg-border-button-outline-width-border rtg-border-button-outline-color-border","hover:rtg-bg-button-outline-color-bg-hover hover:rtg-text-button-outline-color-text-hover","focus-visible:rtg-ring-button-outline-color-ring-focus"],secondary:["rtg-bg-button-secondary-color-bg rtg-text-button-secondary-color-text","hover:rtg-bg-button-secondary-color-bg-hover","focus-visible:rtg-ring-button-secondary-color-ring-focus"],ghost:["hover:rtg-bg-button-ghost-color-bg-hover hover:rtg-text-button-ghost-color-text-hover","focus-visible:rtg-ring-button-ghost-color-ring-focus"],link:["rtg-text-button-link-color-text rtg-underline-offset-4","hover:rtg-underline","focus-visible:rtg-ring-button-link-color-ring-focus"]},size:{default:["rtg-h-button-space-h-default","rtg-gap-button-space-gap-default rtg-px-button-space-px-default rtg-py-button-space-py-default","has-[>svg]:rtg-px-button-space-px-default-has-icon"],sm:["rtg-h-button-space-h-sm","rtg-gap-button-space-gap-sm rtg-px-button-space-px-sm","has-[>svg]:rtg-px-button-space-px-sm-has-icon"],lg:["rtg-h-button-space-h-lg","rtg-gap-button-space-gap-lg rtg-px-button-space-px-lg","has-[>svg]:rtg-px-button-space-px-lg-has-icon"],icon:"rtg-size-button-space-size-icon","icon-sm":"rtg-size-button-space-size-icon-sm","icon-lg":"rtg-size-button-space-size-icon-lg"}},defaultVariants:{variant:"default",size:"default"}}),q={host:["rtg-contents"],root:["group/calendar","rtg-relative","rtg-p-calendar-space-p","rtg-w-fit","rtg-bg-calendar-color-bg"],months:["rtg-flex rtg-relative","rtg-flex-col md:rtg-flex-row rtg-gap-calendar-months-space-gap"],nav:["rtg-flex rtg-absolute rtg-top-0 rtg-inset-x-0","rtg-gap-calendar-nav-space-gap rtg-justify-between rtg-items-center","rtg-w-full"],month:["rtg-flex","rtg-flex-col rtg-gap-calendar-month-space-gap","rtg-w-full"],buttonPrevious:[b(bi({variant:"ghost",size:"icon-sm"})),"rtg-select-none","aria-disabled:rtg-opacity-calendar-button-previous-opacity-disabled"],buttonNext:[b(bi({variant:"ghost",size:"icon-sm"})),"rtg-select-none","aria-disabled:rtg-opacity-calendar-button-next-opacity-disabled"],chevron:["rtg-size-calendar-chevron-space-size"],monthCaption:["rtg-flex rtg-justify-center rtg-items-center","rtg-px-calendar-month-caption-space-px","rtg-w-full rtg-h-calendar-month-caption-space-h"],captionLabel:["rtg-text-calendar-caption-label-font rtg-font-calendar-caption-label-font-weight","rtg-select-none"],monthGrid:["rtg-w-full","rtg-border-collapse"],weekdays:["rtg-flex"],weekday:["rtg-flex-1","rtg-text-calendar-weekday-font rtg-font-calendar-weekday-font-weight rtg-text-calendar-weekday-color-text","rtg-rounded-calendar-weekday-radius","rtg-select-none"],weeks:[""],week:["rtg-flex","rtg-mt-calendar-week-space-mt","rtg-w-full"],day:{base:["group/day","rtg-aspect-square rtg-relative","rtg-w-full rtg-h-full","rtg-p-calendar-day-space-p","rtg-text-center","rtg-select-none"],today:["rtg-bg-calendar-day-today-color-bg","rtg-rounded-calendar-day-radius"],selected:{common:["rtg-bg-calendar-day-color-bg-selected"],single:["rtg-rounded-calendar-day-radius"],range:{start:["rtg-rounded-l-calendar-day-radius"],middle:["rtg-rounded-none"],end:["rtg-rounded-r-calendar-day-radius"]}},index:{first:["rtg-rounded-l-calendar-day-radius"],last:["rtg-rounded-r-calendar-day-radius"]}},dayButton:{base:[bi({variant:"ghost",size:"icon"}),"rtg-aspect-square rtg-flex","rtg-flex-col rtg-gap-calendar-day-button-space-gap","rtg-size-auto rtg-w-full rtg-min-w-calendar-day-button-space-min-w","rtg-text-calendar-day-button-font rtg-font-calendar-day-button-font-weight","disabled:rtg-text-calendar-day-button-color-text-disabled disabled:rtg-opacity-calendar-day-button-opacity-disabled","data-[selected-single=true]:rtg-text-calendar-day-button-color-text-single-selected data-[selected-single=true]:rtg-bg-calendar-day-button-color-bg-single-selected","data-[range-start=true]:rtg-text-calendar-day-button-color-text-range-start data-[range-start=true]:rtg-bg-calendar-day-button-color-bg-range-start","data-[range-middle=true]:rtg-text-calendar-day-button-color-text-range-middle data-[range-middle=true]:rtg-bg-calendar-day-button-color-bg-range-middle","data-[range-end=true]:rtg-text-calendar-day-button-color-text-range-end data-[range-end=true]:rtg-bg-calendar-day-button-color-bg-range-end","[&>span]:rtg-text-calendar-day-button-span-font [&>span]:rtg-opacity-calendar-day-button-span-opacity","group-data-[focused=true]/day:rtg-relative group-data-[focused=true]/day:rtg-z-10","group-data-[focused=true]/day:rtg-border-calendar-day-width-border-focus group-data-[focused=true]/day:rtg-border-calendar-day-color-border-focus","group-data-[focused=true]/day:rtg-ring-calendar-day-width-ring-focus group-data-[focused=true]/day:rtg-ring-calendar-day-color-ring-focus"],outside:["rtg-text-calendar-day-button-outside-color-text"],today:["rtg-text-calendar-day-button-today-color-text","rtg-bg-calendar-day-button-today-color-bg"]}},ma,Ar=class extends v{constructor(...e){super(...e),this.currentDate=new Date,this.selectedStartDate=null,this.selectedEndDate=null,this.mode="single",this._userClass="",this._userStyle=""}getDaysInMonth(e,t){return new Date(e,t+1,0).getDate()}previousMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1)}nextMonth(){this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1)}selectDate(e,t){if(!t){let r=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),e);r.getMonth()===this.currentDate.getMonth()&&(this.mode==="single"?(this.selectedStartDate=r,this.selectedEndDate=null):this.mode==="range"&&(!this.selectedStartDate||this.selectedEndDate?(this.selectedStartDate=r,this.selectedEndDate=null):r>=this.selectedStartDate?this.selectedEndDate=r:(this.selectedEndDate=this.selectedStartDate,this.selectedStartDate=r)),this.dispatchEvent(new CustomEvent("date-selected",{detail:{startDate:this.selectedStartDate,endDate:this.selectedEndDate},bubbles:!0,composed:!0})))}}isDayInRange(e,t){return!this.selectedStartDate||!this.selectedEndDate||e.getMonth()!==this.currentDate.getMonth()?!1:t?e>this.selectedStartDate&&e<this.selectedEndDate:e>=this.selectedStartDate&&e<=this.selectedEndDate}createRenderRoot(){return this}connectedCallback(){var e;super.connectedCallback(),this._userClass=((e=this.getAttribute("class"))==null?void 0:e.replace(b(q.host),""))??"",this._userStyle=this.getAttribute("style")??"",this._userClass&&this.removeAttribute("class"),this._userStyle&&this.removeAttribute("style"),this.className=b(q.host)}firstUpdated(e){var r;let t=this.querySelector(".calendar");if(t&&(this._userClass&&(t.className=b("calendar",q.root,this._userClass)),this._userStyle)){let i=(r=t.getAttribute("style"))==null?void 0:r.trim(),s=this._userStyle.trim();t.setAttribute("style",[i,s].filter(Boolean).join("; "))}}render(){let e=this.currentDate.getFullYear(),t=this.currentDate.getMonth(),r=this.getDaysInMonth(e,t),i=new Date(e,t,1).getDay(),s=new Date(e,t,0).getDate(),o=[];for(let g=i-1;g>=0;g--)o.push({day:String(s-g),month:t-1,isOutside:!0});for(let g=1;g<=r;g++)o.push({day:String(g),month:t,isOutside:!1});let n=o.length%7;if(n!==0){let g=7-n;for(let y=1;y<=g;y++)o.push({day:String(y),month:t+1,isOutside:!0})}let h=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"}),p=this.currentDate.toLocaleString("default",{month:"long",year:"numeric"});return d`
3149
3149
  <div
3150
3150
  class=${b("calendar",q.root,this._userClass)}
3151
3151
  data-slot="calendar"
@@ -3214,7 +3214,7 @@ body {
3214
3214
  <table
3215
3215
  class=${b("calendar-month-grid",q.monthGrid)}
3216
3216
  role="grid"
3217
- aria-label=${u}
3217
+ aria-label=${p}
3218
3218
  aria-multiselectable=${this.mode==="range"?"true":"false"}
3219
3219
  >
3220
3220
  <thead aria-hidden="true">
@@ -3234,9 +3234,9 @@ body {
3234
3234
  <tbody class=${b("calendar-weeks",q.weeks)}>
3235
3235
  ${Array.from({length:Math.ceil(o.length/7)},(g,y)=>d`
3236
3236
  <tr class=${b("calendar-week",q.week)}>
3237
- ${o.slice(y*7,(y+1)*7).map((w,E)=>{var st,U,vt;let C=new Date(this.currentDate.getFullYear(),w.month,Number(w.day)),S=C.toDateString()===new Date().toDateString(),k=this.mode==="range"&&C.toDateString()===((st=this.selectedStartDate)==null?void 0:st.toDateString()),O=this.mode==="range"&&this.isDayInRange(C,!0),A=this.mode==="range"&&C.toDateString()===((U=this.selectedEndDate)==null?void 0:U.toDateString()),F=this.mode==="single"&&C.toDateString()===((vt=this.selectedStartDate)==null?void 0:vt.toDateString()),V=F||k||O||A,M=E===0,J=E===6,it=S?"Today, ":"";return it+=Mh(C),it+=V?", selected":"",d`
3237
+ ${o.slice(y*7,(y+1)*7).map((w,E)=>{var st,j,vt;let C=new Date(this.currentDate.getFullYear(),w.month,Number(w.day)),S=C.toDateString()===new Date().toDateString(),k=this.mode==="range"&&C.toDateString()===((st=this.selectedStartDate)==null?void 0:st.toDateString()),O=this.mode==="range"&&this.isDayInRange(C,!0),A=this.mode==="range"&&C.toDateString()===((j=this.selectedEndDate)==null?void 0:j.toDateString()),F=this.mode==="single"&&C.toDateString()===((vt=this.selectedStartDate)==null?void 0:vt.toDateString()),V=F||k||O||A,M=E===0,Q=E===6,it=S?"Today, ":"";return it+=Mh(C),it+=V?", selected":"",d`
3238
3238
  <td
3239
- class=${b("calendar-day",q.day.base,S&&!V&&q.day.today,V&&q.day.selected.common,F&&q.day.selected.single,k&&q.day.selected.range.start,O&&q.day.selected.range.middle,A&&q.day.selected.range.end,M&&q.day.index.first,J&&q.day.index.last,!1)}
3239
+ class=${b("calendar-day",q.day.base,S&&!V&&q.day.today,V&&q.day.selected.common,F&&q.day.selected.single,k&&q.day.selected.range.start,O&&q.day.selected.range.middle,A&&q.day.selected.range.end,M&&q.day.index.first,Q&&q.day.index.last,!1)}
3240
3240
  role="gridcell"
3241
3241
  data-day=${C.toISOString().slice(0,10)}
3242
3242
  ?data-disabled=${void 0}
@@ -3274,11 +3274,11 @@ body {
3274
3274
  </div>
3275
3275
  </div>
3276
3276
  </div>
3277
- `}};l([a({type:Object}),c("design:type",typeof(ma=typeof Date<"u"&&Date)=="function"?ma:Object)],Or.prototype,"currentDate",void 0),l([a({type:Object}),c("design:type",Object)],Or.prototype,"selectedStartDate",void 0),l([a({type:Object}),c("design:type",Object)],Or.prototype,"selectedEndDate",void 0),l([a({type:String}),c("design:type",Object)],Or.prototype,"mode",void 0),Or=l([p("rtg-calendar")],Or);var so=class extends v{constructor(...e){super(...e),this.size="default"}get _rootSlot(){return this.querySelector('[data-slot="card"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card" data-size=${this.size}></div>`}};l([a({type:String}),c("design:type",Object)],so.prototype,"size",void 0),so=l([p("rtg-card")],so);var oo=class extends v{get _headerSlot(){return this.querySelector('[data-slot="card-header"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._headerSlot&&((r=this._headerSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`
3277
+ `}};l([a({type:Object}),c("design:type",typeof(ma=typeof Date<"u"&&Date)=="function"?ma:Object)],Ar.prototype,"currentDate",void 0),l([a({type:Object}),c("design:type",Object)],Ar.prototype,"selectedStartDate",void 0),l([a({type:Object}),c("design:type",Object)],Ar.prototype,"selectedEndDate",void 0),l([a({type:String}),c("design:type",Object)],Ar.prototype,"mode",void 0),Ar=l([u("rtg-calendar")],Ar);var so=class extends v{constructor(...e){super(...e),this.size="default"}get _rootSlot(){return this.querySelector('[data-slot="card"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card" data-size=${this.size}></div>`}};l([a({type:String}),c("design:type",Object)],so.prototype,"size",void 0),so=l([u("rtg-card")],so);var oo=class extends v{get _headerSlot(){return this.querySelector('[data-slot="card-header"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._headerSlot&&((r=this._headerSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`
3278
3278
  <div data-slot="card-header" ?data-border=${this.border}></div>
3279
- `}};l([a({type:Boolean}),c("design:type",Boolean)],oo.prototype,"border",void 0),oo=l([p("rtg-card-header")],oo);var ba=class extends v{get _titleSlot(){return this.querySelector('[data-slot="card-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._titleSlot&&((r=this._titleSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card-title"></div>`}};ba=l([p("rtg-card-title")],ba);var fa=class extends v{get _descriptionSlot(){return this.querySelector('[data-slot="card-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._descriptionSlot&&((r=this._descriptionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card-description"></div>`}};fa=l([p("rtg-card-description")],fa);var va=class extends v{get _actionSlot(){return this.querySelector('[data-slot="card-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._actionSlot&&((r=this._actionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card-action"></div>`}};va=l([p("rtg-card-action")],va);var ya=class extends v{get _contentSlot(){return this.querySelector('[data-slot="card-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._contentSlot&&((r=this._contentSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card-content"></div>`}};ya=l([p("rtg-card-content")],ya);var no=class extends v{get _footerSlot(){return this.querySelector('[data-slot="card-footer"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._footerSlot&&((r=this._footerSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`
3279
+ `}};l([a({type:Boolean}),c("design:type",Boolean)],oo.prototype,"border",void 0),oo=l([u("rtg-card-header")],oo);var ba=class extends v{get _titleSlot(){return this.querySelector('[data-slot="card-title"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._titleSlot&&((r=this._titleSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card-title"></div>`}};ba=l([u("rtg-card-title")],ba);var fa=class extends v{get _descriptionSlot(){return this.querySelector('[data-slot="card-description"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._descriptionSlot&&((r=this._descriptionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card-description"></div>`}};fa=l([u("rtg-card-description")],fa);var va=class extends v{get _actionSlot(){return this.querySelector('[data-slot="card-action"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._actionSlot&&((r=this._actionSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card-action"></div>`}};va=l([u("rtg-card-action")],va);var ya=class extends v{get _contentSlot(){return this.querySelector('[data-slot="card-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._contentSlot&&((r=this._contentSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<div data-slot="card-content"></div>`}};ya=l([u("rtg-card-content")],ya);var no=class extends v{get _footerSlot(){return this.querySelector('[data-slot="card-footer"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._footerSlot&&((r=this._footerSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`
3280
3280
  <div data-slot="card-footer" ?data-border=${this.border}></div>
3281
- `}};l([a({type:Boolean}),c("design:type",Boolean)],no.prototype,"border",void 0),no=l([p("rtg-card-footer")],no);function qh(){return te` <svg
3281
+ `}};l([a({type:Boolean}),c("design:type",Boolean)],no.prototype,"border",void 0),no=l([u("rtg-card-footer")],no);function qh(){return te` <svg
3282
3282
  class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
3283
3283
  xmlns="http://www.w3.org/2000/svg"
3284
3284
  width="24"
@@ -3386,7 +3386,7 @@ body {
3386
3386
  >
3387
3387
  <path d="M20 6 9 17l-5-5"></path>
3388
3388
  </svg>
3389
- `}var Tt={root:["rtg-relative rtg-mx-carousel-space-mx rtg-h-carousel-space-h rtg-w-carousel-space-w"],viewport:["rtg-w-carousel-viewport-space-w rtg-h-carousel-viewport-space-h rtg-overflow-hidden"],slidesWrapper:{base:["rtg-flex rtg-transition-transform rtg-duration-carousel-motion-duration rtg-ease-carousel-motion-fn"],orientation:{horizontal:["rtg-flex-row"],vertical:["rtg-flex-col"]}},slide:{base:["rtg-min-w-0 rtg-basis-full rtg-h-carousel-slide-space-h rtg-flex-shrink-0 rtg-flex-grow-0 rtg-transition-transform rtg-duration-carousel-motion-duration rtg-px-carousel-slide-space-px rtg-py-carousel-slide-space-py"],size:{true:["lg:rtg-basis-1/3 lg:rtg-h-1/2 md:rtg-basis-1/2 md:rtg-h-1/2"],false:[""]}},controls:{base:["rtg-absolute rtg-z-10 rtg-flex"],orientation:{horizontal:["rtg-top-1/2 rtg-left-carousel-control-horizontal-space-left rtg-right-carousel-control-horizontal-space-right rtg-justify-between"],vertical:["rtg-w-carousel-control-vertical-space-w rtg-h-carousel-control-vertical-space-h rtg-top-0 rtg-flex-col rtg-justify-between rtg-items-center"]}},controlButton:{base:["rtg-bg-carousel-button-color-bg rtg-text-carousel-button-color-text rtg-border-none rtg-px-carousel-button-space-px rtg-py-carousel-button-space-py rtg-cursor-pointer rtg-z-10 rtg-rounded-carousel-button-radius rtg-w-carousel-button-space-w rtg-h-carousel-button-space-h rtg-flex rtg-items-center rtg-justify-center hover:rtg-bg-carousel-button-color-bg-hover disabled:rtg-opacity-carousel-button-opacity-disabled"],orientation:{verticalPrev:["rtg-relative rtg-top-carousel-button-vertical-prev-space-top rtg-rotate-90"],verticalNext:["rtg-relative rtg-top-carousel-button-vertical-next-space-top rtg-rotate-90"]}}},wa,He=class extends v{constructor(...e){super(...e),this.currentIndex=0,this.items=[],this.orientation="horizontal",this.size=!1,this.handleResize=()=>{this.updateSlides(),this.currentIndex=0,this.querySelectorAll(".slide").forEach(t=>{t.className=this.getSlideClasses()})}}createRenderRoot(){return this}firstUpdated(){this.restructureSlides()}restructureSlides(){let e=this.querySelector(".slides");if(e)for(let t=0;t<this.items.length;t++){let r=`slide-${t}`,i=this.querySelector(`[slot="${r}"]`);if(i&&i.parentElement!==e){let s=document.createElement("div");s.className=this.getSlideClasses(),e.appendChild(s),s.appendChild(i)}}}getSlideClasses(){return b(Tt.slide.base,this.size?Tt.slide.size.true:Tt.slide.size.false)}nextSlide(){this.currentIndex<this.items.length-1&&(this.currentIndex+=1,this.updateSlides())}prevSlide(){this.currentIndex>0&&(--this.currentIndex,this.updateSlides())}updateSlides(){let e;e=this.size?window.innerWidth>=1024?33.3333:window.innerWidth>=768?50:100:100;let t=this.orientation==="vertical"?100/this.items.length:100;this.slides&&(this.slides.style.transform=this.orientation==="horizontal"?`translateX(-${this.currentIndex*e}%)`:`translateY(-${this.currentIndex*t}%)`)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}render(){let e=this.currentIndex===0,t=this.size?window.innerWidth>=1024?3:window.innerWidth>=768?2:1:1,r=this.currentIndex>=this.items.length-t,i=b(Tt.slidesWrapper.base,Tt.slidesWrapper.orientation[this.orientation]),s=b(Tt.controls.base,Tt.controls.orientation[this.orientation]),o=b(Tt.controlButton.base,this.orientation==="vertical"&&Tt.controlButton.orientation.verticalPrev),n=b(Tt.controlButton.base,this.orientation==="vertical"&&Tt.controlButton.orientation.verticalNext);return d`
3389
+ `}var Tt={root:["rtg-relative rtg-mx-carousel-space-mx rtg-h-carousel-space-h rtg-w-carousel-space-w"],viewport:["rtg-w-carousel-viewport-space-w rtg-h-carousel-viewport-space-h rtg-overflow-hidden"],slidesWrapper:{base:["rtg-flex rtg-transition-transform rtg-duration-carousel-motion-duration rtg-ease-carousel-motion-fn"],orientation:{horizontal:["rtg-flex-row"],vertical:["rtg-flex-col"]}},slide:{base:["rtg-min-w-0 rtg-basis-full rtg-h-carousel-slide-space-h rtg-flex-shrink-0 rtg-flex-grow-0 rtg-transition-transform rtg-duration-carousel-motion-duration rtg-px-carousel-slide-space-px rtg-py-carousel-slide-space-py"],size:{true:["lg:rtg-basis-1/3 lg:rtg-h-1/2 md:rtg-basis-1/2 md:rtg-h-1/2"],false:[""]}},controls:{base:["rtg-absolute rtg-z-10 rtg-flex"],orientation:{horizontal:["rtg-top-1/2 rtg-left-carousel-control-horizontal-space-left rtg-right-carousel-control-horizontal-space-right rtg-justify-between"],vertical:["rtg-w-carousel-control-vertical-space-w rtg-h-carousel-control-vertical-space-h rtg-top-0 rtg-flex-col rtg-justify-between rtg-items-center"]}},controlButton:{base:["rtg-bg-carousel-button-color-bg rtg-text-carousel-button-color-text rtg-border-none rtg-px-carousel-button-space-px rtg-py-carousel-button-space-py rtg-cursor-pointer rtg-z-10 rtg-rounded-carousel-button-radius rtg-w-carousel-button-space-w rtg-h-carousel-button-space-h rtg-flex rtg-items-center rtg-justify-center hover:rtg-bg-carousel-button-color-bg-hover disabled:rtg-opacity-carousel-button-opacity-disabled"],orientation:{verticalPrev:["rtg-relative rtg-top-carousel-button-vertical-prev-space-top rtg-rotate-90"],verticalNext:["rtg-relative rtg-top-carousel-button-vertical-next-space-top rtg-rotate-90"]}}},wa,Ge=class extends v{constructor(...e){super(...e),this.currentIndex=0,this.items=[],this.orientation="horizontal",this.size=!1,this.handleResize=()=>{this.updateSlides(),this.currentIndex=0,this.querySelectorAll(".slide").forEach(t=>{t.className=this.getSlideClasses()})}}createRenderRoot(){return this}firstUpdated(){this.restructureSlides()}restructureSlides(){let e=this.querySelector(".slides");if(e)for(let t=0;t<this.items.length;t++){let r=`slide-${t}`,i=this.querySelector(`[slot="${r}"]`);if(i&&i.parentElement!==e){let s=document.createElement("div");s.className=this.getSlideClasses(),e.appendChild(s),s.appendChild(i)}}}getSlideClasses(){return b(Tt.slide.base,this.size?Tt.slide.size.true:Tt.slide.size.false)}nextSlide(){this.currentIndex<this.items.length-1&&(this.currentIndex+=1,this.updateSlides())}prevSlide(){this.currentIndex>0&&(--this.currentIndex,this.updateSlides())}updateSlides(){let e;e=this.size?window.innerWidth>=1024?33.3333:window.innerWidth>=768?50:100:100;let t=this.orientation==="vertical"?100/this.items.length:100;this.slides&&(this.slides.style.transform=this.orientation==="horizontal"?`translateX(-${this.currentIndex*e}%)`:`translateY(-${this.currentIndex*t}%)`)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.handleResize)}render(){let e=this.currentIndex===0,t=this.size?window.innerWidth>=1024?3:window.innerWidth>=768?2:1:1,r=this.currentIndex>=this.items.length-t,i=b(Tt.slidesWrapper.base,Tt.slidesWrapper.orientation[this.orientation]),s=b(Tt.controls.base,Tt.controls.orientation[this.orientation]),o=b(Tt.controlButton.base,this.orientation==="vertical"&&Tt.controlButton.orientation.verticalPrev),n=b(Tt.controlButton.base,this.orientation==="vertical"&&Tt.controlButton.orientation.verticalNext);return d`
3390
3390
  <div
3391
3391
  part="rtg-carousel"
3392
3392
  class="${b(Tt.root,this.className)}"
@@ -3415,7 +3415,7 @@ body {
3415
3415
  </div>
3416
3416
  </div>
3417
3417
  </div>
3418
- `}};l([a({type:Number}),c("design:type",Object)],He.prototype,"currentIndex",void 0),l([a({type:Array}),c("design:type",Array)],He.prototype,"items",void 0),l([a({type:String}),c("design:type",String)],He.prototype,"orientation",void 0),l([a({type:Boolean}),c("design:type",Object)],He.prototype,"size",void 0),l([Ci(".slides"),c("design:type",typeof(wa=typeof HTMLElement<"u"&&HTMLElement)=="function"?wa:Object)],He.prototype,"slides",void 0),He=l([p("rtg-carousel")],He);var Dt=class extends v{constructor(...e){super(...e),this.value="on"}createRenderRoot(){return this}_isControlled(){return this.checked!==void 0}_getState(){return this._checked?"checked":"unchecked"}updated(e){e.has("checked")&&this._isControlled()&&(this._checked=this.checked)}firstUpdated(e){this._checked=this.defaultChecked||this.checked}_handleClick(){if(this.disabled)return;let e=!this._checked;this._isControlled()||(this._checked=e),this.dispatchEvent(new CustomEvent("rtg-checkbox:checked-change",{detail:{checked:e},bubbles:!0,composed:!0})),this.onCheckedChange!==void 0&&this.onCheckedChange(e)}_renderIndicator(){return this._checked?d`
3418
+ `}};l([a({type:Number}),c("design:type",Object)],Ge.prototype,"currentIndex",void 0),l([a({type:Array}),c("design:type",Array)],Ge.prototype,"items",void 0),l([a({type:String}),c("design:type",String)],Ge.prototype,"orientation",void 0),l([a({type:Boolean}),c("design:type",Object)],Ge.prototype,"size",void 0),l([ki(".slides"),c("design:type",typeof(wa=typeof HTMLElement<"u"&&HTMLElement)=="function"?wa:Object)],Ge.prototype,"slides",void 0),Ge=l([u("rtg-carousel")],Ge);var Dt=class extends v{constructor(...e){super(...e),this.value="on"}createRenderRoot(){return this}_isControlled(){return this.checked!==void 0}_getState(){return this._checked?"checked":"unchecked"}updated(e){e.has("checked")&&this._isControlled()&&(this._checked=this.checked)}firstUpdated(e){this._checked=this.defaultChecked||this.checked}_handleClick(){if(this.disabled)return;let e=!this._checked;this._isControlled()||(this._checked=e),this.dispatchEvent(new CustomEvent("rtg-checkbox:checked-change",{detail:{checked:e},bubbles:!0,composed:!0})),this.onCheckedChange!==void 0&&this.onCheckedChange(e)}_renderIndicator(){return this._checked?d`
3419
3419
  <span
3420
3420
  data-slot="checkbox-indicator"
3421
3421
  data-state=${this._getState()}
@@ -3453,31 +3453,31 @@ body {
3453
3453
  </button>
3454
3454
 
3455
3455
  ${this._renderInput()}
3456
- `}};l([a({attribute:"default-checked",type:Boolean}),c("design:type",Boolean)],Dt.prototype,"defaultChecked",void 0),l([a({attribute:!0,type:Boolean}),c("design:type",Boolean)],Dt.prototype,"checked",void 0),l([a({attribute:!1,type:Function}),c("design:type",Function)],Dt.prototype,"onCheckedChange",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Dt.prototype,"disabled",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Dt.prototype,"required",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Dt.prototype,"invalid",void 0),l([a({type:String}),c("design:type",String)],Dt.prototype,"name",void 0),l([a({type:String}),c("design:type",Object)],Dt.prototype,"value",void 0),l([x(),c("design:type",Boolean)],Dt.prototype,"_checked",void 0),Dt=l([p("rtg-checkbox")],Dt);var _a=class extends _{getAttributesToExclude(){return[""]}get _containerElement(){return this.querySelector("div[part=collapsible-trigger]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}get _collapsible(){let e=this.parentElement;for(;e&&!(e instanceof ts);)e=e.parentElement;return e}onTrigger(){let e=this._collapsible;e&&(e.open=!e.open,this.dispatchEvent(new CustomEvent("click-collapsible-event",{bubbles:!0,composed:!0})))}render(){let e=this.getFilteredAttributes();return d`
3456
+ `}};l([a({attribute:"default-checked",type:Boolean}),c("design:type",Boolean)],Dt.prototype,"defaultChecked",void 0),l([a({attribute:!0,type:Boolean}),c("design:type",Boolean)],Dt.prototype,"checked",void 0),l([a({attribute:!1,type:Function}),c("design:type",Function)],Dt.prototype,"onCheckedChange",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Dt.prototype,"disabled",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Dt.prototype,"required",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Dt.prototype,"invalid",void 0),l([a({type:String}),c("design:type",String)],Dt.prototype,"name",void 0),l([a({type:String}),c("design:type",Object)],Dt.prototype,"value",void 0),l([x(),c("design:type",Boolean)],Dt.prototype,"_checked",void 0),Dt=l([u("rtg-checkbox")],Dt);var _a=class extends _{getAttributesToExclude(){return[""]}get _containerElement(){return this.querySelector("div[part=collapsible-trigger]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}get _collapsible(){let e=this.parentElement;for(;e&&!(e instanceof es);)e=e.parentElement;return e}onTrigger(){let e=this._collapsible;e&&(e.open=!e.open,this.dispatchEvent(new CustomEvent("click-collapsible-event",{bubbles:!0,composed:!0})))}render(){let e=this.getFilteredAttributes();return d`
3457
3457
  <div
3458
3458
  @click=${this.onTrigger}
3459
3459
  ${wt(e)}
3460
3460
  part="collapsible-trigger"
3461
3461
  ></div>
3462
- `}};_a=l([p("rtg-collapsible-trigger")],_a);var xa=class extends _{constructor(...e){super(...e),this._toggleHandler=t=>{let r=t;requestAnimationFrame(()=>{let i=this._containerElement;i&&(i.style.display=r.detail.open?"block":"none")})}}get _containerElement(){return this.querySelector("div[part=collapsible-content]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[""]}connectedCallback(){super.connectedCallback(),this.addEventListener("toggle-collapsible-content",this._toggleHandler)}disconnectedCallback(){this.removeEventListener("toggle-collapsible-content",this._toggleHandler),super.disconnectedCallback()}render(){return d`
3462
+ `}};_a=l([u("rtg-collapsible-trigger")],_a);var xa=class extends _{constructor(...e){super(...e),this._toggleHandler=t=>{let r=t;requestAnimationFrame(()=>{let i=this._containerElement;i&&(i.style.display=r.detail.open?"block":"none")})}}get _containerElement(){return this.querySelector("div[part=collapsible-content]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[""]}connectedCallback(){super.connectedCallback(),this.addEventListener("toggle-collapsible-content",this._toggleHandler)}disconnectedCallback(){this.removeEventListener("toggle-collapsible-content",this._toggleHandler),super.disconnectedCallback()}render(){return d`
3463
3463
  <div
3464
3464
  ${wt(this.getFilteredAttributes())}
3465
3465
  class="${b("",this.className)}"
3466
3466
  style="display: none;--radix-collapsible-content-height: 100px; --radix-collapsible-content-width: 350px;"
3467
3467
  part="collapsible-content"
3468
3468
  ></div>
3469
- `}};xa=l([p("rtg-collapsible-content")],xa);var ts=class extends _{constructor(...e){super(...e),this.open=!1,this._clickHandler=()=>{var t;(t=this.querySelector("rtg-collapsible-content"))==null||t.dispatchEvent(new CustomEvent("toggle-collapsible-content",{detail:{open:this.open}}))}}getAttributesToExclude(){return[""]}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[part=collapsible]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}connectedCallback(){super.connectedCallback(),this.addEventListener("click-collapsible-event",this._clickHandler)}disconnectedCallback(){this.removeEventListener("click-collapsible-event",this._clickHandler),super.disconnectedCallback()}render(){return d`
3469
+ `}};xa=l([u("rtg-collapsible-content")],xa);var es=class extends _{constructor(...e){super(...e),this.open=!1,this._clickHandler=()=>{var t;(t=this.querySelector("rtg-collapsible-content"))==null||t.dispatchEvent(new CustomEvent("toggle-collapsible-content",{detail:{open:this.open}}))}}getAttributesToExclude(){return[""]}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[part=collapsible]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}connectedCallback(){super.connectedCallback(),this.addEventListener("click-collapsible-event",this._clickHandler)}disconnectedCallback(){this.removeEventListener("click-collapsible-event",this._clickHandler),super.disconnectedCallback()}render(){return d`
3470
3470
  <div
3471
3471
  ${wt(this.getFilteredAttributes())}
3472
3472
  class="${b("",this.className)}"
3473
3473
  part="collapsible"
3474
3474
  ></div>
3475
- `}};l([a({type:Boolean}),c("design:type",Object)],ts.prototype,"open",void 0),ts=l([p("rtg-collapsible")],ts);var Kr={empty:["rtg-py-combo-box-empty-space-py","rtg-text-center","rtg-text-combo-box-empty-font"],group:{base:["rtg-pointer-events-none","rtg-invisible","rtg-absolute","rtg-z-50","rtg-mt-combo-box-group-space-mt","rtg-max-h-combo-box-group-space-max-h","rtg-w-combo-box-group-space-w","rtg-origin-top","rtg-scale-y-0","rtg-transform","rtg-overflow-hidden","rtg-overflow-y-auto","rtg-rounded-combo-box-group-radius","rtg-border-combo-box-group-width-border","rtg-border-combo-box-group-color-border","rtg-bg-combo-box-group-color-bg","rtg-px-combo-box-group-space-px","rtg-py-combo-box-group-space-py","rtg-opacity-0","rtg-shadow-combo-box-group-shadow","rtg-transition-opacity","rtg-duration-combo-box-group-motion-duration","rtg-ease-combo-box-group-motion-fn","[&::-webkit-scrollbar]:rtg-w-0"]},input:["rtg-flex","rtg-h-combo-box-input-space-h","rtg-w-combo-box-input-space-w","rtg-rounded-combo-box-input-radius","rtg-border-0","rtg-bg-combo-box-input-color-bg","rtg-px-combo-box-input-space-px","rtg-py-combo-box-input-space-py","rtg-text-combo-box-input-font","rtg-text-combo-box-input-color-text","rtg-shadow-none","placeholder:rtg-text-combo-box-input-color-text-placeholder","focus:rtg-outline-none","focus-visible:rtg-ring-0"],trigger:{base:["rtg-z-20","rtg-flex","rtg-h-combo-box-trigger-space-h","rtg-flex-row-reverse","rtg-items-center","rtg-justify-between","rtg-rounded-combo-box-trigger-radius","rtg-border-combo-box-trigger-width-border","rtg-border-combo-box-trigger-color-border","rtg-bg-combo-box-trigger-color-bg","rtg-px-combo-box-trigger-space-px","rtg-py-combo-box-trigger-space-py","rtg-text-combo-box-trigger-font","focus:rtg-outline-none","focus:rtg-ring-combo-box-trigger-width-ring-focus","focus:rtg-ring-combo-box-trigger-color-ring-focus","focus:rtg-ring-offset-combo-box-trigger-width-ring-offset-focus","disabled:rtg-cursor-not-allowed","disabled:rtg-opacity-combo-box-trigger-opacity-disabled"]},value:["rtg-line-clamp-1","rtg-flex","rtg-w-combo-box-value-space-w"],item:{base:["rtg-flex","rtg-w-combo-box-item-space-w","rtg-cursor-pointer","rtg-flex-row-reverse","rtg-items-center","rtg-justify-between","rtg-rounded-combo-box-item-radius","rtg-px-combo-box-item-space-px","rtg-py-combo-box-item-space-py","hover:rtg-bg-accent","focus:rtg-bg-combo-box-item-color-bg-hover","focus:rtg-outline-none"]}},Sa,ao=class extends _{constructor(...e){super(...e),this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("rtg-combo-box")].forEach(t=>{var r;t.uuid!==((r=this._comboBox)==null?void 0:r.uuid)&&(t.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)}}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Et);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this.buttonElement),this.addEventListener("click",t=>{t.stopPropagation()})}render(){return d`
3475
+ `}};l([a({type:Boolean}),c("design:type",Object)],es.prototype,"open",void 0),es=l([u("rtg-collapsible")],es);var Yr={empty:["rtg-py-combo-box-empty-space-py","rtg-text-center","rtg-text-combo-box-empty-font"],group:{base:["rtg-pointer-events-none","rtg-invisible","rtg-absolute","rtg-z-50","rtg-mt-combo-box-group-space-mt","rtg-max-h-combo-box-group-space-max-h","rtg-w-combo-box-group-space-w","rtg-origin-top","rtg-scale-y-0","rtg-transform","rtg-overflow-hidden","rtg-overflow-y-auto","rtg-rounded-combo-box-group-radius","rtg-border-combo-box-group-width-border","rtg-border-combo-box-group-color-border","rtg-bg-combo-box-group-color-bg","rtg-px-combo-box-group-space-px","rtg-py-combo-box-group-space-py","rtg-opacity-0","rtg-shadow-combo-box-group-shadow","rtg-transition-opacity","rtg-duration-combo-box-group-motion-duration","rtg-ease-combo-box-group-motion-fn","[&::-webkit-scrollbar]:rtg-w-0"]},input:["rtg-flex","rtg-h-combo-box-input-space-h","rtg-w-combo-box-input-space-w","rtg-rounded-combo-box-input-radius","rtg-border-0","rtg-bg-combo-box-input-color-bg","rtg-px-combo-box-input-space-px","rtg-py-combo-box-input-space-py","rtg-text-combo-box-input-font","rtg-text-combo-box-input-color-text","rtg-shadow-none","placeholder:rtg-text-combo-box-input-color-text-placeholder","focus:rtg-outline-none","focus-visible:rtg-ring-0"],trigger:{base:["rtg-z-20","rtg-flex","rtg-h-combo-box-trigger-space-h","rtg-flex-row-reverse","rtg-items-center","rtg-justify-between","rtg-rounded-combo-box-trigger-radius","rtg-border-combo-box-trigger-width-border","rtg-border-combo-box-trigger-color-border","rtg-bg-combo-box-trigger-color-bg","rtg-px-combo-box-trigger-space-px","rtg-py-combo-box-trigger-space-py","rtg-text-combo-box-trigger-font","focus:rtg-outline-none","focus:rtg-ring-combo-box-trigger-width-ring-focus","focus:rtg-ring-combo-box-trigger-color-ring-focus","focus:rtg-ring-offset-combo-box-trigger-width-ring-offset-focus","disabled:rtg-cursor-not-allowed","disabled:rtg-opacity-combo-box-trigger-opacity-disabled"]},value:["rtg-line-clamp-1","rtg-flex","rtg-w-combo-box-value-space-w"],item:{base:["rtg-flex","rtg-w-combo-box-item-space-w","rtg-cursor-pointer","rtg-flex-row-reverse","rtg-items-center","rtg-justify-between","rtg-rounded-combo-box-item-radius","rtg-px-combo-box-item-space-px","rtg-py-combo-box-item-space-py","hover:rtg-bg-accent","focus:rtg-bg-combo-box-item-color-bg-hover","focus:rtg-outline-none"]}},Sa,ao=class extends _{constructor(...e){super(...e),this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("rtg-combo-box")].forEach(t=>{var r;t.uuid!==((r=this._comboBox)==null?void 0:r.uuid)&&(t.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)}}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Et);)e=e.parentElement;return e}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this.buttonElement),this.addEventListener("click",t=>{t.stopPropagation()})}render(){return d`
3476
3476
  <button
3477
3477
  type="button"
3478
3478
  part="combo-box-trigger-button"
3479
3479
  role="tab"
3480
- class="${b(Kr.trigger.base,this.className)}"
3480
+ class="${b(Yr.trigger.base,this.className)}"
3481
3481
  tabindex="-1"
3482
3482
  data-orientation="horizontal"
3483
3483
  data-radix-collection-item=""
@@ -3485,21 +3485,21 @@ body {
3485
3485
  >
3486
3486
  ${qh()}
3487
3487
  </button>
3488
- `}};l([Ci("button"),c("design:type",typeof(Sa=typeof HTMLButtonElement<"u"&&HTMLButtonElement)=="function"?Sa:Object)],ao.prototype,"buttonElement",void 0),ao=l([p("rtg-combo-box-trigger")],ao);var lo=class extends v{constructor(...e){super(...e),this.placeholder="select a value",this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("rtg-combo-box")].forEach(t=>{var r;t.uuid!==((r=this._comboBox)==null?void 0:r.uuid)&&(t.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)},this.renderLabel=()=>this._comboBox&&this._comboBox.selectedValue.length>0?this._comboBox.selectedValue:this.placeholder}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Et);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",()=>{this.requestUpdate()})}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",t=>{t.stopPropagation()})}createRenderRoot(){return this}render(){return d`
3488
+ `}};l([ki("button"),c("design:type",typeof(Sa=typeof HTMLButtonElement<"u"&&HTMLButtonElement)=="function"?Sa:Object)],ao.prototype,"buttonElement",void 0),ao=l([u("rtg-combo-box-trigger")],ao);var lo=class extends v{constructor(...e){super(...e),this.placeholder="select a value",this.handleClick=()=>{this._comboBox&&([...document.getElementsByTagName("rtg-combo-box")].forEach(t=>{var r;t.uuid!==((r=this._comboBox)==null?void 0:r.uuid)&&(t.isOpen=!1)}),this._comboBox.isOpen=!this._comboBox.isOpen)},this.renderLabel=()=>this._comboBox&&this._comboBox.selectedValue.length>0?this._comboBox.selectedValue:this.placeholder}get _comboBox(){let e=this.parentElement;for(;e&&!(e instanceof Et);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",()=>{this.requestUpdate()})}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",t=>{t.stopPropagation()})}createRenderRoot(){return this}render(){return d`
3489
3489
  <span
3490
3490
  part="combo-box-value"
3491
- class="${b(Kr.value,this.className)}"
3491
+ class="${b(Yr.value,this.className)}"
3492
3492
  @click=${this.handleClick}
3493
3493
  >${this.renderLabel()}</span
3494
3494
  >
3495
- `}};l([a({type:String}),c("design:type",Object)],lo.prototype,"placeholder",void 0),lo=l([p("rtg-combo-box-value")],lo);var Oi=class extends v{constructor(...e){super(...e),this.orientation="horizontal"}createRenderRoot(){return this}render(){return d`
3495
+ `}};l([a({type:String}),c("design:type",Object)],lo.prototype,"placeholder",void 0),lo=l([u("rtg-combo-box-value")],lo);var Ai=class extends v{constructor(...e){super(...e),this.orientation="horizontal"}createRenderRoot(){return this}render(){return d`
3496
3496
  <div
3497
3497
  data-slot="separator"
3498
3498
  data-orientation=${this.orientation}
3499
3499
  role=${this.decorative?"none":"separator"}
3500
3500
  aria-orientation=${this.decorative?m:this.orientation}
3501
3501
  ></div>
3502
- `}};l([a({type:String}),c("design:type",Object)],Oi.prototype,"orientation",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Oi.prototype,"decorative",void 0),Oi=l([p("rtg-separator")],Oi);var Qe=class extends _{constructor(...t){super(...t),this.searchKey="",this.focusedIndex=0,this.selectedValue="",this.isOpen=!1,this.handleItemClicked=()=>{this.requestUpdate()},this.handleTriggerComboBox=r=>{var i,s;r.detail.isOpen!==((i=this._comboBox)==null?void 0:i.isOpen)&&this.requestUpdate(),r.detail.isOpen&&((s=this._comboBox)!=null&&s.selectedValue)&&(this.focusedIndex=this.comboBoxItems.findIndex(o=>{var n;return o.getAttribute("value")===((n=this._comboBox)==null?void 0:n.selectedValue)}),this.requestUpdate())},this.handleKeyDown=r=>{var s;if(!((s=this._comboBox)!=null&&s.isOpen))return;r.preventDefault();let i=this.filteredItems;switch(r.key){case"ArrowDown":if(i.length===0)return;this.focusedIndex=(this.focusedIndex+1)%i.length;break;case"ArrowUp":if(i.length===0)return;this.focusedIndex=(this.focusedIndex-1+i.length)%i.length;break;case"Enter":if(this.focusedIndex>=0&&this.focusedIndex<i.length){let o=i[this.focusedIndex].getAttribute("value");this.dispatchEvent(new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:o}}))}break}},this.handleMouseOver=(r,i)=>{r.preventDefault(),this.focusedIndex=i},this.onSelectedValue=(r,i)=>{this.focusedIndex=i,this.selectedValue=r},this.boundHandleComboBoxStateChanged=this.handleComboBoxStateChanged.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this)}get comboBoxItems(){return Array.from(this.querySelectorAll('[data-managed="true"][tag="rtg-combo-box-item"], rtg-combo-box-item')).filter(t=>t.hasAttribute("value"))}get comboBoxInput(){return this.querySelector("rtg-combo-box-input")}get comboBoxEmpty(){return this.querySelector("rtg-combo-box-empty")}get hasResults(){return!this.filteredItems.length}get filteredItems(){var r;let t=(r=this.searchKey)==null?void 0:r.toLowerCase();return this.comboBoxItems.filter(i=>{var s;return(s=i.getAttribute("value"))==null?void 0:s.toLowerCase().includes(t)})}get _comboBox(){let t=this.parentElement;for(;t&&!(t instanceof Et);)t=t.parentElement;return t}handleComboBoxStateChanged(t){var o;let{isOpen:r,targetComboBoxId:i}=t.detail;if(this.isOpen=r,i!==((o=this._comboBox)==null?void 0:o.uuid))return;let s=this.renderRoot.querySelector('[part="select-group"]');s&&(r?(clearTimeout(s._hideTimeout),s.classList.remove("rtg-scale-y-0","rtg-opacity-0"),s.classList.add("rtg-scale-y-100","rtg-opacity-100"),s.classList.remove("rtg-invisible","rtg-pointer-events-none"),s.classList.add("rtg-visible","rtg-pointer-events-auto")):(s.classList.remove("rtg-opacity-100"),s.classList.add("rtg-opacity-0"),s._hideTimeout=setTimeout(()=>{s.classList.remove("rtg-visible","rtg-pointer-events-auto","rtg-scale-y-100"),s.classList.add("rtg-invisible","rtg-pointer-events-none","rtg-scale-y-0")},300)))}moveChildren(){let t=this.renderRoot.querySelector('[part="select-group"]');if(!t)return;let r={top:t.querySelector("#topSlot"),empty:t.querySelector("#emptySlot"),list:t.querySelector("#listSlot")},i={"rtg-combo-box-input":"top","rtg-combo-box-empty":"empty","rtg-combo-box-item":"list"};Array.from(this.children).forEach(s=>{var n;let o=i[s.tagName.toLowerCase()];o&&(s.setAttribute("data-managed","true"),(n=r[o])==null||n.appendChild(s))})}renderFilteredItems(){return this.comboBoxItems.forEach(t=>t.setAttribute("hidden","true")),this.filteredItems.map((t,r)=>{var n;let i=t.getAttribute("value")??"",s=r===this.focusedIndex,o=i.toLowerCase()===((n=this._comboBox)==null?void 0:n.selectedValue.toLowerCase());return d`
3502
+ `}};l([a({type:String}),c("design:type",Object)],Ai.prototype,"orientation",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Ai.prototype,"decorative",void 0),Ai=l([u("rtg-separator")],Ai);var tr=class extends _{constructor(...t){super(...t),this.searchKey="",this.focusedIndex=0,this.selectedValue="",this.isOpen=!1,this.handleItemClicked=()=>{this.requestUpdate()},this.handleTriggerComboBox=r=>{var i,s;r.detail.isOpen!==((i=this._comboBox)==null?void 0:i.isOpen)&&this.requestUpdate(),r.detail.isOpen&&((s=this._comboBox)!=null&&s.selectedValue)&&(this.focusedIndex=this.comboBoxItems.findIndex(o=>{var n;return o.getAttribute("value")===((n=this._comboBox)==null?void 0:n.selectedValue)}),this.requestUpdate())},this.handleKeyDown=r=>{var s;if(!((s=this._comboBox)!=null&&s.isOpen))return;r.preventDefault();let i=this.filteredItems;switch(r.key){case"ArrowDown":if(i.length===0)return;this.focusedIndex=(this.focusedIndex+1)%i.length;break;case"ArrowUp":if(i.length===0)return;this.focusedIndex=(this.focusedIndex-1+i.length)%i.length;break;case"Enter":if(this.focusedIndex>=0&&this.focusedIndex<i.length){let o=i[this.focusedIndex].getAttribute("value");this.dispatchEvent(new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:o}}))}break}},this.handleMouseOver=(r,i)=>{r.preventDefault(),this.focusedIndex=i},this.onSelectedValue=(r,i)=>{this.focusedIndex=i,this.selectedValue=r},this.boundHandleComboBoxStateChanged=this.handleComboBoxStateChanged.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this)}get comboBoxItems(){return Array.from(this.querySelectorAll('[data-managed="true"][tag="rtg-combo-box-item"], rtg-combo-box-item')).filter(t=>t.hasAttribute("value"))}get comboBoxInput(){return this.querySelector("rtg-combo-box-input")}get comboBoxEmpty(){return this.querySelector("rtg-combo-box-empty")}get hasResults(){return!this.filteredItems.length}get filteredItems(){var r;let t=(r=this.searchKey)==null?void 0:r.toLowerCase();return this.comboBoxItems.filter(i=>{var s;return(s=i.getAttribute("value"))==null?void 0:s.toLowerCase().includes(t)})}get _comboBox(){let t=this.parentElement;for(;t&&!(t instanceof Et);)t=t.parentElement;return t}handleComboBoxStateChanged(t){var o;let{isOpen:r,targetComboBoxId:i}=t.detail;if(this.isOpen=r,i!==((o=this._comboBox)==null?void 0:o.uuid))return;let s=this.renderRoot.querySelector('[part="select-group"]');s&&(r?(clearTimeout(s._hideTimeout),s.classList.remove("rtg-scale-y-0","rtg-opacity-0"),s.classList.add("rtg-scale-y-100","rtg-opacity-100"),s.classList.remove("rtg-invisible","rtg-pointer-events-none"),s.classList.add("rtg-visible","rtg-pointer-events-auto")):(s.classList.remove("rtg-opacity-100"),s.classList.add("rtg-opacity-0"),s._hideTimeout=setTimeout(()=>{s.classList.remove("rtg-visible","rtg-pointer-events-auto","rtg-scale-y-100"),s.classList.add("rtg-invisible","rtg-pointer-events-none","rtg-scale-y-0")},300)))}moveChildren(){let t=this.renderRoot.querySelector('[part="select-group"]');if(!t)return;let r={top:t.querySelector("#topSlot"),empty:t.querySelector("#emptySlot"),list:t.querySelector("#listSlot")},i={"rtg-combo-box-input":"top","rtg-combo-box-empty":"empty","rtg-combo-box-item":"list"};Array.from(this.children).forEach(s=>{var n;let o=i[s.tagName.toLowerCase()];o&&(s.setAttribute("data-managed","true"),(n=r[o])==null||n.appendChild(s))})}renderFilteredItems(){return this.comboBoxItems.forEach(t=>t.setAttribute("hidden","true")),this.filteredItems.map((t,r)=>{var n;let i=t.getAttribute("value")??"",s=r===this.focusedIndex,o=i.toLowerCase()===((n=this._comboBox)==null?void 0:n.selectedValue.toLowerCase());return d`
3503
3503
  <rtg-combo-box-item
3504
3504
  @mouseover="${h=>this.handleMouseOver(h,r)}"
3505
3505
  .value=${i}
@@ -3513,7 +3513,7 @@ body {
3513
3513
  `})}getAttributesToExclude(){return[]}connectedCallback(){super.connectedCallback(),document.addEventListener("rtg-combo-box-state-changed",this.boundHandleComboBoxStateChanged),document.addEventListener("clicked-combo-box-item",this.handleItemClicked),document.addEventListener("trigger-combo-box",this.handleTriggerComboBox)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("clicked-combo-box-item",this.handleItemClicked),document.removeEventListener("trigger-combo-box",this.handleTriggerComboBox),document.removeEventListener("rtg-combo-box-state-changed",this.boundHandleComboBoxStateChanged),document.removeEventListener("keydown",this.boundHandleKeyDown)}firstUpdated(t){this.moveChildren(),document.addEventListener("keydown",this.boundHandleKeyDown)}createRenderRoot(){return this}render(){return d`
3514
3514
  <div
3515
3515
  part="select-group"
3516
- class="${b(Kr.group.base,this.className)}"
3516
+ class="${b(Yr.group.base,this.className)}"
3517
3517
  data-hs-combo-box-output=""
3518
3518
  data-testId="select-group"
3519
3519
  >
@@ -3526,11 +3526,11 @@ body {
3526
3526
  ${this.renderFilteredItems()}
3527
3527
  </div>
3528
3528
  </div>
3529
- `}};l([x(),c("design:type",Object)],Qe.prototype,"searchKey",void 0),l([x(),c("design:type",Object)],Qe.prototype,"focusedIndex",void 0),l([x(),c("design:type",Object)],Qe.prototype,"selectedValue",void 0),l([x(),c("design:type",Boolean)],Qe.prototype,"isOpen",void 0),Qe=l([p("rtg-combo-box-group")],Qe);var $a,Ut=class extends _{constructor(...e){super(...e),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(t,r)=>{},this.onMouseOver=(t,r)=>{},this.handleClick=t=>{this.onSelect(this.value,this.selectItemIndex),t.stopPropagation();let r=new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.value}});this.dispatchEvent(r)}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this.itemDivContainer)}createRenderRoot(){return this}render(){return d`
3529
+ `}};l([x(),c("design:type",Object)],tr.prototype,"searchKey",void 0),l([x(),c("design:type",Object)],tr.prototype,"focusedIndex",void 0),l([x(),c("design:type",Object)],tr.prototype,"selectedValue",void 0),l([x(),c("design:type",Boolean)],tr.prototype,"isOpen",void 0),tr=l([u("rtg-combo-box-group")],tr);var $a,jt=class extends _{constructor(...e){super(...e),this.value="",this.key="",this.tabindex=0,this.isSelected=!1,this.isFocus=!1,this.class="",this.selectItemIndex=-1,this.onSelect=(t,r)=>{},this.onMouseOver=(t,r)=>{},this.handleClick=t=>{this.onSelect(this.value,this.selectItemIndex),t.stopPropagation();let r=new CustomEvent("clicked-combo-box-item",{bubbles:!0,composed:!0,detail:{selectedItem:this.value}});this.dispatchEvent(r)}}getAttributesToExclude(){return["aria-orientation","role","data-orientation","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this.itemDivContainer)}createRenderRoot(){return this}render(){return d`
3530
3530
  <div
3531
3531
  ${wt(this.getFilteredAttributes())}
3532
3532
  @click=${this.handleClick}
3533
- class="${b(Kr.item.base,this.className)}"
3533
+ class="${b(Yr.item.base,this.className)}"
3534
3534
  data-hs-combo-box-value=${this.value}
3535
3535
  aria-selected="${this.isSelected}"
3536
3536
  data-selected="${this.isSelected}"
@@ -3542,13 +3542,13 @@ body {
3542
3542
  ${Yh()}
3543
3543
  </span>
3544
3544
  </div>
3545
- `}};l([a({type:String}),c("design:type",Object)],Ut.prototype,"value",void 0),l([a({type:String}),c("design:type",Object)],Ut.prototype,"key",void 0),l([a({type:Number}),c("design:type",Object)],Ut.prototype,"tabindex",void 0),l([a({type:Boolean}),c("design:type",Object)],Ut.prototype,"isSelected",void 0),l([a({type:Boolean}),c("design:type",Object)],Ut.prototype,"isFocus",void 0),l([a({type:String}),c("design:type",Object)],Ut.prototype,"class",void 0),l([a({type:Number}),c("design:type",Object)],Ut.prototype,"selectItemIndex",void 0),l([a({type:Function}),c("design:type",Object)],Ut.prototype,"onSelect",void 0),l([a({type:Function}),c("design:type",Object)],Ut.prototype,"onMouseOver",void 0),l([Ci("#rtg-combo-box-item"),c("design:type",typeof($a=typeof HTMLDivElement<"u"&&HTMLDivElement)=="function"?$a:Object)],Ut.prototype,"itemDivContainer",void 0),Ut=l([p("rtg-combo-box-item")],Ut);var Ai=class extends v{constructor(...e){super(...e),this.placeholder="Search Item ...",this.searchValue=""}get _comboBoxGroup(){let e=this.parentElement;for(;e&&!(e instanceof Qe);)e=e.parentElement;return e}handleSearch(e){e.stopPropagation(),this.searchValue=e.target.value,this._comboBoxGroup&&(this._comboBoxGroup.searchKey=this.searchValue)}handleKeyDown(e){e.stopPropagation()}createRenderRoot(){return this}render(){return d`
3545
+ `}};l([a({type:String}),c("design:type",Object)],jt.prototype,"value",void 0),l([a({type:String}),c("design:type",Object)],jt.prototype,"key",void 0),l([a({type:Number}),c("design:type",Object)],jt.prototype,"tabindex",void 0),l([a({type:Boolean}),c("design:type",Object)],jt.prototype,"isSelected",void 0),l([a({type:Boolean}),c("design:type",Object)],jt.prototype,"isFocus",void 0),l([a({type:String}),c("design:type",Object)],jt.prototype,"class",void 0),l([a({type:Number}),c("design:type",Object)],jt.prototype,"selectItemIndex",void 0),l([a({type:Function}),c("design:type",Object)],jt.prototype,"onSelect",void 0),l([a({type:Function}),c("design:type",Object)],jt.prototype,"onMouseOver",void 0),l([ki("#rtg-combo-box-item"),c("design:type",typeof($a=typeof HTMLDivElement<"u"&&HTMLDivElement)=="function"?$a:Object)],jt.prototype,"itemDivContainer",void 0),jt=l([u("rtg-combo-box-item")],jt);var Pi=class extends v{constructor(...e){super(...e),this.placeholder="Search Item ...",this.searchValue=""}get _comboBoxGroup(){let e=this.parentElement;for(;e&&!(e instanceof tr);)e=e.parentElement;return e}handleSearch(e){e.stopPropagation(),this.searchValue=e.target.value,this._comboBoxGroup&&(this._comboBoxGroup.searchKey=this.searchValue)}handleKeyDown(e){e.stopPropagation()}createRenderRoot(){return this}render(){return d`
3546
3546
  <div class="rtg-flex rtg-items-center rtg-px-2">
3547
3547
  ${Kh()}
3548
3548
  <input
3549
3549
  part="combo-box-input"
3550
3550
  type="text"
3551
- class="${b(Kr.input,this.className)}"
3551
+ class="${b(Yr.input,this.className)}"
3552
3552
  placeholder=${this.placeholder}
3553
3553
  autocomplete="off"
3554
3554
  autocorrect="off"
@@ -3560,21 +3560,21 @@ body {
3560
3560
  @keydown="${this.handleKeyDown}"
3561
3561
  />
3562
3562
  </div>
3563
- `}};l([a({type:String}),c("design:type",Object)],Ai.prototype,"placeholder",void 0),l([x(),c("design:type",Object)],Ai.prototype,"searchValue",void 0),Ai=l([p("rtg-combo-box-input")],Ai);var Ca=class extends _{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.removeDuplicateContent()}render(){return d`
3563
+ `}};l([a({type:String}),c("design:type",Object)],Pi.prototype,"placeholder",void 0),l([x(),c("design:type",Object)],Pi.prototype,"searchValue",void 0),Pi=l([u("rtg-combo-box-input")],Pi);var Ca=class extends _{createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.removeDuplicateContent()}render(){return d`
3564
3564
  <div
3565
- class="${b(Kr.empty,this.className)}"
3565
+ class="${b(Yr.empty,this.className)}"
3566
3566
  role="presentation"
3567
3567
  >
3568
3568
  ${Array.from(this.childNodes)[0].textContent}
3569
3569
  </div>
3570
- `}};Ca=l([p("rtg-combo-box-empty")],Ca);var Ea,Et=class extends _{constructor(){super(),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.uuid=dn(),this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var i;let t=(i=this.renderRoot)==null?void 0:i.querySelector("[data-combo-box-uuid]"),r=e.target;if(!r.tagName.includes("RTG-COMBO")&&!(r.shadowRoot&&r.shadowRoot.innerHTML.includes(t==null?void 0:t.innerHTML))){if(this.isOpen&&!t||!(t!=null&&t.contains(r)))this.isOpen=!1;else if(!(r!=null&&r.firstElementChild))return}}}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",e=>{this.isOpen&&(this.selectedValue=e.detail.selectedItem,this.isOpen=!1,this.requestUpdate())})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.parentDiveElement),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(t=>t.toLowerCase().includes(this.searchTerm)))}updated(e){super.updated(e),e.has("isOpen")&&(this.dispatchEvent(new CustomEvent("rtg-combo-box-state-changed",{detail:{isOpen:this.isOpen,targetComboBoxId:this.uuid},bubbles:!0,composed:!0})),this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}selectItem(e){let t=e.target;if(t instanceof HTMLElement){let r=t.closest("rtg-combo-box-item");r?(this.selectedValue=r.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}render(){return d`
3570
+ `}};Ca=l([u("rtg-combo-box-empty")],Ca);var Ea,Et=class extends _{constructor(){super(),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.uuid=dn(),this.label="Select an item",this.items=[],this.handleClickOutside=e=>{var i;let t=(i=this.renderRoot)==null?void 0:i.querySelector("[data-combo-box-uuid]"),r=e.target;if(!r.tagName.includes("RTG-COMBO")&&!(r.shadowRoot&&r.shadowRoot.innerHTML.includes(t==null?void 0:t.innerHTML))){if(this.isOpen&&!t||!(t!=null&&t.contains(r)))this.isOpen=!1;else if(!(r!=null&&r.firstElementChild))return}}}connectedCallback(){super.connectedCallback(),document.addEventListener("clicked-combo-box-item",e=>{this.isOpen&&(this.selectedValue=e.detail.selectedItem,this.isOpen=!1,this.requestUpdate())})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this.parentDiveElement),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(t=>t.toLowerCase().includes(this.searchTerm)))}updated(e){super.updated(e),e.has("isOpen")&&(this.dispatchEvent(new CustomEvent("rtg-combo-box-state-changed",{detail:{isOpen:this.isOpen,targetComboBoxId:this.uuid},bubbles:!0,composed:!0})),this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}selectItem(e){let t=e.target;if(t instanceof HTMLElement){let r=t.closest("rtg-combo-box-item");r?(this.selectedValue=r.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}render(){return d`
3571
3571
  <div
3572
3572
  class="${b("rtg-relative",this.className)}"
3573
3573
  data-hs-combo-box=""
3574
3574
  data-combo-box-uuid=${this.uuid}
3575
3575
  part="combo-box"
3576
3576
  ></div>
3577
- `}};l([a({type:Boolean}),c("design:type",Object)],Et.prototype,"isOpen",void 0),l([x(),c("design:type",Object)],Et.prototype,"selectedValue",void 0),l([x(),c("design:type",Object)],Et.prototype,"searchTerm",void 0),l([x(),c("design:type",Object)],Et.prototype,"focusedIndex",void 0),l([x(),c("design:type",Array)],Et.prototype,"filteredItems",void 0),l([x(),c("design:type",Object)],Et.prototype,"uuid",void 0),l([a({type:String}),c("design:type",String)],Et.prototype,"label",void 0),l([a({type:Array}),c("design:type",Object)],Et.prototype,"items",void 0),l([Ci('[part="combo-box"]'),c("design:type",typeof(Ea=typeof HTMLDivElement<"u"&&HTMLDivElement)=="function"?Ea:Object)],Et.prototype,"parentDiveElement",void 0),Et=l([p("rtg-combo-box"),c("design:paramtypes",[])],Et);var ae={root:["rtg-flex rtg-overflow-hidden","rtg-flex-col","rtg-w-command-space-w rtg-h-command-space-h","rtg-text-command-color-text","rtg-bg-command-color-bg","rtg-rounded-command-radius"],input:{wrapper:["rtg-flex","rtg-gap-command-input-wrapper-space-gap rtg-items-center","rtg-px-command-input-wrapper-space-px","rtg-h-command-input-wrapper-space-h","rtg-border-b-command-input-wrapper-width-border rtg-border-b-command-input-wrapper-color-border"],icon:["rtg-shrink-0","rtg-size-command-input-icon-space-size","rtg-opacity-command-input-icon-opacity"],input:["rtg-flex","rtg-py-command-input-space-py","rtg-w-command-input-space-w rtg-h-command-input-space-h","rtg-text-command-input-font","rtg-bg-command-input-color-bg","rtg-rounded-command-input-radius rtg-outline-hidden","focus:rtg-outline-none","disabled:rtg-opacity-command-input-opacity-disabled disabled:rtg-cursor-not-allowed","placeholder:rtg-text-command-input-placeholder-color-text"]},list:["rtg-overflow-x-hidden rtg-overflow-y-auto","rtg-max-h-command-list-space-max-h","rtg-scroll-py-1"],empty:["rtg-py-command-empty-space-py","rtg-text-command-empty-font rtg-text-center"],group:["rtg-overflow-hidden","rtg-p-command-group-space-p","rtg-text-command-group-color-text"],heading:["rtg-px-command-heading-space-px rtg-py-command-heading-space-py","rtg-text-command-heading-font rtg-font-command-heading-font-weight rtg-text-command-heading-color-text"],separator:["rtg-command-separator-space-mx","rtg-h-command-separator-space-h","rtg-bg-command-separator-color-bg"],item:["rtg-flex rtg-relative","rtg-gap-command-item-space-gap rtg-items-center","rtg-px-command-item-space-px rtg-py-command-item-space-py","rtg-text-command-item-font","rtg-rounded-command-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","hover:rtg-text-command-item-color-text-hover hover:rtg-bg-command-item-color-bg-hover","aria-selected:rtg-text-command-item-color-text-selected aria-selected:rtg-bg-command-item-color-bg-selected",'data-[disabled="true"]:rtg-opacity-command-item-opacity-disabled data-[disabled="true"]:rtg-pointer-events-none','[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-command-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-command-item-icon-color-text [&_svg]:rtg-pointer-events-none']},es,ir,Pi=(ir=class extends _{constructor(...t){super(...t),this._id="",this._hidden="true"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;let t=this.parentElement;return t?this._id=`${t.getAttribute("id")}e${es._counter++}`:this._id=`rtgcmdrxlxe${es._counter++}`,this._id}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this.containerElement)}render(){return d`
3577
+ `}};l([a({type:Boolean}),c("design:type",Object)],Et.prototype,"isOpen",void 0),l([x(),c("design:type",Object)],Et.prototype,"selectedValue",void 0),l([x(),c("design:type",Object)],Et.prototype,"searchTerm",void 0),l([x(),c("design:type",Object)],Et.prototype,"focusedIndex",void 0),l([x(),c("design:type",Array)],Et.prototype,"filteredItems",void 0),l([x(),c("design:type",Object)],Et.prototype,"uuid",void 0),l([a({type:String}),c("design:type",String)],Et.prototype,"label",void 0),l([a({type:Array}),c("design:type",Object)],Et.prototype,"items",void 0),l([ki('[part="combo-box"]'),c("design:type",typeof(Ea=typeof HTMLDivElement<"u"&&HTMLDivElement)=="function"?Ea:Object)],Et.prototype,"parentDiveElement",void 0),Et=l([u("rtg-combo-box"),c("design:paramtypes",[])],Et);var ae={root:["rtg-flex rtg-overflow-hidden","rtg-flex-col","rtg-w-command-space-w rtg-h-command-space-h","rtg-text-command-color-text","rtg-bg-command-color-bg","rtg-rounded-command-radius"],input:{wrapper:["rtg-flex","rtg-gap-command-input-wrapper-space-gap rtg-items-center","rtg-px-command-input-wrapper-space-px","rtg-h-command-input-wrapper-space-h","rtg-border-b-command-input-wrapper-width-border rtg-border-b-command-input-wrapper-color-border"],icon:["rtg-shrink-0","rtg-size-command-input-icon-space-size","rtg-opacity-command-input-icon-opacity"],input:["rtg-flex","rtg-py-command-input-space-py","rtg-w-command-input-space-w rtg-h-command-input-space-h","rtg-text-command-input-font","rtg-bg-command-input-color-bg","rtg-rounded-command-input-radius rtg-outline-hidden","focus:rtg-outline-none","disabled:rtg-opacity-command-input-opacity-disabled disabled:rtg-cursor-not-allowed","placeholder:rtg-text-command-input-placeholder-color-text"]},list:["rtg-overflow-x-hidden rtg-overflow-y-auto","rtg-max-h-command-list-space-max-h","rtg-scroll-py-1"],empty:["rtg-py-command-empty-space-py","rtg-text-command-empty-font rtg-text-center"],group:["rtg-overflow-hidden","rtg-p-command-group-space-p","rtg-text-command-group-color-text"],heading:["rtg-px-command-heading-space-px rtg-py-command-heading-space-py","rtg-text-command-heading-font rtg-font-command-heading-font-weight rtg-text-command-heading-color-text"],separator:["rtg-command-separator-space-mx","rtg-h-command-separator-space-h","rtg-bg-command-separator-color-bg"],item:["rtg-flex rtg-relative","rtg-gap-command-item-space-gap rtg-items-center","rtg-px-command-item-space-px rtg-py-command-item-space-py","rtg-text-command-item-font","rtg-rounded-command-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","hover:rtg-text-command-item-color-text-hover hover:rtg-bg-command-item-color-bg-hover","aria-selected:rtg-text-command-item-color-text-selected aria-selected:rtg-bg-command-item-color-bg-selected",'data-[disabled="true"]:rtg-opacity-command-item-opacity-disabled data-[disabled="true"]:rtg-pointer-events-none','[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-command-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-command-item-icon-color-text [&_svg]:rtg-pointer-events-none']},rs,sr,Fi=(sr=class extends _{constructor(...t){super(...t),this._id="",this._hidden="true"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;let t=this.parentElement;return t?this._id=`${t.getAttribute("id")}e${rs._counter++}`:this._id=`rtgcmdrxlxe${rs._counter++}`,this._id}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this.containerElement)}render(){return d`
3578
3578
  <div
3579
3579
  rtgcmd-empty
3580
3580
  id="${this.identifier}"
@@ -3582,7 +3582,7 @@ body {
3582
3582
  role="presentation"
3583
3583
  class=${b(ae.empty,this._hidden==="true"&&"rtg-hidden",this.className)}
3584
3584
  ></div>
3585
- `}},es=ir,ir._counter=0,ir);l([a({type:String}),c("design:type",Object)],Pi.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Pi.prototype,"_hidden",void 0),Pi=es=l([p("rtg-command-empty")],Pi);var rs,sr,ii=(sr=class extends _{constructor(...t){super(...t),this.heading="",this._id="",this._hidden=""}get itemsContainerElement(){return this.querySelector(`#${this.identifier}g`)}get identifier(){if(this._id!=="")return this._id;let t=this.parentElement;return t?this._id=`${t.getAttribute("id")}g${rs._counter++}`:this._id=`rtgcmdrxlxg${rs._counter++}`,this._id}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){let r=this.itemsContainerElement;if(r){for(;r.firstChild;)r.removeChild(r.firstChild);this.moveLightDomChildrenInto(r)}}render(){return d`
3585
+ `}},rs=sr,sr._counter=0,sr);l([a({type:String}),c("design:type",Object)],Fi.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Fi.prototype,"_hidden",void 0),Fi=rs=l([u("rtg-command-empty")],Fi);var is,or,oi=(or=class extends _{constructor(...t){super(...t),this.heading="",this._id="",this._hidden=""}get itemsContainerElement(){return this.querySelector(`#${this.identifier}g`)}get identifier(){if(this._id!=="")return this._id;let t=this.parentElement;return t?this._id=`${t.getAttribute("id")}g${is._counter++}`:this._id=`rtgcmdrxlxg${is._counter++}`,this._id}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){let r=this.itemsContainerElement;if(r){for(;r.firstChild;)r.removeChild(r.firstChild);this.moveLightDomChildrenInto(r)}}render(){return d`
3586
3586
  <div
3587
3587
  rtgcmd-group
3588
3588
  id="${this.identifier}"
@@ -3605,7 +3605,7 @@ body {
3605
3605
  aria-labelledby="${this.identifier}h"
3606
3606
  ></div>
3607
3607
  </div>
3608
- `}},rs=sr,sr._counter=0,sr);l([a({type:String}),c("design:type",Object)],ii.prototype,"heading",void 0),l([a({attribute:"id",type:String}),c("design:type",Object)],ii.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],ii.prototype,"_hidden",void 0),ii=rs=l([p("rtg-command-group")],ii);var Fi=class extends v{constructor(...e){super(...e),this.placeholder="Type a command or search...",this._value=""}get identifier(){let e=this.parentElement;return e?`${e.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){let e=this.parentElement;if(e){let t=!0,r=e.querySelectorAll("rtg-command-group");r&&r.forEach(s=>{var u,g;let o=!0,n=s.querySelectorAll("rtg-command-item");n&&n.forEach(y=>{(y.value||"").toLowerCase().includes(this._value.toLowerCase())?(o=!1,t=!1,y._hidden="false"):y._hidden="true"}),s._hidden=o?"true":"false";let h=s.previousElementSibling;h&&(h._hidden=o||((u=h.previousElementSibling)==null?void 0:u.getAttribute("aria-hidden"))==="true"?"true":"false"),h=s.nextElementSibling,h&&(h._hidden=o||((g=h.nextElementSibling)==null?void 0:g.getAttribute("aria-hidden"))==="true"?"true":"false")});let i=e.querySelector("rtg-command-empty");i&&i.setAttribute("aria-hidden",t?"false":"true")}}handleChange(e){let t=e.target;t&&(this._value=t.value,this.filterItems())}createRenderRoot(){return this}render(){return d`
3608
+ `}},is=or,or._counter=0,or);l([a({type:String}),c("design:type",Object)],oi.prototype,"heading",void 0),l([a({attribute:"id",type:String}),c("design:type",Object)],oi.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],oi.prototype,"_hidden",void 0),oi=is=l([u("rtg-command-group")],oi);var Ti=class extends v{constructor(...e){super(...e),this.placeholder="Type a command or search...",this._value=""}get identifier(){let e=this.parentElement;return e?`${e.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){let e=this.parentElement;if(e){let t=!0,r=e.querySelectorAll("rtg-command-group");r&&r.forEach(s=>{var p,g;let o=!0,n=s.querySelectorAll("rtg-command-item");n&&n.forEach(y=>{(y.value||"").toLowerCase().includes(this._value.toLowerCase())?(o=!1,t=!1,y._hidden="false"):y._hidden="true"}),s._hidden=o?"true":"false";let h=s.previousElementSibling;h&&(h._hidden=o||((p=h.previousElementSibling)==null?void 0:p.getAttribute("aria-hidden"))==="true"?"true":"false"),h=s.nextElementSibling,h&&(h._hidden=o||((g=h.nextElementSibling)==null?void 0:g.getAttribute("aria-hidden"))==="true"?"true":"false")});let i=e.querySelector("rtg-command-empty");i&&i.setAttribute("aria-hidden",t?"false":"true")}}handleChange(e){let t=e.target;t&&(this._value=t.value,this.filterItems())}createRenderRoot(){return this}render(){return d`
3609
3609
  <div
3610
3610
  part="command-input"
3611
3611
  class=${b(ae.input.wrapper,this.className)}
@@ -3646,7 +3646,7 @@ body {
3646
3646
  class=${b(ae.input.input)}
3647
3647
  />
3648
3648
  </div>
3649
- `}};l([a({type:String}),c("design:type",Object)],Fi.prototype,"placeholder",void 0),l([a({attribute:"value",type:String}),c("design:type",Object)],Fi.prototype,"_value",void 0),Fi=l([p("rtg-command-input")],Fi);var is,or,Ge=(or=class extends _{constructor(...t){super(...t),this.selected=!1,this._id="",this._hidden="false",this.onSelect=()=>{},this.disabled="false"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;let t=this.parentElement;return t?this._id=`${t.getAttribute("id")}li${is._counter++}`:this._id=`rtgcmdrxgxli${is._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){this.moveLightDomChildrenInto(this.containerElement)}updated(t){}render(){return d`
3649
+ `}};l([a({type:String}),c("design:type",Object)],Ti.prototype,"placeholder",void 0),l([a({attribute:"value",type:String}),c("design:type",Object)],Ti.prototype,"_value",void 0),Ti=l([u("rtg-command-input")],Ti);var ss,nr,We=(nr=class extends _{constructor(...t){super(...t),this.selected=!1,this._id="",this._hidden="false",this.onSelect=()=>{},this.disabled="false"}get containerElement(){return this.querySelector(`#${this.identifier}`)}get identifier(){if(this._id!=="")return this._id;let t=this.parentElement;return t?this._id=`${t.getAttribute("id")}li${ss._counter++}`:this._id=`rtgcmdrxgxli${ss._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(t){this.moveLightDomChildrenInto(this.containerElement)}updated(t){}render(){return d`
3650
3650
  <div
3651
3651
  rtgcmd-item
3652
3652
  id="${this.identifier}"
@@ -3663,7 +3663,7 @@ body {
3663
3663
  @click="${this.onSelect}"
3664
3664
  class=${b(ae.item,this._hidden==="true"&&"rtg-hidden",this.className)}
3665
3665
  ></div>
3666
- `}},is=or,or._counter=0,or);l([a({type:String}),c("design:type",Object)],Ge.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Ge.prototype,"_hidden",void 0),l([a({type:Function}),c("design:type",Object)],Ge.prototype,"onSelect",void 0),l([a({attribute:"data-value",type:String}),a({type:Boolean}),c("design:type",Object),c("design:paramtypes",[])],Ge.prototype,"containerElement",null),l([a({attribute:"data-disabled",type:String}),c("design:type",String)],Ge.prototype,"disabled",void 0),Ge=is=l([p("rtg-command-item")],Ge);var ka=class extends _{get identifier(){let e=this.parentElement;return e?`${e.getAttribute("id")}l`:"rtgcmdrxl"}get containerElement(){return this.querySelector("div[rtgcmd-list]")}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return d`
3666
+ `}},ss=nr,nr._counter=0,nr);l([a({type:String}),c("design:type",Object)],We.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],We.prototype,"_hidden",void 0),l([a({type:Function}),c("design:type",Object)],We.prototype,"onSelect",void 0),l([a({attribute:"data-value",type:String}),a({type:Boolean}),c("design:type",Object),c("design:paramtypes",[])],We.prototype,"containerElement",null),l([a({attribute:"data-disabled",type:String}),c("design:type",String)],We.prototype,"disabled",void 0),We=ss=l([u("rtg-command-item")],We);var ka=class extends _{get identifier(){let e=this.parentElement;return e?`${e.getAttribute("id")}l`:"rtgcmdrxl"}get containerElement(){return this.querySelector("div[rtgcmd-list]")}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.containerElement)}render(){return d`
3667
3667
  <div
3668
3668
  rtgcmd-list
3669
3669
  id="${this.identifier}"
@@ -3673,7 +3673,7 @@ body {
3673
3673
  >
3674
3674
  <div></div>
3675
3675
  </div>
3676
- `}};ka=l([p("rtg-command-list")],ka);var ss,nr,Ti=(nr=class extends v{constructor(...t){super(...t),this._id="",this._hidden=""}get identifier(){if(this._id!=="")return this._id;let t=this.parentElement;return t?this._id=`${t.getAttribute("id")}s${ss._counter++}`:this._id=`rtgcmdrxlxs${ss._counter++}`,this._id}createRenderRoot(){return this}render(){return d`${this._hidden==="true"?m:d`
3676
+ `}};ka=l([u("rtg-command-list")],ka);var os,ar,Li=(ar=class extends v{constructor(...t){super(...t),this._id="",this._hidden=""}get identifier(){if(this._id!=="")return this._id;let t=this.parentElement;return t?this._id=`${t.getAttribute("id")}s${os._counter++}`:this._id=`rtgcmdrxlxs${os._counter++}`,this._id}createRenderRoot(){return this}render(){return d`${this._hidden==="true"?m:d`
3677
3677
  <div
3678
3678
  rtgcmd-separator
3679
3679
  id="${this.identifier}"
@@ -3681,7 +3681,7 @@ body {
3681
3681
  role="separator"
3682
3682
  class=${b(ae.separator,this.className)}
3683
3683
  ></div>
3684
- `}`}},ss=nr,nr._counter=0,nr);l([a({type:String}),c("design:type",Object)],Ti.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Ti.prototype,"_hidden",void 0),Ti=ss=l([p("rtg-command-separator")],Ti);var Ra=class extends _{get containerElement(){return this.querySelector("div[rtgcmd-root]")}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class","style"]}createRenderRoot(){return this}firstUpdated(e){this.removeParentAttributes(),this.moveLightDomChildrenInto(this.containerElement),this.containerElement&&this.observeStyleAndClassSync(this.containerElement)}render(){let e=this.customClass||"",t=this.customStyle||"";return d`
3684
+ `}`}},os=ar,ar._counter=0,ar);l([a({type:String}),c("design:type",Object)],Li.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Li.prototype,"_hidden",void 0),Li=os=l([u("rtg-command-separator")],Li);var Ra=class extends _{get containerElement(){return this.querySelector("div[rtgcmd-root]")}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class","style"]}createRenderRoot(){return this}firstUpdated(e){this.removeParentAttributes(),this.moveLightDomChildrenInto(this.containerElement),this.containerElement&&this.observeStyleAndClassSync(this.containerElement)}render(){let e=this.customClass||"",t=this.customStyle||"";return d`
3685
3685
  <div
3686
3686
  part="command"
3687
3687
  class="${b(ae.root,e)}"
@@ -3689,7 +3689,7 @@ body {
3689
3689
  id="rtgcmdr1"
3690
3690
  rtgcmd-root
3691
3691
  ></div>
3692
- `}};Ra=l([p("rtg-command")],Ra);var Rt={root:[""],content:["rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-p-context-menu-content-space-p","rtg-min-w-context-menu-content-space-min-w","rtg-text-context-menu-content-color-text","rtg-bg-context-menu-content-color-bg","rtg-rounded-context-menu-content-radius rtg-border-context-menu-content-width-border rtg-border-context-menu-content-color-border","rtg-shadow-context-menu-content-shadow","rtg-translate-y-0.5","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],group:[""],item:["rtg-flex rtg-relative","rtg-gap-context-menu-item-space-gap rtg-items-center","rtg-px-context-menu-item-space-px rtg-py-context-menu-item-space-py","rtg-text-context-menu-item-font","rtg-rounded-context-menu-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","hover:rtg-bg-context-menu-item-color-bg-hover hover:rtg-text-context-menu-item-color-text-hover","focus:rtg-bg-context-menu-item-color-bg-focus focus:rtg-text-context-menu-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-context-menu-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-context-menu-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-context-menu-checkbox-item-space-gap rtg-items-center","rtg-pl-context-menu-checkbox-item-space-pl rtg-pr-context-menu-checkbox-item-space-pr rtg-py-context-menu-checkbox-item-space-py","rtg-text-context-menu-checkbox-item-font","rtg-rounded-context-menu-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-context-menu-checkbox-item-color-bg-focus aria-selected:rtg-text-context-menu-checkbox-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-context-menu-checkbox-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-context-menu-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-context-menu-radio-item-space-gap rtg-items-center","rtg-pl-context-menu-radio-item-space-pl rtg-pr-context-menu-radio-item-space-pr rtg-py-context-menu-radio-item-space-py","rtg-text-context-menu-radio-item-font","rtg-rounded-context-menu-radio-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-context-menu-radio-item-color-bg-focus aria-selected:rtg-text-context-menu-radio-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-context-menu-radio-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-context-menu-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-context-menu-label-space-px rtg-py-context-menu-label-space-py","rtg-text-context-menu-label-font rtg-font-context-menu-label-font-weight"],separator:["rtg-mx-context-menu-separator-space-mx rtg-my-context-menu-separator-space-my","rtg-h-context-menu-separator-space-h","rtg-bg-context-menu-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-context-menu-shortcut-font rtg-text-context-menu-shortcut-color-text"]},We=class extends _{constructor(...e){super(...e),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-checkbox-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3692
+ `}};Ra=l([u("rtg-command")],Ra);var Rt={root:[""],content:["rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-p-context-menu-content-space-p","rtg-min-w-context-menu-content-space-min-w","rtg-text-context-menu-content-color-text","rtg-bg-context-menu-content-color-bg","rtg-rounded-context-menu-content-radius rtg-border-context-menu-content-width-border rtg-border-context-menu-content-color-border","rtg-shadow-context-menu-content-shadow","rtg-translate-y-0.5","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],group:[""],item:["rtg-flex rtg-relative","rtg-gap-context-menu-item-space-gap rtg-items-center","rtg-px-context-menu-item-space-px rtg-py-context-menu-item-space-py","rtg-text-context-menu-item-font","rtg-rounded-context-menu-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","hover:rtg-bg-context-menu-item-color-bg-hover hover:rtg-text-context-menu-item-color-text-hover","focus:rtg-bg-context-menu-item-color-bg-focus focus:rtg-text-context-menu-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-context-menu-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-context-menu-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-context-menu-checkbox-item-space-gap rtg-items-center","rtg-pl-context-menu-checkbox-item-space-pl rtg-pr-context-menu-checkbox-item-space-pr rtg-py-context-menu-checkbox-item-space-py","rtg-text-context-menu-checkbox-item-font","rtg-rounded-context-menu-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-context-menu-checkbox-item-color-bg-focus aria-selected:rtg-text-context-menu-checkbox-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-context-menu-checkbox-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-context-menu-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-context-menu-radio-item-space-gap rtg-items-center","rtg-pl-context-menu-radio-item-space-pl rtg-pr-context-menu-radio-item-space-pr rtg-py-context-menu-radio-item-space-py","rtg-text-context-menu-radio-item-font","rtg-rounded-context-menu-radio-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-context-menu-radio-item-color-bg-focus aria-selected:rtg-text-context-menu-radio-item-color-text-focus","data-[disabled]:rtg-opacity-context-menu-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-context-menu-radio-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-context-menu-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-context-menu-label-space-px rtg-py-context-menu-label-space-py","rtg-text-context-menu-label-font rtg-font-context-menu-label-font-weight"],separator:["rtg-mx-context-menu-separator-space-mx rtg-my-context-menu-separator-space-my","rtg-h-context-menu-separator-space-h","rtg-bg-context-menu-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-context-menu-shortcut-font rtg-text-context-menu-shortcut-color-text"]},Ke=class extends _{constructor(...e){super(...e),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-checkbox-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3693
3693
  <div
3694
3694
  rtgcmd-item
3695
3695
  part="context-menu-checkbox"
@@ -3724,12 +3724,12 @@ body {
3724
3724
  </span>
3725
3725
  <div part="context-menu-checkbox-item-container"></div>
3726
3726
  </div>
3727
- `}};l([a({type:String}),c("design:type",Object)],We.prototype,"_id",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],We.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],We.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],We.prototype,"checked",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],We.prototype,"disabled",void 0),We=l([p("rtg-context-menu-checkbox-item")],We);var co=class extends _{constructor(){super(),this.isOpen=!1,this.handleClickOutside=this.handleClickOutside.bind(this)}get _containerElement(){return this.querySelector("div[part=context-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleClickOutside(e){let t=this==null?void 0:this.querySelector("button");!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&requestAnimationFrame(()=>{this._containerElement.style.display="none",this._containerElement.style.position="absolute",this._containerElement.dataset.state="closed",this.isOpen=!1})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3727
+ `}};l([a({type:String}),c("design:type",Object)],Ke.prototype,"_id",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ke.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Ke.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Ke.prototype,"checked",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Ke.prototype,"disabled",void 0),Ke=l([u("rtg-context-menu-checkbox-item")],Ke);var co=class extends _{constructor(){super(),this.isOpen=!1,this.handleClickOutside=this.handleClickOutside.bind(this)}get _containerElement(){return this.querySelector("div[part=context-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleClickOutside(e){let t=this==null?void 0:this.querySelector("button");!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&requestAnimationFrame(()=>{this._containerElement.style.display="none",this._containerElement.style.position="absolute",this._containerElement.dataset.state="closed",this.isOpen=!1})}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3728
3728
  <div
3729
3729
  part="context-menu-content"
3730
3730
  class=${b(Rt.content,this.className)}
3731
3731
  ></div>
3732
- `}};l([x(),c("design:type",Object)],co.prototype,"isOpen",void 0),co=l([p("rtg-context-menu-content"),c("design:paramtypes",[])],co);var ho=class extends _{constructor(...e){super(...e),this.heading=""}get _containerElement(){return this.querySelector("div[ rtgcontext-group-items]")}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3732
+ `}};l([x(),c("design:type",Object)],co.prototype,"isOpen",void 0),co=l([u("rtg-context-menu-content"),c("design:paramtypes",[])],co);var ho=class extends _{constructor(...e){super(...e),this.heading=""}get _containerElement(){return this.querySelector("div[ rtgcontext-group-items]")}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3733
3733
  <div
3734
3734
  rtgcmd-group
3735
3735
  part="context-menu-group"
@@ -3742,7 +3742,7 @@ body {
3742
3742
 
3743
3743
  <div rtgcontext-group-items role="group"></div>
3744
3744
  </div>
3745
- `}};l([a({type:String}),c("design:type",Object)],ho.prototype,"heading",void 0),ho=l([p("rtg-context-menu-group")],ho);var Li=class extends _{constructor(...e){super(...e),this.disabled=!1}get _containerElement(){return this.querySelector("div[part=context-menu-item]")}getAttributesToExclude(){return[]}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",()=>{this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("close-context-menu",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback()}disconnectedCallback(){}createRenderRoot(){return this}render(){return d`
3745
+ `}};l([a({type:String}),c("design:type",Object)],ho.prototype,"heading",void 0),ho=l([u("rtg-context-menu-group")],ho);var Ni=class extends _{constructor(...e){super(...e),this.disabled=!1}get _containerElement(){return this.querySelector("div[part=context-menu-item]")}getAttributesToExclude(){return[]}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",()=>{this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0,cancelable:!0})),this.dispatchEvent(new CustomEvent("close-context-menu",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback()}disconnectedCallback(){}createRenderRoot(){return this}render(){return d`
3746
3746
  <div
3747
3747
  part="context-menu-item"
3748
3748
  role="option"
@@ -3750,7 +3750,7 @@ body {
3750
3750
  ?data-disabled=${this.disabled}
3751
3751
  class=${b(Rt.item,this.className)}
3752
3752
  ></div>
3753
- `}};l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Li.prototype,"value",null),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Li.prototype,"disabled",void 0),Li=l([p("rtg-context-menu-item")],Li);var Ke=class extends _{constructor(...e){super(...e),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-radio-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3753
+ `}};l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ni.prototype,"value",null),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Ni.prototype,"disabled",void 0),Ni=l([u("rtg-context-menu-item")],Ni);var Ye=class extends _{constructor(...e){super(...e),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=context-menu-radio-item-container]")}getAttributesToExclude(){return["data-testid"]}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3754
3754
  <div
3755
3755
  rtgcmd-item
3756
3756
  part="context-menu-radio"
@@ -3783,52 +3783,52 @@ body {
3783
3783
  </span>
3784
3784
  <div part="context-menu-radio-item-container"></div>
3785
3785
  </div>
3786
- `}};l([a({type:String}),c("design:type",Object)],Ke.prototype,"_id",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ke.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Ke.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Ke.prototype,"checked",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Ke.prototype,"disabled",void 0),Ke=l([p("rtg-context-menu-radio-item")],Ke);var uo=class extends v{constructor(...e){super(...e),this._id=""}createRenderRoot(){return this}render(){return d`
3786
+ `}};l([a({type:String}),c("design:type",Object)],Ye.prototype,"_id",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ye.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Ye.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Ye.prototype,"checked",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Ye.prototype,"disabled",void 0),Ye=l([u("rtg-context-menu-radio-item")],Ye);var po=class extends v{constructor(...e){super(...e),this._id=""}createRenderRoot(){return this}render(){return d`
3787
3787
  <div
3788
3788
  rtgcmd-separator
3789
3789
  part="context-menu-separator"
3790
3790
  role="separator"
3791
3791
  class=${b(Rt.separator,this.className)}
3792
3792
  ></div>
3793
- `}};l([a({type:String}),c("design:type",Object)],uo.prototype,"_id",void 0),uo=l([p("rtg-context-menu-separator")],uo);var Ia=class extends _{get _containerElement(){return this.querySelector("span[part=context-menu-shortcut]")}getAttributesToExclude(){return[]}createRenderRoot(){return this.classList=b(Rt.shortcut),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3793
+ `}};l([a({type:String}),c("design:type",Object)],po.prototype,"_id",void 0),po=l([u("rtg-context-menu-separator")],po);var Ia=class extends _{get _containerElement(){return this.querySelector("span[part=context-menu-shortcut]")}getAttributesToExclude(){return[]}createRenderRoot(){return this.classList=b(Rt.shortcut),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3794
3794
  <span
3795
3795
  part="context-menu-shortcut"
3796
3796
  class=${b(Rt.shortcut,this.className)}
3797
3797
  >
3798
3798
  </span>
3799
- `}};Ia=l([p("rtg-context-menu-shortcut")],Ia);var Oa=class extends v{createRenderRoot(){return this}render(){return d``}};Oa=l([p("rtg-context-menu-trigger")],Oa);var po=class extends _{constructor(...e){super(...e),this.isOpen=!1,this.handleClickOutside=t=>{let r=t.target;this!=null&&this.contains(r)||(this.isOpen=!1)}}get _containerElement(){return this.querySelector("div[part=context-menu]")}get _triggerElement(){return this.querySelector("rtg-context-menu-trigger")}get _content(){return this==null?void 0:this.querySelector("div[part=context-menu-content]")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected),this.addEventListener("close-context-menu",()=>{this.isOpen=!1,requestAnimationFrame(()=>{let e=this._content;e&&(e.style.display="none")})})}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.preventDefault(),e.stopPropagation();let{clientX:t,clientY:r}=e,i=e.target.getBoundingClientRect();requestAnimationFrame(()=>{let s=this._content;s&&(s.style.display="",s.style.position="absolute",s.style.left=`${t-i.left}px`,s.style.top=`${r-i.top}px`,s.dataset.state="open",this.isOpen=!0)})}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}_handleRadioSelected(e){this.querySelectorAll("rtg-context-menu-radio-item").forEach(t=>{t!==e.target&&(t.checked=!1)})}getAttributesToExclude(){return[]}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._triggerElement)==null||t.addEventListener("contextmenu",r=>{this.toggleDropdown(r)}),this.style.position="relative"}createRenderRoot(){return this}render(){return d`
3799
+ `}};Ia=l([u("rtg-context-menu-shortcut")],Ia);var Oa=class extends v{createRenderRoot(){return this}render(){return d``}};Oa=l([u("rtg-context-menu-trigger")],Oa);var uo=class extends _{constructor(...e){super(...e),this.isOpen=!1,this.handleClickOutside=t=>{let r=t.target;this!=null&&this.contains(r)||(this.isOpen=!1)}}get _containerElement(){return this.querySelector("div[part=context-menu]")}get _triggerElement(){return this.querySelector("rtg-context-menu-trigger")}get _content(){return this==null?void 0:this.querySelector("div[part=context-menu-content]")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected),this.addEventListener("close-context-menu",()=>{this.isOpen=!1,requestAnimationFrame(()=>{let e=this._content;e&&(e.style.display="none")})})}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}toggleDropdown(e){e.preventDefault(),e.stopPropagation();let{clientX:t,clientY:r}=e,i=e.target.getBoundingClientRect();requestAnimationFrame(()=>{let s=this._content;s&&(s.style.display="",s.style.position="absolute",s.style.left=`${t-i.left}px`,s.style.top=`${r-i.top}px`,s.dataset.state="open",this.isOpen=!0)})}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}_handleRadioSelected(e){this.querySelectorAll("rtg-context-menu-radio-item").forEach(t=>{t!==e.target&&(t.checked=!1)})}getAttributesToExclude(){return[]}firstUpdated(e){var t;this.moveLightDomChildrenInto(this._containerElement),(t=this._triggerElement)==null||t.addEventListener("contextmenu",r=>{this.toggleDropdown(r)}),this.style.position="relative"}createRenderRoot(){return this}render(){return d`
3800
3800
  <div
3801
3801
  part="context-menu"
3802
3802
  class=${b(Rt.root,this.className)}
3803
3803
  ></div>
3804
- `}};l([x(),c("design:type",Object)],po.prototype,"isOpen",void 0),po=l([p("rtg-context-menu")],po);var un={root:["rtg-relative"],trigger:[""],content:["rtg-absolute rtg-z-50","rtg-p-popover-content-space-p","rtg-w-popover-content-space-w","rtg-text-popover-content-color-text","rtg-bg-popover-content-color-bg","rtg-rounded-popover-content-radius rtg-border-popover-content-width-border rtg-border-popover-content-color-border rtg-outline-hidden","rtg-shadow-popover-content-shadow",'data-[state="open"]:rtg-block data-[state="closed"]:rtg-hidden','data-[state="open"]:rtg-animate-in data-[state="open"]:rtg-fade-in-0 data-[state="open"]:rtg-zoom-in-95','data-[state="closed"]:rtg-animate-out data-[state="closed"]:rtg-fade-out-0 data-[state="closed"]:rtg-zoom-out-95',"rtg-translate-y-0.5"]},Ar=class extends _{constructor(...e){super(...e),this.enableDefaultStyle=!0,this.styleContent=!0,this.side="bottom",this.state="closed"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof mi);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-content]")}handleClickOutside(e){let t=this._popover;t&&!t.contains(e.target)&&(t.isOpen=!1)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var t;(t=this._popover)!=null&&t.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}preventClickPropagation(e){e.stopPropagation()}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d`
3804
+ `}};l([x(),c("design:type",Object)],uo.prototype,"isOpen",void 0),uo=l([u("rtg-context-menu")],uo);var pn={root:["rtg-relative"],trigger:[""],content:["rtg-absolute rtg-z-50","rtg-p-popover-content-space-p","rtg-w-popover-content-space-w","rtg-text-popover-content-color-text","rtg-bg-popover-content-color-bg","rtg-rounded-popover-content-radius rtg-border-popover-content-width-border rtg-border-popover-content-color-border rtg-outline-hidden","rtg-shadow-popover-content-shadow",'data-[state="open"]:rtg-block data-[state="closed"]:rtg-hidden','data-[state="open"]:rtg-animate-in data-[state="open"]:rtg-fade-in-0 data-[state="open"]:rtg-zoom-in-95','data-[state="closed"]:rtg-animate-out data-[state="closed"]:rtg-fade-out-0 data-[state="closed"]:rtg-zoom-out-95',"rtg-translate-y-0.5"]},Pr=class extends _{constructor(...e){super(...e),this.enableDefaultStyle=!0,this.styleContent=!0,this.side="bottom",this.state="closed"}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof fi);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-content]")}handleClickOutside(e){let t=this._popover;t&&!t.contains(e.target)&&(t.isOpen=!1)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),window.addEventListener("click",this.handleClickOutside.bind(this))}updated(e){var t;(t=this._popover)!=null&&t.isOpen||window.removeEventListener("click",this.handleClickOutside.bind(this))}preventClickPropagation(e){e.stopPropagation()}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d`
3805
3805
  <div
3806
3806
  part="popover-content"
3807
3807
  data-state=${this.state}
3808
- class=${b(un.content,this.className)}
3808
+ class=${b(pn.content,this.className)}
3809
3809
  @click="${this.preventClickPropagation}"
3810
3810
  ></div>
3811
- `}};l([a({type:Boolean}),c("design:type",Object)],Ar.prototype,"enableDefaultStyle",void 0),l([a({type:Boolean}),c("design:type",Object)],Ar.prototype,"styleContent",void 0),l([a({type:String}),c("design:type",String)],Ar.prototype,"side",void 0),l([a({attribute:"data-state",type:String}),c("design:type",String)],Ar.prototype,"state",void 0),Ar=l([p("rtg-popover-content")],Ar);var Aa=class extends _{constructor(...e){super(...e),this.handleClick=()=>{let t=this._popover;t&&(t.isOpen=!t.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof mi);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{this.handleClick(),t.stopPropagation()})}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return d`
3811
+ `}};l([a({type:Boolean}),c("design:type",Object)],Pr.prototype,"enableDefaultStyle",void 0),l([a({type:Boolean}),c("design:type",Object)],Pr.prototype,"styleContent",void 0),l([a({type:String}),c("design:type",String)],Pr.prototype,"side",void 0),l([a({attribute:"data-state",type:String}),c("design:type",String)],Pr.prototype,"state",void 0),Pr=l([u("rtg-popover-content")],Pr);var Aa=class extends _{constructor(...e){super(...e),this.handleClick=()=>{let t=this._popover;t&&(t.isOpen=!t.isOpen)}}get _popover(){let e=this.parentElement;for(;e&&!(e instanceof fi);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=popover-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{this.handleClick(),t.stopPropagation()})}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}render(){return d`
3812
3812
  <div
3813
3813
  part="popover-trigger"
3814
- class=${b(un.trigger,this.className)}
3814
+ class=${b(pn.trigger,this.className)}
3815
3815
  ></div>
3816
- `}};Aa=l([p("rtg-popover-trigger")],Aa);var mi=class extends _{constructor(...e){super(...e),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=popover]")}get _contentElement(){return this.querySelector("rtg-popover-content")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){this._contentElement.state=this.isOpen?"open":"closed",this._contentElement.requestUpdate()}render(){return d`
3817
- <div part="popover" class=${b(un.root,this.className)}></div>
3818
- `}};l([x(),c("design:type",Boolean)],mi.prototype,"isOpen",void 0),mi=l([p("rtg-popover")],mi);var Ni={root:[""],trigger:[""],triggerButton:[gi({variant:"outline"}).replace("rtg-justify-center",""),"rtg-justify-start","rtg-w-date-picker-trigger-button-space-w","rtg-text-left rtg-font-date-picker-trigger-button-font-weight","data-[empty=true]:rtg-text-date-picker-trigger-button-color-text-empty"],content:["rtg-p-date-picker-content-space-p","rtg-w-auto"]},go=class extends v{constructor(...e){super(...e),this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.startDate,this.requestUpdate()}createRenderRoot(){return this}render(){return d`
3816
+ `}};Aa=l([u("rtg-popover-trigger")],Aa);var fi=class extends _{constructor(...e){super(...e),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=popover]")}get _contentElement(){return this.querySelector("rtg-popover-content")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){this._contentElement.state=this.isOpen?"open":"closed",this._contentElement.requestUpdate()}render(){return d`
3817
+ <div part="popover" class=${b(pn.root,this.className)}></div>
3818
+ `}};l([x(),c("design:type",Boolean)],fi.prototype,"isOpen",void 0),fi=l([u("rtg-popover")],fi);var zi={root:[""],trigger:[""],triggerButton:[bi({variant:"outline"}).replace("rtg-justify-center",""),"rtg-justify-start","rtg-w-date-picker-trigger-button-space-w","rtg-text-left rtg-font-date-picker-trigger-button-font-weight","data-[empty=true]:rtg-text-date-picker-trigger-button-color-text-empty"],content:["rtg-p-date-picker-content-space-p","rtg-w-auto"]},go=class extends v{constructor(...e){super(...e),this.selectedDate=null}handleDateSelected(e){this.selectedDate=e.detail.startDate,this.requestUpdate()}createRenderRoot(){return this}render(){return d`
3819
3819
  <rtg-popover
3820
- class=${b("date-picker",Ni.root,this.className)}
3820
+ class=${b("date-picker",zi.root,this.className)}
3821
3821
  @date-selected=${this.handleDateSelected}
3822
3822
  >
3823
3823
  <rtg-popover-trigger
3824
3824
  as-child
3825
- class=${b("date-picker-trigger",Ni.trigger)}
3825
+ class=${b("date-picker-trigger",zi.trigger)}
3826
3826
  >
3827
3827
  <button
3828
3828
  data-variant="outline"
3829
3829
  data-size="default"
3830
3830
  data-empty=${this.selectedDate?"false":"true"}
3831
- class=${b("date-picker-trigger-button",Ni.triggerButton)}
3831
+ class=${b("date-picker-trigger-button",zi.triggerButton)}
3832
3832
  >
3833
3833
  <svg
3834
3834
  xmlns="http://www.w3.org/2000/svg"
@@ -3853,17 +3853,17 @@ body {
3853
3853
  </rtg-popover-trigger>
3854
3854
 
3855
3855
  <rtg-popover-content
3856
- class=${b("date-picker-content",Ni.content)}
3856
+ class=${b("date-picker-content",zi.content)}
3857
3857
  >
3858
3858
  <rtg-calendar mode="single"></rtg-calendar>
3859
3859
  </rtg-popover-content>
3860
3860
  </rtg-popover>
3861
- `}};l([a({type:Object}),c("design:type",Object)],go.prototype,"selectedDate",void 0),go=l([p("rtg-date-picker")],go);var Zt={root:[""],trigger:[""],close:[""],overlay:["rtg-fixed rtg-inset-0 rtg-z-50","rtg-bg-dialog-overlay-color-bg","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0"],content:{base:["rtg-fixed rtg-top-[50%] rtg-left-[50%] rtg-z-50","rtg-grid rtg-gap-dialog-content-space-gap","rtg-p-dialog-content-space-p","rtg-w-dialog-content-space-w rtg-max-w-dialog-content-space-max-w-sm sm:rtg-max-w-dialog-content-space-max-w","rtg-bg-dialog-content-color-bg","rtg-rounded-dialog-content-radius rtg-border-dialog-content-width-border rtg-border-dialog-content-color-border rtg-outline-none","rtg-shadow-dialog-content-shadow","rtg-duration-200","rtg-translate-x-[-50%] rtg-translate-y-[-50%]","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],close:{base:["rtg-absolute rtg-top-4 rtg-right-4","rtg-rounded-dialog-close-radius","rtg-ring-offset-dialog-close-color-ring-offset","rtg-transition-opacity","focus:rtg-ring-dialog-close-width-ring-focus focus:rtg-ring-dialog-close-color-ring-focus focus:rtg-ring-offset-dialog-close-width-ring-offset focus:rtg-outline-hidden","disabled:rtg-pointer-events-none","data-[state=open]:rtg-bg-dialog-close-color-bg data-[state=open]:rtg-text-dialog-close-color-text"],icon:["rtg-shrink-0","rtg-size-dialog-close-icon-space-size","rtg-pointer-events-none"]}},header:["rtg-flex rtg-flex-col rtg-gap-dialog-header-space-gap","rtg-text-center","sm:rtg-text-left"],footer:["rtg-flex rtg-flex-col-reverse rtg-gap-dialog-footer-space-gap","sm:rtg-flex-row sm:rtg-justify-end"],title:["rtg-text-dialog-title-font rtg-font-dialog-title-font-weight"],description:["rtg-text-dialog-description-font rtg-font-dialog-description-font-weight rtg-text-dialog-description-color-text"]},Xh="closed",Pa=class extends _{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof Dr)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=dialog-close]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",()=>{let t=this._dialog;t&&(t.dataset.state=Xh)})}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d`
3861
+ `}};l([a({type:Object}),c("design:type",Object)],go.prototype,"selectedDate",void 0),go=l([u("rtg-date-picker")],go);var Zt={root:[""],trigger:[""],close:[""],overlay:["rtg-fixed rtg-inset-0 rtg-z-50","rtg-bg-dialog-overlay-color-bg","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0"],content:{base:["rtg-fixed rtg-top-[50%] rtg-left-[50%] rtg-z-50","rtg-grid rtg-gap-dialog-content-space-gap","rtg-p-dialog-content-space-p","rtg-w-dialog-content-space-w rtg-max-w-dialog-content-space-max-w-sm sm:rtg-max-w-dialog-content-space-max-w","rtg-bg-dialog-content-color-bg","rtg-rounded-dialog-content-radius rtg-border-dialog-content-width-border rtg-border-dialog-content-color-border rtg-outline-none","rtg-shadow-dialog-content-shadow","rtg-duration-200","rtg-translate-x-[-50%] rtg-translate-y-[-50%]","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],close:{base:["rtg-absolute rtg-top-4 rtg-right-4","rtg-rounded-dialog-close-radius","rtg-ring-offset-dialog-close-color-ring-offset","rtg-transition-opacity","focus:rtg-ring-dialog-close-width-ring-focus focus:rtg-ring-dialog-close-color-ring-focus focus:rtg-ring-offset-dialog-close-width-ring-offset focus:rtg-outline-hidden","disabled:rtg-pointer-events-none","data-[state=open]:rtg-bg-dialog-close-color-bg data-[state=open]:rtg-text-dialog-close-color-text"],icon:["rtg-shrink-0","rtg-size-dialog-close-icon-space-size","rtg-pointer-events-none"]}},header:["rtg-flex rtg-flex-col rtg-gap-dialog-header-space-gap","rtg-text-center","sm:rtg-text-left"],footer:["rtg-flex rtg-flex-col-reverse rtg-gap-dialog-footer-space-gap","sm:rtg-flex-row sm:rtg-justify-end"],title:["rtg-text-dialog-title-font rtg-font-dialog-title-font-weight"],description:["rtg-text-dialog-description-font rtg-font-dialog-description-font-weight rtg-text-dialog-description-color-text"]},Xh="closed",Pa=class extends _{get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof Br)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=dialog-close]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",()=>{let t=this._dialog;t&&(t.dataset.state=Xh)})}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d`
3862
3862
  <div
3863
3863
  part="dialog-close"
3864
3864
  class=${b(Zt.close,this.className)}
3865
3865
  ></div>
3866
- `}};Pa=l([p("rtg-dialog-close")],Pa);var mo="closed",zi=class extends _{constructor(...e){super(...e),this.state=mo,this.showCloseButton=!1,this.handleCloseButtonClick=()=>{let t=this._dialog;t&&(t.dataset.state=mo)}}get _containerElement(){return this.querySelector("div[part=dialog-content-slot]")}get ـcomponentElement(){return this.querySelector("div[part=dialog-content]")}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof Dr)return e;e=e.parentElement}return e}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){requestAnimationFrame(()=>{e.get("state")===mo?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return d`
3866
+ `}};Pa=l([u("rtg-dialog-close")],Pa);var mo="closed",Ui=class extends _{constructor(...e){super(...e),this.state=mo,this.showCloseButton=!1,this.handleCloseButtonClick=()=>{let t=this._dialog;t&&(t.dataset.state=mo)}}get _containerElement(){return this.querySelector("div[part=dialog-content-slot]")}get ـcomponentElement(){return this.querySelector("div[part=dialog-content]")}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof Br)return e;e=e.parentElement}return e}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){requestAnimationFrame(()=>{e.get("state")===mo?this.ـcomponentElement.style.display="grid":this.ـcomponentElement.style.display="none"})}render(){return d`
3867
3867
  <div
3868
3868
  rtgdlg-content
3869
3869
  part="dialog-content"
@@ -3898,12 +3898,12 @@ body {
3898
3898
  </button>
3899
3899
  `:""}
3900
3900
  </div>
3901
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],zi.prototype,"state",void 0),l([a({attribute:"show-close-button",type:Boolean}),c("design:type",Object)],zi.prototype,"showCloseButton",void 0),zi=l([p("rtg-dialog-content")],zi);var Fa=class extends _{get _containerElement(){return this.querySelector("div[part=dialog-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3901
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Ui.prototype,"state",void 0),l([a({attribute:"show-close-button",type:Boolean}),c("design:type",Object)],Ui.prototype,"showCloseButton",void 0),Ui=l([u("rtg-dialog-content")],Ui);var Fa=class extends _{get _containerElement(){return this.querySelector("div[part=dialog-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3902
3902
  <div
3903
3903
  part="dialog-footer"
3904
3904
  class=${b(Zt.footer,this.className)}
3905
3905
  ></div>
3906
- `}};Fa=l([p("rtg-dialog-footer")],Fa);var ji=class extends v{constructor(...e){super(...e),this._title="",this.description=""}createRenderRoot(){return this}render(){return d`
3906
+ `}};Fa=l([u("rtg-dialog-footer")],Fa);var ji=class extends v{constructor(...e){super(...e),this._title="",this.description=""}createRenderRoot(){return this}render(){return d`
3907
3907
  <div
3908
3908
  part="dialog-header"
3909
3909
  class=${b(Zt.header,this.className)}
@@ -3914,17 +3914,17 @@ body {
3914
3914
  ${this.description}
3915
3915
  </p>
3916
3916
  </div>
3917
- `}};l([a({attribute:"title",type:String}),c("design:type",Object)],ji.prototype,"_title",void 0),l([a({type:String}),c("design:type",Object)],ji.prototype,"description",void 0),ji=l([p("rtg-dialog-header")],ji);var Ta=class extends v{createRenderRoot(){return this}render(){return d`
3917
+ `}};l([a({attribute:"title",type:String}),c("design:type",Object)],ji.prototype,"_title",void 0),l([a({type:String}),c("design:type",Object)],ji.prototype,"description",void 0),ji=l([u("rtg-dialog-header")],ji);var Ta=class extends v{createRenderRoot(){return this}render(){return d`
3918
3918
  <div
3919
3919
  part="dialog-overly"
3920
3920
  class=${b(Zt.overlay,this.className)}
3921
3921
  ></div>
3922
- `}};Ta=l([p("rtg-dialog-overlay")],Ta);var Zh="open",La=class extends _{constructor(...e){super(...e),this.handleClick=()=>{let t=this._dialog;t&&(t.dataset.state=Zh)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof Dr)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=dialog-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{t.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return d`
3922
+ `}};Ta=l([u("rtg-dialog-overlay")],Ta);var Zh="open",La=class extends _{constructor(...e){super(...e),this.handleClick=()=>{let t=this._dialog;t&&(t.dataset.state=Zh)}}get _dialog(){let e=this.parentElement;for(;e;){if(e instanceof Br)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=dialog-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{t.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return d`
3923
3923
  <div
3924
3924
  part="dialog-trigger"
3925
3925
  class=${b(Zt.trigger,this.className)}
3926
3926
  ></div>
3927
- `}};La=l([p("rtg-dialog-trigger")],La);var Jh="open",Qh="closed",Dr=class extends _{constructor(...e){super(...e),this.state=Qh}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){return this.querySelector("rtg-dialog-content")||null}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.state)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return d`
3927
+ `}};La=l([u("rtg-dialog-trigger")],La);var Jh="open",Qh="closed",Br=class extends _{constructor(...e){super(...e),this.state=Qh}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){return this.querySelector("rtg-dialog-content")||null}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.state)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return d`
3928
3928
  <div
3929
3929
  rtgdlg-root
3930
3930
  part="dialog"
@@ -3932,12 +3932,12 @@ body {
3932
3932
  >
3933
3933
  ${this.state===Jh?d` <rtg-dialog-overlay></rtg-dialog-overlay>`:m}
3934
3934
  </div>
3935
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Dr.prototype,"state",void 0),Dr=l([p("rtg-dialog")],Dr);var oe={open:"open",closed:"closed"},le={root:[""],trigger:[""],close:[""],overlay:["rtg-fixed rtg-inset-0 rtg-z-50","rtg-bg-drawer-overlay-color-bg","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0"],content:{base:["rtg-fixed rtg-inset-x-0 rtg-bottom-0 rtg-z-50","rtg-flex rtg-flex-col","rtg-mt-drawer-content-space-mt","rtg-h-auto rtg-max-h-[80vh]","rtg-bg-drawer-content-color-bg","rtg-rounded-t-drawer-content-radius rtg-border-t-drawer-content-width-border rtg-border-t-drawer-content-color-border"],thumb:["rtg-shrink-0","rtg-mx-auto rtg-mt-drawer-thumb-space-mt","rtg-w-drawer-thumb-space-w rtg-h-drawer-thumb-space-h","rtg-bg-drawer-thumb-color-bg","rtg-rounded-drawer-thumb-radius"]},header:["rtg-flex rtg-flex-col rtg-gap-drawer-header-space-gap-sm md:rtg-gap-drawer-header-space-gap","rtg-p-drawer-header-space-p","rtg-text-center"],footer:["rtg-flex rtg-flex-col rtg-gap-drawer-footer-space-gap","rtg-p-drawer-footer-space-p rtg-mt-auto"],title:["rtg-text-drawer-title-font rtg-font-drawer-title-font-weight rtg-text-drawer-title-color-text"],description:["rtg-text-drawer-description-font rtg-font-drawer-description-font-weight rtg-text-drawer-description-color-text"]},Na=class extends _{get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof bi)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-close]")}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;let t=this._containerElement;if(t){this.moveLightDomChildrenInto(t);let r=t.querySelector("button, [data-close], [role=button]");r&&r.addEventListener("click",i=>{i.stopPropagation();let s=this._drawer;s&&(s.dataset.state=oe.closed)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d`
3935
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Br.prototype,"state",void 0),Br=l([u("rtg-dialog")],Br);var oe={open:"open",closed:"closed"},le={root:[""],trigger:[""],close:[""],overlay:["rtg-fixed rtg-inset-0 rtg-z-50","rtg-bg-drawer-overlay-color-bg","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0"],content:{base:["rtg-fixed rtg-inset-x-0 rtg-bottom-0 rtg-z-50","rtg-flex rtg-flex-col","rtg-mt-drawer-content-space-mt","rtg-h-auto rtg-max-h-[80vh]","rtg-bg-drawer-content-color-bg","rtg-rounded-t-drawer-content-radius rtg-border-t-drawer-content-width-border rtg-border-t-drawer-content-color-border"],thumb:["rtg-shrink-0","rtg-mx-auto rtg-mt-drawer-thumb-space-mt","rtg-w-drawer-thumb-space-w rtg-h-drawer-thumb-space-h","rtg-bg-drawer-thumb-color-bg","rtg-rounded-drawer-thumb-radius"]},header:["rtg-flex rtg-flex-col rtg-gap-drawer-header-space-gap-sm md:rtg-gap-drawer-header-space-gap","rtg-p-drawer-header-space-p","rtg-text-center"],footer:["rtg-flex rtg-flex-col rtg-gap-drawer-footer-space-gap","rtg-p-drawer-footer-space-p rtg-mt-auto"],title:["rtg-text-drawer-title-font rtg-font-drawer-title-font-weight rtg-text-drawer-title-color-text"],description:["rtg-text-drawer-description-font rtg-font-drawer-description-font-weight rtg-text-drawer-description-color-text"]},Na=class extends _{get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof vi)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-close]")}async firstUpdated(e){super.firstUpdated(e),await this.updateComplete;let t=this._containerElement;if(t){this.moveLightDomChildrenInto(t);let r=t.querySelector("button, [data-close], [role=button]");r&&r.addEventListener("click",i=>{i.stopPropagation();let s=this._drawer;s&&(s.dataset.state=oe.closed)})}}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}render(){return d`
3936
3936
  <div
3937
3937
  part="drawer-close"
3938
3938
  class=${b(le.close,this.className)}
3939
3939
  ></div>
3940
- `}};Na=l([p("rtg-drawer-close")],Na);var bo=class extends _{constructor(...e){super(...e),this.state=oe.closed}connectedCallback(){super.connectedCallback();let e=document.createElement("style");e.textContent=`
3940
+ `}};Na=l([u("rtg-drawer-close")],Na);var bo=class extends _{constructor(...e){super(...e),this.state=oe.closed}connectedCallback(){super.connectedCallback();let e=document.createElement("style");e.textContent=`
3941
3941
  @keyframes slideInUp {
3942
3942
  from { transform: translateY(100%); }
3943
3943
  to { transform: translateY(0); }
@@ -3966,37 +3966,37 @@ body {
3966
3966
  <div part="drawer-thumb" class=${b(le.content.thumb)}></div>
3967
3967
  <div part="drawer-content-slot"></div>
3968
3968
  </div>
3969
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],bo.prototype,"state",void 0),bo=l([p("rtg-drawer-content")],bo);var za=class extends _{get _containerElement(){return this.querySelector("p[part=drawer-description")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3969
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],bo.prototype,"state",void 0),bo=l([u("rtg-drawer-content")],bo);var za=class extends _{get _containerElement(){return this.querySelector("p[part=drawer-description")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3970
3970
  <p
3971
3971
  part="drawer-description"
3972
3972
  class=${b(le.description,this.className)}
3973
3973
  ></p>
3974
- `}};za=l([p("rtg-drawer-description")],za);var ja=class extends _{get _containerElement(){return this.querySelector("div[part=drawer-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3974
+ `}};za=l([u("rtg-drawer-description")],za);var Ua=class extends _{get _containerElement(){return this.querySelector("div[part=drawer-footer]")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3975
3975
  <div
3976
3976
  part="drawer-footer"
3977
3977
  class=${b(le.footer,this.className)}
3978
3978
  ></div>
3979
- `}};ja=l([p("rtg-drawer-footer")],ja);var Ua=class extends _{get _containerElement(){return this.querySelector("div[part=drawer-header")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3979
+ `}};Ua=l([u("rtg-drawer-footer")],Ua);var ja=class extends _{get _containerElement(){return this.querySelector("div[part=drawer-header")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3980
3980
  <div
3981
3981
  part="drawer-header"
3982
3982
  class=${b(le.header,this.className)}
3983
3983
  ></div>
3984
- `}};Ua=l([p("rtg-drawer-header")],Ua);var Da=class extends v{createRenderRoot(){return this}render(){return d`
3984
+ `}};ja=l([u("rtg-drawer-header")],ja);var Da=class extends v{createRenderRoot(){return this}render(){return d`
3985
3985
  <div
3986
3986
  part="drawer-overly"
3987
3987
  class=${b(le.overlay,this.className)}
3988
3988
  ></div>
3989
- `}};Da=l([p("rtg-drawer-overlay")],Da);var Ba=class extends _{get _containerElement(){return this.querySelector("h2[part=drawer-title")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3989
+ `}};Da=l([u("rtg-drawer-overlay")],Da);var Ba=class extends _{get _containerElement(){return this.querySelector("h2[part=drawer-title")}getAttributesToExclude(){return[]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
3990
3990
  <h2
3991
3991
  part="drawer-title"
3992
3992
  class=${b(le.title,this.className)}
3993
3993
  ></h2>
3994
- `}};Ba=l([p("rtg-drawer-title")],Ba);var Ma=class extends _{constructor(...e){super(...e),this.handleClick=()=>{let t=this._drawer;t&&(t.dataset.state=oe.open)}}get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof bi)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{t.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return d`
3994
+ `}};Ba=l([u("rtg-drawer-title")],Ba);var Ma=class extends _{constructor(...e){super(...e),this.handleClick=()=>{let t=this._drawer;t&&(t.dataset.state=oe.open)}}get _drawer(){let e=this.parentElement;for(;e;){if(e instanceof vi)return e;e=e.parentElement}return e}get _containerElement(){return this.querySelector("div[part=drawer-trigger]")}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),this.addEventListener("click",t=>{t.stopPropagation(),this.handleClick()})}getAttributesToExclude(){return[]}createRenderRoot(){return this}render(){return d`
3995
3995
  <div
3996
3996
  part="drawer-trigger"
3997
3997
  class=${b(le.trigger,this.className)}
3998
3998
  ></div>
3999
- `}};Ma=l([p("rtg-drawer-trigger")],Ma);var bi=class extends _{constructor(...e){super(...e),this.state=oe.closed,this.handleOutsideClick=t=>{let r=this._content;this.state===oe.open&&r&&(r.contains(t.target)||(this.state=oe.closed,this.dispatchEvent(new CustomEvent("drawer-close"))))}}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){return this.querySelector("rtg-drawer-content")||null}connectedCallback(){super.connectedCallback(),this.setupOutsideClickHandler()}disconnectedCallback(){super.disconnectedCallback(),this.removeOutsideClickHandler()}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.state),e.has("state")&&this.setupOutsideClickHandler()}setupOutsideClickHandler(){this.state===oe.open?document.addEventListener("click",this.handleOutsideClick):this.removeOutsideClickHandler()}removeOutsideClickHandler(){document.removeEventListener("click",this.handleOutsideClick)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return d`
3999
+ `}};Ma=l([u("rtg-drawer-trigger")],Ma);var vi=class extends _{constructor(...e){super(...e),this.state=oe.closed,this.handleOutsideClick=t=>{let r=this._content;this.state===oe.open&&r&&(r.contains(t.target)||(this.state=oe.closed,this.dispatchEvent(new CustomEvent("drawer-close"))))}}get _containerElement(){return this.querySelector("div[rtgdlg-root]")}get _content(){return this.querySelector("rtg-drawer-content")||null}connectedCallback(){super.connectedCallback(),this.setupOutsideClickHandler()}disconnectedCallback(){super.disconnectedCallback(),this.removeOutsideClickHandler()}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.state),e.has("state")&&this.setupOutsideClickHandler()}setupOutsideClickHandler(){this.state===oe.open?document.addEventListener("click",this.handleOutsideClick):this.removeOutsideClickHandler()}removeOutsideClickHandler(){document.removeEventListener("click",this.handleOutsideClick)}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}getAttributesToExclude(){return[]}render(){return d`
4000
4000
  <div
4001
4001
  rtgdlg-root
4002
4002
  part="drawer"
@@ -4004,7 +4004,7 @@ body {
4004
4004
  >
4005
4005
  ${this.state===oe.open?d` <rtg-drawer-overlay></rtg-drawer-overlay>`:m}
4006
4006
  </div>
4007
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],bi.prototype,"state",void 0),bi=l([p("rtg-drawer")],bi);var It={root:[""],content:["rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-p-dropdown-menu-content-space-p","rtg-min-w-dropdown-menu-content-space-min-w","rtg-text-dropdown-menu-content-color-text","rtg-bg-dropdown-menu-content-color-bg","rtg-rounded-dropdown-menu-content-radius rtg-border-dropdown-menu-content-width-border rtg-border-dropdown-menu-content-color-border","rtg-shadow-dropdown-menu-content-shadow","rtg-translate-y-0.5","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],group:[""],item:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-item-space-gap rtg-items-center","rtg-px-dropdown-menu-item-space-px rtg-py-dropdown-menu-item-space-py","rtg-text-dropdown-menu-item-font","rtg-rounded-dropdown-menu-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","hover:rtg-bg-dropdown-menu-item-color-bg-hover hover:rtg-text-dropdown-menu-item-color-text-hover","focus:rtg-bg-dropdown-menu-item-color-bg-focus focus:rtg-text-dropdown-menu-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-dropdown-menu-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-dropdown-menu-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-checkbox-item-space-gap rtg-items-center","rtg-pl-dropdown-menu-checkbox-item-space-pl rtg-pr-dropdown-menu-checkbox-item-space-pr rtg-py-dropdown-menu-checkbox-item-space-py","rtg-text-dropdown-menu-checkbox-item-font","rtg-rounded-dropdown-menu-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-dropdown-menu-checkbox-item-color-bg-focus aria-selected:rtg-text-dropdown-menu-checkbox-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-dropdown-menu-checkbox-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-dropdown-menu-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-radio-item-space-gap rtg-items-center","rtg-pl-dropdown-menu-radio-item-space-pl rtg-pr-dropdown-menu-radio-item-space-pr rtg-py-dropdown-menu-radio-item-space-py","rtg-text-dropdown-menu-radio-item-font","rtg-rounded-dropdown-menu-radio-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-dropdown-menu-radio-item-color-bg-focus aria-selected:rtg-text-dropdown-menu-radio-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-dropdown-menu-radio-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-dropdown-menu-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-dropdown-menu-label-space-px rtg-py-dropdown-menu-label-space-py","rtg-text-dropdown-menu-label-font rtg-font-dropdown-menu-label-font-weight"],separator:["rtg-mx-dropdown-menu-separator-space-mx rtg-my-dropdown-menu-separator-space-my","rtg-h-dropdown-menu-separator-space-h","rtg-bg-dropdown-menu-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-dropdown-menu-shortcut-font rtg-text-dropdown-menu-shortcut-color-text"]},Ye=class extends _{constructor(...e){super(...e),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-checkbox-item-container]")}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof Br);)e=e.parentElement;return e}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this._dropdownMenu.isOpen=!1,this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4007
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],vi.prototype,"state",void 0),vi=l([u("rtg-drawer")],vi);var It={root:[""],content:["rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-p-dropdown-menu-content-space-p","rtg-min-w-dropdown-menu-content-space-min-w","rtg-text-dropdown-menu-content-color-text","rtg-bg-dropdown-menu-content-color-bg","rtg-rounded-dropdown-menu-content-radius rtg-border-dropdown-menu-content-width-border rtg-border-dropdown-menu-content-color-border","rtg-shadow-dropdown-menu-content-shadow","rtg-translate-y-0.5","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],group:[""],item:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-item-space-gap rtg-items-center","rtg-px-dropdown-menu-item-space-px rtg-py-dropdown-menu-item-space-py","rtg-text-dropdown-menu-item-font","rtg-rounded-dropdown-menu-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","hover:rtg-bg-dropdown-menu-item-color-bg-hover hover:rtg-text-dropdown-menu-item-color-text-hover","focus:rtg-bg-dropdown-menu-item-color-bg-focus focus:rtg-text-dropdown-menu-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-dropdown-menu-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-dropdown-menu-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-checkbox-item-space-gap rtg-items-center","rtg-pl-dropdown-menu-checkbox-item-space-pl rtg-pr-dropdown-menu-checkbox-item-space-pr rtg-py-dropdown-menu-checkbox-item-space-py","rtg-text-dropdown-menu-checkbox-item-font","rtg-rounded-dropdown-menu-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-dropdown-menu-checkbox-item-color-bg-focus aria-selected:rtg-text-dropdown-menu-checkbox-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-dropdown-menu-checkbox-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-dropdown-menu-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-dropdown-menu-radio-item-space-gap rtg-items-center","rtg-pl-dropdown-menu-radio-item-space-pl rtg-pr-dropdown-menu-radio-item-space-pr rtg-py-dropdown-menu-radio-item-space-py","rtg-text-dropdown-menu-radio-item-font","rtg-rounded-dropdown-menu-radio-item-radius rtg-outline-hidden","rtg-cursor-default","rtg-select-none","aria-selected:rtg-bg-dropdown-menu-radio-item-color-bg-focus aria-selected:rtg-text-dropdown-menu-radio-item-color-text-focus","data-[disabled]:rtg-opacity-dropdown-menu-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],span:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-dropdown-menu-radio-item-icon-container-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-dropdown-menu-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-dropdown-menu-label-space-px rtg-py-dropdown-menu-label-space-py","rtg-text-dropdown-menu-label-font rtg-font-dropdown-menu-label-font-weight"],separator:["rtg-mx-dropdown-menu-separator-space-mx rtg-my-dropdown-menu-separator-space-my","rtg-h-dropdown-menu-separator-space-h","rtg-bg-dropdown-menu-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-dropdown-menu-shortcut-font rtg-text-dropdown-menu-shortcut-color-text"]},Xe=class extends _{constructor(...e){super(...e),this._id="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-checkbox-item-container]")}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof Mr);)e=e.parentElement;return e}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this._dropdownMenu.isOpen=!1,this.checked=!this.checked}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4008
4008
  <div
4009
4009
  rtgcmd-item
4010
4010
  part="dropdown-menu-item"
@@ -4041,14 +4041,14 @@ body {
4041
4041
  </span>
4042
4042
  <div part="dropdown-menu-checkbox-item-container"></div>
4043
4043
  </div>
4044
- `}};l([a({type:String}),c("design:type",Object)],Ye.prototype,"_id",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ye.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Ye.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Ye.prototype,"checked",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Ye.prototype,"disabled",void 0),Ye=l([p("rtg-dropdown-menu-checkbox-item")],Ye);var pn="closed",Ui=class extends _{constructor(...e){super(...e),this.state=pn,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof Br);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=dropdown-menu-content]")}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4044
+ `}};l([a({type:String}),c("design:type",Object)],Xe.prototype,"_id",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Xe.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Xe.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Xe.prototype,"checked",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Xe.prototype,"disabled",void 0),Xe=l([u("rtg-dropdown-menu-checkbox-item")],Xe);var un="closed",Di=class extends _{constructor(...e){super(...e),this.state=un,this.isOpen=!1}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof Mr);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=dropdown-menu-content]")}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4045
4045
  <div
4046
4046
  data-slot="dropdown-menu-content"
4047
4047
  part="dropdown-menu-content"
4048
4048
  style="display: ${this.isOpen?"block":"none"};"
4049
4049
  class=${b(It.content,this.className)}
4050
4050
  ></div>
4051
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Ui.prototype,"state",void 0),l([x(),c("design:type",Object)],Ui.prototype,"isOpen",void 0),Ui=l([p("rtg-dropdown-menu-content")],Ui);var si=class extends _{constructor(...e){super(...e),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[rtgcmd-group-items]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`${this._hidden==="true"?m:d`
4051
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Di.prototype,"state",void 0),l([x(),c("design:type",Object)],Di.prototype,"isOpen",void 0),Di=l([u("rtg-dropdown-menu-content")],Di);var ni=class extends _{constructor(...e){super(...e),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[rtgcmd-group-items]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`${this._hidden==="true"?m:d`
4052
4052
  <div
4053
4053
  rtgcmd-group
4054
4054
  part="dropdown-menu-group"
@@ -4061,7 +4061,7 @@ body {
4061
4061
 
4062
4062
  <div rtgcmd-group-items role="group"></div>
4063
4063
  </div>
4064
- `}`}};l([a({type:String}),c("design:type",Object)],si.prototype,"heading",void 0),l([a({attribute:"id",type:String}),c("design:type",Object)],si.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],si.prototype,"_hidden",void 0),si=l([p("rtg-dropdown-menu-group")],si);var Xe=class extends _{constructor(...e){super(...e),this._id="",this._hidden="",this.selected=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=dropdown-menu-item]")}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof Br);)e=e.parentElement;return e}handleMouseEvent(e){console.log(e,this.value),(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}handleClickDefault(){this._dropdownMenu.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d` ${this._hidden==="true"?m:d`
4064
+ `}`}};l([a({type:String}),c("design:type",Object)],ni.prototype,"heading",void 0),l([a({attribute:"id",type:String}),c("design:type",Object)],ni.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],ni.prototype,"_hidden",void 0),ni=l([u("rtg-dropdown-menu-group")],ni);var Ze=class extends _{constructor(...e){super(...e),this._id="",this._hidden="",this.selected=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=dropdown-menu-item]")}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _dropdownMenu(){let e=this.parentElement;for(;e&&!(e instanceof Mr);)e=e.parentElement;return e}handleMouseEvent(e){console.log(e,this.value),(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}handleClickDefault(){this._dropdownMenu.isOpen=!1}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d` ${this._hidden==="true"?m:d`
4065
4065
  <div
4066
4066
  rtgcmd-item
4067
4067
  part="dropdown-menu-item"
@@ -4077,7 +4077,7 @@ body {
4077
4077
  @click="${this.handleClickDefault}"
4078
4078
  class=${b(It.item,this.className)}
4079
4079
  ></div>
4080
- `}`}};l([a({type:String}),c("design:type",Object)],Xe.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Xe.prototype,"_hidden",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Xe.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Xe.prototype,"selected",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Xe.prototype,"disabled",void 0),Xe=l([p("rtg-dropdown-menu-item")],Xe);var Se=class extends _{constructor(...e){super(...e),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-radio-item-container]")}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4080
+ `}`}};l([a({type:String}),c("design:type",Object)],Ze.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Ze.prototype,"_hidden",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ze.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Ze.prototype,"selected",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Ze.prototype,"disabled",void 0),Ze=l([u("rtg-dropdown-menu-item")],Ze);var Se=class extends _{constructor(...e){super(...e),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}get _containerElement(){return this.querySelector("div[part=dropdown-menu-radio-item-container]")}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4081
4081
  <div
4082
4082
  rtgcmd-item
4083
4083
  part="dropdown-menu-radio"
@@ -4112,27 +4112,27 @@ body {
4112
4112
  </span>
4113
4113
  <div part="dropdown-menu-radio-item-container"></div>
4114
4114
  </div>
4115
- `}};l([a({type:String}),c("design:type",Object)],Se.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Se.prototype,"_hidden",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Se.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Se.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Se.prototype,"checked",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Se.prototype,"disabled",void 0),Se=l([p("rtg-dropdown-menu-radio-item")],Se);var qa=class extends _{get _containerElement(){return this.querySelector("div[part=dropdown-menu-seperator]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`<div
4115
+ `}};l([a({type:String}),c("design:type",Object)],Se.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Se.prototype,"_hidden",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Se.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Se.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Se.prototype,"checked",void 0),l([a({attribute:"data-disabled",type:Boolean}),c("design:type",Object)],Se.prototype,"disabled",void 0),Se=l([u("rtg-dropdown-menu-radio-item")],Se);var qa=class extends _{get _containerElement(){return this.querySelector("div[part=dropdown-menu-seperator]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`<div
4116
4116
  rtgcmd-separator
4117
4117
  part="dropdown-menu-seperator"
4118
4118
  role="separator"
4119
4119
  class=${b(It.separator,this.className)}
4120
- ></div>`}};qa=l([p("rtg-dropdown-menu-separator")],qa);var Va=class extends _{get _containerElement(){return this.querySelector("span[part=dropdown-menu-shortcut]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this.classList=b(It.shortcut),this}render(){return d`
4120
+ ></div>`}};qa=l([u("rtg-dropdown-menu-separator")],qa);var Va=class extends _{get _containerElement(){return this.querySelector("span[part=dropdown-menu-shortcut]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this.classList=b(It.shortcut),this}render(){return d`
4121
4121
  <span
4122
4122
  part="dropdown-menu-shortcut"
4123
4123
  class=${b(It.shortcut,this.className)}
4124
4124
  >
4125
4125
  </span>
4126
- `}};Va=l([p("rtg-dropdown-menu-shortcut")],Va);var Ha=class extends v{createRenderRoot(){return this}render(){return d``}};Ha=l([p("rtg-dropdown-menu-trigger")],Ha);var Bt,ar,Br=(ar=class extends _{constructor(...t){super(...t),this.isOpen=!1,this.handleClickOutside=r=>{var s,o;let i=r.target;!((s=this._containerElement)!=null&&s.contains(i))&&!((o=this._triggerElement)!=null&&o.contains(i))&&(this.isOpen=!1,Bt._openInstance===this&&(Bt._openInstance=null))}}get _triggerElement(){return this.querySelector("rtg-dropdown-menu-trigger")}get _containerElement(){return this.querySelector("div[part=dropdown-menu]")}get _content(){return this.querySelector("rtg-dropdown-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}toggleDropdown(t){t.stopPropagation();let r=this.isOpen;this.isOpen=!this.isOpen,this.isOpen?(Bt._openInstance&&Bt._openInstance!==this&&(Bt._openInstance.isOpen=!1),Bt._openInstance=this):r&&Bt._openInstance===this&&(Bt._openInstance=null)}disconnectedCallback(){Bt._openInstance===this&&(Bt._openInstance=null),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}updated(t){super.updated(t);let r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}firstUpdated(t){var r;this.moveLightDomChildrenInto(this._containerElement),(r=this._triggerElement)==null||r.addEventListener("click",i=>this.toggleDropdown(i))}_handleRadioSelected(t){this.isOpen=!1,this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==t.target&&(r.checked=!1)})}createRenderRoot(){return this}render(){return d`
4126
+ `}};Va=l([u("rtg-dropdown-menu-shortcut")],Va);var Ha=class extends v{createRenderRoot(){return this}render(){return d``}};Ha=l([u("rtg-dropdown-menu-trigger")],Ha);var Bt,lr,Mr=(lr=class extends _{constructor(...t){super(...t),this.isOpen=!1,this.handleClickOutside=r=>{var s,o;let i=r.target;!((s=this._containerElement)!=null&&s.contains(i))&&!((o=this._triggerElement)!=null&&o.contains(i))&&(this.isOpen=!1,Bt._openInstance===this&&(Bt._openInstance=null))}}get _triggerElement(){return this.querySelector("rtg-dropdown-menu-trigger")}get _containerElement(){return this.querySelector("div[part=dropdown-menu]")}get _content(){return this.querySelector("rtg-dropdown-menu-content")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}toggleDropdown(t){t.stopPropagation();let r=this.isOpen;this.isOpen=!this.isOpen,this.isOpen?(Bt._openInstance&&Bt._openInstance!==this&&(Bt._openInstance.isOpen=!1),Bt._openInstance=this):r&&Bt._openInstance===this&&(Bt._openInstance=null)}disconnectedCallback(){Bt._openInstance===this&&(Bt._openInstance=null),document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}updated(t){super.updated(t);let r=this._content;r&&(r.dataset.state=this.isOpen?"open":"close")}firstUpdated(t){var r;this.moveLightDomChildrenInto(this._containerElement),(r=this._triggerElement)==null||r.addEventListener("click",i=>this.toggleDropdown(i))}_handleRadioSelected(t){this.isOpen=!1,this.querySelectorAll("rtg-dropdown-menu-radio-item").forEach(r=>{r!==t.target&&(r.checked=!1)})}createRenderRoot(){return this}render(){return d`
4127
4127
  <div
4128
4128
  part="dropdown-menu"
4129
4129
  class=${b(It.root,this.className)}
4130
4130
  ></div>
4131
- `}},Bt=ar,ar._openInstance=null,ar);l([x(),c("design:type",Object)],Br.prototype,"isOpen",void 0),Br=Bt=l([p("rtg-dropdown-menu")],Br);var fo=class extends v{createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="empty"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty" ?data-border="${this.border}"></div>`}};l([a({type:Boolean}),c("design:type",Boolean)],fo.prototype,"border",void 0),fo=l([p("rtg-empty")],fo);var Ga=class extends v{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="empty-content"]')}firstUpdated(){let e=this._contentSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty-content"></div>`}};Ga=l([p("rtg-empty-content")],Ga);var Wa=class extends v{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="empty-description"]')}firstUpdated(){let e=this._descriptionSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty-description"></div>`}};Wa=l([p("rtg-empty-description")],Wa);var Ka=class extends v{createRenderRoot(){return this}get _headerSlot(){return this.querySelector('[data-slot="empty-header"]')}firstUpdated(){let e=this._headerSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty-header"></div>`}};Ka=l([p("rtg-empty-header")],Ka);var vo=class extends v{constructor(...e){super(...e),this.variant="default"}createRenderRoot(){return this}get _mediaSlot(){return this.querySelector('[data-slot="empty-media"]')}firstUpdated(){let e=this._mediaSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4131
+ `}},Bt=lr,lr._openInstance=null,lr);l([x(),c("design:type",Object)],Mr.prototype,"isOpen",void 0),Mr=Bt=l([u("rtg-dropdown-menu")],Mr);var fo=class extends v{createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="empty"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty" ?data-border="${this.border}"></div>`}};l([a({type:Boolean}),c("design:type",Boolean)],fo.prototype,"border",void 0),fo=l([u("rtg-empty")],fo);var Ga=class extends v{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="empty-content"]')}firstUpdated(){let e=this._contentSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty-content"></div>`}};Ga=l([u("rtg-empty-content")],Ga);var Wa=class extends v{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="empty-description"]')}firstUpdated(){let e=this._descriptionSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty-description"></div>`}};Wa=l([u("rtg-empty-description")],Wa);var Ka=class extends v{createRenderRoot(){return this}get _headerSlot(){return this.querySelector('[data-slot="empty-header"]')}firstUpdated(){let e=this._headerSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty-header"></div>`}};Ka=l([u("rtg-empty-header")],Ka);var vo=class extends v{constructor(...e){super(...e),this.variant="default"}createRenderRoot(){return this}get _mediaSlot(){return this.querySelector('[data-slot="empty-media"]')}firstUpdated(){let e=this._mediaSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4132
4132
  <div data-slot="empty-media" data-variant="${this.variant}"></div>
4133
- `}};l([a({type:String}),c("design:type",Object)],vo.prototype,"variant",void 0),vo=l([p("rtg-empty-media")],vo);var Ya=class extends v{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="empty-title"]')}firstUpdated(){let e=this._titleSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty-title"></div>`}};Ya=l([p("rtg-empty-title")],Ya);var Xa=class extends v{createRenderRoot(){return this}get _setSlot(){return this.querySelector('[data-slot="field-set"]')}firstUpdated(){let e=this._setSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<fieldset data-slot="field-set"></fieldset>`}};Xa=l([p("rtg-field-set")],Xa);var yo=class extends v{constructor(...e){super(...e),this.variant="legend"}createRenderRoot(){return this}get _legendSlot(){return this.querySelector('[data-slot="field-legend"]')}firstUpdated(){let e=this._legendSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4133
+ `}};l([a({type:String}),c("design:type",Object)],vo.prototype,"variant",void 0),vo=l([u("rtg-empty-media")],vo);var Ya=class extends v{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="empty-title"]')}firstUpdated(){let e=this._titleSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="empty-title"></div>`}};Ya=l([u("rtg-empty-title")],Ya);var Xa=class extends v{createRenderRoot(){return this}get _setSlot(){return this.querySelector('[data-slot="field-set"]')}firstUpdated(){let e=this._setSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<fieldset data-slot="field-set"></fieldset>`}};Xa=l([u("rtg-field-set")],Xa);var yo=class extends v{constructor(...e){super(...e),this.variant="legend"}createRenderRoot(){return this}get _legendSlot(){return this.querySelector('[data-slot="field-legend"]')}firstUpdated(){let e=this._legendSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4134
4134
  <legend data-slot="field-legend" data-variant=${this.variant}></legend>
4135
- `}};l([a({type:String}),c("design:type",Object)],yo.prototype,"variant",void 0),yo=l([p("rtg-field-legend")],yo);var wo=class extends v{constructor(...e){super(...e),this.type="field"}createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="field-group"]')}firstUpdated(){let e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="field-group" data-type=${this.type}></div>`}};l([a({type:String}),c("design:type",Object)],wo.prototype,"type",void 0),wo=l([p("rtg-field-group")],wo);var oi=class extends v{constructor(...e){super(...e),this.orientation="vertical"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="field"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4135
+ `}};l([a({type:String}),c("design:type",Object)],yo.prototype,"variant",void 0),yo=l([u("rtg-field-legend")],yo);var wo=class extends v{constructor(...e){super(...e),this.type="field"}createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="field-group"]')}firstUpdated(){let e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="field-group" data-type=${this.type}></div>`}};l([a({type:String}),c("design:type",Object)],wo.prototype,"type",void 0),wo=l([u("rtg-field-group")],wo);var ai=class extends v{constructor(...e){super(...e),this.orientation="vertical"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="field"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4136
4136
  <div
4137
4137
  data-slot="field"
4138
4138
  data-orientation=${this.orientation}
@@ -4140,62 +4140,62 @@ body {
4140
4140
  data-invalid=${this.invalid?"true":m}
4141
4141
  role="group"
4142
4142
  ></div>
4143
- `}};l([a({type:String}),c("design:type",Object)],oi.prototype,"orientation",void 0),l([a({type:Boolean}),c("design:type",Boolean)],oi.prototype,"disabled",void 0),l([a({type:Boolean}),c("design:type",Boolean)],oi.prototype,"invalid",void 0),oi=l([p("rtg-field")],oi);var Za=class extends v{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="field-content"]')}firstUpdated(){let e=this._contentSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="field-content"></div>`}};Za=l([p("rtg-field-content")],Za);var _o=class extends v{get _rootSlot(){return this.querySelector('[data-slot="label"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<label data-slot="label" for=${this.for??m}></label>`}};l([a({type:String}),c("design:type",String)],_o.prototype,"for",void 0),_o=l([p("rtg-label")],_o);var xo=class extends v{createRenderRoot(){return this}get _labelSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){let e=this._labelSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4143
+ `}};l([a({type:String}),c("design:type",Object)],ai.prototype,"orientation",void 0),l([a({type:Boolean}),c("design:type",Boolean)],ai.prototype,"disabled",void 0),l([a({type:Boolean}),c("design:type",Boolean)],ai.prototype,"invalid",void 0),ai=l([u("rtg-field")],ai);var Za=class extends v{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="field-content"]')}firstUpdated(){let e=this._contentSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="field-content"></div>`}};Za=l([u("rtg-field-content")],Za);var _o=class extends v{get _rootSlot(){return this.querySelector('[data-slot="label"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))})}createRenderRoot(){return this}render(){return d`<label data-slot="label" for=${this.for??m}></label>`}};l([a({type:String}),c("design:type",String)],_o.prototype,"for",void 0),_o=l([u("rtg-label")],_o);var xo=class extends v{createRenderRoot(){return this}get _labelSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){let e=this._labelSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4144
4144
  <rtg-label data-slot="field-label" for=${this.for??m}></rtg-label>
4145
- `}};l([a({type:String}),c("design:type",String)],xo.prototype,"for",void 0),xo=l([p("rtg-field-label")],xo);var Ja=class extends v{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){let e=this._titleSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="field-label"></div>`}};Ja=l([p("rtg-field-title")],Ja);var Qa=class extends v{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="field-description"]')}firstUpdated(){let e=this._descriptionSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="field-description"></p>`}};Qa=l([p("rtg-field-description")],Qa);var tl=class extends v{constructor(...e){super(...e),this._observer=null}createRenderRoot(){return this}get _separatorSlot(){return this.querySelector('[data-slot="field-separator"]')}get _contentSlot(){return this.querySelector('[data-slot="field-separator-content"]')}_getExternalNodes(){let e=this._separatorSlot;return Array.from(this.childNodes).filter(t=>{var r;return!(t===e||t.nodeType===Node.COMMENT_NODE||t.nodeType===Node.TEXT_NODE&&!((r=t.textContent)!=null&&r.trim()))})}_processChildren(){let e=this._separatorSlot;if(!e)return;let t=this._getExternalNodes();if(t.length>0){let r=this._contentSlot;r||(r=document.createElement("span"),r.setAttribute("data-slot","field-separator-content"),e.appendChild(r)),t.forEach(i=>r.appendChild(i)),e.setAttribute("data-content","true")}else{let r=this._contentSlot;r&&e.removeChild(r),e.setAttribute("data-content","false")}}firstUpdated(){this._processChildren(),this._observer=new MutationObserver(()=>{this._observer.disconnect(),this._processChildren(),this._observer.observe(this,{childList:!0})}),this._observer.observe(this,{childList:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._observer)==null||e.disconnect(),this._observer=null}render(){return d`
4145
+ `}};l([a({type:String}),c("design:type",String)],xo.prototype,"for",void 0),xo=l([u("rtg-field-label")],xo);var Ja=class extends v{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="field-label"]')}firstUpdated(){let e=this._titleSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="field-label"></div>`}};Ja=l([u("rtg-field-title")],Ja);var Qa=class extends v{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="field-description"]')}firstUpdated(){let e=this._descriptionSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="field-description"></p>`}};Qa=l([u("rtg-field-description")],Qa);var tl=class extends v{constructor(...e){super(...e),this._observer=null}createRenderRoot(){return this}get _separatorSlot(){return this.querySelector('[data-slot="field-separator"]')}get _contentSlot(){return this.querySelector('[data-slot="field-separator-content"]')}_getExternalNodes(){let e=this._separatorSlot;return Array.from(this.childNodes).filter(t=>{var r;return!(t===e||t.nodeType===Node.COMMENT_NODE||t.nodeType===Node.TEXT_NODE&&!((r=t.textContent)!=null&&r.trim()))})}_processChildren(){let e=this._separatorSlot;if(!e)return;let t=this._getExternalNodes();if(t.length>0){let r=this._contentSlot;r||(r=document.createElement("span"),r.setAttribute("data-slot","field-separator-content"),e.appendChild(r)),t.forEach(i=>r.appendChild(i)),e.setAttribute("data-content","true")}else{let r=this._contentSlot;r&&e.removeChild(r),e.setAttribute("data-content","false")}}firstUpdated(){this._processChildren(),this._observer=new MutationObserver(()=>{this._observer.disconnect(),this._processChildren(),this._observer.observe(this,{childList:!0})}),this._observer.observe(this,{childList:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._observer)==null||e.disconnect(),this._observer=null}render(){return d`
4146
4146
  <div data-slot="field-separator">
4147
4147
  <rtg-separator></rtg-separator>
4148
4148
  <span data-slot="field-separator-content"></span>
4149
4149
  </div>
4150
- `}};tl=l([p("rtg-field-separator")],tl);var So=class extends v{constructor(...e){super(...e),this._hasUserContent=!1}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._hasUserContent=this.innerHTML.trim().length>0}_renderContent(){var t,r;if(!((t=this.errors)!=null&&t.length))return null;let e=[...new Map(this.errors.map(i=>[i==null?void 0:i.message,i])).values()];return e.length===1?(r=e[0])!=null&&r.message?e[0].message:null:d`
4150
+ `}};tl=l([u("rtg-field-separator")],tl);var So=class extends v{constructor(...e){super(...e),this._hasUserContent=!1}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._hasUserContent=this.innerHTML.trim().length>0}_renderContent(){var t,r;if(!((t=this.errors)!=null&&t.length))return null;let e=[...new Map(this.errors.map(i=>[i==null?void 0:i.message,i])).values()];return e.length===1?(r=e[0])!=null&&r.message?e[0].message:null:d`
4151
4151
  <ul data-slot="field-error-content">
4152
4152
  ${e.map((i,s)=>i!=null&&i.message?d`<li key=${s}>${i.message}</li>`:m)}
4153
4153
  </ul>
4154
- `}render(){let e=this._hasUserContent,t=this._renderContent();return e?d` <div data-slot="field-error" role="alert">${Array.from(this.childNodes)}</div>`:t?d` <div data-slot="field-error" role="alert">${t}</div>`:(this.style.display="none",m)}};l([a({type:Array}),c("design:type",Array)],So.prototype,"errors",void 0),So=l([p("rtg-field-error")],So);var ze=class{constructor(){this.values={},this.errors={},this.validators={},this.subscribers=new Set}registerField({name:e,defaultValue:t="",validator:r}){e in this.values||(this.values[e]=t),r&&(this.validators[e]=r)}unregisterField(e){delete this.values[e],delete this.errors[e],delete this.validators[e]}setValue(e,t){e in this.validators||console.warn(`[FormController] setValue called before validator was registered for "${e}"`),this.values[e]=t,this.validateField(e),this.notify()}getValue(e){return this.values[e]}getError(e){return this.errors[e]??null}validateField(e){let t=this.validators[e],r=this.values[e],i=t?t(r):null;return this.errors[e]=i,this.notify(),!i}validateAll(){let e=!0;return Object.keys(this.validators).forEach(t=>{this.validateField(t)||(e=!1)}),e}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}notify(){this.subscribers.forEach(e=>e())}getValues(){return{...this.values}}getErrors(){return{...this.errors}}},Ei="rtg-form-context",$o=class extends _{constructor(...e){super(...e),this.form=new ze,this.handleSubmit=t=>{if(t.preventDefault(),this.form.validateAll()){let r=this.form.getValues();alert(JSON.stringify(r,null,2))}}}createRenderRoot(){return this}async firstUpdated(e){await this.updateComplete,Array.from(this.childNodes).forEach(t=>{t!==this.formElement&&this.formElement.appendChild(t)}),this.querySelectorAll("rtg-form-field").forEach(t=>{var s;let r=t.getAttribute("name"),i=(s=t.validators)==null?void 0:s[0];this.form.registerField({name:r,validator:i})})}render(){return d`
4154
+ `}render(){let e=this._hasUserContent,t=this._renderContent();return e?d` <div data-slot="field-error" role="alert">${Array.from(this.childNodes)}</div>`:t?d` <div data-slot="field-error" role="alert">${t}</div>`:(this.style.display="none",m)}};l([a({type:Array}),c("design:type",Array)],So.prototype,"errors",void 0),So=l([u("rtg-field-error")],So);var ze=class{constructor(){this.values={},this.errors={},this.validators={},this.subscribers=new Set}registerField({name:e,defaultValue:t="",validator:r}){e in this.values||(this.values[e]=t),r&&(this.validators[e]=r)}unregisterField(e){delete this.values[e],delete this.errors[e],delete this.validators[e]}setValue(e,t){e in this.validators||console.warn(`[FormController] setValue called before validator was registered for "${e}"`),this.values[e]=t,this.validateField(e),this.notify()}getValue(e){return this.values[e]}getError(e){return this.errors[e]??null}validateField(e){let t=this.validators[e],r=this.values[e],i=t?t(r):null;return this.errors[e]=i,this.notify(),!i}validateAll(){let e=!0;return Object.keys(this.validators).forEach(t=>{this.validateField(t)||(e=!1)}),e}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}notify(){this.subscribers.forEach(e=>e())}getValues(){return{...this.values}}getErrors(){return{...this.errors}}},Ri="rtg-form-context",$o=class extends _{constructor(...e){super(...e),this.form=new ze,this.handleSubmit=t=>{if(t.preventDefault(),this.form.validateAll()){let r=this.form.getValues();alert(JSON.stringify(r,null,2))}}}createRenderRoot(){return this}async firstUpdated(e){await this.updateComplete,Array.from(this.childNodes).forEach(t=>{t!==this.formElement&&this.formElement.appendChild(t)}),this.querySelectorAll("rtg-form-field").forEach(t=>{var s;let r=t.getAttribute("name"),i=(s=t.validators)==null?void 0:s[0];this.form.registerField({name:r,validator:i})})}render(){return d`
4155
4155
  <form
4156
4156
  part="form-controller"
4157
4157
  class="${b("",this.className)}"
4158
4158
  @submit=${this.handleSubmit}
4159
4159
  ${Zc(e=>this.formElement=e)}
4160
4160
  ></form>
4161
- `}};l([x(),Ue({context:Ei}),c("design:type",Object)],$o.prototype,"form",void 0),$o=l([p("rtg-form-controller")],$o);var Bd="rtg-form-item-context",tu="rtg-space-form-space-y",eu="rtg-text-form-description-font rtg-text-form-description-color-text rtg-mt-form-description-space-mt",ru="rtg-space-y-form-field-space-y",iu="rtg-space-y-form-item-space-y",su="rtg-text-form-label-font rtg-mb-form-label-space-mb rtg-font-form-label-font-weight rtg-peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-form-label-opacity-peer-disabled",ou="rtg-text-form-message-font-size rtg-text-form-message-color-text",Co=class extends _{createRenderRoot(){return this}get _desc(){return this.querySelector("p[part=form-description]")}firstUpdated(){this.moveLightDomChildrenInto(this._desc)}render(){return d`
4161
+ `}};l([x(),je({context:Ri}),c("design:type",Object)],$o.prototype,"form",void 0),$o=l([u("rtg-form-controller")],$o);var Bd="rtg-form-item-context",tp="rtg-space-form-space-y",ep="rtg-text-form-description-font rtg-text-form-description-color-text rtg-mt-form-description-space-mt",rp="rtg-space-y-form-field-space-y",ip="rtg-space-y-form-item-space-y",sp="rtg-text-form-label-font rtg-mb-form-label-space-mb rtg-font-form-label-font-weight rtg-peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-form-label-opacity-peer-disabled",op="rtg-text-form-message-font-size rtg-text-form-message-color-text",Co=class extends _{createRenderRoot(){return this}get _desc(){return this.querySelector("p[part=form-description]")}firstUpdated(){this.moveLightDomChildrenInto(this._desc)}render(){return d`
4162
4162
  <p
4163
4163
  id="${this.itemContext.id}-description"
4164
4164
  part="form-description"
4165
- class="${b(eu,this.className)}"
4165
+ class="${b(ep,this.className)}"
4166
4166
  ></p>
4167
- `}};l([Lt({context:Bd}),c("design:type",Object)],Co.prototype,"itemContext",void 0),Co=l([p("rtg-form-description")],Co);var nu="rtg-form-field-context",el,ye=class extends _{constructor(...e){super(...e),this.name="",this.validators=[],this.defaultValue="",this.fieldName="",this.registered=!1}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-field]")}updated(){var t;if(this.registered||!this.form||!this.name||!Array.isArray(this.validators)||this.validators.length===0)return;this.form.registerField({name:this.name,validator:r=>{for(let i of this.validators){let s=i(r);if(s)return s}return null},defaultValue:this.defaultValue}),this.registered=!0,this.moveLightDomChildrenInto(this._container);let e=(t=this._container)==null?void 0:t.querySelector("input, textarea, select");e&&(this.defaultValue!==void 0&&(e.value=this.defaultValue),e.addEventListener("input",()=>{this.form.setValue(this.name,e.value)}))}disconnectedCallback(){var e;super.disconnectedCallback(),this.isConnected||((e=this.form)==null||e.unregisterField(this.name))}render(){return d`<div
4167
+ `}};l([Lt({context:Bd}),c("design:type",Object)],Co.prototype,"itemContext",void 0),Co=l([u("rtg-form-description")],Co);var np="rtg-form-field-context",el,ye=class extends _{constructor(...e){super(...e),this.name="",this.validators=[],this.defaultValue="",this.fieldName="",this.registered=!1}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-field]")}updated(){var t;if(this.registered||!this.form||!this.name||!Array.isArray(this.validators)||this.validators.length===0)return;this.form.registerField({name:this.name,validator:r=>{for(let i of this.validators){let s=i(r);if(s)return s}return null},defaultValue:this.defaultValue}),this.registered=!0,this.moveLightDomChildrenInto(this._container);let e=(t=this._container)==null?void 0:t.querySelector("input, textarea, select");e&&(this.defaultValue!==void 0&&(e.value=this.defaultValue),e.addEventListener("input",()=>{this.form.setValue(this.name,e.value)}))}disconnectedCallback(){var e;super.disconnectedCallback(),this.isConnected||((e=this.form)==null||e.unregisterField(this.name))}render(){return d`<div
4168
4168
  part="form-field"
4169
- class="${b(ru,this.className)}"
4170
- ></div>`}};l([Lt({context:Ei}),c("design:type",typeof(el=ze!==void 0&&ze)=="function"?el:Object)],ye.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],ye.prototype,"name",void 0),l([a({type:Array}),c("design:type",Array)],ye.prototype,"validators",void 0),l([a({type:String}),c("design:type",Object)],ye.prototype,"defaultValue",void 0),l([Ue({context:nu}),c("design:type",Object)],ye.prototype,"fieldName",void 0),ye=l([p("rtg-form-field")],ye);var Eo=class extends _{constructor(...e){super(...e),this._generatedId=crypto.randomUUID(),this.itemContext={id:this._generatedId}}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-item]")}firstUpdated(){this.moveLightDomChildrenInto(this._container)}render(){return d`<div
4169
+ class="${b(rp,this.className)}"
4170
+ ></div>`}};l([Lt({context:Ri}),c("design:type",typeof(el=ze!==void 0&&ze)=="function"?el:Object)],ye.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],ye.prototype,"name",void 0),l([a({type:Array}),c("design:type",Array)],ye.prototype,"validators",void 0),l([a({type:String}),c("design:type",Object)],ye.prototype,"defaultValue",void 0),l([je({context:np}),c("design:type",Object)],ye.prototype,"fieldName",void 0),ye=l([u("rtg-form-field")],ye);var Eo=class extends _{constructor(...e){super(...e),this._generatedId=crypto.randomUUID(),this.itemContext={id:this._generatedId}}createRenderRoot(){return this}get _container(){return this.querySelector("div[part=form-item]")}firstUpdated(){this.moveLightDomChildrenInto(this._container)}render(){return d`<div
4171
4171
  part="form-item"
4172
- class="${b(iu,this.className)}"
4173
- ></div>`}};l([Ue({context:Bd}),c("design:type",Object)],Eo.prototype,"itemContext",void 0),Eo=l([p("rtg-form-item")],Eo);var rl,Di=class extends _{constructor(...e){super(...e),this.hasError=!1,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof ye);)e=e.parentElement;return e}createRenderRoot(){return this}get _label(){return this.querySelector("label[part=form-label]")}firstUpdated(){this.moveLightDomChildrenInto(this._label)}connectedCallback(){super.connectedCallback();let e=this._field.name;this.hasError=!!this.form.getError(e),this.unsubscribe=this.form.subscribe(()=>{this.hasError=!!this.form.getError(e),this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return d`
4172
+ class="${b(ip,this.className)}"
4173
+ ></div>`}};l([je({context:Bd}),c("design:type",Object)],Eo.prototype,"itemContext",void 0),Eo=l([u("rtg-form-item")],Eo);var rl,Bi=class extends _{constructor(...e){super(...e),this.hasError=!1,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof ye);)e=e.parentElement;return e}createRenderRoot(){return this}get _label(){return this.querySelector("label[part=form-label]")}firstUpdated(){this.moveLightDomChildrenInto(this._label)}connectedCallback(){super.connectedCallback();let e=this._field.name;this.hasError=!!this.form.getError(e),this.unsubscribe=this.form.subscribe(()=>{this.hasError=!!this.form.getError(e),this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return d`
4174
4174
  <label
4175
4175
  part="form-label"
4176
4176
  for="${this._field.name}"
4177
- class="${b(su,this.hasError&&"rtg-text-form-label-color-text-error",this.className)}"
4177
+ class="${b(sp,this.hasError&&"rtg-text-form-label-color-text-error",this.className)}"
4178
4178
  ></label>
4179
- `}};l([Lt({context:Ei}),c("design:type",typeof(rl=ze!==void 0&&ze)=="function"?rl:Object)],Di.prototype,"form",void 0),l([x(),c("design:type",Object)],Di.prototype,"hasError",void 0),Di=l([p("rtg-form-label")],Di);var il,Bi=class extends v{constructor(...e){super(...e),this.error=null,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof ye);)e=e.parentElement;return e}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.error=this.form.getError(this._field.name),this.unsubscribe=this.form.subscribe(()=>{this.error=this.form.getErrors()[this._field.name],this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return this.error?d`<p
4179
+ `}};l([Lt({context:Ri}),c("design:type",typeof(rl=ze!==void 0&&ze)=="function"?rl:Object)],Bi.prototype,"form",void 0),l([x(),c("design:type",Object)],Bi.prototype,"hasError",void 0),Bi=l([u("rtg-form-label")],Bi);var il,Mi=class extends v{constructor(...e){super(...e),this.error=null,this.unsubscribe=null}get _field(){let e=this.parentElement;for(;e&&!(e instanceof ye);)e=e.parentElement;return e}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.error=this.form.getError(this._field.name),this.unsubscribe=this.form.subscribe(()=>{this.error=this.form.getErrors()[this._field.name],this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe&&this.unsubscribe()}render(){return this.error?d`<p
4180
4180
  id="${this._field.name}-message"
4181
- class="${b(ou,this.className)}"
4181
+ class="${b(op,this.className)}"
4182
4182
  >
4183
4183
  ${this.error}
4184
- </p>`:null}};l([Lt({context:Ei}),c("design:type",typeof(il=ze!==void 0&&ze)=="function"?il:Object)],Bi.prototype,"form",void 0),l([x(),c("design:type",Object)],Bi.prototype,"error",void 0),Bi=l([p("rtg-form-message")],Bi);var Mi=class extends _{constructor(...e){super(...e),this.form=new ze,this.onSubmit=()=>{},this.handleSubmit=t=>{t.preventDefault(),this.form.validateAll()&&(alert("form submitted successfully"),this.onSubmit(this.form.getValues()))}}createRenderRoot(){return this}get _formElement(){return this.querySelector("form[part=form-root]")}firstUpdated(){this.moveLightDomChildrenInto(this._formElement)}render(){return d`
4184
+ </p>`:null}};l([Lt({context:Ri}),c("design:type",typeof(il=ze!==void 0&&ze)=="function"?il:Object)],Mi.prototype,"form",void 0),l([x(),c("design:type",Object)],Mi.prototype,"error",void 0),Mi=l([u("rtg-form-message")],Mi);var qi=class extends _{constructor(...e){super(...e),this.form=new ze,this.onSubmit=()=>{},this.handleSubmit=t=>{t.preventDefault(),this.form.validateAll()&&(alert("form submitted successfully"),this.onSubmit(this.form.getValues()))}}createRenderRoot(){return this}get _formElement(){return this.querySelector("form[part=form-root]")}firstUpdated(){this.moveLightDomChildrenInto(this._formElement)}render(){return d`
4185
4185
  <form
4186
4186
  part="form-root"
4187
4187
  id="rtg-form"
4188
4188
  @submit=${this.handleSubmit}
4189
- class="${b(tu,this.className)}"
4189
+ class="${b(tp,this.className)}"
4190
4190
  ></form>
4191
- `}};l([Ue({context:Ei}),c("design:type",Object)],Mi.prototype,"form",void 0),l([a({type:Function}),c("design:type",Function)],Mi.prototype,"onSubmit",void 0),Mi=l([p("rtg-form")],Mi);var gn={root:[""],trigger:[""],content:["rtg-fixed rtg-z-50","rtg-p-hover-card-content-space-p","rtg-w-hover-card-content-space-w","rtg-text-hover-card-content-color-text","rtg-bg-hover-card-content-color-bg","rtg-rounded-hover-card-content-radius rtg-border-hover-card-content-width-border rtg-border-hover-card-content-color-border rtg-outline-hidden","rtg-shadow-hover-card-content-shadow","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95","data-[side=bottom]:rtg-slide-in-from-top-2 data-[side=left]:rtg-slide-in-from-right-2 data-[side=right]:rtg-slide-in-from-left-2 data-[side=top]:rtg-slide-in-from-bottom-2"]},qi=class extends _{constructor(...e){super(...e),this.state="closed",this.isOpen=!1,this.onStateChange=t=>{this.state=t.detail.isOpen?"open":"closed"},this.handlePointerLeaveCheck=t=>{this.contains(t.relatedTarget)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("hover-card-state-change",this.onStateChange),this.addEventListener("mouseenter",this.handlePointerLeaveCheck),this.addEventListener("mouseleave",this.handlePointerLeaveCheck)}disconnectedCallback(){document.removeEventListener("hover-card-state-change",this.onStateChange),this.removeEventListener("mouseenter",this.handlePointerLeaveCheck),this.removeEventListener("mouseleave",this.handlePointerLeaveCheck),super.disconnectedCallback()}updated(e){super.updated(e),this.isOpen=this.state==="open"}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.renderRoot.querySelector("#rtg-hover-card-content"))}render(){return d`
4191
+ `}};l([je({context:Ri}),c("design:type",Object)],qi.prototype,"form",void 0),l([a({type:Function}),c("design:type",Function)],qi.prototype,"onSubmit",void 0),qi=l([u("rtg-form")],qi);var gn={root:[""],trigger:[""],content:["rtg-fixed rtg-z-50","rtg-p-hover-card-content-space-p","rtg-w-hover-card-content-space-w","rtg-text-hover-card-content-color-text","rtg-bg-hover-card-content-color-bg","rtg-rounded-hover-card-content-radius rtg-border-hover-card-content-width-border rtg-border-hover-card-content-color-border rtg-outline-hidden","rtg-shadow-hover-card-content-shadow","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95","data-[side=bottom]:rtg-slide-in-from-top-2 data-[side=left]:rtg-slide-in-from-right-2 data-[side=right]:rtg-slide-in-from-left-2 data-[side=top]:rtg-slide-in-from-bottom-2"]},Vi=class extends _{constructor(...e){super(...e),this.state="closed",this.isOpen=!1,this.onStateChange=t=>{this.state=t.detail.isOpen?"open":"closed"},this.handlePointerLeaveCheck=t=>{this.contains(t.relatedTarget)||(this.isOpen=!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("hover-card-state-change",this.onStateChange),this.addEventListener("mouseenter",this.handlePointerLeaveCheck),this.addEventListener("mouseleave",this.handlePointerLeaveCheck)}disconnectedCallback(){document.removeEventListener("hover-card-state-change",this.onStateChange),this.removeEventListener("mouseenter",this.handlePointerLeaveCheck),this.removeEventListener("mouseleave",this.handlePointerLeaveCheck),super.disconnectedCallback()}updated(e){super.updated(e),this.isOpen=this.state==="open"}createRenderRoot(){return this}getAttributesToExclude(){return[]}firstUpdated(e){this.moveLightDomChildrenInto(this.renderRoot.querySelector("#rtg-hover-card-content"))}render(){return d`
4192
4192
  <div
4193
4193
  id="rtg-hover-card-content"
4194
4194
  part="hover-card-content"
4195
4195
  class=${b(gn.content,this.className)}
4196
4196
  style="display: ${this.isOpen?"block":"none"};"
4197
4197
  ></div>
4198
- `}};l([a({attribute:"data-state",type:String}),c("design:type",String)],qi.prototype,"state",void 0),l([x(),c("design:type",Object)],qi.prototype,"isOpen",void 0),qi=l([p("rtg-hover-card-content")],qi);var sl=class extends _{getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}render(){return d`
4198
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",String)],Vi.prototype,"state",void 0),l([x(),c("design:type",Object)],Vi.prototype,"isOpen",void 0),Vi=l([u("rtg-hover-card-content")],Vi);var sl=class extends _{getAttributesToExclude(){return["value","defaultValue"]}createRenderRoot(){return this}firstUpdated(e){this.removeDuplicateContent()}render(){return d`
4199
4199
  <div
4200
4200
  id="rtg-hover-card-trigger"
4201
4201
  part="rtg-hover-card-trigger"
@@ -4203,20 +4203,20 @@ body {
4203
4203
  >
4204
4204
  ${Array.from(this.children)}
4205
4205
  </div>
4206
- `}};sl=l([p("rtg-hover-card-trigger")],sl);var ko=class extends _{constructor(...e){super(...e),this.isOpen=!1,this.hoverTimeout=null,this.openCard=()=>{var t;this.hoverTimeout&&(this.hoverTimeout=(clearTimeout(this.hoverTimeout),null)),this.isOpen||(this.isOpen=!0,(t=this._content)==null||t.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!0}})))},this.closeCard=()=>{this.hoverTimeout=setTimeout(()=>{var t;this.isOpen=!1,(t=this._content)==null||t.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!1}}))},150)}}get _containerElement(){return this.renderRoot.querySelector("#rtg-hover-card-container")}get _content(){return this.renderRoot.querySelector("rtg-hover-card-content")}get _trigger(){return this.renderRoot.querySelector("rtg-hover-card-trigger")}getAttributesToExclude(){return[]}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}connectedCallback(){super.connectedCallback()}disconnectedCallback(){let e=this._trigger,t=this._content;e==null||e.removeEventListener("mouseenter",this.openCard),e==null||e.removeEventListener("mouseleave",this.closeCard),t==null||t.removeEventListener("mouseenter",this.openCard),t==null||t.removeEventListener("mouseleave",this.closeCard),this.hoverTimeout&&clearTimeout(this.hoverTimeout),super.disconnectedCallback()}createRenderRoot(){return this}firstUpdated(e){let t=this._containerElement;this.moveLightDomChildrenInto(t);let r=this._trigger,i=this._content;r==null||r.addEventListener("mouseenter",this.openCard),r==null||r.addEventListener("mouseleave",this.closeCard),i==null||i.addEventListener("mouseenter",this.openCard),i==null||i.addEventListener("mouseleave",this.closeCard)}render(){return d`
4206
+ `}};sl=l([u("rtg-hover-card-trigger")],sl);var ko=class extends _{constructor(...e){super(...e),this.isOpen=!1,this.hoverTimeout=null,this.openCard=()=>{var t;this.hoverTimeout&&(this.hoverTimeout=(clearTimeout(this.hoverTimeout),null)),this.isOpen||(this.isOpen=!0,(t=this._content)==null||t.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!0}})))},this.closeCard=()=>{this.hoverTimeout=setTimeout(()=>{var t;this.isOpen=!1,(t=this._content)==null||t.dispatchEvent(new CustomEvent("hover-card-state-change",{detail:{isOpen:!1}}))},150)}}get _containerElement(){return this.renderRoot.querySelector("#rtg-hover-card-container")}get _content(){return this.renderRoot.querySelector("rtg-hover-card-content")}get _trigger(){return this.renderRoot.querySelector("rtg-hover-card-trigger")}getAttributesToExclude(){return[]}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}connectedCallback(){super.connectedCallback()}disconnectedCallback(){let e=this._trigger,t=this._content;e==null||e.removeEventListener("mouseenter",this.openCard),e==null||e.removeEventListener("mouseleave",this.closeCard),t==null||t.removeEventListener("mouseenter",this.openCard),t==null||t.removeEventListener("mouseleave",this.closeCard),this.hoverTimeout&&clearTimeout(this.hoverTimeout),super.disconnectedCallback()}createRenderRoot(){return this}firstUpdated(e){let t=this._containerElement;this.moveLightDomChildrenInto(t);let r=this._trigger,i=this._content;r==null||r.addEventListener("mouseenter",this.openCard),r==null||r.addEventListener("mouseleave",this.closeCard),i==null||i.addEventListener("mouseenter",this.openCard),i==null||i.addEventListener("mouseleave",this.closeCard)}render(){return d`
4207
4207
  <div
4208
4208
  id="rtg-hover-card-container"
4209
4209
  part="hover-card"
4210
4210
  class=${b(gn.root,this.className)}
4211
4211
  ></div>
4212
- `}};l([x(),c("design:type",Object)],ko.prototype,"isOpen",void 0),ko=l([p("rtg-hover-card")],ko);var ol=class extends v{createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="input-group"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="input-group" role="group"></div>`}};ol=l([p("rtg-input-group")],ol);var Vi=class extends v{constructor(...e){super(...e),this.align="inline-start"}createRenderRoot(){return this}get _addonSlot(){return this.querySelector('[data-slot="input-group-addon"]')}firstUpdated(){let e=this._addonSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4212
+ `}};l([x(),c("design:type",Object)],ko.prototype,"isOpen",void 0),ko=l([u("rtg-hover-card")],ko);var ol=class extends v{createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="input-group"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="input-group" role="group"></div>`}};ol=l([u("rtg-input-group")],ol);var Hi=class extends v{constructor(...e){super(...e),this.align="inline-start"}createRenderRoot(){return this}get _addonSlot(){return this.querySelector('[data-slot="input-group-addon"]')}firstUpdated(){let e=this._addonSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4213
4213
  <div
4214
4214
  data-slot="input-group-addon"
4215
4215
  data-align="${this.align}"
4216
4216
  ?data-border="${this.border}"
4217
4217
  role="group"
4218
4218
  ></div>
4219
- `}};l([a({type:String}),c("design:type",Object)],Vi.prototype,"align",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Vi.prototype,"border",void 0),Vi=l([p("rtg-input-group-addon")],Vi);var se=class extends v{constructor(...e){super(...e),this.variant="ghost",this.size="xs",this.type="button"}createRenderRoot(){return this}get _buttonSlot(){return this.querySelector('[data-slot="input-group-button"]')}firstUpdated(){let e=this._buttonSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4219
+ `}};l([a({type:String}),c("design:type",Object)],Hi.prototype,"align",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Hi.prototype,"border",void 0),Hi=l([u("rtg-input-group-addon")],Hi);var se=class extends v{constructor(...e){super(...e),this.variant="ghost",this.size="xs",this.type="button"}createRenderRoot(){return this}get _buttonSlot(){return this.querySelector('[data-slot="input-group-button"]')}firstUpdated(){let e=this._buttonSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4220
4220
  <rtg-button
4221
4221
  data-slot="input-group-button"
4222
4222
  .variant=${this.variant}
@@ -4228,7 +4228,7 @@ body {
4228
4228
  .target=${this.target}
4229
4229
  .onclick=${this.onClick}
4230
4230
  ></rtg-button>
4231
- `}};l([a({type:String}),c("design:type",Object)],se.prototype,"variant",void 0),l([a({type:String}),c("design:type",Object)],se.prototype,"size",void 0),l([a({type:String}),c("design:type",Object)],se.prototype,"type",void 0),l([a({type:Boolean}),c("design:type",Boolean)],se.prototype,"disabled",void 0),l([a({type:Boolean}),c("design:type",Boolean)],se.prototype,"invalid",void 0),l([a({type:String}),c("design:type",String)],se.prototype,"href",void 0),l([a({type:String}),c("design:type",Object)],se.prototype,"target",void 0),l([a({attribute:!1,type:Function}),c("design:type",Function)],se.prototype,"onClick",void 0),se=l([p("rtg-input-group-button")],se);var G=class extends v{constructor(...e){super(...e),this.id="",this.type="text",this._onClick=t=>{this.onClick&&this.onClick(t)},this._onInput=t=>{this.value=t.target.value,this.onInput&&this.onInput(t)},this._onChange=t=>{this.value=t.target.value,this.onChange&&this.onChange(t)},this._onFocus=t=>{this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:t.relatedTarget})),this.onFocus&&this.onFocus(t)},this._onBlur=t=>{this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:t.relatedTarget})),this.onBlur&&this.onBlur(t)}}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id"))}firstUpdated(){this._inputId=this.id,this.removeAttribute("id")}render(){return d`
4231
+ `}};l([a({type:String}),c("design:type",Object)],se.prototype,"variant",void 0),l([a({type:String}),c("design:type",Object)],se.prototype,"size",void 0),l([a({type:String}),c("design:type",Object)],se.prototype,"type",void 0),l([a({type:Boolean}),c("design:type",Boolean)],se.prototype,"disabled",void 0),l([a({type:Boolean}),c("design:type",Boolean)],se.prototype,"invalid",void 0),l([a({type:String}),c("design:type",String)],se.prototype,"href",void 0),l([a({type:String}),c("design:type",Object)],se.prototype,"target",void 0),l([a({attribute:!1,type:Function}),c("design:type",Function)],se.prototype,"onClick",void 0),se=l([u("rtg-input-group-button")],se);var G=class extends v{constructor(...e){super(...e),this.id="",this.type="text",this._onClick=t=>{this.onClick&&this.onClick(t)},this._onInput=t=>{this.value=t.target.value,this.onInput&&this.onInput(t)},this._onChange=t=>{this.value=t.target.value,this.onChange&&this.onChange(t)},this._onFocus=t=>{this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:t.relatedTarget})),this.onFocus&&this.onFocus(t)},this._onBlur=t=>{this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:t.relatedTarget})),this.onBlur&&this.onBlur(t)}}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id"))}firstUpdated(){this._inputId=this.id,this.removeAttribute("id")}render(){return d`
4232
4232
  <input
4233
4233
  data-slot="input"
4234
4234
  accept=${this.type==="file"&&this.accept?this.accept:m}
@@ -4258,7 +4258,7 @@ body {
4258
4258
  @focus=${this._onFocus}
4259
4259
  @blur=${this._onBlur}
4260
4260
  />
4261
- `}};l([a({type:String}),c("design:type",String)],G.prototype,"accept",void 0),l([a({type:String}),c("design:type",Object)],G.prototype,"autocomplete",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],G.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"max",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"min",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"minlength",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"multiple",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"pattern",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"required",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"step",void 0),l([a({type:String}),c("design:type",Object)],G.prototype,"type",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onClick",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onBlur",void 0),G=l([p("rtg-input")],G);var W=class extends v{constructor(...e){super(...e),this.id="",this.type="text"}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id"))}firstUpdated(){this._inputId=this.id,this.removeAttribute("id")}render(){return d`
4261
+ `}};l([a({type:String}),c("design:type",String)],G.prototype,"accept",void 0),l([a({type:String}),c("design:type",Object)],G.prototype,"autocomplete",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],G.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"max",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"min",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"minlength",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"multiple",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"pattern",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],G.prototype,"required",void 0),l([a({type:Number}),c("design:type",Number)],G.prototype,"step",void 0),l([a({type:String}),c("design:type",Object)],G.prototype,"type",void 0),l([a({type:String}),c("design:type",String)],G.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onClick",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],G.prototype,"onBlur",void 0),G=l([u("rtg-input")],G);var W=class extends v{constructor(...e){super(...e),this.id="",this.type="text"}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id"))}firstUpdated(){this._inputId=this.id,this.removeAttribute("id")}render(){return d`
4262
4262
  <rtg-input
4263
4263
  data-slot="input-group-input"
4264
4264
  .accept=${this.accept}
@@ -4286,7 +4286,7 @@ body {
4286
4286
  .onFocus=${this.onFocus}
4287
4287
  .onBlur=${this.onBlur}
4288
4288
  ></rtg-input>
4289
- `}};l([a({type:String}),c("design:type",String)],W.prototype,"accept",void 0),l([a({type:String}),c("design:type",Object)],W.prototype,"autocomplete",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],W.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"max",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"min",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"minlength",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"multiple",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"pattern",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"required",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"step",void 0),l([a({type:String}),c("design:type",Object)],W.prototype,"type",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onClick",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onBlur",void 0),W=l([p("rtg-input-group-input")],W);var nl=class extends v{createRenderRoot(){return this}get _textSlot(){return this.querySelector('[data-slot="input-group-text"]')}firstUpdated(){let e=this._textSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<span data-slot="input-group-text"></span>`}};nl=l([p("rtg-input-group-text")],nl);var nt=class extends v{constructor(...e){super(...e),this.id="",this._onInput=t=>{this.value=t.target.value,this.onInput&&this.onInput(t)},this._onChange=t=>{this.value=t.target.value,this.onChange&&this.onChange(t)},this._onFocus=t=>{this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:t.relatedTarget})),this.onFocus&&this.onFocus(t)},this._onBlur=t=>{this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:t.relatedTarget})),this.onBlur&&this.onBlur(t)}}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._textareaId=this.id),this.removeAttribute("id"))}firstUpdated(){this._textareaId=this.id,this.removeAttribute("id")}render(){return d`
4289
+ `}};l([a({type:String}),c("design:type",String)],W.prototype,"accept",void 0),l([a({type:String}),c("design:type",Object)],W.prototype,"autocomplete",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],W.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"max",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"min",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"minlength",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"multiple",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"pattern",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],W.prototype,"required",void 0),l([a({type:Number}),c("design:type",Number)],W.prototype,"step",void 0),l([a({type:String}),c("design:type",Object)],W.prototype,"type",void 0),l([a({type:String}),c("design:type",String)],W.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onClick",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],W.prototype,"onBlur",void 0),W=l([u("rtg-input-group-input")],W);var nl=class extends v{createRenderRoot(){return this}get _textSlot(){return this.querySelector('[data-slot="input-group-text"]')}firstUpdated(){let e=this._textSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<span data-slot="input-group-text"></span>`}};nl=l([u("rtg-input-group-text")],nl);var nt=class extends v{constructor(...e){super(...e),this.id="",this._onInput=t=>{this.value=t.target.value,this.onInput&&this.onInput(t)},this._onChange=t=>{this.value=t.target.value,this.onChange&&this.onChange(t)},this._onFocus=t=>{this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:t.relatedTarget})),this.onFocus&&this.onFocus(t)},this._onBlur=t=>{this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:t.relatedTarget})),this.onBlur&&this.onBlur(t)}}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._textareaId=this.id),this.removeAttribute("id"))}firstUpdated(){this._textareaId=this.id,this.removeAttribute("id")}render(){return d`
4290
4290
  <textarea
4291
4291
  data-slot="textarea"
4292
4292
  autocapitalize=${this.autocapitalize?this.autocapitalize:m}
@@ -4315,7 +4315,7 @@ body {
4315
4315
  @focus=${this._onFocus}
4316
4316
  @blur=${this._onBlur}
4317
4317
  ></textarea>
4318
- `}};l([a({type:String}),c("design:type",Object)],nt.prototype,"autocomplete",void 0),l([a({type:Number}),c("design:type",Number)],nt.prototype,"cols",void 0),l([a({type:Boolean}),c("design:type",Boolean)],nt.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],nt.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],nt.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],nt.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],nt.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],nt.prototype,"minlength",void 0),l([a({type:String}),c("design:type",String)],nt.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],nt.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],nt.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],nt.prototype,"required",void 0),l([a({type:Number}),c("design:type",Number)],nt.prototype,"rows",void 0),l([a({type:String}),c("design:type",Object)],nt.prototype,"wrap",void 0),l([a({type:String}),c("design:type",String)],nt.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],nt.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],nt.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],nt.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],nt.prototype,"onBlur",void 0),nt=l([p("rtg-textarea")],nt);var at=class extends v{constructor(...e){super(...e),this.id=""}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._textareaId=this.id),this.removeAttribute("id"))}firstUpdated(){this._textareaId=this.id,this.removeAttribute("id")}render(){return d`
4318
+ `}};l([a({type:String}),c("design:type",Object)],nt.prototype,"autocomplete",void 0),l([a({type:Number}),c("design:type",Number)],nt.prototype,"cols",void 0),l([a({type:Boolean}),c("design:type",Boolean)],nt.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],nt.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],nt.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],nt.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],nt.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],nt.prototype,"minlength",void 0),l([a({type:String}),c("design:type",String)],nt.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],nt.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],nt.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],nt.prototype,"required",void 0),l([a({type:Number}),c("design:type",Number)],nt.prototype,"rows",void 0),l([a({type:String}),c("design:type",Object)],nt.prototype,"wrap",void 0),l([a({type:String}),c("design:type",String)],nt.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],nt.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],nt.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],nt.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],nt.prototype,"onBlur",void 0),nt=l([u("rtg-textarea")],nt);var at=class extends v{constructor(...e){super(...e),this.id=""}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._textareaId=this.id),this.removeAttribute("id"))}firstUpdated(){this._textareaId=this.id,this.removeAttribute("id")}render(){return d`
4319
4319
  <rtg-textarea
4320
4320
  data-slot="input-group-textarea"
4321
4321
  autocapitalize=${this.autocapitalize?this.autocapitalize:m}
@@ -4342,7 +4342,7 @@ body {
4342
4342
  .onfocus=${this.onFocus}
4343
4343
  .onblur=${this.onBlur}
4344
4344
  ></rtg-textarea>
4345
- `}};l([a({type:String}),c("design:type",Object)],at.prototype,"autocomplete",void 0),l([a({type:Number}),c("design:type",Number)],at.prototype,"cols",void 0),l([a({type:Boolean}),c("design:type",Boolean)],at.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],at.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],at.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],at.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],at.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],at.prototype,"minlength",void 0),l([a({type:String}),c("design:type",String)],at.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],at.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],at.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],at.prototype,"required",void 0),l([a({type:Number}),c("design:type",Number)],at.prototype,"rows",void 0),l([a({type:String}),c("design:type",Object)],at.prototype,"wrap",void 0),l([a({type:String}),c("design:type",String)],at.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],at.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],at.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],at.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],at.prototype,"onBlur",void 0),at=l([p("rtg-input-group-textarea")],at);var rt=class extends v{constructor(){super(),this.autocomplete="one-time-code",this.id="",this.inputmode="numeric",this._activeSlot=null,this._hasFocus=!1,this._value="",this._children=[],this._handleBlur=e=>{var t;this._hasFocus=!1,this._activeSlot=null,this._sync(),this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onBlur)==null||t.call(this,e)},this._handleFocus=e=>{var t;this._hasFocus=!0,this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot()),this._sync(),this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onFocus)==null||t.call(this,e)},this._handleKeyDown=e=>{if(this.disabled||!this._hasFocus)return;this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot());let t=e.key;if(t==="Backspace"){e.preventDefault(),this._deleteChar();return}if(t.length!==1)return;let r=this._regex();r&&!r.test(t)||(e.preventDefault(),this._insertChar(t))},this._handlePaste=e=>{var s,o;if(this.disabled)return;e.preventDefault();let t=((s=e.clipboardData)==null?void 0:s.getData("text"))??"";this.pasteTransformer&&(t=this.pasteTransformer(t));let r=this._regex(),i=Array.from(t).filter(n=>r?r.test(n):!0).slice(0,this.maxlength).join("");this._updateValue(i),this._activeSlot=Math.min(i.length,this.maxlength-1),this._checkComplete(),(o=this.onPaste)==null||o.call(this,e)},this._children=Array.from(this.childNodes)}createRenderRoot(){return this}get _containerSlot(){return this.querySelector('[data-slot="input-otp-container"]')}get _wrapperSlot(){return this.querySelector('[data-slot="input-otp-wrapper"]')}get _slots(){return Array.from(this.querySelectorAll("rtg-input-otp-slot"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._value}_inputEl(){return this.querySelector('[data-slot="input-otp"]')}_regex(){return this.pattern?new RegExp(this.pattern):null}_clampIndex(e){return Math.max(0,Math.min(e,this.maxlength-1))}_computeInitialActiveSlot(){let e=(this._currentValue??"").length;return e>=this.maxlength?this.maxlength-1:e}_createCaret(){let e=document.createElement("div");e.dataset.slot="input-otp-slot-caret-wrapper";let t=document.createElement("div");return t.dataset.slot="input-otp-slot-caret",e.appendChild(t),e}_sync(){let e=this._currentValue??"";this._slots.forEach(t=>{let r=t._slotSlot;if(!r)return;let i=e[t.index]??"",s=this._hasFocus&&!this.disabled&&t.index===this._activeSlot;r.dataset.state=s?"active":"inactive",i?r.textContent=i:r.textContent="";let o=s&&!i,n=r.querySelector('[data-slot="input-otp-caret-wrapper"]');o&&!n&&r.appendChild(this._createCaret()),!o&&n&&n.remove()})}_updateValue(e){var t;this._isControlled||(this._value=e),(t=this.onChange)==null||t.call(this,e)}_checkComplete(){var e,t;((e=this._currentValue)==null?void 0:e.length)===this.maxlength&&((t=this.onComplete)==null||t.call(this,this._currentValue))}_insertChar(e){if(this._activeSlot===null)return;let t=this._activeSlot,r=(this._currentValue??"").split("");r[t]=e;let i=r.join("").slice(0,this.maxlength);this._updateValue(i),this._activeSlot=this._clampIndex(this._activeSlot+1),this._checkComplete()}_deleteChar(){if(this._activeSlot===null)return;let e=this._activeSlot,t=(this._currentValue??"").split("");e>0&&!t[e]&&e--,t[e]="",this._activeSlot=e,this._updateValue(t.join(""))}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id")),e.has("value")&&this._isControlled&&(this._value=this.value??""),this._sync()}firstUpdated(){this._inputId=this.id,this.removeAttribute("id"),this._value=this.value??this.defaultValue??"";let e=this._containerSlot,t=this._wrapperSlot;!e||!t||(this._children.forEach(r=>{e.insertBefore(r,t)}),this.addEventListener("rtg-input-otp-slot:focus",r=>{var s;if(this.disabled)return;let{index:i}=r.detail;this._activeSlot=i,this._hasFocus=!0,(s=this._inputEl())==null||s.focus(),this._sync()}))}render(){return d`
4345
+ `}};l([a({type:String}),c("design:type",Object)],at.prototype,"autocomplete",void 0),l([a({type:Number}),c("design:type",Number)],at.prototype,"cols",void 0),l([a({type:Boolean}),c("design:type",Boolean)],at.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],at.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],at.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],at.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],at.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],at.prototype,"minlength",void 0),l([a({type:String}),c("design:type",String)],at.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],at.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],at.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],at.prototype,"required",void 0),l([a({type:Number}),c("design:type",Number)],at.prototype,"rows",void 0),l([a({type:String}),c("design:type",Object)],at.prototype,"wrap",void 0),l([a({type:String}),c("design:type",String)],at.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],at.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],at.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],at.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],at.prototype,"onBlur",void 0),at=l([u("rtg-input-group-textarea")],at);var rt=class extends v{constructor(){super(),this.autocomplete="one-time-code",this.id="",this.inputmode="numeric",this._activeSlot=null,this._hasFocus=!1,this._value="",this._children=[],this._handleBlur=e=>{var t;this._hasFocus=!1,this._activeSlot=null,this._sync(),this.dispatchEvent(new FocusEvent("blur",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onBlur)==null||t.call(this,e)},this._handleFocus=e=>{var t;this._hasFocus=!0,this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot()),this._sync(),this.dispatchEvent(new FocusEvent("focus",{bubbles:!0,composed:!0,relatedTarget:e.relatedTarget})),(t=this.onFocus)==null||t.call(this,e)},this._handleKeyDown=e=>{if(this.disabled||!this._hasFocus)return;this._activeSlot===null&&(this._activeSlot=this._computeInitialActiveSlot());let t=e.key;if(t==="Backspace"){e.preventDefault(),this._deleteChar();return}if(t.length!==1)return;let r=this._regex();r&&!r.test(t)||(e.preventDefault(),this._insertChar(t))},this._handlePaste=e=>{var s,o;if(this.disabled)return;e.preventDefault();let t=((s=e.clipboardData)==null?void 0:s.getData("text"))??"";this.pasteTransformer&&(t=this.pasteTransformer(t));let r=this._regex(),i=Array.from(t).filter(n=>r?r.test(n):!0).slice(0,this.maxlength).join("");this._updateValue(i),this._activeSlot=Math.min(i.length,this.maxlength-1),this._checkComplete(),(o=this.onPaste)==null||o.call(this,e)},this._children=Array.from(this.childNodes)}createRenderRoot(){return this}get _containerSlot(){return this.querySelector('[data-slot="input-otp-container"]')}get _wrapperSlot(){return this.querySelector('[data-slot="input-otp-wrapper"]')}get _slots(){return Array.from(this.querySelectorAll("rtg-input-otp-slot"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._value}_inputEl(){return this.querySelector('[data-slot="input-otp"]')}_regex(){return this.pattern?new RegExp(this.pattern):null}_clampIndex(e){return Math.max(0,Math.min(e,this.maxlength-1))}_computeInitialActiveSlot(){let e=(this._currentValue??"").length;return e>=this.maxlength?this.maxlength-1:e}_createCaret(){let e=document.createElement("div");e.dataset.slot="input-otp-slot-caret-wrapper";let t=document.createElement("div");return t.dataset.slot="input-otp-slot-caret",e.appendChild(t),e}_sync(){let e=this._currentValue??"";this._slots.forEach(t=>{let r=t._slotSlot;if(!r)return;let i=e[t.index]??"",s=this._hasFocus&&!this.disabled&&t.index===this._activeSlot;r.dataset.state=s?"active":"inactive",i?r.textContent=i:r.textContent="";let o=s&&!i,n=r.querySelector('[data-slot="input-otp-caret-wrapper"]');o&&!n&&r.appendChild(this._createCaret()),!o&&n&&n.remove()})}_updateValue(e){var t;this._isControlled||(this._value=e),(t=this.onChange)==null||t.call(this,e)}_checkComplete(){var e,t;((e=this._currentValue)==null?void 0:e.length)===this.maxlength&&((t=this.onComplete)==null||t.call(this,this._currentValue))}_insertChar(e){if(this._activeSlot===null)return;let t=this._activeSlot,r=(this._currentValue??"").split("");r[t]=e;let i=r.join("").slice(0,this.maxlength);this._updateValue(i),this._activeSlot=this._clampIndex(this._activeSlot+1),this._checkComplete()}_deleteChar(){if(this._activeSlot===null)return;let e=this._activeSlot,t=(this._currentValue??"").split("");e>0&&!t[e]&&e--,t[e]="",this._activeSlot=e,this._updateValue(t.join(""))}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id")),e.has("value")&&this._isControlled&&(this._value=this.value??""),this._sync()}firstUpdated(){this._inputId=this.id,this.removeAttribute("id"),this._value=this.value??this.defaultValue??"";let e=this._containerSlot,t=this._wrapperSlot;!e||!t||(this._children.forEach(r=>{e.insertBefore(r,t)}),this.addEventListener("rtg-input-otp-slot:focus",r=>{var s;if(this.disabled)return;let{index:i}=r.detail;this._activeSlot=i,this._hasFocus=!0,(s=this._inputEl())==null||s.focus(),this._sync()}))}render(){return d`
4346
4346
  <div data-slot="input-otp-container">
4347
4347
  <div data-slot="input-otp-wrapper">
4348
4348
  <input
@@ -4365,17 +4365,17 @@ body {
4365
4365
  />
4366
4366
  </div>
4367
4367
  </div>
4368
- `}};l([a({type:String}),c("design:type",Object)],rt.prototype,"autocomplete",void 0),l([a({attribute:"default-value",type:String}),c("design:type",String)],rt.prototype,"defaultValue",void 0),l([a({type:Boolean}),c("design:type",Boolean)],rt.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],rt.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],rt.prototype,"id",void 0),l([a({type:String}),c("design:type",Object)],rt.prototype,"inputmode",void 0),l([a({type:Number}),c("design:type",Number)],rt.prototype,"maxlength",void 0),l([a({type:String}),c("design:type",String)],rt.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],rt.prototype,"pattern",void 0),l([a({type:Boolean}),c("design:type",Boolean)],rt.prototype,"required",void 0),l([a({type:String}),c("design:type",String)],rt.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onComplete",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onBlur",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onPaste",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"pasteTransformer",void 0),l([x(),c("design:type",Object)],rt.prototype,"_activeSlot",void 0),l([x(),c("design:type",Object)],rt.prototype,"_hasFocus",void 0),l([x(),c("design:type",Object)],rt.prototype,"_value",void 0),rt=l([p("rtg-input-otp"),c("design:paramtypes",[])],rt);var al=class extends v{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="input-otp-group"]')}firstUpdated(){let e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="input-otp-group"></div>`}};al=l([p("rtg-input-otp-group")],al);var Hi=class extends v{constructor(...e){super(...e),this._handleClick=()=>{this.dispatchEvent(new CustomEvent("rtg-input-otp-slot:focus",{detail:{index:this.index},bubbles:!0}))}}createRenderRoot(){return this}get _slotSlot(){return this.querySelector('[data-slot="input-otp-slot"]')}render(){return d`
4368
+ `}};l([a({type:String}),c("design:type",Object)],rt.prototype,"autocomplete",void 0),l([a({attribute:"default-value",type:String}),c("design:type",String)],rt.prototype,"defaultValue",void 0),l([a({type:Boolean}),c("design:type",Boolean)],rt.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],rt.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],rt.prototype,"id",void 0),l([a({type:String}),c("design:type",Object)],rt.prototype,"inputmode",void 0),l([a({type:Number}),c("design:type",Number)],rt.prototype,"maxlength",void 0),l([a({type:String}),c("design:type",String)],rt.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],rt.prototype,"pattern",void 0),l([a({type:Boolean}),c("design:type",Boolean)],rt.prototype,"required",void 0),l([a({type:String}),c("design:type",String)],rt.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onComplete",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onBlur",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"onPaste",void 0),l([a({attribute:!1}),c("design:type",Function)],rt.prototype,"pasteTransformer",void 0),l([x(),c("design:type",Object)],rt.prototype,"_activeSlot",void 0),l([x(),c("design:type",Object)],rt.prototype,"_hasFocus",void 0),l([x(),c("design:type",Object)],rt.prototype,"_value",void 0),rt=l([u("rtg-input-otp"),c("design:paramtypes",[])],rt);var al=class extends v{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="input-otp-group"]')}firstUpdated(){let e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="input-otp-group"></div>`}};al=l([u("rtg-input-otp-group")],al);var Gi=class extends v{constructor(...e){super(...e),this._handleClick=()=>{this.dispatchEvent(new CustomEvent("rtg-input-otp-slot:focus",{detail:{index:this.index},bubbles:!0}))}}createRenderRoot(){return this}get _slotSlot(){return this.querySelector('[data-slot="input-otp-slot"]')}render(){return d`
4369
4369
  <div
4370
4370
  data-slot="input-otp-slot"
4371
4371
  aria-invalid=${this.invalid||this.ariaInvalid==="true"?"true":m}
4372
4372
  @click=${this._handleClick}
4373
4373
  ></div>
4374
- `}};l([a({type:Number}),c("design:type",Number)],Hi.prototype,"index",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Hi.prototype,"invalid",void 0),Hi=l([p("rtg-input-otp-slot")],Hi);var ll=class extends v{createRenderRoot(){return this}render(){return d`
4374
+ `}};l([a({type:Number}),c("design:type",Number)],Gi.prototype,"index",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Gi.prototype,"invalid",void 0),Gi=l([u("rtg-input-otp-slot")],Gi);var ll=class extends v{createRenderRoot(){return this}render(){return d`
4375
4375
  <div data-slot="input-otp-separator" role="separator">
4376
4376
  ${Wh()}
4377
4377
  </div>
4378
- `}};ll=l([p("rtg-input-otp-separator")],ll);var Pr=class extends v{constructor(...e){super(...e),this.variant="default",this.size="default"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="item"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return this.href?d`
4378
+ `}};ll=l([u("rtg-input-otp-separator")],ll);var Fr=class extends v{constructor(...e){super(...e),this.variant="default",this.size="default"}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="item"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return this.href?d`
4379
4379
  <a
4380
4380
  data-slot="item"
4381
4381
  data-variant="${this.variant}"
@@ -4389,14 +4389,14 @@ body {
4389
4389
  data-variant="${this.variant}"
4390
4390
  data-size="${this.size}"
4391
4391
  ></div>
4392
- `}};l([a({type:String}),c("design:type",Object)],Pr.prototype,"variant",void 0),l([a({type:String}),c("design:type",Object)],Pr.prototype,"size",void 0),l([a({type:String}),c("design:type",String)],Pr.prototype,"href",void 0),l([a({type:String}),c("design:type",Object)],Pr.prototype,"target",void 0),Pr=l([p("rtg-item")],Pr);var dl=class extends v{createRenderRoot(){return this}get _actionsSlot(){return this.querySelector('[data-slot="item-actions"]')}firstUpdated(){let e=this._actionsSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-actions"></div>`}};dl=l([p("rtg-item-actions")],dl);var cl=class extends v{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="item-content"]')}firstUpdated(){let e=this._contentSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-content"></div>`}};cl=l([p("rtg-item-content")],cl);var hl=class extends v{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="item-description"]')}firstUpdated(){let e=this._descriptionSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="item-description"></p>`}};hl=l([p("rtg-item-description")],hl);var ul=class extends v{createRenderRoot(){return this}get _footerSlot(){return this.querySelector('[data-slot="item-footer"]')}firstUpdated(){let e=this._footerSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-footer"></div>`}};ul=l([p("rtg-item-footer")],ul);var pl=class extends v{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="item-group"]')}firstUpdated(){let e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-group" role="list"></div>`}};pl=l([p("rtg-item-group")],pl);var gl=class extends v{createRenderRoot(){return this}get _headerSlot(){return this.querySelector('[data-slot="item-header"]')}firstUpdated(){let e=this._headerSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-header"></div>`}};gl=l([p("rtg-item-header")],gl);var Ro=class extends v{constructor(...e){super(...e),this.variant="default"}createRenderRoot(){return this}get _mediaSlot(){return this.querySelector('[data-slot="item-media"]')}firstUpdated(){let e=this._mediaSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4392
+ `}};l([a({type:String}),c("design:type",Object)],Fr.prototype,"variant",void 0),l([a({type:String}),c("design:type",Object)],Fr.prototype,"size",void 0),l([a({type:String}),c("design:type",String)],Fr.prototype,"href",void 0),l([a({type:String}),c("design:type",Object)],Fr.prototype,"target",void 0),Fr=l([u("rtg-item")],Fr);var dl=class extends v{createRenderRoot(){return this}get _actionsSlot(){return this.querySelector('[data-slot="item-actions"]')}firstUpdated(){let e=this._actionsSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-actions"></div>`}};dl=l([u("rtg-item-actions")],dl);var cl=class extends v{createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="item-content"]')}firstUpdated(){let e=this._contentSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-content"></div>`}};cl=l([u("rtg-item-content")],cl);var hl=class extends v{createRenderRoot(){return this}get _descriptionSlot(){return this.querySelector('[data-slot="item-description"]')}firstUpdated(){let e=this._descriptionSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="item-description"></p>`}};hl=l([u("rtg-item-description")],hl);var pl=class extends v{createRenderRoot(){return this}get _footerSlot(){return this.querySelector('[data-slot="item-footer"]')}firstUpdated(){let e=this._footerSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-footer"></div>`}};pl=l([u("rtg-item-footer")],pl);var ul=class extends v{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="item-group"]')}firstUpdated(){let e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-group" role="list"></div>`}};ul=l([u("rtg-item-group")],ul);var gl=class extends v{createRenderRoot(){return this}get _headerSlot(){return this.querySelector('[data-slot="item-header"]')}firstUpdated(){let e=this._headerSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-header"></div>`}};gl=l([u("rtg-item-header")],gl);var Ro=class extends v{constructor(...e){super(...e),this.variant="default"}createRenderRoot(){return this}get _mediaSlot(){return this.querySelector('[data-slot="item-media"]')}firstUpdated(){let e=this._mediaSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4393
4393
  <div data-slot="item-media" data-variant="${this.variant}"></div>
4394
- `}};l([a({type:String}),c("design:type",Object)],Ro.prototype,"variant",void 0),Ro=l([p("rtg-item-media")],Ro);var ml=class extends v{createRenderRoot(){return this}get _separatorSlot(){return this.querySelector('[data-slot="item-separator"]')}firstUpdated(){let e=this._separatorSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4394
+ `}};l([a({type:String}),c("design:type",Object)],Ro.prototype,"variant",void 0),Ro=l([u("rtg-item-media")],Ro);var ml=class extends v{createRenderRoot(){return this}get _separatorSlot(){return this.querySelector('[data-slot="item-separator"]')}firstUpdated(){let e=this._separatorSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`
4395
4395
  <rtg-separator
4396
4396
  data-slot="item-separator"
4397
4397
  orientation="horizontal"
4398
4398
  ></rtg-separator>
4399
- `}};ml=l([p("rtg-item-separator")],ml);var bl=class extends v{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="item-title"]')}firstUpdated(){let e=this._titleSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-title"></div>`}};bl=l([p("rtg-item-title")],bl);var fl=class extends v{createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="kbd"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<kbd data-slot="kbd"></kbd>`}};fl=l([p("rtg-kbd")],fl);var vl=class extends v{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="kbd-group"]')}firstUpdated(){let e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<kbd data-slot="kbd-group"></kbd>`}};vl=l([p("rtg-kbd-group")],vl);var yt={root:["rtg-flex","rtg-gap-menubar-space-gap rtg-items-center","rtg-p-menubar-space-p","rtg-h-menubar-space-h","rtg-bg-menubar-color-bg","rtg-rounded-menubar-radius rtg-border-menubar-width-border rtg-border-menubar-color-border"],menu:[""],group:[""],trigger:["rtg-flex","rtg-items-center","rtg-px-menubar-trigger-space-px rtg-py-menubar-trigger-space-py","rtg-text-menubar-trigger-font rtg-font-menubar-trigger-font-weight","rtg-rounded-menubar-trigger-radius rtg-outline-hidden","rtg-select-none","focus:rtg-text-menubar-trigger-color-text-focus focus:rtg-bg-menubar-trigger-color-bg-focus","hover:rtg-text-menubar-trigger-color-text-active hover:rtg-bg-menubar-trigger-color-bg-active"],content:["rtg-absolute rtg-overflow-hidden rtg-z-50","rtg-p-menubar-content-space-p","rtg-min-w-menubar-content-space-min-w","rtg-text-menubar-content-color-text","rtg-bg-menubar-content-color-bg","rtg-rounded-menubar-content-radius rtg-border-menubar-content-width-border rtg-border-menubar-content-color-border","rtg-shadow-menubar-content-shadow","rtg-translate-y-2","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],item:["rtg-flex rtg-relative","rtg-gap-menubar-item-space-gap rtg-items-center","rtg-px-menubar-item-space-px rtg-py-menubar-item-space-py","rtg-text-menubar-item-font","rtg-rounded-menubar-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-item-color-text-active aria-selected:rtg-bg-menubar-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-menubar-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-menubar-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-menubar-checkbox-item-space-gap rtg-items-center","rtg-pl-menubar-checkbox-item-space-pl rtg-pr-menubar-checkbox-item-space-pr rtg-py-menubar-checkbox-item-space-py","rtg-text-menubar-checkbox-item-font","rtg-rounded-menubar-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-checkbox-item-color-text-active aria-selected:rtg-bg-menubar-checkbox-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-menubar-checkbox-item-indicator-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-menubar-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-menubar-radio-item-space-gap rtg-items-center","rtg-pl-menubar-radio-item-space-pl rtg-pr-menubar-radio-item-space-pr rtg-py-menubar-radio-item-space-py","rtg-text-menubar-radio-item-font","rtg-rounded-menubar-radio-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-radio-item-color-text-active aria-selected:rtg-bg-menubar-radio-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-menubar-radio-item-indicator-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-menubar-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-menubar-label-space-px rtg-py-menubar-label-space-py","rtg-text-menubar-label-font rtg-font-menubar-label-font-weight"],separator:["rtg-mx-menubar-separator-space-mx rtg-my-menubar-separator-space-my","rtg-h-menubar-separator-space-h","rtg-bg-menubar-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-menubar-shortcut-font rtg-text-menubar-shortcut-color-text"]},os,lr,$e=(lr=class extends _{constructor(...t){super(...t),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-checkbox-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,i;if(this._id!=="")return this._id;let t=(i=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:i.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${os._counter++}`:this._id=`rtgcmdrxgxli${os._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return d`
4399
+ `}};ml=l([u("rtg-item-separator")],ml);var bl=class extends v{createRenderRoot(){return this}get _titleSlot(){return this.querySelector('[data-slot="item-title"]')}firstUpdated(){let e=this._titleSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="item-title"></div>`}};bl=l([u("rtg-item-title")],bl);var fl=class extends v{createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="kbd"]')}firstUpdated(){let e=this._rootSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<kbd data-slot="kbd"></kbd>`}};fl=l([u("rtg-kbd")],fl);var vl=class extends v{createRenderRoot(){return this}get _groupSlot(){return this.querySelector('[data-slot="kbd-group"]')}firstUpdated(){let e=this._groupSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<kbd data-slot="kbd-group"></kbd>`}};vl=l([u("rtg-kbd-group")],vl);var yt={root:["rtg-flex","rtg-gap-menubar-space-gap rtg-items-center","rtg-p-menubar-space-p","rtg-h-menubar-space-h","rtg-bg-menubar-color-bg","rtg-rounded-menubar-radius rtg-border-menubar-width-border rtg-border-menubar-color-border"],menu:[""],group:[""],trigger:["rtg-flex","rtg-items-center","rtg-px-menubar-trigger-space-px rtg-py-menubar-trigger-space-py","rtg-text-menubar-trigger-font rtg-font-menubar-trigger-font-weight","rtg-rounded-menubar-trigger-radius rtg-outline-hidden","rtg-select-none","focus:rtg-text-menubar-trigger-color-text-focus focus:rtg-bg-menubar-trigger-color-bg-focus","hover:rtg-text-menubar-trigger-color-text-active hover:rtg-bg-menubar-trigger-color-bg-active"],content:["rtg-absolute rtg-overflow-hidden rtg-z-50","rtg-p-menubar-content-space-p","rtg-min-w-menubar-content-space-min-w","rtg-text-menubar-content-color-text","rtg-bg-menubar-content-color-bg","rtg-rounded-menubar-content-radius rtg-border-menubar-content-width-border rtg-border-menubar-content-color-border","rtg-shadow-menubar-content-shadow","rtg-translate-y-2","rtg-slide-in-from-top-2","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],item:["rtg-flex rtg-relative","rtg-gap-menubar-item-space-gap rtg-items-center","rtg-px-menubar-item-space-px rtg-py-menubar-item-space-py","rtg-text-menubar-item-font","rtg-rounded-menubar-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-item-color-text-active aria-selected:rtg-bg-menubar-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-item-opacity-disabled data-[disabled]:rtg-pointer-events-none",'[&_svg]:rtg-shrink-0 [&_svg:not([class*="rtg-size-"])]:rtg-size-menubar-item-icon-space-size [&_svg:not([class*="rtg-text-"])]:rtg-text-menubar-item-icon-color-text [&_svg]:rtg-pointer-events-none'],checkboxItem:{base:["rtg-flex rtg-relative","rtg-gap-menubar-checkbox-item-space-gap rtg-items-center","rtg-pl-menubar-checkbox-item-space-pl rtg-pr-menubar-checkbox-item-space-pr rtg-py-menubar-checkbox-item-space-py","rtg-text-menubar-checkbox-item-font","rtg-rounded-menubar-checkbox-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-checkbox-item-color-text-active aria-selected:rtg-bg-menubar-checkbox-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-checkbox-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-menubar-checkbox-item-indicator-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-menubar-checkbox-item-icon-space-size","rtg-pointer-events-none"]},radioItem:{base:["rtg-flex rtg-relative","rtg-gap-menubar-radio-item-space-gap rtg-items-center","rtg-pl-menubar-radio-item-space-pl rtg-pr-menubar-radio-item-space-pr rtg-py-menubar-radio-item-space-py","rtg-text-menubar-radio-item-font","rtg-rounded-menubar-radio-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","aria-selected:rtg-text-menubar-radio-item-color-text-active aria-selected:rtg-bg-menubar-radio-item-color-bg-active","data-[disabled]:rtg-opacity-menubar-radio-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-left-2","rtg-justify-center rtg-items-center","rtg-size-menubar-radio-item-indicator-space-size","rtg-pointer-events-none"],icon:["rtg-shrink-0","rtg-size-menubar-radio-item-icon-space-size","rtg-pointer-events-none","rtg-fill-current"]},label:["rtg-px-menubar-label-space-px rtg-py-menubar-label-space-py","rtg-text-menubar-label-font rtg-font-menubar-label-font-weight"],separator:["rtg-mx-menubar-separator-space-mx rtg-my-menubar-separator-space-my","rtg-h-menubar-separator-space-h","rtg-bg-menubar-separator-color-bg"],shortcut:["rtg-ml-auto","rtg-text-menubar-shortcut-font rtg-text-menubar-shortcut-color-text"]},ns,dr,$e=(dr=class extends _{constructor(...t){super(...t),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-checkbox-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,i;if(this._id!=="")return this._id;let t=(i=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:i.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${ns._counter++}`:this._id=`rtgcmdrxgxli${ns._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return d`
4400
4400
  <div
4401
4401
  part="menubar-checkbox-item"
4402
4402
  class=${b(yt.checkboxItem.base,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
@@ -4431,7 +4431,7 @@ body {
4431
4431
  `:m}
4432
4432
  </span>
4433
4433
  </div>
4434
- `}},os=lr,lr._counter=0,lr);l([a({type:String}),c("design:type",Object)],$e.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],$e.prototype,"_hidden",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],$e.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],$e.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],$e.prototype,"checked",void 0),l([a({type:Boolean}),c("design:type",Object)],$e.prototype,"disabled",void 0),$e=os=l([p("rtg-menubar-checkbox-item")],$e);var Oe=class extends _{constructor(...e){super(...e),this.isOpen=!1,this.uniqueIds=[],this.selectedMenu="",this.isHovering=!1,this.id="",this.closeTimeout=null,this.toggleMenubar=t=>{t.stopPropagation(),document.querySelectorAll("rtg-menubar-menu").forEach(r=>{r!==this&&(r.isOpen=!1)}),this.isOpen=!this.isOpen},this.handleClickOutside=t=>{let r=t.target;this.contains(r)||(this.isOpen=!1)},this.handleMenuMouseEnter=()=>{this.clearCloseTimeout(),this.closeAllMenus(),this.isOpen=!0,this.isHovering=!0},this.handleMenuMouseLeave=t=>{let r=t.relatedTarget;if(this.isDescendant(r,"rtg-menubar-content")){this.clearCloseTimeout();return}this.scheduleClose()}}get _content(){return this.querySelector("rtg-menubar-content")}get _button(){return this.querySelector("rtg-menubar-trigger")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),this.clearCloseTimeout(),super.disconnectedCallback()}clearCloseTimeout(){this.closeTimeout!==null&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-menubar-radio-item").forEach(t=>{let r=t;t!==e.target&&(r.checked=!1)})}firstUpdated(){this.setupContentListeners();let e=this.querySelector("div[part=menubar-menu-slot]"),t=this.querySelector("div[part=button-slot]");e&&this._content&&e.appendChild(this._content),t&&this._button&&t.appendChild(this._button)}raiseEvent(){let e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}closeAllMenus(){document.querySelectorAll("rtg-menubar-menu").forEach(e=>{e.isOpen=!1,e.isHovering=!1})}scheduleClose(){this.clearCloseTimeout(),this.closeTimeout=window.setTimeout(()=>{this.isOpen=!1,this.isHovering=!1,this.closeTimeout=null},150)}isDescendant(e,t){let r=e.parentElement;for(;r;){if(r.tagName.toLowerCase()===t.toLowerCase())return!0;r=r.parentElement}return!1}setupContentListeners(){let e=this._content;e&&(e.addEventListener("mouseenter",()=>{this.clearCloseTimeout(),this.isOpen=!0}),e.addEventListener("mouseleave",()=>{this.scheduleClose()}))}render(){return d`
4434
+ `}},ns=dr,dr._counter=0,dr);l([a({type:String}),c("design:type",Object)],$e.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],$e.prototype,"_hidden",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],$e.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],$e.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],$e.prototype,"checked",void 0),l([a({type:Boolean}),c("design:type",Object)],$e.prototype,"disabled",void 0),$e=ns=l([u("rtg-menubar-checkbox-item")],$e);var Oe=class extends _{constructor(...e){super(...e),this.isOpen=!1,this.uniqueIds=[],this.selectedMenu="",this.isHovering=!1,this.id="",this.closeTimeout=null,this.toggleMenubar=t=>{t.stopPropagation(),document.querySelectorAll("rtg-menubar-menu").forEach(r=>{r!==this&&(r.isOpen=!1)}),this.isOpen=!this.isOpen},this.handleClickOutside=t=>{let r=t.target;this.contains(r)||(this.isOpen=!1)},this.handleMenuMouseEnter=()=>{this.clearCloseTimeout(),this.closeAllMenus(),this.isOpen=!0,this.isHovering=!0},this.handleMenuMouseLeave=t=>{let r=t.relatedTarget;if(this.isDescendant(r,"rtg-menubar-content")){this.clearCloseTimeout();return}this.scheduleClose()}}get _content(){return this.querySelector("rtg-menubar-content")}get _button(){return this.querySelector("rtg-menubar-trigger")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside),this.addEventListener("radio-selected",this._handleRadioSelected)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),this.clearCloseTimeout(),super.disconnectedCallback()}clearCloseTimeout(){this.closeTimeout!==null&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"close")}_handleRadioSelected(e){this.querySelectorAll("rtg-menubar-radio-item").forEach(t=>{let r=t;t!==e.target&&(r.checked=!1)})}firstUpdated(){this.setupContentListeners();let e=this.querySelector("div[part=menubar-menu-slot]"),t=this.querySelector("div[part=button-slot]");e&&this._content&&e.appendChild(this._content),t&&this._button&&t.appendChild(this._button)}raiseEvent(){let e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}closeAllMenus(){document.querySelectorAll("rtg-menubar-menu").forEach(e=>{e.isOpen=!1,e.isHovering=!1})}scheduleClose(){this.clearCloseTimeout(),this.closeTimeout=window.setTimeout(()=>{this.isOpen=!1,this.isHovering=!1,this.closeTimeout=null},150)}isDescendant(e,t){let r=e.parentElement;for(;r;){if(r.tagName.toLowerCase()===t.toLowerCase())return!0;r=r.parentElement}return!1}setupContentListeners(){let e=this._content;e&&(e.addEventListener("mouseenter",()=>{this.clearCloseTimeout(),this.isOpen=!0}),e.addEventListener("mouseleave",()=>{this.scheduleClose()}))}render(){return d`
4435
4435
  <div class=${b(yt.menu,this.className)}>
4436
4436
  <div
4437
4437
  id="${this.id}"
@@ -4450,7 +4450,7 @@ body {
4450
4450
 
4451
4451
  <div part="menubar-menu-slot"></div>
4452
4452
  </div>
4453
- `}};l([x(),c("design:type",Object)],Oe.prototype,"isOpen",void 0),l([x(),c("design:type",Array)],Oe.prototype,"uniqueIds",void 0),l([x(),c("design:type",String)],Oe.prototype,"selectedMenu",void 0),l([x(),c("design:type",Object)],Oe.prototype,"isHovering",void 0),l([a({type:String}),c("design:type",Object)],Oe.prototype,"id",void 0),Oe=l([p("rtg-menubar-menu")],Oe);var Fr=class extends _{constructor(...e){super(...e),this.state=pn,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof Oe);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=menubar-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){let t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}render(){return d`
4453
+ `}};l([x(),c("design:type",Object)],Oe.prototype,"isOpen",void 0),l([x(),c("design:type",Array)],Oe.prototype,"uniqueIds",void 0),l([x(),c("design:type",String)],Oe.prototype,"selectedMenu",void 0),l([x(),c("design:type",Object)],Oe.prototype,"isHovering",void 0),l([a({type:String}),c("design:type",Object)],Oe.prototype,"id",void 0),Oe=l([u("rtg-menubar-menu")],Oe);var Tr=class extends _{constructor(...e){super(...e),this.state=un,this.id="",this.side="bottom",this.isOpen=!1}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof Oe);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=menubar-content]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){let t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}render(){return d`
4454
4454
  <div
4455
4455
  class=${b(yt.content,this.className)}
4456
4456
  id="${this.id}"
@@ -4464,7 +4464,7 @@ body {
4464
4464
  dir="ltr"
4465
4465
  style="display: ${this.isOpen?"block":"none"};"
4466
4466
  ></div>
4467
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Fr.prototype,"state",void 0),l([a({type:String}),c("design:type",Object)],Fr.prototype,"id",void 0),l([a({type:String}),c("design:type",Object)],Fr.prototype,"side",void 0),l([x(),c("design:type",Object)],Fr.prototype,"isOpen",void 0),Fr=l([p("rtg-menubar-content")],Fr);var ns,dr,ni=(dr=class extends _{constructor(...t){super(...t),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-group-slot]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,i;if(this._id!=="")return this._id;let t=(i=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:i.querySelector("div[rtgcmd-list]");return t?this._id=`${t.getAttribute("id")}g${ns._counter++}`:this._id=`rtgcmdrxlxg${ns._counter++}`,this._id}render(){return d`${this._hidden==="true"?m:d`
4467
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Tr.prototype,"state",void 0),l([a({type:String}),c("design:type",Object)],Tr.prototype,"id",void 0),l([a({type:String}),c("design:type",Object)],Tr.prototype,"side",void 0),l([x(),c("design:type",Object)],Tr.prototype,"isOpen",void 0),Tr=l([u("rtg-menubar-content")],Tr);var as,cr,li=(cr=class extends _{constructor(...t){super(...t),this.heading="",this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-group-slot]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,i;if(this._id!=="")return this._id;let t=(i=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:i.querySelector("div[rtgcmd-list]");return t?this._id=`${t.getAttribute("id")}g${as._counter++}`:this._id=`rtgcmdrxlxg${as._counter++}`,this._id}render(){return d`${this._hidden==="true"?m:d`
4468
4468
  <div
4469
4469
  class=${b(yt.group,this.className)}
4470
4470
  id="${this.identifier}"
@@ -4485,7 +4485,7 @@ body {
4485
4485
  aria-labelledby="${this.identifier}h"
4486
4486
  ></div>
4487
4487
  </div>
4488
- `}`}},ns=dr,dr._counter=0,dr);l([a({type:String}),c("design:type",Object)],ni.prototype,"heading",void 0),l([a({attribute:"id",type:String}),c("design:type",Object)],ni.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],ni.prototype,"_hidden",void 0),ni=ns=l([p("rtg-menubar-group")],ni);var as,cr,Ze=(cr=class extends _{constructor(...t){super(...t),this._id="",this._hidden="",this.disabled=!1,this.selected=!1}get _containerElement(){return this.querySelector("div[part=menubar-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,i;if(this._id!=="")return this._id;let t=(i=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:i.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${as._counter++}`:this._id=`rtgcmdrxgxli${as._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}render(){return d` ${this._hidden==="true"?m:d`
4488
+ `}`}},as=cr,cr._counter=0,cr);l([a({type:String}),c("design:type",Object)],li.prototype,"heading",void 0),l([a({attribute:"id",type:String}),c("design:type",Object)],li.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],li.prototype,"_hidden",void 0),li=as=l([u("rtg-menubar-group")],li);var ls,hr,Je=(hr=class extends _{constructor(...t){super(...t),this._id="",this._hidden="",this.disabled=!1,this.selected=!1}get _containerElement(){return this.querySelector("div[part=menubar-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,i;if(this._id!=="")return this._id;let t=(i=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:i.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${ls._counter++}`:this._id=`rtgcmdrxgxli${ls._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}render(){return d` ${this._hidden==="true"?m:d`
4489
4489
  <div
4490
4490
  part="menubar-item"
4491
4491
  class=${b(yt.item,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
@@ -4499,7 +4499,7 @@ body {
4499
4499
  id="${this.identifier}"
4500
4500
  aria-hidden="${this.hidden}"
4501
4501
  ></div>
4502
- `}`}},as=cr,cr._counter=0,cr);l([a({type:String}),c("design:type",Object)],Ze.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Ze.prototype,"_hidden",void 0),l([a({type:Boolean}),c("design:type",Object)],Ze.prototype,"disabled",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ze.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Ze.prototype,"selected",void 0),Ze=as=l([p("rtg-menubar-item")],Ze);var ls,hr,Ce=(hr=class extends _{constructor(...t){super(...t),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-radio-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,i;if(this._id!=="")return this._id;let t=(i=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:i.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${ls._counter++}`:this._id=`rtgcmdrxgxli${ls._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return d`
4502
+ `}`}},ls=hr,hr._counter=0,hr);l([a({type:String}),c("design:type",Object)],Je.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Je.prototype,"_hidden",void 0),l([a({type:Boolean}),c("design:type",Object)],Je.prototype,"disabled",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Je.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Je.prototype,"selected",void 0),Je=ls=l([u("rtg-menubar-item")],Je);var ds,pr,Ce=(pr=class extends _{constructor(...t){super(...t),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get _containerElement(){return this.querySelector("div[part=menubar-radio-item]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}get identifier(){var r,i;if(this._id!=="")return this._id;let t=(i=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:i.querySelector("div[rtgcmd-group]");return t?this._id=`${t.getAttribute("id")}li${ds._counter++}`:this._id=`rtgcmdrxgxli${ds._counter++}`,this._id}get value(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}handleMouseEvent(t){(t.type==="mouseover"||t.type==="focus")&&(this.selected=!0),t.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}render(){return d`
4503
4503
  <div
4504
4504
  part="menubar-radio-item"
4505
4505
  class=${b(yt.radioItem.base,this.disabled&&"rtg-opacity-menubar-item-opacity-disabled rtg-pointer-events-none",this.className)}
@@ -4532,7 +4532,7 @@ body {
4532
4532
  </svg>`:m}
4533
4533
  </span>
4534
4534
  </div>
4535
- `}},ls=hr,hr._counter=0,hr);l([a({type:String}),c("design:type",Object)],Ce.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Ce.prototype,"_hidden",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ce.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Ce.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Ce.prototype,"checked",void 0),l([a({type:Boolean}),c("design:type",Object)],Ce.prototype,"disabled",void 0),Ce=ls=l([p("rtg-menubar-radio-item")],Ce);var ds,ur,Gi=(ur=class extends _{constructor(...t){super(...t),this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-separator]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}get identifier(){var r;if(this._id!=="")return this._id;let t=(r=this.parentElement)==null?void 0:r.querySelector("div[rtgcmd-list]");return t?this._id=`${t.getAttribute("id")}s${ds._counter++}`:this._id=`rtgcmdrxlxs${ds._counter++}`,this._id}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`${this._hidden==="true"?m:d`
4535
+ `}},ds=pr,pr._counter=0,pr);l([a({type:String}),c("design:type",Object)],Ce.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Ce.prototype,"_hidden",void 0),l([a({attribute:"data-value",type:String}),c("design:type",void 0),c("design:paramtypes",[])],Ce.prototype,"value",null),l([a({type:Boolean}),c("design:type",Object)],Ce.prototype,"selected",void 0),l([a({type:Boolean}),c("design:type",Object)],Ce.prototype,"checked",void 0),l([a({type:Boolean}),c("design:type",Object)],Ce.prototype,"disabled",void 0),Ce=ds=l([u("rtg-menubar-radio-item")],Ce);var cs,ur,Wi=(ur=class extends _{constructor(...t){super(...t),this._id="",this._hidden=""}get _containerElement(){return this.querySelector("div[part=menubar-separator]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}get identifier(){var r;if(this._id!=="")return this._id;let t=(r=this.parentElement)==null?void 0:r.querySelector("div[rtgcmd-list]");return t?this._id=`${t.getAttribute("id")}s${cs._counter++}`:this._id=`rtgcmdrxlxs${cs._counter++}`,this._id}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`${this._hidden==="true"?m:d`
4536
4536
  <div
4537
4537
  class=${b(yt.separator,this.className)}
4538
4538
  id="${this.identifier}"
@@ -4540,20 +4540,20 @@ body {
4540
4540
  part="menubar-separator"
4541
4541
  rtgcmd-separator
4542
4542
  ></div>
4543
- `}`}},ds=ur,ur._counter=0,ur);l([a({type:String}),c("design:type",Object)],Gi.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Gi.prototype,"_hidden",void 0),Gi=ds=l([p("rtg-menubar-separator")],Gi);var yl=class extends _{get _containerElement(){return this.querySelector("span[part=menubar-shortcut]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this.classList=b(yt.shortcut),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4543
+ `}`}},cs=ur,ur._counter=0,ur);l([a({type:String}),c("design:type",Object)],Wi.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Wi.prototype,"_hidden",void 0),Wi=cs=l([u("rtg-menubar-separator")],Wi);var yl=class extends _{get _containerElement(){return this.querySelector("span[part=menubar-shortcut]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this.classList=b(yt.shortcut),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4544
4544
  <span
4545
4545
  class=${b(yt.shortcut,this.className)}
4546
4546
  part="menubar-shortcut"
4547
4547
  >
4548
4548
  </span>
4549
- `}};yl=l([p("rtg-menubar-shortcut")],yl);var wl=class extends _{get _containerElement(){return this.querySelector("button[part=menubar-trigger]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return d`
4549
+ `}};yl=l([u("rtg-menubar-shortcut")],yl);var wl=class extends _{get _containerElement(){return this.querySelector("button[part=menubar-trigger]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return d`
4550
4550
  <button
4551
4551
  class=${b(yt.trigger,this.className)}
4552
4552
  type="button"
4553
4553
  role="menuitem"
4554
4554
  part="menubar-trigger"
4555
4555
  ></button>
4556
- `}};wl=l([p("rtg-menubar-trigger")],wl);var _l=class extends _{get _containerElement(){return this.querySelector("div[part=menubar]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4556
+ `}};wl=l([u("rtg-menubar-trigger")],wl);var _l=class extends _{get _containerElement(){return this.querySelector("div[part=menubar]")}getAttributesToExclude(){return["date-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4557
4557
  <div
4558
4558
  role="menubar"
4559
4559
  part="menubar"
@@ -4561,17 +4561,17 @@ body {
4561
4561
  tabindex="0"
4562
4562
  data-orientation="horizontal"
4563
4563
  ></div>
4564
- `}};_l=l([p("rtg-menubar")],_l);var yr={content:["rtg-absolute","rtg-top-navigation-menu-content-space-top","rtg-flex","rtg-justify-center"],menu:["rtg-relative","rtg-z-10","rtg-flex","rtg-max-w-navigation-menu-space-max-w","rtg-flex-1","rtg-items-center","rtg-justify-center"],menuList:["rtg-flex","rtg-flex-1","rtg-list-none","rtg-items-center","rtg-justify-center","rtg-space-x-navigation-menu-list-space-x","group"],menuItem:["rtg-flex","rtg-cursor-pointer","rtg-items-center","rtg-rounded-navigation-menu-item-radius","rtg-bg-navigation-menu-item-color-bg","rtg-py-navigation-menu-list-space-py","rtg-px-navigation-menu-list-space-px","hover:rtg-bg-navigation-menu-item-color-bg-hover"],menuItemIcon:["lucide","lucide-chevron-down","rtg-relative","rtg-ml-navigation-menu-item-icon-space-ml","rtg-h-navigation-menu-item-icon-space-h","rtg-w-navigation-menu-item-icon-space-w","rtg-transition-transform","rtg-duration-navigation-menu-item-icon-motion-duration"],link:["rtg-flex","rtg-h-navigation-menu-link-space-h","rtg-bg-navigation-menu-link-color-bg","hover:rtg-bg-navigation-menu-link-color-bg-hover","rtg-rounded-navigation-menu-link-radius","rtg-px-navigation-menu-link-space-px","rtg-py-navigation-menu-link-space-py","rtg-w-navigation-menu-link-space-w","rtg-select-none","rtg-flex-col","rtg-justify-end","rtg-no-underline","rtg-outline-none"],contentContainer:["rtg-bg-navigation-menu-content-container-color-bg","origin-top-center","rtg-relative","rtg-mt-navigation-menu-content-container-space-mt","rtg-w-navigation-menu-content-container-space-w","rtg-overflow-hidden","rtg-rounded-navigation-menu-content-container-radius","rtg-border-navigation-menu-content-container-width-border","rtg-border-navigation-menu-content-container-color-border","rtg-navigation-menu-content-container-shadow"]},xl=class extends _{get _containerElement(){return this.querySelector("ul[part=navigation-menu-list]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4564
+ `}};_l=l([u("rtg-menubar")],_l);var wr={content:["rtg-absolute","rtg-top-navigation-menu-content-space-top","rtg-flex","rtg-justify-center"],menu:["rtg-relative","rtg-z-10","rtg-flex","rtg-max-w-navigation-menu-space-max-w","rtg-flex-1","rtg-items-center","rtg-justify-center"],menuList:["rtg-flex","rtg-flex-1","rtg-list-none","rtg-items-center","rtg-justify-center","rtg-space-x-navigation-menu-list-space-x","group"],menuItem:["rtg-flex","rtg-cursor-pointer","rtg-items-center","rtg-rounded-navigation-menu-item-radius","rtg-bg-navigation-menu-item-color-bg","rtg-py-navigation-menu-list-space-py","rtg-px-navigation-menu-list-space-px","hover:rtg-bg-navigation-menu-item-color-bg-hover"],menuItemIcon:["lucide","lucide-chevron-down","rtg-relative","rtg-ml-navigation-menu-item-icon-space-ml","rtg-h-navigation-menu-item-icon-space-h","rtg-w-navigation-menu-item-icon-space-w","rtg-transition-transform","rtg-duration-navigation-menu-item-icon-motion-duration"],link:["rtg-flex","rtg-h-navigation-menu-link-space-h","rtg-bg-navigation-menu-link-color-bg","hover:rtg-bg-navigation-menu-link-color-bg-hover","rtg-rounded-navigation-menu-link-radius","rtg-px-navigation-menu-link-space-px","rtg-py-navigation-menu-link-space-py","rtg-w-navigation-menu-link-space-w","rtg-select-none","rtg-flex-col","rtg-justify-end","rtg-no-underline","rtg-outline-none"],contentContainer:["rtg-bg-navigation-menu-content-container-color-bg","origin-top-center","rtg-relative","rtg-mt-navigation-menu-content-container-space-mt","rtg-w-navigation-menu-content-container-space-w","rtg-overflow-hidden","rtg-rounded-navigation-menu-content-container-radius","rtg-border-navigation-menu-content-container-width-border","rtg-border-navigation-menu-content-container-color-border","rtg-navigation-menu-content-container-shadow"]},xl=class extends _{get _containerElement(){return this.querySelector("ul[part=navigation-menu-list]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4565
4565
  <div class="${b("relative",this.className)}">
4566
4566
  <ul
4567
4567
  part="navigation-menu-list"
4568
4568
  data-orientation="horizontal"
4569
- class=${b(yr.menuList)}
4569
+ class=${b(wr.menuList)}
4570
4570
  dir="ltr"
4571
4571
  ></ul>
4572
4572
  <div></div>
4573
4573
  </div>
4574
- `}};xl=l([p("rtg-navigation-menu-list")],xl);var Ae=class extends _{constructor(...e){super(...e),this.value="",this.navigationLink=!0,this.isOpen=!1,this.uniqueIds=[],this.isHovering=!1,this.handleClickOutside=t=>{let r=t.target;this.contains(r)||(this.isOpen=!1)}}raiseEvent(){let e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}firstUpdated(){this.moveLightDomChildrenInto(this.querySelector("div[part=content-slot]"),[this._content]),this.moveLightDomChildrenInto(this.querySelector("div[part=button-slot]"),[this._button])}closeAllMenus(){document.querySelectorAll("rtg-navigation-menu-item").forEach(e=>{e.isOpen=!1,e.isHovering=!1})}toggleMenubar(e){e.stopPropagation(),document.querySelectorAll("rtg-navigation-menu-item").forEach(t=>{t!==this&&(t.isOpen=!1)}),this.isOpen=!this.isOpen}get _content(){return this.querySelector("rtg-navigation-menu-content")}get _button(){return this.querySelector("rtg-navigation-menu-trigger")}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleHover(){this.closeAllMenus(),this.isHovering||(this.isHovering=!0,this.isOpen=!0)}handleMouseLeave(){this.isHovering=!1,this.isOpen=!1}createRenderRoot(){return this}render(){return d`
4574
+ `}};xl=l([u("rtg-navigation-menu-list")],xl);var Ae=class extends _{constructor(...e){super(...e),this.value="",this.navigationLink=!0,this.isOpen=!1,this.uniqueIds=[],this.isHovering=!1,this.handleClickOutside=t=>{let r=t.target;this.contains(r)||(this.isOpen=!1)}}raiseEvent(){let e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}firstUpdated(){this.moveLightDomChildrenInto(this.querySelector("div[part=content-slot]"),[this._content]),this.moveLightDomChildrenInto(this.querySelector("div[part=button-slot]"),[this._button])}closeAllMenus(){document.querySelectorAll("rtg-navigation-menu-item").forEach(e=>{e.isOpen=!1,e.isHovering=!1})}toggleMenubar(e){e.stopPropagation(),document.querySelectorAll("rtg-navigation-menu-item").forEach(t=>{t!==this&&(t.isOpen=!1)}),this.isOpen=!this.isOpen}get _content(){return this.querySelector("rtg-navigation-menu-content")}get _button(){return this.querySelector("rtg-navigation-menu-trigger")}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"close")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside),super.disconnectedCallback()}handleHover(){this.closeAllMenus(),this.isHovering||(this.isHovering=!0,this.isOpen=!0)}handleMouseLeave(){this.isHovering=!1,this.isOpen=!1}createRenderRoot(){return this}render(){return d`
4575
4575
  <li
4576
4576
  @mouseenter="${this.handleHover}"
4577
4577
  @mouseleave="${this.handleMouseLeave}"
@@ -4579,7 +4579,7 @@ body {
4579
4579
  class="${b("rtg-relative",this.className)}"
4580
4580
  >
4581
4581
  ${this.navigationLink?d`<div
4582
- class=${b(yr.menuItem)}
4582
+ class=${b(wr.menuItem)}
4583
4583
  @click="${this.toggleMenubar}"
4584
4584
  >
4585
4585
  <div part="button-slot"></div>
@@ -4593,7 +4593,7 @@ body {
4593
4593
  stroke-width="2"
4594
4594
  stroke-linecap="round"
4595
4595
  stroke-linejoin="round"
4596
- class=${b(yr.menuItemIcon,this.isOpen?"rtg-rotate-180":"")}
4596
+ class=${b(wr.menuItemIcon,this.isOpen?"rtg-rotate-180":"")}
4597
4597
  aria-hidden="true"
4598
4598
  >
4599
4599
  <path d="m6 9 6 6 6-6"></path>
@@ -4601,16 +4601,16 @@ body {
4601
4601
  </div>
4602
4602
  <div part="content-slot" style="position:absolute"></div>`:""}
4603
4603
  </li>
4604
- `}};l([a({type:String}),c("design:type",String)],Ae.prototype,"value",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Ae.prototype,"navigationLink",void 0),l([x(),c("design:type",Object)],Ae.prototype,"isOpen",void 0),l([x(),c("design:type",Array)],Ae.prototype,"uniqueIds",void 0),l([x(),c("design:type",Object)],Ae.prototype,"isHovering",void 0),Ae=l([p("rtg-navigation-menu-item")],Ae);var Tr=class extends _{constructor(...e){super(...e),this.state="close",this.id="",this.side="bottom",this.isOpen=!0}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof Ae);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=navigation-menu-content-container]")}getAttributesToExclude(){return["data-testid"]}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){let t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}render(){return d`
4604
+ `}};l([a({type:String}),c("design:type",String)],Ae.prototype,"value",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Ae.prototype,"navigationLink",void 0),l([x(),c("design:type",Object)],Ae.prototype,"isOpen",void 0),l([x(),c("design:type",Array)],Ae.prototype,"uniqueIds",void 0),l([x(),c("design:type",Object)],Ae.prototype,"isHovering",void 0),Ae=l([u("rtg-navigation-menu-item")],Ae);var Lr=class extends _{constructor(...e){super(...e),this.state="close",this.id="",this.side="bottom",this.isOpen=!0}get _menubarMenu(){let e=this.parentElement;for(;e&&!(e instanceof Ae);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=navigation-menu-content-container]")}getAttributesToExclude(){return["data-testid"]}connectedCallback(){super.connectedCallback(),this.isOpen&&document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}updated(e){super.updated(e),this.state==="open"?this.isOpen=!0:this.isOpen=!1,e.has("isOpen")&&(this.isOpen?document.addEventListener("mousedown",this.handleClickOutside):document.removeEventListener("mousedown",this.handleClickOutside))}handleClickOutside(e){let t=this.querySelector("button");this&&!this.contains(e.target)&&!(t!=null&&t.contains(e.target))&&(this.isOpen=!1)}createRenderRoot(){return this}firstUpdated(e){requestAnimationFrame(()=>{this.moveLightDomChildrenInto(this._containerElement)})}render(){return d`
4605
4605
  <div
4606
- class="${b(yr.content,this.className)}"
4606
+ class="${b(wr.content,this.className)}"
4607
4607
  style="display: ${this.isOpen?"block":"none"};top:0px;left:0px;"
4608
4608
  part="navigation-menu-content"
4609
4609
  >
4610
4610
  <div
4611
4611
  data-state="${this.isOpen}"
4612
4612
  data-orientation="horizontal"
4613
- class="${b(yr.contentContainer,this.className)}"
4613
+ class="${b(wr.contentContainer,this.className)}"
4614
4614
  >
4615
4615
  <div
4616
4616
  id="${this.id}"
@@ -4621,33 +4621,33 @@ body {
4621
4621
  ></div>
4622
4622
  </div>
4623
4623
  </div>
4624
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Tr.prototype,"state",void 0),l([a({type:String}),c("design:type",Object)],Tr.prototype,"id",void 0),l([a({type:String}),c("design:type",Object)],Tr.prototype,"side",void 0),l([x(),c("design:type",Object)],Tr.prototype,"isOpen",void 0),Tr=l([p("rtg-navigation-menu-content")],Tr);var Io=class extends _{constructor(...e){super(...e),this.href="/"}get _containerElement(){return this.querySelector("a[part=navigation-menu-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4624
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Lr.prototype,"state",void 0),l([a({type:String}),c("design:type",Object)],Lr.prototype,"id",void 0),l([a({type:String}),c("design:type",Object)],Lr.prototype,"side",void 0),l([x(),c("design:type",Object)],Lr.prototype,"isOpen",void 0),Lr=l([u("rtg-navigation-menu-content")],Lr);var Io=class extends _{constructor(...e){super(...e),this.href="/"}get _containerElement(){return this.querySelector("a[part=navigation-menu-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4625
4625
  <a
4626
4626
  part="navigation-menu-link"
4627
- class="${b(yr.link,this.className)}"
4627
+ class="${b(wr.link,this.className)}"
4628
4628
  href="${this.href}"
4629
4629
  data-radix-collection-item=""
4630
4630
  data-tabindex=""
4631
4631
  tabindex="-1"
4632
4632
  >
4633
4633
  </a>
4634
- `}};l([a({type:String}),c("design:type",Object)],Io.prototype,"href",void 0),Io=l([p("rtg-navigation-menu-link")],Io);var Sl=class extends _{get _containerElement(){return this.querySelector("div[part=navigation-menu-trigger]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return d`
4634
+ `}};l([a({type:String}),c("design:type",Object)],Io.prototype,"href",void 0),Io=l([u("rtg-navigation-menu-link")],Io);var Sl=class extends _{get _containerElement(){return this.querySelector("div[part=navigation-menu-trigger]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}render(){return d`
4635
4635
  <div part="navigation-menu-trigger" class="${b(this.className)}"></div>
4636
- `}};Sl=l([p("rtg-navigation-menu-trigger")],Sl);var $l=class extends _{get _containerElement(){return this.querySelector("nav[part=navigation-menu]")}createRenderRoot(){return this}firstUpdated(e){}render(){return d`
4636
+ `}};Sl=l([u("rtg-navigation-menu-trigger")],Sl);var $l=class extends _{get _containerElement(){return this.querySelector("nav[part=navigation-menu]")}createRenderRoot(){return this}firstUpdated(e){}render(){return d`
4637
4637
  <nav
4638
4638
  part="navigation-menu"
4639
4639
  aria-label="Main"
4640
4640
  data-orientation="horizontal"
4641
4641
  dir="ltr"
4642
- class="${b(yr.menu,this.className)}"
4642
+ class="${b(wr.menu,this.className)}"
4643
4643
  ></nav>
4644
- `}};$l=l([p("rtg-navigation-menu")],$l);var Jt={root:["rtg-flex","rtg-justify-center","rtg-mx-auto","rtg-w-full"],content:["rtg-flex","rtg-flex-row rtg-gap-pagination-content-space-gap rtg-items-center"],item:[""],link:gi,previous:{base:["rtg-gap-pagination-previous-space-gap","rtg-px-pagination-previous-space-px sm:rtg-pl-pagination-previous-space-px"],span:["rtg-hidden sm:rtg-block"]},next:{base:["rtg-gap-pagination-next-space-gap","rtg-px-pagination-next-space-px sm:rtg-pr-pagination-next-space-px"],span:["rtg-hidden sm:rtg-block"]},ellipsis:{base:["rtg-flex rtg-justify-center rtg-items-center","rtg-size-pagination-ellipsis-space-size"],icon:["rtg-size-pagination-ellipsis-icon-space-size"],span:["rtg-sr-only"]}},Cl=class extends _{get _containerElement(){return this.querySelector("ul[part=pagination-content]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4644
+ `}};$l=l([u("rtg-navigation-menu")],$l);var Jt={root:["rtg-flex","rtg-justify-center","rtg-mx-auto","rtg-w-full"],content:["rtg-flex","rtg-flex-row rtg-gap-pagination-content-space-gap rtg-items-center"],item:[""],link:bi,previous:{base:["rtg-gap-pagination-previous-space-gap","rtg-px-pagination-previous-space-px sm:rtg-pl-pagination-previous-space-px"],span:["rtg-hidden sm:rtg-block"]},next:{base:["rtg-gap-pagination-next-space-gap","rtg-px-pagination-next-space-px sm:rtg-pr-pagination-next-space-px"],span:["rtg-hidden sm:rtg-block"]},ellipsis:{base:["rtg-flex rtg-justify-center rtg-items-center","rtg-size-pagination-ellipsis-space-size"],icon:["rtg-size-pagination-ellipsis-icon-space-size"],span:["rtg-sr-only"]}},Cl=class extends _{get _containerElement(){return this.querySelector("ul[part=pagination-content]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4645
4645
  <ul
4646
4646
  data-slot="pagination-content"
4647
4647
  part="pagination-content"
4648
4648
  class=${b(Jt.content,this.className)}
4649
4649
  ></ul>
4650
- `}};Cl=l([p("rtg-pagination-content")],Cl);var El=class extends _{get _containerElement(){return this.querySelector("span[part=pagination-ellipsis]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4650
+ `}};Cl=l([u("rtg-pagination-content")],Cl);var El=class extends _{get _containerElement(){return this.querySelector("span[part=pagination-ellipsis]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4651
4651
  <span
4652
4652
  aria-hidden
4653
4653
  data-slot="pagination-ellipsis"
@@ -4673,7 +4673,7 @@ body {
4673
4673
 
4674
4674
  <span class=${b(Jt.ellipsis.span)}>More pages</span>
4675
4675
  </span>
4676
- `}};El=l([p("rtg-pagination-ellipsis")],El);var kl,tr=class extends _{constructor(...e){super(...e),this.state="close",this.isActive=!1,this.size="icon",this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("a[part=pagination-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){super.updated(e),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return d`
4676
+ `}};El=l([u("rtg-pagination-ellipsis")],El);var kl,er=class extends _{constructor(...e){super(...e),this.state="close",this.isActive=!1,this.size="icon",this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("a[part=pagination-link]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}updated(e){super.updated(e),this.state==="open"?this.isActive=!0:this.isActive=!1}render(){return d`
4677
4677
  <a
4678
4678
  aria-current=${this.isActive?"page":void 0}
4679
4679
  data-slot="pagination-link"
@@ -4684,14 +4684,14 @@ body {
4684
4684
  class=${b(Jt.link({variant:this.isActive?"outline":"ghost",size:this.size}),this.className)}
4685
4685
  >
4686
4686
  </a>
4687
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],tr.prototype,"state",void 0),l([a({type:Boolean}),c("design:type",Boolean)],tr.prototype,"isActive",void 0),l([a({type:String}),c("design:type",typeof(kl=typeof Exclude<"u"&&Exclude)=="function"?kl:Object)],tr.prototype,"size",void 0),l([a({type:String}),c("design:type",String)],tr.prototype,"href",void 0),tr=l([p("rtg-pagination-link")],tr);var Wi=class extends _{constructor(...e){super(...e),this.uniqueIds=[],this.isActive=!1}get _containerElement(){return this.querySelector("li[part=pagination-item]")}get _content(){var t;let e=(t=this._containerElement)==null?void 0:t.children;if(e){for(let r=0;r<e.length;r++)if(e[r]instanceof tr)return e[r]}return null}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isActive?"open":"close")}handleClick(e){e.stopPropagation(),document.querySelectorAll("rtg-pagination-item").forEach(t=>{t!==this&&(t.isActive=!1)}),this.isActive=!this.isActive}firstUpdated(){var r;this.moveLightDomChildrenInto(this._containerElement);let e=(r=this._containerElement)==null?void 0:r.children,t=[];for(let i=0;i<e.length-1;i+=1){let s=e[i],o=crypto.randomUUID();t.push(o),s.dataset.pairId=o}this.uniqueIds=t,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}raiseEvent(){let e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}createRenderRoot(){return this}render(){return d`
4687
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],er.prototype,"state",void 0),l([a({type:Boolean}),c("design:type",Boolean)],er.prototype,"isActive",void 0),l([a({type:String}),c("design:type",typeof(kl=typeof Exclude<"u"&&Exclude)=="function"?kl:Object)],er.prototype,"size",void 0),l([a({type:String}),c("design:type",String)],er.prototype,"href",void 0),er=l([u("rtg-pagination-link")],er);var Ki=class extends _{constructor(...e){super(...e),this.uniqueIds=[],this.isActive=!1}get _containerElement(){return this.querySelector("li[part=pagination-item]")}get _content(){var t;let e=(t=this._containerElement)==null?void 0:t.children;if(e){for(let r=0;r<e.length;r++)if(e[r]instanceof er)return e[r]}return null}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isActive?"open":"close")}handleClick(e){e.stopPropagation(),document.querySelectorAll("rtg-pagination-item").forEach(t=>{t!==this&&(t.isActive=!1)}),this.isActive=!this.isActive}firstUpdated(){var r;this.moveLightDomChildrenInto(this._containerElement);let e=(r=this._containerElement)==null?void 0:r.children,t=[];for(let i=0;i<e.length-1;i+=1){let s=e[i],o=crypto.randomUUID();t.push(o),s.dataset.pairId=o}this.uniqueIds=t,this._content&&this._content.removeEventListener("unique-ids-generated",()=>{this.requestUpdate()})}raiseEvent(){let e=new CustomEvent("unique-ids-generated",{detail:{ids:this.uniqueIds},bubbles:!0,composed:!0});this.dispatchEvent(e)}createRenderRoot(){return this}render(){return d`
4688
4688
  <li
4689
4689
  data-slot="pagination-item"
4690
4690
  part="pagination-item"
4691
4691
  class=${b(Jt.item,this.className)}
4692
4692
  @click="${this.handleClick}"
4693
4693
  ></li>
4694
- `}};l([x(),c("design:type",Array)],Wi.prototype,"uniqueIds",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Wi.prototype,"isActive",void 0),Wi=l([p("rtg-pagination-item")],Wi);var Oo=class extends _{constructor(...e){super(...e),this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("div[part=pagination-next]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4694
+ `}};l([x(),c("design:type",Array)],Ki.prototype,"uniqueIds",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Ki.prototype,"isActive",void 0),Ki=l([u("rtg-pagination-item")],Ki);var Oo=class extends _{constructor(...e){super(...e),this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("div[part=pagination-next]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4695
4695
  <rtg-pagination-link
4696
4696
  aria-label="Go to next page"
4697
4697
  size="default"
@@ -4717,7 +4717,7 @@ body {
4717
4717
 
4718
4718
  <div part="pagination-next"></div>
4719
4719
  </rtg-pagination-link>
4720
- `}};l([a({type:String}),c("design:type",String)],Oo.prototype,"href",void 0),Oo=l([p("rtg-pagination-next")],Oo);var Ao=class extends _{constructor(...e){super(...e),this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("div[part=pagination-previous]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4720
+ `}};l([a({type:String}),c("design:type",String)],Oo.prototype,"href",void 0),Oo=l([u("rtg-pagination-next")],Oo);var Ao=class extends _{constructor(...e){super(...e),this.href="javascript:void(0)"}get _containerElement(){return this.querySelector("div[part=pagination-previous]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4721
4721
  <rtg-pagination-link
4722
4722
  aria-label="Go to previous page"
4723
4723
  size="default"
@@ -4743,7 +4743,7 @@ body {
4743
4743
 
4744
4744
  <div part="pagination-previous"></div>
4745
4745
  </rtg-pagination-link>
4746
- `}};l([a({type:String}),c("design:type",String)],Ao.prototype,"href",void 0),Ao=l([p("rtg-pagination-previous")],Ao);var Rl=class extends _{get _containerElement(){return this.querySelector("nav[part=pagination]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4746
+ `}};l([a({type:String}),c("design:type",String)],Ao.prototype,"href",void 0),Ao=l([u("rtg-pagination-previous")],Ao);var Rl=class extends _{get _containerElement(){return this.querySelector("nav[part=pagination]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4747
4747
  <nav
4748
4748
  role="navigation"
4749
4749
  aria-label="pagination"
@@ -4751,7 +4751,7 @@ body {
4751
4751
  part="pagination"
4752
4752
  class=${b(Jt.root,this.className)}
4753
4753
  ></nav>
4754
- `}};Rl=l([p("rtg-pagination")],Rl);var lt=class extends v{constructor(...e){super(...e),this.id="",this._showPassword=!1,this._handleToggle=()=>{this._showPassword=!this._showPassword}}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id"))}firstUpdated(){this._inputId=this.id,this.removeAttribute("id")}_renderIcon(){return this._showPassword?d`
4754
+ `}};Rl=l([u("rtg-pagination")],Rl);var lt=class extends v{constructor(...e){super(...e),this.id="",this._showPassword=!1,this._handleToggle=()=>{this._showPassword=!this._showPassword}}createRenderRoot(){return this}updated(e){e.has("id")&&(this.id&&(this._inputId=this.id),this.removeAttribute("id"))}firstUpdated(){this._inputId=this.id,this.removeAttribute("id")}_renderIcon(){return this._showPassword?d`
4755
4755
  <svg
4756
4756
  data-slot="password-input-icon"
4757
4757
  xmlns="http://www.w3.org/2000/svg"
@@ -4837,7 +4837,7 @@ body {
4837
4837
  </rtg-input-group-button>
4838
4838
  </rtg-input-group-addon>
4839
4839
  </rtg-input-group>
4840
- `}};l([a({type:String}),c("design:type",Object)],lt.prototype,"autocomplete",void 0),l([a({type:Boolean}),c("design:type",Boolean)],lt.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],lt.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],lt.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],lt.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],lt.prototype,"minlength",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"pattern",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],lt.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],lt.prototype,"required",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onClick",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onBlur",void 0),l([x(),c("design:type",Object)],lt.prototype,"_showPassword",void 0),lt=l([p("rtg-password-input")],lt);var Il={root:["rtg-relative rtg-overflow-hidden","rtg-w-progress-space-w rtg-h-progress-space-h","rtg-bg-progress-color-bg","rtg-rounded-progress-radius"],indicator:["rtg-flex-1","rtg-w-progress-indicator-space-w rtg-h-progress-indicator-space-h","rtg-bg-progress-indicator-color-bg","rtg-transition-all"]},Po=class extends v{constructor(...e){super(...e),this.value=15}createRenderRoot(){return this}render(){return d`
4840
+ `}};l([a({type:String}),c("design:type",Object)],lt.prototype,"autocomplete",void 0),l([a({type:Boolean}),c("design:type",Boolean)],lt.prototype,"disabled",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"form",void 0),l([a({type:String}),c("design:type",Object)],lt.prototype,"id",void 0),l([a({type:Boolean}),c("design:type",Boolean)],lt.prototype,"invalid",void 0),l([a({type:Number}),c("design:type",Number)],lt.prototype,"maxlength",void 0),l([a({type:Number}),c("design:type",Number)],lt.prototype,"minlength",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"name",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"pattern",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"placeholder",void 0),l([a({type:Boolean}),c("design:type",Boolean)],lt.prototype,"readonly",void 0),l([a({type:Boolean}),c("design:type",Boolean)],lt.prototype,"required",void 0),l([a({type:String}),c("design:type",String)],lt.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onClick",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onInput",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onChange",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onFocus",void 0),l([a({attribute:!1}),c("design:type",Function)],lt.prototype,"onBlur",void 0),l([x(),c("design:type",Object)],lt.prototype,"_showPassword",void 0),lt=l([u("rtg-password-input")],lt);var Il={root:["rtg-relative rtg-overflow-hidden","rtg-w-progress-space-w rtg-h-progress-space-h","rtg-bg-progress-color-bg","rtg-rounded-progress-radius"],indicator:["rtg-flex-1","rtg-w-progress-indicator-space-w rtg-h-progress-indicator-space-h","rtg-bg-progress-indicator-color-bg","rtg-transition-all"]},Po=class extends v{constructor(...e){super(...e),this.value=15}createRenderRoot(){return this}render(){return d`
4841
4841
  <div
4842
4842
  part="progress"
4843
4843
  aria-valuenow="${this.value}"
@@ -4855,7 +4855,7 @@ body {
4855
4855
  style="transform: translateX(-${100-(this.value||0)}%);"
4856
4856
  ></div>
4857
4857
  </div>
4858
- `}};l([a({type:Number}),c("design:type",Number)],Po.prototype,"value",void 0),Po=l([p("rtg-progress")],Po);var ci={root:["rtg-grid","rtg-gap-radio-group-space-gap"],item:{wrapper:["rtg-inline-flex","rtg-justify-center rtg-items-center","rtg-size-radio-group-item-space-size"],item:["rtg-aspect-square","rtg-shrink-0","rtg-size-radio-group-item-space-size","rtg-bg-radio-group-item-color-bg","rtg-rounded-radio-group-item-radius rtg-border-radio-group-item-width-border rtg-border-radio-group-item-color-border rtg-outline-none","rtg-transition-[color,box-shadow]","focus-visible:rtg-border-radio-group-item-color-border-focus focus-visible:rtg-ring-radio-group-item-width-ring-focus focus-visible:rtg-ring-radio-group-item-color-ring-focus","disabled:rtg-opacity-radio-group-item-opacity-disabled disabled:rtg-cursor-not-allowed","aria-invalid:rtg-border-radio-group-item-color-border-invalid aria-invalid:rtg-ring-radio-group-item-width-ring-invalid aria-invalid:rtg-ring-radio-group-item-color-ring-invalid"],indicator:["rtg-flex rtg-relative","rtg-justify-center rtg-items-center"],icon:["rtg-absolute rtg-top-1/2 rtg-left-1/2","rtg-size-radio-group-indicator-space-size","rtg--translate-x-1/2 rtg--translate-y-1/2","rtg-fill-radio-group-indicator-color-fill"]}},au="unChecked",me=class extends _{constructor(...e){super(...e),this.checked=!1,this.tabindex=0,this.value="",this.id="radio-group-item",this.state=au,this.disabled=!1,this.invalid=!1}get _containerElement(){return this.querySelector("button[part=radio-group-item]")}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this.classList=b(ci.item.wrapper),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4858
+ `}};l([a({type:Number}),c("design:type",Number)],Po.prototype,"value",void 0),Po=l([u("rtg-progress")],Po);var pi={root:["rtg-grid","rtg-gap-radio-group-space-gap"],item:{wrapper:["rtg-inline-flex","rtg-justify-center rtg-items-center","rtg-size-radio-group-item-space-size"],item:["rtg-aspect-square","rtg-shrink-0","rtg-size-radio-group-item-space-size","rtg-bg-radio-group-item-color-bg","rtg-rounded-radio-group-item-radius rtg-border-radio-group-item-width-border rtg-border-radio-group-item-color-border rtg-outline-none","rtg-transition-[color,box-shadow]","focus-visible:rtg-border-radio-group-item-color-border-focus focus-visible:rtg-ring-radio-group-item-width-ring-focus focus-visible:rtg-ring-radio-group-item-color-ring-focus","disabled:rtg-opacity-radio-group-item-opacity-disabled disabled:rtg-cursor-not-allowed","aria-invalid:rtg-border-radio-group-item-color-border-invalid aria-invalid:rtg-ring-radio-group-item-width-ring-invalid aria-invalid:rtg-ring-radio-group-item-color-ring-invalid"],indicator:["rtg-flex rtg-relative","rtg-justify-center rtg-items-center"],icon:["rtg-absolute rtg-top-1/2 rtg-left-1/2","rtg-size-radio-group-indicator-space-size","rtg--translate-x-1/2 rtg--translate-y-1/2","rtg-fill-radio-group-indicator-color-fill"]}},ap="unChecked",me=class extends _{constructor(...e){super(...e),this.checked=!1,this.tabindex=0,this.value="",this.id="radio-group-item",this.state=ap,this.disabled=!1,this.invalid=!1}get _containerElement(){return this.querySelector("button[part=radio-group-item]")}_onClick(e){e.defaultPrevented||this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent("radio-selected",{bubbles:!0,composed:!0})))}createRenderRoot(){return this.classList=b(pi.item.wrapper),this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
4859
4859
  <button
4860
4860
  type="button"
4861
4861
  part="radio-group-item"
@@ -4866,14 +4866,14 @@ body {
4866
4866
  value="${this.value}"
4867
4867
  ?disabled=${this.disabled}
4868
4868
  @click="${this._onClick}"
4869
- class=${b(ci.item.item,this.className)}
4869
+ class=${b(pi.item.item,this.className)}
4870
4870
  id="${this.id}"
4871
4871
  tabindex="${this.tabindex}"
4872
4872
  >
4873
4873
  ${this.checked?d`<span
4874
4874
  data-slot="radio-group-indicator"
4875
4875
  part="radio-group-indicator"
4876
- class=${b(ci.item.indicator)}
4876
+ class=${b(pi.item.indicator)}
4877
4877
  >
4878
4878
  <svg
4879
4879
  xmlns="http://www.w3.org/2000/svg"
@@ -4885,22 +4885,22 @@ body {
4885
4885
  stroke-width="2"
4886
4886
  stroke-linecap="round"
4887
4887
  stroke-linejoin="round"
4888
- class=${b(ci.item.icon,"lucide lucide-circle-icon lucide-circle")}
4888
+ class=${b(pi.item.icon,"lucide lucide-circle-icon lucide-circle")}
4889
4889
  >
4890
4890
  <circle cx="12" cy="12" r="10" />
4891
4891
  </svg>
4892
4892
  </span>`:m}
4893
4893
  </button>
4894
- `}};l([a({type:Boolean,reflect:!0}),c("design:type",Object)],me.prototype,"checked",void 0),l([a({type:Number}),c("design:type",Object)],me.prototype,"tabindex",void 0),l([a({type:String}),c("design:type",Object)],me.prototype,"value",void 0),l([a({type:String}),c("design:type",Object)],me.prototype,"id",void 0),l([a({attribute:"data-state",type:String}),c("design:type",Object)],me.prototype,"state",void 0),l([a({type:Boolean}),c("design:type",Object)],me.prototype,"disabled",void 0),l([a({attribute:"aria-invalid",type:Boolean}),c("design:type",Object)],me.prototype,"invalid",void 0),me=l([p("rtg-radio-group-item")],me);var Fo=class extends _{constructor(...e){super(...e),this.defaultValue=""}get _containerElement(){return this.querySelector("div[part=radio-group]")}connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(t=>{t!==e.target&&(t.checked=!1)})}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return this.querySelectorAll("rtg-radio-group-item").forEach(e=>{e.checked=e.value==this.defaultValue}),d`
4894
+ `}};l([a({type:Boolean,reflect:!0}),c("design:type",Object)],me.prototype,"checked",void 0),l([a({type:Number}),c("design:type",Object)],me.prototype,"tabindex",void 0),l([a({type:String}),c("design:type",Object)],me.prototype,"value",void 0),l([a({type:String}),c("design:type",Object)],me.prototype,"id",void 0),l([a({attribute:"data-state",type:String}),c("design:type",Object)],me.prototype,"state",void 0),l([a({type:Boolean}),c("design:type",Object)],me.prototype,"disabled",void 0),l([a({attribute:"aria-invalid",type:Boolean}),c("design:type",Object)],me.prototype,"invalid",void 0),me=l([u("rtg-radio-group-item")],me);var Fo=class extends _{constructor(...e){super(...e),this.defaultValue=""}get _containerElement(){return this.querySelector("div[part=radio-group]")}connectedCallback(){super.connectedCallback(),this.addEventListener("radio-selected",this._handleRadioSelected)}_handleRadioSelected(e){this.querySelectorAll("rtg-radio-group-item").forEach(t=>{t!==e.target&&(t.checked=!1)})}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return this.querySelectorAll("rtg-radio-group-item").forEach(e=>{e.checked=e.value==this.defaultValue}),d`
4895
4895
  <div
4896
4896
  part="radio-group"
4897
- class=${b(ci.root,this.className)}
4897
+ class=${b(pi.root,this.className)}
4898
4898
  ></div>
4899
- `}};l([a({type:String}),c("design:type",Object)],Fo.prototype,"defaultValue",void 0),Fo=l([p("rtg-radio-group")],Fo);var lu=["rtg-relative","rtg-border rtg-border-scrollarea-color-border","rtg-bg-scrollarea-color-bg"],Ol,To=class extends _{createRenderRoot(){return this}firstUpdated(){this.moveLightDomChildrenInto(this.viewportEl)}render(){return d`
4899
+ `}};l([a({type:String}),c("design:type",Object)],Fo.prototype,"defaultValue",void 0),Fo=l([u("rtg-radio-group")],Fo);var lp=["rtg-relative","rtg-border rtg-border-scrollarea-color-border","rtg-bg-scrollarea-color-bg"],Ol,To=class extends _{createRenderRoot(){return this}firstUpdated(){this.moveLightDomChildrenInto(this.viewportEl)}render(){return d`
4900
4900
  <div
4901
4901
  dir="ltr"
4902
4902
  data-slot="scroll-area"
4903
- class=${b(lu,this.className)}
4903
+ class=${b(lp,this.className)}
4904
4904
  >
4905
4905
  <style>
4906
4906
  [data-radix-scroll-area-viewport] {
@@ -4933,7 +4933,7 @@ body {
4933
4933
  style="overflow: hidden scroll;"
4934
4934
  ></div>
4935
4935
  </div>
4936
- `}};l([Ci("[data-radix-scroll-area-viewport]"),c("design:type",typeof(Ol=typeof HTMLElement<"u"&&HTMLElement)=="function"?Ol:Object)],To.prototype,"viewportEl",void 0),To=l([p("rtg-scroll-area")],To);var du=class{constructor(){this.state={isOpen:!1,selectedValue:"",selectedText:""},this.listeners=new Set}subscribe(e){this.listeners.add(e)}unsubscribe(e){this.listeners.delete(e)}notify(){this.listeners.forEach(e=>e())}get isOpen(){return this.state.isOpen}get selectedValue(){return this.state.selectedValue}get selectedText(){return this.state.selectedText}open(){this.state.isOpen||(this.state.isOpen=!0,this.notify())}close(){this.state.isOpen&&(this.state.isOpen=!1,this.notify())}toggle(){this.state.isOpen=!this.state.isOpen,this.notify()}select(e,t,r){this.state.selectedValue=e,this.state.selectedText=t,this.state.isOpen=!1,this.notify()}},Qt={root:[""],value:["rtg-flex","rtg-gap-select-value-space-gap rtg-items-center","rtg-line-clamp-1"],trigger:{trigger:["rtg-flex","rtg-gap-select-trigger-space-gap rtg-justify-between rtg-items-center","rtg-px-select-trigger-space-px rtg-py-select-trigger-space-py","rtg-w-full rtg-h-select-trigger-space-h","rtg-text-select-trigger-font rtg-whitespace-nowrap","rtg-bg-select-trigger-color-bg","rtg-rounded-select-trigger-radius rtg-border-select-trigger-width-border rtg-border-select-trigger-color-border rtg-outline-none","rtg-transition-[color,box-shadow]","hover:rtg-bg-select-trigger-color-bg-hover","focus-visible:rtg-border-select-trigger-color-border-focus focus-visible:rtg-ring-select-trigger-width-ring-focus focus-visible:rtg-ring-select-trigger-color-ring-focus","disabled:rtg-opacity-select-trigger-opacity-disabled disabled:rtg-cursor-not-allowed","aria-invalid:rtg-border-select-trigger-color-border-invalid aria-invalid:rtg-ring-select-trigger-width-ring-invalid aria-invalid:rtg-ring-select-trigger-color-ring-invalid","data-[placeholder]:rtg-text-select-trigger-placeholder-color-text"],icon:["rtg-shrink-0","rtg-size-select-trigger-icon-space-size","rtg-text-select-trigger-icon-color-text","rtg-opacity-select-trigger-icon-opacity","rtg-pointer-events-none"]},content:{content:["rtg-absolute rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-w-fit","rtg-text-select-content-color-text","rtg-bg-select-content-color-bg","rtg-rounded-select-content-radius rtg-border-select-content-width-border rtg-border-select-content-color-border","rtg-shadow-select-content-shadow","rtg-slide-in-from-top-2","rtg-translate-y-1","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],viewport:["rtg-p-select-content-viewport-space-p","rtg-w-full","rtg-scroll-my-1"]},label:["rtg-px-select-label-space-px rtg-py-select-label-space-py","rtg-text-select-label-font rtg-text-select-label-color-text"],item:{item:["rtg-flex rtg-relative","rtg-gap-select-item-space-gap rtg-items-center","rtg-pl-select-item-space-pl rtg-pr-select-item-space-pr rtg-py-select-item-space-py","rtg-w-full","rtg-text-select-item-font","rtg-rounded-select-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","hover:rtg-text-select-item-color-text-hover hover:rtg-bg-select-item-color-bg-hover","focus:rtg-text-select-item-color-text-focus focus:rtg-bg-select-item-color-bg-focus","data-[disabled]:rtg-opacity-select-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-right-2","rtg-justify-center rtg-items-center","rtg-size-select-item-indicator-space-size"],icon:["rtg-shrink-0","rtg-size-select-item-icon-space-size","rtg-text-select-item-icon-color-text","rtg-pointer-events-none"]},separator:["rtg-mx-select-separator-space-mx rtg-my-select-separator-space-my","rtg-h-select-separator-space-h","rtg-bg-select-separator-color-bg","rtg-pointer-events-none"]},Lo=class extends _{constructor(...e){super(...e),this.focusedIndex=0,this.childrenArray=[],this.onStoreChange=()=>{let t=this._containerElement;t&&(t.style.display=this._select.selectStore.isOpen?"block":"none",this._contentDiv&&(this._contentDiv.style.display=this._select.selectStore.isOpen?"block":"none",this._select.selectStore.isOpen&&requestAnimationFrame(()=>{this.updateTriggerWidth()}))),this._select.selectStore.isOpen&&this._select.selectStore.selectedValue&&(this.focusedIndex=this.childrenArray.findIndex(r=>r.value===this._select.selectStore.selectedValue)),this.updateFocusedItem(),this.requestUpdate()},this.handleKeyDown=t=>{var r;if(this._select.selectStore.isOpen)switch(t.preventDefault(),t.key){case"ArrowDown":this.focusedIndex=(this.focusedIndex+1)%this.childrenArray.length,this.updateFocusedItem();break;case"ArrowUp":this.focusedIndex=(this.focusedIndex-1+this.childrenArray.length)%this.childrenArray.length,this.updateFocusedItem();break;case"Enter":let i=this.childrenArray[this.focusedIndex],s=i.value,o=((r=i.textContent)==null?void 0:r.trim())||"";this._select.selectStore.select(s,o);break}}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Hr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange),document.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}getTriggerButton(){let e=this._select;return e?e.querySelector("button[part=select-trigger]"):null}updateTriggerWidth(){let e=this.getTriggerButton(),t=this._contentDiv;if(e&&t){let r=e.offsetWidth;if(r>0){let i=Math.max(128,r);t.style.setProperty("--select-trigger-width",`${r}px`),t.style.setProperty("min-width",`${i}px`)}}}get _containerElement(){return this.querySelector("div[part=select-viewport]")}get _contentDiv(){return this.querySelector("div[data-slot=select-content]")}firstUpdated(){let e=Array.from(this.children).filter(t=>t.tagName.toLowerCase()==="rtg-select-item");this.childrenArray=e,e.forEach((t,r)=>{t.tabIndex=r,t.selectItemIndex=r,t.isFocus=r===this.focusedIndex||t.value===this._select.selectStore.selectedValue,t.addEventListener("mouseover",i=>this.handleMouseOver(i,r))}),this.moveLightDomChildrenInto(this._containerElement),requestAnimationFrame(()=>{this.updateTriggerWidth()})}updateFocusedItem(){this.childrenArray.forEach((e,t)=>{var r;e.isFocus=t===this.focusedIndex,(r=e.requestUpdate)==null||r.call(e)})}handleMouseOver(e,t){e.preventDefault(),this.focusedIndex=t}createRenderRoot(){return this}render(){return d`
4936
+ `}};l([ki("[data-radix-scroll-area-viewport]"),c("design:type",typeof(Ol=typeof HTMLElement<"u"&&HTMLElement)=="function"?Ol:Object)],To.prototype,"viewportEl",void 0),To=l([u("rtg-scroll-area")],To);var dp=class{constructor(){this.state={isOpen:!1,selectedValue:"",selectedText:""},this.listeners=new Set}subscribe(e){this.listeners.add(e)}unsubscribe(e){this.listeners.delete(e)}notify(){this.listeners.forEach(e=>e())}get isOpen(){return this.state.isOpen}get selectedValue(){return this.state.selectedValue}get selectedText(){return this.state.selectedText}open(){this.state.isOpen||(this.state.isOpen=!0,this.notify())}close(){this.state.isOpen&&(this.state.isOpen=!1,this.notify())}toggle(){this.state.isOpen=!this.state.isOpen,this.notify()}select(e,t,r){this.state.selectedValue=e,this.state.selectedText=t,this.state.isOpen=!1,this.notify()}},Qt={root:[""],value:["rtg-flex","rtg-gap-select-value-space-gap rtg-items-center","rtg-line-clamp-1"],trigger:{trigger:["rtg-flex","rtg-gap-select-trigger-space-gap rtg-justify-between rtg-items-center","rtg-px-select-trigger-space-px rtg-py-select-trigger-space-py","rtg-w-full rtg-h-select-trigger-space-h","rtg-text-select-trigger-font rtg-whitespace-nowrap","rtg-bg-select-trigger-color-bg","rtg-rounded-select-trigger-radius rtg-border-select-trigger-width-border rtg-border-select-trigger-color-border rtg-outline-none","rtg-transition-[color,box-shadow]","hover:rtg-bg-select-trigger-color-bg-hover","focus-visible:rtg-border-select-trigger-color-border-focus focus-visible:rtg-ring-select-trigger-width-ring-focus focus-visible:rtg-ring-select-trigger-color-ring-focus","disabled:rtg-opacity-select-trigger-opacity-disabled disabled:rtg-cursor-not-allowed","aria-invalid:rtg-border-select-trigger-color-border-invalid aria-invalid:rtg-ring-select-trigger-width-ring-invalid aria-invalid:rtg-ring-select-trigger-color-ring-invalid","data-[placeholder]:rtg-text-select-trigger-placeholder-color-text"],icon:["rtg-shrink-0","rtg-size-select-trigger-icon-space-size","rtg-text-select-trigger-icon-color-text","rtg-opacity-select-trigger-icon-opacity","rtg-pointer-events-none"]},content:{content:["rtg-absolute rtg-overflow-x-hidden rtg-overflow-y-auto rtg-z-50","rtg-w-fit","rtg-text-select-content-color-text","rtg-bg-select-content-color-bg","rtg-rounded-select-content-radius rtg-border-select-content-width-border rtg-border-select-content-color-border","rtg-shadow-select-content-shadow","rtg-slide-in-from-top-2","rtg-translate-y-1","data-[state=open]:rtg-animate-in data-[state=open]:rtg-fade-in-0 data-[state=open]:rtg-zoom-in-95","data-[state=closed]:rtg-animate-out data-[state=closed]:rtg-fade-out-0 data-[state=closed]:rtg-zoom-out-95"],viewport:["rtg-p-select-content-viewport-space-p","rtg-w-full","rtg-scroll-my-1"]},label:["rtg-px-select-label-space-px rtg-py-select-label-space-py","rtg-text-select-label-font rtg-text-select-label-color-text"],item:{item:["rtg-flex rtg-relative","rtg-gap-select-item-space-gap rtg-items-center","rtg-pl-select-item-space-pl rtg-pr-select-item-space-pr rtg-py-select-item-space-py","rtg-w-full","rtg-text-select-item-font","rtg-rounded-select-item-radius rtg-outline-hidden","rtg-cursor-default rtg-select-none","hover:rtg-text-select-item-color-text-hover hover:rtg-bg-select-item-color-bg-hover","focus:rtg-text-select-item-color-text-focus focus:rtg-bg-select-item-color-bg-focus","data-[disabled]:rtg-opacity-select-item-opacity-disabled data-[disabled]:rtg-pointer-events-none"],indicator:["rtg-flex rtg-absolute rtg-right-2","rtg-justify-center rtg-items-center","rtg-size-select-item-indicator-space-size"],icon:["rtg-shrink-0","rtg-size-select-item-icon-space-size","rtg-text-select-item-icon-color-text","rtg-pointer-events-none"]},separator:["rtg-mx-select-separator-space-mx rtg-my-select-separator-space-my","rtg-h-select-separator-space-h","rtg-bg-select-separator-color-bg","rtg-pointer-events-none"]},Lo=class extends _{constructor(...e){super(...e),this.focusedIndex=0,this.childrenArray=[],this.onStoreChange=()=>{let t=this._containerElement;t&&(t.style.display=this._select.selectStore.isOpen?"block":"none",this._contentDiv&&(this._contentDiv.style.display=this._select.selectStore.isOpen?"block":"none",this._select.selectStore.isOpen&&requestAnimationFrame(()=>{this.updateTriggerWidth()}))),this._select.selectStore.isOpen&&this._select.selectStore.selectedValue&&(this.focusedIndex=this.childrenArray.findIndex(r=>r.value===this._select.selectStore.selectedValue)),this.updateFocusedItem(),this.requestUpdate()},this.handleKeyDown=t=>{var r;if(this._select.selectStore.isOpen)switch(t.preventDefault(),t.key){case"ArrowDown":this.focusedIndex=(this.focusedIndex+1)%this.childrenArray.length,this.updateFocusedItem();break;case"ArrowUp":this.focusedIndex=(this.focusedIndex-1+this.childrenArray.length)%this.childrenArray.length,this.updateFocusedItem();break;case"Enter":let i=this.childrenArray[this.focusedIndex],s=i.value,o=((r=i.textContent)==null?void 0:r.trim())||"";this._select.selectStore.select(s,o);break}}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Gr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange),document.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}getTriggerButton(){let e=this._select;return e?e.querySelector("button[part=select-trigger]"):null}updateTriggerWidth(){let e=this.getTriggerButton(),t=this._contentDiv;if(e&&t){let r=e.offsetWidth;if(r>0){let i=Math.max(128,r);t.style.setProperty("--select-trigger-width",`${r}px`),t.style.setProperty("min-width",`${i}px`)}}}get _containerElement(){return this.querySelector("div[part=select-viewport]")}get _contentDiv(){return this.querySelector("div[data-slot=select-content]")}firstUpdated(){let e=Array.from(this.children).filter(t=>t.tagName.toLowerCase()==="rtg-select-item");this.childrenArray=e,e.forEach((t,r)=>{t.tabIndex=r,t.selectItemIndex=r,t.isFocus=r===this.focusedIndex||t.value===this._select.selectStore.selectedValue,t.addEventListener("mouseover",i=>this.handleMouseOver(i,r))}),this.moveLightDomChildrenInto(this._containerElement),requestAnimationFrame(()=>{this.updateTriggerWidth()})}updateFocusedItem(){this.childrenArray.forEach((e,t)=>{var r;e.isFocus=t===this.focusedIndex,(r=e.requestUpdate)==null||r.call(e)})}handleMouseOver(e,t){e.preventDefault(),this.focusedIndex=t}createRenderRoot(){return this}render(){return d`
4937
4937
  <div
4938
4938
  part="select-group"
4939
4939
  data-slot="select-content"
@@ -4945,7 +4945,7 @@ body {
4945
4945
  class=${b(Qt.content.viewport)}
4946
4946
  ></div>
4947
4947
  </div>
4948
- `}};l([x(),c("design:type",Object)],Lo.prototype,"focusedIndex",void 0),Lo=l([p("rtg-select-group")],Lo);var Ee=class extends _{constructor(...e){super(...e),this.value="",this.isSelected=!1,this.isFocus=!1,this.selectItemIndex=-1,this.onSelect=(t,r)=>{},this.class="",this._onStoreChange=()=>{var t,r;this.isSelected=this.value.toLowerCase()===((r=(t=this._select.selectStore.selectedValue)==null?void 0:t.toLowerCase)==null?void 0:r.call(t)),this.requestUpdate()},this.handleClick=t=>{t.stopPropagation();let r=this.getTextContent();this._select.selectStore.select(this.value,r),this.onSelect(this.value,this.selectItemIndex),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Hr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this._onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this._onStoreChange),super.disconnectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get _containerElement(){return this.querySelector("div[part=select-item-container]")}createRenderRoot(){return this}getTextContent(){var i,s;let e=this._containerElement;if(e&&e.textContent)return e.textContent.trim();let t=this.querySelector("[part=select-item-indicator]"),r=this.cloneNode(!0);return t&&((i=r.querySelector("[part=select-item-indicator]"))==null||i.remove()),((s=r.textContent)==null?void 0:s.trim())||""}render(){return d`
4948
+ `}};l([x(),c("design:type",Object)],Lo.prototype,"focusedIndex",void 0),Lo=l([u("rtg-select-group")],Lo);var Ee=class extends _{constructor(...e){super(...e),this.value="",this.isSelected=!1,this.isFocus=!1,this.selectItemIndex=-1,this.onSelect=(t,r)=>{},this.class="",this._onStoreChange=()=>{var t,r;this.isSelected=this.value.toLowerCase()===((r=(t=this._select.selectStore.selectedValue)==null?void 0:t.toLowerCase)==null?void 0:r.call(t)),this.requestUpdate()},this.handleClick=t=>{t.stopPropagation();let r=this.getTextContent();this._select.selectStore.select(this.value,r),this.onSelect(this.value,this.selectItemIndex),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Gr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this._onStoreChange)}disconnectedCallback(){this._select.selectStore.unsubscribe(this._onStoreChange),super.disconnectedCallback()}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get _containerElement(){return this.querySelector("div[part=select-item-container]")}createRenderRoot(){return this}getTextContent(){var i,s;let e=this._containerElement;if(e&&e.textContent)return e.textContent.trim();let t=this.querySelector("[part=select-item-indicator]"),r=this.cloneNode(!0);return t&&((i=r.querySelector("[part=select-item-indicator]"))==null||i.remove()),((s=r.textContent)==null?void 0:s.trim())||""}render(){return d`
4949
4949
  <div
4950
4950
  ${wt(this.getFilteredAttributes())}
4951
4951
  part="select-item"
@@ -4979,12 +4979,12 @@ body {
4979
4979
 
4980
4980
  <div part="select-item-container"></div>
4981
4981
  </div>
4982
- `}};l([a(),c("design:type",Object)],Ee.prototype,"value",void 0),l([a(),c("design:type",Object)],Ee.prototype,"isSelected",void 0),l([a(),c("design:type",Object)],Ee.prototype,"isFocus",void 0),l([a(),c("design:type",Object)],Ee.prototype,"selectItemIndex",void 0),l([a({type:Function}),c("design:type",Object)],Ee.prototype,"onSelect",void 0),l([a(),c("design:type",Object)],Ee.prototype,"class",void 0),Ee=l([p("rtg-select-item")],Ee);var Al=class extends _{get _containerElement(){return this.querySelector("div[part=select-label]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d`
4982
+ `}};l([a(),c("design:type",Object)],Ee.prototype,"value",void 0),l([a(),c("design:type",Object)],Ee.prototype,"isSelected",void 0),l([a(),c("design:type",Object)],Ee.prototype,"isFocus",void 0),l([a(),c("design:type",Object)],Ee.prototype,"selectItemIndex",void 0),l([a({type:Function}),c("design:type",Object)],Ee.prototype,"onSelect",void 0),l([a(),c("design:type",Object)],Ee.prototype,"class",void 0),Ee=l([u("rtg-select-item")],Ee);var Al=class extends _{get _containerElement(){return this.querySelector("div[part=select-label]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d`
4983
4983
  <div
4984
4984
  part="select-label"
4985
4985
  class=${b(Qt.label,this.className)}
4986
4986
  ></div>
4987
- `}};Al=l([p("rtg-select-label")],Al);var Ki=class extends _{constructor(...e){super(...e),this.state=pn,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d`
4987
+ `}};Al=l([u("rtg-select-label")],Al);var Yi=class extends _{constructor(...e){super(...e),this.state=un,this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=select-list]")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d`
4988
4988
  <div
4989
4989
  part="select-list"
4990
4990
  class="${b("rtg-absolute rtg-z-50 rtg-max-h-72 rtg-w-full rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-lg rtg-border rtg-border-input rtg-bg-background p-1 [&::-webkit-scrollbar-thumb]:rtg-rounded-full [&::-webkit-scrollbar-thumb]:rtg-bg-accent [&::-webkit-scrollbar-track]:rtg-bg-gray-100 [&::-webkit-scrollbar]:rtg-w-2",this.className)}"
@@ -4992,14 +4992,14 @@ body {
4992
4992
  data-state="${this.state}"
4993
4993
  style="display: ${this.isOpen?"block":"none"}; top:115%"
4994
4994
  ></div>
4995
- `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Ki.prototype,"state",void 0),l([x(),c("design:type",Object)],Ki.prototype,"isOpen",void 0),Ki=l([p("rtg-select-list")],Ki);var Yi=class extends v{constructor(...e){super(...e),this._id="",this._hidden=""}createRenderRoot(){return this}render(){return d`
4995
+ `}};l([a({attribute:"data-state",type:String}),c("design:type",Object)],Yi.prototype,"state",void 0),l([x(),c("design:type",Object)],Yi.prototype,"isOpen",void 0),Yi=l([u("rtg-select-list")],Yi);var Xi=class extends v{constructor(...e){super(...e),this._id="",this._hidden=""}createRenderRoot(){return this}render(){return d`
4996
4996
  <div
4997
4997
  rtgcmd-separator
4998
4998
  part="select-separator"
4999
4999
  role="separator"
5000
5000
  class=${b(Qt.separator,this.className)}
5001
5001
  ></div>
5002
- `}};l([a({type:String}),c("design:type",Object)],Yi.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Yi.prototype,"_hidden",void 0),Yi=l([p("rtg-select-separator")],Yi);var Pl=class extends _{constructor(...e){super(...e),this.onStoreChange=()=>{this.requestUpdate()},this.handleClick=t=>{t.stopPropagation(),this._select&&this._select.selectStore.toggle()}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Hr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),this.classObserver=new MutationObserver(()=>{this.requestUpdate()}),this.classObserver.observe(this,{attributes:!0,attributeFilter:["class"]})}disconnectedCallback(){var e;this._select.selectStore.unsubscribe(this.onStoreChange),(e=this.classObserver)==null||e.disconnect()}get _containerElement(){return this.querySelector("span[part=select-trigger-container]")}firstUpdated(e){var t;super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",this.handleClick)}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}getClassAttribute(){let e=this.getAttribute("class")||"",t=this.customClass||"",r=this.className||"";return e||t||r||""}filterConflictingWidthClasses(e,t){let r=/rtg-w-[\w-[\]]+/;return r.test(t)?e.map(i=>i.split(/\s+/).filter(s=>!r.test(s)).join(" ")):e}render(){let e=this.getClassAttribute();return d`
5002
+ `}};l([a({type:String}),c("design:type",Object)],Xi.prototype,"_id",void 0),l([a({attribute:"aria-hidden",type:String}),c("design:type",Object)],Xi.prototype,"_hidden",void 0),Xi=l([u("rtg-select-separator")],Xi);var Pl=class extends _{constructor(...e){super(...e),this.onStoreChange=()=>{this.requestUpdate()},this.handleClick=t=>{t.stopPropagation(),this._select&&this._select.selectStore.toggle()}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Gr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),this.classObserver=new MutationObserver(()=>{this.requestUpdate()}),this.classObserver.observe(this,{attributes:!0,attributeFilter:["class"]})}disconnectedCallback(){var e;this._select.selectStore.unsubscribe(this.onStoreChange),(e=this.classObserver)==null||e.disconnect()}get _containerElement(){return this.querySelector("span[part=select-trigger-container]")}firstUpdated(e){var t;super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement),(t=this._containerElement)==null||t.addEventListener("click",this.handleClick)}createRenderRoot(){return this}getAttributesToExclude(){return["data-testid"]}getClassAttribute(){let e=this.getAttribute("class")||"",t=this.customClass||"",r=this.className||"";return e||t||r||""}filterConflictingWidthClasses(e,t){let r=/rtg-w-[\w-[\]]+/;return r.test(t)?e.map(i=>i.split(/\s+/).filter(s=>!r.test(s)).join(" ")):e}render(){let e=this.getClassAttribute();return d`
5003
5003
  <button
5004
5004
  type="button"
5005
5005
  part="select-trigger"
@@ -5028,17 +5028,17 @@ body {
5028
5028
  <path d="m6 9 6 6 6-6" />
5029
5029
  </svg>
5030
5030
  </button>
5031
- `}};Pl=l([p("rtg-select-trigger")],Pl);var No=class extends _{constructor(...e){super(...e),this.placeholder="select a value",this.onStoreChange=()=>{this.requestUpdate()},this.renderLabel=()=>{if(this._select&&this._select.selectStore.selectedValue.length>0){let t=this._select.selectStore.selectedText;return t.length>0?t:this._select.selectStore.selectedValue}return this.placeholder}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Hr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()})}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange)}firstUpdated(e){super.firstUpdated(e)}createRenderRoot(){return this}render(){return d`
5031
+ `}};Pl=l([u("rtg-select-trigger")],Pl);var No=class extends _{constructor(...e){super(...e),this.placeholder="select a value",this.onStoreChange=()=>{this.requestUpdate()},this.renderLabel=()=>{if(this._select&&this._select.selectStore.selectedValue.length>0){let t=this._select.selectStore.selectedText;return t.length>0?t:this._select.selectStore.selectedValue}return this.placeholder}}get _select(){let e=this.parentElement;for(;e&&!(e instanceof Gr);)e=e.parentElement;return e}connectedCallback(){super.connectedCallback(),this._select.selectStore.subscribe(this.onStoreChange),document.addEventListener("clicked-select-item",()=>{this.requestUpdate()})}disconnectedCallback(){this._select.selectStore.unsubscribe(this.onStoreChange)}firstUpdated(e){super.firstUpdated(e)}createRenderRoot(){return this}render(){return d`
5032
5032
  <span part="select-value" class=${b(Qt.value,this.className)}>
5033
5033
  ${this.renderLabel()}
5034
5034
  </span>
5035
- `}};l([a({type:String}),c("design:type",Object)],No.prototype,"placeholder",void 0),No=l([p("rtg-select-value")],No);var Hr=class extends _{constructor(...e){super(...e),this.uuid=dn(),this.selectStore=new du,this.handleClickOutside=t=>{let r=this.querySelector("[data-select-uuid]"),i=t.target;r!=null&&r.contains(i)||this.selectStore.close()}}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){let e=this.querySelector("div[part=select]");this.moveLightDomChildrenInto(e)}createRenderRoot(){return this}render(){return d`
5035
+ `}};l([a({type:String}),c("design:type",Object)],No.prototype,"placeholder",void 0),No=l([u("rtg-select-value")],No);var Gr=class extends _{constructor(...e){super(...e),this.uuid=dn(),this.selectStore=new dp,this.handleClickOutside=t=>{let r=this.querySelector("[data-select-uuid]"),i=t.target;r!=null&&r.contains(i)||this.selectStore.close()}}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this.handleClickOutside)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleClickOutside),super.disconnectedCallback()}firstUpdated(){let e=this.querySelector("div[part=select]");this.moveLightDomChildrenInto(e)}createRenderRoot(){return this}render(){return d`
5036
5036
  <div
5037
5037
  part="select"
5038
5038
  data-select-uuid=${this.uuid}
5039
5039
  class=${b(Qt.root,this.className)}
5040
5040
  ></div>
5041
- `}};Hr=l([p("rtg-select")],Hr);var cu="rtg-bg-skeleton-color-bg rtg-animate-skeleton-animate rtg-rounded-skeleton-radius",Fl=class extends _{createRenderRoot(){return this}render(){return d` <div class=${b(cu,this.className)}></div> `}};Fl=l([p("rtg-skeleton")],Fl);var zo=class extends v{constructor(...e){super(...e),this.variant="circle"}createRenderRoot(){return this}render(){return this.variant==="basic"?d`
5041
+ `}};Gr=l([u("rtg-select")],Gr);var cp="rtg-bg-skeleton-color-bg rtg-animate-skeleton-animate rtg-rounded-skeleton-radius",Fl=class extends _{createRenderRoot(){return this}render(){return d` <div class=${b(cp,this.className)}></div> `}};Fl=l([u("rtg-skeleton")],Fl);var zo=class extends v{constructor(...e){super(...e),this.variant="circle"}createRenderRoot(){return this}render(){return this.variant==="basic"?d`
5042
5042
  <svg
5043
5043
  data-slot="spinner"
5044
5044
  data-variant="basic"
@@ -5105,7 +5105,7 @@ body {
5105
5105
  >
5106
5106
  <path d="M21 12a9 9 0 1 1-6.219-8.56" />
5107
5107
  </svg>
5108
- `}};l([a({type:String}),c("design:type",Object)],zo.prototype,"variant",void 0),zo=l([p("rtg-spinner")],zo);var Tl={root:["rtg-inline-flex","rtg-shrink-0 rtg-items-center","rtg-w-switch-space-w rtg-h-switch-space-h","rtg-rounded-switch-radius rtg-border-switch-width-border rtg-border-switch-color-border rtg-outline-none","rtg-transition-all","focus-visible:rtg-border-switch-color-border-focus focus-visible:rtg-ring-switch-width-ring-focus focus-visible:rtg-ring-switch-color-ring-focus",'data-[state="checked"]:rtg-bg-switch-color-bg-checked data-[state="unchecked"]:rtg-bg-switch-color-bg-unchecked','data-[disabled="true"]:rtg-opacity-switch-opacity-disabled data-[disabled="true"]:rtg-cursor-not-allowed'],thumb:["rtg-pointer-events-none","rtg-block","rtg-size-switch-thumb-space-size","rtg-rounded-switch-thumb-radius","rtg-ring-0","rtg-transition-transform",'data-[state="checked"]:rtg-bg-switch-thumb-color-bg-checked data-[state="unchecked"]:rtg-bg-switch-thumb-color-bg-unchecked','data-[state="checked"]:rtg-translate-x-[calc(100%-2px)] data-[state="unchecked"]:rtg-translate-x-0']},Xi=class extends v{constructor(...e){super(...e),this.disabled="false",this.state="unchecked"}_toggleChecked(){this.disabled==="false"&&(this.state=this.state==="checked"?"unchecked":"checked",this.dispatchEvent(new CustomEvent("change",{detail:this.state})))}createRenderRoot(){return this.classList="rtg-w-switch-space-w rtg-h-switch-space-h",this}render(){return d`
5108
+ `}};l([a({type:String}),c("design:type",Object)],zo.prototype,"variant",void 0),zo=l([u("rtg-spinner")],zo);var Tl={root:["rtg-inline-flex","rtg-shrink-0 rtg-items-center","rtg-w-switch-space-w rtg-h-switch-space-h","rtg-rounded-switch-radius rtg-border-switch-width-border rtg-border-switch-color-border rtg-outline-none","rtg-transition-all","focus-visible:rtg-border-switch-color-border-focus focus-visible:rtg-ring-switch-width-ring-focus focus-visible:rtg-ring-switch-color-ring-focus",'data-[state="checked"]:rtg-bg-switch-color-bg-checked data-[state="unchecked"]:rtg-bg-switch-color-bg-unchecked','data-[disabled="true"]:rtg-opacity-switch-opacity-disabled data-[disabled="true"]:rtg-cursor-not-allowed'],thumb:["rtg-pointer-events-none","rtg-block","rtg-size-switch-thumb-space-size","rtg-rounded-switch-thumb-radius","rtg-ring-0","rtg-transition-transform",'data-[state="checked"]:rtg-bg-switch-thumb-color-bg-checked data-[state="unchecked"]:rtg-bg-switch-thumb-color-bg-unchecked','data-[state="checked"]:rtg-translate-x-[calc(100%-2px)] data-[state="unchecked"]:rtg-translate-x-0']},Zi=class extends v{constructor(...e){super(...e),this.disabled="false",this.state="unchecked"}_toggleChecked(){this.disabled==="false"&&(this.state=this.state==="checked"?"unchecked":"checked",this.dispatchEvent(new CustomEvent("change",{detail:this.state})))}createRenderRoot(){return this.classList="rtg-w-switch-space-w rtg-h-switch-space-h",this}render(){return d`
5109
5109
  <div
5110
5110
  part="switch"
5111
5111
  role="switch"
@@ -5121,7 +5121,7 @@ body {
5121
5121
  class=${b(Tl.thumb)}
5122
5122
  ></div>
5123
5123
  </div>
5124
- `}};l([a({attribute:"data-disabled",type:String}),c("design:type",String)],Xi.prototype,"disabled",void 0),l([a({attribute:"data-state",type:String}),c("design:type",String)],Xi.prototype,"state",void 0),Xi=l([p("rtg-switch")],Xi);var bt={preview:["rtg-flex rtg-bg-table-preview-color-bg rtg-w-table-preview-space-w rtg-items-center rtg-justify-center rtg-px-table-preview-space-px rtg-py-table-preview-space-py"],container:["rtg-relative rtg-w-table-container-space-w rtg-overflow-auto"],table:["rtg-w-table-space-w rtg-caption-bottom rtg-text-table-font"],caption:["rtg-mt-table-caption-space-mt rtg-text-table-caption-font rtg-text-table-caption-color-text"],head:{root:["[&_tr]:rtg-border-table-head-color-border [&_tr]:rtg-border-b-table-head-width-border"],row:["rtg-border-b-table-head-width-border rtg-border-table-head-color-border rtg-transition-colors hover:rtg-bg-table-head-row-color-bg-hover"],cell:{base:["rtg-h-table-head-cell-space-h rtg-px-table-head-cell-space-px rtg-align-middle rtg-font-table-head-cell-font-weight rtg-text-table-head-cell-color-text"],align:{left:"rtg-text-left",right:"rtg-text-right"}}},body:{root:["[&_tr:last-child]:rtg-border-0"],row:["rtg-border-b-table-body-width-border rtg-border-table-body-color-border rtg-transition-colors hover:rtg-bg-table-body-row-color-bg-hover"],cell:{base:["rtg-px-table-body-cell-space-px rtg-py-table-body-cell-space-py rtg-align-middle"],align:{right:"rtg-text-right"}}},footer:{root:["rtg-border-t-table-footer-width-border rtg-border-table-footer-color-border rtg-bg-table-footer-color-bg rtg-font-table-footer-font-weight [&>tr]:rtg-last:border-b-0"],row:["rtg-border-b-table-footer-width-border rtg-border-table-footer-color-border rtg-transition-colors hover:rtg-bg-table-footer-row-color-bg-hover"],cell:{base:["rtg-px-table-footer-cell-space-px rtg-py-table-footer-cell-space-py rtg-align-middle"],align:{right:"rtg-text-right"}}}},Ll,Nl,ai=class extends _{constructor(...e){super(...e),this.dataTable=[],this.footerData=[],this.captionText=""}get _containerElement(){return this.querySelector("table[part=table]")}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get columnKeys(){var t;let e=(t=this.dataTable)==null?void 0:t[0];return e?Object.keys(e).filter(r=>r!=="id"):[]}capitalizeLabel(e){return e.charAt(0).toUpperCase()+e.slice(1)}render(){let e=this.columnKeys;return d`
5124
+ `}};l([a({attribute:"data-disabled",type:String}),c("design:type",String)],Zi.prototype,"disabled",void 0),l([a({attribute:"data-state",type:String}),c("design:type",String)],Zi.prototype,"state",void 0),Zi=l([u("rtg-switch")],Zi);var bt={preview:["rtg-flex rtg-bg-table-preview-color-bg rtg-w-table-preview-space-w rtg-items-center rtg-justify-center rtg-px-table-preview-space-px rtg-py-table-preview-space-py"],container:["rtg-relative rtg-w-table-container-space-w rtg-overflow-auto"],table:["rtg-w-table-space-w rtg-caption-bottom rtg-text-table-font"],caption:["rtg-mt-table-caption-space-mt rtg-text-table-caption-font rtg-text-table-caption-color-text"],head:{root:["[&_tr]:rtg-border-table-head-color-border [&_tr]:rtg-border-b-table-head-width-border"],row:["rtg-border-b-table-head-width-border rtg-border-table-head-color-border rtg-transition-colors hover:rtg-bg-table-head-row-color-bg-hover"],cell:{base:["rtg-h-table-head-cell-space-h rtg-px-table-head-cell-space-px rtg-align-middle rtg-font-table-head-cell-font-weight rtg-text-table-head-cell-color-text"],align:{left:"rtg-text-left",right:"rtg-text-right"}}},body:{root:["[&_tr:last-child]:rtg-border-0"],row:["rtg-border-b-table-body-width-border rtg-border-table-body-color-border rtg-transition-colors hover:rtg-bg-table-body-row-color-bg-hover"],cell:{base:["rtg-px-table-body-cell-space-px rtg-py-table-body-cell-space-py rtg-align-middle"],align:{right:"rtg-text-right"}}},footer:{root:["rtg-border-t-table-footer-width-border rtg-border-table-footer-color-border rtg-bg-table-footer-color-bg rtg-font-table-footer-font-weight [&>tr]:rtg-last:border-b-0"],row:["rtg-border-b-table-footer-width-border rtg-border-table-footer-color-border rtg-transition-colors hover:rtg-bg-table-footer-row-color-bg-hover"],cell:{base:["rtg-px-table-footer-cell-space-px rtg-py-table-footer-cell-space-py rtg-align-middle"],align:{right:"rtg-text-right"}}}},Ll,Nl,di=class extends _{constructor(...e){super(...e),this.dataTable=[],this.footerData=[],this.captionText=""}get _containerElement(){return this.querySelector("table[part=table]")}getAttributesToExclude(){return["data-testid"]}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}get columnKeys(){var t;let e=(t=this.dataTable)==null?void 0:t[0];return e?Object.keys(e).filter(r=>r!=="id"):[]}capitalizeLabel(e){return e.charAt(0).toUpperCase()+e.slice(1)}render(){let e=this.columnKeys;return d`
5125
5125
  <div class=${b(bt.preview)}>
5126
5126
  <div class=${b(bt.container)}>
5127
5127
  <table part="table" class=${b(bt.table)}>
@@ -5176,20 +5176,20 @@ body {
5176
5176
  </table>
5177
5177
  </div>
5178
5178
  </div>
5179
- `}};l([a({type:Array}),c("design:type",typeof(Ll=typeof Array<"u"&&Array)=="function"?Ll:Object)],ai.prototype,"dataTable",void 0),l([a({type:Array}),c("design:type",typeof(Nl=typeof Array<"u"&&Array)=="function"?Nl:Object)],ai.prototype,"footerData",void 0),l([a({type:String}),c("design:type",String)],ai.prototype,"captionText",void 0),ai=l([p("rtg-table")],ai);function hu(){return`rtg-${Date.now().toString(36)}${Math.random().toString(36).substring(2,7)}`}function uu(e,t){return`${e}-trigger-${t}`}function pu(e,t){return`${e}-content-${t}`}var be=class extends v{constructor(...e){super(...e),this.orientation="horizontal",this.dir="ltr",this.activationMode="automatic",this._baseId=hu(),this._onTriggerSelect=t=>{var i;let r=t.detail.value;this._isControlled?(i=this.onValueChange)==null||i.call(this,r):this._activeValue=r}}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="tabs"]')}get _list(){return this.querySelector("rtg-tabs-list")}get _triggers(){return Array.from(this.querySelectorAll("rtg-tabs-trigger"))}get _contents(){return Array.from(this.querySelectorAll("rtg-tabs-content"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._activeValue}_sync(){if(this._list){let e=this._list._listSlot;e.setAttribute("data-orientation",this.orientation),e.setAttribute("aria-orientation",this.orientation)}this._triggers.forEach(e=>{var s;let t=e._triggerSlot;t.setAttribute("data-orientation",this.orientation),t.id||(t.id=uu(this._baseId,e.value));let r=e.value===this._currentValue;t.setAttribute("data-state",r?"active":"inactive"),t.tabIndex=r?0:-1,t.setAttribute("aria-selected",String(r));let i=this._contents.find(o=>o.value===e.value);i!=null&&i._contentSlot&&((s=i._contentSlot).id||(s.id=pu(this._baseId,i.value)),i._contentSlot.setAttribute("aria-labelledby",t.id),t.setAttribute("aria-controls",i._contentSlot.id))}),this._contents.forEach(e=>{let t=e._contentSlot;t.setAttribute("data-orientation",this.orientation);let r=e.value===this._currentValue;t.setAttribute("data-state",r?"active":"inactive"),t.toggleAttribute("hidden",!r)})}firstUpdated(){var e;Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))}),this._activeValue=this.value??this.defaultValue??((e=this._triggers[0])==null?void 0:e.value),this.addEventListener("rtg-tabs:trigger-select",this._onTriggerSelect),this._sync()}updated(e){e.has("value")&&this._isControlled&&(this._activeValue=this.value),this._sync()}render(){return d`
5179
+ `}};l([a({type:Array}),c("design:type",typeof(Ll=typeof Array<"u"&&Array)=="function"?Ll:Object)],di.prototype,"dataTable",void 0),l([a({type:Array}),c("design:type",typeof(Nl=typeof Array<"u"&&Array)=="function"?Nl:Object)],di.prototype,"footerData",void 0),l([a({type:String}),c("design:type",String)],di.prototype,"captionText",void 0),di=l([u("rtg-table")],di);function hp(){return`rtg-${Date.now().toString(36)}${Math.random().toString(36).substring(2,7)}`}function pp(e,t){return`${e}-trigger-${t}`}function up(e,t){return`${e}-content-${t}`}var be=class extends v{constructor(...e){super(...e),this.orientation="horizontal",this.dir="ltr",this.activationMode="automatic",this._baseId=hp(),this._onTriggerSelect=t=>{var i;let r=t.detail.value;this._isControlled?(i=this.onValueChange)==null||i.call(this,r):this._activeValue=r}}createRenderRoot(){return this}get _rootSlot(){return this.querySelector('[data-slot="tabs"]')}get _list(){return this.querySelector("rtg-tabs-list")}get _triggers(){return Array.from(this.querySelectorAll("rtg-tabs-trigger"))}get _contents(){return Array.from(this.querySelectorAll("rtg-tabs-content"))}get _isControlled(){return this.value!==void 0}get _currentValue(){return this._isControlled?this.value:this._activeValue}_sync(){if(this._list){let e=this._list._listSlot;e.setAttribute("data-orientation",this.orientation),e.setAttribute("aria-orientation",this.orientation)}this._triggers.forEach(e=>{var s;let t=e._triggerSlot;t.setAttribute("data-orientation",this.orientation),t.id||(t.id=pp(this._baseId,e.value));let r=e.value===this._currentValue;t.setAttribute("data-state",r?"active":"inactive"),t.tabIndex=r?0:-1,t.setAttribute("aria-selected",String(r));let i=this._contents.find(o=>o.value===e.value);i!=null&&i._contentSlot&&((s=i._contentSlot).id||(s.id=up(this._baseId,i.value)),i._contentSlot.setAttribute("aria-labelledby",t.id),t.setAttribute("aria-controls",i._contentSlot.id))}),this._contents.forEach(e=>{let t=e._contentSlot;t.setAttribute("data-orientation",this.orientation);let r=e.value===this._currentValue;t.setAttribute("data-state",r?"active":"inactive"),t.toggleAttribute("hidden",!r)})}firstUpdated(){var e;Array.from(this.childNodes).forEach(t=>{var r;t!==this._rootSlot&&((r=this._rootSlot)==null||r.appendChild(t))}),this._activeValue=this.value??this.defaultValue??((e=this._triggers[0])==null?void 0:e.value),this.addEventListener("rtg-tabs:trigger-select",this._onTriggerSelect),this._sync()}updated(e){e.has("value")&&this._isControlled&&(this._activeValue=this.value),this._sync()}render(){return d`
5180
5180
  <div
5181
5181
  data-slot="tabs"
5182
5182
  data-orientation=${this.orientation}
5183
5183
  dir=${this.dir}
5184
5184
  ></div>
5185
- `}};l([a({attribute:"default-value",type:String}),c("design:type",String)],be.prototype,"defaultValue",void 0),l([a({type:String}),c("design:type",String)],be.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],be.prototype,"onValueChange",void 0),l([a({type:String}),c("design:type",Object)],be.prototype,"orientation",void 0),l([a({type:String}),c("design:type",Object)],be.prototype,"dir",void 0),l([a({attribute:"activation-mode",type:String}),c("design:type",Object)],be.prototype,"activationMode",void 0),l([x(),c("design:type",String)],be.prototype,"_activeValue",void 0),be=l([p("rtg-tabs")],be);var jo=class extends v{constructor(...e){super(...e),this.variant="default"}createRenderRoot(){return this}get _listSlot(){return this.querySelector('[data-slot="tabs-list"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._listSlot&&((r=this._listSlot)==null||r.appendChild(t))})}render(){return d`
5185
+ `}};l([a({attribute:"default-value",type:String}),c("design:type",String)],be.prototype,"defaultValue",void 0),l([a({type:String}),c("design:type",String)],be.prototype,"value",void 0),l([a({attribute:!1}),c("design:type",Function)],be.prototype,"onValueChange",void 0),l([a({type:String}),c("design:type",Object)],be.prototype,"orientation",void 0),l([a({type:String}),c("design:type",Object)],be.prototype,"dir",void 0),l([a({attribute:"activation-mode",type:String}),c("design:type",Object)],be.prototype,"activationMode",void 0),l([x(),c("design:type",String)],be.prototype,"_activeValue",void 0),be=l([u("rtg-tabs")],be);var Uo=class extends v{constructor(...e){super(...e),this.variant="default"}createRenderRoot(){return this}get _listSlot(){return this.querySelector('[data-slot="tabs-list"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._listSlot&&((r=this._listSlot)==null||r.appendChild(t))})}render(){return d`
5186
5186
  <div
5187
5187
  data-slot="tabs-list"
5188
5188
  data-variant=${this.variant}
5189
5189
  role="tablist"
5190
5190
  tabindex="0"
5191
5191
  ></div>
5192
- `}};l([a({type:String}),c("design:type",Object)],jo.prototype,"variant",void 0),jo=l([p("rtg-tabs-list")],jo);var Zi=class extends v{constructor(...e){super(...e),this.value="",this._onClick=()=>{this._emitSelect()},this._onKeyDown=t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._emitSelect())}}createRenderRoot(){return this}get _triggerSlot(){return this.querySelector('[data-slot="tabs-trigger"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._triggerSlot&&((r=this._triggerSlot)==null||r.appendChild(t))})}_emitSelect(){this.disabled||this.dispatchEvent(new CustomEvent("rtg-tabs:trigger-select",{detail:{value:this.value},bubbles:!0}))}render(){return d`
5192
+ `}};l([a({type:String}),c("design:type",Object)],Uo.prototype,"variant",void 0),Uo=l([u("rtg-tabs-list")],Uo);var Ji=class extends v{constructor(...e){super(...e),this.value="",this._onClick=()=>{this._emitSelect()},this._onKeyDown=t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._emitSelect())}}createRenderRoot(){return this}get _triggerSlot(){return this.querySelector('[data-slot="tabs-trigger"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._triggerSlot&&((r=this._triggerSlot)==null||r.appendChild(t))})}_emitSelect(){this.disabled||this.dispatchEvent(new CustomEvent("rtg-tabs:trigger-select",{detail:{value:this.value},bubbles:!0}))}render(){return d`
5193
5193
  <button
5194
5194
  data-slot="tabs-trigger"
5195
5195
  ?data-disabled=${this.disabled}
@@ -5199,18 +5199,18 @@ body {
5199
5199
  @click=${this._onClick}
5200
5200
  @keydown=${this._onKeyDown}
5201
5201
  ></button>
5202
- `}};l([a({type:String}),c("design:type",Object)],Zi.prototype,"value",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Zi.prototype,"disabled",void 0),Zi=l([p("rtg-tabs-trigger")],Zi);var Uo=class extends v{constructor(...e){super(...e),this.value=""}createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="tabs-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._contentSlot&&((r=this._contentSlot)==null||r.appendChild(t))})}render(){return d`
5202
+ `}};l([a({type:String}),c("design:type",Object)],Ji.prototype,"value",void 0),l([a({type:Boolean}),c("design:type",Boolean)],Ji.prototype,"disabled",void 0),Ji=l([u("rtg-tabs-trigger")],Ji);var jo=class extends v{constructor(...e){super(...e),this.value=""}createRenderRoot(){return this}get _contentSlot(){return this.querySelector('[data-slot="tabs-content"]')}firstUpdated(e){Array.from(this.childNodes).forEach(t=>{var r;t!==this._contentSlot&&((r=this._contentSlot)==null||r.appendChild(t))})}render(){return d`
5203
5203
  <div
5204
5204
  data-slot="tabs-content"
5205
5205
  role="tabpanel"
5206
5206
  tabindex="0"
5207
5207
  hidden
5208
5208
  ></div>
5209
- `}};l([a({type:String}),c("design:type",Object)],Uo.prototype,"value",void 0),Uo=l([p("rtg-tabs-content")],Uo);var xi={viewportRoot:["rtg-fixed rtg-top-0 rtg-z-[100] rtg-flex rtg-max-h-screen rtg-w-toast-viewport-root-space-w rtg-flex-col-reverse rtg-px-toast-viewport-root-space-px rtg-py-toast-viewport-root-space-py sm:rtg-bottom-0 sm:rtg-right-0 sm:rtg-top-auto sm:rtg-flex-col md:rtg-max-w-toast-viewport-root-space-w-md"],viewportItem:{base:["group rtg-pointer-events-auto rtg-relative rtg-flex rtg-w-toast-viewport-item-space-w rtg-items-center rtg-justify-between rtg-gap-toast-viewport-item-space-gap rtg-overflow-hidden rtg-rounded-toast-viewport-item-radius rtg-px-toast-viewport-item-space-px rtg-py-toast-viewport-item-space-py rtg-shadow-toast-viewport-item-shadow rtg-transition-all","data-[swipe=cancel]:rtg-translate-x-0","data-[swipe=end]:rtg-translate-x-[var(--radix-toast-swipe-end-x)]","data-[swipe=move]:rtg-translate-x-[var(--radix-toast-swipe-move-x)]","data-[swipe=move]:rtg-transition-none","data-[state=open]:rtg-animate-toast-animate-in","data-[state=closed]:rtg-animate-toast-animate-out","data-[swipe=end]:rtg-animate-toast-animate-out","data-[state=closed]:rtg-opacity-80","data-[state=open]:rtg-translate-y-toast-viewport-item-translate-y-enter-desktop","data-[state=open]:sm:rtg-translate-y-toast-viewport-item-translate-y-enter-mobile","data-[state=closed]:rtg-translate-x-toast-viewport-item-translate-x-exit"],variants:{default:["rtg-border rtg-border-toast-viewport-default-color-border rtg-bg-toast-viewport-default-color-bg rtg-text-toast-viewport-default-color-text"],destructive:["rtg-bg-toast-viewport-destructive-color-bg rtg-text-toast-viewport-destructive-color-text"]}},action:{base:["rtg-text-toast-action-font rtg-font-toast-action-font-weight rtg-text-toast-action-color-text","rtg-h-toast-action-space-h rtg-px-toast-action-space-px rtg-py-toast-action-space-py","rtg-inline-flex rtg-border rtg-border-toast-action-color-border rtg-shrink-0 rtg-items-center rtg-justify-center rtg-rounded-toast-action-radius rtg-transition-colors","focus:rtg-outline-none focus:rtg-ring-toast-action-width-ring-focus focus:rtg-ring-toast-action-color-ring-focus","disabled:rtg-pointer-events-none disabled:rtg-opacity-toast-action-opacity-disabled"],variants:{default:["rtg-bg-toast-action-default-color-bg hover:rtg-bg-toast-action-default-color-bg-hover"],destructive:["rtg-bg-toast-action-destructive-color-bg hover:rtg-bg-toast-action-destructive-color-bg-hover rtg-text-toast-action-destructive-color-text focus:rtg-ring-toast-action-destructive-color-ring-focus"]}},title:["rtg-text-toast-title-font rtg-font-toast-title-font-weight [&+div]:rtg-text-toast-title-font"],description:["rtg-text-toast-description-font rtg-opacity-toast-description-opacity"]},Md=ih({}),zl,cs,jl="closed",pr,Ji=(pr=class extends _{constructor(...t){super(...t),this.variant="default",this.state=jl}get _containerElement(){return this.querySelector("li[part=toast-view-port-li]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d` <ol
5209
+ `}};l([a({type:String}),c("design:type",Object)],jo.prototype,"value",void 0),jo=l([u("rtg-tabs-content")],jo);var $i={viewportRoot:["rtg-fixed rtg-top-0 rtg-z-[100] rtg-flex rtg-max-h-screen rtg-w-toast-viewport-root-space-w rtg-flex-col-reverse rtg-px-toast-viewport-root-space-px rtg-py-toast-viewport-root-space-py sm:rtg-bottom-0 sm:rtg-right-0 sm:rtg-top-auto sm:rtg-flex-col md:rtg-max-w-toast-viewport-root-space-w-md"],viewportItem:{base:["group rtg-pointer-events-auto rtg-relative rtg-flex rtg-w-toast-viewport-item-space-w rtg-items-center rtg-justify-between rtg-gap-toast-viewport-item-space-gap rtg-overflow-hidden rtg-rounded-toast-viewport-item-radius rtg-px-toast-viewport-item-space-px rtg-py-toast-viewport-item-space-py rtg-shadow-toast-viewport-item-shadow rtg-transition-all","data-[swipe=cancel]:rtg-translate-x-0","data-[swipe=end]:rtg-translate-x-[var(--radix-toast-swipe-end-x)]","data-[swipe=move]:rtg-translate-x-[var(--radix-toast-swipe-move-x)]","data-[swipe=move]:rtg-transition-none","data-[state=open]:rtg-animate-toast-animate-in","data-[state=closed]:rtg-animate-toast-animate-out","data-[swipe=end]:rtg-animate-toast-animate-out","data-[state=closed]:rtg-opacity-80","data-[state=open]:rtg-translate-y-toast-viewport-item-translate-y-enter-desktop","data-[state=open]:sm:rtg-translate-y-toast-viewport-item-translate-y-enter-mobile","data-[state=closed]:rtg-translate-x-toast-viewport-item-translate-x-exit"],variants:{default:["rtg-border rtg-border-toast-viewport-default-color-border rtg-bg-toast-viewport-default-color-bg rtg-text-toast-viewport-default-color-text"],destructive:["rtg-bg-toast-viewport-destructive-color-bg rtg-text-toast-viewport-destructive-color-text"]}},action:{base:["rtg-text-toast-action-font rtg-font-toast-action-font-weight rtg-text-toast-action-color-text","rtg-h-toast-action-space-h rtg-px-toast-action-space-px rtg-py-toast-action-space-py","rtg-inline-flex rtg-border rtg-border-toast-action-color-border rtg-shrink-0 rtg-items-center rtg-justify-center rtg-rounded-toast-action-radius rtg-transition-colors","focus:rtg-outline-none focus:rtg-ring-toast-action-width-ring-focus focus:rtg-ring-toast-action-color-ring-focus","disabled:rtg-pointer-events-none disabled:rtg-opacity-toast-action-opacity-disabled"],variants:{default:["rtg-bg-toast-action-default-color-bg hover:rtg-bg-toast-action-default-color-bg-hover"],destructive:["rtg-bg-toast-action-destructive-color-bg hover:rtg-bg-toast-action-destructive-color-bg-hover rtg-text-toast-action-destructive-color-text focus:rtg-ring-toast-action-destructive-color-ring-focus"]}},title:["rtg-text-toast-title-font rtg-font-toast-title-font-weight [&+div]:rtg-text-toast-title-font"],description:["rtg-text-toast-description-font rtg-opacity-toast-description-opacity"]},Md=ih({}),zl,hs,Ul="closed",gr,Qi=(gr=class extends _{constructor(...t){super(...t),this.variant="default",this.state=Ul}get _containerElement(){return this.querySelector("li[part=toast-view-port-li]")}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d` <ol
5210
5210
  part="toast-view-port"
5211
5211
  tabindex="-1"
5212
5212
  @click="${t=>t.stopPropagation()}"
5213
- class="${b(xi.viewportRoot,this.className,`${this.state===jl?"hidden":"block"} `)}"
5213
+ class="${b($i.viewportRoot,this.className,`${this.state===Ul?"hidden":"block"} `)}"
5214
5214
  >
5215
5215
  <li
5216
5216
  part="toast-view-port-li"
@@ -5220,36 +5220,36 @@ body {
5220
5220
  tabindex="0"
5221
5221
  data-state="${this.state}"
5222
5222
  data-swipe-direction="right"
5223
- class="${b(cs.toastVariants.base,cs.toastVariants.variants[this.variant],this.className)}"
5223
+ class="${b(hs.toastVariants.base,hs.toastVariants.variants[this.variant],this.className)}"
5224
5224
  data-radix-collection-item=""
5225
5225
  style="user-select: none; touch-action: none;"
5226
5226
  ></li>
5227
- </ol>`}},cs=pr,pr.toastVariants=xi.viewportItem,pr);l([a({type:String}),c("design:type",typeof(zl=Md!==void 0&&void 0)=="function"?zl:Object)],Ji.prototype,"variant",void 0),l([a({attribute:"data-state",type:String}),c("design:type",Object)],Ji.prototype,"state",void 0),Ji=cs=l([p("rtg-toast-view-port")],Ji);var Ul,hs,gr,Do=(gr=class extends _{constructor(...t){super(...t),this.variant="default"}get _containerElement(){return this.querySelector("button[part=toast-action]")}getAttributesToExclude(){return["click","type","variant"]}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}getFilteredAttributes(){let t=this.getAttributesToExclude(),r={};for(let i of this.attributes)t.includes(i.name)||(r[i.name]=i.value);return r}createRenderRoot(){return this}render(){return d`
5227
+ </ol>`}},hs=gr,gr.toastVariants=$i.viewportItem,gr);l([a({type:String}),c("design:type",typeof(zl=Md!==void 0&&void 0)=="function"?zl:Object)],Qi.prototype,"variant",void 0),l([a({attribute:"data-state",type:String}),c("design:type",Object)],Qi.prototype,"state",void 0),Qi=hs=l([u("rtg-toast-view-port")],Qi);var jl,ps,mr,Do=(mr=class extends _{constructor(...t){super(...t),this.variant="default"}get _containerElement(){return this.querySelector("button[part=toast-action]")}getAttributesToExclude(){return["click","type","variant"]}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}getFilteredAttributes(){let t=this.getAttributesToExclude(),r={};for(let i of this.attributes)t.includes(i.name)||(r[i.name]=i.value);return r}createRenderRoot(){return this}render(){return d`
5228
5228
  <button
5229
5229
  ${wt(this.getFilteredAttributes())}
5230
5230
  part="toast-action"
5231
5231
  type="button"
5232
- class="${b(hs.toastVariants.base,hs.toastVariants.variants[this.variant],this.className,"rtg-w-max")}"
5232
+ class="${b(ps.toastVariants.base,ps.toastVariants.variants[this.variant],this.className,"rtg-w-max")}"
5233
5233
  ></button>
5234
- `}},hs=gr,gr.toastVariants=xi.action,gr);l([a({type:String}),c("design:type",typeof(Ul=Md!==void 0&&void 0)=="function"?Ul:Object)],Do.prototype,"variant",void 0),Do=hs=l([p("rtg-toast-action")],Do);var Dl=class extends _{get _containerElement(){return this.querySelector("div[part=toast-description]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
5234
+ `}},ps=mr,mr.toastVariants=$i.action,mr);l([a({type:String}),c("design:type",typeof(jl=Md!==void 0&&void 0)=="function"?jl:Object)],Do.prototype,"variant",void 0),Do=ps=l([u("rtg-toast-action")],Do);var Dl=class extends _{get _containerElement(){return this.querySelector("div[part=toast-description]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
5235
5235
  <div
5236
- class="${b(xi.description,this.className)}"
5236
+ class="${b($i.description,this.className)}"
5237
5237
  part="toast-description"
5238
5238
  >
5239
5239
  <slot></slot>
5240
5240
  </div>
5241
- `}};Dl=l([p("rtg-toast-description")],Dl);var Bl=class extends _{get _containerElement(){return this.querySelector("div[part=toast-title]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
5241
+ `}};Dl=l([u("rtg-toast-description")],Dl);var Bl=class extends _{get _containerElement(){return this.querySelector("div[part=toast-title]")}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}render(){return d`
5242
5242
  <div
5243
5243
  part="toast-title"
5244
- class="${b(xi.title,this.className)}"
5244
+ class="${b($i.title,this.className)}"
5245
5245
  ></div>
5246
- `}};Bl=l([p("rtg-toast-title")],Bl);var Ml=class extends _{constructor(){super(),this.handleClick=this.handleClick.bind(this)}get _containerElement(){return this.querySelector("div[part=toast-trigger]")}get _toast(){let e=this.parentElement;for(;e&&!(e instanceof us);)e=e.parentElement;return e}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}handleClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("open-toast",{bubbles:!0})),this._toast.isOpen=!0}render(){return d`
5246
+ `}};Bl=l([u("rtg-toast-title")],Bl);var Ml=class extends _{constructor(){super(),this.handleClick=this.handleClick.bind(this)}get _containerElement(){return this.querySelector("div[part=toast-trigger]")}get _toast(){let e=this.parentElement;for(;e&&!(e instanceof us);)e=e.parentElement;return e}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}handleClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("open-toast",{bubbles:!0})),this._toast.isOpen=!0}render(){return d`
5247
5247
  <div
5248
5248
  @click=${this.handleClick}
5249
5249
  part="toast-trigger"
5250
5250
  class="${b(this.className)}"
5251
5251
  ></div>
5252
- `}};Ml=l([p("rtg-toast-trigger"),c("design:paramtypes",[])],Ml);var us=class extends _{constructor(...e){super(...e),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=toast]")}onClick(){this.isOpen=!this.isOpen}connectedCallback(){super.connectedCallback(),this.addEventListener("close-toast",()=>{this.isOpen=!1}),this.addEventListener("open-toast",()=>{this.isOpen=!0})}get _content(){return this.querySelector("rtg-toast-view-port")}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d` <div class="${b("",this.className)}" part="toast"></div> `}};l([x(),c("design:type",Object)],us.prototype,"isOpen",void 0),us=l([p("rtg-toast")],us);var wr=(function(e){return e.MULTIPLE="multiple",e.SINGLE="single",e})({}),_r=(function(e){return e.DEFAULT="default",e.OUTLINE="outline",e})({}),xr=(function(e){return e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e})({}),gu=hn("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-toggle-group-item-radius rtg-text-toggle-group-item-font rtg-font-toggle-group-item-font-weight rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-toggle-group-item-width-ring-focus focus-visible:rtg-ring-toggle-group-item-color-ring-focus focus-visible:rtg-ring-offset-toggle-group-item-width-ring-offset-focus disabled:rtg-pointer-events-none disabled:rtg-opacity-toggle-group-item-opacity-disabled data-[state=on]:rtg-bg-toggle-group-item-color-bg-on data-[state=on]:rtg-text-toggle-group-item-color-text-on rtg-bg-transparent",{variants:{variant:{default:"hover:rtg-bg-toggle-group-item-default-color-bg-hover hover:rtg-text-toggle-group-item-default-color-text-hover",outline:"rtg-border rtg-border-toggle-group-item-outline-color-border hover:rtg-bg-toggle-group-item-outline-color-bg-hover hover:rtg-text-toggle-group-item-outline-color-text-hover"},size:{sm:"rtg-h-toggle-group-item-space-h-sm rtg-px-toggle-group-item-space-px-sm",md:"rtg-h-toggle-group-item-space-h-md rtg-px-toggle-group-item-space-px-md",lg:"rtg-h-toggle-group-item-space-h-lg rtg-px-toggle-group-item-space-px-lg"}}}),mu="rtg-flex rtg-items-center rtg-justify-center rtg-gap-toggle-group-space-gap",ql,Vl,Hl,Xo,mr,ke=(mr=class extends _{get _parent(){let t=this.parentElement;for(;t&&!(t instanceof ve);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("button[part=toggle-group-item]")}get _siblings(){var t;return Array.from(((t=this.parentElement)==null?void 0:t.children)||[]).filter(r=>r!==this)}getAttributesToExclude(){return["disabled","type"]}createRenderRoot(){return this}firstUpdated(t){this.syncFromParent(),this.moveLightDomChildrenInto(this._containerElement)}constructor(){super(),this.checked=!1,this.id=dn(),this.variant=_r.DEFAULT,this.size=xr.SMALL,this.disabled=!1,this.type=wr.SINGLE,this.variant=_r.DEFAULT,this.size=xr.SMALL}syncFromParent(){let t=this._parent;if(!t)return;this.variant!==t.variant&&(this.variant=t.variant),this.size!==t.size&&(this.size=t.size);let r=t.selectedItems.includes(this.id);this.checked!==r&&(this.checked=r),this.type!==t.type&&(this.type=t.type)}syncSelection(){let t=this._parent;if(!t)return;let r=t.selectedItems.includes(this.id);this.checked!==r&&(this.checked=r)}toggleSelection(t){if(this.disabled||!this._parent)return;let r=this._parent,i=r.selectedItems.indexOf(t);this.type===wr.SINGLE?(i===-1?r.selectedItems[0]=t:r.selectedItems.splice(i,1),this._siblings.forEach(s=>s.syncSelection())):i===-1?r.selectedItems.push(t):r.selectedItems.splice(i,1),this.syncSelection()}render(){return console.log({variant:this.variant,size:this.size,className:this.className}),d`
5252
+ `}};Ml=l([u("rtg-toast-trigger"),c("design:paramtypes",[])],Ml);var us=class extends _{constructor(...e){super(...e),this.isOpen=!1}get _containerElement(){return this.querySelector("div[part=toast]")}onClick(){this.isOpen=!this.isOpen}connectedCallback(){super.connectedCallback(),this.addEventListener("close-toast",()=>{this.isOpen=!1}),this.addEventListener("open-toast",()=>{this.isOpen=!0})}get _content(){return this.querySelector("rtg-toast-view-port")}updated(e){super.updated(e);let t=this._content;t&&(t.dataset.state=this.isOpen?"open":"closed")}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement)}createRenderRoot(){return this}render(){return d` <div class="${b("",this.className)}" part="toast"></div> `}};l([x(),c("design:type",Object)],us.prototype,"isOpen",void 0),us=l([u("rtg-toast")],us);var _r=(function(e){return e.MULTIPLE="multiple",e.SINGLE="single",e})({}),xr=(function(e){return e.DEFAULT="default",e.OUTLINE="outline",e})({}),Sr=(function(e){return e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e})({}),gp=hn("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-toggle-group-item-radius rtg-text-toggle-group-item-font rtg-font-toggle-group-item-font-weight rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-toggle-group-item-width-ring-focus focus-visible:rtg-ring-toggle-group-item-color-ring-focus focus-visible:rtg-ring-offset-toggle-group-item-width-ring-offset-focus disabled:rtg-pointer-events-none disabled:rtg-opacity-toggle-group-item-opacity-disabled data-[state=on]:rtg-bg-toggle-group-item-color-bg-on data-[state=on]:rtg-text-toggle-group-item-color-text-on rtg-bg-transparent",{variants:{variant:{default:"hover:rtg-bg-toggle-group-item-default-color-bg-hover hover:rtg-text-toggle-group-item-default-color-text-hover",outline:"rtg-border rtg-border-toggle-group-item-outline-color-border hover:rtg-bg-toggle-group-item-outline-color-bg-hover hover:rtg-text-toggle-group-item-outline-color-text-hover"},size:{sm:"rtg-h-toggle-group-item-space-h-sm rtg-px-toggle-group-item-space-px-sm",md:"rtg-h-toggle-group-item-space-h-md rtg-px-toggle-group-item-space-px-md",lg:"rtg-h-toggle-group-item-space-h-lg rtg-px-toggle-group-item-space-px-lg"}}}),mp="rtg-flex rtg-items-center rtg-justify-center rtg-gap-toggle-group-space-gap",ql,Vl,Hl,Xo,br,ke=(br=class extends _{get _parent(){let t=this.parentElement;for(;t&&!(t instanceof ve);)t=t.parentElement;return t}get _containerElement(){return this.querySelector("button[part=toggle-group-item]")}get _siblings(){var t;return Array.from(((t=this.parentElement)==null?void 0:t.children)||[]).filter(r=>r!==this)}getAttributesToExclude(){return["disabled","type"]}createRenderRoot(){return this}firstUpdated(t){this.syncFromParent(),this.moveLightDomChildrenInto(this._containerElement)}constructor(){super(),this.checked=!1,this.id=dn(),this.variant=xr.DEFAULT,this.size=Sr.SMALL,this.disabled=!1,this.type=_r.SINGLE,this.variant=xr.DEFAULT,this.size=Sr.SMALL}syncFromParent(){let t=this._parent;if(!t)return;this.variant!==t.variant&&(this.variant=t.variant),this.size!==t.size&&(this.size=t.size);let r=t.selectedItems.includes(this.id);this.checked!==r&&(this.checked=r),this.type!==t.type&&(this.type=t.type)}syncSelection(){let t=this._parent;if(!t)return;let r=t.selectedItems.includes(this.id);this.checked!==r&&(this.checked=r)}toggleSelection(t){if(this.disabled||!this._parent)return;let r=this._parent,i=r.selectedItems.indexOf(t);this.type===_r.SINGLE?(i===-1?r.selectedItems[0]=t:r.selectedItems.splice(i,1),this._siblings.forEach(s=>s.syncSelection())):i===-1?r.selectedItems.push(t):r.selectedItems.splice(i,1),this.syncSelection()}render(){return console.log({variant:this.variant,size:this.size,className:this.className}),d`
5253
5253
  <button
5254
5254
  part="toggle-group-item"
5255
5255
  id=${this.id}
@@ -5260,15 +5260,15 @@ body {
5260
5260
  ?disabled=${this.disabled}
5261
5261
  @click=${()=>this.toggleSelection(this.id)}
5262
5262
  ></button>
5263
- `}},Xo=mr,mr.toggleGroupVariants=gu,mr);l([a({attribute:!0,type:Boolean,reflect:!0}),c("design:type",Object)],ke.prototype,"checked",void 0),l([a({attribute:!0,type:String,reflect:!0}),c("design:type",Object)],ke.prototype,"id",void 0),l([a(),c("design:type",typeof(ql=_r!==void 0&&_r)=="function"?ql:Object)],ke.prototype,"variant",void 0),l([a(),c("design:type",typeof(Vl=xr!==void 0&&xr)=="function"?Vl:Object)],ke.prototype,"size",void 0),l([a({type:Boolean}),c("design:type",Object)],ke.prototype,"disabled",void 0),l([a({type:String}),c("design:type",typeof(Hl=wr!==void 0&&wr)=="function"?Hl:Object)],ke.prototype,"type",void 0),ke=Xo=l([p("rtg-toggle-group-item"),c("design:paramtypes",[])],ke);var Gl,Wl,Kl,ve=class extends _{constructor(...e){super(...e),this.disabled=!1,this.type=wr.SINGLE,this.required=!1,this.variant=_r.DEFAULT,this.size=xr.SMALL,this.selectedItems=[]}get _containerElement(){return this.querySelector("div[part=toggle-group]")}getAttributesToExclude(){return["disabled","type","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement)}updated(e){(e.has("variant")||e.has("size")||e.has("disabled")||e.has("type"))&&this.querySelectorAll("rtg-toggle-group-item").forEach(t=>{t.variant=this.variant,t.size=this.size,t.disabled=this.disabled,t.type=this.type})}createRenderRoot(){return this}render(){let e=this.getFilteredAttributes();return console.log({variant:this.variant,size:this.size,className:this.className}),d`
5263
+ `}},Xo=br,br.toggleGroupVariants=gp,br);l([a({attribute:!0,type:Boolean,reflect:!0}),c("design:type",Object)],ke.prototype,"checked",void 0),l([a({attribute:!0,type:String,reflect:!0}),c("design:type",Object)],ke.prototype,"id",void 0),l([a(),c("design:type",typeof(ql=xr!==void 0&&xr)=="function"?ql:Object)],ke.prototype,"variant",void 0),l([a(),c("design:type",typeof(Vl=Sr!==void 0&&Sr)=="function"?Vl:Object)],ke.prototype,"size",void 0),l([a({type:Boolean}),c("design:type",Object)],ke.prototype,"disabled",void 0),l([a({type:String}),c("design:type",typeof(Hl=_r!==void 0&&_r)=="function"?Hl:Object)],ke.prototype,"type",void 0),ke=Xo=l([u("rtg-toggle-group-item"),c("design:paramtypes",[])],ke);var Gl,Wl,Kl,ve=class extends _{constructor(...e){super(...e),this.disabled=!1,this.type=_r.SINGLE,this.required=!1,this.variant=xr.DEFAULT,this.size=Sr.SMALL,this.selectedItems=[]}get _containerElement(){return this.querySelector("div[part=toggle-group]")}getAttributesToExclude(){return["disabled","type","data-testid"]}connectedCallback(){super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.moveLightDomChildrenInto(this._containerElement)}updated(e){(e.has("variant")||e.has("size")||e.has("disabled")||e.has("type"))&&this.querySelectorAll("rtg-toggle-group-item").forEach(t=>{t.variant=this.variant,t.size=this.size,t.disabled=this.disabled,t.type=this.type})}createRenderRoot(){return this}render(){let e=this.getFilteredAttributes();return console.log({variant:this.variant,size:this.size,className:this.className}),d`
5264
5264
  <div
5265
5265
  part="toggle-group"
5266
5266
  role="group"
5267
5267
  ${wt(e)}
5268
- class="${b(mu,this.className)}"
5268
+ class="${b(mp,this.className)}"
5269
5269
  ?disable="${this.disabled}"
5270
5270
  ></div>
5271
- `}};l([a({type:Boolean}),c("design:type",Object)],ve.prototype,"disabled",void 0),l([a({type:String}),c("design:type",typeof(Gl=wr!==void 0&&wr)=="function"?Gl:Object)],ve.prototype,"type",void 0),l([a({attribute:!0,type:Boolean,reflect:!0}),c("design:type",Object)],ve.prototype,"required",void 0),l([a(),c("design:type",typeof(Wl=_r!==void 0&&_r)=="function"?Wl:Object)],ve.prototype,"variant",void 0),l([a(),c("design:type",typeof(Kl=xr!==void 0&&xr)=="function"?Kl:Object)],ve.prototype,"size",void 0),l([a({type:Array}),c("design:type",Array)],ve.prototype,"selectedItems",void 0),ve=l([p("rtg-toggle-group")],ve);var fi=(function(e){return e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e})({}),vi=(function(e){return e.DEFAULT="default",e.OUTLINE="outline",e})({}),bu=hn("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-toggle-radius rtg-text-toggle-font rtg-font-toggle-font-weight rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-toggle-width-ring-focus focus-visible:rtg-ring-toggle-color-ring-focus focus-visible:rtg-ring-offset-toggle-width-ring-offset-focus disabled:rtg-pointer-events-none disabled:rtg-opacity-toggle-opacity-disabled data-[state=on]:rtg-bg-toggle-color-bg-on data-[state=on]:rtg-text-toggle-color-text-on rtg-bg-transparent",{variants:{variant:{default:"hover:rtg-bg-toggle-default-color-bg-hover hover:rtg-text-toggle-default-color-text-hover",outline:"rtg-border rtg-border-toggle-outline-color-border hover:rtg-bg-toggle-outline-color-bg-hover hover:rtg-text-toggle-outline-color-text-hover"},size:{sm:"rtg-h-toggle-space-h-sm rtg-px-toggle-space-px-sm",md:"rtg-h-toggle-space-h-md rtg-px-toggle-space-px-md",lg:"rtg-h-toggle-space-h-lg rtg-px-toggle-space-px-lg"}}}),Yl,Xl,Zo,br,Je=(br=class extends _{constructor(...t){super(...t),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=vi.DEFAULT,this.size=fi.SMALL}willUpdate(t){t.has("variant")&&(this.variant=this.normalizeEnum(this.variant,vi,vi.DEFAULT)),t.has("size")&&(this.size=this.normalizeEnum(this.size,fi,fi.SMALL))}get _containerElement(){return this.querySelector("button[part=toggle]")}getAttributesToExclude(){return["disabled","checked","variant","size","required","data-testid"]}toggle(){this.disabled||(this.checked=!this.checked)}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){let t=this.getFilteredAttributes();return d`
5271
+ `}};l([a({type:Boolean}),c("design:type",Object)],ve.prototype,"disabled",void 0),l([a({type:String}),c("design:type",typeof(Gl=_r!==void 0&&_r)=="function"?Gl:Object)],ve.prototype,"type",void 0),l([a({attribute:!0,type:Boolean,reflect:!0}),c("design:type",Object)],ve.prototype,"required",void 0),l([a(),c("design:type",typeof(Wl=xr!==void 0&&xr)=="function"?Wl:Object)],ve.prototype,"variant",void 0),l([a(),c("design:type",typeof(Kl=Sr!==void 0&&Sr)=="function"?Kl:Object)],ve.prototype,"size",void 0),l([a({type:Array}),c("design:type",Array)],ve.prototype,"selectedItems",void 0),ve=l([u("rtg-toggle-group")],ve);var yi=(function(e){return e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e})({}),wi=(function(e){return e.DEFAULT="default",e.OUTLINE="outline",e})({}),bp=hn("rtg-inline-flex rtg-items-center rtg-justify-center rtg-rounded-toggle-radius rtg-text-toggle-font rtg-font-toggle-font-weight rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-toggle-width-ring-focus focus-visible:rtg-ring-toggle-color-ring-focus focus-visible:rtg-ring-offset-toggle-width-ring-offset-focus disabled:rtg-pointer-events-none disabled:rtg-opacity-toggle-opacity-disabled data-[state=on]:rtg-bg-toggle-color-bg-on data-[state=on]:rtg-text-toggle-color-text-on rtg-bg-transparent",{variants:{variant:{default:"hover:rtg-bg-toggle-default-color-bg-hover hover:rtg-text-toggle-default-color-text-hover",outline:"rtg-border rtg-border-toggle-outline-color-border hover:rtg-bg-toggle-outline-color-bg-hover hover:rtg-text-toggle-outline-color-text-hover"},size:{sm:"rtg-h-toggle-space-h-sm rtg-px-toggle-space-px-sm",md:"rtg-h-toggle-space-h-md rtg-px-toggle-space-px-md",lg:"rtg-h-toggle-space-h-lg rtg-px-toggle-space-px-lg"}}}),Yl,Xl,Zo,fr,Qe=(fr=class extends _{constructor(...t){super(...t),this.disabled=!1,this.checked=!1,this.required=!1,this.variant=wi.DEFAULT,this.size=yi.SMALL}willUpdate(t){t.has("variant")&&(this.variant=this.normalizeEnum(this.variant,wi,wi.DEFAULT)),t.has("size")&&(this.size=this.normalizeEnum(this.size,yi,yi.SMALL))}get _containerElement(){return this.querySelector("button[part=toggle]")}getAttributesToExclude(){return["disabled","checked","variant","size","required","data-testid"]}toggle(){this.disabled||(this.checked=!this.checked)}createRenderRoot(){return this}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){let t=this.getFilteredAttributes();return d`
5272
5272
  <button
5273
5273
  type="button"
5274
5274
  part="toggle"
@@ -5281,13 +5281,13 @@ body {
5281
5281
  ?disabled=${this.disabled}
5282
5282
  ${wt(t)}
5283
5283
  ></button>
5284
- `}},Zo=br,br.toggleVariants=bu,br);l([a({type:Boolean}),c("design:type",Object)],Je.prototype,"disabled",void 0),l([a({attribute:!0,type:Boolean,reflect:!0}),c("design:type",Object)],Je.prototype,"checked",void 0),l([a({attribute:!0,type:Boolean,reflect:!0}),c("design:type",Object)],Je.prototype,"required",void 0),l([a({attribute:!0,type:String}),c("design:type",typeof(Yl=vi!==void 0&&vi)=="function"?Yl:Object)],Je.prototype,"variant",void 0),l([a({attribute:!0,type:String}),c("design:type",typeof(Xl=fi!==void 0&&fi)=="function"?Xl:Object)],Je.prototype,"size",void 0),Je=Zo=l([p("rtg-toggle")],Je);var Zl=class extends v{createRenderRoot(){return this}get _blockquoteSlot(){return this.querySelector('[data-slot="typography-blockquote"]')}firstUpdated(){let e=this._blockquoteSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<blockquote data-slot="typography-blockquote"></blockquote>`}};Zl=l([p("rtg-typography-blockquote")],Zl);var Jl=class extends v{createRenderRoot(){return this}get _codeSlot(){return this.querySelector('[data-slot="typography-code"]')}firstUpdated(){let e=this._codeSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<code data-slot="typography-code"></code>`}};Jl=l([p("rtg-typography-code")],Jl);var Bo=class extends v{constructor(...e){super(...e),this.level="h1"}createRenderRoot(){return this}get _hSlot(){return this.querySelector('[data-slot="typography-h"]')}firstUpdated(){let e=this._hSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return this.level==="h2"?d`
5284
+ `}},Zo=fr,fr.toggleVariants=bp,fr);l([a({type:Boolean}),c("design:type",Object)],Qe.prototype,"disabled",void 0),l([a({attribute:!0,type:Boolean,reflect:!0}),c("design:type",Object)],Qe.prototype,"checked",void 0),l([a({attribute:!0,type:Boolean,reflect:!0}),c("design:type",Object)],Qe.prototype,"required",void 0),l([a({attribute:!0,type:String}),c("design:type",typeof(Yl=wi!==void 0&&wi)=="function"?Yl:Object)],Qe.prototype,"variant",void 0),l([a({attribute:!0,type:String}),c("design:type",typeof(Xl=yi!==void 0&&yi)=="function"?Xl:Object)],Qe.prototype,"size",void 0),Qe=Zo=l([u("rtg-toggle")],Qe);var Zl=class extends v{createRenderRoot(){return this}get _blockquoteSlot(){return this.querySelector('[data-slot="typography-blockquote"]')}firstUpdated(){let e=this._blockquoteSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<blockquote data-slot="typography-blockquote"></blockquote>`}};Zl=l([u("rtg-typography-blockquote")],Zl);var Jl=class extends v{createRenderRoot(){return this}get _codeSlot(){return this.querySelector('[data-slot="typography-code"]')}firstUpdated(){let e=this._codeSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<code data-slot="typography-code"></code>`}};Jl=l([u("rtg-typography-code")],Jl);var Bo=class extends v{constructor(...e){super(...e),this.level="h1"}createRenderRoot(){return this}get _hSlot(){return this.querySelector('[data-slot="typography-h"]')}firstUpdated(){let e=this._hSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return this.level==="h2"?d`
5285
5285
  <h2 data-slot="typography-h" data-level="${this.level}"></h2>
5286
5286
  `:this.level==="h3"?d`
5287
5287
  <h3 data-slot="typography-h" data-level="${this.level}"></h3>
5288
5288
  `:this.level==="h4"?d`
5289
5289
  <h4 data-slot="typography-h" data-level="${this.level}"></h4>
5290
- `:d`<h1 data-slot="typography-h" data-level="${this.level}"></h1>`}};l([a({type:String}),c("design:type",Object)],Bo.prototype,"level",void 0),Bo=l([p("rtg-typography-h")],Bo);var Ql=class extends v{createRenderRoot(){return this}get _largeSlot(){return this.querySelector('[data-slot="typography-large"]')}firstUpdated(){let e=this._largeSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="typography-large"></div>`}};Ql=l([p("rtg-typography-large")],Ql);var td=class extends v{createRenderRoot(){return this}get _leadSlot(){return this.querySelector('[data-slot="typography-lead"]')}firstUpdated(){let e=this._leadSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="typography-lead"></p>`}};td=l([p("rtg-typography-lead")],td);var ed=class extends v{createRenderRoot(){return this}get _listSlot(){return this.querySelector('[data-slot="typography-list"]')}firstUpdated(){let e=this._listSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<ul data-slot="typography-list"></ul>`}};ed=l([p("rtg-typography-list")],ed);var rd=class extends v{createRenderRoot(){return this}get _mutedSlot(){return this.querySelector('[data-slot="typography-muted"]')}firstUpdated(){let e=this._mutedSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="typography-muted"></p>`}};rd=l([p("rtg-typography-muted")],rd);var id=class extends v{createRenderRoot(){return this}get _pSlot(){return this.querySelector('[data-slot="typography-p"]')}firstUpdated(){let e=this._pSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="typography-p"></p>`}};id=l([p("rtg-typography-p")],id);var sd=class extends v{createRenderRoot(){return this}get _smallSlot(){return this.querySelector('[data-slot="typography-small"]')}firstUpdated(){let e=this._smallSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<small data-slot="typography-small"></small>`}};sd=l([p("rtg-typography-small")],sd);var od=class extends v{createRenderRoot(){return this}};od=l([p("rtg-typography-table")],od);var Mo=class extends _{constructor(){super(),this.defaultValue="account"}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){return d`
5290
+ `:d`<h1 data-slot="typography-h" data-level="${this.level}"></h1>`}};l([a({type:String}),c("design:type",Object)],Bo.prototype,"level",void 0),Bo=l([u("rtg-typography-h")],Bo);var Ql=class extends v{createRenderRoot(){return this}get _largeSlot(){return this.querySelector('[data-slot="typography-large"]')}firstUpdated(){let e=this._largeSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<div data-slot="typography-large"></div>`}};Ql=l([u("rtg-typography-large")],Ql);var td=class extends v{createRenderRoot(){return this}get _leadSlot(){return this.querySelector('[data-slot="typography-lead"]')}firstUpdated(){let e=this._leadSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="typography-lead"></p>`}};td=l([u("rtg-typography-lead")],td);var ed=class extends v{createRenderRoot(){return this}get _listSlot(){return this.querySelector('[data-slot="typography-list"]')}firstUpdated(){let e=this._listSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<ul data-slot="typography-list"></ul>`}};ed=l([u("rtg-typography-list")],ed);var rd=class extends v{createRenderRoot(){return this}get _mutedSlot(){return this.querySelector('[data-slot="typography-muted"]')}firstUpdated(){let e=this._mutedSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="typography-muted"></p>`}};rd=l([u("rtg-typography-muted")],rd);var id=class extends v{createRenderRoot(){return this}get _pSlot(){return this.querySelector('[data-slot="typography-p"]')}firstUpdated(){let e=this._pSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<p data-slot="typography-p"></p>`}};id=l([u("rtg-typography-p")],id);var sd=class extends v{createRenderRoot(){return this}get _smallSlot(){return this.querySelector('[data-slot="typography-small"]')}firstUpdated(){let e=this._smallSlot;e&&Array.from(this.childNodes).filter(t=>t!==e).forEach(t=>e.appendChild(t))}render(){return d`<small data-slot="typography-small"></small>`}};sd=l([u("rtg-typography-small")],sd);var od=class extends v{createRenderRoot(){return this}};od=l([u("rtg-typography-table")],od);var Mo=class extends _{constructor(){super(),this.defaultValue="account"}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}createRenderRoot(){return this}render(){return d`
5291
5291
  <div class="sb-flex sb-flex-col sb-gap-4">
5292
5292
  <rtg-tabs .defaultValue=${this.defaultValue} class="rtg-w-[400px]">
5293
5293
  <rtg-tabs-list customClass="rtg-h-10 rtg-rounded-2xl" slot="tab-list">
@@ -5507,16 +5507,16 @@ body {
5507
5507
  </rtg-tabs-content>
5508
5508
  </rtg-tabs>
5509
5509
  </div>
5510
- `}};l([a({type:String}),c("design:type",String)],Mo.prototype,"defaultValue",void 0),Mo=l([p("light-sample-demo"),c("design:paramtypes",[])],Mo);var fu=new Set(["children","localName","ref","style","className"]),nd=new WeakMap,vu=(e,t,r,i,s)=>{let o=s==null?void 0:s[t];o===void 0||r===i?r==null&&t in HTMLElement.prototype?e.removeAttribute(t):e[t]=r:((n,h,u)=>{let g=nd.get(n);g===void 0&&nd.set(n,g=new Map);let y=g.get(h);u===void 0?y!==void 0&&(g.delete(h),n.removeEventListener(h,y)):y===void 0?(g.set(h,y={handleEvent:u}),n.addEventListener(h,y)):y.handleEvent=u})(e,o,r)},yu=(e,t)=>{typeof e=="function"?e(t):e.current=t};function qd(e=window.React,t,r,i,s){let o,n,h;{let C=e;({tagName:n,elementClass:h,events:i,displayName:s}=C),o=C.react}let u=o.Component,g=o.createElement,y=new Set(Object.keys(i??{}));class w extends u{constructor(){super(...arguments),this.o=null}t(S){if(this.o!==null)for(let k in this.i)vu(this.o,k,this.props[k],S?S[k]:void 0,i)}componentDidMount(){var S;this.t(),(S=this.o)==null||S.removeAttribute("defer-hydration")}componentDidUpdate(S){this.t(S)}render(){let{_$Gl:S,...k}=this.props;this.h!==S&&(this.u=A=>{S!==null&&yu(S,A),this.o=A,this.h=S}),this.i={};let O={ref:this.u};for(let[A,F]of Object.entries(k))fu.has(A)?O[A==="className"?"class":A]=F:y.has(A)||A in h.prototype?this.i[A]=F:O[A]=F;return O.suppressHydrationWarning=!0,g(n,O)}}w.displayName=s??h.name;let E=o.forwardRef(((C,S)=>g(w,{...C,_$Gl:S},C==null?void 0:C.children)));return E.displayName=w.displayName,E}var wu=Pd((e=>{var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),n=Symbol.for("react.consumer"),h=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),C=Symbol.iterator;function S(f){return typeof f!="object"||!f?null:(f=C&&f[C]||f["@@iterator"],typeof f=="function"?f:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,A={};function F(f,$,N){this.props=f,this.context=$,this.refs=A,this.updater=N||k}F.prototype.isReactComponent={},F.prototype.setState=function(f,$){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,$,"setState")},F.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function V(){}V.prototype=F.prototype;function M(f,$,N){this.props=f,this.context=$,this.refs=A,this.updater=N||k}var J=M.prototype=new V;J.constructor=M,O(J,F.prototype),J.isPureReactComponent=!0;var it=Array.isArray;function st(){}var U={H:null,A:null,T:null,S:null},vt=Object.prototype.hasOwnProperty;function Wt(f,$,N){var L=N.ref;return{$$typeof:t,type:f,key:$,ref:L===void 0?null:L,props:N}}function ue(f,$){return Wt(f.type,$,f.props)}function P(f){return typeof f=="object"&&!!f&&f.$$typeof===t}function Be(f){var $={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(N){return $[N]})}var Nt=/\/+/g;function pe(f,$){return typeof f=="object"&&f&&f.key!=null?Be(""+f.key):$.toString(36)}function Kt(f){switch(f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(st,st):(f.status="pending",f.then(function($){f.status==="pending"&&(f.status="fulfilled",f.value=$)},function($){f.status==="pending"&&(f.status="rejected",f.reason=$)})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}}throw f}function zt(f,$,N,L,B){var H=typeof f;(H==="undefined"||H==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(H){case"bigint":case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case t:case r:K=!0;break;case w:return K=f._init,zt(K(f._payload),$,N,L,B)}}if(K)return B=B(f),K=L===""?"."+pe(f,0):L,it(B)?(N="",K!=null&&(N=K.replace(Nt,"$&/")+"/"),zt(B,$,N,"",function(mc){return mc})):B!=null&&(P(B)&&(B=ue(B,N+(B.key==null||f&&f.key===B.key?"":(""+B.key).replace(Nt,"$&/")+"/")+K)),$.push(B)),1;K=0;var ie=L===""?".":L+":";if(it(f))for(var Ct=0;Ct<f.length;Ct++)L=f[Ct],H=ie+pe(L,Ct),K+=zt(L,$,N,H,B);else if(Ct=S(f),typeof Ct=="function")for(f=Ct.call(f),Ct=0;!(L=f.next()).done;)L=L.value,H=ie+pe(L,Ct++),K+=zt(L,$,N,H,B);else if(H==="object"){if(typeof f.then=="function")return zt(Kt(f),$,N,L,B);throw $=String(f),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return K}function jt(f,$,N){if(f==null)return f;var L=[],B=0;return zt(f,L,"","",function(H){return $.call(N,H,B++)}),L}function Ft(f){if(f._status===-1){var $=f._result;$=$(),$.then(function(N){(f._status===0||f._status===-1)&&(f._status=1,f._result=N)},function(N){(f._status===0||f._status===-1)&&(f._status=2,f._result=N)}),f._status===-1&&(f._status=0,f._result=$)}if(f._status===1)return f._result.default;throw f._result}var we=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)},ot={map:jt,forEach:function(f,$,N){jt(f,function(){$.apply(this,arguments)},N)},count:function(f){var $=0;return jt(f,function(){$++}),$},toArray:function(f){return jt(f,function($){return $})||[]},only:function(f){if(!P(f))throw Error("React.Children.only expected to receive a single React element child.");return f}};e.Activity=E,e.Children=ot,e.Component=F,e.Fragment=i,e.Profiler=o,e.PureComponent=M,e.StrictMode=s,e.Suspense=g,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,e.__COMPILER_RUNTIME={__proto__:null,c:function(f){return U.H.useMemoCache(f)}},e.cache=function(f){return function(){return f.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(f,$,N){if(f==null)throw Error("The argument must be a React element, but you passed "+f+".");var L=O({},f.props),B=f.key;if($!=null)for(H in $.key!==void 0&&(B=""+$.key),$)!vt.call($,H)||H==="key"||H==="__self"||H==="__source"||H==="ref"&&$.ref===void 0||(L[H]=$[H]);var H=arguments.length-2;if(H===1)L.children=N;else if(1<H){for(var K=Array(H),ie=0;ie<H;ie++)K[ie]=arguments[ie+2];L.children=K}return Wt(f.type,B,L)},e.createContext=function(f){return f={$$typeof:h,_currentValue:f,_currentValue2:f,_threadCount:0,Provider:null,Consumer:null},f.Provider=f,f.Consumer={$$typeof:n,_context:f},f},e.createElement=function(f,$,N){var L,B={},H=null;if($!=null)for(L in $.key!==void 0&&(H=""+$.key),$)vt.call($,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(B[L]=$[L]);var K=arguments.length-2;if(K===1)B.children=N;else if(1<K){for(var ie=Array(K),Ct=0;Ct<K;Ct++)ie[Ct]=arguments[Ct+2];B.children=ie}if(f&&f.defaultProps)for(L in K=f.defaultProps,K)B[L]===void 0&&(B[L]=K[L]);return Wt(f,H,B)},e.createRef=function(){return{current:null}},e.forwardRef=function(f){return{$$typeof:u,render:f}},e.isValidElement=P,e.lazy=function(f){return{$$typeof:w,_payload:{_status:-1,_result:f},_init:Ft}},e.memo=function(f,$){return{$$typeof:y,type:f,compare:$===void 0?null:$}},e.startTransition=function(f){var $=U.T,N={};U.T=N;try{var L=f(),B=U.S;B!==null&&B(N,L),typeof L=="object"&&L&&typeof L.then=="function"&&L.then(st,we)}catch(H){we(H)}finally{$!==null&&N.types!==null&&($.types=N.types),U.T=$}},e.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},e.use=function(f){return U.H.use(f)},e.useActionState=function(f,$,N){return U.H.useActionState(f,$,N)},e.useCallback=function(f,$){return U.H.useCallback(f,$)},e.useContext=function(f){return U.H.useContext(f)},e.useDebugValue=function(){},e.useDeferredValue=function(f,$){return U.H.useDeferredValue(f,$)},e.useEffect=function(f,$){return U.H.useEffect(f,$)},e.useEffectEvent=function(f){return U.H.useEffectEvent(f)},e.useId=function(){return U.H.useId()},e.useImperativeHandle=function(f,$,N){return U.H.useImperativeHandle(f,$,N)},e.useInsertionEffect=function(f,$){return U.H.useInsertionEffect(f,$)},e.useLayoutEffect=function(f,$){return U.H.useLayoutEffect(f,$)},e.useMemo=function(f,$){return U.H.useMemo(f,$)},e.useOptimistic=function(f,$){return U.H.useOptimistic(f,$)},e.useReducer=function(f,$,N){return U.H.useReducer(f,$,N)},e.useRef=function(f){return U.H.useRef(f)},e.useState=function(f){return U.H.useState(f)},e.useSyncExternalStore=function(f,$,N){return U.H.useSyncExternalStore(f,$,N)},e.useTransition=function(){return U.H.useTransition()},e.version="19.2.4"})),Vd=oh(Pd(((e,t)=>{t.exports=wu()}))());qd({tagName:"rtg-button",elementClass:Yt,react:Vd.default});qd({tagName:"rtg-checkbox",elementClass:Dt,react:Vd.default});const _u="sb-relative sb-overflow-hidden sb-w-1/3 sb-h-2 sb-linear-bar",xu="sb-min-w-[375px] sb-max-w-[609px] sb-w-[calc(100%-30px)] sm:sb-max-w-[735px] md:sb-w-[calc(100%-32px)] md:sb-max-w-[800px] lg:sb-min-w-[800px]",Su="sb-h-[100%] sb-min-w-[375px] sb-max-w-[609px] sb-w-[calc(100vw-30px)] sm:sb-max-w-[735px] md:sb-w-[calc(100vw-32px)] md:sb-max-w-[800px] lg:sb-min-w-[800px]",$u="sb-fixed sb-inset-0 sb-z-[9999] sb-flex sb-items-center sb-justify-center sb-p-4 sb-overflow-auto",Cu="sb-w-fit sb-flex sb-max-h-[calc(100vh-60px)] sb-bg-background sb-shadow-2xl sb-ring-1 sb-ring-border sb-rounded-xl sb-overflow-hidden",Eu="sb-justify-self-center sb-rotate-0",ku="sb-border-0 sb-bg-background !sb-m-0",Ru="sb-border sb-rounded-2xl sb-relative sb-py-6",Iu="!sb-text-left sb-text-foreground sb-font-normal hover:!sb-bg-muted !sb-text-sm sb-rounded-md !sb-shadow-none data-[state=active]:!sb-bg-muted",Ou="!sb-flex !sb-justify-start !sb-flex-nowrap !sb-w-full !rtg-grid-cols-2 !sb-gap-2 sb-mx-6",Au="!sb-w-[160px] sb-gap-4 ";var T=(e=>(e.USER_PROFILE_CARD_HEADER_CONTAINER="sb-user-profile-card-header-container",e.USER_PROFILE_CONTAINER="sb-user-profile",e.USER_PROFILE_SIDEBAR="sb-user-profile-sidebar-tabs",e.USER_PROFILE_SIDEBAR_TABS="sb-user-profile-sidebar-tabs",e.USER_PROFILE_SIDEBAR_BURGER_MENU="sb-user-profile-sidebar-burger-menu",e.USER_PROFILE_INPUT_LABEL="sb-user-profile-input-label",e.USER_PROFILE_INPUT_FIELD="sb-user-profile-input-field",e.USER_PROFILE_EDIT_FORM="sb-user-profile-edit-form",e.USER_PROFILE_CARD_CONTAINER="sb-user-profile-card-container",e.USER_PROFILE_EDITABLE_INPUT_FIELD="sb-user-profile-editable-input-field",e.USER_PROFILE_DEFAULT_BUTTON="sb-user-profile-default-button",e.USER_PROFILE_OUTLINE_BUTTON="sb-user-profile-outline-button",e.USER_PROFILE_OTP="sb-user-profile-otp",e.USER_PROFILE_EDIT_BUTTON="sb-user-profile-edit-button",e))(T||{});const pt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px","3xl":"1920px","4xl":"2560px"},Pu=/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/,Fu=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Tu=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;function qo(e,t,r){const i=e.formData[t],s=[],o=u=>{if(["input","checkbox","otp"].includes(u.element_type)&&"data_key"in u&&u.data_key===t)return u;if(u.element_type==="container")for(const g of u.properties.children){const y=o(g);if(y)return y}return null},n=e.renderSpec?o(e.renderSpec.root_container):null;if(!n||!("validation"in n.properties))return;const{validation:h}=n.properties;if(!(!h||r!=="submit"&&h.on_event!==r)){if(n.hidden){delete e.errors[t];return}for(const u of h.rules){if(n.hidden)continue;let g=!0;switch(u.type){case"required":g=Hd(i,n);break;case"min_length":g=Gd(i,u.length);break;case"max_length":g=Wd(i,u.length);break;case"min_value":g=Kd(i,u.value);break;case"max_value":g=Yd(i,u.value);break;case"regex":g=Xd(i,u.regex);break;case"field_match":g=Zd(i,u.field_match?e.formData[u.field_match]:void 0);break;case"email":g=Jd(i);break;case"phone":g=Qd(i);break;case"date":g=tc(i);break;default:g=!0}!g&&u.error_message&&s.push(u.error_message)}e.errors={...e.errors,[t]:s}}}function Hd(e,t){return!(e===void 0||e===""||e===!1||t&&t.element_type==="input"&&t.properties.type==="tel"&&typeof e=="string"&&e.split("-")[1]==="")}function Gd(e,t){return typeof e=="string"?e.length>=(t??0):!0}function Wd(e,t){return typeof e=="string"?e.length<=(t??1/0):!0}function Kd(e,t){const r=typeof t=="string"?parseFloat(t):t,i=typeof e=="string"?parseFloat(e):e;return typeof i=="number"&&typeof r=="number"&&!isNaN(i)&&!isNaN(r)?i>=r:!0}function Yd(e,t){const r=typeof t=="string"?parseFloat(t):t,i=typeof e=="string"?parseFloat(e):e;return typeof i=="number"&&typeof r=="number"&&!isNaN(i)&&!isNaN(r)?i<=r:!0}function Xd(e,t){return typeof e=="string"&&t?new RegExp(t).test(e):!0}function Zd(e,t){return t!==void 0?e===t:!0}function Jd(e){return typeof e=="string"?Fu.test(e):!0}function Qd(e){return typeof e=="string"?Pu.test(e):!0}function tc(e){return typeof e=="string"?Tu.test(e):!0}function ec(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=ec(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Lu(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=ec(e))&&(i&&(i+=" "),i+=t);return i}const mn="-",Nu=e=>{const t=ju(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:n=>{const h=n.split(mn);return h[0]===""&&h.length!==1&&h.shift(),rc(h,t)||zu(n)},getConflictingClassGroupIds:(n,h)=>{const u=r[n]||[];return h&&i[n]?[...u,...i[n]]:u}}},rc=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),s=i?rc(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(mn);return(n=t.validators.find(({validator:h})=>h(o)))==null?void 0:n.classGroupId},ad=/^\[(.+)\]$/,zu=e=>{if(ad.test(e)){const t=ad.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ju=e=>{const{theme:t,prefix:r}=e,i={nextPart:new Map,validators:[]};return Du(Object.entries(e.classGroups),r).forEach(([o,n])=>{Jo(n,i,o,t)}),i},Jo=(e,t,r,i)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:ld(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(Uu(s)){Jo(s(i),t,r,i);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,n])=>{Jo(n,ld(t,o),r,i)})})},ld=(e,t)=>{let r=e;return t.split(mn).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},Uu=e=>e.isThemeGetter,Du=(e,t)=>t?e.map(([r,i])=>{const s=i.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([n,h])=>[t+n,h])):o);return[r,s]}):e,Bu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,i=new Map;const s=(o,n)=>{r.set(o,n),t++,t>e&&(t=0,i=r,r=new Map)};return{get(o){let n=r.get(o);if(n!==void 0)return n;if((n=i.get(o))!==void 0)return s(o,n),n},set(o,n){r.has(o)?r.set(o,n):s(o,n)}}},ic="!",Mu=e=>{const{separator:t,experimentalParseClassName:r}=e,i=t.length===1,s=t[0],o=t.length,n=h=>{const u=[];let g=0,y=0,w;for(let O=0;O<h.length;O++){let A=h[O];if(g===0){if(A===s&&(i||h.slice(O,O+o)===t)){u.push(h.slice(y,O)),y=O+o;continue}if(A==="/"){w=O;continue}}A==="["?g++:A==="]"&&g--}const E=u.length===0?h:h.substring(y),C=E.startsWith(ic),S=C?E.substring(1):E,k=w&&w>y?w-y:void 0;return{modifiers:u,hasImportantModifier:C,baseClassName:S,maybePostfixModifierPosition:k}};return r?h=>r({className:h,parseClassName:n}):n},qu=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(i=>{i[0]==="["?(t.push(...r.sort(),i),r=[]):r.push(i)}),t.push(...r.sort()),t},Vu=e=>({cache:Bu(e.cacheSize),parseClassName:Mu(e),...Nu(e)}),Hu=/\s+/,Gu=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s}=t,o=[],n=e.trim().split(Hu);let h="";for(let u=n.length-1;u>=0;u-=1){const g=n[u],{modifiers:y,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:C}=r(g);let S=!!C,k=i(S?E.substring(0,C):E);if(!k){if(!S){h=g+(h.length>0?" "+h:h);continue}if(k=i(E),!k){h=g+(h.length>0?" "+h:h);continue}S=!1}const O=qu(y).join(":"),A=w?O+ic:O,F=A+k;if(o.includes(F))continue;o.push(F);const V=s(k,S);for(let M=0;M<V.length;++M){const J=V[M];o.push(A+J)}h=g+(h.length>0?" "+h:h)}return h};function Wu(){let e=0,t,r,i="";for(;e<arguments.length;)(t=arguments[e++])&&(r=sc(t))&&(i&&(i+=" "),i+=r);return i}const sc=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=sc(e[i]))&&(r&&(r+=" "),r+=t);return r};function Ku(e,...t){let r,i,s,o=n;function n(u){const g=t.reduce((y,w)=>w(y),e());return r=Vu(g),i=r.cache.get,s=r.cache.set,o=h,h(u)}function h(u){const g=i(u);if(g)return g;const y=Gu(u,r);return s(u,y),y}return function(){return o(Wu.apply(null,arguments))}}const X=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},oc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yu=/^\d+\/\d+$/,Xu=new Set(["px","full","screen"]),Zu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ju=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ep=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fe=e=>Mr(e)||Xu.has(e)||Yu.test(e),Re=e=>Yr(e,"length",dp),Mr=e=>!!e&&!Number.isNaN(Number(e)),Vo=e=>Yr(e,"number",Mr),li=e=>!!e&&Number.isInteger(Number(e)),rp=e=>e.endsWith("%")&&Mr(e.slice(0,-1)),j=e=>oc.test(e),Ie=e=>Zu.test(e),ip=new Set(["length","size","percentage"]),sp=e=>Yr(e,ip,nc),op=e=>Yr(e,"position",nc),np=new Set(["image","url"]),ap=e=>Yr(e,np,hp),lp=e=>Yr(e,"",cp),di=()=>!0,Yr=(e,t,r)=>{const i=oc.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):r(i[2]):!1},dp=e=>Ju.test(e)&&!Qu.test(e),nc=()=>!1,cp=e=>tp.test(e),hp=e=>ep.test(e),up=()=>{const e=X("colors"),t=X("spacing"),r=X("blur"),i=X("brightness"),s=X("borderColor"),o=X("borderRadius"),n=X("borderSpacing"),h=X("borderWidth"),u=X("contrast"),g=X("grayscale"),y=X("hueRotate"),w=X("invert"),E=X("gap"),C=X("gradientColorStops"),S=X("gradientColorStopPositions"),k=X("inset"),O=X("margin"),A=X("opacity"),F=X("padding"),V=X("saturate"),M=X("scale"),J=X("sepia"),it=X("skew"),st=X("space"),U=X("translate"),vt=()=>["auto","contain","none"],Wt=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",j,t],P=()=>[j,t],Be=()=>["",fe,Re],Nt=()=>["auto",Mr,j],pe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Kt=()=>["solid","dashed","dotted","double","none"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],jt=()=>["start","end","center","between","around","evenly","stretch"],Ft=()=>["","0",j],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ot=()=>[Mr,j];return{cacheSize:500,separator:":",theme:{colors:[di],spacing:[fe,Re],blur:["none","",Ie,j],brightness:ot(),borderColor:[e],borderRadius:["none","","full",Ie,j],borderSpacing:P(),borderWidth:Be(),contrast:ot(),grayscale:Ft(),hueRotate:ot(),invert:Ft(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[rp,Re],inset:ue(),margin:ue(),opacity:ot(),padding:P(),saturate:ot(),scale:ot(),sepia:Ft(),skew:ot(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[Ie]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...pe(),j]}],overflow:[{overflow:Wt()}],"overflow-x":[{"overflow-x":Wt()}],"overflow-y":[{"overflow-y":Wt()}],overscroll:[{overscroll:vt()}],"overscroll-x":[{"overscroll-x":vt()}],"overscroll-y":[{"overscroll-y":vt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",li,j]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:Ft()}],shrink:[{shrink:Ft()}],order:[{order:["first","last","none",li,j]}],"grid-cols":[{"grid-cols":[di]}],"col-start-end":[{col:["auto",{span:["full",li,j]},j]}],"col-start":[{"col-start":Nt()}],"col-end":[{"col-end":Nt()}],"grid-rows":[{"grid-rows":[di]}],"row-start-end":[{row:["auto",{span:[li,j]},j]}],"row-start":[{"row-start":Nt()}],"row-end":[{"row-end":Nt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...jt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...jt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...jt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[O]}],mx:[{mx:[O]}],my:[{my:[O]}],ms:[{ms:[O]}],me:[{me:[O]}],mt:[{mt:[O]}],mr:[{mr:[O]}],mb:[{mb:[O]}],ml:[{ml:[O]}],"space-x":[{"space-x":[st]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[st]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",j,t]}],"min-w":[{"min-w":[j,t,"min","max","fit"]}],"max-w":[{"max-w":[j,t,"none","full","min","max","fit","prose",{screen:[Ie]},Ie]}],h:[{h:[j,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[j,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ie,Re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vo]}],"font-family":[{font:[di]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",j]}],"line-clamp":[{"line-clamp":["none",Mr,Vo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fe,j]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Kt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fe,Re]}],"underline-offset":[{"underline-offset":["auto",fe,j]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...pe(),op]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ap]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Kt(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Kt()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Kt()]}],"outline-offset":[{"outline-offset":[fe,j]}],"outline-w":[{outline:[fe,Re]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[fe,Re]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ie,lp]}],"shadow-color":[{shadow:[di]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...zt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":zt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Ie,j]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[w]}],saturate:[{saturate:[V]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",j]}],duration:[{duration:ot()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:ot()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[li,j]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[it]}],"skew-y":[{"skew-y":[it]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",j]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[fe,Re,Vo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},pp=Ku(up);function Z(...e){return pp(Lu(e))}function R(e){return Object.entries(e).filter(([t,r])=>typeof r!="object"&&r!=null).map(([t,r])=>`${t}: ${r};`).join(" ")}function gp(e){document.documentElement.setAttribute("data-theme",e)}function mp(){const e=document.documentElement.getAttribute("data-theme");(!e||e!=="light"&&e!=="dark")&&gp("light")}function dd(){return document.documentElement.getAttribute("data-theme")}function bn(e,t){return e.includes("{{theme}}")?e.replace("{{theme}}",t):e}function St(e){const t={},r={};for(const i in e){const s=e[i];s!=null&&(i in pt&&typeof s=="object"?r[i]=s:t[i]=s)}return{base:t,responsive:r}}function bp(e){return{...pt,...e??{}}}function $t(e,t,r){const i=bp(r);let s="";for(const n in t){const u=`(min-width: ${i[n]})`,g=Object.entries(t[n]).map(([y,w])=>`${y}: ${w} !important;`).join(" ");s+=`@media ${u} { #${e} { ${g} } }
5511
- `}let o=document.getElementById(`responsive-style-${e}`);o||(o=document.createElement("style"),o.id=`responsive-style-${e}`,document.head.appendChild(o)),o.textContent=s}function Si(){return new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}async function fp(e,t){if(!t.length)return;await Si();const r=e.offsetWidth,i=t.length,s=60,o=8;let n=1,h=0,u=-1;for(let g=1;g<=i;g++){const y=o*(g-1),w=(r-y)/g,E=i%g;if(w<s)continue;let C=0;if(E===0&&g>n)C=u+1;else if(E>=2)C=2;else continue;(C>u||C===u&&w>h)&&(n=g,h=w,u=C)}e.style.setProperty("--sso-cols",String(n)),e.style.setProperty("--sso-gap",`${o}px`),e.style.setProperty("--sso-item-width","calc(100% / var(--sso-cols) - var(--sso-gap) / var(--sso-cols) * (var(--sso-cols) - 1))")}function xs(e,t){const r={...e};for(const i in t){const s=t[i],o=r[i];s&&typeof s=="object"&&!Array.isArray(s)?r[i]=xs(o??{},s):r[i]=s}return r}function Vt(e,t){var r,i,s,o,n,h,u,g,y,w,E,C;return{default:(i=(r=t.byType)==null?void 0:r.buttons)==null?void 0:i.defaultButton,secondary:(o=(s=t.byType)==null?void 0:s.buttons)==null?void 0:o.secondaryButton,link:(h=(n=t.byType)==null?void 0:n.buttons)==null?void 0:h.linkButton,destructive:(g=(u=t.byType)==null?void 0:u.buttons)==null?void 0:g.destructiveButton,ghost:(w=(y=t.byType)==null?void 0:y.buttons)==null?void 0:w.ghostButton,outline:(C=(E=t.byType)==null?void 0:E.buttons)==null?void 0:C.outlineButton}[e]}function I(e,t,r,i,s,o=!1){var g,y;let n=e||"",h={...t};o&&((g=s==null?void 0:s.config)!=null&&g.font)&&(n=Z(n,s.config.font));const u=w=>{if(!w)return;const{class:E,style:C,font:S,rule:k="merge"}=w;k==="override"?(n=S||E||"",h=C||{}):(n=Z(n,E,S),h={...h,...C})};return u(r),i&&((y=s==null?void 0:s.byId)!=null&&y[i])&&u(s.byId[i]),{class:n,style:h}}const cd="abcdefghijklmnopqrstuvwxyz0123456789",vp=6;function yp(e){let t="";for(let r=0;r<vp;r++)t+=cd.charAt(Math.floor(Math.random()*cd.length));return t}const _t=()=>yp();function Ss(e){if(!(e!=null&&e.startsWith("data:image/svg+xml;base64,")))return null;try{const t=e.replace("data:image/svg+xml;base64,","");return atob(t)}catch(t){return console.error("Invalid base64 SVG:",t),null}}function ac(e){return/^https?:\/\//.test(e)||e!=null&&e.startsWith("data:image/svg+xml;base64,")?e:`data:image/svg+xml;base64,${e}`}function wp(e){try{const t=e.replace(/^data:text\/html;base64,/,"");return decodeURIComponent(escape(atob(t)))}catch(t){return console.error("Failed to decode base64 html:",t),""}}var _p=Object.defineProperty,xp=Object.getOwnPropertyDescriptor,fn=(e,t,r,i)=>{for(var s=i>1?void 0:i?xp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&_p(t,r,s),s};exports.SbTextRenderer=class extends v{createRenderRoot(){return this}render(){var o,n;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,{...this.element.style,textAlign:this.element.properties.text_alignment},void 0,this.element.id,void 0),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((n=(o=this.component.customizations)==null?void 0:o.config)==null?void 0:n.breakpoints)??pt),d`
5510
+ `}};l([a({type:String}),c("design:type",String)],Mo.prototype,"defaultValue",void 0),Mo=l([u("light-sample-demo"),c("design:paramtypes",[])],Mo);var fp=new Set(["children","localName","ref","style","className"]),nd=new WeakMap,vp=(e,t,r,i,s)=>{let o=s==null?void 0:s[t];o===void 0||r===i?r==null&&t in HTMLElement.prototype?e.removeAttribute(t):e[t]=r:((n,h,p)=>{let g=nd.get(n);g===void 0&&nd.set(n,g=new Map);let y=g.get(h);p===void 0?y!==void 0&&(g.delete(h),n.removeEventListener(h,y)):y===void 0?(g.set(h,y={handleEvent:p}),n.addEventListener(h,y)):y.handleEvent=p})(e,o,r)},yp=(e,t)=>{typeof e=="function"?e(t):e.current=t};function qd(e=window.React,t,r,i,s){let o,n,h;{let C=e;({tagName:n,elementClass:h,events:i,displayName:s}=C),o=C.react}let p=o.Component,g=o.createElement,y=new Set(Object.keys(i??{}));class w extends p{constructor(){super(...arguments),this.o=null}t(S){if(this.o!==null)for(let k in this.i)vp(this.o,k,this.props[k],S?S[k]:void 0,i)}componentDidMount(){var S;this.t(),(S=this.o)==null||S.removeAttribute("defer-hydration")}componentDidUpdate(S){this.t(S)}render(){let{_$Gl:S,...k}=this.props;this.h!==S&&(this.u=A=>{S!==null&&yp(S,A),this.o=A,this.h=S}),this.i={};let O={ref:this.u};for(let[A,F]of Object.entries(k))fp.has(A)?O[A==="className"?"class":A]=F:y.has(A)||A in h.prototype?this.i[A]=F:O[A]=F;return O.suppressHydrationWarning=!0,g(n,O)}}w.displayName=s??h.name;let E=o.forwardRef(((C,S)=>g(w,{...C,_$Gl:S},C==null?void 0:C.children)));return E.displayName=w.displayName,E}var wp=Pd((e=>{var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),n=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),C=Symbol.iterator;function S(f){return typeof f!="object"||!f?null:(f=C&&f[C]||f["@@iterator"],typeof f=="function"?f:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,A={};function F(f,$,N){this.props=f,this.context=$,this.refs=A,this.updater=N||k}F.prototype.isReactComponent={},F.prototype.setState=function(f,$){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,$,"setState")},F.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function V(){}V.prototype=F.prototype;function M(f,$,N){this.props=f,this.context=$,this.refs=A,this.updater=N||k}var Q=M.prototype=new V;Q.constructor=M,O(Q,F.prototype),Q.isPureReactComponent=!0;var it=Array.isArray;function st(){}var j={H:null,A:null,T:null,S:null},vt=Object.prototype.hasOwnProperty;function Wt(f,$,N){var L=N.ref;return{$$typeof:t,type:f,key:$,ref:L===void 0?null:L,props:N}}function pe(f,$){return Wt(f.type,$,f.props)}function P(f){return typeof f=="object"&&!!f&&f.$$typeof===t}function Me(f){var $={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(N){return $[N]})}var Nt=/\/+/g;function ue(f,$){return typeof f=="object"&&f&&f.key!=null?Me(""+f.key):$.toString(36)}function Kt(f){switch(f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(st,st):(f.status="pending",f.then(function($){f.status==="pending"&&(f.status="fulfilled",f.value=$)},function($){f.status==="pending"&&(f.status="rejected",f.reason=$)})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}}throw f}function zt(f,$,N,L,B){var H=typeof f;(H==="undefined"||H==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(H){case"bigint":case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case t:case r:K=!0;break;case w:return K=f._init,zt(K(f._payload),$,N,L,B)}}if(K)return B=B(f),K=L===""?"."+ue(f,0):L,it(B)?(N="",K!=null&&(N=K.replace(Nt,"$&/")+"/"),zt(B,$,N,"",function(mc){return mc})):B!=null&&(P(B)&&(B=pe(B,N+(B.key==null||f&&f.key===B.key?"":(""+B.key).replace(Nt,"$&/")+"/")+K)),$.push(B)),1;K=0;var ie=L===""?".":L+":";if(it(f))for(var Ct=0;Ct<f.length;Ct++)L=f[Ct],H=ie+ue(L,Ct),K+=zt(L,$,N,H,B);else if(Ct=S(f),typeof Ct=="function")for(f=Ct.call(f),Ct=0;!(L=f.next()).done;)L=L.value,H=ie+ue(L,Ct++),K+=zt(L,$,N,H,B);else if(H==="object"){if(typeof f.then=="function")return zt(Kt(f),$,N,L,B);throw $=String(f),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return K}function Ut(f,$,N){if(f==null)return f;var L=[],B=0;return zt(f,L,"","",function(H){return $.call(N,H,B++)}),L}function Ft(f){if(f._status===-1){var $=f._result;$=$(),$.then(function(N){(f._status===0||f._status===-1)&&(f._status=1,f._result=N)},function(N){(f._status===0||f._status===-1)&&(f._status=2,f._result=N)}),f._status===-1&&(f._status=0,f._result=$)}if(f._status===1)return f._result.default;throw f._result}var we=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)},ot={map:Ut,forEach:function(f,$,N){Ut(f,function(){$.apply(this,arguments)},N)},count:function(f){var $=0;return Ut(f,function(){$++}),$},toArray:function(f){return Ut(f,function($){return $})||[]},only:function(f){if(!P(f))throw Error("React.Children.only expected to receive a single React element child.");return f}};e.Activity=E,e.Children=ot,e.Component=F,e.Fragment=i,e.Profiler=o,e.PureComponent=M,e.StrictMode=s,e.Suspense=g,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,e.__COMPILER_RUNTIME={__proto__:null,c:function(f){return j.H.useMemoCache(f)}},e.cache=function(f){return function(){return f.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(f,$,N){if(f==null)throw Error("The argument must be a React element, but you passed "+f+".");var L=O({},f.props),B=f.key;if($!=null)for(H in $.key!==void 0&&(B=""+$.key),$)!vt.call($,H)||H==="key"||H==="__self"||H==="__source"||H==="ref"&&$.ref===void 0||(L[H]=$[H]);var H=arguments.length-2;if(H===1)L.children=N;else if(1<H){for(var K=Array(H),ie=0;ie<H;ie++)K[ie]=arguments[ie+2];L.children=K}return Wt(f.type,B,L)},e.createContext=function(f){return f={$$typeof:h,_currentValue:f,_currentValue2:f,_threadCount:0,Provider:null,Consumer:null},f.Provider=f,f.Consumer={$$typeof:n,_context:f},f},e.createElement=function(f,$,N){var L,B={},H=null;if($!=null)for(L in $.key!==void 0&&(H=""+$.key),$)vt.call($,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(B[L]=$[L]);var K=arguments.length-2;if(K===1)B.children=N;else if(1<K){for(var ie=Array(K),Ct=0;Ct<K;Ct++)ie[Ct]=arguments[Ct+2];B.children=ie}if(f&&f.defaultProps)for(L in K=f.defaultProps,K)B[L]===void 0&&(B[L]=K[L]);return Wt(f,H,B)},e.createRef=function(){return{current:null}},e.forwardRef=function(f){return{$$typeof:p,render:f}},e.isValidElement=P,e.lazy=function(f){return{$$typeof:w,_payload:{_status:-1,_result:f},_init:Ft}},e.memo=function(f,$){return{$$typeof:y,type:f,compare:$===void 0?null:$}},e.startTransition=function(f){var $=j.T,N={};j.T=N;try{var L=f(),B=j.S;B!==null&&B(N,L),typeof L=="object"&&L&&typeof L.then=="function"&&L.then(st,we)}catch(H){we(H)}finally{$!==null&&N.types!==null&&($.types=N.types),j.T=$}},e.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},e.use=function(f){return j.H.use(f)},e.useActionState=function(f,$,N){return j.H.useActionState(f,$,N)},e.useCallback=function(f,$){return j.H.useCallback(f,$)},e.useContext=function(f){return j.H.useContext(f)},e.useDebugValue=function(){},e.useDeferredValue=function(f,$){return j.H.useDeferredValue(f,$)},e.useEffect=function(f,$){return j.H.useEffect(f,$)},e.useEffectEvent=function(f){return j.H.useEffectEvent(f)},e.useId=function(){return j.H.useId()},e.useImperativeHandle=function(f,$,N){return j.H.useImperativeHandle(f,$,N)},e.useInsertionEffect=function(f,$){return j.H.useInsertionEffect(f,$)},e.useLayoutEffect=function(f,$){return j.H.useLayoutEffect(f,$)},e.useMemo=function(f,$){return j.H.useMemo(f,$)},e.useOptimistic=function(f,$){return j.H.useOptimistic(f,$)},e.useReducer=function(f,$,N){return j.H.useReducer(f,$,N)},e.useRef=function(f){return j.H.useRef(f)},e.useState=function(f){return j.H.useState(f)},e.useSyncExternalStore=function(f,$,N){return j.H.useSyncExternalStore(f,$,N)},e.useTransition=function(){return j.H.useTransition()},e.version="19.2.4"})),Vd=oh(Pd(((e,t)=>{t.exports=wp()}))());qd({tagName:"rtg-button",elementClass:Yt,react:Vd.default});qd({tagName:"rtg-checkbox",elementClass:Dt,react:Vd.default});const _p="sb-relative sb-overflow-hidden sb-w-1/3 sb-h-2 sb-linear-bar",xp="sb-min-w-[375px] sb-max-w-[609px] sb-w-[calc(100%-30px)] sm:sb-max-w-[735px] md:sb-w-[calc(100%-32px)] md:sb-max-w-[800px] lg:sb-min-w-[800px]",Sp="sb-h-[100%] sb-min-w-[375px] sb-max-w-[609px] sb-w-[calc(100vw-30px)] sm:sb-max-w-[735px] md:sb-w-[calc(100vw-32px)] md:sb-max-w-[800px] lg:sb-min-w-[800px]",$p="sb-fixed sb-inset-0 sb-z-[9999] sb-flex sb-items-center sb-justify-center sb-p-4 sb-overflow-auto",Cp="sb-w-fit sb-flex sb-max-h-[calc(100vh-60px)] sb-bg-background sb-shadow-2xl sb-ring-1 sb-ring-border sb-rounded-xl sb-overflow-hidden",Ep="sb-justify-self-center sb-rotate-0",kp="sb-border-0 sb-bg-background !sb-m-0",Rp="sb-border sb-rounded-2xl sb-relative sb-py-6",Ip="!sb-text-left sb-text-foreground sb-font-normal hover:!sb-bg-muted !sb-text-sm sb-rounded-md !sb-shadow-none data-[state=active]:!sb-bg-muted",Op="!sb-flex !sb-justify-start !sb-flex-nowrap !sb-w-full !rtg-grid-cols-2 !sb-gap-2 sb-mx-6",Ap="!sb-w-[160px] sb-gap-4 ";var T=(e=>(e.USER_PROFILE_CARD_HEADER_CONTAINER="sb-user-profile-card-header-container",e.USER_PROFILE_CONTAINER="sb-user-profile",e.USER_PROFILE_SIDEBAR="sb-user-profile-sidebar-tabs",e.USER_PROFILE_SIDEBAR_TABS="sb-user-profile-sidebar-tabs",e.USER_PROFILE_SIDEBAR_BURGER_MENU="sb-user-profile-sidebar-burger-menu",e.USER_PROFILE_INPUT_LABEL="sb-user-profile-input-label",e.USER_PROFILE_INPUT_FIELD="sb-user-profile-input-field",e.USER_PROFILE_EDIT_FORM="sb-user-profile-edit-form",e.USER_PROFILE_CARD_CONTAINER="sb-user-profile-card-container",e.USER_PROFILE_EDITABLE_INPUT_FIELD="sb-user-profile-editable-input-field",e.USER_PROFILE_DEFAULT_BUTTON="sb-user-profile-default-button",e.USER_PROFILE_OUTLINE_BUTTON="sb-user-profile-outline-button",e.USER_PROFILE_OTP="sb-user-profile-otp",e.USER_PROFILE_EDIT_BUTTON="sb-user-profile-edit-button",e))(T||{});const mt={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px","3xl":"1920px","4xl":"2560px"},Pp=/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/,Fp=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Tp=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;function qo(e,t,r){const i=e.formData[t],s=[],o=p=>{if(["input","checkbox","otp"].includes(p.element_type)&&"data_key"in p&&p.data_key===t)return p;if(p.element_type==="container")for(const g of p.properties.children){const y=o(g);if(y)return y}return null},n=e.renderSpec?o(e.renderSpec.root_container):null;if(!n||!("validation"in n.properties))return;const{validation:h}=n.properties;if(!(!h||r!=="submit"&&h.on_event!==r)){if(n.hidden){delete e.errors[t];return}for(const p of h.rules){if(n.hidden)continue;let g=!0;switch(p.type){case"required":g=Hd(i,n);break;case"min_length":g=Gd(i,p.length);break;case"max_length":g=Wd(i,p.length);break;case"min_value":g=Kd(i,p.value);break;case"max_value":g=Yd(i,p.value);break;case"regex":g=Xd(i,p.regex);break;case"field_match":g=Zd(i,p.field_match?e.formData[p.field_match]:void 0);break;case"email":g=Jd(i);break;case"phone":g=Qd(i);break;case"date":g=tc(i);break;default:g=!0}!g&&p.error_message&&s.push(p.error_message)}e.errors={...e.errors,[t]:s}}}function Hd(e,t){return!(e===void 0||e===""||e===!1||t&&t.element_type==="input"&&t.properties.type==="tel"&&typeof e=="string"&&e.split("-")[1]==="")}function Gd(e,t){return typeof e=="string"?e.length>=(t??0):!0}function Wd(e,t){return typeof e=="string"?e.length<=(t??1/0):!0}function Kd(e,t){const r=typeof t=="string"?parseFloat(t):t,i=typeof e=="string"?parseFloat(e):e;return typeof i=="number"&&typeof r=="number"&&!isNaN(i)&&!isNaN(r)?i>=r:!0}function Yd(e,t){const r=typeof t=="string"?parseFloat(t):t,i=typeof e=="string"?parseFloat(e):e;return typeof i=="number"&&typeof r=="number"&&!isNaN(i)&&!isNaN(r)?i<=r:!0}function Xd(e,t){return typeof e=="string"&&t?new RegExp(t).test(e):!0}function Zd(e,t){return t!==void 0?e===t:!0}function Jd(e){return typeof e=="string"?Fp.test(e):!0}function Qd(e){return typeof e=="string"?Pp.test(e):!0}function tc(e){return typeof e=="string"?Tp.test(e):!0}function ec(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=ec(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Lp(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=ec(e))&&(i&&(i+=" "),i+=t);return i}const mn="-",Np=e=>{const t=Up(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:n=>{const h=n.split(mn);return h[0]===""&&h.length!==1&&h.shift(),rc(h,t)||zp(n)},getConflictingClassGroupIds:(n,h)=>{const p=r[n]||[];return h&&i[n]?[...p,...i[n]]:p}}},rc=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),s=i?rc(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(mn);return(n=t.validators.find(({validator:h})=>h(o)))==null?void 0:n.classGroupId},ad=/^\[(.+)\]$/,zp=e=>{if(ad.test(e)){const t=ad.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Up=e=>{const{theme:t,prefix:r}=e,i={nextPart:new Map,validators:[]};return Dp(Object.entries(e.classGroups),r).forEach(([o,n])=>{Jo(n,i,o,t)}),i},Jo=(e,t,r,i)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:ld(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(jp(s)){Jo(s(i),t,r,i);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,n])=>{Jo(n,ld(t,o),r,i)})})},ld=(e,t)=>{let r=e;return t.split(mn).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},jp=e=>e.isThemeGetter,Dp=(e,t)=>t?e.map(([r,i])=>{const s=i.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([n,h])=>[t+n,h])):o);return[r,s]}):e,Bp=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,i=new Map;const s=(o,n)=>{r.set(o,n),t++,t>e&&(t=0,i=r,r=new Map)};return{get(o){let n=r.get(o);if(n!==void 0)return n;if((n=i.get(o))!==void 0)return s(o,n),n},set(o,n){r.has(o)?r.set(o,n):s(o,n)}}},ic="!",Mp=e=>{const{separator:t,experimentalParseClassName:r}=e,i=t.length===1,s=t[0],o=t.length,n=h=>{const p=[];let g=0,y=0,w;for(let O=0;O<h.length;O++){let A=h[O];if(g===0){if(A===s&&(i||h.slice(O,O+o)===t)){p.push(h.slice(y,O)),y=O+o;continue}if(A==="/"){w=O;continue}}A==="["?g++:A==="]"&&g--}const E=p.length===0?h:h.substring(y),C=E.startsWith(ic),S=C?E.substring(1):E,k=w&&w>y?w-y:void 0;return{modifiers:p,hasImportantModifier:C,baseClassName:S,maybePostfixModifierPosition:k}};return r?h=>r({className:h,parseClassName:n}):n},qp=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(i=>{i[0]==="["?(t.push(...r.sort(),i),r=[]):r.push(i)}),t.push(...r.sort()),t},Vp=e=>({cache:Bp(e.cacheSize),parseClassName:Mp(e),...Np(e)}),Hp=/\s+/,Gp=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s}=t,o=[],n=e.trim().split(Hp);let h="";for(let p=n.length-1;p>=0;p-=1){const g=n[p],{modifiers:y,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:C}=r(g);let S=!!C,k=i(S?E.substring(0,C):E);if(!k){if(!S){h=g+(h.length>0?" "+h:h);continue}if(k=i(E),!k){h=g+(h.length>0?" "+h:h);continue}S=!1}const O=qp(y).join(":"),A=w?O+ic:O,F=A+k;if(o.includes(F))continue;o.push(F);const V=s(k,S);for(let M=0;M<V.length;++M){const Q=V[M];o.push(A+Q)}h=g+(h.length>0?" "+h:h)}return h};function Wp(){let e=0,t,r,i="";for(;e<arguments.length;)(t=arguments[e++])&&(r=sc(t))&&(i&&(i+=" "),i+=r);return i}const sc=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=sc(e[i]))&&(r&&(r+=" "),r+=t);return r};function Kp(e,...t){let r,i,s,o=n;function n(p){const g=t.reduce((y,w)=>w(y),e());return r=Vp(g),i=r.cache.get,s=r.cache.set,o=h,h(p)}function h(p){const g=i(p);if(g)return g;const y=Gp(p,r);return s(p,y),y}return function(){return o(Wp.apply(null,arguments))}}const X=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},oc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yp=/^\d+\/\d+$/,Xp=new Set(["px","full","screen"]),Zp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fe=e=>qr(e)||Xp.has(e)||Yp.test(e),Re=e=>Xr(e,"length",du),qr=e=>!!e&&!Number.isNaN(Number(e)),Vo=e=>Xr(e,"number",qr),ci=e=>!!e&&Number.isInteger(Number(e)),ru=e=>e.endsWith("%")&&qr(e.slice(0,-1)),U=e=>oc.test(e),Ie=e=>Zp.test(e),iu=new Set(["length","size","percentage"]),su=e=>Xr(e,iu,nc),ou=e=>Xr(e,"position",nc),nu=new Set(["image","url"]),au=e=>Xr(e,nu,hu),lu=e=>Xr(e,"",cu),hi=()=>!0,Xr=(e,t,r)=>{const i=oc.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):r(i[2]):!1},du=e=>Jp.test(e)&&!Qp.test(e),nc=()=>!1,cu=e=>tu.test(e),hu=e=>eu.test(e),pu=()=>{const e=X("colors"),t=X("spacing"),r=X("blur"),i=X("brightness"),s=X("borderColor"),o=X("borderRadius"),n=X("borderSpacing"),h=X("borderWidth"),p=X("contrast"),g=X("grayscale"),y=X("hueRotate"),w=X("invert"),E=X("gap"),C=X("gradientColorStops"),S=X("gradientColorStopPositions"),k=X("inset"),O=X("margin"),A=X("opacity"),F=X("padding"),V=X("saturate"),M=X("scale"),Q=X("sepia"),it=X("skew"),st=X("space"),j=X("translate"),vt=()=>["auto","contain","none"],Wt=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",U,t],P=()=>[U,t],Me=()=>["",fe,Re],Nt=()=>["auto",qr,U],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Kt=()=>["solid","dashed","dotted","double","none"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ut=()=>["start","end","center","between","around","evenly","stretch"],Ft=()=>["","0",U],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ot=()=>[qr,U];return{cacheSize:500,separator:":",theme:{colors:[hi],spacing:[fe,Re],blur:["none","",Ie,U],brightness:ot(),borderColor:[e],borderRadius:["none","","full",Ie,U],borderSpacing:P(),borderWidth:Me(),contrast:ot(),grayscale:Ft(),hueRotate:ot(),invert:Ft(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[ru,Re],inset:pe(),margin:pe(),opacity:ot(),padding:P(),saturate:ot(),scale:ot(),sepia:Ft(),skew:ot(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",U]}],container:["container"],columns:[{columns:[Ie]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ue(),U]}],overflow:[{overflow:Wt()}],"overflow-x":[{"overflow-x":Wt()}],"overflow-y":[{"overflow-y":Wt()}],overscroll:[{overscroll:vt()}],"overscroll-x":[{"overscroll-x":vt()}],"overscroll-y":[{"overscroll-y":vt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ci,U]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",U]}],grow:[{grow:Ft()}],shrink:[{shrink:Ft()}],order:[{order:["first","last","none",ci,U]}],"grid-cols":[{"grid-cols":[hi]}],"col-start-end":[{col:["auto",{span:["full",ci,U]},U]}],"col-start":[{"col-start":Nt()}],"col-end":[{"col-end":Nt()}],"grid-rows":[{"grid-rows":[hi]}],"row-start-end":[{row:["auto",{span:[ci,U]},U]}],"row-start":[{"row-start":Nt()}],"row-end":[{"row-end":Nt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",U]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",U]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...Ut()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ut(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ut(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[O]}],mx:[{mx:[O]}],my:[{my:[O]}],ms:[{ms:[O]}],me:[{me:[O]}],mt:[{mt:[O]}],mr:[{mr:[O]}],mb:[{mb:[O]}],ml:[{ml:[O]}],"space-x":[{"space-x":[st]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[st]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",U,t]}],"min-w":[{"min-w":[U,t,"min","max","fit"]}],"max-w":[{"max-w":[U,t,"none","full","min","max","fit","prose",{screen:[Ie]},Ie]}],h:[{h:[U,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[U,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ie,Re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vo]}],"font-family":[{font:[hi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",U]}],"line-clamp":[{"line-clamp":["none",qr,Vo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fe,U]}],"list-image":[{"list-image":["none",U]}],"list-style-type":[{list:["none","disc","decimal",U]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Kt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fe,Re]}],"underline-offset":[{"underline-offset":["auto",fe,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),ou]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",su]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},au]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Kt(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Kt()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Kt()]}],"outline-offset":[{"outline-offset":[fe,U]}],"outline-w":[{outline:[fe,Re]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[fe,Re]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ie,lu]}],"shadow-color":[{shadow:[hi]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...zt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":zt()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Ie,U]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[w]}],saturate:[{saturate:[V]}],sepia:[{sepia:[Q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",U]}],duration:[{duration:ot()}],ease:[{ease:["linear","in","out","in-out",U]}],delay:[{delay:ot()}],animate:[{animate:["none","spin","ping","pulse","bounce",U]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ci,U]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[it]}],"skew-y":[{"skew-y":[it]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",U]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",U]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[fe,Re,Vo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},uu=Kp(pu);function Z(...e){return uu(Lp(e))}function R(e){return Object.entries(e).filter(([t,r])=>typeof r!="object"&&r!=null).map(([t,r])=>`${t}: ${r};`).join(" ")}function gu(e){document.documentElement.setAttribute("data-theme",e)}function mu(){const e=document.documentElement.getAttribute("data-theme");(!e||e!=="light"&&e!=="dark")&&gu("light")}function dd(){return document.documentElement.getAttribute("data-theme")}function bn(e,t){return e.includes("{{theme}}")?e.replace("{{theme}}",t):e}function St(e){const t={},r={};for(const i in e){const s=e[i];s!=null&&(i in mt&&typeof s=="object"?r[i]=s:t[i]=s)}return{base:t,responsive:r}}function bu(e){return{...mt,...e??{}}}function $t(e,t,r){const i=bu(r);let s="";for(const n in t){const p=`(min-width: ${i[n]})`,g=Object.entries(t[n]).map(([y,w])=>`${y}: ${w} !important;`).join(" ");s+=`@media ${p} { #${e} { ${g} } }
5511
+ `}let o=document.getElementById(`responsive-style-${e}`);o||(o=document.createElement("style"),o.id=`responsive-style-${e}`,document.head.appendChild(o)),o.textContent=s}function Ci(){return new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))})}async function fu(e,t){if(!t.length)return;await Ci();const r=e.offsetWidth,i=t.length,s=60,o=8;let n=1,h=0,p=-1;for(let g=1;g<=i;g++){const y=o*(g-1),w=(r-y)/g,E=i%g;if(w<s)continue;let C=0;if(E===0&&g>n)C=p+1;else if(E>=2)C=2;else continue;(C>p||C===p&&w>h)&&(n=g,h=w,p=C)}e.style.setProperty("--sso-cols",String(n)),e.style.setProperty("--sso-gap",`${o}px`),e.style.setProperty("--sso-item-width","calc(100% / var(--sso-cols) - var(--sso-gap) / var(--sso-cols) * (var(--sso-cols) - 1))")}function Ss(e,t){const r={...e};for(const i in t){const s=t[i],o=r[i];s&&typeof s=="object"&&!Array.isArray(s)?r[i]=Ss(o??{},s):r[i]=s}return r}function Vt(e,t){var r,i,s,o,n,h,p,g,y,w,E,C;return{default:(i=(r=t.byType)==null?void 0:r.buttons)==null?void 0:i.defaultButton,secondary:(o=(s=t.byType)==null?void 0:s.buttons)==null?void 0:o.secondaryButton,link:(h=(n=t.byType)==null?void 0:n.buttons)==null?void 0:h.linkButton,destructive:(g=(p=t.byType)==null?void 0:p.buttons)==null?void 0:g.destructiveButton,ghost:(w=(y=t.byType)==null?void 0:y.buttons)==null?void 0:w.ghostButton,outline:(C=(E=t.byType)==null?void 0:E.buttons)==null?void 0:C.outlineButton}[e]}function I(e,t,r,i,s,o=!1){var g,y;let n=e||"",h={...t};o&&((g=s==null?void 0:s.config)!=null&&g.font)&&(n=Z(n,s.config.font));const p=w=>{if(!w)return;const{class:E,style:C,font:S,rule:k="merge"}=w;k==="override"?(n=S||E||"",h=C||{}):(n=Z(n,E,S),h={...h,...C})};return p(r),i&&((y=s==null?void 0:s.byId)!=null&&y[i])&&p(s.byId[i]),{class:n,style:h}}const cd="abcdefghijklmnopqrstuvwxyz0123456789",vu=6;function yu(e){let t="";for(let r=0;r<vu;r++)t+=cd.charAt(Math.floor(Math.random()*cd.length));return t}const _t=()=>yu();function $s(e){if(!(e!=null&&e.startsWith("data:image/svg+xml;base64,")))return null;try{const t=e.replace("data:image/svg+xml;base64,","");return atob(t)}catch(t){return console.error("Invalid base64 SVG:",t),null}}function ac(e){return/^https?:\/\//.test(e)||e!=null&&e.startsWith("data:image/svg+xml;base64,")?e:`data:image/svg+xml;base64,${e}`}function wu(e){try{const t=e.replace(/^data:text\/html;base64,/,"");return decodeURIComponent(escape(atob(t)))}catch(t){return console.error("Failed to decode base64 html:",t),""}}var _u=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,fn=(e,t,r,i)=>{for(var s=i>1?void 0:i?xu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&_u(t,r,s),s};exports.SbTextRenderer=class extends v{createRenderRoot(){return this}render(){var o,n;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,{...this.element.style,textAlign:this.element.properties.text_alignment},void 0,this.element.id,void 0),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((n=(o=this.component.customizations)==null?void 0:o.config)==null?void 0:n.breakpoints)??mt),d`
5512
5512
  <p id=${this.element.id} class=${t} style=${R(i)}>
5513
5513
  ${this.element.properties.content}
5514
5514
  </p>
5515
- `}};fn([a({type:Object})],exports.SbTextRenderer.prototype,"element",2);fn([a({attribute:!1})],exports.SbTextRenderer.prototype,"component",2);exports.SbTextRenderer=fn([p("sb-text-renderer")],exports.SbTextRenderer);/**
5515
+ `}};fn([a({type:Object})],exports.SbTextRenderer.prototype,"element",2);fn([a({attribute:!1})],exports.SbTextRenderer.prototype,"component",2);exports.SbTextRenderer=fn([u("sb-text-renderer")],exports.SbTextRenderer);/**
5516
5516
  * @license
5517
5517
  * Copyright 2017 Google LLC
5518
5518
  * SPDX-License-Identifier: BSD-3-Clause
5519
- */class Qo extends fs{}Qo.directiveName="unsafeSVG",Qo.resultType=2;const $s=_s(Qo);var Sp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Cs=(e,t,r,i)=>{for(var s=i>1?void 0:i?$p(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Sp(t,r,s),s};exports.SbButtonRenderer=class extends v{constructor(){super(...arguments),this.theme=dd(),this._onClick=()=>{this._disabled||this.component.handleEvent(this.element.properties.event,this.element)}}createRenderRoot(){return this}get _disabled(){var t;return!this.component||!this.element?!1:((t=this.element.properties.requires_valid)==null?void 0:t.some(r=>{var s;const i=this.component.findElementByKey(r);return i&&"validation"in i.properties&&((s=i.properties.validation)==null?void 0:s.on_event)!=="submit"&&!this.component.isFieldValid(r)}))??!1}get _loading(){var t,r;return((r=(t=this.component)==null?void 0:t.loadingButtons)==null?void 0:r[this.element.id])??!1}patchComponentUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...r)=>{const i=t(...r);return this.requestUpdate(),i}}observeThemeChanges(){this.observer=new MutationObserver(()=>{this.theme=dd()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}connectedCallback(){super.connectedCallback(),this.patchComponentUpdate(),this.observeThemeChanges()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observer)==null||t.disconnect()}_renderIcon(){const t=this.element.properties.icon_url;if(!t)return null;const r=Ss(t);return r?d`${$s(r)}`:null}render(){var C,S;if(!this.element)return null;const{type:t,size:r,invalid:i,href:s,target:o,text:n,icon_position:h}=this.element.properties,u=Vt(t,this.component.customizations),{class:g,style:y}=I(this.element.class,this.element.style,u,this.element.id,this.component.customizations),{base:w,responsive:E}=St(y);return $t(this.element.id,E,((S=(C=this.component.customizations)==null?void 0:C.config)==null?void 0:S.breakpoints)??pt),d`
5519
+ */class Qo extends vs{}Qo.directiveName="unsafeSVG",Qo.resultType=2;const Cs=xs(Qo);var Su=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,Es=(e,t,r,i)=>{for(var s=i>1?void 0:i?$u(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Su(t,r,s),s};exports.SbButtonRenderer=class extends v{constructor(){super(...arguments),this.theme=dd(),this._onClick=()=>{this._disabled||this.component.handleEvent(this.element.properties.event,this.element)}}createRenderRoot(){return this}get _disabled(){var t;return!this.component||!this.element?!1:((t=this.element.properties.requires_valid)==null?void 0:t.some(r=>{var s;const i=this.component.findElementByKey(r);return i&&"validation"in i.properties&&((s=i.properties.validation)==null?void 0:s.on_event)!=="submit"&&!this.component.isFieldValid(r)}))??!1}get _loading(){var t,r;return((r=(t=this.component)==null?void 0:t.loadingButtons)==null?void 0:r[this.element.id])??!1}patchComponentUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...r)=>{const i=t(...r);return this.requestUpdate(),i}}observeThemeChanges(){this.observer=new MutationObserver(()=>{this.theme=dd()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}connectedCallback(){super.connectedCallback(),this.patchComponentUpdate(),this.observeThemeChanges()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observer)==null||t.disconnect()}_renderIcon(){const t=this.element.properties.icon_url;if(!t)return null;const r=$s(t);return r?d`${Cs(r)}`:null}render(){var C,S;if(!this.element)return null;const{type:t,size:r,invalid:i,href:s,target:o,text:n,icon_position:h}=this.element.properties,p=Vt(t,this.component.customizations),{class:g,style:y}=I(this.element.class,this.element.style,p,this.element.id,this.component.customizations),{base:w,responsive:E}=St(y);return $t(this.element.id,E,((S=(C=this.component.customizations)==null?void 0:C.config)==null?void 0:S.breakpoints)??mt),d`
5520
5520
  <rtg-button
5521
5521
  variant=${t}
5522
5522
  size=${r??m}
@@ -5533,19 +5533,19 @@ body {
5533
5533
  ${n}
5534
5534
  ${h!=="start"?this._renderIcon():m}
5535
5535
  </rtg-button>
5536
- `}};Cs([a({type:Object})],exports.SbButtonRenderer.prototype,"element",2);Cs([a({attribute:!1})],exports.SbButtonRenderer.prototype,"component",2);Cs([x()],exports.SbButtonRenderer.prototype,"theme",2);exports.SbButtonRenderer=Cs([p("sb-button-renderer")],exports.SbButtonRenderer);/**
5536
+ `}};Es([a({type:Object})],exports.SbButtonRenderer.prototype,"element",2);Es([a({attribute:!1})],exports.SbButtonRenderer.prototype,"component",2);Es([x()],exports.SbButtonRenderer.prototype,"theme",2);exports.SbButtonRenderer=Es([u("sb-button-renderer")],exports.SbButtonRenderer);/**
5537
5537
  * @license
5538
5538
  * Copyright 2020 Google LLC
5539
5539
  * SPDX-License-Identifier: BSD-3-Clause
5540
- */const lc=Symbol.for(""),Cp=e=>{if((e==null?void 0:e.r)===lc)return e==null?void 0:e._$litStatic$},Es=e=>({_$litStatic$:e,r:lc}),hd=new Map,Ep=e=>(t,...r)=>{const i=r.length;let s,o;const n=[],h=[];let u,g=0,y=!1;for(;g<i;){for(u=t[g];g<i&&(o=r[g],(s=Cp(o))!==void 0);)u+=s+t[++g],y=!0;g!==i&&h.push(o),n.push(u),g++}if(g===i&&n.push(t[i]),y){const w=n.join("$$lit$$");(t=hd.get(w))===void 0&&(n.raw=n,hd.set(w,t=n)),r=h}return e(t,...r)},ys=Ep(d);var kp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,vn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Rp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&kp(t,r,s),s};exports.SbDividerRenderer=class extends v{createRenderRoot(){return this}render(){var o,n,h,u;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.divider,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((u=(h=this.component.customizations)==null?void 0:h.config)==null?void 0:u.breakpoints)??pt),ys`
5540
+ */const lc=Symbol.for(""),Cu=e=>{if((e==null?void 0:e.r)===lc)return e==null?void 0:e._$litStatic$},ks=e=>({_$litStatic$:e,r:lc}),hd=new Map,Eu=e=>(t,...r)=>{const i=r.length;let s,o;const n=[],h=[];let p,g=0,y=!1;for(;g<i;){for(p=t[g];g<i&&(o=r[g],(s=Cu(o))!==void 0);)p+=s+t[++g],y=!0;g!==i&&h.push(o),n.push(p),g++}if(g===i&&n.push(t[i]),y){const w=n.join("$$lit$$");(t=hd.get(w))===void 0&&(n.raw=n,hd.set(w,t=n)),r=h}return e(t,...r)},ws=Eu(d);var ku=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,vn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ru(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&ku(t,r,s),s};exports.SbDividerRenderer=class extends v{createRenderRoot(){return this}render(){var o,n,h,p;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.divider,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((p=(h=this.component.customizations)==null?void 0:h.config)==null?void 0:p.breakpoints)??mt),ws`
5541
5541
  <rtg-field-separator
5542
5542
  id=${this.element.id}
5543
5543
  class=${t}
5544
5544
  style=${R(i)}
5545
5545
  >
5546
- ${Es(this.element.properties.text??"")}
5546
+ ${ks(this.element.properties.text??"")}
5547
5547
  </rtg-field-separator>
5548
- `}};vn([a({type:Object})],exports.SbDividerRenderer.prototype,"element",2);vn([a({attribute:!1})],exports.SbDividerRenderer.prototype,"component",2);exports.SbDividerRenderer=vn([p("sb-divider-renderer")],exports.SbDividerRenderer);var Ip=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,yn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Op(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Ip(t,r,s),s};exports.SbCheckboxRenderer=class extends v{constructor(){super(...arguments),this._handleChange=t=>{this.element.data_key&&(this.component.handleInputChange(this.element.data_key,t),this.component.handleFocus(this.element.data_key))},this._handleFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key)},this._toggleCheckboxFromLabel=()=>{const t=this.querySelector(`#${this._fieldKey}`);t&&t.click()}}createRenderRoot(){return this}get _fieldKey(){return this.element.data_key||this.element.id}get _checked(){const{data_key:t,properties:r}=this.element;return t?this.component.formData[t]??r.initial_value??!1:r.initial_value||!1}get _errors(){return this.element.data_key?this.component.errors[this.element.data_key]||[]:[]}patchComponentUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...r)=>{const i=t(...r);return this.requestUpdate(),i}}connectedCallback(){super.connectedCallback(),this.patchComponentUpdate()}_renderLabel(){var i,s,o;const{class:t,style:r}=I("",{},(o=(s=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:s.labels)==null?void 0:o.checkboxLabel,"",this.component.customizations);return d`
5548
+ `}};vn([a({type:Object})],exports.SbDividerRenderer.prototype,"element",2);vn([a({attribute:!1})],exports.SbDividerRenderer.prototype,"component",2);exports.SbDividerRenderer=vn([u("sb-divider-renderer")],exports.SbDividerRenderer);var Iu=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,yn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ou(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Iu(t,r,s),s};exports.SbCheckboxRenderer=class extends v{constructor(){super(...arguments),this._handleChange=t=>{this.element.data_key&&(this.component.handleInputChange(this.element.data_key,t),this.component.handleFocus(this.element.data_key))},this._handleFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key)},this._toggleCheckboxFromLabel=()=>{const t=this.querySelector(`#${this._fieldKey}`);t&&t.click()}}createRenderRoot(){return this}get _fieldKey(){return this.element.data_key||this.element.id}get _checked(){const{data_key:t,properties:r}=this.element;return t?this.component.formData[t]??r.initial_value??!1:r.initial_value||!1}get _errors(){return this.element.data_key?this.component.errors[this.element.data_key]||[]:[]}patchComponentUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...r)=>{const i=t(...r);return this.requestUpdate(),i}}connectedCallback(){super.connectedCallback(),this.patchComponentUpdate()}_renderLabel(){var i,s,o;const{class:t,style:r}=I("",{},(o=(s=(i=this.component.customizations)==null?void 0:i.byType)==null?void 0:s.labels)==null?void 0:o.checkboxLabel,"",this.component.customizations);return d`
5549
5549
  <rtg-field-label
5550
5550
  for=${this._fieldKey}
5551
5551
  class=${t}
@@ -5560,7 +5560,7 @@ body {
5560
5560
  class=${Z("sb-basis-full",t)}
5561
5561
  style=${R(r)}
5562
5562
  ></rtg-field-error>
5563
- `}render(){var o,n;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,void 0,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((n=(o=this.component.customizations)==null?void 0:o.config)==null?void 0:n.breakpoints)??pt),d`
5563
+ `}render(){var o,n;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,void 0,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((n=(o=this.component.customizations)==null?void 0:o.config)==null?void 0:n.breakpoints)??mt),d`
5564
5564
  <rtg-field
5565
5565
  orientation="horizontal"
5566
5566
  ?invalid=${this._errors.length>0}
@@ -5579,12 +5579,12 @@ body {
5579
5579
  ${this._renderLabel()}
5580
5580
  ${this._renderError()}
5581
5581
  </rtg-field>
5582
- `}};yn([a({type:Object})],exports.SbCheckboxRenderer.prototype,"element",2);yn([a({attribute:!1})],exports.SbCheckboxRenderer.prototype,"component",2);exports.SbCheckboxRenderer=yn([p("sb-checkbox-renderer")],exports.SbCheckboxRenderer);var Ap=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,dc=(e,t,r,i)=>{for(var s=i>1?void 0:i?Pp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Ap(t,r,s),s};exports.SbHint=class extends v{constructor(){super(...arguments),this.content=""}createRenderRoot(){return this}render(){return d`<p class="sb-mt-2">${this.content}</p>`}};dc([a({type:String})],exports.SbHint.prototype,"content",2);exports.SbHint=dc([p("sb-hint")],exports.SbHint);var Fp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,wn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Tp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Fp(t,r,s),s};exports.LinearLoader=class extends v{constructor(){super(...arguments),this.customClass="",this.customStyle={}}createRenderRoot(){return this}render(){return d`
5582
+ `}};yn([a({type:Object})],exports.SbCheckboxRenderer.prototype,"element",2);yn([a({attribute:!1})],exports.SbCheckboxRenderer.prototype,"component",2);exports.SbCheckboxRenderer=yn([u("sb-checkbox-renderer")],exports.SbCheckboxRenderer);var Au=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,dc=(e,t,r,i)=>{for(var s=i>1?void 0:i?Pu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Au(t,r,s),s};exports.SbHint=class extends v{constructor(){super(...arguments),this.content=""}createRenderRoot(){return this}render(){return d`<p class="sb-mt-2">${this.content}</p>`}};dc([a({type:String})],exports.SbHint.prototype,"content",2);exports.SbHint=dc([u("sb-hint")],exports.SbHint);var Fu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,wn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Tu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Fu(t,r,s),s};exports.LinearLoader=class extends v{constructor(){super(...arguments),this.customClass="",this.customStyle={}}createRenderRoot(){return this}render(){return d`
5583
5583
  <div
5584
- class=${Z(_u,this.customClass)}
5584
+ class=${Z(_p,this.customClass)}
5585
5585
  style=${R(this.customStyle)}
5586
5586
  ></div>
5587
- `}};wn([a({type:String})],exports.LinearLoader.prototype,"customClass",2);wn([a({type:Object})],exports.LinearLoader.prototype,"customStyle",2);exports.LinearLoader=wn([p("linear-loader")],exports.LinearLoader);var Lp=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,Xr=(e,t,r,i)=>{for(var s=i>1?void 0:i?Np(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Lp(t,r,s),s};exports.SbSpinner=class extends v{constructor(){super(...arguments),this.size=16,this.strokeWidth=2,this.color="currentColor",this.label="Loading…",this.duration=1}createRenderRoot(){return this}render(){const t=Math.max(0,(this.size-this.strokeWidth)/2),r=2*Math.PI*t,i=t-this.strokeWidth/2;return d`
5587
+ `}};wn([a({type:String})],exports.LinearLoader.prototype,"customClass",2);wn([a({type:Object})],exports.LinearLoader.prototype,"customStyle",2);exports.LinearLoader=wn([u("linear-loader")],exports.LinearLoader);var Lu=Object.defineProperty,Nu=Object.getOwnPropertyDescriptor,Zr=(e,t,r,i)=>{for(var s=i>1?void 0:i?Nu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Lu(t,r,s),s};exports.SbSpinner=class extends v{constructor(){super(...arguments),this.size=16,this.strokeWidth=2,this.color="currentColor",this.label="Loading…",this.duration=1}createRenderRoot(){return this}render(){const t=Math.max(0,(this.size-this.strokeWidth)/2),r=2*Math.PI*t,i=t-this.strokeWidth/2;return d`
5588
5588
  <style>
5589
5589
  .chrome-spinner {
5590
5590
  width: ${this.size}px;
@@ -5653,7 +5653,7 @@ body {
5653
5653
  ></circle>
5654
5654
  </svg>
5655
5655
  ${this.label?d`<span class="sr-only">${this.label}</span>`:null}
5656
- `}};Xr([a({type:Number})],exports.SbSpinner.prototype,"size",2);Xr([a({type:Number,attribute:"stroke-width"})],exports.SbSpinner.prototype,"strokeWidth",2);Xr([a()],exports.SbSpinner.prototype,"color",2);Xr([a()],exports.SbSpinner.prototype,"label",2);Xr([a({type:Number})],exports.SbSpinner.prototype,"duration",2);exports.SbSpinner=Xr([p("sb-spinner")],exports.SbSpinner);var zp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,_n=(e,t,r,i)=>{for(var s=i>1?void 0:i?jp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&zp(t,r,s),s};exports.SbOtpRenderer=class extends v{constructor(){super(...arguments),this._onComplete=t=>{if(!this.element.data_key)return;this.component.handleInputChange(this.element.data_key,t);const{event:r}=this.element.properties;r&&this.component.handleEvent(r,this.element)},this._onFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key,this.element.id)},this._onBlur=()=>{this.element.data_key&&this.component.handleBlur(this.element.data_key)}}createRenderRoot(){return this}patchComponentRequestUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...r)=>{const i=t(...r);return this.requestUpdate(),i}}connectedCallback(){super.connectedCallback(),this.patchComponentRequestUpdate()}_buildOTPContentHTML(){const t=this.element.properties.variant||"digits_only",r=this.element.properties.length||6,i=(n,h)=>Array.from({length:h-n},(u,g)=>`<rtg-input-otp-slot index="${n+g}"></rtg-input-otp-slot>`).join(""),s=n=>`<rtg-input-otp-group>${n}</rtg-input-otp-group>`,o="<rtg-input-otp-separator></rtg-input-otp-separator>";if(t==="simple"){const n=Math.ceil(r/2);return s(i(0,n))+o+s(i(n,r))}if(t==="with_separator"){const n=Math.ceil(r/3);return s(i(0,n))+o+s(i(n,n*2))+o+s(i(n*2,r))}return t==="with_spacing"?Array.from({length:r},(n,h)=>s(`<rtg-input-otp-slot index="${h}"></rtg-input-otp-slot>`)).join(""):s(i(0,r))}render(){var n,h,u,g,y;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(u=(h=(n=this.component.customizations)==null?void 0:n.byType)==null?void 0:h.inputs)==null?void 0:u.inputField,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);$t(this.element.id,s,((y=(g=this.component.customizations)==null?void 0:g.config)==null?void 0:y.breakpoints)??pt);const o=this.element.properties.variant||"digits_only";return ys`
5656
+ `}};Zr([a({type:Number})],exports.SbSpinner.prototype,"size",2);Zr([a({type:Number,attribute:"stroke-width"})],exports.SbSpinner.prototype,"strokeWidth",2);Zr([a()],exports.SbSpinner.prototype,"color",2);Zr([a()],exports.SbSpinner.prototype,"label",2);Zr([a({type:Number})],exports.SbSpinner.prototype,"duration",2);exports.SbSpinner=Zr([u("sb-spinner")],exports.SbSpinner);var zu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,_n=(e,t,r,i)=>{for(var s=i>1?void 0:i?Uu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&zu(t,r,s),s};exports.SbOtpRenderer=class extends v{constructor(){super(...arguments),this._onComplete=t=>{if(!this.element.data_key)return;this.component.handleInputChange(this.element.data_key,t);const{event:r}=this.element.properties;r&&this.component.handleEvent(r,this.element)},this._onFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key,this.element.id)},this._onBlur=()=>{this.element.data_key&&this.component.handleBlur(this.element.data_key)}}createRenderRoot(){return this}patchComponentRequestUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...r)=>{const i=t(...r);return this.requestUpdate(),i}}connectedCallback(){super.connectedCallback(),this.patchComponentRequestUpdate()}_buildOTPContentHTML(){const t=this.element.properties.variant||"digits_only",r=this.element.properties.length||6,i=(n,h)=>Array.from({length:h-n},(p,g)=>`<rtg-input-otp-slot index="${n+g}"></rtg-input-otp-slot>`).join(""),s=n=>`<rtg-input-otp-group>${n}</rtg-input-otp-group>`,o="<rtg-input-otp-separator></rtg-input-otp-separator>";if(t==="simple"){const n=Math.ceil(r/2);return s(i(0,n))+o+s(i(n,r))}if(t==="with_separator"){const n=Math.ceil(r/3);return s(i(0,n))+o+s(i(n,n*2))+o+s(i(n*2,r))}return t==="with_spacing"?Array.from({length:r},(n,h)=>s(`<rtg-input-otp-slot index="${h}"></rtg-input-otp-slot>`)).join(""):s(i(0,r))}render(){var n,h,p,g,y;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(p=(h=(n=this.component.customizations)==null?void 0:n.byType)==null?void 0:h.inputs)==null?void 0:p.inputField,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);$t(this.element.id,s,((y=(g=this.component.customizations)==null?void 0:g.config)==null?void 0:y.breakpoints)??mt);const o=this.element.properties.variant||"digits_only";return ws`
5657
5657
  <rtg-input-otp
5658
5658
  id=${this.element.data_key??this.element.id??m}
5659
5659
  name=${this.element.data_key??this.element.id??m}
@@ -5666,11 +5666,11 @@ body {
5666
5666
  .onComplete=${this._onComplete}
5667
5667
  .onFocus=${this._onFocus}
5668
5668
  .onBlur=${this._onBlur}
5669
- >${Es(this._buildOTPContentHTML())}</rtg-input-otp
5669
+ >${ks(this._buildOTPContentHTML())}</rtg-input-otp
5670
5670
  >
5671
- `}};_n([a({type:Object})],exports.SbOtpRenderer.prototype,"element",2);_n([a({attribute:!1})],exports.SbOtpRenderer.prototype,"component",2);exports.SbOtpRenderer=_n([p("sb-otp-renderer")],exports.SbOtpRenderer);var Up=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,xn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Dp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Up(t,r,s),s};exports.SbErrorRenderer=class extends v{createRenderRoot(){return this}_renderIcon(){const t=this.element.properties.icon_url;if(!t)return null;const r=Ss(t);return r?d`${$s(r)}`:null}_renderTitle(){const{title:t}=this.element.properties;return t?d`<rtg-alert-title>${t}</rtg-alert-title>`:null}_renderDescription(){const{description:t,message:r}=this.element.properties;return!t&&!r?null:d`
5671
+ `}};_n([a({type:Object})],exports.SbOtpRenderer.prototype,"element",2);_n([a({attribute:!1})],exports.SbOtpRenderer.prototype,"component",2);exports.SbOtpRenderer=_n([u("sb-otp-renderer")],exports.SbOtpRenderer);var ju=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,xn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Du(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&ju(t,r,s),s};exports.SbErrorRenderer=class extends v{createRenderRoot(){return this}_renderIcon(){const t=this.element.properties.icon_url;if(!t)return null;const r=$s(t);return r?d`${Cs(r)}`:null}_renderTitle(){const{title:t}=this.element.properties;return t?d`<rtg-alert-title>${t}</rtg-alert-title>`:null}_renderDescription(){const{description:t,message:r}=this.element.properties;return!t&&!r?null:d`
5672
5672
  <rtg-alert-description>${t??r}</rtg-alert-description>
5673
- `}render(){var o,n,h,u,g;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(h=(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.errors)==null?void 0:h.serviceError,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((g=(u=this.component.customizations)==null?void 0:u.config)==null?void 0:g.breakpoints)??pt),d`
5673
+ `}render(){var o,n,h,p,g;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(h=(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.errors)==null?void 0:h.serviceError,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((g=(p=this.component.customizations)==null?void 0:p.config)==null?void 0:g.breakpoints)??mt),d`
5674
5674
  <rtg-alert
5675
5675
  variant=${this.element.properties.variant??"destructive"}
5676
5676
  class=${t??m}
@@ -5680,21 +5680,21 @@ body {
5680
5680
  ${this._renderTitle()}
5681
5681
  ${this._renderDescription()}
5682
5682
  </rtg-alert>
5683
- `}};xn([a({type:Object})],exports.SbErrorRenderer.prototype,"element",2);xn([a({attribute:!1})],exports.SbErrorRenderer.prototype,"component",2);exports.SbErrorRenderer=xn([p("sb-error-renderer")],exports.SbErrorRenderer);var Bp=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,Sn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Mp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Bp(t,r,s),s};exports.SbHtmlRenderer=class extends v{constructor(){super(...arguments),this._onClick=t=>{if(!this.component||!this.element)return;const r=t.composedPath().find(i=>{var s;return i instanceof HTMLElement&&((s=i.dataset)==null?void 0:s.event)});r!=null&&r.dataset.event&&this.component.handleEvent(r.dataset.event,this.element)}}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._onClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._onClick)}render(){var o,n;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,void 0,this.element.id,void 0),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((n=(o=this.component.customizations)==null?void 0:o.config)==null?void 0:n.breakpoints)??pt),d`
5683
+ `}};xn([a({type:Object})],exports.SbErrorRenderer.prototype,"element",2);xn([a({attribute:!1})],exports.SbErrorRenderer.prototype,"component",2);exports.SbErrorRenderer=xn([u("sb-error-renderer")],exports.SbErrorRenderer);var Bu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,Sn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Mu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Bu(t,r,s),s};exports.SbHtmlRenderer=class extends v{constructor(){super(...arguments),this._onClick=t=>{if(!this.component||!this.element)return;const r=t.composedPath().find(i=>{var s;return i instanceof HTMLElement&&((s=i.dataset)==null?void 0:s.event)});r!=null&&r.dataset.event&&this.component.handleEvent(r.dataset.event,this.element)}}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._onClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._onClick)}render(){var o,n;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,void 0,this.element.id,void 0),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((n=(o=this.component.customizations)==null?void 0:o.config)==null?void 0:n.breakpoints)??mt),d`
5684
5684
  <div id=${this.element.id} class=${t} style=${R(i)}>
5685
- ${ln(wp(this.element.properties.content))}
5685
+ ${ln(wu(this.element.properties.content))}
5686
5686
  </div>
5687
- `}};Sn([a({type:Object})],exports.SbHtmlRenderer.prototype,"element",2);Sn([a({attribute:!1})],exports.SbHtmlRenderer.prototype,"component",2);exports.SbHtmlRenderer=Sn([p("sb-html-renderer")],exports.SbHtmlRenderer);var qp=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,$n=(e,t,r,i)=>{for(var s=i>1?void 0:i?Vp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&qp(t,r,s),s};exports.SbGapRenderer=class extends v{createRenderRoot(){return this}render(){var h,u;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,void 0,this.element.id,void 0),i=this.element.style?this.element.style["flex-grow"]:"0";i!=null&&this.style.setProperty("flex-grow",String(i));let s={width:"0px",height:"0px"};this.element.properties.type==="vertical"?s={width:"1px",height:this.element.properties.size}:s={height:"1px",width:this.element.properties.size};const{base:o,responsive:n}=St(r);return $t(this.element.id,n,((u=(h=this.component.customizations)==null?void 0:h.config)==null?void 0:u.breakpoints)??pt),d`
5687
+ `}};Sn([a({type:Object})],exports.SbHtmlRenderer.prototype,"element",2);Sn([a({attribute:!1})],exports.SbHtmlRenderer.prototype,"component",2);exports.SbHtmlRenderer=Sn([u("sb-html-renderer")],exports.SbHtmlRenderer);var qu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,$n=(e,t,r,i)=>{for(var s=i>1?void 0:i?Vu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&qu(t,r,s),s};exports.SbGapRenderer=class extends v{createRenderRoot(){return this}render(){var h,p;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,void 0,this.element.id,void 0),i=this.element.style?this.element.style["flex-grow"]:"0";i!=null&&this.style.setProperty("flex-grow",String(i));let s={width:"0px",height:"0px"};this.element.properties.type==="vertical"?s={width:"1px",height:this.element.properties.size}:s={height:"1px",width:this.element.properties.size};const{base:o,responsive:n}=St(r);return $t(this.element.id,n,((p=(h=this.component.customizations)==null?void 0:h.config)==null?void 0:p.breakpoints)??mt),d`
5688
5688
  <div
5689
5689
  id=${this.element.id}
5690
5690
  class=${t}
5691
5691
  style=${R({...o,...s})}
5692
5692
  ></div>
5693
- `}};$n([a({type:Object})],exports.SbGapRenderer.prototype,"element",2);$n([a({attribute:!1})],exports.SbGapRenderer.prototype,"component",2);exports.SbGapRenderer=$n([p("sb-gap-renderer")],exports.SbGapRenderer);var Hp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,ks=(e,t,r,i)=>{for(var s=i>1?void 0:i?Gp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Hp(t,r,s),s};exports.SbCountdownRenderer=class extends v{constructor(){super(...arguments),this.seconds=0,this.timerId=null}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.initializeCountdown()}disconnectedCallback(){this.clearTimer(),super.disconnectedCallback()}initializeCountdown(){var r;const t=((r=this.element)==null?void 0:r.properties.duration)??5;this.seconds=Math.max(0,t),this.startTimer()}startTimer(){this.clearTimer(),this.timerId=window.setInterval(()=>{this.seconds<=1?this.completeCountdown():this.seconds--},1e3)}completeCountdown(){this.clearTimer();const t=this.element.properties.redirect_url??"/";window.location.href=t}clearTimer(){this.timerId!==null&&(clearInterval(this.timerId),this.timerId=null)}renderContent(){return`${this.element.properties.content??""} ${this.seconds}s...`}render(){var o,n,h,u,g;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(h=(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.timer)==null?void 0:h.countdowns,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((g=(u=this.component.customizations)==null?void 0:u.config)==null?void 0:g.breakpoints)??pt),d`
5693
+ `}};$n([a({type:Object})],exports.SbGapRenderer.prototype,"element",2);$n([a({attribute:!1})],exports.SbGapRenderer.prototype,"component",2);exports.SbGapRenderer=$n([u("sb-gap-renderer")],exports.SbGapRenderer);var Hu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,Rs=(e,t,r,i)=>{for(var s=i>1?void 0:i?Gu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Hu(t,r,s),s};exports.SbCountdownRenderer=class extends v{constructor(){super(...arguments),this.seconds=0,this.timerId=null}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.initializeCountdown()}disconnectedCallback(){this.clearTimer(),super.disconnectedCallback()}initializeCountdown(){var r;const t=((r=this.element)==null?void 0:r.properties.duration)??5;this.seconds=Math.max(0,t),this.startTimer()}startTimer(){this.clearTimer(),this.timerId=window.setInterval(()=>{this.seconds<=1?this.completeCountdown():this.seconds--},1e3)}completeCountdown(){this.clearTimer();const t=this.element.properties.redirect_url??"/";window.location.href=t}clearTimer(){this.timerId!==null&&(clearInterval(this.timerId),this.timerId=null)}renderContent(){return`${this.element.properties.content??""} ${this.seconds}s...`}render(){var o,n,h,p,g;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(h=(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.timer)==null?void 0:h.countdowns,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((g=(p=this.component.customizations)==null?void 0:p.config)==null?void 0:g.breakpoints)??mt),d`
5694
5694
  <div id=${this.element.id} class=${t} style=${R(i)}>
5695
5695
  <span>${this.renderContent()}</span>
5696
5696
  </div>
5697
- `}};ks([a({type:Object})],exports.SbCountdownRenderer.prototype,"element",2);ks([a({attribute:!1})],exports.SbCountdownRenderer.prototype,"component",2);ks([x()],exports.SbCountdownRenderer.prototype,"seconds",2);exports.SbCountdownRenderer=ks([p("sb-countdown-renderer")],exports.SbCountdownRenderer);var Wp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,Cn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Kp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Wp(t,r,s),s};exports.SbSpinnerRenderer=class extends v{createRenderRoot(){return this}render(){var o,n,h,u,g;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(h=(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.loader)==null?void 0:h.spinner,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((g=(u=this.component.customizations)==null?void 0:u.config)==null?void 0:g.breakpoints)??pt),d`
5697
+ `}};Rs([a({type:Object})],exports.SbCountdownRenderer.prototype,"element",2);Rs([a({attribute:!1})],exports.SbCountdownRenderer.prototype,"component",2);Rs([x()],exports.SbCountdownRenderer.prototype,"seconds",2);exports.SbCountdownRenderer=Rs([u("sb-countdown-renderer")],exports.SbCountdownRenderer);var Wu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Cn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ku(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Wu(t,r,s),s};exports.SbSpinnerRenderer=class extends v{createRenderRoot(){return this}render(){var o,n,h,p,g;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(h=(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.loader)==null?void 0:h.spinner,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((g=(p=this.component.customizations)==null?void 0:p.config)==null?void 0:g.breakpoints)??mt),d`
5698
5698
  <sb-spinner
5699
5699
  size="20"
5700
5700
  stroke-width="2"
@@ -5703,7 +5703,7 @@ body {
5703
5703
  class=${t}
5704
5704
  style=${R(i)}
5705
5705
  ></sb-spinner>
5706
- `}};Cn([a({type:Object})],exports.SbSpinnerRenderer.prototype,"element",2);Cn([a({attribute:!1})],exports.SbSpinnerRenderer.prototype,"component",2);exports.SbSpinnerRenderer=Cn([p("sb-spinner-renderer")],exports.SbSpinnerRenderer);function En(e,t,r="light"){if(!t)return d``;if(typeof t=="string")return d`${Es(t)}`;const i=t.hidden??!1;switch(t.element_type){case"container":return d`<sb-container-renderer
5706
+ `}};Cn([a({type:Object})],exports.SbSpinnerRenderer.prototype,"element",2);Cn([a({attribute:!1})],exports.SbSpinnerRenderer.prototype,"component",2);exports.SbSpinnerRenderer=Cn([u("sb-spinner-renderer")],exports.SbSpinnerRenderer);function En(e,t,r="light"){if(!t)return d``;if(typeof t=="string")return d`${ks(t)}`;const i=t.hidden??!1;switch(t.element_type){case"container":return d`<sb-container-renderer
5707
5707
  .component=${e}
5708
5708
  .element=${t}
5709
5709
  ?hidden=${i}
@@ -5761,21 +5761,21 @@ body {
5761
5761
  .component=${e}
5762
5762
  .element=${t}
5763
5763
  ?hidden=${i}
5764
- ></sb-countdown-renderer>`;default:return d`<p>Unknown element type</p>`}}var Yp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,kn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Xp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Yp(t,r,s),s};exports.SbContainerRenderer=class extends v{constructor(){super(...arguments),this.prevChildCount=0,this.prevContainerWidth=0,this.widthUpdateScheduled=!1}async firstUpdated(t){await this.updateComplete,await Si(),this.updateWidthsIfNeeded()}async updated(t){await this.updateComplete,await Si(),this.updateWidthsIfNeeded()}updateWidthsIfNeeded(){var s,o;if(!((o=(s=this.element)==null?void 0:s.class)!=null&&o.includes("sb_social_wrap")))return;const t=Array.from(this.querySelectorAll("sb-button-renderer")),r=t.length,i=this.offsetWidth;r===this.prevChildCount&&i===this.prevContainerWidth||(this.prevChildCount=r,this.prevContainerWidth=i,this.widthUpdateScheduled||(this.widthUpdateScheduled=!0,fp(this.querySelector("div"),t).finally(()=>{this.widthUpdateScheduled=!1})))}createRenderRoot(){return this}get containerStyles(){const t=this.element.properties.type==="flex_column";return{...this.element.style,display:"flex","flex-direction":t?"column":"row"}}renderChildren(){return this.element.properties.children?this.element.properties.children.map(t=>En(this.component,t)):m}render(){var o,n,h,u;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.containerStyles,(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.container,this.element.id,this.component.customizations,!0),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((u=(h=this.component.customizations)==null?void 0:h.config)==null?void 0:u.breakpoints)??pt),d`
5764
+ ></sb-countdown-renderer>`;default:return d`<p>Unknown element type</p>`}}var Yu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,kn=(e,t,r,i)=>{for(var s=i>1?void 0:i?Xu(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Yu(t,r,s),s};exports.SbContainerRenderer=class extends v{constructor(){super(...arguments),this.prevChildCount=0,this.prevContainerWidth=0,this.widthUpdateScheduled=!1}async firstUpdated(t){await this.updateComplete,await Ci(),this.updateWidthsIfNeeded()}async updated(t){await this.updateComplete,await Ci(),this.updateWidthsIfNeeded()}updateWidthsIfNeeded(){var s,o;if(!((o=(s=this.element)==null?void 0:s.class)!=null&&o.includes("sb_social_wrap")))return;const t=Array.from(this.querySelectorAll("sb-button-renderer")),r=t.length,i=this.offsetWidth;r===this.prevChildCount&&i===this.prevContainerWidth||(this.prevChildCount=r,this.prevContainerWidth=i,this.widthUpdateScheduled||(this.widthUpdateScheduled=!0,fu(this.querySelector("div"),t).finally(()=>{this.widthUpdateScheduled=!1})))}createRenderRoot(){return this}get containerStyles(){const t=this.element.properties.type==="flex_column";return{...this.element.style,display:"flex","flex-direction":t?"column":"row"}}renderChildren(){return this.element.properties.children?this.element.properties.children.map(t=>En(this.component,t)):m}render(){var o,n,h,p;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.containerStyles,(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.container,this.element.id,this.component.customizations,!0),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((p=(h=this.component.customizations)==null?void 0:h.config)==null?void 0:p.breakpoints)??mt),d`
5765
5765
  <div id=${this.element.id} class=${t} style=${R(i)}>
5766
5766
  ${this.renderChildren()}
5767
5767
  </div>
5768
- `}};kn([a({type:Object})],exports.SbContainerRenderer.prototype,"element",2);kn([a({attribute:!1})],exports.SbContainerRenderer.prototype,"component",2);exports.SbContainerRenderer=kn([p("sb-container-renderer")],exports.SbContainerRenderer);var Zp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,Rs=(e,t,r,i)=>{for(var s=i>1?void 0:i?Jp(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Zp(t,r,s),s};exports.SbImage=class extends v{constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){var n,h;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,void 0,this.element.id,void 0),i=bn(this.element.properties.image_url,this.theme),{base:s,responsive:o}=St(r);return $t(this.element.id,o,((h=(n=this.component.customizations)==null?void 0:n.config)==null?void 0:h.breakpoints)??pt),d`
5768
+ `}};kn([a({type:Object})],exports.SbContainerRenderer.prototype,"element",2);kn([a({attribute:!1})],exports.SbContainerRenderer.prototype,"component",2);exports.SbContainerRenderer=kn([u("sb-container-renderer")],exports.SbContainerRenderer);var Zu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,Is=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ju(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Zu(t,r,s),s};exports.SbImage=class extends v{constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){var n,h;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,void 0,this.element.id,void 0),i=bn(this.element.properties.image_url,this.theme),{base:s,responsive:o}=St(r);return $t(this.element.id,o,((h=(n=this.component.customizations)==null?void 0:n.config)==null?void 0:h.breakpoints)??mt),d`
5769
5769
  <img class=${t} src=${i} style=${R(s)} />
5770
- `}};Rs([a({type:Object})],exports.SbImage.prototype,"element",2);Rs([a({attribute:!1})],exports.SbImage.prototype,"component",2);Rs([x()],exports.SbImage.prototype,"theme",2);exports.SbImage=Rs([p("sb-image")],exports.SbImage);var Qp=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,Rn=(e,t,r,i)=>{for(var s=i>1?void 0:i?tg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Qp(t,r,s),s};exports.SbWatermarkRenderer=class extends v{constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){if(!this.element)return null;const{class:t}=I(this.element.class,void 0,void 0,this.element.id,void 0);return d`
5770
+ `}};Is([a({type:Object})],exports.SbImage.prototype,"element",2);Is([a({attribute:!1})],exports.SbImage.prototype,"component",2);Is([x()],exports.SbImage.prototype,"theme",2);exports.SbImage=Is([u("sb-image")],exports.SbImage);var Qu=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,Rn=(e,t,r,i)=>{for(var s=i>1?void 0:i?tg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Qu(t,r,s),s};exports.SbWatermarkRenderer=class extends v{constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){if(!this.element)return null;const{class:t}=I(this.element.class,void 0,void 0,this.element.id,void 0);return d`
5771
5771
  <sb-watermark
5772
5772
  child-id=${this.element.id}
5773
5773
  class=${t}
5774
5774
  label=${this.element.properties.label}
5775
5775
  ></sb-watermark>
5776
- `}};Rn([a({type:Object})],exports.SbWatermarkRenderer.prototype,"element",2);Rn([x()],exports.SbWatermarkRenderer.prototype,"theme",2);exports.SbWatermarkRenderer=Rn([p("sb-watermark-renderer")],exports.SbWatermarkRenderer);var eg=Object.defineProperty,rg=Object.getOwnPropertyDescriptor,Is=(e,t,r,i)=>{for(var s=i>1?void 0:i?rg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&eg(t,r,s),s};exports.SbLogoRenderer=class extends v{constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.style.display="grid",this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){var h,u,g,y;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(u=(h=this.component.customizations)==null?void 0:h.byType)==null?void 0:u.logo,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);$t(this.element.id,s,((y=(g=this.component.customizations)==null?void 0:g.config)==null?void 0:y.breakpoints)??pt);const o=bn(this.element.properties.image_url,this.theme),n=o?Ss(o):null;return n?d`
5776
+ `}};Rn([a({type:Object})],exports.SbWatermarkRenderer.prototype,"element",2);Rn([x()],exports.SbWatermarkRenderer.prototype,"theme",2);exports.SbWatermarkRenderer=Rn([u("sb-watermark-renderer")],exports.SbWatermarkRenderer);var eg=Object.defineProperty,rg=Object.getOwnPropertyDescriptor,Os=(e,t,r,i)=>{for(var s=i>1?void 0:i?rg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&eg(t,r,s),s};exports.SbLogoRenderer=class extends v{constructor(){super(...arguments),this.theme=this.getTheme()}connectedCallback(){super.connectedCallback(),this.style.display="grid",this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")}createRenderRoot(){return this}render(){var h,p,g,y;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(p=(h=this.component.customizations)==null?void 0:h.byType)==null?void 0:p.logo,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);$t(this.element.id,s,((y=(g=this.component.customizations)==null?void 0:g.config)==null?void 0:y.breakpoints)??mt);const o=bn(this.element.properties.image_url,this.theme),n=o?$s(o):null;return n?d`
5777
5777
  <div class=${t} style=${R(i)}>
5778
- ${$s(n)}
5778
+ ${Cs(n)}
5779
5779
  </div>
5780
5780
  `:d`
5781
5781
  <img
@@ -5783,7 +5783,7 @@ body {
5783
5783
  style=${R(i)}
5784
5784
  src=${ac(o)}
5785
5785
  />
5786
- `}};Is([a({type:Object})],exports.SbLogoRenderer.prototype,"element",2);Is([a({attribute:!1})],exports.SbLogoRenderer.prototype,"component",2);Is([x()],exports.SbLogoRenderer.prototype,"theme",2);exports.SbLogoRenderer=Is([p("sb-logo-renderer")],exports.SbLogoRenderer);var ig=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,In=(e,t,r,i)=>{for(var s=i>1?void 0:i?sg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&ig(t,r,s),s};exports.SbInputRenderer=class extends v{constructor(){super(...arguments),this._onInput=t=>{const r=this.element.data_key;r&&this.component.handleInputChange(r,t.target.value)},this._onFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key)},this._onBlur=()=>{const t=this.element.data_key;t&&this.component.handleBlur(t)}}createRenderRoot(){return this}get _key(){return this.element.data_key||this.element.id}get _errors(){return this.element.data_key?this.component.errors[this.element.data_key]||[]:[]}get _invalid(){return this._errors.length>0}patchComponentRequestUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...r)=>{const i=t(...r);return this.requestUpdate(),i}}_initValue(){this.element.data_key&&this.element.properties.initial_value&&this.component.handleInputChange(this.element.data_key,this.element.properties.initial_value)}connectedCallback(){super.connectedCallback(),this.patchComponentRequestUpdate()}updated(t){t.has("element")&&this._initValue()}_renderLabel(){var s,o,n;const{label:t}=this.element.properties;if(!t)return null;const{class:r,style:i}=I("",{},(n=(o=(s=this.component.customizations)==null?void 0:s.byType)==null?void 0:o.inputs)==null?void 0:n.inputLabel,this.element.id,this.component.customizations);return d`
5786
+ `}};Os([a({type:Object})],exports.SbLogoRenderer.prototype,"element",2);Os([a({attribute:!1})],exports.SbLogoRenderer.prototype,"component",2);Os([x()],exports.SbLogoRenderer.prototype,"theme",2);exports.SbLogoRenderer=Os([u("sb-logo-renderer")],exports.SbLogoRenderer);var ig=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,In=(e,t,r,i)=>{for(var s=i>1?void 0:i?sg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&ig(t,r,s),s};exports.SbInputRenderer=class extends v{constructor(){super(...arguments),this._onInput=t=>{const r=this.element.data_key;r&&this.component.handleInputChange(r,t.target.value)},this._onFocus=()=>{this.element.data_key&&this.component.handleFocus(this.element.data_key)},this._onBlur=()=>{const t=this.element.data_key;t&&this.component.handleBlur(t)}}createRenderRoot(){return this}get _key(){return this.element.data_key||this.element.id}get _errors(){return this.element.data_key?this.component.errors[this.element.data_key]||[]:[]}get _invalid(){return this._errors.length>0}patchComponentRequestUpdate(){if(!this.component)return;const t=this.component.requestUpdate.bind(this.component);this.component.requestUpdate=(...r)=>{const i=t(...r);return this.requestUpdate(),i}}_initValue(){this.element.data_key&&this.element.properties.initial_value&&this.component.handleInputChange(this.element.data_key,this.element.properties.initial_value)}connectedCallback(){super.connectedCallback(),this.patchComponentRequestUpdate()}updated(t){t.has("element")&&this._initValue()}_renderLabel(){var s,o,n;const{label:t}=this.element.properties;if(!t)return null;const{class:r,style:i}=I("",{},(n=(o=(s=this.component.customizations)==null?void 0:s.byType)==null?void 0:o.inputs)==null?void 0:n.inputLabel,this.element.id,this.component.customizations);return d`
5787
5787
  <rtg-field-label for=${this._key} class=${r} style=${i}>
5788
5788
  ${t}
5789
5789
  </rtg-field-label>
@@ -5797,7 +5797,7 @@ body {
5797
5797
  class=${t}
5798
5798
  style=${r}
5799
5799
  ></rtg-field-error>
5800
- `}render(){var u,g,y,w,E,C,S,k;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(y=(g=(u=this.component.customizations)==null?void 0:u.byType)==null?void 0:g.inputs)==null?void 0:y.inputContainer,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);$t(this.element.id,s,((E=(w=this.component.customizations)==null?void 0:w.config)==null?void 0:E.breakpoints)??pt);const{class:o,style:n}=I("",{},(k=(S=(C=this.component.customizations)==null?void 0:C.byType)==null?void 0:S.inputs)==null?void 0:k.inputField,this.element.id,this.component.customizations),h=this.element.data_key?this.component.formData[this.element.data_key]:"";return d`
5800
+ `}render(){var p,g,y,w,E,C,S,k;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(y=(g=(p=this.component.customizations)==null?void 0:p.byType)==null?void 0:g.inputs)==null?void 0:y.inputContainer,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);$t(this.element.id,s,((E=(w=this.component.customizations)==null?void 0:w.config)==null?void 0:E.breakpoints)??mt);const{class:o,style:n}=I("",{},(k=(S=(C=this.component.customizations)==null?void 0:C.byType)==null?void 0:S.inputs)==null?void 0:k.inputField,this.element.id,this.component.customizations),h=this.element.data_key?this.component.formData[this.element.data_key]:"";return d`
5801
5801
  <rtg-field
5802
5802
  ?invalid=${this._invalid}
5803
5803
  class=${t}
@@ -5821,7 +5821,7 @@ body {
5821
5821
  ></rtg-input>
5822
5822
  ${this._invalid?this._renderError():this._renderHint()}
5823
5823
  </rtg-field>
5824
- `}};In([a({type:Object})],exports.SbInputRenderer.prototype,"element",2);In([a({attribute:!1})],exports.SbInputRenderer.prototype,"component",2);exports.SbInputRenderer=In([p("sb-input-renderer")],exports.SbInputRenderer);var og=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,On=(e,t,r,i)=>{for(var s=i>1?void 0:i?ng(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&og(t,r,s),s};exports.SbLabelRenderer=class extends v{createRenderRoot(){return this}render(){var o,n,h,u,g;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(h=(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.labels)==null?void 0:h.inputLabel,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((g=(u=this.component.customizations)==null?void 0:u.config)==null?void 0:g.breakpoints)??pt),d`
5824
+ `}};In([a({type:Object})],exports.SbInputRenderer.prototype,"element",2);In([a({attribute:!1})],exports.SbInputRenderer.prototype,"component",2);exports.SbInputRenderer=In([u("sb-input-renderer")],exports.SbInputRenderer);var og=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,On=(e,t,r,i)=>{for(var s=i>1?void 0:i?ng(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&og(t,r,s),s};exports.SbLabelRenderer=class extends v{createRenderRoot(){return this}render(){var o,n,h,p,g;if(!this.element)return null;const{class:t,style:r}=I(this.element.class,this.element.style,(h=(n=(o=this.component.customizations)==null?void 0:o.byType)==null?void 0:n.labels)==null?void 0:h.inputLabel,this.element.id,this.component.customizations),{base:i,responsive:s}=St(r);return $t(this.element.id,s,((g=(p=this.component.customizations)==null?void 0:p.config)==null?void 0:g.breakpoints)??mt),d`
5825
5825
  <rtg-label
5826
5826
  for=${this.element.properties.for??m}
5827
5827
  class=${t??m}
@@ -5829,7 +5829,7 @@ body {
5829
5829
  >
5830
5830
  ${this.element.properties.content}
5831
5831
  </rtg-label>
5832
- `}};On([a({type:Object})],exports.SbLabelRenderer.prototype,"element",2);On([a({attribute:!1})],exports.SbLabelRenderer.prototype,"component",2);exports.SbLabelRenderer=On([p("sb-label-renderer")],exports.SbLabelRenderer);const ag=(e,t)=>d`
5832
+ `}};On([a({type:Object})],exports.SbLabelRenderer.prototype,"element",2);On([a({attribute:!1})],exports.SbLabelRenderer.prototype,"component",2);exports.SbLabelRenderer=On([u("sb-label-renderer")],exports.SbLabelRenderer);const ag=(e,t)=>d`
5833
5833
  <svg
5834
5834
  id="${e}"
5835
5835
  part="${t}"
@@ -5925,7 +5925,7 @@ body {
5925
5925
  <path d="M12 8v4" />
5926
5926
  <path d="M12 16h.01" />
5927
5927
  </svg>
5928
- `,ug=(e,t)=>d`
5928
+ `,pg=(e,t)=>d`
5929
5929
  <svg
5930
5930
  id="${e}"
5931
5931
  part="${t}"
@@ -5945,7 +5945,7 @@ body {
5945
5945
  <path d="m14.5 9.5-5 5" />
5946
5946
  <path d="m9.5 9.5 5 5" />
5947
5947
  </svg>
5948
- `,pg={"badge-alert":ag,"badge-x":lg,"circle-alert":dg,"circle-x":cg,"shield-alert":hg,"shield-x":ug};var gg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,Zr=(e,t,r,i)=>{for(var s=i>1?void 0:i?mg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&gg(t,r,s),s};exports.SbError=class extends v{constructor(){super(...arguments),this.seed=_t(),this.variant="default",this.content={description:"Something went wrong."}}static get parts(){const t=this._ROOT,r=`${t}-${this._ICON}`,i=`${t}-${this._TITLE}`,s=`${t}-${this._DESCRIPTION}`;return{root:t,icon:r,title:i,description:s}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbError.parts.root}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.SbError._ICON}`}get titleId(){return`${this.rootId}-${exports.SbError._TITLE}`}get descriptionId(){return`${this.rootId}-${exports.SbError._DESCRIPTION}`}get _variant(){let t="destructive";return this.variant==="tonal"&&(t+="-tonal"),t}render(){const t=this.icon?pg[this.icon]:null,{title:r,description:i}=this.content;return d`
5948
+ `,ug={"badge-alert":ag,"badge-x":lg,"circle-alert":dg,"circle-x":cg,"shield-alert":hg,"shield-x":pg};var gg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,Jr=(e,t,r,i)=>{for(var s=i>1?void 0:i?mg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&gg(t,r,s),s};exports.SbError=class extends v{constructor(){super(...arguments),this.seed=_t(),this.variant="default",this.content={description:"Something went wrong."}}static get parts(){const t=this._ROOT,r=`${t}-${this._ICON}`,i=`${t}-${this._TITLE}`,s=`${t}-${this._DESCRIPTION}`;return{root:t,icon:r,title:i,description:s}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbError.parts.root}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.SbError._ICON}`}get titleId(){return`${this.rootId}-${exports.SbError._TITLE}`}get descriptionId(){return`${this.rootId}-${exports.SbError._DESCRIPTION}`}get _variant(){let t="destructive";return this.variant==="tonal"&&(t+="-tonal"),t}render(){const t=this.icon?ug[this.icon]:null,{title:r,description:i}=this.content;return d`
5949
5949
  <rtg-alert
5950
5950
  id="${this.rootId}"
5951
5951
  part="${exports.SbError.parts.root}"
@@ -5969,7 +5969,7 @@ body {
5969
5969
  </rtg-alert-description>
5970
5970
  `:m}
5971
5971
  </rtg-alert>
5972
- `}};exports.SbError._ROOT="error";exports.SbError._ICON="icon";exports.SbError._TITLE="title";exports.SbError._DESCRIPTION="description";Zr([a({type:String})],exports.SbError.prototype,"seed",2);Zr([a({attribute:"child-id",type:String})],exports.SbError.prototype,"childId",2);Zr([a({type:String})],exports.SbError.prototype,"variant",2);Zr([a({type:Object})],exports.SbError.prototype,"content",2);Zr([a({type:String})],exports.SbError.prototype,"icon",2);exports.SbError=Zr([p("sb-error")],exports.SbError);var bg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,Q=(e,t,r,i)=>{for(var s=i>1?void 0:i?fg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&bg(t,r,s),s};exports.SbPasswordField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="password",this.variant="simple",this.content="split",this.label="Password",this.rules=[{name:"uppercase",error:"Must contain an uppercase letter."},{name:"lowercase",error:"Must contain a lowercase letter."},{name:"number",error:"Must contain a number."},{name:"special",error:"Must contain a special character."}],this.requiredError="Password is a required field.",this.formatError="Enter a valid password.",this._invalid=!1,this._errors=[],this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbPasswordField.parts.input}"] input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=`[part="${exports.SbPasswordField.parts.input}"]`,r=this.variant==="toggle"?`rtg-password-input${t}`:`rtg-input${t}`,i=this.querySelector(r);i&&(i.value=""),this._value="",this._invalid=!1,this._errors=[]}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbPasswordField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbPasswordField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbPasswordField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbPasswordField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbPasswordField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbPasswordField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbPasswordField._ERROR}`}get _lengths(){const t={minlength:this.minlength&&this.minlength>0?this.minlength:void 0,maxlength:this.maxlength&&this.maxlength>0?this.maxlength:void 0};return t.minlength&&t.maxlength&&t.maxlength<t.minlength&&(t.maxlength=void 0),t}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,u=new CustomEvent(exports.SbPasswordField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(u)}_validateRequired(t){if(!this.required||t)return!0;const r=this.requiredError;return this._invalid=!0,this._errors=[r],this._dispatchValidate(!1,"required",t,r),!1}_validateMinlength(t){const{minlength:r}=this._lengths;if(!r||t.length>=r)return!0;const i=this.minlengthError??`Password must be at least ${r} characters.`;return this._invalid=!0,this._errors=[i],this._dispatchValidate(!1,"minlength",t,i),!1}_validateMaxlength(t){const{maxlength:r}=this._lengths;if(!r||t.length<=r)return!0;const i=this.maxlengthError??`Password must be at most ${r} characters.`;return this._invalid=!0,this._errors=[i],this._dispatchValidate(!1,"maxlength",t,i),!1}_validateFormat(t){let r=!0;const i=[];for(const o of this.rules)(o.name?exports.SbPasswordField._PATTERNS[o.name]:new RegExp(o.pattern)).test(t)||(r=!1,o.error&&i.push(o.error));if(r)return!0;const s=i.length?i.join(" "):this.formatError;return this._invalid=!0,this._errors=i.length?i:[this.formatError],this._dispatchValidate(!1,"format",t,s),!1}_doValidateSuccess(t,r){this._invalid=!1,this._errors=[],this._dispatchValidate(!0,"success",t,r)}_validate(){const t=this._value;let r=this._validateRequired(t);return r?t?(r=this._validateMinlength(t),!r||(r=this._validateMaxlength(t),!r)||(r=this._validateFormat(t),!r)?!1:(this._doValidateSuccess(t,"Valid password."),!0)):(this._doValidateSuccess(t,"Valid password (optional and empty)."),!0):!1}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
5972
+ `}};exports.SbError._ROOT="error";exports.SbError._ICON="icon";exports.SbError._TITLE="title";exports.SbError._DESCRIPTION="description";Jr([a({type:String})],exports.SbError.prototype,"seed",2);Jr([a({attribute:"child-id",type:String})],exports.SbError.prototype,"childId",2);Jr([a({type:String})],exports.SbError.prototype,"variant",2);Jr([a({type:Object})],exports.SbError.prototype,"content",2);Jr([a({type:String})],exports.SbError.prototype,"icon",2);exports.SbError=Jr([u("sb-error")],exports.SbError);var bg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,J=(e,t,r,i)=>{for(var s=i>1?void 0:i?fg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&bg(t,r,s),s};exports.SbPasswordField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="password",this.variant="toggle",this.content="split",this.label="Password",this.rules=[{name:"uppercase",error:"Must contain an uppercase letter."},{name:"lowercase",error:"Must contain a lowercase letter."},{name:"number",error:"Must contain a number."},{name:"special",error:"Must contain a special character."}],this.validation="default",this.requiredError="Password is a required field.",this.formatError="Enter a valid password.",this._invalid=!1,this._errors=[],this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbPasswordField.parts.input}"] input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=`[part="${exports.SbPasswordField.parts.input}"]`,r=this.variant==="toggle"?`rtg-password-input${t}`:`rtg-input${t}`,i=this.querySelector(r);i&&(i.value=""),this._value="",this._invalid=!1,this._errors=[]}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbPasswordField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbPasswordField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbPasswordField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbPasswordField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbPasswordField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbPasswordField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbPasswordField._ERROR}`}get _lengths(){const t={minlength:this.minlength&&this.minlength>0?this.minlength:void 0,maxlength:this.maxlength&&this.maxlength>0?this.maxlength:void 0};return t.minlength&&t.maxlength&&t.maxlength<t.minlength&&(t.maxlength=void 0),t}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,p=new CustomEvent(exports.SbPasswordField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(p)}_handleValidateSuccess(t,r="Valid password."){this._invalid=!1,this._errors=[],this._dispatchValidate(!0,"success",t,r)}_handleValidateError(t,r,i="Invalid password.",s=[]){s.length||s.push(i),this._invalid=!0,this._errors=s,this._dispatchValidate(!1,t,r,s.join(" "))}_validate(){const t=this._value;if(this.required&&!t)return this._handleValidateError("required",t,this.requiredError),!1;if(!t||this.validation==="simple")return this._handleValidateSuccess(t),!0;const{minlength:r,maxlength:i}=this._lengths;if(r&&t.length<r)return this._handleValidateError("minlength",t,this.minlengthError??`Password must be at least ${r} characters.`),!1;if(i&&t.length>i)return this._handleValidateError("maxlength",t,this.maxlengthError??`Password must be at most ${i} characters.`),!1;let s=!0;const o=[];for(const n of this.rules)(n.name?exports.SbPasswordField._PATTERNS[n.name]:new RegExp(n.pattern)).test(t)||(s=!1,n.error&&o.push(n.error));return s?(this._handleValidateSuccess(t),!0):(this._handleValidateError("format",t,o.length?void 0:this.formatError,o),!1)}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
5973
5973
  <span
5974
5974
  id="${this.markId}"
5975
5975
  part="${exports.SbPasswordField.parts.mark}"
@@ -6044,7 +6044,7 @@ body {
6044
6044
  ${this._renderError()}
6045
6045
  ${this.content==="split"&&!this._invalid?this._renderDescription():m}
6046
6046
  </rtg-field>
6047
- `}};exports.SbPasswordField._ROOT="password-field";exports.SbPasswordField._CONTENT="content";exports.SbPasswordField._LABEL="label";exports.SbPasswordField._MARK="mark";exports.SbPasswordField._DESCRIPTION="description";exports.SbPasswordField._INPUT="input";exports.SbPasswordField._ERROR="error";exports.SbPasswordField.TAG=`sb-${exports.SbPasswordField._ROOT}`;exports.SbPasswordField._PATTERNS={uppercase:/[A-Z]/,lowercase:/[a-z]/,number:/[0-9]/,special:/[!@#$%^&*()_=+{}[\]|\\;:"<>,./?-]/};Q([a({type:String})],exports.SbPasswordField.prototype,"seed",2);Q([a({attribute:"child-id",type:String})],exports.SbPasswordField.prototype,"childId",2);Q([a({attribute:"field-id",type:String})],exports.SbPasswordField.prototype,"fieldId",2);Q([a({type:String})],exports.SbPasswordField.prototype,"name",2);Q([a({type:String})],exports.SbPasswordField.prototype,"variant",2);Q([a({type:String})],exports.SbPasswordField.prototype,"content",2);Q([a({type:String})],exports.SbPasswordField.prototype,"label",2);Q([a({type:String})],exports.SbPasswordField.prototype,"placeholder",2);Q([a({type:String})],exports.SbPasswordField.prototype,"description",2);Q([a({type:String})],exports.SbPasswordField.prototype,"mark",2);Q([a({type:Boolean})],exports.SbPasswordField.prototype,"caret",2);Q([a({type:Boolean})],exports.SbPasswordField.prototype,"disabled",2);Q([a({type:Boolean})],exports.SbPasswordField.prototype,"required",2);Q([a({type:Number})],exports.SbPasswordField.prototype,"minlength",2);Q([a({type:Number})],exports.SbPasswordField.prototype,"maxlength",2);Q([a({type:Array})],exports.SbPasswordField.prototype,"rules",2);Q([a({attribute:"required-error",type:String})],exports.SbPasswordField.prototype,"requiredError",2);Q([a({attribute:"minlength-error",type:String})],exports.SbPasswordField.prototype,"minlengthError",2);Q([a({attribute:"maxlength-error",type:String})],exports.SbPasswordField.prototype,"maxlengthError",2);Q([a({attribute:"format-error",type:String})],exports.SbPasswordField.prototype,"formatError",2);Q([x()],exports.SbPasswordField.prototype,"_invalid",2);Q([x()],exports.SbPasswordField.prototype,"_errors",2);Q([x()],exports.SbPasswordField.prototype,"_value",2);exports.SbPasswordField=Q([p("sb-password-field")],exports.SbPasswordField);var vg=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,dt=(e,t,r,i)=>{for(var s=i>1?void 0:i?yg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&vg(t,r,s),s};exports.SbConfirmField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="confirm",this.variant="simple",this.content="split",this.pair="sb-password-field",this.label="Confirm Password",this.requiredError="Confirm password is a required field.",this.matchError="Passwords do not match.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbConfirmField.parts.input}"] input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=`[part="${exports.SbConfirmField.parts.input}"]`,r=this.variant==="toggle"?`rtg-password-input${t}`:`rtg-input${t}`,i=this.querySelector(r);i&&(i.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbConfirmField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbConfirmField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbConfirmField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbConfirmField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbConfirmField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbConfirmField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbConfirmField._ERROR}`}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_pairValue(){const t=this._form??document,r=this.pair,i=t.querySelector(r);if(!i)return"";const s=i.querySelector(`[part="${exports.SbPasswordField.parts.input}"] input`);return(s==null?void 0:s.value)??""}_dispatchValidate(t,r,i,s,o){const n=this.inputId,h=this.rootId,u=this.name,g=this.pair,y=new CustomEvent(exports.SbConfirmField.validateEventName,{detail:{id:n,parentId:h,name:u,value:i,pairSelector:g,pairValue:o,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(y)}_validateRequired(t){if(!this.required||t)return!0;const r=this.requiredError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"required",t,r),!1}_validateMatch(t){const r=this._pairValue();if(t===r)return!0;const i=this.matchError;return this._invalid=!0,this._error=i,this._dispatchValidate(!1,"match",t,i,r),!1}_doValidateSuccess(t,r){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_validate(){const t=this._value;let r=this._validateRequired(t);return r?t?(r=this._validateMatch(t),r?(this._doValidateSuccess(t,"Valid confirm password."),!0):!1):(this._doValidateSuccess(t,"Valid confirm password (optional and empty)."),!0):!1}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6047
+ `}};exports.SbPasswordField._ROOT="password-field";exports.SbPasswordField._CONTENT="content";exports.SbPasswordField._LABEL="label";exports.SbPasswordField._MARK="mark";exports.SbPasswordField._DESCRIPTION="description";exports.SbPasswordField._INPUT="input";exports.SbPasswordField._ERROR="error";exports.SbPasswordField.TAG=`sb-${exports.SbPasswordField._ROOT}`;exports.SbPasswordField._PATTERNS={uppercase:/[A-Z]/,lowercase:/[a-z]/,number:/[0-9]/,special:/[!@#$%^&*()_=+{}[\]|\\;:"<>,./?-]/};J([a({type:String})],exports.SbPasswordField.prototype,"seed",2);J([a({attribute:"child-id",type:String})],exports.SbPasswordField.prototype,"childId",2);J([a({attribute:"field-id",type:String})],exports.SbPasswordField.prototype,"fieldId",2);J([a({type:String})],exports.SbPasswordField.prototype,"name",2);J([a({type:String})],exports.SbPasswordField.prototype,"variant",2);J([a({type:String})],exports.SbPasswordField.prototype,"content",2);J([a({type:String})],exports.SbPasswordField.prototype,"label",2);J([a({type:String})],exports.SbPasswordField.prototype,"placeholder",2);J([a({type:String})],exports.SbPasswordField.prototype,"description",2);J([a({type:String})],exports.SbPasswordField.prototype,"mark",2);J([a({type:Boolean})],exports.SbPasswordField.prototype,"caret",2);J([a({type:Boolean})],exports.SbPasswordField.prototype,"disabled",2);J([a({type:Boolean})],exports.SbPasswordField.prototype,"required",2);J([a({type:Number})],exports.SbPasswordField.prototype,"minlength",2);J([a({type:Number})],exports.SbPasswordField.prototype,"maxlength",2);J([a({type:Array})],exports.SbPasswordField.prototype,"rules",2);J([a({type:String})],exports.SbPasswordField.prototype,"validation",2);J([a({attribute:"required-error",type:String})],exports.SbPasswordField.prototype,"requiredError",2);J([a({attribute:"minlength-error",type:String})],exports.SbPasswordField.prototype,"minlengthError",2);J([a({attribute:"maxlength-error",type:String})],exports.SbPasswordField.prototype,"maxlengthError",2);J([a({attribute:"format-error",type:String})],exports.SbPasswordField.prototype,"formatError",2);J([x()],exports.SbPasswordField.prototype,"_invalid",2);J([x()],exports.SbPasswordField.prototype,"_errors",2);J([x()],exports.SbPasswordField.prototype,"_value",2);exports.SbPasswordField=J([u("sb-password-field")],exports.SbPasswordField);var vg=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,ct=(e,t,r,i)=>{for(var s=i>1?void 0:i?yg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&vg(t,r,s),s};exports.SbConfirmField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="confirm",this.variant="toggle",this.content="split",this.pair="sb-password-field",this.label="Confirm Password",this.validation="default",this.requiredError="Confirm password is a required field.",this.matchError="Passwords do not match.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbConfirmField.parts.input}"] input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=`[part="${exports.SbConfirmField.parts.input}"]`,r=this.variant==="toggle"?`rtg-password-input${t}`:`rtg-input${t}`,i=this.querySelector(r);i&&(i.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbConfirmField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbConfirmField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbConfirmField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbConfirmField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbConfirmField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbConfirmField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbConfirmField._ERROR}`}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_pairValue(){const t=this._form??document,r=this.pair,i=t.querySelector(r);if(!i)return"";const s=i.querySelector(`[part="${exports.SbPasswordField.parts.input}"] input`);return(s==null?void 0:s.value)??""}_dispatchValidate(t,r,i,s,o){const n=this.inputId,h=this.rootId,p=this.name,g=this.pair,y=new CustomEvent(exports.SbConfirmField.validateEventName,{detail:{id:n,parentId:h,name:p,value:i,pairSelector:g,pairValue:o,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(y)}_handleValidateSuccess(t,r="Valid confirm."){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_handleValidateError(t,r,i){this._invalid=!0,this._error=i,this._dispatchValidate(!1,t,r,i)}_validate(){const t=this._value;if(this.required&&!t)return this._handleValidateError("required",t,this.requiredError),!1;if(!t||this.validation==="simple")return this._handleValidateSuccess(t),!0;const r=this._pairValue();return t!==r?(this._handleValidateError("match",t,this.matchError),!1):(this._handleValidateSuccess(t),!0)}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6048
6048
  <span
6049
6049
  id="${this.markId}"
6050
6050
  part="${exports.SbConfirmField.parts.mark}"
@@ -6115,7 +6115,7 @@ body {
6115
6115
  ${this._renderError()}
6116
6116
  ${this.content==="split"&&!this._invalid?this._renderDescription():m}
6117
6117
  </rtg-field>
6118
- `}};exports.SbConfirmField._ROOT="confirm-field";exports.SbConfirmField._CONTENT="content";exports.SbConfirmField._LABEL="label";exports.SbConfirmField._MARK="mark";exports.SbConfirmField._DESCRIPTION="description";exports.SbConfirmField._INPUT="input";exports.SbConfirmField._ERROR="error";exports.SbConfirmField.TAG=`sb-${exports.SbConfirmField._ROOT}`;dt([a({type:String})],exports.SbConfirmField.prototype,"seed",2);dt([a({attribute:"child-id",type:String})],exports.SbConfirmField.prototype,"childId",2);dt([a({attribute:"field-id",type:String})],exports.SbConfirmField.prototype,"fieldId",2);dt([a({type:String})],exports.SbConfirmField.prototype,"name",2);dt([a({type:String})],exports.SbConfirmField.prototype,"variant",2);dt([a({type:String})],exports.SbConfirmField.prototype,"content",2);dt([a({type:String})],exports.SbConfirmField.prototype,"pair",2);dt([a({type:String})],exports.SbConfirmField.prototype,"label",2);dt([a({type:String})],exports.SbConfirmField.prototype,"placeholder",2);dt([a({type:String})],exports.SbConfirmField.prototype,"description",2);dt([a({type:String})],exports.SbConfirmField.prototype,"mark",2);dt([a({type:Boolean})],exports.SbConfirmField.prototype,"caret",2);dt([a({type:Boolean})],exports.SbConfirmField.prototype,"disabled",2);dt([a({type:Boolean})],exports.SbConfirmField.prototype,"required",2);dt([a({attribute:"required-error",type:String})],exports.SbConfirmField.prototype,"requiredError",2);dt([a({attribute:"match-error",type:String})],exports.SbConfirmField.prototype,"matchError",2);dt([x()],exports.SbConfirmField.prototype,"_invalid",2);dt([x()],exports.SbConfirmField.prototype,"_error",2);dt([x()],exports.SbConfirmField.prototype,"_value",2);exports.SbConfirmField=dt([p("sb-confirm-field")],exports.SbConfirmField);var wg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,gt=(e,t,r,i)=>{for(var s=i>1?void 0:i?_g(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&wg(t,r,s),s};exports.SbEmailField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="email",this.content="split",this.label="Email",this.requiredError="Email is a required field.",this.formatError="Enter a valid email address.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbEmailField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbEmailField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbEmailField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbEmailField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbEmailField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbEmailField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbEmailField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbEmailField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbEmailField._ERROR}`}get _normalizedValue(){return this._value.trim().toLowerCase()}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,u=new CustomEvent(exports.SbEmailField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(u)}_validateRequired(t){if(!this.required||t)return!0;const r=this.requiredError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"required",t,r),!1}_validateFormat(t){if(!this.required&&t===""||exports.SbEmailField._PATTERN.test(t))return!0;const r=this.formatError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"format",t,r),!1}_validate(){const t=this._normalizedValue;let r=this._validateRequired(t);if(!r||(r=this._validateFormat(t),!r))return!1;const i=`Valid email address${!t&&" (optional and empty)"}.`;return this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,i),!0}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6118
+ `}};exports.SbConfirmField._ROOT="confirm-field";exports.SbConfirmField._CONTENT="content";exports.SbConfirmField._LABEL="label";exports.SbConfirmField._MARK="mark";exports.SbConfirmField._DESCRIPTION="description";exports.SbConfirmField._INPUT="input";exports.SbConfirmField._ERROR="error";exports.SbConfirmField.TAG=`sb-${exports.SbConfirmField._ROOT}`;ct([a({type:String})],exports.SbConfirmField.prototype,"seed",2);ct([a({attribute:"child-id",type:String})],exports.SbConfirmField.prototype,"childId",2);ct([a({attribute:"field-id",type:String})],exports.SbConfirmField.prototype,"fieldId",2);ct([a({type:String})],exports.SbConfirmField.prototype,"name",2);ct([a({type:String})],exports.SbConfirmField.prototype,"variant",2);ct([a({type:String})],exports.SbConfirmField.prototype,"content",2);ct([a({type:String})],exports.SbConfirmField.prototype,"pair",2);ct([a({type:String})],exports.SbConfirmField.prototype,"label",2);ct([a({type:String})],exports.SbConfirmField.prototype,"placeholder",2);ct([a({type:String})],exports.SbConfirmField.prototype,"description",2);ct([a({type:String})],exports.SbConfirmField.prototype,"mark",2);ct([a({type:Boolean})],exports.SbConfirmField.prototype,"caret",2);ct([a({type:Boolean})],exports.SbConfirmField.prototype,"disabled",2);ct([a({type:Boolean})],exports.SbConfirmField.prototype,"required",2);ct([a({type:String})],exports.SbConfirmField.prototype,"validation",2);ct([a({attribute:"required-error",type:String})],exports.SbConfirmField.prototype,"requiredError",2);ct([a({attribute:"match-error",type:String})],exports.SbConfirmField.prototype,"matchError",2);ct([x()],exports.SbConfirmField.prototype,"_invalid",2);ct([x()],exports.SbConfirmField.prototype,"_error",2);ct([x()],exports.SbConfirmField.prototype,"_value",2);exports.SbConfirmField=ct([u("sb-confirm-field")],exports.SbConfirmField);var wg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,ut=(e,t,r,i)=>{for(var s=i>1?void 0:i?_g(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&wg(t,r,s),s};exports.SbEmailField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="email",this.content="split",this.label="Email",this.validation="default",this.requiredError="Email is a required field.",this.formatError="Enter a valid email address.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbEmailField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbEmailField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbEmailField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbEmailField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbEmailField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbEmailField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbEmailField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbEmailField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbEmailField._ERROR}`}get _normalizedValue(){return this._value.trim().toLowerCase()}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,p=new CustomEvent(exports.SbEmailField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(p)}_handleValidateSuccess(t,r="Valid email."){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_handleValidateError(t,r,i){this._invalid=!0,this._error=i,this._dispatchValidate(!1,t,r,i)}_validate(){const t=this._normalizedValue;return this.required&&!t?(this._handleValidateError("required",t,this.requiredError),!1):!t||this.validation==="simple"?(this._handleValidateSuccess(t),!0):exports.SbEmailField._PATTERN.test(t)?(this._handleValidateSuccess(t),!0):(this._handleValidateError("format",t,this.formatError),!1)}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6119
6119
  <span
6120
6120
  id="${this.markId}"
6121
6121
  part="${exports.SbEmailField.parts.mark}"
@@ -6175,7 +6175,7 @@ body {
6175
6175
  ${this._renderError()}
6176
6176
  ${this.content==="split"&&!this._invalid?this._renderDescription():m}
6177
6177
  </rtg-field>
6178
- `}};exports.SbEmailField._ROOT="email-field";exports.SbEmailField._CONTENT="content";exports.SbEmailField._LABEL="label";exports.SbEmailField._MARK="mark";exports.SbEmailField._DESCRIPTION="description";exports.SbEmailField._INPUT="input";exports.SbEmailField._ERROR="error";exports.SbEmailField.TAG=`sb-${exports.SbEmailField._ROOT}`;exports.SbEmailField._PATTERN=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;gt([a({type:String})],exports.SbEmailField.prototype,"seed",2);gt([a({attribute:"child-id",type:String})],exports.SbEmailField.prototype,"childId",2);gt([a({attribute:"field-id",type:String})],exports.SbEmailField.prototype,"fieldId",2);gt([a({type:String})],exports.SbEmailField.prototype,"name",2);gt([a({type:String})],exports.SbEmailField.prototype,"content",2);gt([a({type:String})],exports.SbEmailField.prototype,"label",2);gt([a({type:String})],exports.SbEmailField.prototype,"placeholder",2);gt([a({type:String})],exports.SbEmailField.prototype,"description",2);gt([a({type:String})],exports.SbEmailField.prototype,"mark",2);gt([a({type:Boolean})],exports.SbEmailField.prototype,"caret",2);gt([a({type:Boolean})],exports.SbEmailField.prototype,"disabled",2);gt([a({type:Boolean})],exports.SbEmailField.prototype,"required",2);gt([a({attribute:"required-error",type:String})],exports.SbEmailField.prototype,"requiredError",2);gt([a({attribute:"format-error",type:String})],exports.SbEmailField.prototype,"formatError",2);gt([x()],exports.SbEmailField.prototype,"_invalid",2);gt([x()],exports.SbEmailField.prototype,"_error",2);gt([x()],exports.SbEmailField.prototype,"_value",2);exports.SbEmailField=gt([p("sb-email-field")],exports.SbEmailField);var xg=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,ut=(e,t,r,i)=>{for(var s=i>1?void 0:i?Sg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&xg(t,r,s),s};exports.SbIdentifierField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="identifier",this.identifiers=[],this.content="split",this.requiredError="Identifier is a required field.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbIdentifierField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbIdentifierField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbIdentifierField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbIdentifierField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbIdentifierField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbIdentifierField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbIdentifierField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbIdentifierField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbIdentifierField._ERROR}`}get _normalizedValue(){return this._value.trim().toLowerCase()}get _label(){const t=this.identifiers;if(t.length===0)return"Identifier";let r=t[0];if(t.length>1){const i=t.slice(0,-1).join(", "),s=t.length>2?", or ":" or ",o=t.slice(-1)[0];r=i+s+o}return r.charAt(0).toUpperCase()+r.slice(1)}get _type(){return this.identifiers.length===1&&this.identifiers[0]==="email"?"email":this.identifiers.length===1&&this.identifiers[0]==="phone"?"tel":"text"}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,u=this.identifiers,g=new CustomEvent(exports.SbIdentifierField.validateEventName,{detail:{id:o,parentId:n,name:h,identifiers:u,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(g)}_validateRequired(t){if(!this.required||t)return!0;const r=this.requiredError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"required",t,r),!1}_validate(){const t=this._normalizedValue;if(!this._validateRequired(t))return!1;const i=`Valid identifier${t?"":" (optional and empty)"}.`;return this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,i),!0}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6178
+ `}};exports.SbEmailField._ROOT="email-field";exports.SbEmailField._CONTENT="content";exports.SbEmailField._LABEL="label";exports.SbEmailField._MARK="mark";exports.SbEmailField._DESCRIPTION="description";exports.SbEmailField._INPUT="input";exports.SbEmailField._ERROR="error";exports.SbEmailField.TAG=`sb-${exports.SbEmailField._ROOT}`;exports.SbEmailField._PATTERN=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;ut([a({type:String})],exports.SbEmailField.prototype,"seed",2);ut([a({attribute:"child-id",type:String})],exports.SbEmailField.prototype,"childId",2);ut([a({attribute:"field-id",type:String})],exports.SbEmailField.prototype,"fieldId",2);ut([a({type:String})],exports.SbEmailField.prototype,"name",2);ut([a({type:String})],exports.SbEmailField.prototype,"content",2);ut([a({type:String})],exports.SbEmailField.prototype,"label",2);ut([a({type:String})],exports.SbEmailField.prototype,"placeholder",2);ut([a({type:String})],exports.SbEmailField.prototype,"description",2);ut([a({type:String})],exports.SbEmailField.prototype,"mark",2);ut([a({type:Boolean})],exports.SbEmailField.prototype,"caret",2);ut([a({type:Boolean})],exports.SbEmailField.prototype,"disabled",2);ut([a({type:Boolean})],exports.SbEmailField.prototype,"required",2);ut([a({type:String})],exports.SbEmailField.prototype,"validation",2);ut([a({attribute:"required-error",type:String})],exports.SbEmailField.prototype,"requiredError",2);ut([a({attribute:"format-error",type:String})],exports.SbEmailField.prototype,"formatError",2);ut([x()],exports.SbEmailField.prototype,"_invalid",2);ut([x()],exports.SbEmailField.prototype,"_error",2);ut([x()],exports.SbEmailField.prototype,"_value",2);exports.SbEmailField=ut([u("sb-email-field")],exports.SbEmailField);var xg=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,ht=(e,t,r,i)=>{for(var s=i>1?void 0:i?Sg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&xg(t,r,s),s};exports.SbIdentifierField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="identifier",this.identifiers=[],this.content="split",this.validation="default",this.requiredError="Identifier is a required field.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbIdentifierField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbIdentifierField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbIdentifierField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbIdentifierField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbIdentifierField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbIdentifierField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbIdentifierField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbIdentifierField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbIdentifierField._ERROR}`}get _normalizedValue(){return this._value.trim().toLowerCase()}get _label(){const t=this.identifiers;if(t.length===0)return"Identifier";let r=t[0];if(t.length>1){const i=t.slice(0,-1).join(", "),s=t.length>2?", or ":" or ",o=t.slice(-1)[0];r=i+s+o}return r.charAt(0).toUpperCase()+r.slice(1)}get _type(){return this.identifiers.length===1&&this.identifiers[0]==="email"?"email":this.identifiers.length===1&&this.identifiers[0]==="phone"?"tel":"text"}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,p=this.identifiers,g=new CustomEvent(exports.SbIdentifierField.validateEventName,{detail:{id:o,parentId:n,name:h,identifiers:p,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(g)}_handleValidateSuccess(t,r="Valid identifier."){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_handleValidateError(t,r,i){this._invalid=!0,this._error=i,this._dispatchValidate(!1,t,r,i)}_validate(){const t=this._normalizedValue;return this.required&&!t?(this._handleValidateError("required",t,this.requiredError),!1):!t||this.validation==="simple"?(this._handleValidateSuccess(t),!0):(this._handleValidateSuccess(t),!0)}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6179
6179
  <span
6180
6180
  id="${this.markId}"
6181
6181
  part="${exports.SbIdentifierField.parts.mark}"
@@ -6236,7 +6236,7 @@ body {
6236
6236
  ${this._renderError()}
6237
6237
  ${this.content==="split"&&!this._invalid?this._renderDescription():m}
6238
6238
  </rtg-field>
6239
- `}};exports.SbIdentifierField._ROOT="identifier-field";exports.SbIdentifierField._CONTENT="content";exports.SbIdentifierField._LABEL="label";exports.SbIdentifierField._MARK="mark";exports.SbIdentifierField._DESCRIPTION="description";exports.SbIdentifierField._INPUT="input";exports.SbIdentifierField._ERROR="error";exports.SbIdentifierField.TAG=`sb-${exports.SbIdentifierField._ROOT}`;ut([a({type:String})],exports.SbIdentifierField.prototype,"seed",2);ut([a({attribute:"child-id",type:String})],exports.SbIdentifierField.prototype,"childId",2);ut([a({attribute:"field-id",type:String})],exports.SbIdentifierField.prototype,"fieldId",2);ut([a({type:String})],exports.SbIdentifierField.prototype,"name",2);ut([a({type:Array})],exports.SbIdentifierField.prototype,"identifiers",2);ut([a({type:String})],exports.SbIdentifierField.prototype,"content",2);ut([a({type:String})],exports.SbIdentifierField.prototype,"label",2);ut([a({type:String})],exports.SbIdentifierField.prototype,"placeholder",2);ut([a({type:String})],exports.SbIdentifierField.prototype,"description",2);ut([a({type:String})],exports.SbIdentifierField.prototype,"mark",2);ut([a({type:Boolean})],exports.SbIdentifierField.prototype,"caret",2);ut([a({type:Boolean})],exports.SbIdentifierField.prototype,"disabled",2);ut([a({type:String})],exports.SbIdentifierField.prototype,"autocomplete",2);ut([a({type:Boolean})],exports.SbIdentifierField.prototype,"required",2);ut([a({attribute:"required-error",type:String})],exports.SbIdentifierField.prototype,"requiredError",2);ut([x()],exports.SbIdentifierField.prototype,"_invalid",2);ut([x()],exports.SbIdentifierField.prototype,"_error",2);ut([x()],exports.SbIdentifierField.prototype,"_value",2);exports.SbIdentifierField=ut([p("sb-identifier-field")],exports.SbIdentifierField);var $g=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,tt=(e,t,r,i)=>{for(var s=i>1?void 0:i?Cg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&$g(t,r,s),s};exports.SbNameField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="name",this.content="split",this.label="Name",this.requiredError="Name is a required field.",this.formatError="Enter a valid name.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbNameField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbNameField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbNameField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbNameField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbNameField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbNameField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbNameField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbNameField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbNameField._ERROR}`}get _normalizedValue(){return this._value.trim().replace(/\s+/g," ")}get _lengths(){const t={minlength:this.minlength&&this.minlength>0?this.minlength:void 0,maxlength:this.maxlength&&this.maxlength>0?this.maxlength:void 0};return t.minlength&&t.maxlength&&t.maxlength<t.minlength&&(t.maxlength=void 0),t}get _pattern(){return this.pattern?new RegExp(this.pattern):exports.SbNameField._PATTERN}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,u=new CustomEvent(exports.SbNameField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(u)}_validateRequired(t){if(!this.required||t)return!0;const r=this.requiredError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"required",t,r),!1}_validateMinlength(t){const{minlength:r}=this._lengths;if(!r||t.length>=r)return!0;const i=this.minlengthError??`Name must be at least ${r} characters.`;return this._invalid=!0,this._error=i,this._dispatchValidate(!1,"minlength",t,i),!1}_validateMaxlength(t){const{maxlength:r}=this._lengths;if(!r||t.length<=r)return!0;const i=this.maxlengthError??`Name must be at most ${r} characters.`;return this._invalid=!0,this._error=i,this._dispatchValidate(!1,"maxlength",t,i),!1}_validateFormat(t){if(this._pattern.test(t))return!0;const r=this.formatError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"format",t,r),!1}_doValidateSuccess(t,r){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_validate(){const t=this._normalizedValue;let r=this._validateRequired(t);return r?t?(r=this._validateMinlength(t),!r||(r=this._validateMaxlength(t),!r)||(r=this._validateFormat(t),!r)?!1:(this._doValidateSuccess(t,"Valid name."),!0)):(this._doValidateSuccess(t,"Valid name (optional and empty)."),!0):!1}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6239
+ `}};exports.SbIdentifierField._ROOT="identifier-field";exports.SbIdentifierField._CONTENT="content";exports.SbIdentifierField._LABEL="label";exports.SbIdentifierField._MARK="mark";exports.SbIdentifierField._DESCRIPTION="description";exports.SbIdentifierField._INPUT="input";exports.SbIdentifierField._ERROR="error";exports.SbIdentifierField.TAG=`sb-${exports.SbIdentifierField._ROOT}`;ht([a({type:String})],exports.SbIdentifierField.prototype,"seed",2);ht([a({attribute:"child-id",type:String})],exports.SbIdentifierField.prototype,"childId",2);ht([a({attribute:"field-id",type:String})],exports.SbIdentifierField.prototype,"fieldId",2);ht([a({type:String})],exports.SbIdentifierField.prototype,"name",2);ht([a({type:Array})],exports.SbIdentifierField.prototype,"identifiers",2);ht([a({type:String})],exports.SbIdentifierField.prototype,"content",2);ht([a({type:String})],exports.SbIdentifierField.prototype,"label",2);ht([a({type:String})],exports.SbIdentifierField.prototype,"placeholder",2);ht([a({type:String})],exports.SbIdentifierField.prototype,"description",2);ht([a({type:String})],exports.SbIdentifierField.prototype,"mark",2);ht([a({type:Boolean})],exports.SbIdentifierField.prototype,"caret",2);ht([a({type:Boolean})],exports.SbIdentifierField.prototype,"disabled",2);ht([a({type:String})],exports.SbIdentifierField.prototype,"autocomplete",2);ht([a({type:Boolean})],exports.SbIdentifierField.prototype,"required",2);ht([a({type:String})],exports.SbIdentifierField.prototype,"validation",2);ht([a({attribute:"required-error",type:String})],exports.SbIdentifierField.prototype,"requiredError",2);ht([x()],exports.SbIdentifierField.prototype,"_invalid",2);ht([x()],exports.SbIdentifierField.prototype,"_error",2);ht([x()],exports.SbIdentifierField.prototype,"_value",2);exports.SbIdentifierField=ht([u("sb-identifier-field")],exports.SbIdentifierField);var $g=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,tt=(e,t,r,i)=>{for(var s=i>1?void 0:i?Cg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&$g(t,r,s),s};exports.SbNameField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="name",this.content="split",this.label="Name",this.validation="default",this.requiredError="Name is a required field.",this.formatError="Enter a valid name.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbNameField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbNameField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbNameField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbNameField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbNameField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbNameField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbNameField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbNameField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbNameField._ERROR}`}get _normalizedValue(){return this._value.trim().replace(/\s+/g," ")}get _lengths(){const t={minlength:this.minlength&&this.minlength>0?this.minlength:void 0,maxlength:this.maxlength&&this.maxlength>0?this.maxlength:void 0};return t.minlength&&t.maxlength&&t.maxlength<t.minlength&&(t.maxlength=void 0),t}get _pattern(){return this.pattern?new RegExp(this.pattern):exports.SbNameField._PATTERN}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,p=new CustomEvent(exports.SbNameField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(p)}_handleValidateSuccess(t,r="Valid name."){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_handleValidateError(t,r,i){this._invalid=!0,this._error=i,this._dispatchValidate(!1,t,r,i)}_validate(){const t=this._normalizedValue;if(this.required&&!t)return this._handleValidateError("required",t,this.requiredError),!1;if(!t||this.validation==="simple")return this._handleValidateSuccess(t),!0;const{minlength:r,maxlength:i}=this._lengths;return r&&t.length<r?(this._handleValidateError("minlength",t,this.minlengthError??`Username must be at least ${r} characters.`),!1):i&&t.length>i?(this._handleValidateError("maxlength",t,this.maxlengthError??`Username must be at most ${i} characters.`),!1):this._pattern.test(t)?(this._handleValidateSuccess(t),!0):(this._handleValidateError("format",t,this.formatError),!1)}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6240
6240
  <span
6241
6241
  id="${this.markId}"
6242
6242
  part="${exports.SbNameField.parts.mark}"
@@ -6298,7 +6298,7 @@ body {
6298
6298
  ${this._renderError()}
6299
6299
  ${this.content==="split"&&!this._invalid?this._renderDescription():m}
6300
6300
  </rtg-field>
6301
- `}};exports.SbNameField._ROOT="name-field";exports.SbNameField._CONTENT="content";exports.SbNameField._LABEL="label";exports.SbNameField._MARK="mark";exports.SbNameField._DESCRIPTION="description";exports.SbNameField._INPUT="input";exports.SbNameField._ERROR="error";exports.SbNameField.TAG=`sb-${exports.SbNameField._ROOT}`;exports.SbNameField._PATTERN=/^[\p{L} .'-]*$/u;tt([a({type:String})],exports.SbNameField.prototype,"seed",2);tt([a({attribute:"child-id",type:String})],exports.SbNameField.prototype,"childId",2);tt([a({attribute:"field-id",type:String})],exports.SbNameField.prototype,"fieldId",2);tt([a({type:String})],exports.SbNameField.prototype,"name",2);tt([a({type:String})],exports.SbNameField.prototype,"content",2);tt([a({type:String})],exports.SbNameField.prototype,"label",2);tt([a({type:String})],exports.SbNameField.prototype,"placeholder",2);tt([a({type:String})],exports.SbNameField.prototype,"description",2);tt([a({type:String})],exports.SbNameField.prototype,"mark",2);tt([a({type:Boolean})],exports.SbNameField.prototype,"caret",2);tt([a({type:Boolean})],exports.SbNameField.prototype,"disabled",2);tt([a({type:Boolean})],exports.SbNameField.prototype,"required",2);tt([a({type:Number})],exports.SbNameField.prototype,"minlength",2);tt([a({type:Number})],exports.SbNameField.prototype,"maxlength",2);tt([a({type:String})],exports.SbNameField.prototype,"pattern",2);tt([a({attribute:"required-error",type:String})],exports.SbNameField.prototype,"requiredError",2);tt([a({attribute:"minlength-error",type:String})],exports.SbNameField.prototype,"minlengthError",2);tt([a({attribute:"maxlength-error",type:String})],exports.SbNameField.prototype,"maxlengthError",2);tt([a({attribute:"format-error",type:String})],exports.SbNameField.prototype,"formatError",2);tt([x()],exports.SbNameField.prototype,"_invalid",2);tt([x()],exports.SbNameField.prototype,"_error",2);tt([x()],exports.SbNameField.prototype,"_value",2);exports.SbNameField=tt([p("sb-name-field")],exports.SbNameField);var Eg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,mt=(e,t,r,i)=>{for(var s=i>1?void 0:i?kg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Eg(t,r,s),s};exports.SbPhoneField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="phone",this.content="split",this.label="Phone",this.requiredError="Phone is a required field.",this.formatError="Enter a valid phone number.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbPhoneField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbPhoneField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbPhoneField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbPhoneField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbPhoneField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbPhoneField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbPhoneField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbPhoneField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbPhoneField._ERROR}`}get _normalizedValue(){return this._value.replace(/\s/g,"")}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,u=new CustomEvent(exports.SbPhoneField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(u)}_validateRequired(t){if(!this.required||t)return!0;const r=this.requiredError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"required",t,r),!1}_validateFormat(t){if(!this.required&&t===""||exports.SbPhoneField._PATTERN.test(t))return!0;const r=this.formatError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"format",t,r),!1}_validate(){const t=this._normalizedValue;let r=this._validateRequired(t);if(!r||(r=this._validateFormat(t),!r))return!1;const i=`Valid phone number${!t&&" (optional and empty)"}.`;return this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,i),!0}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6301
+ `}};exports.SbNameField._ROOT="name-field";exports.SbNameField._CONTENT="content";exports.SbNameField._LABEL="label";exports.SbNameField._MARK="mark";exports.SbNameField._DESCRIPTION="description";exports.SbNameField._INPUT="input";exports.SbNameField._ERROR="error";exports.SbNameField.TAG=`sb-${exports.SbNameField._ROOT}`;exports.SbNameField._PATTERN=/^[\p{L} .'-]*$/u;tt([a({type:String})],exports.SbNameField.prototype,"seed",2);tt([a({attribute:"child-id",type:String})],exports.SbNameField.prototype,"childId",2);tt([a({attribute:"field-id",type:String})],exports.SbNameField.prototype,"fieldId",2);tt([a({type:String})],exports.SbNameField.prototype,"name",2);tt([a({type:String})],exports.SbNameField.prototype,"content",2);tt([a({type:String})],exports.SbNameField.prototype,"label",2);tt([a({type:String})],exports.SbNameField.prototype,"placeholder",2);tt([a({type:String})],exports.SbNameField.prototype,"description",2);tt([a({type:String})],exports.SbNameField.prototype,"mark",2);tt([a({type:Boolean})],exports.SbNameField.prototype,"caret",2);tt([a({type:Boolean})],exports.SbNameField.prototype,"disabled",2);tt([a({type:Boolean})],exports.SbNameField.prototype,"required",2);tt([a({type:Number})],exports.SbNameField.prototype,"minlength",2);tt([a({type:Number})],exports.SbNameField.prototype,"maxlength",2);tt([a({type:String})],exports.SbNameField.prototype,"pattern",2);tt([a({type:String})],exports.SbNameField.prototype,"validation",2);tt([a({attribute:"required-error",type:String})],exports.SbNameField.prototype,"requiredError",2);tt([a({attribute:"minlength-error",type:String})],exports.SbNameField.prototype,"minlengthError",2);tt([a({attribute:"maxlength-error",type:String})],exports.SbNameField.prototype,"maxlengthError",2);tt([a({attribute:"format-error",type:String})],exports.SbNameField.prototype,"formatError",2);tt([x()],exports.SbNameField.prototype,"_invalid",2);tt([x()],exports.SbNameField.prototype,"_error",2);tt([x()],exports.SbNameField.prototype,"_value",2);exports.SbNameField=tt([u("sb-name-field")],exports.SbNameField);var Eg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,gt=(e,t,r,i)=>{for(var s=i>1?void 0:i?kg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Eg(t,r,s),s};exports.SbPhoneField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="phone",this.content="split",this.label="Phone",this.validation="default",this.requiredError="Phone is a required field.",this.formatError="Enter a valid phone number.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbPhoneField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbPhoneField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbPhoneField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbPhoneField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbPhoneField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbPhoneField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbPhoneField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbPhoneField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbPhoneField._ERROR}`}get _normalizedValue(){return this._value.replace(/\s/g,"")}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,p=new CustomEvent(exports.SbPhoneField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(p)}_handleValidateSuccess(t,r="Valid phone."){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_handleValidateError(t,r,i){this._invalid=!0,this._error=i,this._dispatchValidate(!1,t,r,i)}_validate(){const t=this._normalizedValue;return this.required&&!t?(this._handleValidateError("required",t,this.requiredError),!1):!t||this.validation==="simple"?(this._handleValidateSuccess(t),!0):exports.SbPhoneField._PATTERN.test(t)?(this._handleValidateSuccess(t),!0):(this._handleValidateError("format",t,this.formatError),!1)}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6302
6302
  <span
6303
6303
  id="${this.markId}"
6304
6304
  part="${exports.SbPhoneField.parts.mark}"
@@ -6358,7 +6358,7 @@ body {
6358
6358
  ${this._renderError()}
6359
6359
  ${this.content==="split"&&!this._invalid?this._renderDescription():m}
6360
6360
  </rtg-field>
6361
- `}};exports.SbPhoneField._ROOT="phone-field";exports.SbPhoneField._CONTENT="content";exports.SbPhoneField._LABEL="label";exports.SbPhoneField._MARK="mark";exports.SbPhoneField._DESCRIPTION="description";exports.SbPhoneField._INPUT="input";exports.SbPhoneField._ERROR="error";exports.SbPhoneField.TAG=`sb-${exports.SbPhoneField._ROOT}`;exports.SbPhoneField._PATTERN=/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/;mt([a({type:String})],exports.SbPhoneField.prototype,"seed",2);mt([a({attribute:"child-id",type:String})],exports.SbPhoneField.prototype,"childId",2);mt([a({attribute:"field-id",type:String})],exports.SbPhoneField.prototype,"fieldId",2);mt([a({type:String})],exports.SbPhoneField.prototype,"name",2);mt([a({type:String})],exports.SbPhoneField.prototype,"content",2);mt([a({type:String})],exports.SbPhoneField.prototype,"label",2);mt([a({type:String})],exports.SbPhoneField.prototype,"placeholder",2);mt([a({type:String})],exports.SbPhoneField.prototype,"description",2);mt([a({type:String})],exports.SbPhoneField.prototype,"mark",2);mt([a({type:Boolean})],exports.SbPhoneField.prototype,"caret",2);mt([a({type:Boolean})],exports.SbPhoneField.prototype,"disabled",2);mt([a({type:Boolean})],exports.SbPhoneField.prototype,"required",2);mt([a({attribute:"required-error",type:String})],exports.SbPhoneField.prototype,"requiredError",2);mt([a({attribute:"format-error",type:String})],exports.SbPhoneField.prototype,"formatError",2);mt([x()],exports.SbPhoneField.prototype,"_invalid",2);mt([x()],exports.SbPhoneField.prototype,"_error",2);mt([x()],exports.SbPhoneField.prototype,"_value",2);exports.SbPhoneField=mt([p("sb-phone-field")],exports.SbPhoneField);var Rg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,et=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ig(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Rg(t,r,s),s};exports.SbUsernameField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="username",this.content="split",this.label="Username",this.requiredError="Username is a required field.",this.formatError="Enter a valid username.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbUsernameField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbUsernameField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbUsernameField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbUsernameField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbUsernameField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbUsernameField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbUsernameField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbUsernameField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbUsernameField._ERROR}`}get _normalizedValue(){return this._value.trim().toLowerCase()}get _lengths(){const t={minlength:this.minlength&&this.minlength>0?this.minlength:void 0,maxlength:this.maxlength&&this.maxlength>0?this.maxlength:void 0};return t.minlength&&t.maxlength&&t.maxlength<t.minlength&&(t.maxlength=void 0),t}get _pattern(){return this.pattern?new RegExp(this.pattern):exports.SbUsernameField._PATTERN}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,u=new CustomEvent(exports.SbUsernameField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(u)}_validateRequired(t){if(!this.required||t)return!0;const r=this.requiredError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"required",t,r),!1}_validateMinlength(t){const{minlength:r}=this._lengths;if(!r||t.length>=r)return!0;const i=this.minlengthError??`Username must be at least ${r} characters.`;return this._invalid=!0,this._error=i,this._dispatchValidate(!1,"minlength",t,i),!1}_validateMaxlength(t){const{maxlength:r}=this._lengths;if(!r||t.length<=r)return!0;const i=this.maxlengthError??`Username must be at most ${r} characters.`;return this._invalid=!0,this._error=i,this._dispatchValidate(!1,"maxlength",t,i),!1}_validateFormat(t){if(this._pattern.test(t))return!0;const r=this.formatError;return this._invalid=!0,this._error=r,this._dispatchValidate(!1,"format",t,r),!1}_doValidateSuccess(t,r){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_validate(){const t=this._normalizedValue;let r=this._validateRequired(t);return r?t?(r=this._validateMinlength(t),!r||(r=this._validateMaxlength(t),!r)||(r=this._validateFormat(t),!r)?!1:(this._doValidateSuccess(t,"Valid username."),!0)):(this._doValidateSuccess(t,"Valid username (optional and empty)."),!0):!1}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6361
+ `}};exports.SbPhoneField._ROOT="phone-field";exports.SbPhoneField._CONTENT="content";exports.SbPhoneField._LABEL="label";exports.SbPhoneField._MARK="mark";exports.SbPhoneField._DESCRIPTION="description";exports.SbPhoneField._INPUT="input";exports.SbPhoneField._ERROR="error";exports.SbPhoneField.TAG=`sb-${exports.SbPhoneField._ROOT}`;exports.SbPhoneField._PATTERN=/^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/;gt([a({type:String})],exports.SbPhoneField.prototype,"seed",2);gt([a({attribute:"child-id",type:String})],exports.SbPhoneField.prototype,"childId",2);gt([a({attribute:"field-id",type:String})],exports.SbPhoneField.prototype,"fieldId",2);gt([a({type:String})],exports.SbPhoneField.prototype,"name",2);gt([a({type:String})],exports.SbPhoneField.prototype,"content",2);gt([a({type:String})],exports.SbPhoneField.prototype,"label",2);gt([a({type:String})],exports.SbPhoneField.prototype,"placeholder",2);gt([a({type:String})],exports.SbPhoneField.prototype,"description",2);gt([a({type:String})],exports.SbPhoneField.prototype,"mark",2);gt([a({type:Boolean})],exports.SbPhoneField.prototype,"caret",2);gt([a({type:Boolean})],exports.SbPhoneField.prototype,"disabled",2);gt([a({type:Boolean})],exports.SbPhoneField.prototype,"required",2);gt([a({type:String})],exports.SbPhoneField.prototype,"validation",2);gt([a({attribute:"required-error",type:String})],exports.SbPhoneField.prototype,"requiredError",2);gt([a({attribute:"format-error",type:String})],exports.SbPhoneField.prototype,"formatError",2);gt([x()],exports.SbPhoneField.prototype,"_invalid",2);gt([x()],exports.SbPhoneField.prototype,"_error",2);gt([x()],exports.SbPhoneField.prototype,"_value",2);exports.SbPhoneField=gt([u("sb-phone-field")],exports.SbPhoneField);var Rg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,et=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ig(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Rg(t,r,s),s};exports.SbUsernameField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.name="username",this.content="split",this.label="Username",this.validation="default",this.requiredError="Username is a required field.",this.formatError="Enter a valid username.",this._invalid=!1,this._error="",this._value="",this._form=null,this._handleInput=t=>{const r=t.target;r.matches(`[part="${exports.SbUsernameField.parts.input}"]>input`)&&(this._value=r.value)},this._handleFormSubmit=t=>{this._validate()||t.preventDefault()},this._handleFormReset=()=>{const t=this.querySelector(`rtg-input[part="${exports.SbUsernameField.parts.input}"]`);t&&(t.value=""),this._value="",this._invalid=!1,this._error=""}}static get parts(){const t=this._ROOT,r=`${t}-${this._CONTENT}`,i=`${t}-${this._LABEL}`,s=`${t}-${this._MARK}`,o=`${t}-${this._DESCRIPTION}`,n=`${t}-${this._INPUT}`,h=`${t}-${this._ERROR}`;return{root:t,content:r,label:i,mark:s,description:o,input:n,error:h}}static get validateEventName(){return`${this.TAG}:validate`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbUsernameField.parts.root}-${this.seed}`}get contentId(){return`${this.rootId}-${exports.SbUsernameField._CONTENT}`}get labelId(){return`${this.rootId}-${exports.SbUsernameField._LABEL}`}get descriptionId(){return`${this.rootId}-${exports.SbUsernameField._DESCRIPTION}`}get markId(){return`${this.rootId}-${exports.SbUsernameField._MARK}`}get inputId(){return this.fieldId??`${this.rootId}-${exports.SbUsernameField._INPUT}`}get errorId(){return`${this.rootId}-${exports.SbUsernameField._ERROR}`}get _normalizedValue(){return this._value.trim().toLowerCase()}get _lengths(){const t={minlength:this.minlength&&this.minlength>0?this.minlength:void 0,maxlength:this.maxlength&&this.maxlength>0?this.maxlength:void 0};return t.minlength&&t.maxlength&&t.maxlength<t.minlength&&(t.maxlength=void 0),t}get _pattern(){return this.pattern?new RegExp(this.pattern):exports.SbUsernameField._PATTERN}connectedCallback(){var t,r;super.connectedCallback(),this.addEventListener("input",this._handleInput),this._form=this.closest("form"),this._form&&(this._form.noValidate=!0),(t=this._form)==null||t.addEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.addEventListener("reset",this._handleFormReset)}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("input",this._handleInput),(t=this._form)==null||t.removeEventListener("submit",this._handleFormSubmit),(r=this._form)==null||r.removeEventListener("reset",this._handleFormReset),this._form=null}validate(){return this._validate()}_dispatchValidate(t,r,i,s){const o=this.inputId,n=this.rootId,h=this.name,p=new CustomEvent(exports.SbUsernameField.validateEventName,{detail:{id:o,parentId:n,name:h,value:i,valid:t,type:r,message:s},bubbles:!0,composed:!0});this.dispatchEvent(p)}_handleValidateSuccess(t,r="Valid username."){this._invalid=!1,this._error="",this._dispatchValidate(!0,"success",t,r)}_handleValidateError(t,r,i){this._invalid=!0,this._error=i,this._dispatchValidate(!1,t,r,i)}_validate(){const t=this._normalizedValue;if(this.required&&!t)return this._handleValidateError("required",t,this.requiredError),!1;if(!t||this.validation==="simple")return this._handleValidateSuccess(t),!0;const{minlength:r,maxlength:i}=this._lengths;return r&&t.length<r?(this._handleValidateError("minlength",t,this.minlengthError??`Username must be at least ${r} characters.`),!1):i&&t.length>i?(this._handleValidateError("maxlength",t,this.maxlengthError??`Username must be at most ${i} characters.`),!1):this._pattern.test(t)?(this._handleValidateSuccess(t),!0):(this._handleValidateError("format",t,this.formatError),!1)}_renderMark(){return!this.mark&&(!this.caret||!this.required)?m:d`
6362
6362
  <span
6363
6363
  id="${this.markId}"
6364
6364
  part="${exports.SbUsernameField.parts.mark}"
@@ -6420,7 +6420,7 @@ body {
6420
6420
  ${this._renderError()}
6421
6421
  ${this.content==="split"&&!this._invalid?this._renderDescription():m}
6422
6422
  </rtg-field>
6423
- `}};exports.SbUsernameField._ROOT="username-field";exports.SbUsernameField._CONTENT="content";exports.SbUsernameField._LABEL="label";exports.SbUsernameField._MARK="mark";exports.SbUsernameField._DESCRIPTION="description";exports.SbUsernameField._INPUT="input";exports.SbUsernameField._ERROR="error";exports.SbUsernameField.TAG=`sb-${exports.SbUsernameField._ROOT}`;exports.SbUsernameField._PATTERN=/^[a-z0-9_]*$/;et([a({type:String})],exports.SbUsernameField.prototype,"seed",2);et([a({attribute:"child-id",type:String})],exports.SbUsernameField.prototype,"childId",2);et([a({attribute:"field-id",type:String})],exports.SbUsernameField.prototype,"fieldId",2);et([a({type:String})],exports.SbUsernameField.prototype,"name",2);et([a({type:String})],exports.SbUsernameField.prototype,"content",2);et([a({type:String})],exports.SbUsernameField.prototype,"label",2);et([a({type:String})],exports.SbUsernameField.prototype,"placeholder",2);et([a({type:String})],exports.SbUsernameField.prototype,"description",2);et([a({type:String})],exports.SbUsernameField.prototype,"mark",2);et([a({type:Boolean})],exports.SbUsernameField.prototype,"caret",2);et([a({type:Boolean})],exports.SbUsernameField.prototype,"disabled",2);et([a({type:Boolean})],exports.SbUsernameField.prototype,"required",2);et([a({type:Number})],exports.SbUsernameField.prototype,"minlength",2);et([a({type:Number})],exports.SbUsernameField.prototype,"maxlength",2);et([a({type:String})],exports.SbUsernameField.prototype,"pattern",2);et([a({attribute:"required-error",type:String})],exports.SbUsernameField.prototype,"requiredError",2);et([a({attribute:"minlength-error",type:String})],exports.SbUsernameField.prototype,"minlengthError",2);et([a({attribute:"maxlength-error",type:String})],exports.SbUsernameField.prototype,"maxlengthError",2);et([a({attribute:"format-error",type:String})],exports.SbUsernameField.prototype,"formatError",2);et([x()],exports.SbUsernameField.prototype,"_invalid",2);et([x()],exports.SbUsernameField.prototype,"_error",2);et([x()],exports.SbUsernameField.prototype,"_value",2);exports.SbUsernameField=et([p("sb-username-field")],exports.SbUsernameField);var Og=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,ee=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ag(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Og(t,r,s),s};exports.SbFormSubmit=class extends v{constructor(){super(...arguments),this.seed=_t(),this.variant="default",this.size="default",this.label="Submit",this.spinnerAlign="start",this._loading=!1,this._handleClick=()=>{this.disabled||this.isLoading||this.dispatchEvent(new CustomEvent(exports.SbFormSubmit.clickEventName,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}))}}static get parts(){const t=this._ROOT,r=`${t}-${this._SPINNER}`;return{root:t,spinner:r}}static get clickEventName(){return`${this.TAG}:click`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbFormSubmit.parts.root}-${this.seed}`}get spinnerId(){return`${this.rootId}-${exports.SbFormSubmit._SPINNER}`}get isLoading(){return this._loading||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderSpinner(){return this.isLoading?d`
6423
+ `}};exports.SbUsernameField._ROOT="username-field";exports.SbUsernameField._CONTENT="content";exports.SbUsernameField._LABEL="label";exports.SbUsernameField._MARK="mark";exports.SbUsernameField._DESCRIPTION="description";exports.SbUsernameField._INPUT="input";exports.SbUsernameField._ERROR="error";exports.SbUsernameField.TAG=`sb-${exports.SbUsernameField._ROOT}`;exports.SbUsernameField._PATTERN=/^[a-z0-9_]*$/;et([a({type:String})],exports.SbUsernameField.prototype,"seed",2);et([a({attribute:"child-id",type:String})],exports.SbUsernameField.prototype,"childId",2);et([a({attribute:"field-id",type:String})],exports.SbUsernameField.prototype,"fieldId",2);et([a({type:String})],exports.SbUsernameField.prototype,"name",2);et([a({type:String})],exports.SbUsernameField.prototype,"content",2);et([a({type:String})],exports.SbUsernameField.prototype,"label",2);et([a({type:String})],exports.SbUsernameField.prototype,"placeholder",2);et([a({type:String})],exports.SbUsernameField.prototype,"description",2);et([a({type:String})],exports.SbUsernameField.prototype,"mark",2);et([a({type:Boolean})],exports.SbUsernameField.prototype,"caret",2);et([a({type:Boolean})],exports.SbUsernameField.prototype,"disabled",2);et([a({type:Boolean})],exports.SbUsernameField.prototype,"required",2);et([a({type:Number})],exports.SbUsernameField.prototype,"minlength",2);et([a({type:Number})],exports.SbUsernameField.prototype,"maxlength",2);et([a({type:String})],exports.SbUsernameField.prototype,"pattern",2);et([a({type:String})],exports.SbUsernameField.prototype,"validation",2);et([a({attribute:"required-error",type:String})],exports.SbUsernameField.prototype,"requiredError",2);et([a({attribute:"minlength-error",type:String})],exports.SbUsernameField.prototype,"minlengthError",2);et([a({attribute:"maxlength-error",type:String})],exports.SbUsernameField.prototype,"maxlengthError",2);et([a({attribute:"format-error",type:String})],exports.SbUsernameField.prototype,"formatError",2);et([x()],exports.SbUsernameField.prototype,"_invalid",2);et([x()],exports.SbUsernameField.prototype,"_error",2);et([x()],exports.SbUsernameField.prototype,"_value",2);exports.SbUsernameField=et([u("sb-username-field")],exports.SbUsernameField);var Og=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,ee=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ag(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Og(t,r,s),s};exports.SbFormSubmit=class extends v{constructor(){super(...arguments),this.seed=_t(),this.variant="default",this.size="default",this.label="Submit",this.spinnerAlign="start",this._loading=!1,this._handleClick=()=>{this.disabled||this.isLoading||this.dispatchEvent(new CustomEvent(exports.SbFormSubmit.clickEventName,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}))}}static get parts(){const t=this._ROOT,r=`${t}-${this._SPINNER}`;return{root:t,spinner:r}}static get clickEventName(){return`${this.TAG}:click`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbFormSubmit.parts.root}-${this.seed}`}get spinnerId(){return`${this.rootId}-${exports.SbFormSubmit._SPINNER}`}get isLoading(){return this._loading||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderSpinner(){return this.isLoading?d`
6424
6424
  <rtg-spinner
6425
6425
  id="${this.spinnerId}"
6426
6426
  part="${exports.SbFormSubmit.parts.spinner}"
@@ -6441,14 +6441,14 @@ body {
6441
6441
  ${this.label}
6442
6442
  ${this.spinnerAlign==="end"?this._renderSpinner():m}
6443
6443
  </rtg-button>
6444
- `}};exports.SbFormSubmit._ROOT="form-submit";exports.SbFormSubmit._SPINNER="spinner";exports.SbFormSubmit.TAG=`sb-${exports.SbFormSubmit._ROOT}`;ee([a({type:String})],exports.SbFormSubmit.prototype,"seed",2);ee([a({attribute:"child-id",type:String})],exports.SbFormSubmit.prototype,"childId",2);ee([a({type:String})],exports.SbFormSubmit.prototype,"variant",2);ee([a({type:String})],exports.SbFormSubmit.prototype,"size",2);ee([a({type:String})],exports.SbFormSubmit.prototype,"label",2);ee([a({attribute:"spinner-align",type:String})],exports.SbFormSubmit.prototype,"spinnerAlign",2);ee([a({type:Boolean})],exports.SbFormSubmit.prototype,"disabled",2);ee([a({type:Boolean})],exports.SbFormSubmit.prototype,"loading",2);ee([a({type:String})],exports.SbFormSubmit.prototype,"event",2);ee([x()],exports.SbFormSubmit.prototype,"_loading",2);exports.SbFormSubmit=ee([p("sb-form-submit")],exports.SbFormSubmit);const cc=[exports.SbEmailField,exports.SbPhoneField,exports.SbUsernameField,exports.SbIdentifierField,exports.SbNameField,exports.SbPasswordField,exports.SbConfirmField],Pg=cc.map(e=>e.TAG).join(", "),ud=cc.map(e=>e.validateEventName);var Fg=Object.defineProperty,Tg=Object.getOwnPropertyDescriptor,ki=(e,t,r,i)=>{for(var s=i>1?void 0:i?Tg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Fg(t,r,s),s};exports.SbForm=class extends v{constructor(){super(...arguments),this.seed=_t(),this._loading=!1,this._handleSubmitClick=t=>{var r;this._pendingEvent=(r=t.detail)==null?void 0:r.event},this._handleSubmit=async t=>{if(t.preventDefault(),this._loading)return;const r=this._fields,i={},s=g=>{const y=g.detail;(y==null?void 0:y.name)!==void 0&&y.value!==void 0&&(i[y.name]=y.value)};ud.forEach(g=>this.addEventListener(g,s));const o=r.map(g=>g.validate());if(ud.forEach(g=>this.removeEventListener(g,s)),!o.every(Boolean))return;const h=this._pendingEvent;if(this.onSubmit){this.onSubmit(i,h);return}if(!h)return;const u=r.map(g=>!!g.disabled);this._setLoading(!0,r,u);try{await ht.processLoginflowEvent({event:h,...Object.keys(i).length?{data:i}:{}}),this._dispatch(exports.SbForm.SUCCESS_EVENT,{id:this.rootId,data:i,event:h})}catch(g){const y=g instanceof Error?g.message:String(g);this._dispatch(exports.SbForm.ERROR_EVENT,{id:this.rootId,data:i,event:h,message:y})}finally{this._setLoading(!1,r,u),this._pendingEvent=void 0}},this._handleReset=t=>{this._pendingEvent=void 0,this.onReset&&this.onReset(t),this._dispatch(exports.SbForm.RESET_EVENT,{id:this.rootId})}}static get parts(){return{root:this._ROOT}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbForm.parts.root}-${this.seed}`}get _form(){return this.querySelector(`form[part="${exports.SbForm.parts.root}"]`)}get _fields(){const t=this._form;return t?Array.from(t.querySelectorAll(Pg)):[]}get _submit(){const t=this._form;return t?t.querySelector(exports.SbFormSubmit.TAG):null}connectedCallback(){super.connectedCallback(),this.addEventListener(exports.SbFormSubmit.clickEventName,this._handleSubmitClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(exports.SbFormSubmit.clickEventName,this._handleSubmitClick)}firstUpdated(){const t=this._form;if(!t)return;Array.from(this.childNodes).filter(i=>i!==t).forEach(i=>t.appendChild(i))}_dispatch(t,r={}){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}_setLoading(t,r,i){r.forEach((o,n)=>{o.disabled=t?!0:i[n]});const s=this._submit;s&&(s.loading=t),this._loading=t}render(){return d`
6444
+ `}};exports.SbFormSubmit._ROOT="form-submit";exports.SbFormSubmit._SPINNER="spinner";exports.SbFormSubmit.TAG=`sb-${exports.SbFormSubmit._ROOT}`;ee([a({type:String})],exports.SbFormSubmit.prototype,"seed",2);ee([a({attribute:"child-id",type:String})],exports.SbFormSubmit.prototype,"childId",2);ee([a({type:String})],exports.SbFormSubmit.prototype,"variant",2);ee([a({type:String})],exports.SbFormSubmit.prototype,"size",2);ee([a({type:String})],exports.SbFormSubmit.prototype,"label",2);ee([a({attribute:"spinner-align",type:String})],exports.SbFormSubmit.prototype,"spinnerAlign",2);ee([a({type:Boolean})],exports.SbFormSubmit.prototype,"disabled",2);ee([a({type:Boolean})],exports.SbFormSubmit.prototype,"loading",2);ee([a({type:String})],exports.SbFormSubmit.prototype,"event",2);ee([x()],exports.SbFormSubmit.prototype,"_loading",2);exports.SbFormSubmit=ee([u("sb-form-submit")],exports.SbFormSubmit);const cc=[exports.SbEmailField,exports.SbPhoneField,exports.SbUsernameField,exports.SbIdentifierField,exports.SbNameField,exports.SbPasswordField,exports.SbConfirmField],Pg=cc.map(e=>e.TAG).join(", "),pd=cc.map(e=>e.validateEventName);var Fg=Object.defineProperty,Tg=Object.getOwnPropertyDescriptor,Ii=(e,t,r,i)=>{for(var s=i>1?void 0:i?Tg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Fg(t,r,s),s};exports.SbForm=class extends v{constructor(){super(...arguments),this.seed=_t(),this._loading=!1,this._handleSubmitClick=t=>{var r;this._pendingEvent=(r=t.detail)==null?void 0:r.event},this._handleSubmit=async t=>{if(t.preventDefault(),this._loading)return;const r=this._fields,i={},s=g=>{const y=g.detail;(y==null?void 0:y.name)!==void 0&&y.value!==void 0&&(i[y.name]=y.value)};pd.forEach(g=>this.addEventListener(g,s));const o=r.map(g=>g.validate());if(pd.forEach(g=>this.removeEventListener(g,s)),!o.every(Boolean))return;const h=this._pendingEvent;if(this.onSubmit){this.onSubmit(i,h);return}if(!h)return;const p=r.map(g=>!!g.disabled);this._setLoading(!0,r,p);try{await dt.processLoginflowEvent({event:h,...Object.keys(i).length?{data:i}:{}}),this._dispatch(exports.SbForm.SUCCESS_EVENT,{id:this.rootId,data:i,event:h})}catch(g){const y=g instanceof Error?g.message:String(g);this._dispatch(exports.SbForm.ERROR_EVENT,{id:this.rootId,data:i,event:h,message:y})}finally{this._setLoading(!1,r,p),this._pendingEvent=void 0}},this._handleReset=t=>{this._pendingEvent=void 0,this.onReset&&this.onReset(t),this._dispatch(exports.SbForm.RESET_EVENT,{id:this.rootId})}}static get parts(){return{root:this._ROOT}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbForm.parts.root}-${this.seed}`}get _form(){return this.querySelector(`form[part="${exports.SbForm.parts.root}"]`)}get _fields(){const t=this._form;return t?Array.from(t.querySelectorAll(Pg)):[]}get _submit(){const t=this._form;return t?t.querySelector(exports.SbFormSubmit.TAG):null}connectedCallback(){super.connectedCallback(),this.addEventListener(exports.SbFormSubmit.clickEventName,this._handleSubmitClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(exports.SbFormSubmit.clickEventName,this._handleSubmitClick)}firstUpdated(){const t=this._form;if(!t)return;Array.from(this.childNodes).filter(i=>i!==t).forEach(i=>t.appendChild(i))}_dispatch(t,r={}){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}_setLoading(t,r,i){r.forEach((o,n)=>{o.disabled=t?!0:i[n]});const s=this._submit;s&&(s.loading=t),this._loading=t}render(){return d`
6445
6445
  <form
6446
6446
  id="${this.rootId}"
6447
6447
  part="${exports.SbForm.parts.root}"
6448
6448
  @submit=${this._handleSubmit}
6449
6449
  @reset=${this._handleReset}
6450
6450
  ></form>
6451
- `}};exports.SbForm._ROOT="form";exports.SbForm.TAG=`sb-${exports.SbForm._ROOT}`;exports.SbForm.SUCCESS_EVENT=`${exports.SbForm.TAG}:success`;exports.SbForm.ERROR_EVENT=`${exports.SbForm.TAG}:error`;exports.SbForm.RESET_EVENT=`${exports.SbForm.TAG}:reset`;ki([a({type:String})],exports.SbForm.prototype,"seed",2);ki([a({attribute:"child-id",type:String})],exports.SbForm.prototype,"childId",2);ki([a({attribute:!1})],exports.SbForm.prototype,"onSubmit",2);ki([a({attribute:!1})],exports.SbForm.prototype,"onReset",2);exports.SbForm=ki([p("sb-form")],exports.SbForm);var Lg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,Os=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ng(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Lg(t,r,s),s};exports.SbFormSeparator=class extends v{constructor(){super(...arguments),this.seed=_t()}static get parts(){return{root:this._ROOT}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbFormSeparator.parts.root}-${this.seed}`}render(){return d`
6451
+ `}};exports.SbForm._ROOT="form";exports.SbForm.TAG=`sb-${exports.SbForm._ROOT}`;exports.SbForm.SUCCESS_EVENT=`${exports.SbForm.TAG}:success`;exports.SbForm.ERROR_EVENT=`${exports.SbForm.TAG}:error`;exports.SbForm.RESET_EVENT=`${exports.SbForm.TAG}:reset`;Ii([a({type:String})],exports.SbForm.prototype,"seed",2);Ii([a({attribute:"child-id",type:String})],exports.SbForm.prototype,"childId",2);Ii([a({attribute:!1})],exports.SbForm.prototype,"onSubmit",2);Ii([a({attribute:!1})],exports.SbForm.prototype,"onReset",2);exports.SbForm=Ii([u("sb-form")],exports.SbForm);var Lg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,As=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ng(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Lg(t,r,s),s};exports.SbFormSeparator=class extends v{constructor(){super(...arguments),this.seed=_t()}static get parts(){return{root:this._ROOT}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbFormSeparator.parts.root}-${this.seed}`}render(){return d`
6452
6452
  <rtg-field-separator
6453
6453
  id="${this.rootId}"
6454
6454
  part="${exports.SbFormSeparator.parts.root}"
@@ -6456,7 +6456,7 @@ body {
6456
6456
  >
6457
6457
  ${this.content??m}
6458
6458
  </rtg-field-separator>
6459
- `}};exports.SbFormSeparator._ROOT="form-separator";Os([a({type:String})],exports.SbFormSeparator.prototype,"seed",2);Os([a({attribute:"child-id",type:String})],exports.SbFormSeparator.prototype,"childId",2);Os([a({type:String})],exports.SbFormSeparator.prototype,"content",2);exports.SbFormSeparator=Os([p("sb-form-separator")],exports.SbFormSeparator);var zg=Object.defineProperty,jg=Object.getOwnPropertyDescriptor,Ht=(e,t,r,i)=>{for(var s=i>1?void 0:i?jg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&zg(t,r,s),s};exports.SbFormSwitch=class extends v{constructor(){super(...arguments),this.seed=_t(),this.type="default",this.variant="secondary",this.size="default",this.label="Switch",this._loading=!1,this._handleClick=async()=>{if(!(this.disabled||this.isLoading)){this._loading=!0,this.dispatchEvent(new CustomEvent(exports.SbFormSwitch.CLICK_EVENT,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}));try{this.event&&await ht.processLoginflowEvent({event:this.event})}finally{this._loading=!1}}}}static get parts(){const t=this._ROOT,r=`${t}-${this._WRAPPER}`,i=`${t}-${this._PROMPT}`,s=`${t}-${this._SPINNER}`;return{root:t,wrapper:r,prompt:i,spinner:s}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbFormSwitch.parts.root}-${this.seed}`}get wrapperId(){return`${this.rootId}-${exports.SbFormSwitch._WRAPPER}`}get promptId(){return`${this.rootId}-${exports.SbFormSwitch._PROMPT}`}get spinnerId(){return`${this.rootId}-${exports.SbFormSwitch._SPINNER}`}get isLoading(){return this._loading||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderPrompt(){return this.type==="button"||!this.prompt?m:d`
6459
+ `}};exports.SbFormSeparator._ROOT="form-separator";As([a({type:String})],exports.SbFormSeparator.prototype,"seed",2);As([a({attribute:"child-id",type:String})],exports.SbFormSeparator.prototype,"childId",2);As([a({type:String})],exports.SbFormSeparator.prototype,"content",2);exports.SbFormSeparator=As([u("sb-form-separator")],exports.SbFormSeparator);var zg=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,Ht=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ug(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&zg(t,r,s),s};exports.SbFormSwitch=class extends v{constructor(){super(...arguments),this.seed=_t(),this.type="default",this.variant="secondary",this.size="default",this.label="Switch",this._loading=!1,this._handleClick=async()=>{if(!(this.disabled||this.isLoading)){this._loading=!0,this.dispatchEvent(new CustomEvent(exports.SbFormSwitch.CLICK_EVENT,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}));try{this.event&&await dt.processLoginflowEvent({event:this.event})}finally{this._loading=!1}}}}static get parts(){const t=this._ROOT,r=`${t}-${this._WRAPPER}`,i=`${t}-${this._PROMPT}`,s=`${t}-${this._SPINNER}`;return{root:t,wrapper:r,prompt:i,spinner:s}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbFormSwitch.parts.root}-${this.seed}`}get wrapperId(){return`${this.rootId}-${exports.SbFormSwitch._WRAPPER}`}get promptId(){return`${this.rootId}-${exports.SbFormSwitch._PROMPT}`}get spinnerId(){return`${this.rootId}-${exports.SbFormSwitch._SPINNER}`}get isLoading(){return this._loading||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderPrompt(){return this.type==="button"||!this.prompt?m:d`
6460
6460
  <p id="${this.promptId}" part="${exports.SbFormSwitch.parts.prompt}">
6461
6461
  ${this.prompt}
6462
6462
  </p>
@@ -6482,7 +6482,7 @@ body {
6482
6482
  ${this.label} ${this._renderSpinner()}
6483
6483
  </rtg-button>
6484
6484
  </div>
6485
- `}};exports.SbFormSwitch._ROOT="form-switch";exports.SbFormSwitch._WRAPPER="wrapper";exports.SbFormSwitch._PROMPT="prompt";exports.SbFormSwitch._SPINNER="spinner";exports.SbFormSwitch.TAG=`sb-${exports.SbFormSwitch._ROOT}`;exports.SbFormSwitch.CLICK_EVENT=`${exports.SbFormSwitch.TAG}:click`;Ht([a({type:String})],exports.SbFormSwitch.prototype,"seed",2);Ht([a({attribute:"child-id",type:String})],exports.SbFormSwitch.prototype,"childId",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"type",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"variant",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"size",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"label",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"prompt",2);Ht([a({type:Boolean})],exports.SbFormSwitch.prototype,"disabled",2);Ht([a({type:Boolean})],exports.SbFormSwitch.prototype,"loading",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"event",2);Ht([x()],exports.SbFormSwitch.prototype,"_loading",2);exports.SbFormSwitch=Ht([p("sb-form-switch")],exports.SbFormSwitch);var Ug=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,re=(e,t,r,i)=>{for(var s=i>1?void 0:i?Dg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Ug(t,r,s),s};exports.SbPasskeyButton=class extends v{constructor(){super(...arguments),this.seed=_t(),this.variant="secondary",this.size="default",this.label="Use Passkey",this.spinnerAlign="start",this._loading=!1,this._handleClick=async()=>{if(!(this.disabled||this.isLoading)){this._loading=!0,this.dispatchEvent(new CustomEvent(exports.SbPasskeyButton.CLICK_EVENT,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}));try{this.event&&await ht.processLoginflowEvent({event:this.event})}finally{this._loading=!1}}}}static get parts(){const t=this._ROOT,r=`${t}-${this._SPINNER}`;return{root:t,spinner:r}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbPasskeyButton.parts.root}-${this.seed}`}get spinnerId(){return`${this.rootId}-${exports.SbPasskeyButton._SPINNER}`}get isLoading(){return this._loading||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderSpinner(){return this.isLoading?d`
6485
+ `}};exports.SbFormSwitch._ROOT="form-switch";exports.SbFormSwitch._WRAPPER="wrapper";exports.SbFormSwitch._PROMPT="prompt";exports.SbFormSwitch._SPINNER="spinner";exports.SbFormSwitch.TAG=`sb-${exports.SbFormSwitch._ROOT}`;exports.SbFormSwitch.CLICK_EVENT=`${exports.SbFormSwitch.TAG}:click`;Ht([a({type:String})],exports.SbFormSwitch.prototype,"seed",2);Ht([a({attribute:"child-id",type:String})],exports.SbFormSwitch.prototype,"childId",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"type",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"variant",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"size",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"label",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"prompt",2);Ht([a({type:Boolean})],exports.SbFormSwitch.prototype,"disabled",2);Ht([a({type:Boolean})],exports.SbFormSwitch.prototype,"loading",2);Ht([a({type:String})],exports.SbFormSwitch.prototype,"event",2);Ht([x()],exports.SbFormSwitch.prototype,"_loading",2);exports.SbFormSwitch=Ht([u("sb-form-switch")],exports.SbFormSwitch);var jg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,re=(e,t,r,i)=>{for(var s=i>1?void 0:i?Dg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&jg(t,r,s),s};exports.SbPasskeyButton=class extends v{constructor(){super(...arguments),this.seed=_t(),this.variant="secondary",this.size="default",this.label="Use Passkey",this.spinnerAlign="start",this._loading=!1,this._handleClick=async()=>{if(!(this.disabled||this.isLoading)){this._loading=!0,this.dispatchEvent(new CustomEvent(exports.SbPasskeyButton.CLICK_EVENT,{detail:{id:this.rootId,event:this.event},bubbles:!0,composed:!0}));try{this.event&&await dt.processLoginflowEvent({event:this.event})}finally{this._loading=!1}}}}static get parts(){const t=this._ROOT,r=`${t}-${this._SPINNER}`;return{root:t,spinner:r}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbPasskeyButton.parts.root}-${this.seed}`}get spinnerId(){return`${this.rootId}-${exports.SbPasskeyButton._SPINNER}`}get isLoading(){return this._loading||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_renderSpinner(){return this.isLoading?d`
6486
6486
  <rtg-spinner
6487
6487
  id="${this.spinnerId}"
6488
6488
  part="${exports.SbPasskeyButton.parts.spinner}"
@@ -6502,7 +6502,7 @@ body {
6502
6502
  ${this.label}
6503
6503
  ${this.spinnerAlign==="end"?this._renderSpinner():m}
6504
6504
  </rtg-button>
6505
- `}};exports.SbPasskeyButton._ROOT="passkey-button";exports.SbPasskeyButton._SPINNER="spinner";exports.SbPasskeyButton.TAG=`sb-${exports.SbPasskeyButton._ROOT}`;exports.SbPasskeyButton.CLICK_EVENT=`${exports.SbPasskeyButton.TAG}:click`;re([a({type:String})],exports.SbPasskeyButton.prototype,"seed",2);re([a({attribute:"child-id",type:String})],exports.SbPasskeyButton.prototype,"childId",2);re([a({type:String})],exports.SbPasskeyButton.prototype,"variant",2);re([a({type:String})],exports.SbPasskeyButton.prototype,"size",2);re([a({type:String})],exports.SbPasskeyButton.prototype,"label",2);re([a({attribute:"spinner-align",type:String})],exports.SbPasskeyButton.prototype,"spinnerAlign",2);re([a({type:Boolean})],exports.SbPasskeyButton.prototype,"disabled",2);re([a({type:Boolean})],exports.SbPasskeyButton.prototype,"loading",2);re([a({type:String})],exports.SbPasskeyButton.prototype,"event",2);re([x()],exports.SbPasskeyButton.prototype,"_loading",2);exports.SbPasskeyButton=re([p("sb-passkey-button")],exports.SbPasskeyButton);const Bg={apple:"Apple",discord:"Discord",facebook:"Facebook",github:"GitHub",google:"Google",linkedin:"LinkedIn",meta:"Meta",microsoft:"Microsoft",x:"X"},Mg={apple:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",discord:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",facebook:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z",github:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",google:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z",linkedin:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",meta:"M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z",microsoft:"M11.4 24H0V12.6h11.4V24zM24 24H12.6V12.6H24V24zM11.4 11.4H0V0h11.4v11.4zM24 11.4H12.6V0H24v11.4z",x:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.763l7.726-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z"};var qg=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,At=(e,t,r,i)=>{for(var s=i>1?void 0:i?Vg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&qg(t,r,s),s};exports.SbProviderButton=class extends v{constructor(){super(...arguments),this.seed=_t(),this.content="icon-label",this.variant="outline",this.size="default",this.prompt="Use",this.iconAlign="start",this._loading=!1,this._handleClick=()=>{this.disabled||this.isLoading||(this._loading=!0,this._dispatchClick(),this._emitClickEvent())}}static get parts(){const t=this._ROOT,r=`${t}-${this._ICON}`;return{root:t,icon:r}}static get clickEventName(){return`sb-${this._ROOT}:click`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbProviderButton.parts.root}-${this.provider}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.SbProviderButton._ICON}`}get iconCn(){return this.content==="icon"?"":`rtg-icon-align-${this.iconAlign}`}get isLoading(){return this._loading||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_dispatchClick(){const t=new CustomEvent(exports.SbProviderButton.clickEventName,{detail:{id:this.rootId,provider:this.provider,event:this.event},bubbles:!0,composed:!0});this.dispatchEvent(t)}async _emitClickEvent(){if(this.event){this._loading||(this._loading=!0);try{await ht.processLoginflowEvent({event:this.event})}finally{this._loading=!1}}}_renderLogo(){return d`
6505
+ `}};exports.SbPasskeyButton._ROOT="passkey-button";exports.SbPasskeyButton._SPINNER="spinner";exports.SbPasskeyButton.TAG=`sb-${exports.SbPasskeyButton._ROOT}`;exports.SbPasskeyButton.CLICK_EVENT=`${exports.SbPasskeyButton.TAG}:click`;re([a({type:String})],exports.SbPasskeyButton.prototype,"seed",2);re([a({attribute:"child-id",type:String})],exports.SbPasskeyButton.prototype,"childId",2);re([a({type:String})],exports.SbPasskeyButton.prototype,"variant",2);re([a({type:String})],exports.SbPasskeyButton.prototype,"size",2);re([a({type:String})],exports.SbPasskeyButton.prototype,"label",2);re([a({attribute:"spinner-align",type:String})],exports.SbPasskeyButton.prototype,"spinnerAlign",2);re([a({type:Boolean})],exports.SbPasskeyButton.prototype,"disabled",2);re([a({type:Boolean})],exports.SbPasskeyButton.prototype,"loading",2);re([a({type:String})],exports.SbPasskeyButton.prototype,"event",2);re([x()],exports.SbPasskeyButton.prototype,"_loading",2);exports.SbPasskeyButton=re([u("sb-passkey-button")],exports.SbPasskeyButton);const Bg={apple:"Apple",discord:"Discord",facebook:"Facebook",github:"GitHub",google:"Google",linkedin:"LinkedIn",meta:"Meta",microsoft:"Microsoft",x:"X"},Mg={apple:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",discord:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",facebook:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z",github:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",google:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z",linkedin:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",meta:"M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z",microsoft:"M11.4 24H0V12.6h11.4V24zM24 24H12.6V12.6H24V24zM11.4 11.4H0V0h11.4v11.4zM24 11.4H12.6V0H24v11.4z",x:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.763l7.726-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z"};var qg=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,At=(e,t,r,i)=>{for(var s=i>1?void 0:i?Vg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&qg(t,r,s),s};exports.SbProviderButton=class extends v{constructor(){super(...arguments),this.seed=_t(),this.content="icon-label",this.variant="outline",this.size="default",this.prompt="Use",this.iconAlign="start",this._loading=!1,this._handleClick=()=>{this.disabled||this.isLoading||(this._loading=!0,this._dispatchClick(),this._emitClickEvent())}}static get parts(){const t=this._ROOT,r=`${t}-${this._ICON}`;return{root:t,icon:r}}static get clickEventName(){return`sb-${this._ROOT}:click`}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbProviderButton.parts.root}-${this.provider}-${this.seed}`}get iconId(){return`${this.rootId}-${exports.SbProviderButton._ICON}`}get iconCn(){return this.content==="icon"?"":`rtg-icon-align-${this.iconAlign}`}get isLoading(){return this._loading||this.loading}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}_dispatchClick(){const t=new CustomEvent(exports.SbProviderButton.clickEventName,{detail:{id:this.rootId,provider:this.provider,event:this.event},bubbles:!0,composed:!0});this.dispatchEvent(t)}async _emitClickEvent(){if(this.event){this._loading||(this._loading=!0);try{await dt.processLoginflowEvent({event:this.event})}finally{this._loading=!1}}}_renderLogo(){return d`
6506
6506
  <svg
6507
6507
  id="${this.iconId}"
6508
6508
  part="${exports.SbProviderButton.parts.icon}"
@@ -6539,7 +6539,7 @@ body {
6539
6539
  ${this.content.includes("label")?r:m}
6540
6540
  ${this.iconAlign==="end"?this._renderIcon():m}
6541
6541
  </rtg-button>
6542
- `}};exports.SbProviderButton._ROOT="provider-button";exports.SbProviderButton._ICON="icon";At([a({type:String})],exports.SbProviderButton.prototype,"seed",2);At([a({attribute:"child-id",type:String})],exports.SbProviderButton.prototype,"childId",2);At([a({type:String})],exports.SbProviderButton.prototype,"provider",2);At([a({type:String})],exports.SbProviderButton.prototype,"content",2);At([a({type:String})],exports.SbProviderButton.prototype,"variant",2);At([a({type:String})],exports.SbProviderButton.prototype,"size",2);At([a({type:String})],exports.SbProviderButton.prototype,"prompt",2);At([a({attribute:"icon-align",type:String})],exports.SbProviderButton.prototype,"iconAlign",2);At([a({type:String})],exports.SbProviderButton.prototype,"label",2);At([a({type:Boolean})],exports.SbProviderButton.prototype,"disabled",2);At([a({type:Boolean})],exports.SbProviderButton.prototype,"loading",2);At([a({type:String})],exports.SbProviderButton.prototype,"event",2);At([x()],exports.SbProviderButton.prototype,"_loading",2);exports.SbProviderButton=At([p("sb-provider-button")],exports.SbProviderButton);var Hg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,Pt=(e,t,r,i)=>{for(var s=i>1?void 0:i?Gg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Hg(t,r,s),s};exports.SbProviderField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.providers=[],this.overrides=[]}static get parts(){const t=this._ROOT,r=`${t}-${this._BUTTON}`;return{root:t,button:r}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbProviderField.parts.root}-${this.seed}`}get buttonId(){return`${this.rootId}-${exports.SbProviderField._BUTTON}`}get columns(){const t=this._providers.length;return t<3?"one":t%3===0?"three":t===5?"two-three":t===7?"three-four":"four"}get _providers(){return[...new Set(this.providers)]}get _overrides(){return this.overrides.filter((t,r,i)=>r===i.findIndex(s=>s.provider===t.provider))}_renderButton(t){return d`
6542
+ `}};exports.SbProviderButton._ROOT="provider-button";exports.SbProviderButton._ICON="icon";At([a({type:String})],exports.SbProviderButton.prototype,"seed",2);At([a({attribute:"child-id",type:String})],exports.SbProviderButton.prototype,"childId",2);At([a({type:String})],exports.SbProviderButton.prototype,"provider",2);At([a({type:String})],exports.SbProviderButton.prototype,"content",2);At([a({type:String})],exports.SbProviderButton.prototype,"variant",2);At([a({type:String})],exports.SbProviderButton.prototype,"size",2);At([a({type:String})],exports.SbProviderButton.prototype,"prompt",2);At([a({attribute:"icon-align",type:String})],exports.SbProviderButton.prototype,"iconAlign",2);At([a({type:String})],exports.SbProviderButton.prototype,"label",2);At([a({type:Boolean})],exports.SbProviderButton.prototype,"disabled",2);At([a({type:Boolean})],exports.SbProviderButton.prototype,"loading",2);At([a({type:String})],exports.SbProviderButton.prototype,"event",2);At([x()],exports.SbProviderButton.prototype,"_loading",2);exports.SbProviderButton=At([u("sb-provider-button")],exports.SbProviderButton);var Hg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,Pt=(e,t,r,i)=>{for(var s=i>1?void 0:i?Gg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Hg(t,r,s),s};exports.SbProviderField=class extends v{constructor(){super(...arguments),this.seed=_t(),this.providers=[],this.overrides=[]}static get parts(){const t=this._ROOT,r=`${t}-${this._BUTTON}`;return{root:t,button:r}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbProviderField.parts.root}-${this.seed}`}get buttonId(){return`${this.rootId}-${exports.SbProviderField._BUTTON}`}get columns(){const t=this._providers.length;return t<3?"one":t%3===0?"three":t===5?"two-three":t===7?"three-four":"four"}get _providers(){return[...new Set(this.providers)]}get _overrides(){return this.overrides.filter((t,r,i)=>r===i.findIndex(s=>s.provider===t.provider))}_renderButton(t){return d`
6543
6543
  <sb-provider-button
6544
6544
  id="${this.buttonId}"
6545
6545
  part="${exports.SbProviderField.parts.button}"
@@ -6564,17 +6564,22 @@ body {
6564
6564
  >
6565
6565
  ${this._providers.map(r=>this._renderButton(t.find(i=>i.provider===r)??{provider:r}))}
6566
6566
  </rtg-field>
6567
- `}};exports.SbProviderField._ROOT="provider-field";exports.SbProviderField._BUTTON="button";Pt([a({type:String})],exports.SbProviderField.prototype,"seed",2);Pt([a({attribute:"child-id",type:String})],exports.SbProviderField.prototype,"childId",2);Pt([a({type:Array})],exports.SbProviderField.prototype,"providers",2);Pt([a({type:String})],exports.SbProviderField.prototype,"content",2);Pt([a({type:String})],exports.SbProviderField.prototype,"variant",2);Pt([a({type:String})],exports.SbProviderField.prototype,"size",2);Pt([a({type:String})],exports.SbProviderField.prototype,"prompt",2);Pt([a({attribute:"icon-align",type:String})],exports.SbProviderField.prototype,"iconAlign",2);Pt([a({type:String})],exports.SbProviderField.prototype,"label",2);Pt([a({type:Boolean})],exports.SbProviderField.prototype,"disabled",2);Pt([a({type:Boolean})],exports.SbProviderField.prototype,"loading",2);Pt([a({type:String})],exports.SbProviderField.prototype,"event",2);Pt([a({type:Array})],exports.SbProviderField.prototype,"overrides",2);exports.SbProviderField=Pt([p("sb-provider-field")],exports.SbProviderField);var Wg=Object.defineProperty,Kg=Object.getOwnPropertyDescriptor,As=(e,t,r,i)=>{for(var s=i>1?void 0:i?Kg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Wg(t,r,s),s};exports.SbGap=class extends de{constructor(){super(...arguments),this.size="8px",this.type="vertical",this.id=""}createRenderRoot(){return this}render(){let t={width:"0px",height:"0px"};return this.type==="vertical"?t={width:"1px",height:this.size}:t={height:"1px",width:this.size},d`
6567
+ `}};exports.SbProviderField._ROOT="provider-field";exports.SbProviderField._BUTTON="button";Pt([a({type:String})],exports.SbProviderField.prototype,"seed",2);Pt([a({attribute:"child-id",type:String})],exports.SbProviderField.prototype,"childId",2);Pt([a({type:Array})],exports.SbProviderField.prototype,"providers",2);Pt([a({type:String})],exports.SbProviderField.prototype,"content",2);Pt([a({type:String})],exports.SbProviderField.prototype,"variant",2);Pt([a({type:String})],exports.SbProviderField.prototype,"size",2);Pt([a({type:String})],exports.SbProviderField.prototype,"prompt",2);Pt([a({attribute:"icon-align",type:String})],exports.SbProviderField.prototype,"iconAlign",2);Pt([a({type:String})],exports.SbProviderField.prototype,"label",2);Pt([a({type:Boolean})],exports.SbProviderField.prototype,"disabled",2);Pt([a({type:Boolean})],exports.SbProviderField.prototype,"loading",2);Pt([a({type:String})],exports.SbProviderField.prototype,"event",2);Pt([a({type:Array})],exports.SbProviderField.prototype,"overrides",2);exports.SbProviderField=Pt([u("sb-provider-field")],exports.SbProviderField);var Wg=Object.defineProperty,Kg=Object.getOwnPropertyDescriptor,Ps=(e,t,r,i)=>{for(var s=i>1?void 0:i?Kg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Wg(t,r,s),s};exports.SbGap=class extends de{constructor(){super(...arguments),this.size="8px",this.type="vertical",this.id=""}createRenderRoot(){return this}render(){let t={width:"0px",height:"0px"};return this.type==="vertical"?t={width:"1px",height:this.size}:t={height:"1px",width:this.size},d`
6568
6568
  <div
6569
6569
  part=${this.id?this.id:"gap"}
6570
6570
  style=${R({...t})}
6571
6571
  ></div>
6572
- `}};As([a()],exports.SbGap.prototype,"size",2);As([a()],exports.SbGap.prototype,"type",2);As([a()],exports.SbGap.prototype,"id",2);exports.SbGap=As([p("sb-gap")],exports.SbGap);var Yg=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,An=(e,t,r,i)=>{for(var s=i>1?void 0:i?Xg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Yg(t,r,s),s};exports.SbHeader=class extends de{constructor(){super(...arguments),this.align="center",this.gap="8px"}get _containerElement(){return this.querySelector(`div[part=${this.id?this.id:"header"}]`)}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d` <div part=${this.id?this.id:"header"}></div> `}};An([a({type:String})],exports.SbHeader.prototype,"align",2);An([a({type:String,attribute:"gap"})],exports.SbHeader.prototype,"gap",2);exports.SbHeader=An([p("sb-header")],exports.SbHeader);var Zg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,Ps=(e,t,r,i)=>{for(var s=i>1?void 0:i?Jg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Zg(t,r,s),s};exports.SbLogo=class extends de{constructor(){super(...arguments),this.theme=this.getTheme()}get _containerElement(){return this.querySelector(`img[part=${this.id?this.id:"logo"}]`)}connectedCallback(){super.connectedCallback(),this.style.display="grid",this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")??"light"}createRenderRoot(){return this}render(){const t=bn(this.imageUrl,this.theme),r=t?Ss(t):null;return r?d` <div>${$s(r)}</div> `:d`
6573
- <img
6574
- part=${this.id?this.id:"logo"}
6575
- src=${ac(t)}
6576
- />
6577
- `}};Ps([a({type:String})],exports.SbLogo.prototype,"id",2);Ps([a({type:String,attribute:"image-url"})],exports.SbLogo.prototype,"imageUrl",2);Ps([x()],exports.SbLogo.prototype,"theme",2);exports.SbLogo=Ps([p("sb-logo")],exports.SbLogo);var Qg=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,ce=(e,t,r,i)=>{for(var s=i>1?void 0:i?tm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Qg(t,r,s),s};exports.SbOtp=class extends de{constructor(){super(...arguments),this.variant="with_separator",this.length=6,this.timeout=300,this.dataKey="",this.event="",this.resendText="",this.resendButtonText="",this.resendEvent="",this.id="otp",this.handleComplete=t=>{this.emit("sb-otp:complete",{id:this.id,dataKey:this.dataKey,value:t,event:this.event||null})},this.handleFocus=()=>{this.emit("sb-otp:focus",{id:this.id,dataKey:this.dataKey})},this.handleBlur=()=>{this.emit("sb-otp:blur",{id:this.id,dataKey:this.dataKey})},this.handleResend=()=>{this.resendEvent&&this.emit("sb-otp:resend",{id:this.id,event:this.resendEvent})}}get _containerElement(){return this.querySelector(`rtg-input-otp[part=${this.id?this.id:"otp"}]`)}createRenderRoot(){return this}emit(t,r){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}buildOTPContentHTML(){const t=this.variant,r=this.length,i=(n,h)=>Array.from({length:h-n},(u,g)=>`<rtg-input-otp-slot index="${n+g}"></rtg-input-otp-slot>`).join(""),s=n=>`<rtg-input-otp-group>${n}</rtg-input-otp-group>`,o="<rtg-input-otp-separator></rtg-input-otp-separator>";if(t==="simple"){const n=Math.ceil(r/2);return s(i(0,n))+o+s(i(n,r))}if(t==="with_separator"){const n=Math.ceil(r/3);return s(i(0,n))+o+s(i(n,n*2))+o+s(i(n*2,r))}return t==="with_spacing"?Array.from({length:r},(n,h)=>s(`<rtg-input-otp-slot index="${h}"></rtg-input-otp-slot>`)).join(""):s(i(0,r))}render(){const t=this.variant||"digits_only";return ys`
6572
+ `}};Ps([a()],exports.SbGap.prototype,"size",2);Ps([a()],exports.SbGap.prototype,"type",2);Ps([a()],exports.SbGap.prototype,"id",2);exports.SbGap=Ps([u("sb-gap")],exports.SbGap);var Yg=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,An=(e,t,r,i)=>{for(var s=i>1?void 0:i?Xg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Yg(t,r,s),s};exports.SbHeader=class extends de{constructor(){super(...arguments),this.align="center",this.gap="8px"}get _containerElement(){return this.querySelector(`div[part=${this.id?this.id:"header"}]`)}firstUpdated(t){this.moveLightDomChildrenInto(this._containerElement)}render(){return d` <div part=${this.id?this.id:"header"}></div> `}};An([a({type:String})],exports.SbHeader.prototype,"align",2);An([a({type:String,attribute:"gap"})],exports.SbHeader.prototype,"gap",2);exports.SbHeader=An([u("sb-header")],exports.SbHeader);var Zg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,De=(e,t,r,i)=>{for(var s=i>1?void 0:i?Jg(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Zg(t,r,s),s};exports.SbLogo=class extends de{constructor(){super(...arguments),this.align="center",this.width="",this.height="",this.theme=this.getTheme(),this.isSvg=!1}get _containerElement(){return this.querySelector(".sb-logo-wrapper")}connectedCallback(){super.connectedCallback(),this.style.display="grid",this.updateLayoutFromProps(),this.observer=new MutationObserver(()=>{this.theme=this.getTheme()}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}updated(t){super.updated(t),(t.has("align")||t.has("width")||t.has("height"))&&this.updateLayoutFromProps()}updateLayoutFromProps(){const t=this._containerElement;t&&(this.align&&(t.style.justifySelf=this.align),this.width&&(t.style.width=this.width),this.height&&(t.style.height=this.height))}disconnectedCallback(){var t;(t=this.observer)==null||t.disconnect(),super.disconnectedCallback()}getTheme(){return document.documentElement.getAttribute("data-theme")??"light"}createRenderRoot(){return this}render(){const t=bn(this.imageUrl,this.theme),r=t?$s(t):null;return this.isSvg=!!r,d`
6573
+ <div class="sb-logo-wrapper">
6574
+ ${r?Cs(r):d`
6575
+ <img
6576
+ part=${this.id?this.id:"logo"}
6577
+ src=${ac(t)}
6578
+ alt="Logo"
6579
+ />
6580
+ `}
6581
+ </div>
6582
+ `}};De([a({type:String})],exports.SbLogo.prototype,"id",2);De([a({type:String,attribute:"image-url"})],exports.SbLogo.prototype,"imageUrl",2);De([a({type:String,reflect:!0})],exports.SbLogo.prototype,"align",2);De([a({type:String,reflect:!0})],exports.SbLogo.prototype,"width",2);De([a({type:String,reflect:!0})],exports.SbLogo.prototype,"height",2);De([x()],exports.SbLogo.prototype,"theme",2);De([x()],exports.SbLogo.prototype,"isSvg",2);exports.SbLogo=De([u("sb-logo")],exports.SbLogo);var Qg=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,ce=(e,t,r,i)=>{for(var s=i>1?void 0:i?tm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Qg(t,r,s),s};exports.SbOtp=class extends de{constructor(){super(...arguments),this.variant="with_separator",this.length=6,this.timeout=300,this.dataKey="",this.event="",this.resendText="",this.resendButtonText="",this.resendEvent="",this.id="otp",this.handleComplete=async t=>{const r={};r[this.dataKey]=t;try{await dt.processLoginflowEvent({event:this.event,data:r})}finally{this.emit("sb-otp:complete",{id:this.id,dataKey:this.dataKey,value:t,event:this.event||null})}},this.handleFocus=()=>{this.emit("sb-otp:focus",{id:this.id,dataKey:this.dataKey})},this.handleBlur=()=>{this.emit("sb-otp:blur",{id:this.id,dataKey:this.dataKey})},this.handleResend=async()=>{if(this.resendEvent)try{await dt.processLoginflowEvent({event:this.resendEvent})}finally{this.emit("sb-otp:resend",{id:this.id,event:this.resendEvent})}}}get _containerElement(){return this.querySelector(`rtg-input-otp[part=${this.id?this.id:"otp"}]`)}createRenderRoot(){return this}emit(t,r){this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0}))}buildOTPContentHTML(){const t=this.variant,r=this.length,i=(n,h)=>Array.from({length:h-n},(p,g)=>`<rtg-input-otp-slot index="${n+g}"></rtg-input-otp-slot>`).join(""),s=n=>`<rtg-input-otp-group>${n}</rtg-input-otp-group>`,o="<rtg-input-otp-separator></rtg-input-otp-separator>";if(t==="simple"){const n=Math.ceil(r/2);return s(i(0,n))+o+s(i(n,r))}if(t==="with_separator"){const n=Math.ceil(r/3);return s(i(0,n))+o+s(i(n,n*2))+o+s(i(n*2,r))}return t==="with_spacing"?Array.from({length:r},(n,h)=>s(`<rtg-input-otp-slot index="${h}"></rtg-input-otp-slot>`)).join(""):s(i(0,r))}render(){const t=this.variant||"digits_only";return ws`
6578
6583
  <rtg-input-otp
6579
6584
  part=${this.id?this.id:"otp"}
6580
6585
  id=${this.dataKey??this.id??m}
@@ -6586,10 +6591,10 @@ body {
6586
6591
  .onFocus=${this.handleFocus}
6587
6592
  .onBlur=${this.handleBlur}
6588
6593
  >
6589
- ${Es(this.buildOTPContentHTML())}
6594
+ ${ks(this.buildOTPContentHTML())}
6590
6595
  </rtg-input-otp>
6591
6596
 
6592
- ${this.resendButtonText?ys`
6597
+ ${this.resendButtonText?ws`
6593
6598
  <div class="sb-flex">
6594
6599
  <rtg-typography-p>${this.resendText}</rtg-typography-p>
6595
6600
 
@@ -6598,18 +6603,18 @@ body {
6598
6603
  </rtg-button>
6599
6604
  </div>
6600
6605
  `:m}
6601
- `}};ce([a()],exports.SbOtp.prototype,"variant",2);ce([a({type:Number})],exports.SbOtp.prototype,"length",2);ce([a({type:Number})],exports.SbOtp.prototype,"timeout",2);ce([a({attribute:"data-key"})],exports.SbOtp.prototype,"dataKey",2);ce([a()],exports.SbOtp.prototype,"event",2);ce([a({attribute:"resend-text"})],exports.SbOtp.prototype,"resendText",2);ce([a({attribute:"resend-button-text"})],exports.SbOtp.prototype,"resendButtonText",2);ce([a({attribute:"resend-event"})],exports.SbOtp.prototype,"resendEvent",2);ce([a()],exports.SbOtp.prototype,"id",2);exports.SbOtp=ce([p("sb-otp")],exports.SbOtp);var em=Object.defineProperty,rm=Object.getOwnPropertyDescriptor,Pn=(e,t,r,i)=>{for(var s=i>1?void 0:i?rm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&em(t,r,s),s};exports.SbSubtitle=class extends de{get _containerElement(){return this.querySelector(`rtg-typography-p[part=${this.id?this.id:"subtitle"}]`)}createRenderRoot(){return this}render(){return d`
6606
+ `}};ce([a()],exports.SbOtp.prototype,"variant",2);ce([a({type:Number})],exports.SbOtp.prototype,"length",2);ce([a({type:Number})],exports.SbOtp.prototype,"timeout",2);ce([a({attribute:"data-key"})],exports.SbOtp.prototype,"dataKey",2);ce([a()],exports.SbOtp.prototype,"event",2);ce([a({attribute:"resend-text"})],exports.SbOtp.prototype,"resendText",2);ce([a({attribute:"resend-button-text"})],exports.SbOtp.prototype,"resendButtonText",2);ce([a({attribute:"resend-event"})],exports.SbOtp.prototype,"resendEvent",2);ce([a()],exports.SbOtp.prototype,"id",2);exports.SbOtp=ce([u("sb-otp")],exports.SbOtp);var em=Object.defineProperty,rm=Object.getOwnPropertyDescriptor,Pn=(e,t,r,i)=>{for(var s=i>1?void 0:i?rm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&em(t,r,s),s};exports.SbSubtitle=class extends de{get _containerElement(){return this.querySelector(`rtg-typography-p[part=${this.id?this.id:"subtitle"}]`)}createRenderRoot(){return this}render(){return d`
6602
6607
  <rtg-typography-p part=${this.id?this.id:"subtitle"} id=${this.id}>
6603
6608
  ${this.content}
6604
6609
  </rtg-typography-p>
6605
- `}};Pn([a({type:String})],exports.SbSubtitle.prototype,"id",2);Pn([a({type:String})],exports.SbSubtitle.prototype,"content",2);exports.SbSubtitle=Pn([p("sb-subtitle")],exports.SbSubtitle);var im=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,Ri=(e,t,r,i)=>{for(var s=i>1?void 0:i?sm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&im(t,r,s),s};exports.SbContainer=class extends de{constructor(){super(...arguments),this.id="",this.type="flex_column",this.root=!1}createRenderRoot(){return this}async firstUpdated(t){if(await this.updateComplete,!this.root){const s=this.querySelector(`div[part=${this.id?this.id:"container"}]`);console.log("first updated",s),s&&this.moveLightDomChildrenInto(s);return}const r=this.querySelector("rtg-card-content");r!=null&&r.updateComplete&&await r.updateComplete;const i=r==null?void 0:r.querySelector('div[data-slot="card-content"]');i&&this.moveLightDomChildrenInto(i),await Si()}async updated(t){await this.updateComplete,await Si()}get containerStyles(){return{display:"flex","flex-direction":this.type==="flex_column"?"column":"row"}}render(){return this.root?d`
6610
+ `}};Pn([a({type:String})],exports.SbSubtitle.prototype,"id",2);Pn([a({type:String})],exports.SbSubtitle.prototype,"content",2);exports.SbSubtitle=Pn([u("sb-subtitle")],exports.SbSubtitle);var im=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,Qr=(e,t,r,i)=>{for(var s=i>1?void 0:i?sm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&im(t,r,s),s};exports.SbContainer=class extends de{constructor(){super(...arguments),this.id="",this.type="flex_column",this.root=!1,this.form=!1}createRenderRoot(){return this}async firstUpdated(t){if(await this.updateComplete,!this.root){const s=this.querySelector(`div[part=${this.id?this.id:"container"}]`);console.log("first updated",s),s&&this.moveLightDomChildrenInto(s);return}const r=this.querySelector("rtg-card-content");r!=null&&r.updateComplete&&await r.updateComplete;const i=r==null?void 0:r.querySelector('div[data-slot="card-content"]');i&&this.moveLightDomChildrenInto(i),await Ci()}async updated(t){await this.updateComplete,await Ci()}get containerStyles(){return{display:"flex","flex-direction":this.type==="flex_column"?"column":"row"}}render(){return this.root?d`
6606
6611
  <rtg-card part=${this.id?this.id:"container"}>
6607
6612
  <rtg-card-content></rtg-card-content>
6608
6613
  </rtg-card>
6609
6614
  `:d`<div
6610
6615
  part=${this.id?this.id:"container"}
6611
6616
  style=${R(this.containerStyles)}
6612
- ></div>`}};Ri([a()],exports.SbContainer.prototype,"id",2);Ri([a()],exports.SbContainer.prototype,"type",2);Ri([a({type:Boolean})],exports.SbContainer.prototype,"root",2);Ri([a()],exports.SbContainer.prototype,"alignment",2);exports.SbContainer=Ri([p("sb-container")],exports.SbContainer);var om=Object.defineProperty,nm=Object.getOwnPropertyDescriptor,Fn=(e,t,r,i)=>{for(var s=i>1?void 0:i?nm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&om(t,r,s),s};exports.SbTitle=class extends de{get _containerElement(){return this.querySelector(`rtg-typography-h[part=${this.id?this.id:"title"}]`)}createRenderRoot(){return this}render(){return d`
6617
+ ></div>`}};Qr([a()],exports.SbContainer.prototype,"id",2);Qr([a()],exports.SbContainer.prototype,"type",2);Qr([a({type:Boolean})],exports.SbContainer.prototype,"root",2);Qr([a({type:Boolean})],exports.SbContainer.prototype,"form",2);Qr([a()],exports.SbContainer.prototype,"alignment",2);exports.SbContainer=Qr([u("sb-container")],exports.SbContainer);var om=Object.defineProperty,nm=Object.getOwnPropertyDescriptor,Fn=(e,t,r,i)=>{for(var s=i>1?void 0:i?nm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&om(t,r,s),s};exports.SbTitle=class extends de{get _containerElement(){return this.querySelector(`rtg-typography-h[part=${this.id?this.id:"title"}]`)}createRenderRoot(){return this}render(){return d`
6613
6618
  <rtg-typography-h
6614
6619
  part=${this.id?this.id:"title"}
6615
6620
  level="h4"
@@ -6617,7 +6622,7 @@ body {
6617
6622
  >
6618
6623
  ${this.content}
6619
6624
  </rtg-typography-h>
6620
- `}};Fn([a({type:String})],exports.SbTitle.prototype,"id",2);Fn([a({type:String})],exports.SbTitle.prototype,"content",2);exports.SbTitle=Fn([p("sb-title")],exports.SbTitle);var am=Object.defineProperty,lm=Object.getOwnPropertyDescriptor,Sr=(e,t,r,i)=>{for(var s=i>1?void 0:i?lm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&am(t,r,s),s};exports.SbWatermark=class extends v{constructor(){super(...arguments),this.seed=_t(),this.label="Powered by",this.variant="brand",this.badge="ghost",this.logoAlign="end"}static get parts(){const t=this._ROOT,r=`${t}-${this._LOGO}`;return{root:t,logo:r}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbWatermark.parts.root}-${this.seed}`}get logoId(){return`${this.rootId}-${exports.SbWatermark._LOGO}`}_renderLogo(){return d`
6625
+ `}};Fn([a({type:String})],exports.SbTitle.prototype,"id",2);Fn([a({type:String})],exports.SbTitle.prototype,"content",2);exports.SbTitle=Fn([u("sb-title")],exports.SbTitle);var am=Object.defineProperty,lm=Object.getOwnPropertyDescriptor,$r=(e,t,r,i)=>{for(var s=i>1?void 0:i?lm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&am(t,r,s),s};exports.SbWatermark=class extends v{constructor(){super(...arguments),this.seed=_t(),this.label="Powered by",this.variant="brand",this.badge="ghost",this.logoAlign="end"}static get parts(){const t=this._ROOT,r=`${t}-${this._LOGO}`;return{root:t,logo:r}}createRenderRoot(){return this}get rootId(){return this.childId??`sb-${exports.SbWatermark.parts.root}-${this.seed}`}get logoId(){return`${this.rootId}-${exports.SbWatermark._LOGO}`}_renderLogo(){return d`
6621
6626
  <svg
6622
6627
  id="${this.logoId}"
6623
6628
  part="${exports.SbWatermark.parts.logo}"
@@ -6650,11 +6655,11 @@ body {
6650
6655
  ${this.logoAlign==="start"?this._renderLogo():m}
6651
6656
  ${this.label} ${this.logoAlign==="end"?this._renderLogo():m}
6652
6657
  </rtg-badge>
6653
- `}};exports.SbWatermark._ROOT="watermark";exports.SbWatermark._LOGO="logo";Sr([a({type:String})],exports.SbWatermark.prototype,"seed",2);Sr([a({attribute:"child-id",type:String})],exports.SbWatermark.prototype,"childId",2);Sr([a({type:String})],exports.SbWatermark.prototype,"label",2);Sr([a({type:String})],exports.SbWatermark.prototype,"variant",2);Sr([a({type:String})],exports.SbWatermark.prototype,"badge",2);Sr([a({attribute:"logo-align",type:String})],exports.SbWatermark.prototype,"logoAlign",2);exports.SbWatermark=Sr([p("sb-watermark")],exports.SbWatermark);var dm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,Jr=(e,t,r,i)=>{for(var s=i>1?void 0:i?cm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&dm(t,r,s),s};exports.SbCountdown=class extends de{constructor(){super(...arguments),this.content="",this.duration=5,this.redirectUrl="/",this.id="",this.seconds=0,this.timerId=null}get _containerElement(){return this.querySelector(`div[part=${this.id?this.id:"countdown"}]`)}createRenderRoot(){return this}firstUpdated(t){}connectedCallback(){super.connectedCallback(),this.initializeCountdown()}disconnectedCallback(){this.clearTimer(),super.disconnectedCallback()}initializeCountdown(){this.seconds=Math.max(0,this.duration||0),this.startTimer()}startTimer(){this.clearTimer(),this.timerId=window.setInterval(()=>{this.seconds<=1?this.completeCountdown():this.seconds--},1e3)}completeCountdown(){this.clearTimer(),window.location.href=this.redirectUrl||"/"}clearTimer(){this.timerId!==null&&(clearInterval(this.timerId),this.timerId=null)}renderContent(){return`${this.content} ${this.seconds}s...`}render(){return d`
6658
+ `}};exports.SbWatermark._ROOT="watermark";exports.SbWatermark._LOGO="logo";$r([a({type:String})],exports.SbWatermark.prototype,"seed",2);$r([a({attribute:"child-id",type:String})],exports.SbWatermark.prototype,"childId",2);$r([a({type:String})],exports.SbWatermark.prototype,"label",2);$r([a({type:String})],exports.SbWatermark.prototype,"variant",2);$r([a({type:String})],exports.SbWatermark.prototype,"badge",2);$r([a({attribute:"logo-align",type:String})],exports.SbWatermark.prototype,"logoAlign",2);exports.SbWatermark=$r([u("sb-watermark")],exports.SbWatermark);var dm=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,ti=(e,t,r,i)=>{for(var s=i>1?void 0:i?cm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&dm(t,r,s),s};exports.SbCountdown=class extends de{constructor(){super(...arguments),this.content="",this.duration=5,this.redirectUrl="/",this.id="",this.seconds=0,this.timerId=null}get _containerElement(){return this.querySelector(`div[part=${this.id?this.id:"countdown"}]`)}createRenderRoot(){return this}firstUpdated(t){}connectedCallback(){super.connectedCallback(),this.initializeCountdown()}disconnectedCallback(){this.clearTimer(),super.disconnectedCallback()}initializeCountdown(){this.seconds=Math.max(0,this.duration||0),this.startTimer()}startTimer(){this.clearTimer(),this.timerId=window.setInterval(()=>{this.seconds<=1?this.completeCountdown():this.seconds--},1e3)}completeCountdown(){this.clearTimer(),window.location.href=this.redirectUrl||"/"}clearTimer(){this.timerId!==null&&(clearInterval(this.timerId),this.timerId=null)}renderContent(){return`${this.content} ${this.seconds}s...`}render(){return d`
6654
6659
  <div part=${this.id?this.id:"countdown"}>
6655
6660
  <rtg-typography-p>${this.renderContent()}</rtg-typography-p>
6656
6661
  </div>
6657
- `}};Jr([a()],exports.SbCountdown.prototype,"content",2);Jr([a({type:Number})],exports.SbCountdown.prototype,"duration",2);Jr([a({attribute:"redirect-url"})],exports.SbCountdown.prototype,"redirectUrl",2);Jr([a()],exports.SbCountdown.prototype,"id",2);Jr([x()],exports.SbCountdown.prototype,"seconds",2);exports.SbCountdown=Jr([p("sb-countdown")],exports.SbCountdown);const hc="sb:env",Fs="sb:auth",Ts="customizations",Tn=Symbol("renderSpecContext");var uc=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(uc||{}),tn=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(tn||{}),Ne=(e=>(e.MODAL="MODAL",e.PAGE="PAGE",e))(Ne||{}),qt=(e=>(e.BURGER="BURGER",e.REGULAR="REGULAR",e))(qt||{}),Xt=(e=>(e.VERTICAL="VERTICAL",e.HORIZONTAL="HORIZONTAL",e))(Xt||{}),Ot=(e=>(e.COLUMN="COLUMN",e.ROW="ROW",e))(Ot||{});function $i(){return te`<svg
6662
+ `}};ti([a()],exports.SbCountdown.prototype,"content",2);ti([a({type:Number})],exports.SbCountdown.prototype,"duration",2);ti([a({attribute:"redirect-url"})],exports.SbCountdown.prototype,"redirectUrl",2);ti([a()],exports.SbCountdown.prototype,"id",2);ti([x()],exports.SbCountdown.prototype,"seconds",2);exports.SbCountdown=ti([u("sb-countdown")],exports.SbCountdown);const hc="sb:env",Fs="sb:auth",Ts="customizations",Tn=Symbol("renderSpecContext");var pc=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(pc||{}),tn=(e=>(e.PROFILE="Profile",e.SECURITY="Security",e.APPEARANCE="Appearance",e.NOTIFICATION="Notification",e))(tn||{}),Ne=(e=>(e.MODAL="MODAL",e.PAGE="PAGE",e))(Ne||{}),qt=(e=>(e.BURGER="BURGER",e.REGULAR="REGULAR",e))(qt||{}),Xt=(e=>(e.VERTICAL="VERTICAL",e.HORIZONTAL="HORIZONTAL",e))(Xt||{}),Ot=(e=>(e.COLUMN="COLUMN",e.ROW="ROW",e))(Ot||{});function Ei(){return te`<svg
6658
6663
  width="16"
6659
6664
  height="16"
6660
6665
  viewBox="0 0 16 16"
@@ -6686,7 +6691,7 @@ body {
6686
6691
  d="M14.2328 11.7914C11.9078 10.2414 8.11615 10.2414 5.77448 11.7914C4.71615 12.4997 4.13281 13.4581 4.13281 14.4831C4.13281 15.5081 4.71615 16.4581 5.76615 17.1581C6.93281 17.9414 8.46615 18.3331 9.99948 18.3331C11.5328 18.3331 13.0661 17.9414 14.2328 17.1581C15.2828 16.4497 15.8661 15.4997 15.8661 14.4664C15.8578 13.4414 15.2828 12.4914 14.2328 11.7914Z"
6687
6692
  fill="#737373"
6688
6693
  />
6689
- </svg>`}function um(){return te`<svg
6694
+ </svg>`}function pm(){return te`<svg
6690
6695
  width="24"
6691
6696
  height="24"
6692
6697
  viewBox="0 0 24 24"
@@ -6701,7 +6706,7 @@ body {
6701
6706
  d="M12 6.92969C9.93 6.92969 8.25 8.60969 8.25 10.6797C8.25 12.7097 9.84 14.3597 11.95 14.4197C11.98 14.4197 12.02 14.4197 12.04 14.4197C12.06 14.4197 12.09 14.4197 12.11 14.4197C12.12 14.4197 12.13 14.4197 12.13 14.4197C14.15 14.3497 15.74 12.7097 15.75 10.6797C15.75 8.60969 14.07 6.92969 12 6.92969Z"
6702
6707
  fill="#737373"
6703
6708
  />
6704
- </svg>`}function pm(){return te`<svg
6709
+ </svg>`}function um(){return te`<svg
6705
6710
  width="24"
6706
6711
  height="24"
6707
6712
  viewBox="0 0 24 24"
@@ -6740,7 +6745,7 @@ body {
6740
6745
  <svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg">
6741
6746
  <path d="M1 7H17M1 1H17M1 13H17" stroke="#0A0A0A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6742
6747
  </svg>
6743
- `}const Ls="sb-w-full sb-flex sb-justify-between sb-border-b sb-px-4 sb-py-2",Ns="sb-flex sb-items-center sb-text-[18px] sb-font-medium sb-gap-2 sb-text-muted-foreground !sb-min-w-9 !sb-min-h-9",zs="sb-w-full sb-basis-36 sb-shrink-0 sb-text-sm sb-text-foreground sb-font-medium sb-truncate sb-overflow-hidden sb-text-ellipsis",js="sb-w-full sb-border-none !sb-shadow-none !sb-px-0 disabled:!sb-opacity-100",Us="!sb-rounded-2xl !sb-p-0 !sb-bg-base-background",Ds="!sb-rounded-2xl !sb-p-0 sb-mb-4",Bs="!sb-bg-background",Ms="sb-w-full md:sb-w-[120px]",qs="sb-w-full md:sb-w-[120px]",Ln="sb-text-muted-foreground sb-text-sm sb-mr-2 sb-flex sb-items-center sb-gap-1";var fm=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,xt=(e,t,r,i)=>{for(var s=i>1?void 0:i?vm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&fm(t,r,s),s};const ym=(e,t)=>{const r=Array.from({length:t}).map((o,n)=>d`<rtg-input-otp-slot
6748
+ `}const Ls="sb-w-full sb-flex sb-justify-between sb-border-b sb-px-4 sb-py-2",Ns="sb-flex sb-items-center sb-text-[18px] sb-font-medium sb-gap-2 sb-text-muted-foreground !sb-min-w-9 !sb-min-h-9",zs="sb-w-full sb-basis-36 sb-shrink-0 sb-text-sm sb-text-foreground sb-font-medium sb-truncate sb-overflow-hidden sb-text-ellipsis",Us="sb-w-full sb-border-none !sb-shadow-none !sb-px-0 disabled:!sb-opacity-100",js="!sb-rounded-2xl !sb-p-0 !sb-bg-base-background",Ds="!sb-rounded-2xl !sb-p-0 sb-mb-4",Bs="!sb-bg-background",Ms="sb-w-full md:sb-w-[120px]",qs="sb-w-full md:sb-w-[120px]",Ln="sb-text-muted-foreground sb-text-sm sb-mr-2 sb-flex sb-items-center sb-gap-1";var fm=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,xt=(e,t,r,i)=>{for(var s=i>1?void 0:i?vm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&fm(t,r,s),s};const ym=(e,t)=>{const r=Array.from({length:t}).map((o,n)=>d`<rtg-input-otp-slot
6744
6749
  class="sb-bg-background"
6745
6750
  index=${n}
6746
6751
  ></rtg-input-otp-slot>`),i=o=>d`<rtg-input-otp-group>${o}</rtg-input-otp-group>`,s=()=>d`<rtg-input-otp-separator></rtg-input-otp-separator>`;switch(e){case"with_spacing":return d`<rtg-input-otp-group class="gap-2"
@@ -6748,17 +6753,17 @@ body {
6748
6753
  >`;case"simple":return d`${i(r.slice(0,3))}${s()}${i(r.slice(3))}`;case"with_separator":return d`
6749
6754
  ${i(r.slice(0,2))}${s()}
6750
6755
  ${i(r.slice(2,4))}${s()} ${i(r.slice(4))}
6751
- `;default:return i(r)}};exports.SbAccountInfo=class extends v{constructor(){super(...arguments),this.showAvatarMenu=!1,this.customizations=null,this.showIcons=!0,this.content=null,this.otpVariant="simple",this.otpLength=6,this.layout=Ot.ROW,this.isEditingEmail=!1,this.isVerifyingEmail=!1,this.isEditingPhone=!1,this.isVerifyingPhone=!1}getButtonStyles(){const t=Vt("default",this.customizations),r=Vt("outline",this.customizations),i=I(Ms,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),s=I(qs,{},r,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations);return{defaultMapped:i,outlineMapped:s}}getInputStyles(t=!1){var i,s,o;const r=t?Bs:Z(js);return I(r,{},(o=(s=(i=this.customizations)==null?void 0:i.byType)==null?void 0:s.inputs)==null?void 0:o.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,r,i;return I(Z(zs,"sb-hidden md:sb-inline"),{},(i=(r=(t=this.customizations)==null?void 0:t.byType)==null?void 0:r.labels)==null?void 0:i.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var r,i,s,o,n,h,u,g;return I(t?Us:Ds,{},t?(o=(s=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:s.userProfileCard)==null?void 0:o.editForm:(g=(u=(h=(n=this.customizations)==null?void 0:n.byType)==null?void 0:h.userProfile)==null?void 0:u.userProfileCard)==null?void 0:g.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderDisplayRow(t,r,i){const{class:s,style:o}=this.getLabelStyles(),{class:n,style:h}=this.getInputStyles(),u=this.layout===Ot.COLUMN;return d`
6756
+ `;default:return i(r)}};exports.SbAccountInfo=class extends v{constructor(){super(...arguments),this.showAvatarMenu=!1,this.customizations=null,this.showIcons=!0,this.content=null,this.otpVariant="simple",this.otpLength=6,this.layout=Ot.ROW,this.isEditingEmail=!1,this.isVerifyingEmail=!1,this.isEditingPhone=!1,this.isVerifyingPhone=!1}getButtonStyles(){const t=Vt("default",this.customizations),r=Vt("outline",this.customizations),i=I(Ms,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),s=I(qs,{},r,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations);return{defaultMapped:i,outlineMapped:s}}getInputStyles(t=!1){var i,s,o;const r=t?Bs:Z(Us);return I(r,{},(o=(s=(i=this.customizations)==null?void 0:i.byType)==null?void 0:s.inputs)==null?void 0:o.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,r,i;return I(Z(zs,"sb-hidden md:sb-inline"),{},(i=(r=(t=this.customizations)==null?void 0:t.byType)==null?void 0:r.labels)==null?void 0:i.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var r,i,s,o,n,h,p,g;return I(t?js:Ds,{},t?(o=(s=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:s.userProfileCard)==null?void 0:o.editForm:(g=(p=(h=(n=this.customizations)==null?void 0:n.byType)==null?void 0:h.userProfile)==null?void 0:p.userProfileCard)==null?void 0:g.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderDisplayRow(t,r,i){const{class:s,style:o}=this.getLabelStyles(),{class:n,style:h}=this.getInputStyles(),p=this.layout===Ot.COLUMN;return d`
6752
6757
  <div
6753
- class=${Z("sb-w-full",u?"sb-flex sb-flex-row-reverse md:sb-flex-col sb-gap-2":"sb-flex sb-items-center sb-justify-between sb-gap-2")}
6758
+ class=${Z("sb-w-full",p?"sb-flex sb-flex-row-reverse md:sb-flex-col sb-gap-2":"sb-flex sb-items-center sb-justify-between sb-gap-2")}
6754
6759
  >
6755
- ${u?d`
6760
+ ${p?d`
6756
6761
  <div class="sb-flex sb-items-center sb-justify-between sb-gap-2">
6757
6762
  <div class=${s} style=${R(o)}>
6758
6763
  ${t}
6759
6764
  </div>
6760
6765
  <rtg-button variant="outline" size="sm" @click=${i}>
6761
- ${$i()}
6766
+ ${Ei()}
6762
6767
  </rtg-button>
6763
6768
  </div>
6764
6769
  <div class="sb-flex-1 sb-min-w-0">
@@ -6782,11 +6787,11 @@ body {
6782
6787
  ></rtg-input>
6783
6788
  </div>
6784
6789
  <rtg-button variant="outline" size="sm" @click=${i}>
6785
- ${$i()}
6790
+ ${Ei()}
6786
6791
  </rtg-button>
6787
6792
  `}
6788
6793
  </div>
6789
- `}renderEditForm(t,r,i,s){const{class:o,style:n}=this.getContainerStyles(!0),{class:h,style:u}=this.getInputStyles(!0),{defaultMapped:g,outlineMapped:y}=this.getButtonStyles(),w=t==="email"?"Edit email address":"Edit phone number",E=t==="email"?"Type your new email address to replace the old one.":"Type your new phone number to replace the old one.";return d`
6794
+ `}renderEditForm(t,r,i,s){const{class:o,style:n}=this.getContainerStyles(!0),{class:h,style:p}=this.getInputStyles(!0),{defaultMapped:g,outlineMapped:y}=this.getButtonStyles(),w=t==="email"?"Edit email address":"Edit phone number",E=t==="email"?"Type your new email address to replace the old one.":"Type your new phone number to replace the old one.";return d`
6790
6795
  <rtg-card
6791
6796
  customClass=${Z("!sb-pt-4",o)}
6792
6797
  customStyle=${R(n)}
@@ -6803,7 +6808,7 @@ body {
6803
6808
  <div class="sb-flex sb-flex-col sb-gap-3 sb-mx-4 sb-mb-8 sb-mt-4">
6804
6809
  <rtg-input
6805
6810
  customClass=${h}
6806
- customStyle=${R(u)}
6811
+ customStyle=${R(p)}
6807
6812
  placeholder=${r}
6808
6813
  type=${t==="phone"?"tel":"text"}
6809
6814
  ></rtg-input>
@@ -6828,7 +6833,7 @@ body {
6828
6833
  >
6829
6834
  </rtg-card-footer>
6830
6835
  </rtg-card>
6831
- `}renderVerificationForm(t,r){const{class:i,style:s}=this.getContainerStyles(!0),{defaultMapped:o,outlineMapped:n}=this.getButtonStyles(),{class:h,style:u}=this.getInputStyles(),g=t==="email"?"Email verification required":"Phone number verification required",y=t==="email"?"Please enter the code to verify this email.":"Please enter the code to verify this phone number.";return d`
6836
+ `}renderVerificationForm(t,r){const{class:i,style:s}=this.getContainerStyles(!0),{defaultMapped:o,outlineMapped:n}=this.getButtonStyles(),{class:h,style:p}=this.getInputStyles(),g=t==="email"?"Email verification required":"Phone number verification required",y=t==="email"?"Please enter the code to verify this email.":"Please enter the code to verify this phone number.";return d`
6832
6837
  <rtg-card
6833
6838
  customClass=${Z("!sb-pt-4",i)}
6834
6839
  customStyle=${R(s)}
@@ -6847,7 +6852,7 @@ body {
6847
6852
  >
6848
6853
  <rtg-input-otp
6849
6854
  customClass=${h}
6850
- customStyle=${R(u)}
6855
+ customStyle=${R(p)}
6851
6856
  variant=${this.otpVariant}
6852
6857
  >
6853
6858
  ${ym(this.otpVariant,this.otpLength)}
@@ -6875,7 +6880,7 @@ body {
6875
6880
  >
6876
6881
  </rtg-card-footer>
6877
6882
  </rtg-card>
6878
- `}renderEmailSection(){return this.isVerifyingEmail?this.renderVerificationForm("email",()=>(this.isVerifyingEmail=!1,this.isEditingEmail=!0)):this.isEditingEmail?this.renderEditForm("email","Email",()=>(this.isVerifyingEmail=!0,this.isEditingEmail=!1),()=>this.isEditingEmail=!1):this.renderDisplayRow("Email",this.account.email,()=>this.isEditingEmail=!0)}renderPhoneSection(){return this.isVerifyingPhone?this.renderVerificationForm("phone",()=>(this.isVerifyingPhone=!1,this.isEditingPhone=!0)):this.isEditingPhone?this.renderEditForm("phone","Phone Number",()=>(this.isVerifyingPhone=!0,this.isEditingPhone=!1),()=>this.isEditingPhone=!1):this.renderDisplayRow("Phone number",this.account.phone,()=>this.isEditingPhone=!0)}renderHeader(){var o,n,h,u,g,y,w,E,C,S,k,O;const{class:t,style:r}=I(Ls,{},(g=(u=(h=(n=(o=this.customizations)==null?void 0:o.byType)==null?void 0:n.userProfile)==null?void 0:h.userProfileCard)==null?void 0:u.header)==null?void 0:g.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),{class:i,style:s}=I(Ns,{},(S=(C=(E=(w=(y=this.customizations)==null?void 0:y.byType)==null?void 0:w.userProfile)==null?void 0:E.userProfileCard)==null?void 0:C.header)==null?void 0:S.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations);return d`
6883
+ `}renderEmailSection(){return this.isVerifyingEmail?this.renderVerificationForm("email",()=>(this.isVerifyingEmail=!1,this.isEditingEmail=!0)):this.isEditingEmail?this.renderEditForm("email","Email",()=>(this.isVerifyingEmail=!0,this.isEditingEmail=!1),()=>this.isEditingEmail=!1):this.renderDisplayRow("Email",this.account.email,()=>this.isEditingEmail=!0)}renderPhoneSection(){return this.isVerifyingPhone?this.renderVerificationForm("phone",()=>(this.isVerifyingPhone=!1,this.isEditingPhone=!0)):this.isEditingPhone?this.renderEditForm("phone","Phone Number",()=>(this.isVerifyingPhone=!0,this.isEditingPhone=!1),()=>this.isEditingPhone=!1):this.renderDisplayRow("Phone number",this.account.phone,()=>this.isEditingPhone=!0)}renderHeader(){var o,n,h,p,g,y,w,E,C,S,k,O;const{class:t,style:r}=I(Ls,{},(g=(p=(h=(n=(o=this.customizations)==null?void 0:o.byType)==null?void 0:n.userProfile)==null?void 0:h.userProfileCard)==null?void 0:p.header)==null?void 0:g.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),{class:i,style:s}=I(Ns,{},(S=(C=(E=(w=(y=this.customizations)==null?void 0:y.byType)==null?void 0:w.userProfile)==null?void 0:E.userProfileCard)==null?void 0:C.header)==null?void 0:S.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations);return d`
6879
6884
  <rtg-card-header
6880
6885
  customClass=${t}
6881
6886
  customStyle=${R(r)}
@@ -6933,7 +6938,7 @@ body {
6933
6938
  </div>
6934
6939
  </rtg-card-content>
6935
6940
  </rtg-card>
6936
- `}createRenderRoot(){return this}};xt([a({type:Object})],exports.SbAccountInfo.prototype,"account",2);xt([a({type:Boolean})],exports.SbAccountInfo.prototype,"showAvatarMenu",2);xt([a({type:Object})],exports.SbAccountInfo.prototype,"customizations",2);xt([a({type:Function})],exports.SbAccountInfo.prototype,"toggleAvatarMenu",2);xt([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarChange",2);xt([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarRemove",2);xt([a({type:Boolean})],exports.SbAccountInfo.prototype,"showIcons",2);xt([a({type:Object})],exports.SbAccountInfo.prototype,"content",2);xt([a({type:String})],exports.SbAccountInfo.prototype,"otpVariant",2);xt([a({type:Number})],exports.SbAccountInfo.prototype,"otpLength",2);xt([a({type:String})],exports.SbAccountInfo.prototype,"layout",2);xt([x()],exports.SbAccountInfo.prototype,"isEditingEmail",2);xt([x()],exports.SbAccountInfo.prototype,"isVerifyingEmail",2);xt([x()],exports.SbAccountInfo.prototype,"isEditingPhone",2);xt([x()],exports.SbAccountInfo.prototype,"isVerifyingPhone",2);exports.SbAccountInfo=xt([p("sb-account-info")],exports.SbAccountInfo);var wm=Object.defineProperty,_m=Object.getOwnPropertyDescriptor,$r=(e,t,r,i)=>{for(var s=i>1?void 0:i?_m(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&wm(t,r,s),s};exports.SbPersonalInfo=class extends v{constructor(){super(...arguments),this.customizations=null,this.showIcons=!0,this.layout=Ot.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Vt("default",this.customizations),r=Vt("outline",this.customizations),i=Vt("ghost",this.customizations),s=I(Ms,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),o=I(qs,{},r,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=I(Ln,{},i,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:s,outlineMapped:o,ghostMapped:n}}getInputStyles(t=!1){var i,s,o;const r=t?Bs:Z(js);return I(r,{},(o=(s=(i=this.customizations)==null?void 0:i.byType)==null?void 0:s.inputs)==null?void 0:o.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,r,i;return I(Z(zs,this.layout!==Ot.ROW?"sb-basis-auto":""),{},(i=(r=(t=this.customizations)==null?void 0:t.byType)==null?void 0:r.labels)==null?void 0:i.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var r,i,s,o,n,h,u,g;return I(Z(t?Us+" sb-mb-4":Ds),{},t?(o=(s=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:s.userProfileCard)==null?void 0:o.editForm:(g=(u=(h=(n=this.customizations)==null?void 0:n.byType)==null?void 0:h.userProfile)==null?void 0:u.userProfileCard)==null?void 0:g.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const r=this.getInputStyles(this.isEditing);return d`
6941
+ `}createRenderRoot(){return this}};xt([a({type:Object})],exports.SbAccountInfo.prototype,"account",2);xt([a({type:Boolean})],exports.SbAccountInfo.prototype,"showAvatarMenu",2);xt([a({type:Object})],exports.SbAccountInfo.prototype,"customizations",2);xt([a({type:Function})],exports.SbAccountInfo.prototype,"toggleAvatarMenu",2);xt([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarChange",2);xt([a({type:Function})],exports.SbAccountInfo.prototype,"onAvatarRemove",2);xt([a({type:Boolean})],exports.SbAccountInfo.prototype,"showIcons",2);xt([a({type:Object})],exports.SbAccountInfo.prototype,"content",2);xt([a({type:String})],exports.SbAccountInfo.prototype,"otpVariant",2);xt([a({type:Number})],exports.SbAccountInfo.prototype,"otpLength",2);xt([a({type:String})],exports.SbAccountInfo.prototype,"layout",2);xt([x()],exports.SbAccountInfo.prototype,"isEditingEmail",2);xt([x()],exports.SbAccountInfo.prototype,"isVerifyingEmail",2);xt([x()],exports.SbAccountInfo.prototype,"isEditingPhone",2);xt([x()],exports.SbAccountInfo.prototype,"isVerifyingPhone",2);exports.SbAccountInfo=xt([u("sb-account-info")],exports.SbAccountInfo);var wm=Object.defineProperty,_m=Object.getOwnPropertyDescriptor,Cr=(e,t,r,i)=>{for(var s=i>1?void 0:i?_m(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&wm(t,r,s),s};exports.SbPersonalInfo=class extends v{constructor(){super(...arguments),this.customizations=null,this.showIcons=!0,this.layout=Ot.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Vt("default",this.customizations),r=Vt("outline",this.customizations),i=Vt("ghost",this.customizations),s=I(Ms,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),o=I(qs,{},r,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=I(Ln,{},i,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:s,outlineMapped:o,ghostMapped:n}}getInputStyles(t=!1){var i,s,o;const r=t?Bs:Z(Us);return I(r,{},(o=(s=(i=this.customizations)==null?void 0:i.byType)==null?void 0:s.inputs)==null?void 0:o.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,r,i;return I(Z(zs,this.layout!==Ot.ROW?"sb-basis-auto":""),{},(i=(r=(t=this.customizations)==null?void 0:t.byType)==null?void 0:r.labels)==null?void 0:i.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var r,i,s,o,n,h,p,g;return I(Z(t?js+" sb-mb-4":Ds),{},t?(o=(s=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:s.userProfileCard)==null?void 0:o.editForm:(g=(p=(h=(n=this.customizations)==null?void 0:n.byType)==null?void 0:h.userProfile)==null?void 0:p.userProfileCard)==null?void 0:g.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const r=this.getInputStyles(this.isEditing);return d`
6937
6942
  <rtg-input
6938
6943
  customClass="${r.class}"
6939
6944
  customStyle="${R(r.style)}"
@@ -6962,7 +6967,7 @@ body {
6962
6967
  Cancel
6963
6968
  </rtg-button>
6964
6969
  </rtg-card-footer>
6965
- `}render(){var w,E,C,S,k,O,A,F,V,M,J,it,st,U;const t=[{label:"Username",value:this.personal.username},{label:"First name",value:this.personal.first},{label:"Middle name",value:this.personal.middle},{label:"Last name",value:this.personal.last},{label:"Nickname",value:this.personal.nickname},{label:"Gender",value:this.personal.gender},{label:"Bio",value:this.personal.bio}],r=this.getContainerStyles(!1),i=this.getContainerStyles(!0),{defaultMapped:s,outlineMapped:o,ghostMapped:n}=this.getButtonStyles(),h=I(Ls,{},(k=(S=(C=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:C.userProfileCard)==null?void 0:S.header)==null?void 0:k.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),u=I(Ns,{},(M=(V=(F=(A=(O=this.customizations)==null?void 0:O.byType)==null?void 0:A.userProfile)==null?void 0:F.userProfileCard)==null?void 0:V.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),g=this.getLabelStyles(),y=this.isEditing?i:r;return d`
6970
+ `}render(){var w,E,C,S,k,O,A,F,V,M,Q,it,st,j;const t=[{label:"Username",value:this.personal.username},{label:"First name",value:this.personal.first},{label:"Middle name",value:this.personal.middle},{label:"Last name",value:this.personal.last},{label:"Nickname",value:this.personal.nickname},{label:"Gender",value:this.personal.gender},{label:"Bio",value:this.personal.bio}],r=this.getContainerStyles(!1),i=this.getContainerStyles(!0),{defaultMapped:s,outlineMapped:o,ghostMapped:n}=this.getButtonStyles(),h=I(Ls,{},(k=(S=(C=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:C.userProfileCard)==null?void 0:S.header)==null?void 0:k.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),p=I(Ns,{},(M=(V=(F=(A=(O=this.customizations)==null?void 0:O.byType)==null?void 0:A.userProfile)==null?void 0:F.userProfileCard)==null?void 0:V.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),g=this.getLabelStyles(),y=this.isEditing?i:r;return d`
6966
6971
  <rtg-card
6967
6972
  customClass=${y.class}
6968
6973
  customStyle=${R(y.style)}
@@ -6973,13 +6978,13 @@ body {
6973
6978
  customStyle=${R(h.style)}
6974
6979
  >
6975
6980
  <rtg-card-title
6976
- customClass=${u.class}
6977
- customStyle=${R(u.style)}
6981
+ customClass=${p.class}
6982
+ customStyle=${R(p.style)}
6978
6983
  >
6979
- ${(J=this.content)!=null&&J.icon?(it=this.content)==null?void 0:it.icon:um()}
6984
+ ${(Q=this.content)!=null&&Q.icon?(it=this.content)==null?void 0:it.icon:pm()}
6980
6985
 
6981
6986
  <span>
6982
- ${(st=this.content)!=null&&st.title?(U=this.content)==null?void 0:U.title:"Personal Info"}
6987
+ ${(st=this.content)!=null&&st.title?(j=this.content)==null?void 0:j.title:"Personal Info"}
6983
6988
  </span>
6984
6989
  </rtg-card-title>
6985
6990
  ${this.isEditing?null:d`
@@ -6991,7 +6996,7 @@ body {
6991
6996
  customClass=${n.class}
6992
6997
  customStyle=${R(n.style)}
6993
6998
  >
6994
- ${$i()}
6999
+ ${Ei()}
6995
7000
  </rtg-button>
6996
7001
  `}
6997
7002
  </rtg-card-header>
@@ -7018,7 +7023,7 @@ body {
7018
7023
  <!-- Footer -->
7019
7024
  ${this.isEditing?this.renderFooter(s,o):null}
7020
7025
  </rtg-card>
7021
- `}};$r([a({type:Object})],exports.SbPersonalInfo.prototype,"personal",2);$r([a({type:Object})],exports.SbPersonalInfo.prototype,"customizations",2);$r([a({type:Boolean})],exports.SbPersonalInfo.prototype,"showIcons",2);$r([a({type:String})],exports.SbPersonalInfo.prototype,"layout",2);$r([a({type:Object})],exports.SbPersonalInfo.prototype,"content",2);$r([x()],exports.SbPersonalInfo.prototype,"isEditing",2);exports.SbPersonalInfo=$r([p("sb-personal-info")],exports.SbPersonalInfo);var xm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Cr=(e,t,r,i)=>{for(var s=i>1?void 0:i?Sm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&xm(t,r,s),s};exports.SbLocationInfo=class extends v{constructor(){super(...arguments),this.customizations=null,this.showIcons=!0,this.layout=Ot.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Vt("default",this.customizations),r=Vt("outline",this.customizations),i=Vt("ghost",this.customizations),s=I(Ms,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),o=I(qs,{},r,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=I(Ln,{},i,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:s,outlineMapped:o,ghostMapped:n}}getInputStyles(t=!1){var i,s,o;const r=t?Bs:Z(js);return I(r,{},(o=(s=(i=this.customizations)==null?void 0:i.byType)==null?void 0:s.inputs)==null?void 0:o.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,r,i;return I(Z(zs,this.layout!==Ot.ROW?"sb-basis-auto":""),{},(i=(r=(t=this.customizations)==null?void 0:t.byType)==null?void 0:r.labels)==null?void 0:i.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var r,i,s,o,n,h,u,g;return I(Z(t?Us+" sb-mb-4":Ds),{},t?(o=(s=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:s.userProfileCard)==null?void 0:o.editForm:(g=(u=(h=(n=this.customizations)==null?void 0:n.byType)==null?void 0:h.userProfile)==null?void 0:u.userProfileCard)==null?void 0:g.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const r=this.getInputStyles(this.isEditing);return d`
7026
+ `}};Cr([a({type:Object})],exports.SbPersonalInfo.prototype,"personal",2);Cr([a({type:Object})],exports.SbPersonalInfo.prototype,"customizations",2);Cr([a({type:Boolean})],exports.SbPersonalInfo.prototype,"showIcons",2);Cr([a({type:String})],exports.SbPersonalInfo.prototype,"layout",2);Cr([a({type:Object})],exports.SbPersonalInfo.prototype,"content",2);Cr([x()],exports.SbPersonalInfo.prototype,"isEditing",2);exports.SbPersonalInfo=Cr([u("sb-personal-info")],exports.SbPersonalInfo);var xm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Er=(e,t,r,i)=>{for(var s=i>1?void 0:i?Sm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&xm(t,r,s),s};exports.SbLocationInfo=class extends v{constructor(){super(...arguments),this.customizations=null,this.showIcons=!0,this.layout=Ot.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Vt("default",this.customizations),r=Vt("outline",this.customizations),i=Vt("ghost",this.customizations),s=I(Ms,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),o=I(qs,{},r,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=I(Ln,{},i,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:s,outlineMapped:o,ghostMapped:n}}getInputStyles(t=!1){var i,s,o;const r=t?Bs:Z(Us);return I(r,{},(o=(s=(i=this.customizations)==null?void 0:i.byType)==null?void 0:s.inputs)==null?void 0:o.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,r,i;return I(Z(zs,this.layout!==Ot.ROW?"sb-basis-auto":""),{},(i=(r=(t=this.customizations)==null?void 0:t.byType)==null?void 0:r.labels)==null?void 0:i.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var r,i,s,o,n,h,p,g;return I(Z(t?js+" sb-mb-4":Ds),{},t?(o=(s=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:s.userProfileCard)==null?void 0:o.editForm:(g=(p=(h=(n=this.customizations)==null?void 0:n.byType)==null?void 0:h.userProfile)==null?void 0:p.userProfileCard)==null?void 0:g.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const r=this.getInputStyles(this.isEditing);return d`
7022
7027
  <rtg-input
7023
7028
  customClass="${r.class}"
7024
7029
  customStyle="${R(r.style)}"
@@ -7047,7 +7052,7 @@ body {
7047
7052
  Cancel
7048
7053
  </rtg-button>
7049
7054
  </rtg-card-footer>
7050
- `}render(){var w,E,C,S,k,O,A,F,V,M,J,it;const t=[{label:"Location",value:this.locationInfo.location},{label:"Zone Info",value:this.locationInfo.zoneInfo}],r=this.getContainerStyles(!1),i=this.getContainerStyles(!0),{defaultMapped:s,outlineMapped:o,ghostMapped:n}=this.getButtonStyles(),h=I(Ls,{},(k=(S=(C=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:C.userProfileCard)==null?void 0:S.header)==null?void 0:k.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),u=I(Ns,{},(M=(V=(F=(A=(O=this.customizations)==null?void 0:O.byType)==null?void 0:A.userProfile)==null?void 0:F.userProfileCard)==null?void 0:V.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),g=this.getLabelStyles(),y=this.isEditing?i:r;return d`
7055
+ `}render(){var w,E,C,S,k,O,A,F,V,M,Q,it;const t=[{label:"Location",value:this.locationInfo.location},{label:"Zone Info",value:this.locationInfo.zoneInfo}],r=this.getContainerStyles(!1),i=this.getContainerStyles(!0),{defaultMapped:s,outlineMapped:o,ghostMapped:n}=this.getButtonStyles(),h=I(Ls,{},(k=(S=(C=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:C.userProfileCard)==null?void 0:S.header)==null?void 0:k.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),p=I(Ns,{},(M=(V=(F=(A=(O=this.customizations)==null?void 0:O.byType)==null?void 0:A.userProfile)==null?void 0:F.userProfileCard)==null?void 0:V.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),g=this.getLabelStyles(),y=this.isEditing?i:r;return d`
7051
7056
  <rtg-card
7052
7057
  customClass=${y.class}
7053
7058
  customStyle=${R(y.style)}
@@ -7058,10 +7063,10 @@ body {
7058
7063
  customStyle=${R(h.style)}
7059
7064
  >
7060
7065
  <rtg-card-title
7061
- customClass=${u.class}
7062
- customStyle=${R(u.style)}
7066
+ customClass=${p.class}
7067
+ customStyle=${R(p.style)}
7063
7068
  >
7064
- ${(J=this.content)!=null&&J.icon?this.content.icon:pm()}
7069
+ ${(Q=this.content)!=null&&Q.icon?this.content.icon:um()}
7065
7070
  <span>
7066
7071
  ${(it=this.content)!=null&&it.title?this.content.title:"Location"}
7067
7072
  </span>
@@ -7075,7 +7080,7 @@ body {
7075
7080
  customClass=${n.class}
7076
7081
  customStyle=${R(n.style)}
7077
7082
  >
7078
- ${$i()}
7083
+ ${Ei()}
7079
7084
  </rtg-button>
7080
7085
  `}
7081
7086
  </rtg-card-header>
@@ -7103,7 +7108,7 @@ body {
7103
7108
  <!-- Footer -->
7104
7109
  ${this.isEditing?this.renderFooter(s,o):null}
7105
7110
  </rtg-card>
7106
- `}};Cr([a({type:Object})],exports.SbLocationInfo.prototype,"locationInfo",2);Cr([a({type:Object})],exports.SbLocationInfo.prototype,"customizations",2);Cr([a({type:Boolean})],exports.SbLocationInfo.prototype,"showIcons",2);Cr([a({type:String})],exports.SbLocationInfo.prototype,"layout",2);Cr([a({type:Object})],exports.SbLocationInfo.prototype,"content",2);Cr([x()],exports.SbLocationInfo.prototype,"isEditing",2);exports.SbLocationInfo=Cr([p("sb-location-info")],exports.SbLocationInfo);var $m=Object.defineProperty,Cm=Object.getOwnPropertyDescriptor,Er=(e,t,r,i)=>{for(var s=i>1?void 0:i?Cm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&$m(t,r,s),s};exports.SbUrlsInfo=class extends v{constructor(){super(...arguments),this.showIcons=!0,this.customizations=null,this.layout=Ot.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Vt("default",this.customizations),r=Vt("outline",this.customizations),i=Vt("ghost",this.customizations),s=I(Ms,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),o=I(qs,{},r,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=I(Ln,{},i,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:s,outlineMapped:o,ghostMapped:n}}getInputStyles(t=!1){var i,s,o;const r=t?Bs:Z(js);return I(r,{},(o=(s=(i=this.customizations)==null?void 0:i.byType)==null?void 0:s.inputs)==null?void 0:o.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,r,i;return I(Z(zs,this.layout!==Ot.ROW?"sb-basis-auto":""),{},(i=(r=(t=this.customizations)==null?void 0:t.byType)==null?void 0:r.labels)==null?void 0:i.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var r,i,s,o,n,h,u,g;return I(Z(t?Us:Ds,"!sb-mb-0"),{},t?(o=(s=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:s.userProfileCard)==null?void 0:o.editForm:(g=(u=(h=(n=this.customizations)==null?void 0:n.byType)==null?void 0:h.userProfile)==null?void 0:u.userProfileCard)==null?void 0:g.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const r=this.getInputStyles(this.isEditing);return d`
7111
+ `}};Er([a({type:Object})],exports.SbLocationInfo.prototype,"locationInfo",2);Er([a({type:Object})],exports.SbLocationInfo.prototype,"customizations",2);Er([a({type:Boolean})],exports.SbLocationInfo.prototype,"showIcons",2);Er([a({type:String})],exports.SbLocationInfo.prototype,"layout",2);Er([a({type:Object})],exports.SbLocationInfo.prototype,"content",2);Er([x()],exports.SbLocationInfo.prototype,"isEditing",2);exports.SbLocationInfo=Er([u("sb-location-info")],exports.SbLocationInfo);var $m=Object.defineProperty,Cm=Object.getOwnPropertyDescriptor,kr=(e,t,r,i)=>{for(var s=i>1?void 0:i?Cm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&$m(t,r,s),s};exports.SbUrlsInfo=class extends v{constructor(){super(...arguments),this.showIcons=!0,this.customizations=null,this.layout=Ot.ROW,this.content=null,this.isEditing=!1}handleEdit(){this.isEditing=!0}handleCancel(){this.isEditing=!1}handleSave(){this.isEditing=!1}createRenderRoot(){return this}getButtonStyles(){const t=Vt("default",this.customizations),r=Vt("outline",this.customizations),i=Vt("ghost",this.customizations),s=I(Ms,{},t,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),o=I(qs,{},r,T.USER_PROFILE_DEFAULT_BUTTON,this.customizations),n=I(Ln,{},i,T.USER_PROFILE_EDIT_BUTTON,this.customizations);return{defaultMapped:s,outlineMapped:o,ghostMapped:n}}getInputStyles(t=!1){var i,s,o;const r=t?Bs:Z(Us);return I(r,{},(o=(s=(i=this.customizations)==null?void 0:i.byType)==null?void 0:s.inputs)==null?void 0:o.inputField,t?T.USER_PROFILE_EDITABLE_INPUT_FIELD:T.USER_PROFILE_INPUT_FIELD,this.customizations)}getLabelStyles(){var t,r,i;return I(Z(zs,this.layout!==Ot.ROW?"sb-basis-auto":""),{},(i=(r=(t=this.customizations)==null?void 0:t.byType)==null?void 0:r.labels)==null?void 0:i.inputLabel,T.USER_PROFILE_INPUT_LABEL,this.customizations)}getContainerStyles(t){var r,i,s,o,n,h,p,g;return I(Z(t?js:Ds,"!sb-mb-0"),{},t?(o=(s=(i=(r=this.customizations)==null?void 0:r.byType)==null?void 0:i.userProfile)==null?void 0:s.userProfileCard)==null?void 0:o.editForm:(g=(p=(h=(n=this.customizations)==null?void 0:n.byType)==null?void 0:h.userProfile)==null?void 0:p.userProfileCard)==null?void 0:g.container,t?T.USER_PROFILE_EDIT_FORM:T.USER_PROFILE_CARD_CONTAINER,this.customizations)}renderInput(t){const r=this.getInputStyles(this.isEditing);return d`
7107
7112
  <rtg-input
7108
7113
  customClass="${r.class}"
7109
7114
  customStyle="${R(r.style)}"
@@ -7132,7 +7137,7 @@ body {
7132
7137
  Cancel
7133
7138
  </rtg-button>
7134
7139
  </rtg-card-footer>
7135
- `}render(){var w,E,C,S,k,O,A,F,V,M,J,it;const t=[{label:"Website",value:this.URLsInfo.website}],r=this.getContainerStyles(!1),i=this.getContainerStyles(!0),{defaultMapped:s,outlineMapped:o,ghostMapped:n}=this.getButtonStyles(),h=I(Ls,{},(k=(S=(C=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:C.userProfileCard)==null?void 0:S.header)==null?void 0:k.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),u=I(Ns,{},(M=(V=(F=(A=(O=this.customizations)==null?void 0:O.byType)==null?void 0:A.userProfile)==null?void 0:F.userProfileCard)==null?void 0:V.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),g=this.getLabelStyles(),y=this.isEditing?i:r;return d`
7140
+ `}render(){var w,E,C,S,k,O,A,F,V,M,Q,it;const t=[{label:"Website",value:this.URLsInfo.website}],r=this.getContainerStyles(!1),i=this.getContainerStyles(!0),{defaultMapped:s,outlineMapped:o,ghostMapped:n}=this.getButtonStyles(),h=I(Ls,{},(k=(S=(C=(E=(w=this.customizations)==null?void 0:w.byType)==null?void 0:E.userProfile)==null?void 0:C.userProfileCard)==null?void 0:S.header)==null?void 0:k.container,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),p=I(Ns,{},(M=(V=(F=(A=(O=this.customizations)==null?void 0:O.byType)==null?void 0:A.userProfile)==null?void 0:F.userProfileCard)==null?void 0:V.header)==null?void 0:M.title,T.USER_PROFILE_CARD_HEADER_CONTAINER,this.customizations),g=this.getLabelStyles(),y=this.isEditing?i:r;return d`
7136
7141
  <rtg-card
7137
7142
  customClass=${y.class}
7138
7143
  customStyle=${R(y.style)}
@@ -7143,10 +7148,10 @@ body {
7143
7148
  customStyle=${R(h.style)}
7144
7149
  >
7145
7150
  <rtg-card-title
7146
- customClass=${u.class}
7147
- customStyle=${R(u.style)}
7151
+ customClass=${p.class}
7152
+ customStyle=${R(p.style)}
7148
7153
  >
7149
- ${(J=this.content)!=null&&J.icon?this.content.icon:gm()}
7154
+ ${(Q=this.content)!=null&&Q.icon?this.content.icon:gm()}
7150
7155
  <span>${((it=this.content)==null?void 0:it.title)??"URLs"}</span>
7151
7156
  </rtg-card-title>
7152
7157
 
@@ -7159,7 +7164,7 @@ body {
7159
7164
  customClass=${n.class}
7160
7165
  customStyle=${R(n.style)}
7161
7166
  >
7162
- ${$i()}
7167
+ ${Ei()}
7163
7168
  </rtg-button>
7164
7169
  `}
7165
7170
  </rtg-card-header>
@@ -7187,7 +7192,7 @@ body {
7187
7192
  <!-- Footer -->
7188
7193
  ${this.isEditing?this.renderFooter(s,o):null}
7189
7194
  </rtg-card>
7190
- `}};Er([a({type:Object})],exports.SbUrlsInfo.prototype,"URLsInfo",2);Er([a({type:Boolean})],exports.SbUrlsInfo.prototype,"showIcons",2);Er([a({type:Object})],exports.SbUrlsInfo.prototype,"customizations",2);Er([a({type:String})],exports.SbUrlsInfo.prototype,"layout",2);Er([a({type:Object})],exports.SbUrlsInfo.prototype,"content",2);Er([x()],exports.SbUrlsInfo.prototype,"isEditing",2);exports.SbUrlsInfo=Er([p("sb-urls-info")],exports.SbUrlsInfo);var Em=Object.defineProperty,km=Object.getOwnPropertyDescriptor,ft=(e,t,r,i)=>{for(var s=i>1?void 0:i?km(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Em(t,r,s),s};exports.Profile=class extends v{constructor(){super(...arguments),this.showAvatarMenu=!1,this.customizations=null,this.showIcons=!0,this.orientation=Xt.HORIZONTAL,this.sidebarDisplayType=qt.REGULAR,this.mode=Ne==null?void 0:Ne.PAGE,this.widgetsLayout=Ot.ROW,this.content=null}createRenderRoot(){return this}render(){var i,s,o,n;return d`
7195
+ `}};kr([a({type:Object})],exports.SbUrlsInfo.prototype,"URLsInfo",2);kr([a({type:Boolean})],exports.SbUrlsInfo.prototype,"showIcons",2);kr([a({type:Object})],exports.SbUrlsInfo.prototype,"customizations",2);kr([a({type:String})],exports.SbUrlsInfo.prototype,"layout",2);kr([a({type:Object})],exports.SbUrlsInfo.prototype,"content",2);kr([x()],exports.SbUrlsInfo.prototype,"isEditing",2);exports.SbUrlsInfo=kr([u("sb-urls-info")],exports.SbUrlsInfo);var Em=Object.defineProperty,km=Object.getOwnPropertyDescriptor,ft=(e,t,r,i)=>{for(var s=i>1?void 0:i?km(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Em(t,r,s),s};exports.Profile=class extends v{constructor(){super(...arguments),this.showAvatarMenu=!1,this.customizations=null,this.showIcons=!0,this.orientation=Xt.HORIZONTAL,this.sidebarDisplayType=qt.REGULAR,this.mode=Ne==null?void 0:Ne.PAGE,this.widgetsLayout=Ot.ROW,this.content=null}createRenderRoot(){return this}render(){var i,s,o,n;return d`
7191
7196
  ${this.orientation===Xt.VERTICAL||this.sidebarDisplayType===qt.BURGER?null:d`
7192
7197
  <div class=${"sb-flex sb-items-center sb-justify-between sb-mb-4"}>
7193
7198
  <div class=${"sb-font-medium sb-text-[18px] sb-text-foreground"}>Profile</div>
@@ -7221,21 +7226,21 @@ body {
7221
7226
  .URLsInfo=${this.urls}
7222
7227
  .layout=${this.widgetsLayout}
7223
7228
  ></sb-urls-info>
7224
- `}};ft([a({type:Object})],exports.Profile.prototype,"account",2);ft([a({type:Object})],exports.Profile.prototype,"personal",2);ft([a({type:Object})],exports.Profile.prototype,"location",2);ft([a({type:Object})],exports.Profile.prototype,"urls",2);ft([a({type:Boolean})],exports.Profile.prototype,"showAvatarMenu",2);ft([a({type:Object})],exports.Profile.prototype,"customizations",2);ft([a({type:Boolean})],exports.Profile.prototype,"showIcons",2);ft([a({attribute:!1})],exports.Profile.prototype,"modalIcon",2);ft([a({type:String})],exports.Profile.prototype,"orientation",2);ft([a({type:String})],exports.Profile.prototype,"sidebarDisplayType",2);ft([a({type:String})],exports.Profile.prototype,"mode",2);ft([a({type:String})],exports.Profile.prototype,"widgetsLayout",2);ft([a({type:Function})],exports.Profile.prototype,"toggleAvatarMenu",2);ft([a({type:Function})],exports.Profile.prototype,"onAvatarChange",2);ft([a({type:Function})],exports.Profile.prototype,"onAvatarRemove",2);ft([a({type:Object})],exports.Profile.prototype,"content",2);exports.Profile=ft([p("sb-profile")],exports.Profile);const Rm="!sb-bg-background",pd={vertical:"sb-justify-between sb-w-full",horizontal:"sb-flex-col !sb-items-start sb-mx-4 md:sb-ml-6"},Im="sb-p-2 sb-mb-4 sb-rounded-lg sb-border-muted sb-bg-background",Om="sb-font-medium sb-ml-2 -sb-mt-4 sb-text-[18px] sb-text-foreground",Am="mobile-sidebar-drawer sb-fixed sb-top-0 sb-left-0 sb-h-full sb-max-w-xs sb-bg-background sb-shadow-lg sb-z-[9999] sb-transform sb-transition-all sb-duration-300 sb-ease-in-out",Pm="mobile-sidebar-overlay sb-fixed sb-inset-0 sb-bg-black/50 sb-z-[9998] sb-transition-opacity sb-duration-300 sb-ease-in-out";var Fm=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,kr=(e,t,r,i)=>{for(var s=i>1?void 0:i?Tm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Fm(t,r,s),s};const Ho=[{label:"Profile",value:tn.PROFILE},{label:"Security",value:tn.SECURITY}];let je=class extends v{constructor(){super(...arguments),this.orientation=Xt.HORIZONTAL,this.displayType=qt.REGULAR,this.mode=Ne.PAGE,this.config={showIcons:!0},this.customizations=null,this.isMenuOpen=!1}createRenderRoot(){return this}toggleMenu(){const e=this.closest('div[role="tab"]');e&&e.classList.toggle("sb-rotate-0"),this.isMenuOpen=!this.isMenuOpen,this.requestUpdate()}handleCloseProfile(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}renderTabs(e=Ho,t=!1,r){var o,n,h;const{class:i,style:s}=I("",{},(h=(n=(o=this.customizations)==null?void 0:o.byType)==null?void 0:n.userProfile)==null?void 0:h.sidebarTabs,T.USER_PROFILE_SIDEBAR_TABS,this.customizations);return d`
7229
+ `}};ft([a({type:Object})],exports.Profile.prototype,"account",2);ft([a({type:Object})],exports.Profile.prototype,"personal",2);ft([a({type:Object})],exports.Profile.prototype,"location",2);ft([a({type:Object})],exports.Profile.prototype,"urls",2);ft([a({type:Boolean})],exports.Profile.prototype,"showAvatarMenu",2);ft([a({type:Object})],exports.Profile.prototype,"customizations",2);ft([a({type:Boolean})],exports.Profile.prototype,"showIcons",2);ft([a({attribute:!1})],exports.Profile.prototype,"modalIcon",2);ft([a({type:String})],exports.Profile.prototype,"orientation",2);ft([a({type:String})],exports.Profile.prototype,"sidebarDisplayType",2);ft([a({type:String})],exports.Profile.prototype,"mode",2);ft([a({type:String})],exports.Profile.prototype,"widgetsLayout",2);ft([a({type:Function})],exports.Profile.prototype,"toggleAvatarMenu",2);ft([a({type:Function})],exports.Profile.prototype,"onAvatarChange",2);ft([a({type:Function})],exports.Profile.prototype,"onAvatarRemove",2);ft([a({type:Object})],exports.Profile.prototype,"content",2);exports.Profile=ft([u("sb-profile")],exports.Profile);const Rm="!sb-bg-background",ud={vertical:"sb-justify-between sb-w-full",horizontal:"sb-flex-col !sb-items-start sb-mx-4 md:sb-ml-6"},Im="sb-p-2 sb-mb-4 sb-rounded-lg sb-border-muted sb-bg-background",Om="sb-font-medium sb-ml-2 -sb-mt-4 sb-text-[18px] sb-text-foreground",Am="mobile-sidebar-drawer sb-fixed sb-top-0 sb-left-0 sb-h-full sb-max-w-xs sb-bg-background sb-shadow-lg sb-z-[9999] sb-transform sb-transition-all sb-duration-300 sb-ease-in-out",Pm="mobile-sidebar-overlay sb-fixed sb-inset-0 sb-bg-black/50 sb-z-[9998] sb-transition-opacity sb-duration-300 sb-ease-in-out";var Fm=Object.defineProperty,Tm=Object.getOwnPropertyDescriptor,Rr=(e,t,r,i)=>{for(var s=i>1?void 0:i?Tm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Fm(t,r,s),s};const Ho=[{label:"Profile",value:tn.PROFILE},{label:"Security",value:tn.SECURITY}];let Ue=class extends v{constructor(){super(...arguments),this.orientation=Xt.HORIZONTAL,this.displayType=qt.REGULAR,this.mode=Ne.PAGE,this.config={showIcons:!0},this.customizations=null,this.isMenuOpen=!1}createRenderRoot(){return this}toggleMenu(){const e=this.closest('div[role="tab"]');e&&e.classList.toggle("sb-rotate-0"),this.isMenuOpen=!this.isMenuOpen,this.requestUpdate()}handleCloseProfile(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}renderTabs(e=Ho,t=!1,r){var o,n,h;const{class:i,style:s}=I("",{},(h=(n=(o=this.customizations)==null?void 0:o.byType)==null?void 0:n.userProfile)==null?void 0:h.sidebarTabs,T.USER_PROFILE_SIDEBAR_TABS,this.customizations);return d`
7225
7230
  <rtg-tab-list
7226
7231
  orientation=${t?"vertical":"horizontal"}
7227
7232
  class="sb-flex sb-w-full ${t?"":"sb-mb-4"}"
7228
7233
  customStyle="${R(s)}"
7229
- customClass="${Z(Rm,t?Au:Ou,i)}"
7234
+ customClass="${Z(Rm,t?Ap:Op,i)}"
7230
7235
  >
7231
- ${e.map(u=>d`
7236
+ ${e.map(p=>d`
7232
7237
  <div class=${t?"sb-mb-2":""}>
7233
7238
  <rtg-tab-trigger
7234
- customClass="${Iu}"
7235
- value=${u.value}
7239
+ customClass="${Ip}"
7240
+ value=${p.value}
7236
7241
  @tab-trigger-click=${r}
7237
7242
  >
7238
- ${u.label}
7243
+ ${p.label}
7239
7244
  </rtg-tab-trigger>
7240
7245
  </div>
7241
7246
  `)}
@@ -7268,7 +7273,7 @@ body {
7268
7273
  `}render(){var s,o,n;const e=this.orientation===Xt.VERTICAL,t=this.orientation===Xt.HORIZONTAL,{class:r,style:i}=I("",{},(n=(o=(s=this.customizations)==null?void 0:s.byType)==null?void 0:o.userProfile)==null?void 0:n.sidebar,T.USER_PROFILE_SIDEBAR,this.customizations);return d`
7269
7274
  <div
7270
7275
  style="${R(i)}"
7271
- class="${Z("sb-overflow-x-auto sb-flex sb-items-center sb-h-[100%]",e?pd.vertical:pd.horizontal,r)}"
7276
+ class="${Z("sb-overflow-x-auto sb-flex sb-items-center sb-h-[100%]",e?ud.vertical:ud.horizontal,r)}"
7272
7277
  >
7273
7278
  ${this.displayType===qt.BURGER?this.renderBurger():null}
7274
7279
  ${e?this.renderTabs():null}
@@ -7279,7 +7284,7 @@ body {
7279
7284
  `:null}
7280
7285
  </div>
7281
7286
  ${this.displayType===qt.BURGER?this.renderMobileDrawer():null}
7282
- `}};kr([a({type:String})],je.prototype,"orientation",2);kr([a({type:String})],je.prototype,"displayType",2);kr([a({type:String})],je.prototype,"mode",2);kr([a({type:Object})],je.prototype,"config",2);kr([a({type:Object})],je.prototype,"customizations",2);kr([x()],je.prototype,"isMenuOpen",2);je=kr([p("sb-profile-sidebar")],je);var Lm=Object.defineProperty,he=(e,t,r,i)=>{for(var s=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=n(t,r,s)||s);return s&&Lm(t,r,s),s};const gd={xs:640,sm:768};class Gt extends v{constructor(){super(...arguments),this.showAvatarMenu=!1,this.orientation=Xt.HORIZONTAL,this.mobileDisplay=qt.REGULAR,this.mode=Ne.PAGE,this.widgetsLayout=Ot.ROW,this.content=null,this.customizations=null,this.providedCustomizations=null,this.isOpen=!0,this.currentBreakpoint="md",this.account={email:"J.Doe@gmail.com",phone:"+989390717800",avatar:"https://github.com/shadcn.png"},this.personal={username:"@JaneeDoe",first:"Jane",middle:"Michelle",last:"Doe",nickname:"Janee",gender:"Female",bio:"-"},this.location={location:"Iran, Tehran",zoneInfo:"GMT+3:30"},this.urls={website:"www.janeedoe.com"},this.defaultTab="Profile",this._handleResize=()=>{this._updateBreakpoint()},this._handleClose=()=>{this.mode===Ne.MODAL&&(this.isOpen=!1)},this._toggleAvatarMenu=t=>{t.stopPropagation(),this.showAvatarMenu=!this.showAvatarMenu},this._handleAvatarChange=()=>{const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=r=>{var o;const i=(o=r.target.files)==null?void 0:o[0];if(!i)return;const s=new FileReader;s.onload=()=>{this.account.avatar=s.result,this.requestUpdate()},s.readAsDataURL(i)},t.click()},this._handleAvatarRemove=()=>{this.account.avatar="https://via.placeholder.com/80",this.showAvatarMenu=!1},this._handleClickOutside=t=>{if(!this.showAvatarMenu)return;const r=t.target,i=this.querySelector("sb-account-info"),s=this.querySelector("rtg-card");i!=null&&i.contains(r)||s!=null&&s.contains(r)||(this.showAvatarMenu=!1)}}connectedCallback(){super.connectedCallback(),this._updateBreakpoint(),window.addEventListener("resize",this._handleResize),document.addEventListener("remove-avatar",this._handleAvatarRemove),document.addEventListener("click",this._handleClickOutside),this.addEventListener("close-user-profile",this._handleClose),this.addEventListener("change-avatar",this._handleAvatarChange)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleResize),document.removeEventListener("remove-avatar",this._handleAvatarRemove),document.removeEventListener("click",this._handleClickOutside),this.removeEventListener("close-user-profile",this._handleClose),this.removeEventListener("change-avatar",this._handleAvatarChange)}firstUpdated(){this.style.width="100%"}_updateBreakpoint(){const t=window.innerWidth;this.currentBreakpoint=t<gd.xs?"xs":t<gd.sm?"sm":"md"}get effectiveCustomizations(){return xs(this.providedCustomizations??{},this.customizations??{})}get isModal(){return this.mode===Ne.MODAL}get sidebarDisplayType(){return this.orientation===Xt.VERTICAL||this.currentBreakpoint==="md"?qt.REGULAR:qt.BURGER}get containerClasses(){return Z(Eu,this.isModal?Ru:ku,this.isModal?Su:xu,this.sidebarDisplayType===qt.BURGER||this.orientation===Xt.VERTICAL?"!sb-flex-col":"!sb-flex-row")}get contentClasses(){return Z("sb-flex-grow",this.isModal?"sb-max-h-[864px] sb-mx-4 sb-px-2 md:sb-mx-0 md:sb-px-6 md:sb-pl-0 sb-overflow-auto":"md:sb-max-h-[100%]",this.orientation===Xt.VERTICAL?"md:sb-pl-6 sb-mb-16":"")}renderCloseButton(){return this.isModal?d`
7287
+ `}};Rr([a({type:String})],Ue.prototype,"orientation",2);Rr([a({type:String})],Ue.prototype,"displayType",2);Rr([a({type:String})],Ue.prototype,"mode",2);Rr([a({type:Object})],Ue.prototype,"config",2);Rr([a({type:Object})],Ue.prototype,"customizations",2);Rr([x()],Ue.prototype,"isMenuOpen",2);Ue=Rr([u("sb-profile-sidebar")],Ue);var Lm=Object.defineProperty,he=(e,t,r,i)=>{for(var s=void 0,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=n(t,r,s)||s);return s&&Lm(t,r,s),s};const gd={xs:640,sm:768};class Gt extends v{constructor(){super(...arguments),this.showAvatarMenu=!1,this.orientation=Xt.HORIZONTAL,this.mobileDisplay=qt.REGULAR,this.mode=Ne.PAGE,this.widgetsLayout=Ot.ROW,this.content=null,this.customizations=null,this.providedCustomizations=null,this.isOpen=!0,this.currentBreakpoint="md",this.account={email:"J.Doe@gmail.com",phone:"+989390717800",avatar:"https://github.com/shadcn.png"},this.personal={username:"@JaneeDoe",first:"Jane",middle:"Michelle",last:"Doe",nickname:"Janee",gender:"Female",bio:"-"},this.location={location:"Iran, Tehran",zoneInfo:"GMT+3:30"},this.urls={website:"www.janeedoe.com"},this.defaultTab="Profile",this._handleResize=()=>{this._updateBreakpoint()},this._handleClose=()=>{this.mode===Ne.MODAL&&(this.isOpen=!1)},this._toggleAvatarMenu=t=>{t.stopPropagation(),this.showAvatarMenu=!this.showAvatarMenu},this._handleAvatarChange=()=>{const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=r=>{var o;const i=(o=r.target.files)==null?void 0:o[0];if(!i)return;const s=new FileReader;s.onload=()=>{this.account.avatar=s.result,this.requestUpdate()},s.readAsDataURL(i)},t.click()},this._handleAvatarRemove=()=>{this.account.avatar="https://via.placeholder.com/80",this.showAvatarMenu=!1},this._handleClickOutside=t=>{if(!this.showAvatarMenu)return;const r=t.target,i=this.querySelector("sb-account-info"),s=this.querySelector("rtg-card");i!=null&&i.contains(r)||s!=null&&s.contains(r)||(this.showAvatarMenu=!1)}}connectedCallback(){super.connectedCallback(),this._updateBreakpoint(),window.addEventListener("resize",this._handleResize),document.addEventListener("remove-avatar",this._handleAvatarRemove),document.addEventListener("click",this._handleClickOutside),this.addEventListener("close-user-profile",this._handleClose),this.addEventListener("change-avatar",this._handleAvatarChange)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleResize),document.removeEventListener("remove-avatar",this._handleAvatarRemove),document.removeEventListener("click",this._handleClickOutside),this.removeEventListener("close-user-profile",this._handleClose),this.removeEventListener("change-avatar",this._handleAvatarChange)}firstUpdated(){this.style.width="100%"}_updateBreakpoint(){const t=window.innerWidth;this.currentBreakpoint=t<gd.xs?"xs":t<gd.sm?"sm":"md"}get effectiveCustomizations(){return Ss(this.providedCustomizations??{},this.customizations??{})}get isModal(){return this.mode===Ne.MODAL}get sidebarDisplayType(){return this.orientation===Xt.VERTICAL||this.currentBreakpoint==="md"?qt.REGULAR:qt.BURGER}get containerClasses(){return Z(Ep,this.isModal?Rp:kp,this.isModal?Sp:xp,this.sidebarDisplayType===qt.BURGER||this.orientation===Xt.VERTICAL?"!sb-flex-col":"!sb-flex-row")}get contentClasses(){return Z("sb-flex-grow",this.isModal?"sb-max-h-[864px] sb-mx-4 sb-px-2 md:sb-mx-0 md:sb-px-6 md:sb-pl-0 sb-overflow-auto":"md:sb-max-h-[100%]",this.orientation===Xt.VERTICAL?"md:sb-pl-6 sb-mb-16":"")}renderCloseButton(){return this.isModal?d`
7283
7288
  <button
7284
7289
  class="sb-absolute sb-bg-background sb-right-8 sb-top-8 sb-z-10"
7285
7290
  @click=${()=>this.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}
@@ -7311,7 +7316,7 @@ body {
7311
7316
 
7312
7317
  <div class=${this.contentClasses}>
7313
7318
  <div class="sb-relative sb-[transform:translateZ(0)]">
7314
- <rtg-tab-content value=${uc.PROFILE}>
7319
+ <rtg-tab-content value=${pc.PROFILE}>
7315
7320
  <sb-profile
7316
7321
  .customizations=${t}
7317
7322
  .content=${this.content}
@@ -7338,8 +7343,8 @@ body {
7338
7343
  @click=${()=>this.dispatchEvent(new CustomEvent("close-user-profile",{bubbles:!0,composed:!0}))}
7339
7344
  ></div>
7340
7345
 
7341
- <div class=${$u}>
7342
- <div class=${Cu}>${this.renderProfileContent()}</div>
7346
+ <div class=${$p}>
7347
+ <div class=${Cp}>${this.renderProfileContent()}</div>
7343
7348
  </div>
7344
7349
  `:this.renderProfileContent():m}createRenderRoot(){return this}}he([a({type:Boolean})],Gt.prototype,"showAvatarMenu");he([a({type:String})],Gt.prototype,"orientation");he([a({type:String})],Gt.prototype,"mobileDisplay");he([a({type:String})],Gt.prototype,"mode");he([a({type:String})],Gt.prototype,"widgetsLayout");he([a({type:Object})],Gt.prototype,"content");he([a({type:Object})],Gt.prototype,"customizations");he([Lt({context:Ts,subscribe:!0})],Gt.prototype,"providedCustomizations");he([x()],Gt.prototype,"isOpen");he([x()],Gt.prototype,"currentBreakpoint");customElements.define("sb-user-profile",Gt);var Nm=Object.defineProperty,zm=Object.getOwnPropertyDescriptor,Vs=(e,t,r,i)=>{for(var s=i>1?void 0:i?zm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Nm(t,r,s),s};exports.PreviewComponent=class extends v{constructor(){super(...arguments),this.loading=!1,this.renderSpec=null,this.customizations={byType:{},config:{font:"font-geist"}}}createRenderRoot(){return this}render(){return d`
7345
7350
  ${this.loading?d`<div class="sb-p-8 sb-text-center">Loading...</div>`:d`
@@ -7353,7 +7358,7 @@ body {
7353
7358
  </signed-out>
7354
7359
  </sb-provider>
7355
7360
  `}
7356
- `}};Vs([a({type:Boolean})],exports.PreviewComponent.prototype,"loading",2);Vs([a({type:Object})],exports.PreviewComponent.prototype,"renderSpec",2);Vs([a({type:Object})],exports.PreviewComponent.prototype,"customizations",2);exports.PreviewComponent=Vs([p("sb-preview")],exports.PreviewComponent);var jm=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,Hs=(e,t,r,i)=>{for(var s=i>1?void 0:i?Um(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&jm(t,r,s),s};exports.SbSignIn=class extends v{constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.providedCustomizations=null,this.__flowStarted=!1,this.__flowInitAttempted=!1}get effectiveCustomizations(){const t=this.providedCustomizations??{},r=this.customizations??{};return xs(t,r)}createRenderRoot(){return this}async waitForAuthConfigured(t=5e3){var s;const r=ht??((s=window.__saasbaseCoreSdk)==null?void 0:s.Auth);if(!r||r.__configured)return;const i=r.__whenConfigured;i&&await Promise.race([i,new Promise(o=>setTimeout(o,t))])}async connectedCallback(){var t;if(super.connectedCallback(),!this.__flowInitAttempted&&(this.__flowInitAttempted=!0,await this.waitForAuthConfigured(),!this.__flowStarted)){this.__flowStarted=!0;try{const r=await ht.startLoginflow("signin-flow-passkey");console.log(r.isResumed?"Resumed login flow":"Started new login flow")}catch(r){if(console.error("Sign-in flow init failed:",r),r&&typeof r.message=="string"&&r.message.includes("Auth.configure() must be called")){this.__saasbaseFailedForConfig=!0;try{const i=ht??((t=window.__saasbaseCoreSdk)==null?void 0:t.Auth),s=i==null?void 0:i.__whenConfigured;if(s){await Promise.race([s,new Promise(o=>setTimeout(o,1e4))]);try{const o=await ht.startLoginflow("signin-flow-passkey");console.log(o.isResumed?"Resumed login flow":"Started new login flow")}catch(o){console.error("Sign-in retry failed:",o)}}}catch{}}else this.__flowStarted=!1}}}__saasbaseRetryInit(){this.__flowStarted||(this.__flowInitAttempted=!1,this.connectedCallback())}render(){var s,o;const t=this.effectiveCustomizations,{class:r,style:i}=I("",{},(o=(s=t==null?void 0:t.byType)==null?void 0:s.loader)==null?void 0:o.linear,"",t);return this.renderSpec?d`
7361
+ `}};Vs([a({type:Boolean})],exports.PreviewComponent.prototype,"loading",2);Vs([a({type:Object})],exports.PreviewComponent.prototype,"renderSpec",2);Vs([a({type:Object})],exports.PreviewComponent.prototype,"customizations",2);exports.PreviewComponent=Vs([u("sb-preview")],exports.PreviewComponent);var Um=Object.defineProperty,jm=Object.getOwnPropertyDescriptor,Hs=(e,t,r,i)=>{for(var s=i>1?void 0:i?jm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Um(t,r,s),s};exports.SbSignIn=class extends v{constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.providedCustomizations=null,this.__flowStarted=!1,this.__flowInitAttempted=!1}get effectiveCustomizations(){const t=this.providedCustomizations??{},r=this.customizations??{};return Ss(t,r)}createRenderRoot(){return this}async waitForAuthConfigured(t=5e3){var s;const r=dt??((s=window.__saasbaseCoreSdk)==null?void 0:s.Auth);if(!r||r.__configured)return;const i=r.__whenConfigured;i&&await Promise.race([i,new Promise(o=>setTimeout(o,t))])}async connectedCallback(){var t;if(super.connectedCallback(),!this.__flowInitAttempted&&(this.__flowInitAttempted=!0,await this.waitForAuthConfigured(),!this.__flowStarted)){this.__flowStarted=!0;try{const r=await dt.startLoginflow("signin-flow-passkey");console.log(r.isResumed?"Resumed login flow":"Started new login flow")}catch(r){if(console.error("Sign-in flow init failed:",r),r&&typeof r.message=="string"&&r.message.includes("Auth.configure() must be called")){this.__saasbaseFailedForConfig=!0;try{const i=dt??((t=window.__saasbaseCoreSdk)==null?void 0:t.Auth),s=i==null?void 0:i.__whenConfigured;if(s){await Promise.race([s,new Promise(o=>setTimeout(o,1e4))]);try{const o=await dt.startLoginflow("signin-flow-passkey");console.log(o.isResumed?"Resumed login flow":"Started new login flow")}catch(o){console.error("Sign-in retry failed:",o)}}}catch{}}else this.__flowStarted=!1}}}__saasbaseRetryInit(){this.__flowStarted||(this.__flowInitAttempted=!1,this.connectedCallback())}render(){var s,o;const t=this.effectiveCustomizations,{class:r,style:i}=I("",{},(o=(s=t==null?void 0:t.byType)==null?void 0:s.loader)==null?void 0:o.linear,"",t);return this.renderSpec?d`
7357
7362
  <sb-layout
7358
7363
  .renderSpec=${this.renderSpec}
7359
7364
  .customizations=${t}
@@ -7364,7 +7369,7 @@ body {
7364
7369
  customClass=${r}
7365
7370
  .customStyle=${i}
7366
7371
  ></linear-loader>
7367
- `}};Hs([Lt({context:Tn,subscribe:!0})],exports.SbSignIn.prototype,"renderSpec",2);Hs([a({type:Object})],exports.SbSignIn.prototype,"customizations",2);Hs([Lt({context:Ts,subscribe:!0})],exports.SbSignIn.prototype,"providedCustomizations",2);exports.SbSignIn=Hs([p("sb-signin")],exports.SbSignIn);var Dm=Object.defineProperty,Bm=Object.getOwnPropertyDescriptor,Gs=(e,t,r,i)=>{for(var s=i>1?void 0:i?Bm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Dm(t,r,s),s};exports.SbSignUp=class extends v{constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.providedCustomizations=null,this.__flowStarted=!1,this.__flowInitAttempted=!1}get effectiveCustomizations(){const t=this.providedCustomizations??{},r=this.customizations??{};return xs(t,r)}createRenderRoot(){return this}async waitForAuthConfigured(t=5e3){var s;const r=ht??((s=window.__saasbaseCoreSdk)==null?void 0:s.Auth);if(!r||r.__configured)return;const i=r.__whenConfigured;i&&await Promise.race([i,new Promise(o=>setTimeout(o,t))])}async connectedCallback(){var t;if(super.connectedCallback(),!this.__flowInitAttempted&&(this.__flowInitAttempted=!0,await this.waitForAuthConfigured(),!this.__flowStarted)){this.__flowStarted=!0;try{const r=await ht.startLoginflow("signup-flow");console.log(r.isResumed?"Resumed signup flow":"Started new signup flow")}catch(r){if(console.error("Sign-up flow init failed:",r),r&&typeof r.message=="string"&&r.message.includes("Auth.configure() must be called")){this.__saasbaseFailedForConfig=!0;try{const i=ht??((t=window.__saasbaseCoreSdk)==null?void 0:t.Auth),s=i==null?void 0:i.__whenConfigured;if(s){await Promise.race([s,new Promise(o=>setTimeout(o,1e4))]);try{const o=await ht.startLoginflow("signup-flow");console.log(o.isResumed?"Resumed signup flow":"Started new signup flow")}catch(o){console.error("Sign-up retry failed:",o)}}}catch{}}else this.__flowStarted=!1}}}__saasbaseRetryInit(){this.__flowStarted||(this.__flowInitAttempted=!1,this.connectedCallback())}render(){var s,o;const t=this.effectiveCustomizations,{class:r,style:i}=I("",{},(o=(s=t==null?void 0:t.byType)==null?void 0:s.loader)==null?void 0:o.linear,"",t);return console.log(""),this.renderSpec?d`
7372
+ `}};Hs([Lt({context:Tn,subscribe:!0})],exports.SbSignIn.prototype,"renderSpec",2);Hs([a({type:Object})],exports.SbSignIn.prototype,"customizations",2);Hs([Lt({context:Ts,subscribe:!0})],exports.SbSignIn.prototype,"providedCustomizations",2);exports.SbSignIn=Hs([u("sb-signin")],exports.SbSignIn);var Dm=Object.defineProperty,Bm=Object.getOwnPropertyDescriptor,Gs=(e,t,r,i)=>{for(var s=i>1?void 0:i?Bm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Dm(t,r,s),s};exports.SbSignUp=class extends v{constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.providedCustomizations=null,this.__flowStarted=!1,this.__flowInitAttempted=!1}get effectiveCustomizations(){const t=this.providedCustomizations??{},r=this.customizations??{};return Ss(t,r)}createRenderRoot(){return this}async waitForAuthConfigured(t=5e3){var s;const r=dt??((s=window.__saasbaseCoreSdk)==null?void 0:s.Auth);if(!r||r.__configured)return;const i=r.__whenConfigured;i&&await Promise.race([i,new Promise(o=>setTimeout(o,t))])}async connectedCallback(){var t;if(super.connectedCallback(),!this.__flowInitAttempted&&(this.__flowInitAttempted=!0,await this.waitForAuthConfigured(),!this.__flowStarted)){this.__flowStarted=!0;try{const r=await dt.startLoginflow("signup-flow");console.log(r.isResumed?"Resumed signup flow":"Started new signup flow")}catch(r){if(console.error("Sign-up flow init failed:",r),r&&typeof r.message=="string"&&r.message.includes("Auth.configure() must be called")){this.__saasbaseFailedForConfig=!0;try{const i=dt??((t=window.__saasbaseCoreSdk)==null?void 0:t.Auth),s=i==null?void 0:i.__whenConfigured;if(s){await Promise.race([s,new Promise(o=>setTimeout(o,1e4))]);try{const o=await dt.startLoginflow("signup-flow");console.log(o.isResumed?"Resumed signup flow":"Started new signup flow")}catch(o){console.error("Sign-up retry failed:",o)}}}catch{}}else this.__flowStarted=!1}}}__saasbaseRetryInit(){this.__flowStarted||(this.__flowInitAttempted=!1,this.connectedCallback())}render(){var s,o;const t=this.effectiveCustomizations,{class:r,style:i}=I("",{},(o=(s=t==null?void 0:t.byType)==null?void 0:s.loader)==null?void 0:o.linear,"",t);return console.log(""),this.renderSpec?d`
7368
7373
  <sb-layout
7369
7374
  .renderSpec=${this.renderSpec}
7370
7375
  .customizations=${t}
@@ -7375,14 +7380,14 @@ body {
7375
7380
  customClass=${r}
7376
7381
  .customStyle=${i}
7377
7382
  ></linear-loader>
7378
- `}};Gs([Lt({context:Tn,subscribe:!0})],exports.SbSignUp.prototype,"renderSpec",2);Gs([a({type:Object})],exports.SbSignUp.prototype,"customizations",2);Gs([Lt({context:Ts,subscribe:!0})],exports.SbSignUp.prototype,"providedCustomizations",2);exports.SbSignUp=Gs([p("sb-signup")],exports.SbSignUp);var Mm=Object.defineProperty,qm=Object.getOwnPropertyDescriptor,De=(e,t,r,i)=>{for(var s=i>1?void 0:i?qm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Mm(t,r,s),s};exports.SaasBaseLayout=class extends v{constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.formData={},this.errors={},this._prevErrors={},this.loadingButtons={},this.eventEmitting=!1,this.theme=this.getTheme(),this.prevHeight=0,this.resizeRAF=null,this.isAnimating=!1}createRenderRoot(){return this}getTheme(){return document.documentElement.getAttribute("data-theme")}firstUpdated(t){this.hydrateSbComponents()}updated(t){this.hydrateSbComponents(),t.has("renderSpec")&&this.renderSpec&&(this.formData=this.collectDataKeys(this.renderSpec.root_container)),JSON.stringify(this._prevErrors)!==JSON.stringify(this.errors)&&Promise.resolve().then(()=>this.animateHeight()),this._prevErrors={...this.errors}}hydrateSbComponents(){const t=this.renderRoot;if(!t)return;t.querySelectorAll("sb-otp, sb-logo, sb-title, sb-subtitle, sb-header, sb-gap, sb-countdown").forEach(i=>{const s=i;s.__hydrated||(s.component=this,s.__hydrated=!0)})}_findSubmitButton(t){const r=i=>{if(i.element_type==="button"&&i.properties.submit===!0)return i;if(i.element_type==="container")for(const s of i.properties.children){const o=r(s);if(o)return o}return null};return r(t)}_wrapSubmitButtons(t){return t}render(){var o,n,h;const{class:t,style:r}=I("",{},(h=(n=(o=this.customizations)==null?void 0:o.byType)==null?void 0:n.loader)==null?void 0:h.linear,"",this.customizations);if(!this.renderSpec)return d`<linear-loader
7383
+ `}};Gs([Lt({context:Tn,subscribe:!0})],exports.SbSignUp.prototype,"renderSpec",2);Gs([a({type:Object})],exports.SbSignUp.prototype,"customizations",2);Gs([Lt({context:Ts,subscribe:!0})],exports.SbSignUp.prototype,"providedCustomizations",2);exports.SbSignUp=Gs([u("sb-signup")],exports.SbSignUp);var Mm=Object.defineProperty,qm=Object.getOwnPropertyDescriptor,Be=(e,t,r,i)=>{for(var s=i>1?void 0:i?qm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Mm(t,r,s),s};exports.SaasBaseLayout=class extends v{constructor(){super(...arguments),this.renderSpec=null,this.customizations=null,this.formData={},this.errors={},this._prevErrors={},this.loadingButtons={},this.eventEmitting=!1,this.theme=this.getTheme(),this.prevHeight=0,this.resizeRAF=null,this.isAnimating=!1}createRenderRoot(){return this}getTheme(){return document.documentElement.getAttribute("data-theme")}firstUpdated(t){this.hydrateSbComponents()}updated(t){this.hydrateSbComponents(),t.has("renderSpec")&&this.renderSpec&&(this.formData=this.collectDataKeys(this.renderSpec.root_container)),JSON.stringify(this._prevErrors)!==JSON.stringify(this.errors)&&Promise.resolve().then(()=>this.animateHeight()),this._prevErrors={...this.errors}}hydrateSbComponents(){const t=this.renderRoot;if(!t)return;t.querySelectorAll("sb-otp, sb-logo, sb-title, sb-subtitle, sb-header, sb-gap, sb-countdown").forEach(i=>{const s=i;s.__hydrated||(s.component=this,s.__hydrated=!0)})}_findSubmitButton(t){const r=i=>{if(i.element_type==="button"&&i.properties.submit===!0)return i;if(i.element_type==="container")for(const s of i.properties.children){const o=r(s);if(o)return o}return null};return r(t)}_wrapSubmitButtons(t){return t}render(){var o,n,h;const{class:t,style:r}=I("",{},(h=(n=(o=this.customizations)==null?void 0:o.byType)==null?void 0:n.loader)==null?void 0:h.linear,"",this.customizations);if(!this.renderSpec)return d`<linear-loader
7379
7384
  class="sb-fixed sb-w-full sb-top-0 sb-left-0"
7380
7385
  customClass=${t}
7381
7386
  .customStyle=${r}
7382
7387
  ></linear-loader>`;const i=this._findSubmitButton(this.renderSpec.root_container),s=(i==null?void 0:i.id)??null;return d`
7383
7388
  <form
7384
7389
  id="sb-layout-form"
7385
- @submit=${u=>this._onSubmit(u,s)}
7390
+ @submit=${p=>this._onSubmit(p,s)}
7386
7391
  class="sb-w-full sb-h-full"
7387
7392
  novalidate
7388
7393
  >
@@ -7397,9 +7402,9 @@ body {
7397
7402
  ${this._wrapSubmitButtons(En(this,this.renderSpec.root_container,this.theme))}
7398
7403
  </div>
7399
7404
  </form>
7400
- `}async _onSubmit(t,r){t.preventDefault();const i=t.submitter;if(!i||!r||this.loadingButtons[r]||i.id!==r)return;const s=this._findButtonById(r);s&&await this.handleEvent(s.properties.event,s)}_findButtonById(t){const r=i=>{if(i.element_type==="button"&&i.id===t)return i;if(i.element_type==="container")for(const s of i.properties.children){const o=r(s);if(o)return o}return null};return this.renderSpec?r(this.renderSpec.root_container):null}animateHeight(){var u,g;const r=(((g=(u=this.customizations)==null?void 0:u.config)==null?void 0:g.breakpoints)??pt).sm,i=r?parseInt(r.toString().replace(/\D/g,""),10):640;if(window.innerWidth<=i)return;const o=this.renderRoot.querySelector("#root-container");if(!o)return;const n=o.scrollHeight;if(this.prevHeight===0){this.prevHeight=n,o.style.height="auto";return}if(n===this.prevHeight||this.isAnimating)return;const h=Math.abs(n-this.prevHeight);this.isAnimating=!0,this.resizeRAF&&cancelAnimationFrame(this.resizeRAF),this.resizeRAF=requestAnimationFrame(()=>{const y=Math.min(600,Math.max(200,h*1));o.style.transition="none",o.style.height=this.prevHeight+"px",o.offsetHeight,o.style.transition=`height ${y}ms ease`,o.style.height=n+"px";const w=()=>{o.style.transition="",o.style.height="auto",this.prevHeight=o.scrollHeight,this.isAnimating=!1};let E=!1;const C=()=>{E||(E=!0,w())};o.addEventListener("transitionend",C,{once:!0}),setTimeout(C,y)})}collectDataKeys(t){const r={},i=s=>{if(s&&((s.element_type==="input"||s.element_type==="checkbox"||s.element_type==="otp")&&s.data_key&&!s.hidden&&(r[s.data_key]=""),s.element_type==="container"))for(const o of s.properties.children)i(o)};return i(t),r}handleInputChange(t,r){r!==void 0&&(this.formData={...this.formData,[t]:r},qo(this,t,"change"),this.requestUpdate())}handleBlur(t){qo(this,t,"blur"),this.requestUpdate()}handleFocus(t,r){var o;(o=this.errors[t])!=null&&o.length&&(this.errors={...this.errors,[t]:[]});const i=`${r}-error`,s=document.getElementById(i);s&&s.parentNode&&s.parentNode.removeChild(s)}async handleEvent(t,r){var i,s;if(r.element_type==="html")try{await ht.processLoginflowEvent({event:t,data:{}})}finally{this.eventEmitting=!1}else if(r.element_type==="otp")try{await ht.processLoginflowEvent({event:t,data:this.formData})}finally{this.eventEmitting=!1}else{if(this.loadingButtons[r.id])return;if((i=r.properties.requires_valid)==null||i.forEach(n=>{qo(this,n,"submit"),this.requestUpdate()}),!(((s=r.properties.requires_valid)==null?void 0:s.some(n=>{var h,u;return((u=(h=this.errors)==null?void 0:h[n])==null?void 0:u.length)>0}))??!1)){this.loadingButtons={...this.loadingButtons,[r.id]:!0},this.eventEmitting=!0;try{await ht.processLoginflowEvent({event:t,data:this.formData})}finally{this.loadingButtons={...this.loadingButtons,[r.id]:!1},this.eventEmitting=!1}}}}findElementByKey(t){const r=i=>{if((i.element_type==="input"||i.element_type==="checkbox"||i.element_type==="otp")&&i.data_key===t)return i;if(i.element_type==="container")for(const s of i.properties.children){const o=r(s);if(o)return o}return null};return this.renderSpec?r(this.renderSpec.root_container):null}isFieldValid(t){const r=this.findElementByKey(t);if(!r||!("validation"in r.properties))return!0;const{validation:i}=r.properties,{data_key:s}=r;if(!i||!s)return!0;const o=this.formData[s];return i.rules.every(h=>this.validateRule(h,o))}validateRule(t,r){switch(t.type){case"required":return Hd(r);case"min_length":return Gd(r,t.length);case"max_length":return Wd(r,t.length);case"min_value":return Kd(r,t.value);case"max_value":return Yd(r,t.value);case"regex":return Xd(r,t.regex);case"field_match":return Zd(r,t.field_match?this.formData[t.field_match]:void 0);case"email":return Jd(r);case"phone":return Qd(r);case"date":return tc(r);default:return!0}}};De([a({type:Object})],exports.SaasBaseLayout.prototype,"renderSpec",2);De([a({type:Object})],exports.SaasBaseLayout.prototype,"customizations",2);De([x()],exports.SaasBaseLayout.prototype,"formData",2);De([x()],exports.SaasBaseLayout.prototype,"errors",2);De([x()],exports.SaasBaseLayout.prototype,"loadingButtons",2);De([x()],exports.SaasBaseLayout.prototype,"eventEmitting",2);De([x()],exports.SaasBaseLayout.prototype,"theme",2);exports.SaasBaseLayout=De([p("sb-layout")],exports.SaasBaseLayout);var Vm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,Rr=(e,t,r,i)=>{for(var s=i>1?void 0:i?Hm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Vm(t,r,s),s};exports.SbProvider=class extends v{constructor(){super(...arguments),this.customizations=null,this.providedCustomizations=this.customizations,this.env=null,this.auth={isAuthenticated:!1},this.renderSpec=null,this.autoRedirect=!0}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),mp(),(async()=>{for(;!this.env||!this.env.domain;)await new Promise(r=>setTimeout(r,20));ht.configure({domain:this.env.domain,appId:this.env.appId,clientSecret:this.env.clientSecret??"",locale:this.env.locale,signinUrl:this.env.signinUrl,signupUrl:this.env.signupUrl,onFlowStateChange:r=>{r.render_spec&&(this.renderSpec=r.render_spec)}}),this.refreshAuthState()})().catch(r=>console.error("Error initializing SbProvider:",r))}updated(t){var r;super.updated(t),t.has("customizations")&&(this.providedCustomizations=this.customizations),t.has("env")&&(r=this.env)!=null&&r.domain&&ht.configure({domain:this.env.domain,appId:this.env.appId,clientSecret:this.env.clientSecret??"",locale:this.env.locale,signinUrl:this.env.signinUrl,signupUrl:this.env.signupUrl,onFlowStateChange:i=>{i.render_spec&&(this.renderSpec=i.render_spec)}}),t.has("auth")&&this.handleAuthStateChange()}handleAuthStateChange(){if(!this.autoRedirect||!this.auth.isAuthenticated||!this.env)return;const t=window.location.pathname;if([this.env.signinUrl,this.env.signupUrl].some(s=>t.includes(s))){const n=new URLSearchParams(window.location.search).get("redirect_url")||this.env.signinRedirectUrl||"/";window.location.href=n}}refreshAuthState(){this.auth={isAuthenticated:ht.isAuthenticated()}}};Rr([a({type:Object})],exports.SbProvider.prototype,"customizations",2);Rr([Ue({context:Ts})],exports.SbProvider.prototype,"providedCustomizations",2);Rr([a({type:Object}),Ue({context:hc})],exports.SbProvider.prototype,"env",2);Rr([x(),Ue({context:Fs})],exports.SbProvider.prototype,"auth",2);Rr([x(),Ue({context:Tn})],exports.SbProvider.prototype,"renderSpec",2);Rr([a({type:Boolean})],exports.SbProvider.prototype,"autoRedirect",2);exports.SbProvider=Rr([p("sb-provider")],exports.SbProvider);var Gm=Object.defineProperty,Wm=Object.getOwnPropertyDescriptor,pc=(e,t,r,i)=>{for(var s=i>1?void 0:i?Wm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Gm(t,r,s),s};exports.SignedOut=class extends v{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){return this.auth?d`
7405
+ `}async _onSubmit(t,r){t.preventDefault();const i=t.submitter;if(!i||!r||this.loadingButtons[r]||i.id!==r)return;const s=this._findButtonById(r);s&&await this.handleEvent(s.properties.event,s)}_findButtonById(t){const r=i=>{if(i.element_type==="button"&&i.id===t)return i;if(i.element_type==="container")for(const s of i.properties.children){const o=r(s);if(o)return o}return null};return this.renderSpec?r(this.renderSpec.root_container):null}animateHeight(){var p,g;const r=(((g=(p=this.customizations)==null?void 0:p.config)==null?void 0:g.breakpoints)??mt).sm,i=r?parseInt(r.toString().replace(/\D/g,""),10):640;if(window.innerWidth<=i)return;const o=this.renderRoot.querySelector("#root-container");if(!o)return;const n=o.scrollHeight;if(this.prevHeight===0){this.prevHeight=n,o.style.height="auto";return}if(n===this.prevHeight||this.isAnimating)return;const h=Math.abs(n-this.prevHeight);this.isAnimating=!0,this.resizeRAF&&cancelAnimationFrame(this.resizeRAF),this.resizeRAF=requestAnimationFrame(()=>{const y=Math.min(600,Math.max(200,h*1));o.style.transition="none",o.style.height=this.prevHeight+"px",o.offsetHeight,o.style.transition=`height ${y}ms ease`,o.style.height=n+"px";const w=()=>{o.style.transition="",o.style.height="auto",this.prevHeight=o.scrollHeight,this.isAnimating=!1};let E=!1;const C=()=>{E||(E=!0,w())};o.addEventListener("transitionend",C,{once:!0}),setTimeout(C,y)})}collectDataKeys(t){const r={},i=s=>{if(s&&((s.element_type==="input"||s.element_type==="checkbox"||s.element_type==="otp")&&s.data_key&&!s.hidden&&(r[s.data_key]=""),s.element_type==="container"))for(const o of s.properties.children)i(o)};return i(t),r}handleInputChange(t,r){r!==void 0&&(this.formData={...this.formData,[t]:r},qo(this,t,"change"),this.requestUpdate())}handleBlur(t){qo(this,t,"blur"),this.requestUpdate()}handleFocus(t,r){var o;(o=this.errors[t])!=null&&o.length&&(this.errors={...this.errors,[t]:[]});const i=`${r}-error`,s=document.getElementById(i);s&&s.parentNode&&s.parentNode.removeChild(s)}async handleEvent(t,r){var i,s;if(r.element_type==="html")try{await dt.processLoginflowEvent({event:t,data:{}})}finally{this.eventEmitting=!1}else if(r.element_type==="otp")try{await dt.processLoginflowEvent({event:t,data:this.formData})}finally{this.eventEmitting=!1}else{if(this.loadingButtons[r.id])return;if((i=r.properties.requires_valid)==null||i.forEach(n=>{qo(this,n,"submit"),this.requestUpdate()}),!(((s=r.properties.requires_valid)==null?void 0:s.some(n=>{var h,p;return((p=(h=this.errors)==null?void 0:h[n])==null?void 0:p.length)>0}))??!1)){this.loadingButtons={...this.loadingButtons,[r.id]:!0},this.eventEmitting=!0;try{await dt.processLoginflowEvent({event:t,data:this.formData})}finally{this.loadingButtons={...this.loadingButtons,[r.id]:!1},this.eventEmitting=!1}}}}findElementByKey(t){const r=i=>{if((i.element_type==="input"||i.element_type==="checkbox"||i.element_type==="otp")&&i.data_key===t)return i;if(i.element_type==="container")for(const s of i.properties.children){const o=r(s);if(o)return o}return null};return this.renderSpec?r(this.renderSpec.root_container):null}isFieldValid(t){const r=this.findElementByKey(t);if(!r||!("validation"in r.properties))return!0;const{validation:i}=r.properties,{data_key:s}=r;if(!i||!s)return!0;const o=this.formData[s];return i.rules.every(h=>this.validateRule(h,o))}validateRule(t,r){switch(t.type){case"required":return Hd(r);case"min_length":return Gd(r,t.length);case"max_length":return Wd(r,t.length);case"min_value":return Kd(r,t.value);case"max_value":return Yd(r,t.value);case"regex":return Xd(r,t.regex);case"field_match":return Zd(r,t.field_match?this.formData[t.field_match]:void 0);case"email":return Jd(r);case"phone":return Qd(r);case"date":return tc(r);default:return!0}}};Be([a({type:Object})],exports.SaasBaseLayout.prototype,"renderSpec",2);Be([a({type:Object})],exports.SaasBaseLayout.prototype,"customizations",2);Be([x()],exports.SaasBaseLayout.prototype,"formData",2);Be([x()],exports.SaasBaseLayout.prototype,"errors",2);Be([x()],exports.SaasBaseLayout.prototype,"loadingButtons",2);Be([x()],exports.SaasBaseLayout.prototype,"eventEmitting",2);Be([x()],exports.SaasBaseLayout.prototype,"theme",2);exports.SaasBaseLayout=Be([u("sb-layout")],exports.SaasBaseLayout);var Vm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,Ir=(e,t,r,i)=>{for(var s=i>1?void 0:i?Hm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Vm(t,r,s),s};exports.SbProvider=class extends v{constructor(){super(...arguments),this.customizations=null,this.providedCustomizations=this.customizations,this.env=null,this.auth={isAuthenticated:!1},this.renderSpec=null,this.autoRedirect=!0}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),mu(),(async()=>{for(;!this.env||!this.env.domain;)await new Promise(r=>setTimeout(r,20));dt.configure({domain:this.env.domain,appId:this.env.appId,clientSecret:this.env.clientSecret??"",locale:this.env.locale,signinUrl:this.env.signinUrl,signupUrl:this.env.signupUrl,onFlowStateChange:r=>{r.render_spec&&(this.renderSpec=r.render_spec)}}),this.refreshAuthState()})().catch(r=>console.error("Error initializing SbProvider:",r))}updated(t){var r;super.updated(t),t.has("customizations")&&(this.providedCustomizations=this.customizations),t.has("env")&&(r=this.env)!=null&&r.domain&&dt.configure({domain:this.env.domain,appId:this.env.appId,clientSecret:this.env.clientSecret??"",locale:this.env.locale,signinUrl:this.env.signinUrl,signupUrl:this.env.signupUrl,onFlowStateChange:i=>{i.render_spec&&(this.renderSpec=i.render_spec)}}),t.has("auth")&&this.handleAuthStateChange()}handleAuthStateChange(){if(!this.autoRedirect||!this.auth.isAuthenticated||!this.env)return;const t=window.location.pathname;if([this.env.signinUrl,this.env.signupUrl].some(s=>t.includes(s))){const n=new URLSearchParams(window.location.search).get("redirect_url")||this.env.signinRedirectUrl||"/";window.location.href=n}}refreshAuthState(){this.auth={isAuthenticated:dt.isAuthenticated()}}};Ir([a({type:Object})],exports.SbProvider.prototype,"customizations",2);Ir([je({context:Ts})],exports.SbProvider.prototype,"providedCustomizations",2);Ir([a({type:Object}),je({context:hc})],exports.SbProvider.prototype,"env",2);Ir([x(),je({context:Fs})],exports.SbProvider.prototype,"auth",2);Ir([x(),je({context:Tn})],exports.SbProvider.prototype,"renderSpec",2);Ir([a({type:Boolean})],exports.SbProvider.prototype,"autoRedirect",2);exports.SbProvider=Ir([u("sb-provider")],exports.SbProvider);var Gm=Object.defineProperty,Wm=Object.getOwnPropertyDescriptor,uc=(e,t,r,i)=>{for(var s=i>1?void 0:i?Wm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Gm(t,r,s),s};exports.SignedOut=class extends v{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){return this.auth?d`
7401
7406
  <div ?hidden=${this.auth.isAuthenticated}>${this._cachedChildren}</div>
7402
- `:m}};pc([Lt({context:Fs,subscribe:!0}),a({attribute:!1})],exports.SignedOut.prototype,"auth",2);exports.SignedOut=pc([p("sb-signed-out")],exports.SignedOut);var Km=Object.defineProperty,Ym=Object.getOwnPropertyDescriptor,gc=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ym(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Km(t,r,s),s};exports.SignedIn=class extends v{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){return this.auth?d`
7407
+ `:m}};uc([Lt({context:Fs,subscribe:!0}),a({attribute:!1})],exports.SignedOut.prototype,"auth",2);exports.SignedOut=uc([u("sb-signed-out")],exports.SignedOut);var Km=Object.defineProperty,Ym=Object.getOwnPropertyDescriptor,gc=(e,t,r,i)=>{for(var s=i>1?void 0:i?Ym(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Km(t,r,s),s};exports.SignedIn=class extends v{constructor(){super(...arguments),this._cachedChildren=[]}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){return this.auth?d`
7403
7408
  <div ?hidden=${!this.auth.isAuthenticated}>${this._cachedChildren}</div>
7404
- `:m}};gc([Lt({context:Fs,subscribe:!0}),a({attribute:!1})],exports.SignedIn.prototype,"auth",2);exports.SignedIn=gc([p("sb-signed-in")],exports.SignedIn);var Xm=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,Ws=(e,t,r,i)=>{for(var s=i>1?void 0:i?Zm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Xm(t,r,s),s};exports.SbAuthenticated=class extends v{constructor(){super(...arguments),this._cachedChildren=[],this.redirectUrl="",this.env=null}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){var t;return this.auth?this.auth.isAuthenticated?d`${this._cachedChildren}`:(window.location.href=this.redirectUrl||((t=this.env)==null?void 0:t.signinUrl),m):m}};Ws([a({type:String})],exports.SbAuthenticated.prototype,"redirectUrl",2);Ws([Lt({context:hc}),a({attribute:!1})],exports.SbAuthenticated.prototype,"env",2);Ws([Lt({context:Fs,subscribe:!0}),a({attribute:!1})],exports.SbAuthenticated.prototype,"auth",2);exports.SbAuthenticated=Ws([p("sb-authenticated")],exports.SbAuthenticated);function Jm(){return ht}exports.BaseElement=de;exports.SbUserProfile=Gt;exports.renderElement=En;exports.useAuthProvider=Jm;
7409
+ `:m}};gc([Lt({context:Fs,subscribe:!0}),a({attribute:!1})],exports.SignedIn.prototype,"auth",2);exports.SignedIn=gc([u("sb-signed-in")],exports.SignedIn);var Xm=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,Ws=(e,t,r,i)=>{for(var s=i>1?void 0:i?Zm(t,r):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(s=(i?n(t,r,s):n(s))||s);return i&&s&&Xm(t,r,s),s};exports.SbAuthenticated=class extends v{constructor(){super(...arguments),this._cachedChildren=[],this.redirectUrl="",this.env=null}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._cachedChildren.length===0&&(this._cachedChildren=Array.from(this.childNodes),this._cachedChildren.forEach(t=>this.removeChild(t)))}render(){var t;return this.auth?this.auth.isAuthenticated?d`${this._cachedChildren}`:(window.location.href=this.redirectUrl||((t=this.env)==null?void 0:t.signinUrl),m):m}};Ws([a({type:String})],exports.SbAuthenticated.prototype,"redirectUrl",2);Ws([Lt({context:hc}),a({attribute:!1})],exports.SbAuthenticated.prototype,"env",2);Ws([Lt({context:Fs,subscribe:!0}),a({attribute:!1})],exports.SbAuthenticated.prototype,"auth",2);exports.SbAuthenticated=Ws([u("sb-authenticated")],exports.SbAuthenticated);function Jm(){return dt}exports.BaseElement=de;exports.SbUserProfile=Gt;exports.renderElement=En;exports.useAuthProvider=Jm;
7405
7410
  //# sourceMappingURL=index.js.map