PageSourceSearch

https://billbee.ai/assets/index-BNbaeP0K.js

js billbee.ai collected 2026-10-05 13:48:35 UTC 174,694 bytes, 205 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AuthModal-BO3PB6ux.js","assets/vendor-tanstack-05CuIB13.js","assets/vendor-react-Cz8b5gkc.js","assets/dialog-RyIFaPKA.js","assets/vendor-radix-BwZk06Yn.js","assets/vendor-supabase-CgDQnvFA.js","assets/vendor-forms-58d51Ynj.js","assets/form-Cqg_arVS.js","assets/label-COKDLLJ5.js","assets/vendor-ui-utils-D7SlnX3x.js","assets/input-SsvaoZDw.js","assets/eye-IJAzQiAQ.js","assets/loader-circle-DBZOMJQq.js","assets/checkbox-ChJJzOhm.js","assets/minus-DmrM0Zyh.js","assets/arrow-left-Cs85don8.js","assets/alert-DuSb0eYA.js","assets/shield-kzBMJGma.js","assets/copy-BrCX9W4F.js","assets/vendor-misc-6xamZegg.js","assets/UpgradeModal-DyT5ogkp.js","assets/useBeehiiv-XcOmmqpk.js","assets/arrow-right-B205h0tK.js","assets/crown-lWqas3JH.js","assets/lock-DjcyvXGT.js","assets/zap-C8CfAWYu.js","assets/BillPeekContent-Cdl5x1RQ.js","assets/BillProgressStepper-C47muuxF.js","assets/billStatus-CFiBIwsG.js","assets/BillSponsorsDisplay-BzyNkRuf.js","assets/queryShapes-Bb1qVbOu.js","assets/constants-Biu0cCwd.js","assets/BeeScoreHelpDialog-BOMm1z23.js","assets/partyUtils-BHGneVjd.js","assets/popover-BzTfCHsM.js","assets/tooltip-k6bEHqBg.js","assets/useSeoUrls-E4_ktO3m.js","assets/seoUrls-DSxJF17V.js","assets/env-BnjKv4Ar.js","assets/PeekLink-D_ocNT1B.js","assets/history-C2PqQOta.js","assets/domain-DKrJRL38.js","assets/useVotesV2-tQDa6hRl.js","assets/vote-iw8y2pBM.js","assets/message-square-E6cNQ2v9.js","assets/LegislatorPeekContent-pQJ6sL6T.js","assets/useLegislatorsV2-QbnWJ6lX.js","assets/useCommitteesV2-B7P2UzHr.js","assets/CommitteePeekContent-qCh466Cu.js","assets/calendar-days-DSAstoyW.js","assets/index-DikOA3D3.js","assets/progress-wVVItdMF.js","assets/chevron-up-CaomBNn7.js","assets/vendor-driver-CqvQxWGR.js","assets/index-B7sruC1F.css","assets/Index-DuKtBsS1.js","assets/tabs-B4v6E6Lz.js","assets/EmptyState-yEPxQffJ.js","assets/usePopularBillsV2-Bg82kXeC.js","assets/chevron-left-DEsUx9hh.js","assets/vendor-date-CenaRPNc.js","assets/collapsible-38RifeeG.js","assets/trending-up-3WsPnU7E.js","assets/clock-BNVU7x6s.js","assets/useDebounce-BwmXUhiX.js","assets/useSemanticSearch-DMuLQUJ8.js","assets/SEOHead-C8-BhjxN.js","assets/structuredDataBuilders-CE5y6CmW.js","assets/Account-BqaIAxOU.js","assets/LoadingState-DutAc6vb.js","assets/PageHeader-BSPnpgt3.js","assets/table-k8n-BJKm.js","assets/circle-alert-CJSvYECB.js","assets/download-CeXV_vMI.js","assets/circle-x-DZTgbbcG.js","assets/circle-check-big-u3NqRaxP.js","assets/StripeBuyButton-D10H7aRb.js","assets/trending-down-BK3I13fS.js","assets/square-pen-DhaSEqGc.js","assets/phone-BdfaDRwX.js","assets/globe-DlY-iSPc.js","assets/textarea-DwRxq-9F.js","assets/FederalLegislatorCard-BQFSjWFn.js","assets/alert-dialog-BO_Awkk1.js","assets/useUpgradeModal-lH0DIrJz.js","assets/switch-B1ikwBly.js","assets/radio-group-BjG6Ai-T.js","assets/useUserLegislators-ixB0vlbU.js","assets/LegislatorCard-C1oKNw9V.js","assets/ResponsiveCard-DidU5UXv.js","assets/chart-column-QAizGR7-.js","assets/Bills-DTUnzoDY.js","assets/savedSearchFilters-C2l4yYMn.js","assets/billAnalysisHelpers-CVjnbwOg.js","assets/BillCard-BjtH1N_D.js","assets/TrackBillButton-F3PwaPGT.js","assets/usePolicyTaxonomy-DtoUtWJL.js","assets/categoryLinkUtils-Doqj8IBt.js","assets/billStatusColor-CVKEat29.js","assets/DataTable-sE676vko.js","assets/chevrons-up-down-BnBveJpx.js","assets/dateUtils-DO4VNEoP.js","assets/ViewModeToggle-BZe4vaC8.js","assets/layout-grid-ucW4-8pG.js","assets/list-ByzFcLxR.js","assets/YearSelector-BZ246VGi.js","assets/select-D5YPVW70.js","assets/useIsMobile-DI1qZG8d.js","assets/date-picker--o_sULv9.js","assets/calendar-Dgk4iM8M.js","assets/filter-DaHPsC7D.js","assets/CategoryFilter-BfHNG6UB.js","assets/tag-CMnvD_jy.js","assets/SortControls-DvF7REgc.js","assets/arrow-up-Bm5PR3zB.js","assets/arrow-up-down-B29tOjD0.js","assets/listExportHelpers-B9PZj0C9.js","assets/AuthGatedDropdown-DyDtiaRk.js","assets/useListExport-Qwt5HvjG.js","assets/scale-qCudWnI5.js","assets/ErrorState-B2kwMK4r.js","assets/PaginationControls-DKKOVClb.js","assets/Legislators-COCaTIrT.js","assets/legislator-D1plrkD2.js","assets/slider-Cvgkj6zL.js","assets/LegislatorVotes-05MSAOhQ.js","assets/useLegislatorVoteStatsV2-B-rWnH-U.js","assets/useSessionByCodeV2-P6K7WPfF.js","assets/useLegislatorBySlugV2-cMulE1M8.js","assets/Committees-CPQ7ObID.js","assets/CommitteeDetail-DxeQXXU8.js","assets/userLegislatorIds-CDKbLZD2.js","assets/MonthView-YJw69x-k.js","assets/calendar-utils-6SlM4Ndk.js","assets/NotFoundState-B03qA0Hn.js","assets/TrackCommitteeButton-rVueD7NH.js","assets/Calendar-ACQ88KSY.js","assets/Testimony-D-d1HkdI.js","assets/PositionBadge-Ct82PCqS.js","assets/SearchPage-CrHqMFRs.js","assets/file-search-DWTr-ZcO.js","assets/DataSources-fpFxPwN4.js","assets/Privacy-DvHCczTC.js","assets/Terms-KePAmM8s.js","assets/About-B6L-zf03.js","assets/newspaper-CXDY268q.js","assets/Mission-BykZukmi.js","assets/Dashboard-B5Ab3Jmn.js","assets/pencil-18UvCTPY.js","assets/ActivityRenderers-BQ1-pygf.js","assets/type-CgY5SCFq.js","assets/landmark-Df1ZsPJZ.js","assets/BillDetails-eoTKohS-.js","assets/feature-charts-C_sR6h11.js","assets/parseCommitteeFromStatus-CyX-3NAO.js","assets/share-2-Dey39-Ck.js","assets/LegislatorDetail-epTpQOI9.js","assets/useLegislatorBillsV2-CUBD7qbv.js","assets/voteStats-CsiKa_ye.js","assets/VoteDetails-B53cUyVm.js","assets/chamberUtils-CHFB4-ye.js","assets/link-DI_jb2wO.js","assets/command-bOq3EfNC.js","assets/VoteComparison-CU1mNB8Q.js","assets/FindYourLegislator-CIMOqxRA.js","assets/useLegislatorLo
1okup-CGEO3OP3.js","assets/FederalLegislatorDetail-BfWWtOnl.js","assets/LegacyRedirects-DfZ3uws1.js","assets/AuthorizePage-DH4f2J4p.js","assets/Pipeline-enyKZOWN.js","assets/usePipelineStatus-DBv_LtyR.js","assets/code-ChfXSQ9o.js","assets/pipelineUtils-CyJxfoq2.js","assets/pagination-CZUZfcER.js","assets/AdminPageWrapper-CByTi085.js","assets/Schedules-_LZpV8R_.js","assets/plus-D--J79am.js","assets/BillStatus-C7ITy0HD.js","assets/Notifications-BQptFdly.js","assets/Reports-D63R1bfF.js","assets/BillSelector-CYjL4PVt.js","assets/sanitize-nh8lG_XA.js","assets/reportFormatUtils-Bl38wgnf.js","assets/CommitteeReports-DmdHK-Yo.js","assets/useCommitteeActionsReport-D160jPmv.js","assets/CommitteeReportPreview-BxoCG7gC.js","assets/VoteReports-DDfir21v.js","assets/VoteTypeFilterCheckboxes-C00l9CYV.js","assets/voteTypeLabels-CkfC51xK.js","assets/TopekaBuzz-zyRiOVYK.js","assets/accordion-BNkV09TZ.js","assets/CalendarsReport-fuRBn_TG.js","assets/FederalLegislatorImport-DqYiYHqx.js","assets/vendor-sentry-DEGpid3j.js"])))=>i.map(i=>d[i]);
2var Xt=Object.defineProperty;var Zt=(s,t,a)=>t in s?Xt(s,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[t]=a;var Oe=(s,t,a)=>Zt(s,typeof t!="symbol"?t+"":t,a);import{j as e,u as oe,a as Ge,b as ge,Q as ea,c as sa}from"./vendor-tanstack-05CuIB13.js";import{f as ta,a as n,u as aa,h as we,i as ve,L as y,R as D,O as ra,B as na,j as ia,k as _,N as la}from"./vendor-react-Cz8b5gkc.js";import{j as oa,H as ca}from"./vendor-misc-6xamZegg.js";import{V as ks,b as Ss,A as Cs,d as Ts,T as Es,D as Ls,e as da,S as Is,f as Ms,g as As,h as ua,i as Rs,I as Os,j as Ps,k as Ds,l as Bs,L as zs,m as Vs,n as ma,o as ha,p as xa,q as Us,r as Fs,F as qs,O as Hs,P as pa,C as $s,s as fa,t as Ys,v as Ks,R as ga,w as ba,x as Gs,y as Qs,z as ja,B as wa,E as Ws,G as va}from"./vendor-radix-BwZk06Yn.js";import{t as ya,c as Na,a as Ie}from"./vendor-ui-utils-D7SlnX3x.js";import{c as _a}from"./vendor-supabase-CgDQnvFA.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"93bac28c4df27bf7fe103ba2039eca7dea8e63d2"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="9ab03776-67f6-4182-b090-7a5bd0af3e65",s._sentryDebugIdIdentifier="sentry-dbid-9ab03776-67f6-4182-b090-7a5bd0af3e65")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function a(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(l){if(l.ep)return;l.ep=!0;const c=a(l);fetch(l.href,c)}})();const ka="modulepreload",Sa=function(s){return"/"+s},os={},w=function(t,a,i){let l=Promise.resolve();if(a&&a.length>0){let u=function(m){return Promise.all(m.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),o=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));l=u(a.map(m=>{if(m=Sa(m),m in os)return;os[m]=!0;const f=m.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${h}`))return;const b=document.createElement("link");if(b.rel=f?"stylesheet":ka,f||(b.as="script"),b.crossOrigin="",b.href=m,o&&b.setAttribute("nonce",o),document.head.appendChild(b),f)return new Promise((g,x)=>{b.addEventListener("load",g),b.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return l.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})};var ye={},cs;function Ca(){if(cs)return ye;cs=1;var s=ta();return ye.createRoot=s.createRoot,ye.hydrateRoot=s.hydrateRoot,ye}var Ta=Ca();const Js=n.createContext(void 0),Xs="billbee-theme";function Pe(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k":"light"}function ds(){if(typeof window>"u")return"system";const s=localStorage.getItem(Xs);return s==="light"||s==="dark"||s==="system"?s:"system"}function Ea({children:s,defaultTheme:t="system"}){const[a,i]=n.useState(()=>typeof window>"u"?t:ds()),[l,c]=n.useState(()=>{if(typeof window>"u")return"light";const o=ds();return o==="system"?Pe():o});n.useEffect(()=>{const o=document.documentElement,m=a==="system"?Pe():a;o.classList.remove("light","dark"),o.classList.add(m),c(m)},[a]),n.useEffect(()=>{if(a!=="system")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),m=()=>{const f=Pe();document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(f),c(f)};return o.addEventListener("change",m),()=>o.removeEventListener("change",m)},[a]);const u=n.useCallback(o=>{i(o),localStorage.setItem(Xs,o)},[]),d=n.useMemo(()=>({theme:a,setTheme:u,resolvedTheme:l}),[a,u,l]);return e.jsx(Js.Provider,{value:d,children:s})}const Ee="billbee-";function La(s){return s.expiresAt?Date.now()>s.expiresAt:!1}function Zs(s,t,a){try{const i=s.getItem(`${Ee}${t}`);if(!i)return null;const l=JSON.parse(i);if(!("value"in l)||!("timestamp"in l)){const c=l;return a&&!a(c)?null:c}return La(l)?(s.removeItem(`${Ee}${t}`),null):a&&!a(l.value)?null:l.value}catch{return null}}function et(s,t,a,i){try{const l={value:a,timestamp:Date.now(),expiresAt:i?Date.now()+i:void 0};return s.setItem(`${Ee}${t}`,JSON.stringify(l)),!0}catch{return!1}}function st(s,t){try{return s.removeItem(`${Ee}${t}`),!0}catch{return!1}}const tt={get(s,t){return typeof window>"u"?null:Zs(localStorage,s,t)},set(s,t,a){return typeof window>"u"?!1:et(localStorage,s,t,a)},remove(s){return typeof window>"u"?!1:st(localStorage,s)}},ie={get(s,t){return typeof window>"u"?null:Zs(sessionStorage,s,t)},set(s,t,a){return typeof window>"u"?!1:et(sessionStorage,s,t,a)},remove(s){return typeof window>"u"?!1:st(sessionStorage,s)}},Se={completedTours:[],checklistProgress:{"track-bill":!1,"understand-bill":!1,"explore-legislator":!1,"search-bill":!1,"set-alert":!1,"explore-committee":!1},dismissed:!1,welcomeShown:!1,lastSeenAt:new Date().toISOString()},Ia=[{id:"track-bill",label:"Track your first bill",description:"Find and follow legislation you care about",tourId:"quick-start",route:"/bills"},{id:"understand-bill",label:"Understand a bill",description:"Learn what each section tells you",tourId:"bill-details",route:"/bills/HB2438"},{id:"explore-legislator",label:"Find your representative",description:"See who represents your district",tourId:"representatives",route:"/legislators"},{id:"search-bill",label:"Use semantic search",description:"Find bills by concept using AI",tourId:"research",route:"/search"},{id:"set-alert",label:"Configure notifications",description:"Choose how you receive bill updates",tourId:"alerts",route:"/account"},{id:"explore-committee",label:"Browse committees",description:"See how bills move through the process",tourId:"committee",route:"/committees"}],at="onboarding";function Ma(s){return s!==null&&typeof s=="object"}function Aa(){const s=tt.get(at,Ma);return s?{...Se,...s,checklistProgress:{...Se.checklistProgress,...s.checklistProgress}}:Se}function Ra(s){tt.set(at,s)}function Oa(){const[s,t]=n.useState(Aa);n.useEffect(()=>{Ra(s)},[s]);const a=n.useCallback(l=>{t(c=>({...c,...l,checklistProgress:l.checklistProgress?{...c.checklistProgress,...l.checklistProgress}:c.checklistProgress,lastSeenAt:new Date().toISOString()}))},[]),i=n.useCallback(()=>{t({...Se,lastSeenAt:new Date().toISOString()})},[]);return{state:s,updateState:a,resetState:i}}const rt=n.createContext(void 0),He="tour-resume",Pa=3e4;function Da(s){if(!s||typeof s!="object")return!1;const t=s;return typeof t.tourId=="string"&&typeof t.stepIndex=="number"}function Me(s,t){ie.set(He,{tourId:s,stepIndex:t},Pa)}function jl(){const s=ie.get(He,Da);return s&&ie.remove(He),s}function Ba(s,t,{driver:a}){Me("committee",2),a.destroy(),window.location.href="/committees/house-education?state=KS&year=2026"}function us(s,t){window.dispatchEvent(new CustomEvent("billbee:switch-tab",{detail:{tab:s}})),setTimeout(()=>{t.moveNext()},250)}const za={id:"committee",name:"Committees",description:"See how bills move through the legislative process",
2startRoute:"/committees",steps:[{element:'[data-tour="committees-list"]',popover:{title:"Where bills live or die",description:"Most legislation never leaves committee. Understanding committees helps you predict which bills have a real chance.",side:"bottom",align:"start"}},{element:'[data-tour="committee-card"]',popover:{title:"Pick a committee",description:"Click Next to explore the House Education committee's details.",side:"bottom",align:"center",onNextClick:Ba}},{element:'[data-tour="committee-header"]',popover:{title:"Committee details",description:"Each committee page shows leadership, meeting schedules, and contact information.",side:"bottom",align:"start"}},{element:'[data-tour="committee-tabs"]',popover:{title:"Navigate committee info",description:"Use these tabs to explore different aspects of the committee: overview, members, and bills.",side:"bottom",align:"center"}},{element:'[data-tour="committee-overview"]',popover:{title:"Committee overview",description:"The Overview tab shows committee leadership, meeting schedule, location, and staff contacts.",side:"top",align:"center",onNextClick:(s,t,{driver:a})=>us("members",a)}},{element:'[data-tour="committee-members-tab"]',popover:{title:"Who decides",description:"The chair controls what gets heard. Knowing committee membership helps you understand a bill's chances.",side:"bottom",align:"center",onNextClick:(s,t,{driver:a})=>us("bills",a)}},{element:'[data-tour="committee-bills-tab"]',popover:{title:"Bills in committee",description:"Track bills assigned to this committee. Most bills die in committee, so this is where the real action happens.",side:"bottom",align:"center"}}]},nt="tour-persistent-highlight";function Va(){const s=document.querySelector('[data-tour="nav-bills"]');s==null||s.classList.add(nt)}function Ua(){const s=document.querySelector('[data-tour="nav-bills"]');s==null||s.classList.remove(nt)}function Fa(s,t,{driver:a}){window.location.pathname!=="/bills"&&(Me("quick-start",1),a.destroy(),window.location.href="/bills")}const qa={id:"quick-start",name:"Track Your First Bill",description:"Learn how to find and track legislation",steps:[{element:'[data-tour="nav-bills"]',popover:{title:"Welcome to BillBee! 🐝",description:"Your AI-powered legislative intelligence platform. We'll help you track bills, understand voting patterns, and stay informed on what matters to you. Let's head to the Bills page — your home base for tracking legislation.",side:"bottom",align:"start",onNextClick:Fa},onHighlightStarted:Va},{popover:{title:"Your legislative dashboard",description:"This is where you'll find all current legislation. Let's take a quick look at how to find and track the bills you care about."}},{element:'[data-tour="bills-search"]',popover:{title:"Search for bills",description:'Use keywords like "education" or "taxes", or enter a specific bill number like "HB 2001".',side:"bottom",align:"start"}},{element:'[data-tour="bills-filters"]',popover:{title:"Filter results",description:"Narrow your search by chamber, status, or policy category to find exactly what you need.",side:"bottom",align:"start"}},{element:'[data-tour="bill-card"]',popover:{title:"Bill overview",description:"Each card shows the bill number, title, current status, and recent activity. Click any card to see full details.",side:"bottom",align:"start"}},{element:'[data-tour="track-bill-button"]',popover:{title:"Track bills you care about",description:"Click the star icon on any bill to add it to your tracking list. You'll receive updates when tracked bills move forward.",side:"bottom",align:"center"}},{element:'[data-tour="nav-my-bills"]',popover:{title:"Your tracked bills",description:"All your tracked legislation appears in the My Bills page. Check back anytime to see status updates.",side:"bottom",align:"start"}},{popover:{title:"You're ready to go!",description:"Start by tracking a bill that interests you. You'll find more tips in the Setup Guide."},onDeselected:Ua}]};function Ha(s,t,a){Me("research",1),a.driver.destroy(),window.location.href="/search"}const $a={id:"research",name:"Semantic Search",description:"Find legislation by concept using AI-
2powered search",steps:[{element:'[data-tour="global-search"]',popover:{title:"AI-Powered Search",description:"Access our semantic search to find bills by concept, topic, or natural language queries.",side:"bottom",align:"center",onNextClick:Ha}},{element:'[data-tour="semantic-search-input"]',popover:{title:"Search by meaning",description:'Type concepts like "bills protecting small businesses" or "environmental regulations" — our AI understands what you mean.',side:"bottom",align:"center"}},{element:'[data-tour="search-suggestions"]',popover:{title:"Try these examples",description:"Click any suggestion to see how semantic search finds relevant bills, even without exact keyword matches.",side:"top",align:"center"}}]},it="tour-persistent-highlight";function Ya(){const s=document.querySelector('[data-tour="nav-legislators"]');s==null||s.classList.add(it)}function Ka(){const s=document.querySelector('[data-tour="nav-legislators"]');s==null||s.classList.remove(it)}function Ga(s,t,a){Me("representatives",4),a.driver.destroy(),window.location.href="/legislators/267"}function ms(s,t){window.dispatchEvent(new CustomEvent("billbee:switch-legislator-tab",{detail:{tab:s}})),setTimeout(()=>{t.moveNext()},250)}const Qa={id:"representatives",name:"Your Representatives",description:"Find your legislators and see how they vote",startRoute:"/legislators",steps:[{element:'[data-tour="nav-legislators"]',popover:{title:"Meet Your Legislators",description:"Here you'll find all members of the Kansas Legislature. Let's see how to find your representatives.",side:"bottom",align:"center"},onHighlightStarted:Ya},{element:'[data-tour="legislators-county-district"]',popover:{title:"Find by location",description:"Select your county or district number to see who represents your area in the Kansas Legislature.",side:"bottom",align:"start"}},{element:'[data-tour="legislators-chamber-party"]',popover:{title:"Filter by chamber or party",description:"Narrow your search by chamber (House or Senate) or political party affiliation.",side:"bottom",align:"start"}},{element:'[data-tour="legislators-list"]',popover:{title:"View a legislator",description:"Click any legislator card to see their full profile. Let's explore one together.",side:"top",align:"center",onNextClick:Ga}},{element:'[data-tour="legislator-header"]',popover:{title:"Legislator profile",description:"This is the legislator's profile page with contact info, voting record, and committee assignments.",side:"bottom",align:"center"}},{element:'[data-tour="legislator-tabs"]',popover:{title:"Explore their record",description:"Use these tabs to see their committee memberships, sponsored bills, and voting history.",side:"top",align:"center",onNextClick:(s,t,{driver:a})=>ms("committees",a)}},{element:'[data-tour="legislator-committees-content"]',popover:{title:"Committee assignments",description:"See which committees this legislator serves on. Committees shape legislation before it reaches the floor.",side:"top",align:"center",onNextClick:(s,t,{driver:a})=>ms("bills",a)}},{element:'[data-tour="legislator-bills-content"]',popover:{title:"Sponsored bills",description:"View bills they introduced or co-sponsored. Track any that matter to you to stay informed on their progress.",side:"top",align:"center"},onDeselected:Ka}]},Wa={id:"alerts",name:"Stay Informed",description:"Configure how you receive bill updates",startRoute:"/account?tab=notifications",steps:[{element:'[data-tour="notification-prefs"]',popover:{title:"Your notification settings",description:"Control exactly what updates you receive for your tracked bills.",side:"top",align:"start"}},{element:'[data-tour="alert-status-change"]',popover:{title:"Know when bills move",description:"Get notified when a bill passes committee, gets scheduled for a vote, or is signed into law.",side:"bottom",align:"start"}},{element:'[data-tour="alert-title-change"]',popover:{title:"Track bill substitutions",description:"Bills are sometimes replaced or renamed during the legislative process. Stay informed when this happens to bills you track.",side:"bottom",align:"start"}},{element:'[data-tour="alert-new-bill"]',popover:{title:"Discover new legislation",description:"Get alerts when new bills are introduced that match topics you care about. Never miss relevant legislation.",side:"bottom",align:"start"}}
2,{element:'[data-tour="digest-frequency"]',popover:{title:"Choose your frequency",description:"Get instant alerts for time-sensitive tracking, or daily/weekly digests for a summary view.",side:"top",align:"start"}}]};function Ne(s,t){window.dispatchEvent(new CustomEvent("billbee:switch-tab",{detail:{tab:s}})),setTimeout(()=>{t.moveNext()},250)}const Ja={id:"bill-details",name:"Understanding a Bill",description:"Learn what each section of a bill page tells you",startRoute:"/bills/HB2438",steps:[{element:'[data-tour="bill-header"]',popover:{title:"Understanding this bill",description:"Every bill page starts with the essentials: bill number, a plain-language headline, and current status in the legislative process.",side:"bottom",align:"start"}},{element:'[data-tour="bill-sponsors"]',popover:{title:"Who introduced it",description:"See which legislators sponsored this bill. Click any name to view their full profile and other bills they support.",side:"bottom",align:"start"}},{element:'[data-tour="track-bill-button"]',popover:{title:"Track this bill",description:"Add any bill to your tracking list to receive updates when it moves through the legislative process.",side:"bottom",align:"center"}},{element:'[data-tour="bill-beescore"]',popover:{title:"BeeScore at a glance",description:"Our AI-generated impact score helps you quickly understand how significant this bill might be. Higher scores indicate greater potential impact.",side:"bottom",align:"center"}},{element:'[data-tour="bill-tabs"]',popover:{title:"Four ways to explore",description:"Each tab offers different insights into the bill. Summary for the overview, Analysis for deep dives, Documents for original text, and Votes for legislative action.",side:"bottom",align:"center"}},{element:'[data-tour="tab-summary"]',popover:{title:"Summary tab",description:"Start here for a plain-language explanation of what the bill does and why it matters.",side:"bottom",align:"start",onNextClick:(s,t,{driver:a})=>Ne("summary",a)}},{element:'[data-tour="summary-content"]',popover:{title:"What it means",description:"Our AI-generated summary breaks down complex legislative language into clear explanations of the bill's purpose, key changes, and potential effects.",side:"top",align:"start"}},{element:'[data-tour="tab-analysis"]',popover:{title:"Analysis tab",description:"Dive deeper into the bill's potential impacts, fiscal implications, and who might be affected.",side:"bottom",align:"start",onNextClick:(s,t,{driver:a})=>Ne("analysis",a)}},{element:'[data-tour="analysis-breakdown"]',popover:{title:"Score breakdown",description:"See exactly how we calculated the BeeScore. Each component reflects a different aspect of the bill's potential impact.",side:"top",align:"start"}},{element:'[data-tour="analysis-provisions"]',popover:{title:"Key provisions",description:"The most important changes this bill would make, extracted and explained in plain language.",side:"top",align:"start",onNextClick:(s,t,{driver:a})=>Ne("documents",a)}},{element:'[data-tour="tab-documents"]',popover:{title:"Documents tab",description:"Access the original bill text and any amendments in PDF format.",side:"bottom",align:"start"}},{element:'[data-tour="pdf-viewer"]',popover:{title:"Full bill text",description:"Read the actual legislative language. You can expand to fullscreen for easier reading.",side:"top",align:"center",onNextClick:(s,t,{driver:a})=>Ne("votes",a)}},{element:'[data-tour="tab-votes"]',popover:{title:"Votes tab",description:"See how legislators voted when the bill came up for a vote in either chamber.",side:"bottom",align:"start"}},{element:'[data-tour="votes-section"]',popover:{title:"Vote records",description:"View the complete voting record for House and Senate votes. See who voted yes, no, or abstained.",side:"top",align:"center"}}]},Qe={"quick-start":qa,research:$a,representatives:Qa,alerts:Wa,committee:za,"bill-details":Ja};function wl(s){return Qe[s]}function Xa(){return Object.values(Qe)}const Za=Object.keys(Qe);function er({children:s}){const{state:t,updateState:a,resetState:i}=Oa(),[l,c]=n.useState(null),[u]=aa(),d=we(),o=n.useMemo(()=>!t.dismissed&&!t.welcomeShown,[t.dismissed,t.welcomeShown]),m=l!==null,f=n.useCallback(L=>{c(L)},[]);n.useEffect(()=>{const L=u.get("tour");if(L&&Za.includes(L)){f(L);const M=new URLSearchParams(u);M.delete("tour"),d({search:M.toString()},{replace:!0})}},[]);const h=n.useCallback(L=>{c(null),t.completedTours.includes(L)||a({completedTours:[...t.completedTours,L]})},[t.completedTours,a]),b=n.useCallback(L=>{a({checklistProgress:{...t.checklistProgress,[L]:!0}})},[t.checklistProgress,a]),g=n.useCallback(()=>{a({welcomeShown:!0})},[a]),x=n.useCallback(()=>{a({dismissed:!0}),c(null)},[a]),j=n.useCallback(()=>{i(),c(null)},[i]),v=n.useCallback(()=>
2{const L=Ia.length,M=Object.values(t.checklistProgress).filter(Boolean).length;return Math.round(M/L*100)},[t.checklistProgress]),T=n.useMemo(()=>({state:t,isVisible:o,isTourActive:m,activeTourId:l,startTour:f,completeTour:h,completeChecklistItem:b,markWelcomeShown:g,dismissOnboarding:x,resetOnboarding:j,getCompletionPercentage:v}),[t,o,m,l,f,h,b,g,x,j,v]);return e.jsx(rt.Provider,{value:T,children:s})}function sr(){const s=ve();n.useEffect(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"pageview",page_path:s.pathname})},[s])}const tr=1,ar=1e6;let De=0;function rr(){return De=(De+1)%Number.MAX_SAFE_INTEGER,De.toString()}const Be=new Map,hs=s=>{if(Be.has(s))return;const t=setTimeout(()=>{Be.delete(s),fe({type:"REMOVE_TOAST",toastId:s})},ar);Be.set(s,t)},nr=(s,t)=>{switch(t.type){case"ADD_TOAST":return{...s,toasts:[t.toast,...s.toasts].slice(0,tr)};case"UPDATE_TOAST":return{...s,toasts:s.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{const{toastId:a}=t;return a?hs(a):s.toasts.forEach(i=>{hs(i.id)}),{...s,toasts:s.toasts.map(i=>i.id===a||a===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return t.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(a=>a.id!==t.toastId)}}},Ce=[];let Te={toasts:[]};function fe(s){Te=nr(Te,s),Ce.forEach(t=>{t(Te)})}function ir({...s}){const t=rr(),a=l=>fe({type:"UPDATE_TOAST",toast:{...l,id:t}}),i=()=>fe({type:"DISMISS_TOAST",toastId:t});return fe({type:"ADD_TOAST",toast:{...s,id:t,open:!0,onOpenChange:l=>{l||i()}}}),{id:t,dismiss:i,update:a}}function We(){const[s,t]=n.useState(Te);return n.useEffect(()=>(Ce.push(t),()=>{const a=Ce.indexOf(t);a>-1&&Ce.splice(a,1)}),[s]),{...s,toast:ir,dismiss:a=>fe({type:"DISMISS_TOAST",toastId:a})}}/**
3 * @license lucide-react v0.462.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const lr=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lt=(...s)=>s.filter((t,a,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===a).join(" ").trim();/**
8 * @license lucide-react v0.462.0 - ISC
9 *
10 * This source code is licensed under the ISC license.
11 * See the LICENSE file in the root directory of this source tree.
12 */var or={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
13 * @license lucide-react v0.462.0 - ISC
14 *
15 * This source code is licensed under the ISC license.
16 * See the LICENSE file in the root directory of this source tree.
17 */const cr=n.forwardRef(({color:s="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:l="",children:c,iconNode:u,...d},o)=>n.createElement("svg",{ref:o,...or,width:t,height:t,stroke:s,strokeWidth:i?Number(a)*24/Number(t):a,className:lt("lucide",l),...d},[...u.map(([m,f])=>n.createElement(m,f)),...Array.isArray(c)?c:[c]]));/**
18 * @license lucide-react v0.462.0 - ISC
19 *
20 * This source code is licensed under the ISC license.
21 * See the LICENSE file in the root directory of this source tree.
22 */const k=(s,t)=>{const a=n.forwardRef(({className:i,...l},c)=>n.createElement(cr,{ref:c,iconNode:t,className:lt(`lucide-${lr(s)}`,i),...l}));return a.displayName=`${s}`,a};/**
23 * @license lucide-react v0.462.0 - ISC
24 *
25 * This source code is licensed under the ISC license.
26 * See the LICENSE file in the root directory of this source tree.
27 */const dr=k("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
28 * @license lucide-react v0.462.0 - ISC
29 *
30 * This source code is licensed under the ISC license.
31 * See the LICENSE file in the root directory of this source tree.
32 */const Je=k("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
33 * @license lucide-react v0.462.0 - ISC
34 *
35 * This source code is licensed under the ISC license.
36 * See the LICENSE file in the root directory of this source tree.
37 */const ot=k("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
37],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
38 * @license lucide-react v0.462.0 - ISC
39 *
40 * This source code is licensed under the ISC license.
41 * See the LICENSE file in the root directory of this source tree.
42 */const ct=k("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
43 * @license lucide-react v0.462.0 - ISC
44 *
45 * This source code is licensed under the ISC license.
46 * See the LICENSE file in the root directory of this source tree.
47 */const ur=k("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
48 * @license lucide-react v0.462.0 - ISC
49 *
50 * This source code is licensed under the ISC license.
51 * See the LICENSE file in the root directory of this source tree.
52 */const ze=k("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
53 * @license lucide-react v0.462.0 - ISC
54 *
55 * This source code is licensed under the ISC license.
56 * See the LICENSE file in the root directory of this source tree.
57 */const le=k("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
58 * @license lucide-react v0.462.0 - ISC
59 *
60 * This source code is licensed under the ISC license.
61 * See the LICENSE file in the root directory of this source tree.
62 */const mr=k("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
63 * @license lucide-react v0.462.0 - ISC
64 *
65 * This source code is licensed under the ISC license.
66 * See the LICENSE file in the root directory of this source tree.
67 */const $e=k("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
68 * @license lucide-react v0.462.0 - ISC
69 *
70 * This source code is licensed under the ISC license.
71 * See the LICENSE file in the root directory of this source tree.
72 */const hr=k("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
73 * @license lucide-react v0.462.0 - ISC
74 *
75 * This source code is licensed under the ISC license.
76 * See the LICENSE file in the root directory of this source tree.
77 */const xs=k("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
78 * @license lucide-react v0.462.0 - ISC
79 *
80 * This source code is licensed under the ISC license.
81 * See the LICENSE file in the root directory of this source tree.
82 */const dt=k("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
83 * @license lucide-react v0.462.0 - ISC
84 *
85 * This source code is licensed under the ISC license.
86 * See the LICENSE file in the root directory of this source tree.
87 */const Ae=k("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
88 * @license lucide-react v0.462.0 - ISC
89 *
90 * This source code is licensed under the ISC license.
91 * See the LICENSE file in the root directory of this source tree.
92 */const J=k("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
93 * @license lucide-react v0.462.0 - ISC
94 *
95 * This source code is licensed under the ISC license.
96 * See the LICENSE file in the root directory of this source tree.
97 */const xr=k("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
98 * @license lucide-react v0.462.0 - ISC
99 *
100 * This source code is licensed under the ISC license.
101 * See the LICENSE file in the root directory of this source tree.
102 */const pr=k("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
103 * @license lucide-react v0.462.0 - ISC
104 *
105 * This source code is licensed under the ISC license.
106 * See the LICENSE file in the root directory of this source tree.
107 */const fr=k("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
108 * @license lucide-react v0.462.0 - ISC
109 *
110 * This source code is licensed under the ISC license.
111 * See the LICENSE file in the root directory of this source tree.
112 */const gr=k("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
113 * @license lucide-react v0.462.0 - ISC
114 *
115 * This source code is licensed under the ISC license.
116 * See the LICENSE file in the root directory of this source tree.
117 */const Ye=k("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
118 * @license lucide-react v0.462.0 - ISC
119 *
120 * This source code is licensed under the ISC license.
121 * See the LICENSE file in the root directory of this source tree.
122 */const ut=k("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);/**
123 * @license lucide-react v0.462.0 - ISC
124 *
125 * This source code is licensed under the ISC license.
126 * See the LICENSE file in the root directory of this source tree.
127 */const br=k("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
128 * @license lucide-react v0.462.0 - ISC
129 *
130 * This source code is licensed under the ISC license.
131 * See the LICENSE file in the root directory of this source tree.
132 */const ps=k("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
133 * @license lucide-react v0.462.0 - ISC
134 *
135 * This source code is licensed under the ISC license.
136 * See the LICENSE file in the root directory of this source tree.
137 */const jr=k("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
138 * @license lucide-react v0.462.0 - ISC
139 *
140 * This source code is licensed under the ISC license.
141 * See the LICENSE file in the root directory of this source tree.
142 */const wr=k("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
143 * @license lucide-react v0.462.0 - ISC
144 *
145 * This source code is licensed under the ISC license.
146 * See the LICENSE file in the root directory of this source tree.
147 */const vr=k("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
148 * @license lucide-react v0.462.0 - ISC
149 *
150 * This source code is licensed under the ISC license.
151 * See the LICENSE file in the root directory of this source tree.
152 */const mt=k("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
153 * @license lucide-react v0.462.0 - ISC
154 *
155 * This source code is licensed under the ISC license.
156 * See the LICENSE file in the root directory of this source tree.
157 */const yr=k("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
158 * @license lucide-react v0.462.0 - ISC
159 *
160 * This source code is licensed under the ISC license.
161 * See the LICENSE file in the root directory of this source tree.
162 */const Nr=k("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
163 * @license lucide-react v0.462.0 - ISC
164 *
165 * This source code is licensed under the ISC license.
166 * See the LICENSE file in the root directory of this source tree.
167 */const ht=k("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
168 * @license lucide-react v0.462.0 - ISC
169 *
170 * This source code is licensed under the ISC license.
171 * See the LICENSE file in the root directory of this source tree.
172 */const fs=k("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
173 * @license lucide-react v0.462.0 - ISC
174 *
175 * This source code is licensed under the ISC license.
176 * See the LICENSE file in the root directory of this source tree.
177 */const Xe=k("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
178 * @license lucide-react v0.462.0 - ISC
179 *
180 * This source code is licensed under the ISC license.
181 * See the LICENSE file in the root directory of this source tree.
182 */const _r=k("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
183 * @license lucide-react v0.462.0 - ISC
184 *
185 * This source code is licensed under the ISC license.
186 * See the LICENSE file in the root directory of this source tree.
187 */const kr=k("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/**
188 * @license lucide-react v0.462.0 - ISC
189 *
190 * This source code is licensed under the ISC license.
191 * See the LICENSE file in the root directory of this source tree.
192 */const Sr=k("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
193 * @license lucide-react v0.462.0 - ISC
194 *
195 * This source code is licensed under the ISC license.
196 * See the LICENSE file in the root directory of this source tree.
197 */const Cr=k("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
198 * @license lucide-react v0.462.0 - ISC
199 *
200 * This source code is licensed under the ISC license.
201 * See the LICENSE file in the root directory of this source tree.
202 */const xt=k("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
202],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function p(...s){return ya(Na(s))}function vl(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}function yl(s,t){const i=t.replace(/\s+-/g,"-").replace(/-\s+/g,"-").replace(/\s+/g," ").trim().toLowerCase().replace(/-/g,"--").replace(/\s+/g,"-");return s?`${s.toLowerCase()}-${i}`:i}function Nl(s){if(!s)return null;const t=s.match(/^([^-]+)-(.+)$/);if(!t)return null;const a=t[1].toLowerCase(),i=t[2],l="___HYPHEN___",c=i.replace(/--/g,l).replace(/-/g," ").replace(new RegExp(l,"g"),"-");return{chamber:a,name:c}}function gs(s){return{mon:"Mon",monday:"Monday",tue:"Tue",tues:"Tue",tuesday:"Tuesday",wed:"Wed",weds:"Wed",wednesday:"Wednesday",thu:"Thu",thur:"Thu",thurs:"Thu",thus:"Thu",thursday:"Thursday",fri:"Fri",friday:"Friday",sat:"Sat",saturday:"Saturday",sun:"Sun",sunday:"Sunday"}[s.toLowerCase()]||s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()}function Tr(s){const t=s.trim().toLowerCase();return t==="on call"||t==="on calls"?"On Call":t==="daily"||t==="dailys"?"Daily":t.includes("/")?t.split("/").map(i=>gs(i.trim())).join("/"):`${gs(t)}s`}function _l(s,t){if(!s||!t)return"Not specified";const a=s.trim().toLowerCase(),i=t.trim().toLowerCase();return a.includes("on call")&&i.includes("on call")?"On Call":`${Tr(s)} at ${t}`}const Er=da,pt=n.forwardRef(({className:s,...t},a)=>e.jsx(ks,{ref:a,className:p("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",s),...t}));pt.displayName=ks.displayName;const Lr=Ie("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ft=n.forwardRef(({className:s,variant:t,...a},i)=>e.jsx(Ss,{ref:i,className:p(Lr({variant:t}),s),...a}));ft.displayName=Ss.displayName;const Ir=n.forwardRef(({className:s,...t},a)=>e.jsx(Cs,{ref:a,className:p("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",s),...t}));Ir.displayName=Cs.displayName;const gt=n.forwardRef(({className:s,...t},a)=>e.jsx(Ts,{ref:a,className:p("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",s),"toast-close":"",...t,children:e.jsx(xt,{className:"h-4 w-4"})}));gt.displayName=Ts.displayName;const bt=n.forwardRef(({className:s,...t},a)=>e.jsx(Es,{ref:a,className:p("text-sm font-semibold",s),...t}));bt.displayName=Es.displayName;const jt=n.forwardRef(({className:s,...t},a)=>e.jsx(Ls,{ref:a,className:p("text-sm opacity-90",s),...t}));jt.displayName=Ls.displayName;function Mr(){const{toasts:s}=We();return e.jsxs(Er,{children:[s.map(function({id:t,title:a,description:i,action:l,...c}){return e.jsxs(ft,{...c,children:[e.jsxs("div",{className:"grid gap-1",children:[a&&e.jsx(bt,{children:a}),i&&e.jsx(jt,{children:i})]}),l,e.jsx(gt,{})]},t)}),e.jsx(pt,{})]})}const wt=n.createContext(null),Ar=n.lazy(()=>w(()=>import("./AuthModal-BO3PB6ux.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])).then(s=>({default:s.AuthModal})));function Rr({children:s}){const[t,a]=n.useState(!1),[i,l]=n.useState(!1),[c,u]=n.useState("signin");n.useEffect(()=>{const m=window.location.hash;m.includes("access_token")&&m.includes("type=recovery")&&(u("reset-password"),l(!0),a(!0))},[]);const d=n.useCallback(()=>{u("signin"),l(!0),a(!0)},[]),o=n.useCallback(()=>{a(!1)},[]);return e.jsxs(wt.Provider,{value:{showAuthModal:d,hideAuthModal:o},children:[s,i&&e.jsx(n.Suspense,{fallback:null,children:e.jsx(Ar,{isOpen:t,onClose:o,initialView:c})})]})}const Or="https://vpixaoxlgyowlshgumew.supabase.co",Pr="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZwaXhhb3hsZ3lvd2xzaGd1bWV3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzM5Mzk3MzksImV4cCI6MjA0OTUxNTczOX0.NdcwGC62I6LaWmmm7W1TxdX6FKBUnJKMvZEdrq6pJ9s",P=_a(Or,Pr);function E(s){typeof window<"u"&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push(s))}function kl(s="email"){E({event:"sign_in",method:s})}function Sl(s){E({event:"sign_up",method:s})}function Dr(){E({event:"sign_out"})}function Cl(){E({event:"password_reset_request"})}function Tl(){E({event:"password_reset_complete"})}function El(){E({event:"two_factor_enabled"})}function Ll(s){E({event:"search",...s})}function Il(s){E({event:"view_bill",...s})}function Ml(s,t){E({event:"bill_filter_applied",filter_type:s,filter_value:t})}function Al(s,t){E({event:"bill_sort_changed",sort_column:s,sort_direction:t})}function Rl(s){E({event:"bill_view_mode_changed",view_mode:s})}function Ol(s,t){E({event:"bill_tab_changed",bill_number:s,tab:t})}function Pl(s,t,a){E({event:"bill_shared",bill_id:s,platform:t,template:a})}function Dl(s,t){E({event:"bill_share_modal_opened",bill_id:s,bill_number:t})}function Bl(s){E({event:"bill_link_copied",bill_id:s})}function zl(s,t){E({event:"bills_list_export",count:s,format:t})}async function Vl(s){try{const{error:t}=await P.functions.invoke("track-bill-view",{body:{bill_id:s}});
202t&&console.error("trackBillViewToBackend error:",t)}catch(t){console.error("trackBillViewToBackend:",t)}}function Ul(s,t){E({event:"social_text_copied",bill_id:s,platform:t})}function Fl(s){E({event:"discovery_mode_changed",mode:s})}function ql(s){E({event:"view_legislator",...s})}function Hl(s,t){E({event:"legislator_filter_applied",filter_type:s,filter_value:t})}function $l(s,t){E({event:"legislator_export",legislator_id:s,format:t})}function Yl(s,t){E({event:"view_voting_record",legislator_id:s,legislator_name:t})}function Kl(s){E({event:"legislator_view_mode_changed",view_mode:s})}function Gl(s,t){E({event:"legislators_list_export",count:s,format:t})}function Ql(s,t){E({event:"committee_filter_applied",filter_type:s,filter_value:t})}function Wl(s,t){E({event:"committees_list_export",count:s,format:t})}function Jl(s){E({event:"view_vote",...s})}function Xl(s,t){E({event:"vote_export",vote_id:s,format:t})}function Zl(s,t){E({event:"vote_share",vote_id:s,platform:t})}function eo(s,t,a){E({event:"begin_checkout",currency:"USD",value:a,items:[{item_id:s,item_name:t,price:a,quantity:1}]})}function so(s,t,a,i){E({event:"purchase",transaction_id:s,currency:"USD",value:i,items:[{item_id:t,item_name:a,price:i,quantity:1}]})}function to(){E({event:"subscription_portal_opened"})}function ao(s){E({event:"newsletter_subscribe",newsletters:s})}const Ve={free:{displayName:"Free",trackedBills:10,trackedCommittees:2,savedSearches:2,notifications:{allowedFrequencies:["daily"],instantAllowed:[],newBillsEnabled:!1,similarBillsEnabled:!1},summaries:{dailyUnlocks:5,unlockDurationHours:24}},citizen:{displayName:"Citizen",trackedBills:50,trackedCommittees:10,savedSearches:10,notifications:{allowedFrequencies:["instant","daily","weekly"],instantAllowed:["status","version","title"],newBillsEnabled:!0,similarBillsEnabled:!1},summaries:{dailyUnlocks:null,unlockDurationHours:24}},professional:{displayName:"Professional",trackedBills:null,trackedCommittees:null,savedSearches:null,notifications:{allowedFrequencies:["instant","daily","weekly"],instantAllowed:["status","version","title","new_bill","similar_bill"],newBillsEnabled:!0,similarBillsEnabled:!0},summaries:{dailyUnlocks:null,unlockDurationHours:24}}};function vt(s){return s&&s in Ve?Ve[s]:Ve.free}const Ue=["free","citizen","professional"],Fe={free:"Free",citizen:"Citizen",professional:"Professional"};function ro(s){return s!=="free"&&s!==null&&s!==void 0}function no(s){return s&&s in Fe?Fe[s]:Fe.free}function io(s){const t=Ue.indexOf(s);return t===-1||t>=Ue.length-1?null:Ue[t+1]}const yt=n.createContext(void 0);async function bs(){const{data:s,error:t}=await P.functions.invoke("stripe/get-subscription-status",{method:"GET"});return t?{subscriptionTier:"free",stripeCustomerId:null,stripeSubscriptionId:null,stripeProductId:null,stripeSubscriptionStatus:null,currentPeriodEnd:null,cancelAtPeriodEnd:!1}:s}function Br({children:s}){const[t,a]=n.useState(null),[i,l]=n.useState(null),[c,u]=n.useState(!0),[d,o]=n.useState("free"),[m,f]=n.useState(null),[h,b]=n.useState(null),[g,x]=n.useState(!1),[j,v]=n.useState(null),{toast:T}=We(),L=n.useMemo(()=>vt(d),[d]),M=n.useRef(null);n.useEffect(()=>{const S=N=>{if(!(N!=null&&N.access_token))return null;try{return oa(N.access_token).user_role??null}catch{return null}};P.auth.getSession().then(({data:{session:N}})=>{a(N),l((N==null?void 0:N.user)??null),v(S(N)),u(!1)});const{data:{subscription:B}}=P.auth.onAuthStateChange((N,F)=>{a(F),l((F==null?void 0:F.user)??null),v(S(F)),u(!1)});return()=>B.unsubscribe()},[]),n.useEffect(()=>{const S=i==null?void 0:i.id;if(!S||M.current===S)return;(async()=>{M.current=S;try{const{data:N}=await P.from("profiles").select("subscription_status").eq("id",S).single(),F=["free","citizen","professional"];N!=null&&N.subscription_status&&F.includes(N.subscription_status)&&o(N.subscription_status);const A=await bs();o(A.subscriptionTier),f(A.stripeProductId),b(A.stripeSubscriptionStatus),(N==null?void 0:N.subscription_status)!==A.subscriptionTier&&await P.from("profiles").update({subscription_status:A.subscriptionTier,stripe_customer_id:A.stripeCustomerId,stripe_subscription_id:A.stripeSubscriptionId,stripe_subscription_status:A.stripeSubscriptionStatus}).eq("id",S)}catch{M.current=null}})()},[i==null?void 0:i.id]);const U=n.useCallback(async()=>{const S=i==null?void 0:i.id;if(!S)return"free";x(!0);try{const B=await bs();return o(B.subscriptionTier),f(B.stripeProductId),b(B.stripeSubscriptionStatus),await P.from("profiles").update({subscription_status:B.subscriptionTier,stripe_customer_id:B.stripeCustomerId,stripe_subscription_id:B.stripeSubscriptionId,stripe_subscription_status:B.stripeSubscriptionStatus}).eq("id",S),B.subscriptionTier}catch{return d}finally{x(!1)}},[i==null?void 0:i.id,d]),G=n.useCallback(async()=>{try{await P.auth.signOut(),a(null),l(null),o("free"),f(null),b(null),M.current=null,Dr(),T({title:"Signed out successfully"})}catch{T({title:"Error signing out",variant:"destructive"})}},[T]),O=n.useCallback(S=>S==="unauthenticated"?!0:S==="authenticated"?!!i:S==="paid"?d!=="free":!1,[i,d]),R=!!i&&d!=="free",I=n.useMemo(()=>({session:t,user:i,loading:c,subscriptionTier:d,tierLimits:L,stripeProductId:m,stripeSubscriptionStatus:h,subscriptionLoading:g,signOut:G,hasAccess:O,refreshSubscriptionStatus:U,isAuthenticated:!!i,isPaidUser:R,isAdmin:j==="admin"}),[t,i,c,d,L,m,h,g,G,O,U,R,j]);return e.jsx(yt.Provider,{value:I,children:s})}const zr=n.createContext(null),Vr=n.lazy(()=>w(()=>import("./UpgradeModal-DyT5ogkp.js"),__vite__mapDeps([20,1,2,3,4,5,21,22,23,24,25,19,9])).then(s=>({default:s.UpgradeModal}))),Ur=200;function Fr({children:s}){const[t,a]=n.useState(!1),[i,l]=n.useState(!1),[c,u]=n.useState(null),d=m=>{u(m),a(!0),l(!0)},o=()=>{a(!1),setTimeout(()=>u(null),Ur)};return e.jsxs(zr.Provider,{value:{openUpgradeModal:d,closeUpgradeModal:o},children:[s,i&&e.jsx(n.Suspense,{fallback:null,children:e.jsx(Vr,{isOpen:t,onClose:o,trigger:c})})]})}const Nt=n.createContext(void 0);function lo(s){return s}function oo(s){return s}function co(s){return s}function uo(s){return s}const _t=300*1e3,qr=1800*1e3,kt=600*1e3,Hr=3600*1e3,mo={staleTime:_t,gcTime:kt,refetchOnWindowFocus:!1,retry:1},Ze={staleTime:_t,gcTime:kt,refetchOnWindowFocus:!1},es={staleTime:qr,gcTime:Hr,refetchOnWindowFocus:!1},St="PGRST116",Ct="23505";function ho(s,t){const{data:a,error:i}=s;if(i){if(i.code===St)return null;throw new Error(`Failed to fetch ${t}: ${i.message}`)}return a}function xo(s){return(s==null?void 0:s.code)===St}function po(s,t,a){}const fo="id, state_id, session_id, name, chamber, committee_type, chair_term_id, vice_chair_term_id, ranking_minority_term_id, meeting_day, meeting_time, meeting_location, url, assistant_name, assistant_email, assistant_p
202hone, created_at, updated_at",go="id, committee_id, term_id, role, start_date, end_date, reason_ended, created_at",bo="id, legislator_id, session_id, chamber, district, county, party_id, start_date, end_date, created_at, updated_at",jo="id, state_id, name, first_name, last_name, picture_url, url, ballotpedia_url, wikipedia_url, capitol_office_email, capitol_office_phone, occupation, created_at, updated_at",wo="id, bill_version_id, summary_type_id, summary_text, summary_json, model_used, tokens_used, created_at",vo="id, bill_id, term_id, sponsor_type, sponsor_order, created_at",yo="id, bill_id, status_id, chamber, history_date, raw_status, journal_page, created_at",No="id, session_id, document_type, title, url, r2_key, published_date, created_at, updated_at",_o="id, state_id, session_id, number, chamber, title, url, introduced, status_id, created_at, updated_at",ko="id, bill_id, version_date, version_url, chamber, status, r2_key, effective_title_id, pdf_extracted, analysis_complete, standard_summaries_complete, full_summary_complete, created_at, updated_at",So="id, bill_version_id, analysis_type_id, user_id, score, rating, rating_json, categories, tags, summary_text, detailed_analysis, confidence_score, model_used, tokens_used, processing_time_ms, analyzed_at, created_at, updated_at",Co="id, bill_id, title, short_title, effective_date, reason, substitutes_bill_id, sequence_number, notes, bill_version_id, created_at",To="id, document_id, document_type, narrative_summary, structured_data, model_used, created_at",Eo="id, bill_id, version_id, session_id, vote_url, vote_type, vote_date, chamber, yeas, nays, present, absent, passed, created_at",Lo="id, user_id, email_enabled, digest_frequency, alert_on_new_bill, alert_on_new_version, alert_on_status_change, alert_on_title_change, alert_on_similar_bill, created_at, updated_at",Io="id, user_id, name, search_type, query, filters, session_id, alerts_enabled, alert_frequency, last_viewed_at, last_alert_at, created_at, updated_at",$r="id, user_id, bill_id, unlocked_at, expires_at",Ke="id, state_id, session_code, session_type, display_name, biennium_start_year, biennium_end_year, start_date, end_date, is_active, is_current, parent_session_id, special_session_number, 
202created_at, updated_at",Mo="id, bioguide_id, full_name, first_name, last_name, party, state, chamber, district, state_rank, start_date, end_date, picture_url, office_address, office_phone, website_url, contact_form_url, ballotpedia_url, wikipedia_url, fec_id, govtrack_id, created_at, updated_at",Ao="id, subscription_status, beehiiv_user_id, mailerlite_subscriber_id, stripe_customer_id, stripe_subscription_id, stripe_subscription_status, created_at, updated_at",Ro="map_id, title, description, created_by, election_id, palette_id, settings, is_published, public_shortcode, show_precincts, show_house_districts, show_senate_districts, created_at, updated_at",Oo="id, meeting_id, item_order, item_type, raw_text, bill_id, bill_number, bill_title, description, presenter_name, presenter_title, presenter_organization, analyst_name, agency_name, created_at",Po="id, floor_calendar_id, item_order, section, raw_text, bill_id, bill_number, bill_title, description, action_type, committee_name, status, created_at",Do="district, county, chamber, party_id",Bo="id, city, state, zip_code, state_house_district, state_senate_district, congressional_district, created_at, updated_at",zo="id, legislator_type, state_legislator_id, federal_legislator_id, chamber, created_at",Vo="id, name, first_name, last_name, picture_url",Uo="id, chamber, district, party_id",Fo="meeting_id, bill_id, bill_number, bill_title",qo="floor_calendar_id, bill_id, bill_number, bill_title",Yr="id, code, name",Ho="relevance, is_primary, policy_topics(name)",$o="id, queue_message_id, job_type, status, params, result, error, attempt, started_at, completed_at, continuation_token";async function Kr(s){const{data:t,error:a}=await P.from("sessions_v2").select(Ke).eq("state_id",s).order("biennium_start_year",{ascending:!1});if(a)throw new Error(`Failed to fetch sessions: ${a.message}`);return t||[]}async function Gr(s){const{data:t,error:a}=await P.from("sessions_v2").select(Ke).eq("state_id",s).eq("is_current",!0).maybeSingle();if(a)throw new Error(`Failed to fetch current session: ${a.message}`);if(t)return t;const{data:i,error:l}=await P.from("sessions_v2").select(Ke).eq("state_id",s).order("biennium_start_year",{ascending:!1}).limit(1).maybeSingle();if(l)throw new Error(`Failed to fetch fallback session: ${l.message}`);return i}function Yo(s){return oe({queryKey:["sessions-v2",s],queryFn:()=>Kr(s),...es,enabled:!!s})}function Qr(s){return oe({queryKey:["sessions-v2","current",s],queryFn:()=>Gr(s),...es,enabled:!!s})}async function Wr(){const{data:s,error:t}=await P.from("states").select(Yr).order("name");if(t)throw new Error(`Failed to fetch states: ${t.message}`);return s??[]}function Jr(){return oe({queryKey:["states-v2"],queryFn:Wr,...es})}function Xr({children:s}){const t=ve(),a=we(),{toast:i}=We(),[l,c]=n.useState(null),[u,d]=n.useState(null),[o,m]=n.useState(!1),[f,h]=n.useState(!1),[b,g]=n.useState(!1),{data:x,isLoading:j,error:v}=Jr(),T=n.useMemo(()=>x??[],[x]),L=n.useMemo(()=>{const O=new Date().getFullYear();return Array.from({length:5},(R,I)=>O-I)},[]);n.useEffect(()=>{v&&i({title:"Error loading states",description:"Please refresh the page to try again.",variant:"destructive"})},[v,i]);const{data:M}=Qr(l||0),U=M!=null&&M.id?M.id:null;n.useEffect(()=>{if(f)return;const O=new URLSearchParams(t.search),R=O.get("state"),I=O.get("year");if(R&&T.length>0){const S=T.find(B=>B.code===R);S&&c(S.id)}I&&d(parseInt(I,10)),h(!0)},[t.search,f,T]),n.useEffect(()=>{if(!(b||T.length===0)){if(!l){const R=T.find(I=>I.code==="KS")??T[0];if(c(R.id),t.pathname==="/"||t.pathname===""){const I=new URLSearchParams(t.search);I.get("state")||(I.set("state",R.code),a({search:I.toString()},{replace:!0}))}}if(!u){const O=new Date().getFullYear();if(d(O),t.pathname==="/"||t.pathname===""){const R=new URLSearchParams(t.search);R.get("year")||(R.set("year",O.toString()),a({search:R.toString()},{replace:!0}))}}g(!0)}},[T]),n.useEffect(()=>{if(t.pathname!=="/"&&t.pathname!=="")return;const O=new URLSearchParams(t.search);let R=!1;if(l&&T.length>0){const I=T.find(S=>S.id===l);if(I){const S=O.get("state");(!S||S!==I.code)&&(O.set("state",I.code),R=!0)}}if(u){const I=O.get("year");
202(!I||I!==u.toString())&&(O.set("year",u.toString()),R=!0)}R&&a({search:O.toString()},{replace:!0})},[l,u,t.pathname,t.search,a,T]);const G={currentStateId:l,currentYear:u,currentSessionId:U,states:T,years:L,setCurrentStateId:c,setCurrentYear:d,isPremium:o,loading:j,error:v?"Failed to load state data":null};return e.jsx(Nt.Provider,{value:G,children:s})}const Zr=Ie("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Tt({className:s,variant:t,...a}){return e.jsx("div",{className:p(Zr({variant:t}),s),...a})}const en=Ie("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary-900 text-primary-foreground hover:bg-primary-800 dark:bg-primary-100 dark:text-primary-900 dark:hover:bg-primary-200",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-background text-foreground hover:bg-muted hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-muted hover:text-foreground",link:"text-primary underline-offset-4 hover:underline",toggle:"bg-transparent text-muted-foreground hover:bg-muted hover:text-foreground data-[state=active]:bg-primary-900 data-[state=active]:text-primary-foreground dark:data-[state=active]:bg-primary-100 dark:data-[state=active]:text-primary-900"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),z=n.forwardRef(({className:s,variant:t,size:a,asChild:i=!1,...l},c)=>{const u=i?Is:"button";return e.jsx(u,{className:p(en({variant:t,size:a,className:s})),ref:c,...l})});z.displayName="Button";const re=ma,ne=ha,de=xa,te=n.forwardRef(({className:s,inset:t,children:a,...i},l)=>e.jsxs(Ms,{ref:l,className:p("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",s),...i,children:[a,e.jsx(le,{className:"ml-auto h-4 w-4"})]}));te.displayName=Ms.displayName;const ae=n.forwardRef(({className:s,...t},a)=>e.jsx(As,{ref:a,className:p("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t}));ae.displayName=As.displayName;const W=n.forwardRef(({className:s,sideOffset:t=4,...a},i)=>e.jsx(ua,{children:e.jsx(Rs,{ref:i,sideOffset:t,className:p("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...a})}));W.displayName=Rs.displayName;const C=n.forwardRef(({className:s,inset:t,...a},i)=>e.jsx(Os,{ref:i,className:p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",s),...a}
202));C.displayName=Os.displayName;const sn=n.forwardRef(({className:s,children:t,checked:a,...i},l)=>e.jsxs(Ps,{ref:l,className:p("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:a,...i,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Ds,{children:e.jsx(ur,{className:"h-4 w-4"})})}),t]}));sn.displayName=Ps.displayName;const tn=n.forwardRef(({className:s,children:t,...a},i)=>e.jsxs(Bs,{ref:i,className:p("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Ds,{children:e.jsx(hr,{className:"h-2 w-2 fill-current"})})}),t]}));tn.displayName=Bs.displayName;const Et=n.forwardRef(({className:s,inset:t,...a},i)=>e.jsx(zs,{ref:i,className:p("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",s),...a}));Et.displayName=zs.displayName;const $=n.forwardRef(({className:s,...t},a)=>e.jsx(Vs,{ref:a,className:p("-mx-1 my-1 h-px bg-muted",s),...t}));$.displayName=Vs.displayName;function an(){const s=n.useContext(Nt);if(s===void 0)throw new Error("useStateYear must be used within a StateYearProvider");return s}function K(){const s=n.useContext(yt);if(s===void 0)throw new Error("useAuth must be used within an AuthProvider");return s}function Lt(s){const{tableName:t,queryKey:a,entityIdField:i,tierLimitKey:l,selectColumns:c,getEntityId:u,entityName:d}=s,o=[a];async function m(b){const{data:g,error:x}=await P.from(t).select(c).eq("user_id",b).order("tracked_at",{ascending:!1});if(x)throw new Error(`Failed to fetch tracked ${d}s: ${x.message}`);return g||[]}async function f(b,g){const{data:x,error:j}=await P.from(t).insert({user_id:b,[i]:g}).select().single();if(j)throw j.code===Ct?new Error(`You are already tracking this ${d}`):new Error(`Failed to track ${d}: ${j.message}`);return x}async function h(b,g){const{error:x}=await P.from(t).delete().eq("user_id",b).eq(i,g);if(x)throw new Error(`Failed to untrack ${d}: ${x.message}`)}return function(){const{user:g,tierLimits:x}=K(),j=Ge(),v=g==null?void 0:g.id,T=oe({queryKey:[...o,v],queryFn:()=>m(v),...Ze,enabled:!!v}),L=n.useMemo(()=>{var N;return new Set(((N=T.data)==null?void 0:N.map(u))??[])},[T.data]),M=L.size,U=x[l],G=n.useMemo(()=>U===null?!0:M<U,[M,U]),O=n.useMemo(()=>U===null?null:Math.max(0,U-M),[M,U]),R=N=>L.has(N),I=ge({mutationFn:N=>f(v,N),onMutate:async N=>{await j.cancelQueries({queryKey:[...o,v]});const F=j.getQueryData([...o,v]),A={id:`temp-${N}`,user_id:v,[i]:N,tracked_at:new Date().toISOString()};return j.setQueryData([...o,v],Re=>[A,...Re??[]]),{previousItems:F}},onError:(N,F,A)=>{A!=null&&A.previousItems&&j.setQueryData([...o,v],A.previousItems)},onSettled:()=>{j.invalidateQueries({queryKey:[...o,v]})}}),S=ge({mutationFn:N=>h(v,N),onMutate:async N=>{await j.cancelQueries({queryKey:[...o,v]});const F=j.getQueryData([...o,v]);return j.setQueryData([...o,v],A=>(A==null?void 0:A.filter(Re=>u(Re)!==N))??[]),{previousItems:F}},onError:(N,F,A)=>{A!=null&&A.previousItems&&j.setQueryData([...o,v],A.previousItems)},onSettled:()=>{j.invalidateQueries({queryKey:[...o,v]})}}),B=async N=>{R(N)?await S.mutateAsync(N):await I.mutateAsync(N)};return{trackedItems:T.data??[],trackedIds:L,trackedCount:M,limit:U,canTrackMore:G,remainingSlots:O,isLoading:T.isLoading,isError:T.isError,error:T.error,isTracked:R,trackMutation:I,untrackMutation:S,toggleTracking:B,isToggling:I.isPending||S.isPending,refetch:T.refetch}}}function It(s){const{tableName:t,queryKey:a,selectColumns:i,getEntityId:l,entityName:c}=s,u=[a];async function d(o){const{data:m,error:f}=await P.from(t).select(i).eq("user_id",o).order("tracked_at",{ascending:!1});if(f)throw new Error(`Failed to fetch tracked ${c}s: ${f.message}`);return m||[]}return function(){const{user:m}=K(),f=m==null?void 0:m.id,{data:h,isLoading:b}=oe({queryKey:[...u,f],queryFn:()=>d(f),...Ze,enabled:!!f,select:g=>new Set(g.map(l))});return{trackedIds:h??new Set,isLoading:b,isTracked:g=>(h==null?void 0:h.has(g))??!1}}}const ee=["tracked-bills"],Mt={tableName:"user_tracked_bills",queryKey:"tracked-bills",entityIdField:"bill_id",t
202ierLimitKey:"trackedBills",selectColumns:"id, user_id, bill_id, tracked_at, notify_on_change, notes",getEntityId:s=>s.bill_id,entityName:"bill"},rn=Lt(Mt);async function nn(s,t){const{data:a,error:i}=await P.from("user_tracked_bills").insert({user_id:s,bill_id:t.billId,notify_on_change:t.notifyOnChange??!0,notes:t.notes??null}).select().single();if(i)throw i.code===Ct?new Error("You are already tracking this bill"):new Error(`Failed to track bill: ${i.message}`);return a}async function ln(s,t,a){const{data:i,error:l}=await P.from("user_tracked_bills").update({notify_on_change:a.notifyOnChange,notes:a.notes}).eq("user_id",s).eq("bill_id",t).select().single();if(l)throw new Error(`Failed to update tracked bill: ${l.message}`);return i}function At(){const{user:s}=K(),t=Ge(),a=s==null?void 0:s.id,i=rn(),l=ge({mutationFn:d=>nn(a,d),onMutate:async d=>{await t.cancelQueries({queryKey:[...ee,a]});const o=t.getQueryData([...ee,a]),m={id:`temp-${d.billId}`,user_id:a,bill_id:d.billId,tracked_at:new Date().toISOString(),notify_on_change:d.notifyOnChange??!0,notes:d.notes??null};return t.setQueryData([...ee,a],f=>[m,...f??[]]),{previousTrackedBills:o}},onError:(d,o,m)=>{m!=null&&m.previousTrackedBills&&t.setQueryData([...ee,a],m.previousTrackedBills)},onSettled:()=>{t.invalidateQueries({queryKey:[...ee,a]})}}),c=ge({mutationFn:({billId:d,updates:o})=>ln(a,d,o),onSuccess:()=>{t.invalidateQueries({queryKey:[...ee,a]})}}),u=async d=>{i.isTracked(d)?await i.untrackMutation.mutateAsync(d):await l.mutateAsync({billId:d})};return{trackedBills:i.trackedItems,trackedBillIds:i.trackedIds,trackedCount:i.trackedCount,billLimit:i.limit,canTrackMore:i.canTrackMore,remainingSlots:i.remainingSlots,isLoading:i.isLoading,isError:i.isError,error:i.error,isTracked:i.isTracked,trackBill:l,untrackBill:i.untrackMutation,updateTrackedBill:c,toggleTracking:u,isToggling:l.isPending||i.untrackMutation.isPending,refetch:i.refetch}}const on=It(Mt);function Ko(){const s=on();return{trackedBillIds:s.trackedIds,isLoading:s.isLoading,isTracked:s.isTracked}}const Rt={tableName:"tracked_committees",queryKey:"tracked-committees",entityIdField:"committee_id",tierLimitKey:"trackedCommittees",selectColumns:"id, user_id, committee_id, tracked_at",getEntityId:s=>s.committee_id,entityName:"committee"},cn=Lt(Rt);function Go(){const s=cn();return{trackedCommittees:s.trackedItems,trackedCommitteeIds:s.trackedIds,trackedCount:s.trackedCount,committeeLimit:s.limit,canTrackMore:s.canTrackMore,remainingSlots:s.remainingSlots,isLoading:s.isLoading,isError:s.isError,error:s.error,isTracked:s.isTracked,trackCommittee:s.trackMutation,untrackCommittee:s.untrackMutation,toggleTracking:s.toggleTracking,isToggling:s.isToggling,refetch:s.refetch}}const dn=It(Rt);function Qo(){const s=dn();return{trackedCommitteeIds:s.trackedIds,isLoading:s.isLoading,isTracked:s.isTracked}}const qe=vt("free").summaries.dailyUnlocks??5,se=["summary-unlocks"];async function un(s){const{data:t,error:a}=await P.from("user_summary_unlocks").select($r).eq("user_id",s).gt("expires_at",new Date().toISOString()).order("unlocked_at",{ascending:!1});if(a)throw new Error(`Failed to fetch summary unlocks: ${a.message}`);return t||[]}async function mn(s,t){const a=new Date,i=new Date(a.getTime()+1440*60*1e3),{data:l,error:c}=await P.from("user_summary_unlocks").insert({user_id:s,bill_id:t,unlocked_at:a.toISOString(),expires_at:i.toISOString()}).select().single();if(c)throw c.code==="23505"?new Error("This summary is already unlocked"):new Error(`Failed to unlock summary: ${c.message}`);return l}function Wo(){const{user:s,isPaidUser:t}=K(),a=Ge(),i=s==null?void 0:s.id,l=oe({queryKey:[...se,i],queryFn:()=>un(i),...Ze,enabled:!!i&&!t}),c=n.useMemo(()=>{var h;return new Set(((h=l.data)==null?void 0:h.map(b=>b.bill_id))??[])},[l.data]),u=n.useMemo(()=>{if(!l.data)return 0;const h=new Date().toISOString().split("T")[0];return l.data.filter(b=>b.unlocked_at.startsWith(h)).length},[l.data]),d=n.useMemo(()=>t?null:Math.max(0,qe-u),[t,u]),o=n.useMemo(()=>t?!0:u<qe,[t,u]),m=h=>t?!0:c.has(h),f=ge({mutationFn:h=>mn(i,h),onMutate:async h=>{await a.cancelQueries({queryKey:[...se,i]});const b=a.getQueryData([...se,i]),g=new Date,x={id:`temp-${h}`,user_id:i,bill_id:h,unlocked_at:g.toISOString(),expires_at:new Date(g.getTime()+1440*60*1e3).toISOString()};return a.setQueryData([...se,i],j=>
202[x,...j??[]]),{previousUnlocks:b}},onError:(h,b,g)=>{g!=null&&g.previousUnlocks&&a.setQueryData([...se,i],g.previousUnlocks)},onSettled:()=>{a.invalidateQueries({queryKey:[...se,i]})}});return{unlocks:l.data??[],unlockedBillIds:c,dailyLimit:qe,todayUnlockCount:u,remainingUnlocks:d,canUnlock:o,isLoading:l.isLoading,isError:l.isError,error:l.error,isUnlocked:m,unlockSummary:f,isUnlocking:f.isPending,refetch:l.refetch}}const Ot={alabama:"al",alaska:"ak",arizona:"az",arkansas:"ar",california:"ca",colorado:"co",connecticut:"ct",delaware:"de",florida:"fl",georgia:"ga",hawaii:"hi",idaho:"id",illinois:"il",indiana:"in",iowa:"ia",kansas:"ks",kentucky:"ky",louisiana:"la",maine:"me",maryland:"md",massachusetts:"ma",michigan:"mi",minnesota:"mn",mississippi:"ms",missouri:"mo",montana:"mt",nebraska:"ne",nevada:"nv","new hampshire":"nh","new jersey":"nj","new mexico":"nm","new york":"ny","north carolina":"nc","north dakota":"nd",ohio:"oh",oklahoma:"ok",oregon:"or",pennsylvania:"pa","rhode island":"ri","south carolina":"sc","south dakota":"sd",tennessee:"tn",texas:"tx",utah:"ut",vermont:"vt",virginia:"va",washington:"wa","west virginia":"wv",wisconsin:"wi",wyoming:"wy","district of columbia":"dc"},hn=Object.fromEntries(Object.entries(Ot).map(([s,t])=>[t,s.split(" ").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")]));function Jo(s){return hn[s.toLowerCase()]}function Xo(s){if(!s)return"ks";const t=s.toLowerCase().trim();return t.length===2&&/^[a-z]{2}$/.test(t)?t:Ot[t]||"ks"}const ss=n.forwardRef(({className:s,...t},a)=>e.jsx(Us,{ref:a,className:p("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...t}));ss.displayName=Us.displayName;const ts=n.forwardRef(({className:s,...t},a)=>e.jsx(Fs,{ref:a,className:p("aspect-square h-full w-full object-cover",s),...t}));ts.displayName=Fs.displayName;const as=n.forwardRef(({className:s,...t},a)=>e.jsx(qs,{ref:a,className:p("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...t}));as.displayName=qs.displayName;function xn(){const s=n.useContext(Js);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s}function Pt(){const{setTheme:s,theme:t}=xn(),[a,i]=n.useState(!1);return n.useEffect(()=>{i(!0)},[]),a?e.jsxs(re,{children:[e.jsx(ne,{asChild:!0,children:e.jsxs(z,{variant:"ghost",size:"icon",className:"h-9 w-9 focus-visible-ring",children:[e.jsx(fs,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),e.jsx(ps,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),e.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),e.jsxs(W,{align:"end",children:[e.jsxs(C,{onClick:()=>s("light"),className:t==="light"?"bg-accent":"",children:[e.jsx(fs,{className:"mr-2 h-4 w-4"}),"Light"]}),e.jsxs(C,{onClick:()=>s("dark"),className:t==="dark"?"bg-accent":"",children:[e.jsx(ps,{className:"mr-2 h-4 w-4"}),"Dark"]}),e.jsxs(C,{onClick:()=>s("system"),className:t==="system"?"bg-accent":"",children:[e.jsx(br,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):e.jsx(z,{variant:"ghost",size:"icon",className:"h-9 w-9",children:e.jsx("span",{className:"sr-only",children:"Toggle theme"})})}function Dt(){const s=n.useContext(wt);if(!s)throw new Error("useAuthModal must be used within an AuthModalProvider");return s}const pn=n.lazy(()=>w(()=>Promise.resolve().then(()=>Nn),void 0).then(s=>({default:s.TourLauncher}))),ue="text-neutral-700 dark:text-neutral-300 hover:text-warning-600 dark:hover:text-warning-500 px-2 xl:px-3 py-2 text-sm font-medium cursor-pointer whitespace-nowrap transition-colors focus-visible-ring",Q="text-warning-600 dark:text-warning-500",fn=({isAuthenticated:s,isPremium:t,user:a})=>{const{showAuthModal:i}=Dt(),{signOut:l,isAdmin:c}=K(),{trackedCount:u}=At(),d=we(),o=ve(),m=o.pathname.startsWith("/admin"),f=o.pathname==="/dashboard",h=o.pathname.startsWith("/tools"),b=o.pathname.startsWith("/bills"),g=o.pathname.startsWith("/legislators"),x=o.pathname.startsWith("/committees"),j=o.pathname.startsWith("/calendar"),v=o.pathname.startsWith("/testimony"),T=async()=>{await l(),d("/")},L=x||v||h||m;return e.jsx("div",{className:"w-full max-w-full overflow-x-hidden",children:e.jsx("div",{className:"container mx-auto px-4 max-w-[1440px]",children:e.jsxs("div",{className:"flex items-center justify-between h-16",children:[e.jsxs("div",{className:"flex items-center min-w-0 flex-1",children:[e.jsx("div",{className:"flex-shrink-0 flex items-center",children:e.jsxs(y,{to:"/",className:"flex items-center",children:[e.jsx("img",{src:"/images/logo.png",alt:"BillBee Logo",className:"h-8 w-8 mr-2"}),e.jsx("span",{className:"text-xl font-bold text-foreground hidden sm:inline",children:"BillBee.ai"})]})}),e.jsxs("nav",{"aria-label":"Main navigation",className:"ml-4 lg:ml-8 xl:ml-10 flex items-center space-x-1 lg:space-x-2 xl:space-x-6",children:[e.jsx(y,{to:"/bills","data-tour":"nav
202-bills",className:p(ue,b&&Q),"aria-current":b?"page":void 0,children:"Bills"}),e.jsx(y,{to:"/legislators","data-tour":"nav-legislators",className:p(ue,g&&Q),"aria-current":g?"page":void 0,children:"Legislators"}),e.jsx(y,{to:"/committees","data-tour":"nav-committees",className:p(ue,"hidden lg:inline-flex",x&&Q),"aria-current":x?"page":void 0,children:"Committees"}),e.jsx(y,{to:"/testimony",className:p(ue,"hidden lg:inline-flex",v&&Q),"aria-current":v?"page":void 0,children:"Testimony"}),e.jsx(y,{to:"/calendar","data-tour":"nav-calendar",className:p(ue,j&&Q),"aria-current":j?"page":void 0,children:"Calendar"}),e.jsxs(re,{children:[e.jsx(ne,{asChild:!0,children:e.jsxs("button",{className:p("hidden lg:flex items-center px-2 xl:px-3 py-2 text-sm font-medium cursor-pointer whitespace-nowrap","text-neutral-700 dark:text-neutral-300 hover:text-warning-600 dark:hover:text-warning-500 focus:outline-none transition-colors focus-visible-ring",h&&Q),"aria-current":h?"page":void 0,children:[e.jsx(Cr,{className:"mr-1.5 h-4 w-4"}),"Tools",e.jsx(ze,{className:"ml-1 h-4 w-4"})]})}),e.jsx(W,{align:"start",className:"bg-popover",children:e.jsx(y,{to:"/tools/find-your-legislator",children:e.jsxs(C,{className:"cursor-pointer",children:[e.jsx(Ye,{className:"mr-2 h-4 w-4"}),"Find Your Legislator"]})})})]}),e.jsxs(re,{children:[e.jsx(ne,{asChild:!0,children:e.jsxs("button",{className:p("lg:hidden flex items-center px-2 py-2 text-sm font-medium cursor-pointer whitespace-nowrap","text-neutral-700 dark:text-neutral-300 hover:text-warning-600 dark:hover:text-warning-500 focus:outline-none transition-colors focus-visible-ring",L&&Q),"aria-current":L?"page":void 0,children:[e.jsx(dt,{className:"h-4 w-4 mr-1"}),"More",e.jsx(ze,{className:"ml-1 h-4 w-4"})]})}),e.jsxs(W,{align:"start",className:"bg-popover min-w-[180px]",children:[e.jsx(y,{to:"/committees",children:e.jsxs(C,{className:p("cursor-pointer",x&&"bg-accent"),children:[e.jsx(ot,{className:"mr-2 h-4 w-4"}),"Committees"]})}),e.jsx(y,{to:"/testimony",children:e.jsxs(C,{className:p("cursor-pointer",v&&"bg-accent"),children:[e.jsx(ut,{className:"mr-2 h-4 w-4"}),"Testimony"]})}),e.jsx($,{}),e.jsx(y,{to:"/tools/find-your-legislator",children:e.jsxs(C,{className:p("cursor-pointer",h&&"bg-accent"),children:[e.jsx(Ye,{className:"mr-2 h-4 w-4"}),"Find Your Legislator"]})}),s&&c&&e.jsxs(e.Fragment,{children:[e.jsx($,{}),e.jsxs(de,{children:[e.jsx(te,{className:p("cursor-pointer",m&&"bg-accent"),children:"Admin"}),e.jsxs(ae,{className:"bg-popover",children:[e.jsx(y,{to:"/admin/pipeline",children:e.jsx(C,{className:"cursor-pointer",children:"Pipeline"})}),e.jsx(y,{to:"/admin/schedules",children:e.jsx(C,{className:"cursor-pointer",children:"Schedules"})}),e.jsx(y,{to:"/admin/bill-status",children:e.jsx(C,{className:"cursor-pointer",children:"Bill Status"})}),e.jsx(y,{to:"/admin/notifications",children:e.jsx(C,{className:"cursor-pointer",children:"Notifications"})}),e.jsx($,{}),e.jsxs(de,{children:[e.jsxs(te,{className:"cursor-pointer",children:[e.jsx(J,{className:"mr-2 h-4 w-4"}),"Reports"]}),e.jsxs(ae,{className:"bg-popover",children:[e.jsx(y,{to:"/admin/topeka-buzz",children:e.jsx(C,{className:"cursor-pointer",children:"Topeka Buzz"})}),e.jsx($,{}),e.jsx(y,{to:"/admin/reports",children:e.jsx(C,{className:"cursor-pointer",children:"New Bills"})}),e.jsx(y,{to:"/admin/vote-reports",children:e.jsx(C,{className:"cursor-pointer",children:"Floor Votes"})}),e.jsx(y,{to:"/admin/committee-reports",children:e.jsx(C,{className:"cursor-pointer",children:"Committees"})}),e.jsx(y,{to:"/admin/calendars-report",children:e.jsx(C,{className:"cursor-pointer",children:"Calendars"})})]})]}),e.jsxs(de,{children:[e.jsxs(te,{className:"cursor-pointer",children:[e.jsx(xs,{className:"mr-2 h-4 w-4"}),"Data Management"]}),e.jsx(ae,{className:"bg-popover",children:e.jsx(y,{to:"/admin/data/legislator-import",children:e.jsx(C,{className:"cursor-pointer",children:"Federal Legislators"})})})]})]})]})]})]})]}),s&&e.jsxs(y,{to:"/dashboard","data-tour":"nav-dashboard",className:p("relative flex items-center gap-1 xl:gap-1.5 px-2 xl:px-3 py-2 text-sm font-medium cursor-pointer whitespace-nowrap transition-colors focus-visible-ring",f?"text-amber-600 dar
202k:text-amber-400":"text-neutral-700 dark:text-neutral-300 hover:text-amber-600 dark:hover:text-amber-400"),"aria-current":f?"page":void 0,children:[e.jsx(ht,{className:"h-4 w-4",fill:u>0?"currentColor":"none"}),e.jsx("span",{className:"hidden xl:inline",children:"Dashboard"}),u>0&&e.jsx("span",{className:"flex h-5 min-w-5 items-center justify-center rounded-full bg-amber-500 px-1.5 text-xs font-semibold text-white",children:u>99?"99+":u})]}),s&&c&&e.jsxs(re,{children:[e.jsx(ne,{asChild:!0,children:e.jsxs("button",{className:p("hidden lg:flex items-center px-2 xl:px-3 py-2 text-sm font-medium cursor-pointer whitespace-nowrap","hover:text-warning-600 dark:hover:text-warning-500 focus:outline-none transition-colors focus-visible-ring",m?"text-warning-600 dark:text-warning-500":"text-neutral-700 dark:text-neutral-300"),children:["Admin",e.jsx(ze,{className:"ml-1 h-4 w-4"})]})}),e.jsxs(W,{align:"start",className:"bg-popover",children:[e.jsx(y,{to:"/admin/pipeline",children:e.jsx(C,{className:"cursor-pointer",children:"Pipeline"})}),e.jsx(y,{to:"/admin/schedules",children:e.jsx(C,{className:"cursor-pointer",children:"Schedules"})}),e.jsx(y,{to:"/admin/bill-status",children:e.jsx(C,{className:"cursor-pointer",children:"Bill Status"})}),e.jsx(y,{to:"/admin/notifications",children:e.jsx(C,{className:"cursor-pointer",children:"Notifications"})}),e.jsx($,{}),e.jsxs(de,{children:[e.jsxs(te,{className:"cursor-pointer",children:[e.jsx(J,{className:"mr-2 h-4 w-4"}),"Reports"]}),e.jsxs(ae,{className:"bg-popover",children:[e.jsx(y,{to:"/admin/topeka-buzz",children:e.jsx(C,{className:"cursor-pointer",children:"Topeka Buzz"})}),e.jsx($,{}),e.jsx(y,{to:"/admin/reports",children:e.jsx(C,{className:"cursor-pointer",children:"New Bills"})}),e.jsx(y,{to:"/admin/vote-reports",children:e.jsx(C,{className:"cursor-pointer",children:"Floor Votes"})}),e.jsx(y,{to:"/admin/committee-reports",children:e.jsx(C,{className:"cursor-pointer",children:"Committees"})}),e.jsx(y,{to:"/admin/calendars-report",children:e.jsx(C,{className:"cursor-pointer",children:"Calendars"})})]})]}),e.jsxs(de,{children:[e.jsxs(te,{className:"cursor-pointer",children:[e.jsx(xs,{className:"mr-2 h-4 w-4"}),"Data Management"]}),e.jsx(ae,{className:"bg-popover",children:e.jsx(y,{to:"/admin/data/legislator-import",children:e.jsx(C,{className:"cursor-pointer",children:"Federal Legislators"})})})]})]})]})]})]}),e.jsxs("div",{className:"flex items-center gap-1 lg:gap-2 flex-shrink-0",children:[e.jsx(z,{variant:"ghost",size:"icon","data-tour":"global-search",className:"h-9 w-9 text-neutral-600 dar
202k:text-neutral-400 hover:text-amber-600 dark:hover:text-amber-400 hover:bg-amber-50 dark:hover:bg-amber-950/50",onClick:()=>d("/search"),"aria-label":"Search",children:e.jsx(mt,{className:"h-5 w-5"})}),e.jsx("div",{className:"hidden sm:block",children:e.jsx(n.Suspense,{fallback:e.jsx("div",{className:"h-9 w-9"}),children:e.jsx(pn,{variant:"icon"})})}),e.jsx(Pt,{}),s?e.jsxs("div",{className:"flex items-center",children:[t&&e.jsx(Tt,{variant:"outline",className:"mr-2 lg:mr-3 bg-warning-100 dark:bg-warning-900 text-warning-800 dark:text-warning-200 border-warning-300 dark:border-warning-700 hidden sm:flex",children:"Premium"}),e.jsxs(re,{children:[e.jsx(ne,{asChild:!0,children:e.jsx(z,{variant:"ghost","data-tour":"user-menu",className:"relative h-8 w-8 rounded-full cursor-pointer",children:e.jsxs(ss,{className:"h-8 w-8",children:[e.jsx(ts,{src:(a==null?void 0:a.avatar)||void 0,alt:"User"}),e.jsx(as,{children:a!=null&&a.name?a.name.charAt(0).toUpperCase():"U"})]})})}),e.jsxs(W,{align:"end",className:"bg-popover",children:[e.jsx(y,{to:"/account",children:e.jsx(C,{className:"cursor-pointer",children:"Profile"})}),e.jsx(y,{to:"/account?tab=notifications",children:e.jsxs(C,{className:"cursor-pointer",children:[e.jsx(Je,{className:"mr-2 h-4 w-4"}),"Notifications"]})}),e.jsx($,{}),e.jsx(C,{className:"cursor-pointer",onClick:T,children:"Log out"})]})]})]}):e.jsxs("div",{className:"flex items-center space-x-2 lg:space-x-4",children:[e.jsx(z,{variant:"outline",size:"sm",className:"!rounded-button cursor-pointer whitespace-nowrap text-xs lg:text-sm",onClick:i,children:"Sign In"}),e.jsx(z,{size:"sm",className:"bg-yellow-500 hover:bg-yellow-600 text-white !rounded-button cursor-pointer whitespace-nowrap text-xs lg:text-sm hidden sm:inline-flex",onClick:i,children:"Register"})]})]})]})})})},Bt=ga,gn=ba,bn=pa,zt=n.forwardRef(({className:s,...t},a)=>e.jsx(Hs,{className:p("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...t,ref:a}));zt.displayName=Hs.displayName;const jn=Ie("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),rs=n.forwardRef(({side:s="right",className:t,children:a,...i},l)=>e.jsxs(bn,{children:[e.jsx(zt,{}),e.jsxs($s,{ref:l,className:p(jn({side:s}),t),...i,children:[a,e.jsxs(fa,{className:"absolute right-4 top-4 roun
202ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(xt,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));rs.displayName=$s.displayName;const ns=({className:s,...t})=>e.jsx("div",{className:p("flex flex-col space-y-2 text-center sm:text-left",s),...t});ns.displayName="SheetHeader";const Vt=({className:s,...t})=>e.jsx("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...t});Vt.displayName="SheetFooter";const is=n.forwardRef(({className:s,...t},a)=>e.jsx(Ys,{ref:a,className:p("text-lg font-semibold text-foreground",s),...t}));is.displayName=Ys.displayName;const Ut=n.forwardRef(({className:s,...t},a)=>e.jsx(Ks,{ref:a,className:p("text-sm text-muted-foreground",s),...t}));Ut.displayName=Ks.displayName;const wn=()=>{const[s,t]=n.useState(!1),[a,i]=n.useState(!1),[l,c]=n.useState(null),[u,d]=n.useState(!1),[o,m]=n.useState(null),f=n.useCallback(()=>{m(document.activeElement),d(!0),t(!0);const x=document.createElement("div");x.setAttribute("role","status"),x.setAttribute("aria-live","polite"),x.classList.add("sr-only"),x.textContent="Navigation menu opened",document.body.appendChild(x),setTimeout(()=>document.body.removeChild(x),1e3),setTimeout(()=>d(!1),300)},[]),h=n.useCallback(()=>{d(!0),t(!1),c(null);const x=document.createElement("div");x.setAttribute("role","status"),x.setAttribute("aria-live","polite"),x.classList.add("sr-only"),x.textContent="Navigation menu closed",document.body.appendChild(x),setTimeout(()=>document.body.removeChild(x),1e3),o&&setTimeout(()=>{o==null||o.focus(),m(null)},300),setTimeout(()=>d(!1),300)},[o]),b=n.useCallback(()=>{t(!1),i(!1),c(null),d(!1),m(null)},[]),g=n.useCallback(x=>{var L;const j=document.querySelectorAll(".desktop-nav a[href], .desktop-nav button:not([disabled])"),v=Array.from(j).findIndex(M=>M===document.activeElement);if(v===-1)return;let T=v;switch(x){case"left":case"up":T=v>0?v-1:j.length-1;break;case"right":case"down":T=v<j.length-1?v+1:0;break}(L=j[T])==null||L.focus()},[]);return n.useEffect(()=>{const x=j=>{if(j.key==="Escape"&&s&&(h(),o&&o.focus()),a&&["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(j.key)){j.preventDefault();const v=j.key.replace("Arrow","").toLowerCase();g(v)}};if(s||a){if(document.addEventListener("keydown",x),s){document.body.style.overflow="hidden";const j=document.querySelector("main");j&&j.setAttribute("aria-hidden","true")}}else{document.body.style.overflow="unset";const j=document.querySelector("main");j&&j.removeAttribute("aria-hidden")}return()=>{document.removeEventListener("keydown",x),document.body.style.overflow="unset";const j=document.querySelector("main");j&&j.removeAttribute("aria-hidden")}},[s,a,h,g,o]),n.useEffect(()=>{const x=()=>{window.innerWidth>=768&&s&&h()};return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[s,h]),{isMobileMenuOpen:s,isDesktopMenuOpen:a,activeMenuItem:l,isAnimating:u,previousFocusElement:o,openMobileMenu:f,closeMobileMenu:h,setActiveMenuItem:c,closeAllMenus:b,handleArrowNavigation:g}};function Ft(){const s=n.useContext(rt);if(s===void 0)throw new Error("useOnboarding must be used within an OnboardingProvider");return s}const vn={minDistance:50,maxTime:500,minVelocity:.3,touchTargetElement:null,preventDefault:!1};function yn(s,t={}){const a={...vn,...t},i=n.useRef(null),l=n.useRef(null),c=n.useCallback((o,m)=>{const f=m.x-o.x,h=m.y-o.y,b=m.time-o.time,g=Math.sqrt(f*f+h*h),x=g/b;if(g<a.minDistance||b>a.maxTime||x<a.minVelocity)return null;const j=Math.abs(f),v=Math.abs(h);return j>v?f>0?"right":"left":h>0?"down":"up"},[a.minDistance,a.maxTime,a.minVelocity]),u=n.useCallback(o=>{a.preventDefault&&o.preventDefault();const m=o.touches[0];m&&(i.current={x:m.clientX,y:m.clientY,time:Date.now()})},[a.preventDefault]),d=n.useCallback(o=>{var b,g,x,j,v;if(!i.current)return;a.preventDefault&&o.preventDefault();const m=o.changedTouches[0];if(!m)return;const f={x:m.clientX,y:m.clientY,time:Date.now()},h=c(i.current,f);if(h){switch(h){case"left":(b=s.onSwipeLeft)==null||b.call(s,o);break;case"right":(g=s.onSwipeRight)==null||g.call(s,o);break;case"up":(x=s.onSwipeUp)==null||x.call(s,o);break;case"down":(j=s.onSwipeDown)==null||j.call(s,o);break}(v=s.onSwipe)==null||v.call(s,h,o)}i.current=null},[s,c,a.preventDefault]);return n.useEffect(()=>{const o=a.touchTargetElement||l.current;if(!o)return;const m={passive:!a.preventDefault};return o.addEventListener("touchstart",u,m),o.addEventListener("touchend",d,m),()=>{o.removeEventListener("touchstart",u),o.removeEventListener("touchend",d)}},[u,d,a.touchTargetElement,a.preventDefault]),l}function qt({variant:s="icon"}
202){const{state:t,startTour:a,resetOnboarding:i}=Ft(),{isAuthenticated:l}=K(),u=Xa().filter(o=>o.id!=="alerts"||l),d=o=>t.completedTours.includes(o);return e.jsxs(re,{children:[e.jsx(ne,{asChild:!0,children:s==="icon"?e.jsx(z,{variant:"ghost",size:"icon",className:"h-9 w-9 text-muted-foreground hover:text-foreground","aria-label":"Help and Tours",children:e.jsx($e,{className:"h-5 w-5"})}):e.jsxs(z,{variant:"outline",className:"gap-2",children:[e.jsx($e,{className:"h-4 w-4"}),"Help"]})}),e.jsxs(W,{align:"end",className:"w-64",children:[e.jsx(Et,{children:"Interactive Tours"}),e.jsx($,{}),u.map(o=>{const m=d(o.id);return e.jsxs(C,{onClick:()=>a(o.id),className:"flex items-start gap-3 py-2 cursor-pointer",children:[e.jsx("div",{className:"shrink-0 mt-0.5",children:m?e.jsx(mr,{className:"h-4 w-4 text-success-500"}):e.jsx(jr,{className:"h-4 w-4 text-muted-foreground"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium",children:o.name}),e.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1",children:o.description})]})]},o.id)}),e.jsx($,{}),e.jsxs(C,{onClick:i,className:"flex items-center gap-2 text-muted-foreground cursor-pointer",children:[e.jsx(vr,{className:"h-4 w-4"}),"Restart Onboarding"]}),e.jsx($,{}),e.jsx(C,{asChild:!0,children:e.jsxs("a",{href:"https://help.billbee.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(Ae,{className:"h-4 w-4"}),"Support documents"]})})]})]})}const Nn=Object.freeze(Object.defineProperty({__proto__:null,TourLauncher:qt},Symbol.toStringTag,{value:"Module"})),be=n.forwardRef(({className:s,orientation:t="horizontal",decorative:a=!0,...i},l)=>e.jsx(Gs,{ref:l,decorative:a,orientation:t,className:p("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",s),...i}));be.displayName=Gs.displayName;const Ht={stateSelector:!1,connectedApps:!1},_n={warning:{active:"bg-warning-50 dark:bg-warning-950 text-warning-700 dark:text-warning-300 border border-warning-200 dark:border-warning-800",activeIcon:"text-warning-600 dark:text-warning-400",hover:"hover:bg-neutral-50 dark:hover:bg-neutral-800 text-neutral-700 dark:text-neutral-300 hover:text-warning-600 dark:hover:text-warning-400",hoverIcon:"text-neutral-400 dark:text-neutral-500 group-hover:text-warning-500"},amber:{active:"bg-amber-50 dark:bg-amber-950 text-amber-700 dark:text-amber-300 border border-amber-200 dark:border-amber-800",activeIcon:"text-amber-600 dark:text-amber-400",hover:"hover:bg-neutral-50 dark:hover:bg-neutral-800 text-neutral-700 dark:text-neutral-300 hover:text-amber-600 dark:hover:text-amber-400",hoverIcon:"text-neutral-400 dark:text-neutral-500 group-hover:text-amber-500"}},_e=({item:s,isActive:t,onClick:a,colorScheme:i="warning",badge:l})=>{const c=_n[i];return e.jsxs("button",{onClick:a,className:p("w-full flex items-center justify-between p-3 rounded-lg text-left","transition-colors duration-200 group","focus:outline-none focus:ring-2 focus:ring-warning-500 focus:ring-offset-2 dark:focus:ring-offset-neutral-900",t?c.active:c.hover),"aria-current":t?"page":void 0,children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:p("flex-shrink-0",t?c.activeIcon:c.hoverIcon),children:s.icon}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium",children:s.label}),l]}),s.description&&e.jsx("div",{className:"text-xs text-helper group-hover:text-muted-foreground",children:s.description})]})]}),e.jsx(le,{className:p("w-4 h-4 transition-transform duration-200","group-hover:translate-x-1",t?c.activeIcon:"text-neutral-400 dark:text-neutral-500")})]})},ke=({heading:s,children:t,showSeparator:a=!1,ariaLabel:i,className:l})=>{const c=e.jsxs(e.Fragment,{children:[a&&e.jsx(be,{}),e.jsxs("div",{className:p("px-6 py-4",l),children:[s&&e.jsx("h3",{className:"text-table-header mb-3",children:s}),t]})]});return i?e.jsx("nav",{role:"navigation","aria-label":i,children:c}):c},me=p("w-full flex items-center space-x-3 p-3 rounded-lg text-left","transition-colors duration-200","hover:bg-neutral-50 dark:hover:bg-neutral-800 focus:outline-none focus:ring-2 focus:ring-warning-500 focus:ring-offset-2 dark:focus:ring-offset-neutral-900"),kn=({isAuthenticated:s,isPremium:t,user:a,onNavigate:i,onSignOut:l,onAuthAction:c,onStartTour:u})=>{var d;return s?e.jsxs("div",{className:"space-y-3",children:[t&&e.jsx(Tt,{className:"bg-warning-100 dar
202k:bg-warning-900 text-warning-800 dark:text-warning-200 border-warning-300 dark:border-warning-700",children:"Premium Member"}),e.jsxs("button",{onClick:()=>i("/account"),className:p(me,"group"),children:[e.jsxs(ss,{className:"h-8 w-8",children:[e.jsx(ts,{src:a==null?void 0:a.avatar,alt:(a==null?void 0:a.name)||"User"}),e.jsx(as,{children:((d=a==null?void 0:a.name)==null?void 0:d.charAt(0).toUpperCase())||"U"})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-sm font-medium text-foreground group-hover:text-warning-700 dark:group-hover:text-warning-300",children:(a==null?void 0:a.name)||"Profile"}),e.jsx("div",{className:"text-xs text-helper",children:"View account settings"})]}),e.jsx(le,{className:"w-4 h-4 text-neutral-400 dark:text-neutral-500 transition-transform duration-200 group-hover:translate-x-1"})]}),e.jsx(be,{className:"my-2"}),e.jsxs("button",{onClick:()=>i("/account?tab=notifications"),className:me,children:[e.jsx(Je,{className:"w-5 h-5 text-neutral-400 dark:text-neutral-500"}),e.jsx("span",{className:"text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Notifications"})]}),e.jsxs("button",{onClick:()=>i("/settings"),className:me,children:[e.jsx(yr,{className:"w-5 h-5 text-neutral-400 dark:text-neutral-500"}),e.jsx("span",{className:"text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Settings"})]}),e.jsxs("button",{onClick:u,className:me,children:[e.jsx(Nr,{className:"w-5 h-5 text-secondary-500"}),e.jsx("span",{className:"text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Quick Start Tour"})]}),e.jsxs("button",{onClick:()=>i("/help"),className:me,children:[e.jsx($e,{className:"w-5 h-5 text-neutral-400 dark:text-neutral-500"}),e.jsx("span",{className:"text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Help & Support"})]}),e.jsxs(z,{variant:"outline",onClick:l,className:"w-full justify-start text-neutral-700 dark:text-neutral-300 hover:text-error-600 dark:hover:text-error-400 hover:border-error-300 dark:hover:border-error-700",children:[e.jsx(fr,{className:"w-4 h-4 mr-2"}),"Sign Out"]})]}):e.jsxs("div",{className:"space-y-3",children:[e.jsx(z,{variant:"outline",onClick:c,className:"w-full",children:"Sign In"}),e.jsx(z,{onClick:c,className:"w-full bg-warning-500 hover:bg-warning-600 text-white",children:"Get Started"})]})},Sn=[{label:"Home",to:"/",icon:D.createElement(pr,{className:"w-5 h-5"}),description:"Dashboard and overview"},{label:"Search",to:"/search",icon:D.createElement(mt,{className:"w-5 h-5"}),description:"Find bills and legislators"},{label:"Bills",to:"/bills",icon:D.createElement(J,{className:"w-5 h-5"}),description:"Legislative tracking"},{label:"Legislators",to:"/legislators",icon:D.createElement(Sr,{className:"w-5 h-5"}),description:"Representative profiles"},{label:"Committees",to:"/committees",icon:D.createElement(kr,{className:"w-5 h-5"}),description:"Committee information"},{label:"Calendar",to:"/calendar",icon:D.createElement(ct,{className:"w-5 h-5"}),description:"Meetings and floor calendars"},{label:"Testimony",to:"/testimony",icon:D.createElement(ut,{className:"w-5 h-5"}),description:"Public testimony on bills"},{label:"Find Your Legislator",to:"/tools/find-your-legislator",icon:D.createElement(Ye,{className:"w-5 h-5"}),description:"Look up your representatives"}],Cn=[{label:"Pipeline",to:"/admin/pipeline",icon:D.createElement(dr,{className:"w-5 h-5"}),description:"Job queue and scraper status"},{label:"Schedules",to:"/admin/schedules",icon:D.createElement(ct,{className:"w-5 h-5"}),description:"Automated job scheduling"},{label:"Bill Status",to:"/admin/bill-status",icon:D.createElement(J,{className:"w-5 h-5"}),description:"Pipeline processing status"},{label:"Notifications",to:"/admin/notifications",icon:D.createElement(Je,{className:"w-5 h-5"}),description:"Email alerts and testing"},{label:"Topeka Buzz",to:"/admin/topeka-buzz",icon:D.createElement(J,{className:"w-5 h-5"}),description:"Combined newsletter content"},{label:"Reports",to:"/admin/reports",icon:D.createElement(J,{className:"w-5 h-5"}),description:"Newsletter content generator"}],Tn=[{label:"Capitol Bee",to:"https://capitolbee.com",icon:D.createElement(Ae,{className:"w-5 h-5"}),description:"External legislative resource",external:!0}],En=({isAuthenticated:s,isPremium:t,isAdmin:a,currentState:i,user:l,trackedCount:c,currentPath:u,onNavigate:d,onSignOut:o,onAuthAction:m,onStartTour:f})=>e.jsxs("div",{className:"flex flex-col h-full overflow-y-auto",children:[Ht.stateSelector,e.jsx(ke,{ariaLabel:"Primary navigation",children:e.jsx("div",{className:"space-y-1",children:Sn.map(h=>e.jsx(_e,{item:h,isActive:u===h.to,onClick:()=>d(h.to)},h.to))})}),s&&e.jsx(ke,{showSeparator:!0,children:e.jsx(_e,{item:{label:"Dashboard",to:"/dashboard",icon:e.jsx(ht,{className:"w-5 h-5",fill:c>0?"currentColor":"none"}),description:"Bills and committees you're tracking"},isActive:u==="/dashboard",onClick:()=>
202d("/dashboard"),colorScheme:"amber",badge:c>0?e.jsx("span",{className:"flex h-5 min-w-5 items-center justify-center rounded-full bg-amber-500 px-1.5 text-xs font-semibold text-white",children:c>99?"99+":c}):void 0})}),s&&a&&e.jsx(ke,{heading:"Admin",showSeparator:!0,children:e.jsx("div",{className:"space-y-1",children:Cn.map(h=>e.jsx(_e,{item:h,isActive:u===h.to,onClick:()=>d(h.to)},h.to))})}),e.jsx(be,{}),e.jsx(ke,{heading:"External Resources",children:e.jsx("div",{className:"space-y-1",children:Tn.map(h=>e.jsx(_e,{item:h,isActive:!1,onClick:()=>d(h.to,h.external)},h.to))})}),e.jsx(be,{}),e.jsx("div",{className:"px-6 py-4 mt-auto",children:e.jsx(kn,{isAuthenticated:s,isPremium:t,user:l,onNavigate:d,onSignOut:o,onAuthAction:m,onStartTour:f})})]}),Ln=({isAuthenticated:s,isPremium:t,currentState:a,availableStates:i,user:l})=>{const{showAuthModal:c}=Dt(),{signOut:u,isAdmin:d}=K(),{trackedCount:o}=At(),{startTour:m}=Ft(),f=we(),h=ve(),{isMobileMenuOpen:b,openMobileMenu:g,closeMobileMenu:x}=wn(),j=n.useRef(null),[v,T]=n.useState(null),L=n.useCallback(S=>T(S),[]);yn({onSwipeRight:x},{touchTargetElement:v});const M=async()=>{await u(),x(),f("/")},U=(S,B=!1)=>{B?window.open(S,"_blank","noopener,noreferrer"):f(S),x()},G=()=>{c(),x()},O=()=>{x(),m("quick-start")},R=n.useRef(!0),I=n.useRef(x);return I.current=x,n.useEffect(()=>{if(R.current){R.current=!1;return}I.current()},[h.pathname]),e.jsx("div",{className:"md:hidden",children:e.jsxs("div",{className:"flex items-center justify-between h-16 px-4",children:[e.jsxs(y,{to:"/",className:"flex items-center",onClick:()=>{b&&x()},children:[e.jsx("img",{src:"/images/logo.png",alt:"BillBee Logo",className:"h-8 w-8 mr-2"}),e.jsx("span",{className:"text-xl font-bold text-foreground",children:"BillBee.ai"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Pt,{}),e.jsx(qt,{variant:"icon"}),e.jsxs(Bt,{open:b,onOpenChange:S=>{S?g():x()},children:[e.jsx(gn,{asChild:!0,children:e.jsx(z,{ref:j,variant:"ghost",size:"icon",className:p("relative h-10 w-10 transition-all duration-200","hover:bg-neutral-100 focus:bg-neutral-100 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800","focus:outline-none focus:ring-2 focus:ring-warning-500 focus:ring-offset-2"),"aria-label":"Toggle navigation menu","aria-controls":"mobile-navigation-menu",children:e.jsxs("div",{className:"relative w-6 h-6 flex flex-col items-center justify-center",children:[e.jsx("span",{className:p("absolute h-0.5 w-6 bg-current transition-all duration-300 ease-in-out",b?"rotate-45 translate-y-0":"-translate-y-2")}),e.jsx("span",{className:p("absolute h-0.5 w-6 bg-current transition-all duration-300 ease-in-out",b?"opacity-0 translate-x-3":"opacity-100 translate-x-0")}),e.jsx("span",{className:p("absolute h-0.5 w-6 bg-current transition-all duration-300 ease-in-out",b?"-rotate-45 translate-y-0":"translate-y-2")})]})})}),e.jsxs(rs,{ref:L,side:"right",className:"w-[320px] sm:w-[400px] p-0 focus:outline-none",id:"mobile-navigation-menu","aria-label":"Mobile navigation menu","aria-modal":"true",role:"dialog",children:[e.jsx(ns,{className:"px-6 py-4 border-b border-neutral-200 dark:border-neutral-700",children:e.jsx(is,{className:"text-left text-lg font-semibold text-foreground",children:"Navigation"})}),e.jsx(En,{isAuthenticated:s,isPremium:t,isAdmin:d,currentState:a,user:l,trackedCount:o,currentPath:h.pathname,onNavigate:U,onSignOut:M,onAuthAction:G,onStartTour:O})]})]})]})]})})},Y=({children:s,size:t="xl",padding:a=!0,customPadding:i,centered:l=!0,className:c,as:u="div",...d})=>{const o={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},m=a&&!i?"px-4 sm:px-6 lg:px-8":i||"";return e.jsx(u,{className:p("w-full",o[t],l&&"mx-auto",m,c),...d,children:s})},In=()=>{const s=new Date().getFullYear();return e.jsxs("footer",{className:"bg-neutral-900 dark:bg-dark-base text-neutral-100 border-t border-neutral-800 dark:border-dark-border",children:[e.jsx(Y,{customPadding:"px-4",className:"max-w-[1440px] py-16",children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-12",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-2xl font-bold text-white mb-3",children:"BillBee 🐝"}),e.jsx("p",{className:"text-neutral-300 text-base leading-relaxed mb-6",children:"Empowering citizens with comprehensive legislative insights, election data, and civic engagement tools."})]}),e.jsx("div",{className:"flex items-center gap-4",children:e.jsx("a",{href:"mailto:[email protected]",className:"w-10 h-10 bg-neutral-800 dark:bg-dark-surface hover:bg-primary-600 rounded-lg flex items-center justify-center transition-colors duration-200 focus-visible-ring","aria-label":"Send us an email",children:e.jsx(gr,{className:"w-5 h-5","aria-hidden":"true"})})})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-lg font-semibold text-white mb-6",children:"Platform"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(y,{to:"/bills",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"Legislative Bills"})}),e.jsx("li",{children:e.jsx(y,{to:"/legislators",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"Legislators"})}),e.jsx("li",{children:e.jsx(y,{to:"/committees",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"Committees"})}),e.jsx("li",{children:e.jsx(y,{to:"/testimony",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"Testimony"})}),e.jsx("li",{children:e.jsx(y,{to:"/calendar",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"Calendar"})}),e.jsx("li",{children:e.jsx(y,{to:"/tools/find-your-legislator",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"Find Your Legislator"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-lg font-semibold text-white mb-6",children:"Company"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(y,{to:"/about",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"About Us"})}),e.jsx("li",{children:e.jsx(y,{to:"/mission",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"Our Mission"})}),e.jsx("li",{children:e.jsx(y,{to:"/data-sources",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm",children:"Data Sources"})}),e.jsx("li",{children:e.jsxs("a",{href:"https://beehivemedia.org/contact/",className:"text-neutral-300 hover:text-white transition-colors duration-200 focus-visible-ring focus-visible-ring-inset text-sm inline-flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",children:["Contact Us",e.jsx(Ae,{className:"w-3 h-3","aria-hidden":"true"})]})})]})]})]})}),e.jsx("div",{className:"border-t border-neutral-800 dark:border-dark-border bg-neutral-950 dar
202k:bg-dark-elevated",children:e.jsx(Y,{customPadding:"px-4",className:"max-w-[1440px] py-6",children:e.jsxs("div",{className:"flex flex-col lg:flex-row justify-between items-center gap-4",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[e.jsxs("p",{className:"text-neutral-400 text-sm",children:["© ",s," Beehive Media, LLC. All rights reserved."]}),e.jsxs("p",{className:"text-neutral-500 text-xs flex items-center gap-1",children:["Made with ",e.jsx(xr,{className:"w-3 h-3 text-error-400","aria-hidden":"true"})," for civic engagement"]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-6",children:[e.jsx(y,{to:"/privacy",className:"text-neutral-400 hover:text-white text-sm transition-colors duration-200 focus-visible-ring focus-visible-ring-inset",children:"Privacy Policy"}),e.jsx(y,{to:"/terms",className:"text-neutral-400 hover:text-white text-sm transition-colors duration-200 focus-visible-ring focus-visible-ring-inset",children:"Terms of Service"})]})]})})})]})},Mn=()=>{const[s,t]=n.useState(null);n.useEffect(()=>{const i=()=>{fetch("/api/status").then(c=>c.json()).then(c=>t(c)).catch(()=>t(null))};i();const l=setInterval(i,12e4);return()=>clearInterval(l)},[]);const a=!!(s!=null&&s.active);return e.jsx("div",{className:`grid transition-[grid-template-rows] duration-300 ease-in-out ${a?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:e.jsx("div",{className:"overflow-hidden",children:e.jsx("div",{className:"bg-amber-500/10 border-b border-amber-500/20 px-4 py-2.5 text-center text-sm",children:e.jsxs("div",{className:"flex items-center justify-center gap-2 text-amber-700 dark:text-amber-400",children:[e.jsx(Xe,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{children:s==null?void 0:s.message})]})})})})},An=()=>{const{stripeSubscriptionStatus:s}=K(),t=s==="past_due";return e.jsx("div",{className:`grid transition-[grid-template-rows] duration-300 ease-in-out ${t?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:e.jsx("div",{className:"overflow-hidden",children:e.jsx("div",{className:"bg-destructive/10 border-b border-destructive/20 px-4 py-2.5 text-center text-sm",children:e.jsxs("div",{className:"flex items-center justify-center gap-2 text-destructive",children:[e.jsx(Xe,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{children:"Your payment failed. Update your payment method to avoid losing premium access."}),e.jsx(y,{to:"/account?tab=billing",className:"ml-1 font-medium underline underline-offset-2 hover:text-destructive/80",children:"Go to billing"})]})})})})},$t=n.createContext(null);function Rn({children:s}){const[t,a]=n.useState(null),i=n.useCallback((c,u)=>{a({entityType:c,entityId:u})},[]),l=n.useCallback(()=>{a(null)},[]);return e.jsx($t.Provider,{value:{peekState:t,openPeek:i,closePeek:l},children:s})}function On(){const s=n.useContext($t);if(!s)throw new Error("useQuickPeek must be used within a QuickPeekProvider");return s}const Yt=n.forwardRef(({className:s,children:t,...a},i)=>e.jsxs(Qs,{ref:i,className:p("relative overflow-hidden",s),...a,children:[e.jsx(ja,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsx(Kt,{}),e.jsx(wa,{})]}));Yt.displayName=Qs.displayName;const Kt=n.forwardRef(({className:s,orientation:t="vertical",...a},i)=>e.jsx(Ws,{ref:i,orientation:t,className:p("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...a,children:e.jsx(va,{className:"relative flex-1 rounded-full bg-border"})}));Kt.displayName=Ws.displayName;function r({className:s,...t}){return e.jsx("div",{className:p("animate-pulse rounded-md bg-muted",s),...t})}const Pn=D.lazy(()=>w(()=>import("./BillPeekContent-Cdl5x1RQ.js"),__vite__mapDeps([26,1,2,27,28,29,30,31,32,3,4,5,33,34,35,36,37,38,39,40,41,42,43,44,19,9]))),Dn=D.lazy(()=>w(()=>import("./LegislatorPeekContent-pQJ6sL6T.js"),__vite__mapDeps([45,1,2,46,47,33,19,4,5,9]))),Bn=D.lazy(()=>w(()=>import("./CommitteePeekContent-qCh466Cu.js"),__vite__mapDeps([48,1,2,47,49,19,4,5,9]))),zn={bill:"Bill",legislator:"Legislator",committee:"Committee"};function Vn(){return e.jsxs("div",{className:"space-y-4 p-1",children:[e.jsx(r,{className:"h-6 w-3/4"}),e.jsx(r,{className:"h-4 w-1/2"}),e.jsx(r,{className:"h-20 w-full"}),e.jsx(r,{className:"h-4 w-2/3"}),e.jsx(r,{className:"h-16 w-full"})]})}function Un(s,t){switch(s){case"bill":return`/bills/${t}`;case"legislator":return`/legislators/${t}`;case"committee":return`/committees/${t}`;default:return"#"}}function Fn(){const{peekState:s,closePeek:t}=On(),a=s!==null,i=l=>{l||t()};return e.jsx(Bt,{open:a,onOpenChange:i,children:e.jsx(rs,{side:"right",className:"w-full sm:max-w-md flex flex-col p-0",children:s&&e.jsx(qn,{entityType:s.entityType,entityId:s.entity
202Id,onClose:t})})})}function qn({entityType:s,entityId:t,onClose:a}){return e.jsxs(e.Fragment,{children:[e.jsxs(ns,{className:"px-6 pt-6 pb-2",children:[e.jsx(is,{children:zn[s]??"Details"}),e.jsxs(Ut,{className:"sr-only",children:["Quick preview of ",s," details"]})]}),e.jsx(Yt,{className:"flex-1 px-6",children:e.jsxs(n.Suspense,{fallback:e.jsx(Vn,{}),children:[s==="bill"&&e.jsx(Pn,{billId:t}),s==="legislator"&&e.jsx(Dn,{legislatorId:t}),s==="committee"&&e.jsx(Bn,{committeeId:t})]})}),e.jsx(Vt,{className:"px-6 py-4 border-t",children:e.jsx(Hn,{entityType:s,entityId:t,onClose:a})})]})}function Hn({entityType:s,entityId:t,onClose:a}){const i=Un(s,t);return e.jsx(z,{asChild:!0,variant:"outline",className:"w-full",onClick:a,children:e.jsxs(y,{to:i,children:[e.jsx(Ae,{className:"h-4 w-4 mr-2"}),"View Full Details"]})})}const ls="research-breadcrumbs",Gt=n.createContext(null);function $n(){return ie.get(ls)??[]}function js(s){ie.set(ls,s)}function Yn({children:s}){const[t,a]=n.useState($n),i=we(),l=n.useCallback(d=>{a(o=>{const f=[...o.filter(h=>!(h.entityType===d.entityType&&h.entityId===d.entityId)),d].slice(-10);return js(f),f})},[]),c=n.useCallback(d=>{a(o=>{if(d<0||d>=o.length)return o;const m=o.slice(0,d+1);return js(m),i(o[d].path),m})},[i]),u=n.useCallback(()=>{a([]),ie.remove(ls)},[]);return e.jsx(Gt.Provider,{value:{trail:t,pushBreadcrumb:l,popTo:c,clearTrail:u},children:s})}function Kn(){const s=n.useContext(Gt);if(!s)throw new Error("useResearchBreadcrumbs must be used within a ResearchBreadcrumbProvider");return s}const Gn={bill:J,legislator:_r,committee:ot},ws=3;function Qn(){const{trail:s,popTo:t}=Kn();if(s.length<2)return null;const a=s.length>ws,i=s.length-ws;return e.jsx("nav",{"aria-label":"Research trail",className:"w-full border-b border-border bg-muted/30 px-4 py-1.5 overflow-x-auto",children:e.jsx("ol",{className:"flex items-center gap-1 text-sm whitespace-nowrap",children:s.map((l,c)=>{const u=Gn[l.entityType],d=c===s.length-1,o=a&&c<i;return e.jsxs("li",{className:p("flex items-center gap-1",o&&"hidden md:flex"),children:[a&&c===i&&e.jsxs("span",{className:"flex items-center gap-1 md:hidden","aria-hidden":"true",children:[e.jsx(dt,{className:"h-3.5 w-3.5 text-muted-foreground"}),e.jsx(le,{className:"h-3 w-3 text-muted-foreground/50"})]}),d?e.jsxs("span",{className:"flex items-center gap-1 text-foreground font-medium truncate max-w-[200px]",children:[e.jsx(u,{className:"h-3.5 w-3.5 flex-shrink-0"}),l.label]}):e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:()=>t(c),className:"flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors truncate max-w-[200px]",children:[e.jsx(u,{className:"h-3.5 w-3.5 flex-shrink-0"}),l.label]}),e.jsx(le,{className:"h-3 w-3 text-muted-foreground/50 flex-shrink-0"})]})]},`${l.entityType}-${l.entityId}`)})})})}const Wn=()=>{var o,m,f;const{user:s,loading:t,isPaidUser:a}=K(),{states:i,currentStateId:l}=an(),c=i.find(h=>h.id===l),u=(c==null?void 0:c.name)||"Kansas",d=s?{email:s.email,name:((o=s.user_metadata)==null?void 0:o.full_name)||((m=s.email)==null?void 0:m.split("@")[0]),avatar:(f=s.user_metadata)==null?void 0:f.avatar_url}:void 0;return e.jsxs("div",{className:p("min-h-screen w-full max-w-full bg-background overflow-x-hidden","grid grid-rows-[auto_1fr_auto]"),children:[e.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-[100] focus:p-4 focus:bg-background focus:text-foreground focus:underline focus:outline-2 focus:outline-ring",children:"Skip to main content"}),e.jsxs("header",{className:p("z-50 border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60","w-full max-w-full overflow-x-hidden"),children:[e.jsx(Mn,{}),e.jsx(An,{}),Ht.stateSelector,e.jsxs("div",{className:p(t&&"invisible pointer-events-none"),"aria-hidden":t,children:[e.jsx("div",{className:"hidden md:block",children:e.jsx(fn,{isAuthenticated:!!s,isPremium:a,user:d})}),e.jsx("div",{className:"md:hidden",children:e.jsx(Ln,{isAuthenticated:!!s,isPremium:a,currentState:u,availableStates:[{name:"Kansas",code:"KS",active:!0,coming:!1},{name:"Missouri",code:"MO",active:!1,coming:!0},{name:"Nebraska",code:"NE",active:!1,coming:!0},{name:"Iowa",code:"IA",active:!1,coming:!0}],user:d})})]})]}
202),e.jsx("main",{id:"main-content",tabIndex:-1,className:"flex-1 min-h-0 min-w-0 w-full max-w-full overflow-x-hidden",children:e.jsxs(Yn,{children:[e.jsx(Qn,{}),e.jsxs(Rn,{children:[e.jsx(ra,{}),e.jsx(Fn,{})]})]})}),e.jsx("footer",{className:p("border-t border-border bg-background w-full max-w-full overflow-x-hidden"),children:e.jsx(In,{})})]})},V=({children:s,className:t,containerSize:a="xl",containerPadding:i=!0,customContainer:l=!1,variant:c="default",header:u})=>l?e.jsxs("div",{className:p("min-h-full",t),children:[u,e.jsx("div",{className:"overflow-x-hidden",children:s})]}):e.jsxs("div",{className:p("min-h-full",t),children:[u,e.jsx("div",{className:"overflow-x-hidden",children:e.jsx(Y,{size:a,padding:i,className:"h-full",children:s})})]}),Jn=n.forwardRef(({...s},t)=>e.jsx("nav",{ref:t,"aria-label":"breadcrumb",...s}));Jn.displayName="Breadcrumb";const Xn=n.forwardRef(({className:s,...t},a)=>e.jsx("ol",{ref:a,className:p("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",s),...t}));Xn.displayName="BreadcrumbList";const Zn=n.forwardRef(({className:s,...t},a)=>e.jsx("li",{ref:a,className:p("inline-flex items-center gap-1.5",s),...t}));Zn.displayName="BreadcrumbItem";const ei=n.forwardRef(({asChild:s,className:t,...a},i)=>{const l=s?Is:"a";return e.jsx(l,{ref:i,className:p("transition-colors hover:text-foreground",t),...a})});ei.displayName="BreadcrumbLink";const si=n.forwardRef(({className:s,...t},a)=>e.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:p("font-normal text-foreground",s),...t}));si.displayName="BreadcrumbPage";const ti=({children:s,className:t,...a})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:p("[&>svg]:size-3.5",t),...a,children:s??e.jsx(le,{})});ti.displayName="BreadcrumbSeparator";function ai(){const{pathname:s}=ve();return n.useEffect(()=>{window.scrollTo(0,0)},[s]),null}const ri=!1;class ni extends n.Component{constructor(a){super(a);Oe(this,"handleRetry",()=>{this.setState({hasError:!1,error:null})});Oe(this,"handleReload",()=>{window.location.reload()});this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}componentDidCatch(a,i){}render(){return this.state.hasError?this.props.fallback?this.props.fallback:e.jsx("div",{className:"flex min-h-[400px] flex-col items-center justify-center p-8",children:e.jsxs("div",{className:"mx-auto max-w-md text-center",children:[e.jsx("div",{className:"mb-4 flex justify-center",children:e.jsx("div",{className:"rounded-full bg-error-100 p-3 dark:bg-error-900/20",children:e.jsx(Xe,{className:"h-8 w-8 text-error-600 dark:text-error-400"})})}),e.jsx("h2",{className:"mb-2 text-xl font-semibold text-foreground",children:"Something went wrong"}),e.jsx("p",{className:"mb-6 text-sm text-muted-foreground",children:"We're sorry, but something unexpected happened. Please try again or refresh the page."}),e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:justify-center",children:[e.jsxs(z,{onClick:this.handleRetry,variant:"default",children:[e.jsx(wr,{className:"mr-2 h-4 w-4"}),"Try Again"]}),e.jsx(z,{onClick:this.handleReload,variant:"outline",children:"Refresh Page"})]}),ri]})}):this.props.children}}const ii={sm:{container:"h-6 w-6",bee:"h-3 w-3"},md:{container:"h-12 w-12",bee:"h-6 w-6"},lg:{container:"h-16 w-16",bee:"h-8 w-8"}};function li({className:s,size:t="md"}){const a=ii[t];return e.jsxs("div",{className:p("flex items-center justify-center",s),role:"status","aria-label":"Loading",children:[e.jsxs("div",{className:p("relative",a.container),children:[e.jsxs("svg",{viewBox:"0 0 100 100",className:"absolute inset-0 h-full w-full text-warning-500",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"honeyGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[e.jsx("stop",{offset:"0%",stopColor:"#fbbf24"}),e.jsx("stop",{offset:"100%",stopColor:"#f59e0b"})]})}),e.jsx("polygon",{fill:"none",stroke:"url(#honeyGradient)",strokeWidth:"4",strokeLinejoin:"round",points:"50,10 84,30 84,70 50,90 16,70 16,30"})]}),e.jsx("div",{className:"absolute left-1/4 top-1/4 -translate-x-1/2 -translate-y-1/2 animate-bee-orbit",style:{transformOrigin:"center"},children:e.jsx("svg",{viewBox:"0 0 48 48",className:a.bee,children:e.jsxs("g",{children:[e.jsx("path",{d:`M24,4c-3.866,0-7,3.134-7,7c0,2.733,1.565,5.09,3.839,6.274C20.313,19.096,19,21.382,19,24
203                c0,4.418,3.582,8,8,8s8-3.582,8-8c0-2.618-1.313-4.904-3.839-6.726C31.435,16.09,33,13.733,33,11
204                C33,7.134,29.866,4,26,4H24z`,fill:"#FFCC00"}),e.jsx("path",{d:"M16 19c-2 0-4-2-4-4s2-4 4-4M32 19c2 0 4-2 4-4s-2-4-4-4",stroke:"#000",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M21 29h6M20 24h8M22 19h4",stroke:"#000",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]})}function H(){return e.jsx("div",{className:"flex items-center justify-center min-h-[50vh]",children:e.jsx(li,{})})}function q({showBreadcrumbs:s=!1,showDescription:t=!0,showActions:a=!1,variant:i="default",containerSize:l="xl",childrenHeight:c,className:u}){const d=i==="gradient";return e.jsxs("header",{className:p("w-full relative overflow-hidden border-b border-border",i==="default"&&"bg-background",i==="gradient"&&"bg-background",u),children:[d&&e.jsx("div",{className:"absolute inset-y-0 w-[100vw] left-1/2 -translate-x-1/2 bg-gradient-to-r from-background via-background to-muted/30 dark:from-dark-base dark:via-dark-base dark:to-dark-elevated/50","aria-hidden":"true"}),e.jsx(Y,{size:l,padding:!0,className:"relative z-10",children:e.jsxs("div",{className:"py-4 lg:py-6",children:[s&&e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(r,{className:"h-3 w-12"}),e.jsx(r,{className:"h-3 w-3 rounded-full"}),e.jsx(r,{className:"h-3 w-20"}),e.jsx(r,{className:"h-3 w-3 rounded-full"}),e.jsx(r,{className:"h-3 w-16"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx(r,{className:"h-8 w-2/3 sm:h-9 lg:h-10 max-w-md"}),t&&e.jsxs("div",{className:"mt-1.5 space-y-1",children:[e.jsx(r,{className:"h-4 w-full max-w-2xl"}),e.jsx(r,{className:"h-4 w-3/4 max-w-xl"})]}),c&&e.jsx(r,{className:"mt-3",style:{height:c}})]}),a&&e.jsxs("div",{className:"flex gap-2 sm:flex-shrink-0",children:[e.jsx(r,{className:"h-10 w-24"}),e.jsx(r,{className:"h-10 w-20"})]})]})]})})]})}const X=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:p("rounded-lg border bg-card text-card-foreground shadow-sm",s),...t}));
204X.displayName="Card";const je=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:p("flex flex-col space-y-1.5 p-6",s),...t}));je.displayName="CardHeader";const oi=n.forwardRef(({className:s,children:t,...a},i)=>e.jsx("h3",{ref:i,className:p("text-2xl font-semibold leading-none tracking-tight",s),...a,children:t}));oi.displayName="CardTitle";const ci=n.forwardRef(({className:s,...t},a)=>e.jsx("p",{ref:a,className:p("text-sm text-muted-foreground",s),...t}));ci.displayName="CardDescription";const Z=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:p("p-6 pt-0",s),...t}));Z.displayName="CardContent";const Qt=n.forwardRef(({className:s,...t},a)=>e.jsx("div",{ref:a,className:p("flex items-center p-6 pt-0",s),...t}));Qt.displayName="CardFooter";function ce({count:s=6,columns:t="auto"}){const a=t==="auto"?"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4":t===2?"grid grid-cols-1 sm:grid-cols-2 gap-4":"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4";return e.jsx("div",{className:a,children:Array.from({length:s}).map((i,l)=>e.jsxs(X,{className:"overflow-hidden",children:[e.jsxs(je,{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsx(r,{className:"h-5 w-3/4"}),e.jsx(r,{className:"h-5 w-16 rounded-full"})]}),e.jsx(r,{className:"h-4 w-1/2"})]}),e.jsxs(Z,{className:"space-y-2",children:[e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-2/3"})]}),e.jsx(Qt,{children:e.jsx(r,{className:"h-9 w-20"})})]},l))})}function di(){return e.jsxs(V,{customContainer:!0,variant:"fullwidth",children:[e.jsx("section",{className:"relative overflow-hidden bg-gradient-to-br from-secondary-50 via-background to-warning-50 dark:from-[#071320] dark:via-dark-base dark:to-[#122a3a]",children:e.jsx("div",{className:"container mx-auto px-4 max-w-[1440px]",children:e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start gap-8 md:gap-6 lg:gap-12 py-16 md:py-24",children:[e.jsxs("div",{className:"flex flex-col items-start max-w-2xl md:max-w-sm lg:max-w-2xl md:flex-1 text-center md:text-left",children:[e.jsx(r,{className:"h-8 w-64 rounded-full mb-6"}),e.jsx(r,{className:"h-12 w-full sm:h-16 mb-2"}),e.jsx(r,{className:"h-12 w-4/5 sm:h-16 mb-6"}),e.jsx(r,{className:"h-6 w-full max-w-xl mb-2"}),e.jsx(r,{className:"h-6 w-3/4 max-w-lg mb-8"}),e.jsxs("div",{className:"flex flex-wrap gap-4 mb-10",children:[e.jsx(r,{className:"h-5 w-32"}),e.jsx(r,{className:"h-5 w-28"}),e.jsx(r,{className:"h-5 w-36"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 w-full sm:w-auto",children:[e.jsx(r,{className:"h-14 w-36 rounded-xl"}),e.jsx(r,{className:"h-14 w-32 rounded-xl"})]}),e.jsx(r,{className:"h-10 w-56 rounded-full mt-6"})]}),e.jsx("div",{className:"w-full md:w-[360px] lg:w-[420px]",children:e.jsxs("div",{className:"bg-card border border-border rounded-xl shadow-lg overflow-hidden",children:[e.jsx("div",{className:"p-4 border-b border-border",children:e.jsx(r,{className:"h-5 w-32"})}),e.jsx("div",{className:"p-4 space-y-3",children:Array.from({length:5}).map((s,t)=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(r,{className:"h-10 w-10 rounded-lg flex-shrink-0"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-3 w-2/3"})]}),e.jsx(r,{className:"h-3 w-12"})]},t))})]})})]})})}),e.jsx("section",{className:"py-8 md:py-12 bg-muted/30",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx(r,{className:"h-6 w-48 mx-auto mb-2"}),e.jsx(r,{className:"h-4 w-64 mx-auto"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((s,t)=>e.jsxs("div",{className:"bg-card border border-border rounded-lg p-4",children:[e.jsx(r,{className:"h-8 w-16 mb-2"}),e.jsx(r,{className:"h-4 w-24"})]},t))})]})}),e.jsx("section",{className:"py-12 md:py-16 bg-gradient-to-b from-background to-neutral-50/80 dark:to-neutral-900/80",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx(r,{className:"h-8 w-64 mx-auto mb-2"}),e.jsx(r,{className:"h-4 w-80 mx-auto"})]}),e.jsx("div",{className:"flex gap-4 overflow-hidden mx-10",children:Array.from({length:3}).map((s,t)=>e.jsxs("div",{className:"flex-shrink-0 w-full sm:w-[calc(50%-8px)] lg:w-[calc(33.333%-11px)] rounded-xl border border-border bg-card p-4 min-h-[140px]",children:[e.jsxs("div",{className:"flex justify-between items-start mb-3",children:[e.jsx(r,{className:"h-4 w-16"}),e.jsx(r,{className:"h-5 w-20 rounded-full"})]}),e.jsx(r,{className:"h-4 w-full mb-2"}),e.jsx(r,{className:"h-4 w-2/3 mb-3"}),e.jsx(r,{className:"h-3 w-24"})]},t))}),e.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6",children:[e.jsx(r,{className:"w-6 h-2 rounded-full"}),e.jsx(r,{className:"w-2 h-2 rounded-full"}),e.jsx(r,{className:"w-2 h-2 rounded-full"})]}),e.jsx("div",{className:"text-center mt-8",children:e.jsx(r,{className:"h-10 w-32 mx-auto"})})]})}),e.jsx("section",{className:"py-12 md:py-16 bg-muted/20",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl text-center",children:[e.jsx(r,{className:"h-8 w-48 mx-auto mb-4"}),e.jsx(r,{className:"h-5 w-96 mx-auto mb-8"}),e.jsx(r,{className:"h-14 w-full max-w-2xl mx-auto rounded-xl"})]})}),e.jsx("section",{className:"py-12 md:py-16",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx(r,{className:"h-8 w-56 mx-auto mb-2"}),e.jsx(r,{className:"h-4 w-72 mx-auto"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:Array.from({length:3}).map((s,t)=>e.jsxs("div",{className:"bg-card border border-border rounded-xl p-6",children:[e.jsx(r,{className:"h-12 w-12 rounded-lg mb-4"}),e.jsx(r,{className:"h-6 w-32 mb-2"}),e.jsx(r,{className:"h-4 w-full mb-1"}),e.jsx(r,{className:"h-4 w-4/5"})]},t))})]})})]})}function ui(){return e.jsx(V,{header:e.jsx(q,{variant:"gradient",showDescription:!0}
204),children:e.jsxs("div",{className:"py-8 space-y-6",children:[e.jsx("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(r,{className:"h-5 w-5 rounded"}),e.jsx(r,{className:"h-5 w-32"})]}),e.jsx(r,{className:"h-9 w-[180px]"})]})}),e.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-6 space-y-4",children:[e.jsx(r,{className:"h-12 w-full"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-24"}),e.jsx(r,{className:"h-10 w-24"})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-border",children:[e.jsx(r,{className:"h-4 w-48"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-4 w-12"}),e.jsx(r,{className:"h-8 w-24"})]})]})]}),e.jsx(ce,{count:6}),e.jsx("div",{className:"bg-card border border-border rounded-lg shadow-sm px-6 py-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(r,{className:"h-4 w-24"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-9 w-20"}),e.jsx(r,{className:"h-9 w-9"}),e.jsx(r,{className:"h-9 w-9"}),e.jsx(r,{className:"h-9 w-9"}),e.jsx(r,{className:"h-9 w-20"})]})]})})]})})}function vs(){return e.jsxs(V,{customContainer:!0,children:[e.jsxs("header",{className:"w-full relative overflow-hidden border-b border-border",children:[e.jsx("div",{className:"absolute inset-y-0 w-[100vw] left-1/2 -translate-x-1/2 bg-gradient-to-r from-background via-background to-muted/30 dark:from-dark-base dark:via-dark-base dark:to-dark-elevated/50","aria-hidden":"true"}),e.jsx(Y,{size:"xl",padding:!0,className:"relative z-10",children:e.jsxs("div",{className:"py-4 lg:py-6",children:[e.jsx(r,{className:"h-6 w-24 mb-3"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-2",children:[e.jsx(r,{className:"h-8 w-20"}),e.jsx(r,{className:"h-6 w-24 rounded-full"}),e.jsx(r,{className:"h-6 w-20 rounded-full"})]}),e.jsx(r,{className:"h-9 w-full max-w-2xl mb-2"}),e.jsx(r,{className:"h-9 w-3/4 max-w-xl mb-4"}),e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(r,{className:"h-10 w-10 rounded-full"}),e.jsxs("div",{children:[e.jsx(r,{className:"h-4 w-32 mb-1"}),e.jsx(r,{className:"h-3 w-24"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-24"}),e.jsx(r,{className:"h-10 w-20"})]})]})})]}),e.jsxs(Y,{size:"xl",padding:!0,children:[e.jsx("div",{className:"py-4 border-b border-border",children:e.jsx("div",{className:"flex items-center gap-4 overflow-x-auto",children:Array.from({length:4}).map((s,t)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-8 w-8 rounded-full flex-shrink-0"}),e.jsx(r,{className:"h-4 w-24"})]},t))})}),e.jsx("div",{className:"border-b border-border mt-4",children:e.jsx("div",{className:"flex gap-4 -mb-px",children:["Summary","Analysis","Documents","Testimony","Votes","Activity"].map(s=>e.jsx(r,{className:"h-10 w-20"},s))})}),e.jsxs("div",{className:"py-6 space-y-6",children:[e.jsxs("div",{className:"bg-muted/30 rounded-lg p-4",children:[e.jsx(r,{className:"h-5 w-32 mb-3"}),e.jsx(r,{className:"h-4 w-full mb-2"}),e.jsx(r,{className:"h-4 w-full mb-2"}),e.jsx(r,{className:"h-4 w-3/4"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(r,{className:"h-6 w-40"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-5/6"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-4/5"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(r,{className:"h-6 w-36"}),e.jsx("div",{className:"space-y-2 pl-4",children:Array.from({length:4}).map((s,t)=>e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(r,{className:"h-4 w-4 roun
204ded-full flex-shrink-0 mt-0.5"}),e.jsx(r,{className:"h-4 flex-1"})]},t))})]})]})]})]})}function mi(){return e.jsx(V,{header:e.jsx(q,{variant:"gradient",showDescription:!0,childrenHeight:40}),children:e.jsxs("div",{className:"space-y-6 mb-12",children:[e.jsx("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(r,{className:"h-5 w-5 rounded"}),e.jsx(r,{className:"h-5 w-32"})]}),e.jsx(r,{className:"h-9 w-[180px]"})]})}),e.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4 space-y-4",children:[e.jsx(r,{className:"h-10 w-full sm:w-80"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-24"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"flex items-center justify-between text-sm",children:e.jsx(r,{className:"h-4 w-36"})}),e.jsx(ce,{count:6})]})]})})}function he(){return e.jsxs(V,{customContainer:!0,children:[e.jsxs("header",{className:"w-full relative overflow-hidden border-b border-border",children:[e.jsx("div",{className:"absolute inset-y-0 w-[100vw] left-1/2 -translate-x-1/2 bg-gradient-to-r from-background via-background to-muted/30 dark:from-dark-base dark:via-dark-base dark:to-dark-elevated/50","aria-hidden":"true"}),e.jsx(Y,{size:"xl",padding:!0,className:"relative z-10",children:e.jsxs("div",{className:"py-4 lg:py-6",children:[e.jsx(r,{className:"h-6 w-32 mb-3"}),e.jsx(r,{className:"h-9 w-64 mb-2"}),e.jsx(r,{className:"h-5 w-80 mb-4"}),e.jsxs("div",{className:"flex items-center gap-4 mt-4",children:[e.jsx(r,{className:"w-16 h-16 rounded-lg flex-shrink-0"}),e.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[e.jsx(r,{className:"h-10 w-32"}),e.jsx(r,{className:"h-10 w-28"})]})]})]})})]}),e.jsxs(Y,{size:"xl",padding:!0,children:[e.jsx("div",{className:"border-b border-border mt-4",children:e.jsx("div",{className:"flex gap-4 -mb-px overflow-x-auto",children:["Profile","Votes","Bills","Committees","History"].map(s=>e.jsx(r,{className:"h-10 w-24 flex-shrink-0"},s))})}),e.jsx("div",{className:"py-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsx("div",{className:"md:col-span-1",children:e.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 space-y-4",children:[e.jsx(r,{className:"h-5 w-28"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(r,{className:"h-5 w-5"}),e.jsx(r,{className:"h-4 w-40"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(r,{className:"h-5 w-5"}),e.jsx(r,{className:"h-4 w-32"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(r,{className:"h-5 w-5"}),e.jsx(r,{className:"h-4 w-36"})]})]}),e.jsx(r,{className:"h-10 w-full"})]})}),e.jsxs("div",{className:"md:col-span-2 space-y-6",children:[e.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 space-y-3",children:[e.jsx(r,{className:"h-5 w-24"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-3/4"})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 space-y-3",children:[e.jsx(r,{className:"h-5 w-32"}),e.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((s,t)=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(r,{className:"h-4 w-48"}),e.jsx(r,{className:"h-5 w-20 rounded-full"})]},t))})]})]})]})})]})]})}function hi(){return e.jsx(V,{header:e.jsx(q,{variant:"gradient",showDescription:!0}),children:e.jsxs("div",{className:"space-y-6 mb-12",children:[e.jsx("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(r,{className:"h-5 w-5 rounded"}),e.jsx(r,{className:"h-5 w-32"})]}),e.jsx(r,{className:"h-9 w-[180px]"})]})}),e.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4 space-y-4",children:[e.jsx(r,{className:"h-10 w-full sm:w-80"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-28"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(r,{className:"h-4 w-36"}),e.jsx(ce,{count:6})]})]})})}function ys(){return e.jsxs(V,{customContainer:!0,children:[e.jsxs("header",{className:"w-full relative overflow-hidden border-b border-border",children:[e.jsx("div",{className:"absolute inset-y-0 w-[100vw] left-1/2 -translate-x-1/2 bg-gradient-to-r from-background via-background to-muted/30","aria-hidden":"true"}),e.jsx(Y,{size:"xl",padding:!0,className:"relative z-10",children:e.jsxs("div",{className:"py-4 lg:py-6",children:[e.jsx(r,{className:"h-6 w-32 mb-3"}),e.jsx(r,{className:"h-9 w-80 mb-2"}),e.jsx(r,{className:"h-5 w-48 mb-4"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-24"})]})]})})]}),e.jsxs(Y,{size:"xl",padding:!0,children:[e.jsx("div",{className:"border-b border-border mt-4",children:e.jsx("div",{className:"flex gap-4 -mb-px",children:["Members","Bills","Calendar"].map(s=>e.jsx(r,{className:"h-10 w-24"},s))})}),e.jsx("div",{className:"py-6 space-y-4",children:Array.from({length:6}).map((s,t)=>e.jsxs("div",{className:"flex items-center gap-4 p-4 border border-border rounded-lg",children:[e.jsx(r,{className:"h-12 w-12 rounded-full flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx(r,{className:"h-5 w-40 mb-1"}),e.jsx(r,{className:"h-4 w-32"})]}),e.jsx(r,{className:"h-6 w-20 rounded-full"})]},t))})]})]})}function xi(){return e.jsx(V,{header:e.jsx(q,{variant:"gradient",showDescription:!0}
204),children:e.jsxs("div",{className:"space-y-6 mb-12",children:[e.jsx("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(r,{className:"h-5 w-32"}),e.jsx(r,{className:"h-9 w-[180px]"})]})}),e.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-9 w-9"}),e.jsx(r,{className:"h-6 w-32"}),e.jsx(r,{className:"h-9 w-9"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(r,{className:"h-9 w-20"}),e.jsx(r,{className:"h-9 w-20"})]})]}),e.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(s=>e.jsx(r,{className:"h-8 w-full"},s))}),e.jsx("div",{className:"grid grid-cols-7 gap-1",children:Array.from({length:35}).map((s,t)=>e.jsx("div",{className:"aspect-square p-1",children:e.jsx(r,{className:"h-full w-full"})},t))})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4 space-y-3",children:[e.jsx(r,{className:"h-5 w-32"}),Array.from({length:3}).map((s,t)=>e.jsxs("div",{className:"flex items-start gap-3 p-3 border border-border rounded-lg",children:[e.jsx(r,{className:"h-10 w-10 rounded flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx(r,{className:"h-5 w-48 mb-1"}),e.jsx(r,{className:"h-4 w-32"})]})]},t))]})]})})}function pi(){return e.jsx(V,{header:e.jsx(q,{variant:"gradient",showDescription:!0,showActions:!0}),children:e.jsxs("div",{className:"pt-6 pb-12",children:[e.jsxs("div",{className:"grid w-full grid-cols-4 gap-1 bg-muted p-1 rounded-lg mb-6",children:[e.jsx(r,{className:"h-9 rounded-md"}),e.jsx(r,{className:"h-9 rounded-md"}),e.jsx(r,{className:"h-9 rounded-md"}),e.jsx(r,{className:"h-9 rounded-md"})]}),e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex items-center gap-4 mb-2",children:[e.jsx(r,{className:"h-2 flex-1"}),e.jsx(r,{className:"h-4 w-20"})]})}),e.jsxs("div",{className:"mb-6 flex flex-col gap-3",children:[e.jsx(r,{className:"h-10 w-full sm:max-w-md"}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-10 w-[130px]"}),e.jsx(r,{className:"h-10 w-[120px]"})]}),e.jsxs("div",{className:"flex rounded-lg border border-border p-1 gap-1",children:[e.jsx(r,{className:"h-8 w-8"}),e.jsx(r,{className:"h-8 w-8"})]})]})]}),e.jsx(ce,{count:6})]})})}function fi(){return e.jsx(V,{header:e.jsx(q,{showDescription:!0}),children:e.jsxs("div",{className:"space-y-6 py-8",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(r,{className:"h-12 flex-1"}),e.jsx(r,{className:"h-12 w-24"})]}),e.jsx("div",{className:"flex gap-2 border-b border-border pb-2",children:["All","Bills","Legislators","Committees"].map(s=>e.jsx(r,{className:"h-9 w-24"},s))}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-28"}),e.jsx(r,{className:"h-10 w-24"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(r,{className:"h-4 w-32"}),e.jsx(ce,{count:6})]})]})})}function gi(){return e.jsx(V,{header:e.jsx(q,{showDescription:!0,showActions:!0}),children:e.jsxs("div",{className:"space-y-6 py-8",children:[e.jsx("div",{className:"bg-card border border-border rounded-lg p-6 space-y-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(r,{className:"h-20 w-20 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(r,{className:"h-6 w-40"}),e.jsx(r,{className:"h-4 w-56"})]}),e.jsx(r,{className:"h-10 w-28"})]})}),e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 space-y-4",children:[e.jsx(r,{className:"h-6 w-32"}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{className:"h-5 w-24"}),e.jsx(r,{className:"h-4 w-48"})]}),e.jsx(r,{className:"h-10 w-32"})]})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 space-y-4",children:[e.jsx(r,{className:"h-6 w-24"}),Array.from({length:4}).map((s,t)=>e.jsxs("div",{className:"flex items-center justify-between py-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(r,{className:"h-5 w-32"}),e.jsx(r,{className:"h-4 w-48"})]}),e.jsx(r,{className:"h-6 w-12"})]},t))]}),e.jsxs("div",{className:"bg-card border border-error-200 rounded-lg p-6 space-y-4",children:[e.jsx(r,{className:"h-6 w-28"}),e.jsx(r,{className:"h-4 w-64"}),e.jsx(r,{className:"h-10 w-36"})]})]})})}function xe(){return e.jsxs(V,{children:[e.jsx(q,{showDescription:!0}
204),e.jsxs("div",{className:"py-8 space-y-8 max-w-3xl",children:[e.jsx(r,{className:"h-4 w-40"}),Array.from({length:5}).map((s,t)=>e.jsxs("section",{className:"space-y-3",children:[e.jsx(r,{className:"h-6 w-1/3"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-4 w-5/6"}),t%2===0&&e.jsx(r,{className:"h-4 w-3/4"})]})]},t))]})]})}function bi(){return e.jsx(V,{header:e.jsx(q,{variant:"gradient",showDescription:!0}),children:e.jsxs("div",{className:"py-8 space-y-6",children:[e.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4 space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-6",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(r,{className:"h-3 w-24"}),e.jsx(r,{className:"h-7 w-16"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(r,{className:"h-3 w-24"}),e.jsx(r,{className:"h-7 w-16"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(r,{className:"h-3 w-20"}),e.jsx(r,{className:"h-7 w-12"})]})]}),e.jsx(r,{className:"h-2 w-full rounded-full"})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm p-6 space-y-4",children:[e.jsx(r,{className:"h-12 w-full"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(r,{className:"h-9 w-[150px]"}),e.jsx(r,{className:"h-9 w-[180px]"}),e.jsx(r,{className:"h-9 w-[140px]"}),e.jsx(r,{className:"h-9 w-[140px]"}),e.jsx(r,{className:"h-9 w-[140px]"}),e.jsx(r,{className:"h-9 w-[120px]"})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-border",children:[e.jsx(r,{className:"h-4 w-48"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-8 w-20"}),e.jsx(r,{className:"h-8 w-20"})]})]})]}),e.jsx(ce,{count:6}),e.jsx("div",{className:"bg-card border border-border rounded-lg shadow-sm px-6 py-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(r,{className:"h-4 w-24"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-9 w-20"}),e.jsx(r,{className:"h-9 w-9"}),e.jsx(r,{className:"h-9 w-9"}),e.jsx(r,{className:"h-9 w-9"}),e.jsx(r,{className:"h-9 w-20"})]})]})})]})})}function ji(){return e.jsx(V,{header:e.jsx(q,{variant:"gradient",showBreadcrumbs:!0,showDescription:!0}),children:e.jsxs("div",{className:"space-y-6 mb-12",children:[e.jsx("div",{className:"bg-card border border-border rounded-lg shadow-sm p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(r,{className:"h-5 w-32"}),e.jsx(r,{className:"h-9 w-[180px]"})]})}),e.jsxs(X,{children:[e.jsx(je,{className:"pb-3",children:e.jsx(r,{className:"h-6 w-40"})}),e.jsx(Z,{children:e.jsx(r,{className:"h-10 w-full"})})]}),e.jsxs(X,{children:[e.jsx(je,{className:"pb-3",children:e.jsx(r,{className:"h-6 w-20"})}),e.jsx(Z,{children:e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(r,{className:"h-3 w-10"}),e.jsx(r,{className:"h-10 w-full sm:w-[160px]"})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(r,{className:"h-3 w-6"}),e.jsx(r,{className:"h-10 w-full sm:w-[160px]"})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(r,{className:"h-3 w-16"}),e.jsx(r,{className:"h-10 w-full sm:w-[180px]"})]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(r,{className:"h-3 w-16"}),e.jsx(r,{className:"h-10 w-full sm:w-[180px]"})]})]})})]}),e.jsxs("div",{children:[e.jsx(r,{className:"h-6 w-36 mb-3"}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:3}).map((s,t)=>e.jsx(X,{children:e.jsx(Z,{className:"pt-4 pb-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(r,{className:"h-4 w-28"}),e.jsx(r,{className:"h-3 w-6"}),e.jsx(r,{className:"h-4 w-24"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx(r,{className:"h-8 w-16"}),e.jsx(r,{className:"h-3 w-16 mt-1"})]})]})})},t))})]}),e.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-sm overflow-hidden",children:[e.jsx("div",{className:"border-b border-border p-4",children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx(r,{className:"h-4 w-24"}),e.jsx(r,{className:"h-4 w-20"}),e.jsx(r,{className:"h-4 w-32"}),e.jsx(r,{className:"h-4 w-20 ml-auto"})]})}),Array.from({length:5}).map((s,t)=>e.jsx("div",{className:"border-b border-border p-4 last:border-b-0",children:e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx(r,{className:"h-4 w-20"}),e.jsx(r,{className:"h-4 w-24"}),e.jsx(r,{className:"h-4 w-40"}),e.jsx(r,{className:"h-6 w-16 ml-auto rounded-full"})]})},t))]})]})})}function Ns(){return e.jsx(V,{header:e.jsx(q,{showBreadcrumbs:!0,showDescription:!0,showActions:!0,childrenHeight:52}),children:e.jsx(Y,{padding:!0,size:"2xl",children:e.jsx("div",{className:"space-y-6",children:e.jsx(X,{children:e.jsxs(Z,{className:"pt-6",children:[e.jsx(r,{className:"h-16 w-full mb-6 rounded-lg"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 ga
204p-2 sm:gap-4 mb-4 sm:mb-6",children:["Yes","No","Present","Absent","Not Voting"].map(s=>e.jsxs("div",{className:"p-2 sm:p-4 rounded-lg border border-border",children:[e.jsx(r,{className:"h-4 w-16 mb-2"}),e.jsx(r,{className:"h-5 w-full"})]},s))}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 sm:gap-6",children:["Yes","No"].map(s=>e.jsxs("div",{className:"p-3 sm:p-4 rounded-lg border border-border",children:[e.jsx(r,{className:"h-5 w-12 mb-3 sm:mb-4"}),e.jsx("div",{className:"space-y-2",children:Array.from({length:4}).map((t,a)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-8 w-8 rounded-full flex-shrink-0"}),e.jsx(r,{className:"h-4 w-32"}),e.jsx(r,{className:"h-4 w-12 ml-auto"})]},a))})]},s))}),e.jsx("div",{className:"mt-4 sm:mt-6 space-y-3 sm:space-y-4",children:["Present","Absent","Not Voting"].map(s=>e.jsxs("div",{className:"p-3 sm:p-4 rounded-lg border border-border",children:[e.jsx(r,{className:"h-5 w-24 mb-3 sm:mb-4"}),e.jsx("div",{className:"space-y-2",children:Array.from({length:2}).map((t,a)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-8 w-8 rounded-full flex-shrink-0"}),e.jsx(r,{className:"h-4 w-28"}),e.jsx(r,{className:"h-4 w-12 ml-auto"})]},a))})]},s))})]})})})})})}function wi(){return e.jsx(V,{header:e.jsx(q,{showBreadcrumbs:!0,showDescription:!0}),children:e.jsx("div",{className:"py-8",children:e.jsx("div",{className:"max-w-3xl mx-auto space-y-8",children:e.jsxs(X,{children:[e.jsxs(je,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-5 w-5"}),e.jsx(r,{className:"h-6 w-40"})]}),e.jsx(r,{className:"h-4 w-72 mt-1.5"})]}),e.jsxs(Z,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{className:"h-4 w-24"}),e.jsx(r,{className:"h-10 w-full"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{className:"h-4 w-10"}),e.jsx(r,{className:"h-10 w-full"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{className:"h-4 w-12"}),e.jsx(r,{className:"h-10 w-full"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(r,{className:"h-4 w-16"}),e.jsx(r,{className:"h-10 w-full"})]})]}),e.jsx(r,{className:"h-10 w-full"})]})]})})})})}const vi=n.lazy(()=>w(()=>import("./index-DikOA3D3.js"),__vite__mapDeps([50,1,2,3,4,5,22,51,52,53,19,9,54])).then(s=>({default:s.OnboardingChecklist}))),yi=n.lazy(()=>w(()=>import("./index-DikOA3D3.js"),__vite__mapDeps([50,1,2,3,4,5,22,51,52,53,19,9,54])).then(s=>({default:s.TourRunner}))),Ni=n.lazy(()=>w(()=>import("./index-DikOA3D3.js"),__vite__mapDeps([50,1,2,3,4,5,22,51,52,53,19,9,54])).then(s=>({default:s.OnboardingTriggers}))),_i=n.lazy(()=>w(()=>import("./Index-DuKtBsS1.js"),__vite__mapDeps([55,1,2,56,4,5,28,57,58,36,37,38,59,41,60,61,25,22,62,10,63,64,65,33,17,66,19,67,9])).then(s=>({default:s.Index}))),ki=n.lazy(()=>w(()=>import("./Account-BqaIAxOU.js"),__vite__mapDeps([68,1,2,56,4,5,3,69,70,15,71,16,9,57,72,73,74,63,75,21,76,23,77,25,78,79,80,6,7,8,10,81,11,12,82,33,51,83,84,85,86,24,87,88,89,36,37,38,43,90,66,19])).then(s=>({default:s.Account}))),Si=n.lazy(()=>w(()=>import("./Bills-DTUnzoDY.js"),__vite__mapDeps([91,1,2,47,92,93,94,89,95,84,12,36,37,38,96,28,97,27,98,31,99,13,4,5,14,71,57,100,52,101,102,103,104,9,70,15,105,106,8,35,107,108,109,60,59,34,10,86,110,111,112,32,3,113,114,115,41,116,117,118,73,22,63,119,72,58,30,120,69,61,66,19,121])).then(s=>({default:s.Bills}))),Ci=n.lazy(()=>w(()=>import("./Legislators-COCaTIrT.js"),__vite__mapDeps([122,1,2,46,123,36,37,38,70,15,105,106,4,5,52,8,9,35,88,89,33,43,90,79,80,99,13,14,71,57,100,11,10,124,110,120,102,103,104,41,116,117,118,73,66,19])).then(s=>({default:s.Legislators}))),Ti=n.lazy(()=>w(()=>import("./LegislatorVotes-05MSAOhQ.js"),__vite__mapDeps([125,1,2,36,37,38,126,42,101,96,33,127,70,15,35,4,5,57,43,75,128,71,106,52,39,59,44,60,46,69,120,56,66,19,73,9])).then(s=>({default:s.LegislatorVotes}))),Ei=n.lazy(()=>w(()=>import("./Committees-CPQ7ObID.js"),__vite__mapDeps([129,1,2,106,4,5,52,10,35,47,36,37,38,33,57,120,105,8,9,70,15,99,13,14,71,100,117,41,116,118,73,89,102,103,104,66,19])).then(s=>({default:s.Committees}))),Li=n.lazy(()=>w(()=>import("./CommitteeDetail-DxeQXXU8.js"),__vite__mapDeps([130,1,2,69,33,36,37,38,39,79,100,52,99,13,4,5,14,71,5
2047,28,30,41,87,131,60,132,133,61,74,63,59,49,56,109,34,10,8,9,86,106,103,47,127,24,105,35,70,15,120,134,135,84,12,66,19,67])).then(s=>({default:s.CommitteeDetail}))),Ii=n.lazy(()=>w(()=>import("./Calendar-ACQ88KSY.js"),__vite__mapDeps([136,1,2,120,57,132,36,37,38,133,61,4,5,30,41,74,63,59,49,70,15,105,106,52,8,9,35,109,60,34,10,13,14,86,56,107,108,101,110,47,103,66,19])).then(s=>({default:s.Calendar}))),Mi=n.lazy(()=>w(()=>import("./Testimony-D-d1HkdI.js"),__vite__mapDeps([137,1,2,96,64,70,15,10,120,57,69,113,106,4,5,52,34,114,115,102,103,104,61,121,138,36,37,38,44,85,111,112,66,19,9])).then(s=>({default:s.Testimony}))),Ai=n.lazy(()=>w(()=>import("./SearchPage-CrHqMFRs.js"),__vite__mapDeps([139,1,2,70,15,44,24,25,95,84,12,22,19,138,39,57,72,140,65,33,41,64,66,38,4,5,9])).then(s=>({default:s.SearchPage}))),Ri=n.lazy(()=>w(()=>import("./DataSources-fpFxPwN4.js"),__vite__mapDeps([141,1,2,70,15,66,19,38,4,5,9])).then(s=>({default:s.DataSources}))),Oi=n.lazy(()=>w(()=>import("./Privacy-DvHCczTC.js"),__vite__mapDeps([142,1,2,70,15,66,19,38,4,5,9])).then(s=>({default:s.Privacy}))),Pi=n.lazy(()=>w(()=>import("./Terms-KePAmM8s.js"),__vite__mapDeps([143,1,2,70,15,66,19,38,4,5,9])).then(s=>({default:s.Terms}))),Di=n.lazy(()=>w(()=>import("./About-B6L-zf03.js"),__vite__mapDeps([144,1,2,70,15,66,19,38,145,4,5,9])).then(s=>({default:s.About}))),Bi=n.lazy(()=>w(()=>import("./Mission-BykZukmi.js"),__vite__mapDeps([146,1,2,70,15,66,19,38,11,119,4,5,9])).then(s=>({default:s.Mission}))),zi=n.lazy(()=>w(()=>import("./Dashboard-B5Ab3Jmn.js"),__vite__mapDeps([147,1,2,84,92,93,94,89,95,12,36,37,38,96,28,97,27,98,31,99,13,4,5,14,71,57,100,52,87,70,15,135,10,113,106,34,114,115,72,60,16,9,51,3,8,148,83,41,149,43,150,151,75,74,63,22,120,69,56,66,19,102,103,104,73])).then(s=>({default:s.Dashboard}))),Vi=n.lazy(()=>w(()=>import("./BillDetails-eoTKohS-.js").then(s=>s.B),__vite__mapDeps([152,1,2,134,57,153,9,4,5,106,52,40,140,63,16,36,37,38,97,93,96,70,15,29,30,31,32,3,33,34,35,39,27,28,154,151,133,101,95,84,12,81,148,155,24,56,61,104,23,8,41,42,87,131,47,44,14,66,19,67,127])).then(s=>({default:s.BillDetails}))),Ui=n.lazy(()=>w(()=>import("./LegislatorDetail-epTpQOI9.js"),__vite__mapDeps([156,1,2,46,47,36,37,38,33,127,70,15,56,4,5,57,128,71,106,52,42,101,39,59,44,60,94,89,95,84,12,96,28,97,27,98,31,157,41,30,40,79,117,35,158,72,73,134,61,133,43,151,66,19,67,90,9])).then(s=>({default:s.LegislatorDetail}))),Fi=n.lazy(()=>w(()=>import("./VoteDetails-B53cUyVm.js"),__vite__mapDeps([159,1,2,69,120,57,36,37,38,42,101,160,33,87,131,41,158,117,35,4,5,118,73,70,15,155,161,34,162,9,3,106,52,109,60,59,71,66,19,67])).then(s=>({default:s.VoteDetails}))),qi=n.lazy(()=>w(()=>import("./VoteComparison-CU1mNB8Q.js"),__vite__mapDeps([163,1,2,36,37,38,101,96,126,42,34,4,5,162,9,3,46,123,100,111,112,106,52,108,109,60,59,71,70,15,66,19,105,8,35,57,120,69,84,43,24])).then(s=>({default:s.VoteComparison}))),Hi=n.lazy(()=>w(()=>import("./FindYourLegislator-CIMOqxRA.js"),__vite__mapDeps([164,1,2,165,87,70,15,66,19,38,6,7,4,5,8,9,10,106,52,12,82,33,80,79,88,89,36,37,43,90]))),$i=n.lazy(()=>w(()=>import("./FederalLegislatorDetail-BfWWtOnl.js"),__vite__mapDeps([166,1,2,69,33,165,70,15,134,57,66,19,38,79,80,4,5,9])).then(s=>({default:s.FederalLegislatorDetail}))),Yi=n.lazy(()=>w(()=>import("./LegacyRedirects-DfZ3uws1.js"),__vite__mapDeps([167,1,2,46,47,42,37,38,19,4,5,9])).then(s=>({default:s.BillRedirect}))),Ki=n.lazy(()=>w(()=>import("./LegacyRedirects-DfZ3uws1.js"),__vite__mapDeps([167,1,2,46,47,42,37,38,19,4,5,9])).then(s=>({default:s.LegislatorRedirect}))),Gi=n.lazy(()=>w(()=>import("./LegacyRedirects-DfZ3uws1.js"),__vite__mapDeps([167,1,2,46,47,42,37,38,19,4,5,9])).then(s=>({default:s.LegislatorVotesRedirect}))),Qi=n.lazy(()=>w(()=>import("./LegacyRedirects-DfZ3uws1.js"),__vite__mapDeps([167,1,2,46,47,42,37,38,19,4,5,9])).then(s=>({default:s.CommitteeRedirect}))),Wi=n.lazy(()=>w(()=>import("./LegacyRedirects-DfZ3uws1.js"),__vite__mapDeps([167,1,2,46,47,42,37,38,19,4,5,9])).then(s=>({default:s.VoteRedirect}))),Ji=n.lazy(()=>w(()=>import("./AuthorizePage-DH4f2J4p.js"),__vite__mapDeps([168,1,2,66,19,38,74,75,17,4,5,9])).then(s=>({default:s.AuthorizePage}))),Xi=n.lazy(()=>w(()=>import("./Pipeline-enyKZOWN.js").then(s=>s.P),__vite__mapDeps([169,1,2,56,4,5,83,170,81,106,52,171,72,12,99,13,14,71,57,100,172,173,59,63,110,18,153,9,174,19])).then(s=>({default:s.Pipeline}))),Zi=n.lazy(()=>w(()=>import("./Schedules-_LZpV8R_.js"),__vite__mapDeps([175,1,2,170,85,4,5,99,13,14,71,57,100,52,83,172,176,12,63,78,3,10,8,9,81,106,34,171,72,174,19])).then(s=>({default:s.Schedules}))),el=n.lazy(()=>w(()=>import("./BillStatus-C7ITy0HD.js"),__vite__mapDeps([177,1,2,10,106,4,5,52,12,13,14,71,173,59,57,34,75,74,51,93,63,115,174,19,172,72,9])).then(s=>({default:s.BillStatus}))),sl=n.lazy(()=>w(()=>import("./Notifications-BQptFdly.js"),__vite__mapDeps([178,1,2,56,4,5,13,14,71,83,57,59,75,12,106,52,10,8,9,176,11,72,174,19])).then(s=>({default:s.Notifications}))),tl=n.lazy(()=>w(()=>import("./Reports-D63R1bfF.js"),__vite__mapDeps([179,1,2,106,4,5,52,8,9,36,37,38,180,41,56,181,19,18,11,171,13,14,182,31,86,85,108,109,60,59,34,12,174,72])).then(s=>({default:s.Reports}))),al=n.lazy(()=>w(()=>import("./CommitteeReports-DmdHK-Yo.js"),__vite__mapDeps([183,1,2,56,4,5,106,52,8,9,36,37,38,30,184,154,41,85,108,109,60,59,34,12,185,57,181,19,18,11,171,174,72])).then(s=>({default:s.CommitteeReports}))),rl=n.lazy(()=>w(()=>import("./VoteReports-DDfir21v.js"),__vite__mapDeps([186,1,2,106,4,5,52,8,9,36,37,38,187,30,41,101,13,14,188,108,109,60,59,34,86,12,185,56,57,181,19,18,11,171,174,43,72])).then(s=>({default:s.VoteReports}))),nl=n.lazy(()=>w(()=>import("./TopekaBuzz-zyRiOVYK.js"),__vite__mapDeps([189,1,2,106,4,5,52,8,9,190,188,187,30,41,101,13,14,184,154,180,56,181,19,18,11,171,182,37,38,31,108,109,60,59,34,86,85,43,174,145,72,12])).then(s=>({default:s.TopekaBuzz}))),il=n.lazy(()=>w(()=>import("./CalendarsReport-fuRBn_TG.js"),__vite__mapDeps([191,1,2,106,4,5,52,8,9,36,37,38,30,85,108,109,60,59,34,86,12,13,14,182,41,31,185,56,57,181,19,18,11,171,174,72])).then(s=>({default:s.CalendarsReport}))),ll=n.lazy(()=>w(()=>import("./FederalLegislatorImport-DqYiYHqx.js"),__vite__mapDeps([192,1,2,71,174,19,33,73,12,59,4,5,9])).then(s=>({default:s.FederalLegislatorImport}))),ol=new ea({defaultOptions:{queries:{staleTime:1e3*60*5,gcTime:1e3*60*60,retry:1,refetchOnWindowFocus:!1}}});function cl(){return e.jsx(Ea,{defaultTheme:"system",children:e.jsx(ca,{children:e.jsx(sa,{client:ol,children:e.jsx(na,{children:e.jsx(Br,{children:e.jsx(Rr,{children:e.jsx(Fr,{children:e.jsxs(dl,{children:[e.jsx(ai,{}),e.jsx(Mr,{}),e.jsx(ni,{children:e.jsx(Xr,{children:e.jsxs(er,{children:[e.jsxs(n.Suspense,{fallback:null,children:[e.jsx(yi,{}),e.jsx(vi,{}),e.jsx(Ni,{})]}),e.jsx(ia,{children:e.jsxs(_,{path:"/",element:e.jsx(Wn,{}),children:[e.jsx(_,{index:!0,element:e.jsx(n.Suspense,{fallback:e.jsx(di,{}),children:e.jsx(_i,{})})}),e.jsx(_,{path:"search",element:e.jsx(n.Suspense,{fallback:e.jsx(fi,{}),children:e.jsx(Ai,{})})}),e.jsx(_,{path:"account",element:e.jsx(n.Suspense,{fallback:e.jsx(gi,{}),children:e.jsx(ki,{})})}),e.jsx(_,{path:"bills",element:e.jsx(n.Suspense,{fallback:e.jsx(ui,{}),children:e.jsx(Si,{})})}),e.jsx(_,{path:"bills/:stateCode/:sessionCode/:billNumber",element:e.jsx(n.Suspense,{fallback:e.jsx(vs,{}),children:e.jsx(Vi,{})})}),e.jsx(_,{path:"bills/:billNumber",element:e.jsx(n.Suspense,{fallback:e.jsx(vs,{}),children:e.jsx(Yi,{})})}),e.jsx(_,{path:"dashboard",element:e.jsx(n.Suspense,{fallback:e.jsx(pi,{}),children:e.jsx(zi,{})})}),e.jsx(_,{path:"my-bills",element:e.jsx(la,{to:"/dashboard",replace:!0})}),e.jsx(_,{path:"legislators",element:e.jsx(n.Suspense,{fallback:e.jsx(mi,{}),children:e.jsx(Ci,{})})}),e.jsx(_,{path:"legislators/:stateCode/:sessionCode/:slug",element:e.jsx(n.Suspense,{fallback:e.jsx(he,{}),children:e.jsx(Ui,{})})}),e.jsx(_,{path:"legislators/:stateCode/:sessionCode/:slug/votes",element:e.jsx(n.Suspense,{fallback:e.jsx(he,{}),children:e.jsx(Ti,{})})}),e.jsx(_,{path:"legislators/:id",element:e.jsx(n.Suspense,{fallback:e.jsx(he,{}),children:e.jsx(Ki,{})})}),e.jsx(_,{path:"legislators/:id/votes",element:e.jsx(n.Suspense,{fallback:e.jsx(he,{}),children:e.jsx(Gi,{})})}),e.jsx(_,{path:"legislator/federal/:bioguideId",element:e.jsx(n.Suspense,{fallback:e.jsx(he,{}),children:e.jsx($i,{})})}),e.jsx(_,{path:"committees",element:e.jsx(n.Suspense,{fallback:e.jsx(hi,{}),children:e.jsx(Ei,{})})}),e.jsx(_,{path:"committees/:stateCode/:sessionCode/:committeeSlug",element:e.jsx(n.Suspense,{fallback:e.jsx(ys,{}),children:e.jsx(Li,{})})}),e.jsx(_,{path:"committees/:id",element:e.jsx(n.Suspense,{fallback:e.jsx(ys,{}),children:e.jsx(Qi,{})})}),e.jsx(_,{path:"calendar",element:e.jsx(n.Suspense,{fallback:e.jsx(xi,{}),children:e.jsx(Ii,{})})}),e.jsx(_,{path:"testimony",element:e.jsx(n.Suspense,{fallback:e.jsx(bi,{}),children:e.jsx(Mi,{})})}),e.jsx(_,{path:"tools/find-your-legislator",element:e.jsx(n.Suspense,{fallback:e.jsx(wi,{}),children:e.jsx(Hi,{})})}),e.jsx(_,{path:"votes/:stateCode/:sessionCode/:billNumber/:voteId",element:e.jsx(n.Suspense,{fallback:e.jsx(Ns,{}),children:e.jsx(Fi,{})})}),e.jsx(_,{path:"vote/:voteId",element:e.jsx(n.Suspense,{fallback:e.jsx(Ns,{}),children:e.jsx(Wi,{})})}),e.jsx(_,{path:"vote-comparison",element:e.jsx(n.Suspense,{fallback:e.jsx(ji,{}),children:e.jsx(qi,{})})}),e.jsx(_,{path:"data-sources",element:e.jsx(n.Suspense,{fallback:e.jsx(xe,{}),children:e.jsx(Ri,{})})}),e.jsx(_,{path:"privacy",element:e.jsx(n.Suspense,{fallback:e.jsx(xe,{}),children:e.jsx(Oi,{})})}),e.jsx(_,{path:"terms",element:e.jsx(n.Suspense,{fallback:e.jsx(xe,{}),children:e.jsx(Pi,{})})}),e.jsx(_,{path:"about",element:e.jsx(n.Suspense,{fallback:e.jsx(xe,{}),children:e.jsx(Di,{})})}),e.jsx(_,{path:"mission",element:e.jsx(n.Suspense,{fallback:e.jsx(xe,{}),children:e.jsx(Bi,{})})}),e.jsx(_,{path:"oauth/authorize",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(Ji,{})})}),e.jsx(_,{path:"admin/pipeline",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(Xi,{})})}),e.jsx(_,{path:"admin/schedules",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(Zi,{})})}),e.jsx(_,{path:"admin/bill-status",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(el,{})})}),e.jsx(_,{path:"admin/notifications",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(sl,{})})}),e.jsx(_,{path:"admin/reports",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(tl,{})})}),e.jsx(_,{path:"admin/committee-reports",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(al,{})})}),e.jsx(_,{path:"admin/vote-reports",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(rl,{})})}),e.jsx(_,{path:"admin/topeka-buzz",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(nl,{})})}),e.jsx(_,{path:"admin/calendars-report",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(il,{})})}),e.jsx(_,{path:"admin/data/legislator-import",element:e.jsx(n.Suspense,{fallback:e.jsx(H,{}),children:e.jsx(ll,{})})})]})})]})})})]})})})})})})})})}function dl({children:s}){return sr(),e.jsx(e.Fragment,{children:s})}function pe(s){typeof window>"u"||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"web_vitals",web_vital_name:s.name,web_vital_value:s.value,web_vital_delta:s.delta,web_vital_id:s.id,web_vital_rating:s.rating,web_vital_navigation_type:s.navigationType}))}async function ul(){if(typeof Array.prototype.at=="function")try{const{onCLS:s,onINP:t,onLCP:a,onFCP:i,onTTFB:l}=await w(async()=>{const{onCLS:c,onINP:u,onLCP:d,onFCP:o,onTTFB:m}=await import("./web-vitals-B4FMoA31.js");return{onCLS:c,onINP:u,onLCP:d,onFCP:o,onTTFB:m}},[]);s(pe),t(pe),a(pe),i(pe),l(pe)}catch{}}const Le=[],Wt=s=>{Le.push(s.error??s.message)},Jt=s=>{Le.push(s.reason)};window.addEventListener("error",Wt);window.addEventListener("unhandledrejection",Jt);Ta.createRoot(document.getElementById("root")).render(e.jsx(cl,{}));ul();const _s=()=>{w(()=>import("./vendor-sentry-DEGpid3j.js"),__vite__mapDeps([193,2])).then(s=>{s.init({dsn:"https://105de8fd29564952103fadd9d876b3b5@o4510824494858240.ingest.us.sentry.io/4510824602992640",sendDefaultPii:!0,beforeSend(t,a){var c,u,d,o,m,f,h,b;const i=a.originalException,l=typeof i=="string"?i:t.message;return l!=null&&l.includes("Object Not Found Matching Id")||(u=(c=t.exception)==null?void 0:c.values)!=null&&u.some(g=>{var x;return(x=g.value)==null?void 0:x.includes("Object Not Found Matching Id")})||l!=null&&l.includes("InvalidJWTToken")||(o=(d=t.exception)==null?void 0:d.values)!=null&&o.some(g=>{var x;return(x=g.value)==null?void 0:x.includes("InvalidJWTToken")})||(f=(m=t.exception)==null?void 0:m.values)!=null&&f.some(g=>{var x;return g.type==="AbortError"&&((x=g.value)==null?void 0:x.includes("signal is aborted"))})||(b=(h=t.exception)==null?void 0:h.values)!=null&&b.some(g=>{var x;return(x=g.value)==null?void 0:x.match(/feature named .* was not found
204/)})?null:t}}),window.removeEventListener("error",Wt),window.removeEventListener("unhandledrejection",Jt);for(const t of Le)s.captureException(t);Le.length=0})};typeof requestIdleCallback=="function"?requestIdleCallback(_s):setTimeout(_s,1);export{to as $,le as A,z as B,ze as C,dr as D,Y as E,J as F,oi as G,ci as H,Je as I,ot as J,li as K,r as L,_r as M,gr as N,ur as O,jr as P,V as Q,Lo as R,mt as S,Ir as T,Sr as U,no as V,be as W,xt as X,ro as Y,ct as Z,w as _,Nr as a,Io as a$,ht as a0,Ao as a1,ss as a2,ts as a3,as as a4,Ye as a5,yr as a6,Fe as a7,Ae as a8,ao as a9,Wl as aA,Qr as aB,Ql as aC,kr as aD,uo as aE,_l as aF,Nl as aG,Kn as aH,Qo as aI,Yt as aJ,Oo as aK,Po as aL,Fo as aM,qo as aN,po as aO,mo as aP,Ll as aQ,_o as aR,bo as aS,Ro as aT,fo as aU,Ko as aV,Go as aW,re as aX,ne as aY,W as aZ,es as a_,so as aa,Ht as ab,Eo as ac,lo as ad,tt as ae,Fl as af,Ml as ag,Al as ah,Rl as ai,$e as aj,Xe as ak,C as al,zl as am,vl as an,Bt as ao,gn as ap,rs as aq,ns as ar,is as as,Ut as at,Vt as au,Gl as av,Kl as aw,Hl as ax,oo as ay,co as az,Ia as b,Co as b0,No as b1,To as b2,Jo as b3,Wo as b4,Il as b5,Vl as b6,Ol as b7,vs as b8,$l as b9,wr as bA,en as bB,yl as bC,eo as bD,go as bE,jo as bF,ho as bG,Do as bH,Vo as bI,Uo as bJ,On as bK,So as bL,wo as bM,vo as bN,yo as bO,kl as bP,Sl as bQ,Tl as bR,Cl as bS,El as bT,io as bU,vt as bV,Ul as bW,Pl as bX,Bl as bY,Dl as bZ,ql as ba,he as bb,Yl as bc,Yo as bd,Xl as be,Zl as bf,Jl as bg,zr as bh,ie as bi,Bo as bj,xo as bk,zo as bl,Mo as bm,Jn as bn,Xn as bo,Zn as bp,ei as bq,ti as br,xs as bs,vr as bt,dt as bu,Jr as bv,$o as bw,Ke as bx,ko as by,Ho as bz,p as c,mr as d,hr as e,jl as f,wl as g,Ua as h,Ka as i,At as j,We as k,qt as l,k as m,an as n,P as o,xn as p,X as q,je as r,Ze as s,Z as t,Ft as u,Qt as v,Tt as w,Dt as x,K as y,Xo as z};
205//# sourceMappingURL=index-BNbaeP0K.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.