1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AdminDashboard-DRTwoK4u.js","assets/table-Br-uzwVA.js","assets/archive-DyY93ibG.js","assets/undo-2-DCuW8_00.js","assets/square-pen-DYQEIR0l.js","assets/arrow-up-down-D7F32jgQ.js","assets/arrow-up-C2yMnhHA.js","assets/rotate-ccw-DNXySu7B.js","assets/switch-DUkPOpLP.js","assets/popover-BOFhteCz.js","assets/save-BgSHN36S.js","assets/tabs-DGAvBb6E.js","assets/upload-BT12gFSl.js","assets/image-DVqlGyvi.js","assets/folder-open-DivQGqzM.js","assets/grip-vertical-CGNM6VMN.js","assets/form-D-xzwno4.js","assets/ticket-BMoNu-sR.js","assets/types-BmAflJw1.js","assets/skeleton-CytUjfKO.js","assets/shield-B37Jafy4.js","assets/shield-check-D7HpGEeJ.js","assets/browser-CjSdxGTc.js","assets/qr-code-BMU05muD.js","assets/download-D-QUB3Y_.js","assets/printer-BfkOQSEi.js","assets/alert-BpGk5-ml.js","assets/NotesManager-eqnzpTYB.js","assets/film-Dg7EI6Xu.js","assets/lock-DSxHp-ek.js","assets/eye-off-DT88Dd3V.js","assets/ObjectStorageManager-CZ9tGivv.js","assets/circle-check-big-Tm_bNKhb.js","assets/file-text-BgBpfFOt.js","assets/copy-5gJh_YQI.js","assets/folder-Ds83jPe5.js","assets/square-check-big-dFQe1w1I.js","assets/square-CO0vNSef.js","assets/file-Cpp1pey_.js","assets/info-CnUNYfnX.js","assets/ModuleDocumentation-BBM7zgo9.js","assets/building-DcCLO8ci.js","assets/filter-lFr9rgfD.js","assets/hard-drive-8MKAmveT.js","assets/circle-help-D5kU9qm3.js","assets/monitor-CN87J7ey.js","assets/external-link-cnWKgyDk.js","assets/file-spreadsheet-DfHvdH7h.js","assets/database-CbsHXyuH.js","assets/chevrons-up-down-BP1Vxw_v.js","assets/AdminHub-BDlzcooj.js","assets/dropdown-menu-BG9ytj-i.js","assets/arrow-right-q8WDM_DR.js","assets/bell-Cly2HTdb.js","assets/lightbulb-u3gqFAXa.js","assets/building-2-D6YIm3bs.js","assets/clock-BHlwe1eO.js","assets/graduation-cap-Dim77d2e.js","assets/wrench-DmI5MxeC.js","assets/factory-CEI-xQ_5.js","assets/clipboard-check-D2gtEcw8.js","assets/headphones-CgCpydge.js","assets/scale-peM39fbo.js","assets/clipboard-list-Dq5GY23s.js","assets/calculator-DIQCeJuK.js","assets/DatabaseSync-DQC6TVri.js","assets/collapsible-CUwLztCf.js","assets/index-ONlxBG-K.js","assets/workflow-BueQox17.js","assets/file-warning-CWPGG-uF.js","assets/music-DD7_d5bX.js","assets/ModuleDirectory-D-ZsWx-q.js","assets/AccessControl-DWB3kuxC.js","assets/pen-CuadDj-G.js","assets/user-cog-B8galQyB.js","assets/key-CkbKzsog.js","assets/ModuleManagement-DaRwRTI1.js","assets/utensils-B3N7fJHj.js","assets/file-up-Tezz18VC.js","assets/warehouse-BC_ljaUU.js","assets/award-CSYnh8pd.js","assets/ban-BQJ5Cot6.js","assets/list-filter-BqxsIoYB.js","assets/tv-Bg3Rozur.js","assets/bot-B4UP-7eg.js","assets/cog-BRjMKZzZ.js","assets/sprout-7fo1kprW.js","assets/thermometer-BsQuczHn.js","assets/user-round-HINNYPqY.js","assets/camera-BmPt3_Eh.js","assets/chart-column-CytgqEKP.js","assets/circle-dot-DhASYOOM.js","assets/circle-play-BG2A0Hsh.js","assets/wand-sparkles-H-j4SCXw.js","assets/circle-user-BFFFubKU.js","assets/clipboard-DQ5O5nwY.js","assets/sun-c4BJcbeR.js","assets/code-9iStBiN4.js","assets/construction-C1v0Lt1A.js","assets/credit-card-CX2kXvi_.js","assets/ellipsis-vertical-PBpXGMLA.js","assets/twitter-ObBtPvOo.js","assets/file-image-CjYYsWD8.js","assets/user-minus-CRpuZHrW.js","assets/mail-x-Bb6TLxon.js","assets/file-down-o4ryvLVD.js","assets/gauge-DibAC1dh.js","assets/plug-DIXOsP7h.js","assets/glass-water-CjCqMEeU.js","assets/globe-BeNoEp62.js","assets/landmark-CSQy1g91.js","assets/grid-3x3-uYDlbq2O.js","assets/heading-2-BQXKeIKu.js","assets/smile-CwhWRdhA.js","assets/images-B_M2cmNe.js","assets/key-round-CizT-qTN.js","assets/layers-B7XAEmpe.js","assets/layout-dashboard-4gJFSGRp.js","assets/leaf-xCKLKzEq.js","assets/link-2-Dy6jIQ4y.js","assets/link-Bxa6y1wm.js","assets/list-checks-Lmn4eOwM.js","assets/list-bcwf4a0M.js","assets/log-in-Q6mtBUyK.js","assets/message-square-off-eaPvZbiG.js","assets/map-QBgdTcrL.js","assets/minimize-2-C93iOANJ.js","assets/megaphone-DddxX5gB.js","assets/message-square-B8Z7FTIH.js","assets/mic-D_1tZOD2.js","assets/moon-DOC75QlB.js","assets/paperclip-CYddCVSe.js","assets/pause-C8riQLo5.js","assets/pencil-C0OXxJ_w.js","assets/percent-BqRk4fKS.js","assets/phone-CZ9u2qu_.js","assets/play-D8clGXcP.js","assets/receipt-B0kydJVq.js","assets/rocket-LZk9WsVm.js","assets/scan-barcode-Dom9l4hs.js","assets/scissors-CmdANTK9.js","assets/send-DuajP-GK.js","assets/share-2-gY5jMdiV.js","assets/shopping-bag-CzkRVZ-L.js","assets/snowflake-Bb1SDgy8.js","assets/store-Ba9I9XgU.js","assets/sunrise-B93k_hj1.js","assets/sunset-B2Yl68a-.js","assets/table-2-cJ4WmKnB.js","assets/target-BHEBY0Wd.js","assets/thumbs-up-DZRI05ge.js","assets/timer-mkevvXOv.js","assets/trending-down-CTGfhGAA.js","assets/truck-DTbV-bj7.js","assets/type-y2Cg8sNr.js","assets/user-x-YoFG6Y4F.js","assets/utensils-crossed-BVAAAS4s.js","assets/volume-2-C0USPYbF.js","assets/zap-DBEwOQP3.js","assets/ComingSoon-B9RDB8J0.js","assets/ResetPassword-fQjVV0Zs.js","assets/FutureConcepts-C0O1f5LK.js","assets/EnhancementRequests-BnFloDxX.js","assets/CompanyInfo-BzsD9-PO.js","assets/MeetingNotes-CrufsTBU.js","assets/UnsubscribePage-CNEhUZUQ.js","assets/LmsAdminDashboard-Cta3XLlx.js","assets/progress-iDyINwj0.js","assets/LmsLearnerPortal-C_RotwXd.js","assets/ExternalTrainingPage-BvOmptQM.js","assets/format-Dvax21W1.js","assets/TrainingPortal-CWheKSQW.js","assets/ComplianceAdminDashboard-CAo7ob0_.js","assets/isPast-qvTP0QwY.js","assets/isWithinInterval-BY72R8LW.js","assets/addDays-mZetPhvN.js","assets/formatDistanceToNow-JFohnt7d.js","assets/constructNow-Cag914m3.js","assets/differenceInCalendarMonths-D7oNCLih.js","assets/endOfMonth-ChOZM375.js","assets/ComplianceComplete-DExaTGUD.js","assets/DepartmentCalendarDashboard-CrDJAWjr.js","assets/DailyReportsAdminDashboard-BxwTegzp.js","assets/accordion-BvVHCqL-.js","assets/ToastVoidsDiscountsPanel-CS8YCKtd.js","assets/PublicDailyReportForm--_sUOZBD.js","assets/StaffReportingDashboard-BzaeM7V8.js","assets/ProceduresAdminDashboard-BKBlS5yW.js","assets/ProcedureTemplateEditor-Cim3g8Re.js","assets/Accounting-C9NP22ex.js","assets/ProceduresUsers-B2xG854f.js","assets/ProceduresSubmissions-CpUn1pVx.js","assets/calendar-sfELvvLx.js","assets/isSameMonth-C1FZBcng.js","assets/subDays-B7uqIFCS.js","assets/endOfWeek-C7R0Ee0j.js","assets/PublicProceduresForm-B8EiwGyP.js","assets/StaffProceduresForm-DNfwWtzo.js","assets/StaffPortal-OdIAKLnG.js","assets/StaffWorkOrderForm-BD2Iii95.js","assets/MaintenanceDashboard-fU25fl9l.js","assets/TechnicianWorkOrders-wHWQPLy4.js","assets/ContractsDashboard-BD6Gji3h.js","assets/SpotInventoryAdminDashboard-B8TBrqXr.js","assets/xlsx-B6sNpj_1.js","assets/SpotInventoryStaffApp-DJAzlDon.js","assets/StaffDashboard-DhpA-gY1.js","assets/StaffManagementLayout-DwiwypU6.js","assets/StaffSegmentCardGrid-m-Zhb9ZM.js","assets/StaffDashboardAdmin-B1ZqD6Ae.js","assets/StaffManagementSegmentPage-CxUor0Rr.js","assets/StaffDirectoryPage-B-VmQPE4.js","assets/SupportAdminDashboard-C47CoXUT.js","assets/Support
1KnowledgeBase-DQ2ARyA1.js","assets/SupportAnalytics-CFoQICsV.js","assets/SocialReviews-B3rRTY9N.js","assets/SupportWidget-DMyzY0nx.js","assets/SupportContactForm-DI1A1IDe.js","assets/FAQPage-zr8z6WW-.js","assets/FAQWidgetPage-A9EmRDhn.js","assets/SupportAgentsPage-B5wBZQPB.js","assets/SupportAgentTicketPage-bEM2c_fh.js","assets/SupportCategoriesPage-Dtdq9vsp.js","assets/RccDashboard-LRfoy8hO.js","assets/parseISO-B11zC6dH.js","assets/BoomerangDashboard-D143ECDp.js","assets/CommandCenter-COM9LwBh.js","assets/ToastMenuBrowser-CufJJ5-N.js","assets/ToastSyncDialog-JzPa6FMh.js","assets/ToastConnect-B9jA3DPx.js","assets/CellarTraks-BuXj9EN8.js","assets/NashobatvDisplay-DMaJhwBs.js","assets/SpecialEventsPublic-BxCl0Ig9.js","assets/calendarPublicDescription-DahFvCbs.js","assets/MediaCenter-BHoHfpJe.js","assets/MediaLibraryPage-JtjSX8kL.js","assets/MusicCalendar-BANDKC6V.js","assets/FoodTruckCalendar-6OQJ_CmS.js","assets/landing-DIkX95aD.js","assets/reservationLink-byin_0o3.js","assets/location-landing-CxWVlBFC.js","assets/booking-BMflT0nK.js","assets/cart-DLWBg_wf.js","assets/confirmation-Dyhtsyyt.js","assets/confirm-Bce6JTCo.js","assets/admin-home-CLlDMkWj.js","assets/admin-calendar-vHcjIXw9.js","assets/admin-experiences-BmWgtbnS.js","assets/authUtils-CcDzk6i0.js","assets/schema-CEA6AeVK.js","assets/ResyObjectUploader-D_UB-BW0.js","assets/admin-reservations-DwvhtHFC.js","assets/floor-plan-CotQcplH.js","assets/admin-locations-DWudJtzg.js","assets/admin-location-detail-2Vw6DsVC.js","assets/admin-customers-BIM3jmbp.js","assets/admin-customer-detail-Cza0dQR9.js","assets/admin-clubs-DnwncNtD.js","assets/admin-special-dates-DxCtDTTn.js","assets/admin-holidays-bV6ffle2.js","assets/admin-private-events-Bi1vFir3.js","assets/admin-event-registration-DIJ2dErD.js","assets/EventRegistrationPortal-DQOhYCWH.js","assets/EventCalendar-DxHH9XW1.js","assets/admin-flow-settings-C6sXafgx.js","assets/admin-settings-CTBNzaPK.js","assets/admin-documentation-C4fDaXLo.js","assets/PricingPage-C-fjJcht.js","assets/useB2bProducts-BK0ZAAOM.js","assets/PricingSheetPage-D33JbVqF.js","assets/RegistrationPage-BcoMIbXt.js","assets/nvw-logo-CPz3E6Qk.js","assets/ApplicationThankYouPage-CqYVtfdq.js","assets/LoginPage-5k_e05gV.js","assets/ForgotPasswordPage-Dmxyt7PX.js","assets/ResetPasswordPage-DlFTcuy5.js","assets/SetupPage-jApAtANn.js","assets/CatalogPage-B7IlMX4k.js","assets/CartPage-Bd2ruzTZ.js","assets/CheckoutPage-SQLIo_i6.js","assets/useB2bOrders-6KnEzfJ6.js","assets/OrdersPage-KUXTZ8uF.js","assets/ReorderPage-CN1qVjSI.js","assets/AdminDashboard-DQjNkuPk.js","assets/WhereToBuyPage-BkEyOPs0.js","assets/SalesRepDashboard-DU6o0LUc.js","assets/CustomerRequestsPage-CdrEtz21.js","assets/CustomerRequestsAdminPage-DmDO1_2U.js","assets/CustomerDataPage--aKF-cTo.js","assets/TierAgreementPage-CCR2HmK0.js","assets/ViewSignedAgreementPage-CQjfJNvK.js","assets/OrderDeliveryDatePage-BrBgoVtx.js","assets/OrderApprovalPage-B_THj7A0.js","assets/OrderDeliveryConfirmPage-CRD4sqSt.js"])))=>i.map(i=>d[i]); 2var $g=e=>{throw TypeError(e)};var zu=(e,t,n)=>t.has(e)||$g("Cannot "+n);var C=(e,t,n)=>(zu(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?$g("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(zu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),le=(e,t,n)=>(zu(e,t,"access private method"),n);var rl=(e,t,n,r)=>({set _(s){B(e,t,s,n)},get _(){return C(e,t,r)}});function KP(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var g8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
vendor: 5,062 bytes, lines 2-10
2function O0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v8(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var M0={exports:{}},Uc={},L0={exports:{}},fe={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var La=Symbol.for("react.element"),qP=Symbol.for("react.portal"),GP=Symbol.for("react.fragment"),QP=Symbol.for("react.strict_mode"),YP=Symbol.for("react.profiler"),XP=Symbol.for("react.provider"),ZP=Symbol.for("react.context"),JP=Symbol.for("react.forward_ref"),eT=Symbol.for("react.suspense"),tT=Symbol.for("react.memo"),nT=Symbol.for("react.lazy"),Bg=Symbol.iterator;function rT(e){return e===null||typeof e!="object"?null:(e=Bg&&e[Bg]||e["@@iterator"],typeof e=="function"?e:null)}var I0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F0=Object.assign,V0={};function pi(e,t,n){this.props=e,this.context=t,this.refs=V0,this.updater=n||I0}pi.prototype.isReactComponent={};pi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z0(){}z0.prototype=pi.prototype;function $h(e,t,n){this.props=e,this.context=t,this.refs=V0,this.updater=n||I0}var Bh=$h.prototype=new z0;Bh.constructor=$h;F0(Bh,pi.prototype);Bh.isPureReactComponent=!0;var Ug=Array.isArray,$0=Object.prototype.hasOwnProperty,Uh={current:null},B0={key:!0,ref:!0,__self:!0,__source:!0};function U0(e,t,n){var r,s={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)$0.call(t,r)&&!B0.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:La,type:e,key:i,ref:a,props:s,_owner:Uh.current}}function sT(e,t){return{$$typeof:La,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Wh(e){return typeof e=="object"&&e!==null&&e.$$typeof===La}function oT(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wg=/\/+/g;function $u(e,t){return typeof e=="object"&&e!==null&&e.key!=null?oT(""+e.key):t.toString(36)}function Dl(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case La:case qP:a=!0}}if(a)return a=e,s=s(a),e=r===""?"."+$u(a,0):r,Ug(s)?(n="",e!=null&&(n=e.replace(Wg,"$&/")+"/"),Dl(s,t,n,"",function(u){return u})):s!=null&&(Wh(s)&&(s=sT(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(Wg,"$&/")+"/")+e)),t.push(s)),1;if(a=0,r=r===""?".":r+":",Ug(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+$u(i,l);a+=Dl(i,t,n,c,s)}else if(c=rT(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+$u(i,l++),a+=Dl(i,t,n,c,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function sl(e,t,n){if(e==null)return e;var r=[],s=0;return Dl(e,r,"","",function(i){return t.call(n,i,s++)}),r}function iT(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jt={current:null},Ol={transition:null},aT={ReactCurrentDispatcher:jt,ReactCurrentBatchConfig:Ol,ReactCurrentOwner:Uh};function W0(){throw Error("act(...) is not supported in production builds of React.")}fe.Children={map:sl,forEach:function(e,t,n){sl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return sl(e,function(){t++}),t},toArray:function(e){return sl(e,function(t){return t})||[]},only:function(e){if(!Wh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=pi;fe.Fragment=GP;fe.Profiler=YP;fe.PureComponent=$h;fe.StrictMode=QP;fe.Suspense=eT;
vendor: 4,844 bytes, lines 10-26
10fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aT;fe.act=W0;fe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=F0({},e.props),s=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Uh.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)$0.call(t,c)&&!B0.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:La,type:e.type,key:s,ref:i,props:r,_owner:a}};fe.createContext=function(e){return e={$$typeof:ZP,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:XP,_context:e},e.Consumer=e};fe.createElement=U0;fe.createFactory=function(e){var t=U0.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:JP,render:e}};fe.isValidElement=Wh;fe.lazy=function(e){return{$$typeof:nT,_payload:{_status:-1,_result:e},_init:iT}};fe.memo=function(e,t){return{$$typeof:tT,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Ol.transition;Ol.transition={};try{e()}finally{Ol.transition=t}};fe.unstable_act=W0;fe.useCallback=function(e,t){return jt.current.useCallback(e,t)};fe.useContext=function(e){return jt.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return jt.current.useDeferredValue(e)};fe.useEffect=function(e,t){return jt.current.useEffect(e,t)};fe.useId=function(){return jt.current.useId()};fe.useImperativeHandle=function(e,t,n){return jt.current.useImperativeHandle(e,t,n)};fe.useInsertionEffect=function(e,t){return jt.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return jt.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return jt.current.useMemo(e,t)};fe.useReducer=function(e,t,n){return jt.current.useReducer(e,t,n)};fe.useRef=function(e){return jt.current.useRef(e)};fe.useState=function(e){return jt.current.useState(e)};fe.useSyncExternalStore=function(e,t,n){return jt.current.useSyncExternalStore(e,t,n)};fe.useTransition=function(){return jt.current.useTransition()};fe.version="18.3.1";L0.exports=fe;var d=L0.exports;const Pr=O0(d),H0=KP({__proto__:null,default:Pr},[d]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var lT=d,cT=Symbol.for("react.element"),uT=Symbol.for("react.fragment"),dT=Object.prototype.hasOwnProperty,fT=lT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hT={key:!0,ref:!0,__self:!0,__source:!0};function K0(e,t,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)dT.call(t,r)&&!hT.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:cT,type:e,key:i,ref:a,props:s,_owner:fT.current}}Uc.Fragment=uT;Uc.jsx=K0;Uc.jsxs=K0;M0.exports=Uc;var o=M0.exports,q0={exports:{}},Wt={},G0={exports:{}},Q0={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(D,F){var $=D.length;D.push(F);e:for(;0<$;){var ee=$-1>>>1,pe=D[ee];if(0<s(pe,F))D[ee]=F,D[$]=pe,$=ee;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var F=D[0],$=D.pop();if($!==F){D[0]=$;e:for(var ee=0,pe=D.length,Ae=pe>>>1;ee<Ae;){var Ce=2*(ee+1)-1,Ye=D[Ce],Le=Ce+1,Y=D[Le];if(0>s(Ye,$))Le<pe&&0>s(Y,Ye)?(D[ee]=Y,D[Le]=$,ee=Le):(D[ee]=Ye,D[Ce]=$,ee=Ce);else if(Le<pe&&0>s(Y,$))D[ee]=Y,D[Le]=$,ee=Le;else break e}}return F}function s(D,F){var $=D.sortIndex-F.sortIndex;return $!==0?$:D.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],f=1,h=null,p=3,m=!1,x=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(D){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=D)r(u),F.sortIndex=F.expirationTime,t(c,F);else break;F=n(u)}}
vendor: 8,500 bytes, lines 26-34
26function j(D){if(g=!1,w(D),!x)if(n(c)!==null)x=!0,z(S);else{var F=n(u);F!==null&&W(j,F.startTime-D)}}function S(D,F){x=!1,g&&(g=!1,v(E),E=-1),m=!0;var $=p;try{for(w(F),h=n(c);h!==null&&(!(h.expirationTime>F)||D&&!O());){var ee=h.callback;if(typeof ee=="function"){h.callback=null,p=h.priorityLevel;var pe=ee(h.expirationTime<=F);F=e.unstable_now(),typeof pe=="function"?h.callback=pe:h===n(c)&&r(c),w(F)}else r(c);h=n(c)}if(h!==null)var Ae=!0;else{var Ce=n(u);Ce!==null&&W(j,Ce.startTime-F),Ae=!1}return Ae}finally{h=null,p=$,m=!1}}var P=!1,N=null,E=-1,_=5,T=-1;function O(){return!(e.unstable_now()-T<_)}function L(){if(N!==null){var D=e.unstable_now();T=D;var F=!0;try{F=N(!0,D)}finally{F?G():(P=!1,N=null)}}else P=!1}var G;if(typeof y=="function")G=function(){y(L)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,J=V.port2;V.port1.onmessage=L,G=function(){J.postMessage(null)}}else G=function(){b(L,0)};function z(D){N=D,P||(P=!0,G())}function W(D,F){E=b(function(){D(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){x||m||(x=!0,z(S))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var $=p;p=F;try{return D()}finally{p=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,F){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var $=p;p=D;try{return F()}finally{p=$}},e.unstable_scheduleCallback=function(D,F,$){var ee=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ee+$:ee):$=ee,D){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=$+pe,D={id:f++,callback:F,priorityLevel:D,startTime:$,expirationTime:pe,sortIndex:-1},$>ee?(D.sortIndex=$,t(u,D),n(c)===null&&D===n(u)&&(g?(v(E),E=-1):g=!0,W(j,$-ee))):(D.sortIndex=pe,t(c,D),x||m||(x=!0,z(S))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var F=p;return function(){var $=p;p=F;try{return D.apply(this,arguments)}finally{p=$}}}})(Q0);G0.exports=Q0;var pT=G0.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var mT=d,Bt=pT;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Y0=new Set,aa={};function Ys(e,t){Jo(e,t),Jo(e+"Capture",t)}function Jo(e,t){for(aa[e]=t,e=0;e<t.length;e++)Y0.add(t[e])}var ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yd=Object.prototype.hasOwnProperty,gT=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Hg={},Kg={};function vT(e){return Yd.call(Kg,e)?!0:Yd.call(Hg,e)?!1:gT.test(e)?Kg[e]=!0:(Hg[e]=!0,!1)}function yT(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xT(e,t,n,r){if(t===null||typeof t>"u"||yT(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function St(e,t,n,r,s,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new St(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new St(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new St(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new St(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new St(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new St(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new St(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new St(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new St(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hh=/[\-:]([a-z])/g;function Kh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hh,Kh);ot[t]=new St(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hh,Kh);ot[t]=new St(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hh,Kh);ot[t]=new St(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new St(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new St("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new St(e,1,!1,e.toLowerCase(),null,!0,!0)});function qh(e,t,n,r){var s=ot.hasOwnProperty(t)?ot[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xT(t,n,s,r)&&(n=null),r||s===null?vT(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var gr=mT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ol=Symbol.for("react.element"),uo=Symbol.for("react.portal"),fo=Symbol.for("react.fragment"),Gh=Symbol.for("react.strict_mode"),Xd=Symbol.for("react.profiler"),X0=Symbol.for("react.provider"),Z0=Symbol.for("react.context"),Q
vendor: 18,036 bytes, lines 34-38
34h=Symbol.for("react.forward_ref"),Zd=Symbol.for("react.suspense"),Jd=Symbol.for("react.suspense_list"),Yh=Symbol.for("react.memo"),Ar=Symbol.for("react.lazy"),J0=Symbol.for("react.offscreen"),qg=Symbol.iterator;function ki(e){return e===null||typeof e!="object"?null:(e=qg&&e[qg]||e["@@iterator"],typeof e=="function"?e:null)}var Me=Object.assign,Bu;function zi(e){if(Bu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bu=t&&t[1]||""}return` 35`+Bu+e}var Uu=!1;function Wu(e,t){if(!e||Uu)return"";Uu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 36`),i=r.stack.split(` 37`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var c=` 38`+s[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{Uu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zi(e):""}function wT(e){switch(e.tag){case 5:return zi(e.type);case 16:return zi("Lazy");case 13:return zi("Suspense");case 19:return zi("SuspenseList");case 0:case 2:case 15:return e=Wu(e.type,!1),e;case 11:return e=Wu(e.type.render,!1),e;case 1:return e=Wu(e.type,!0),e;default:return""}}function ef(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fo:return"Fragment";case uo:return"Portal";case Xd:return"Profiler";case Gh:return"StrictMode";case Zd:return"Suspense";case Jd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z0:return(e.displayName||"Context")+".Consumer";case X0:return(e._context.displayName||"Context")+".Provider";case Qh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yh:return t=e.displayName||null,t!==null?t:ef(e.type)||"Memo";case Ar:t=e._payload,e=e._init;try{return ef(e(t))}catch{}}return null}function bT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ef(t);case 8:return t===Gh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function os(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ew(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jT(e){var t=ew(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function il(e){e._valueTracker||(e._valueTracker=jT(e))}function tw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ew(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tf(e,t){var n=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=os(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nw(e,t){t=t.checked,t!=null&&qh(e,"checked",t,!1)}function nf(e,t){nw(e,t);var n=os(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rf(e,t.type,n):t.hasOwnProperty("defaultValue")&&rf(e,t.type,os(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rf(e,t,n){(t!=="number"||nc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $i=Array.isArray;function To(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+os(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function sf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Me({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if($i(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:os(n)}}function rw(e,t){var n=os(t.value),r=os(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function sw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function of(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var al,ow=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(al=al||document.createElement("div"),al.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=al.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function la(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ST=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){ST.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function iw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function aw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=iw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var CT=Me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function af(e,t){if(t){if(CT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function lf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cf=null;function Xh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uf=null,ko=null,Ro=null;function Zg(e){if(e=Va(e)){if(typeof uf!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Gc(t),uf(e.stateNode,e.type,t))}}function lw(e){ko?Ro?Ro.push(e):Ro=[e]:ko=e}function cw(){if(ko){var e=ko,t=Ro;if(Ro=ko=null,Zg(e),t)for(e=0;e<t.length;e++)Zg(t[e])}}function uw(e,t){return e(t)}function dw(){}var Hu=!1;function fw(e,t,n){if(Hu)return e(t,n);Hu=!0;try{return uw(e,t,n)}finally{Hu=!1,(ko!==null||Ro!==null)&&(dw(),cw())}}function ca(e,t){var n=e.stateNode;if(n===null)return null;var r=Gc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var df=!1;if(ar)try{var Ri={};Object.defineProperty(Ri,"passive",{get:function(){df=!0}}),window.addEventListener("test",Ri,Ri),window.removeEventListener("test",Ri,Ri)}catch{df=!1}function ET(e,t,n,r,s,i,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Qi=!1,rc=null,sc=!1,ff=null,NT={onError:function(e){Qi=!0,rc=e}};function PT(e,t,n,r,s,i,a,l,c){Qi=!1,rc=null,ET.apply(NT,arguments)}function TT(e,t,n,r,s,i,a,l,c){if(PT.apply(this,arguments),Qi){if(Qi){var u=rc;Qi=!1,rc=null}else throw Error(I(198));sc||(sc=!0,ff=u)}}function Xs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function hw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jg(e){if(Xs(e)!==e)throw Error(I(188))}function kT(e){var t=e.alternate;if(!t){if(t=Xs(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Jg(s),e;if(i===r)return Jg(s),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function pw(e){return e=kT(e),e!==null?mw(e):null}function mw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mw(e);if(t!==null)return t;e=e.sibling}return null}var gw=Bt.unstable_scheduleCallback,ev=Bt.unstable_cancelCallback,RT=Bt.unstable_shouldYield,AT=Bt.unstable_requestPaint,Be=Bt.unstable_now,_T=Bt.unstable_getCurrentPriorityLevel,Zh=Bt.unstable_ImmediatePriority,vw=Bt.unstable_UserBlockingPriority,oc=Bt.unstable_NormalPriority,DT=Bt.unstable_LowPriority,yw=Bt.unstable_IdlePriority,Wc=null,Vn=null;function OT(e){if(Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(Wc,e,void 0,(e.current.flags&128)===128)}catch{}}var bn=Math.clz32?Math.clz32:IT,MT=Math.log,LT=Math.LN2;function IT(e){return e>>>=0,e===0?32:31-(MT(e)/LT|0)|0}var ll=64,cl=4194304;function Bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ic(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?r=Bi(l):(i&=a,i!==0&&(r=Bi(i)))}else a=n&~s,a!==0?r=Bi(a):i!==0&&(r=Bi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-bn(t),s=1<<n,r|=e[n],t&=~s;return r}function FT(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function VT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-bn(i),l=1<<a,c=s[a];c===-1?(!(l&n)||l&r)&&(s[a]=FT(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function hf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xw(){var e=ll;return ll<<=1,!(ll&4194240)&&(ll=64),e}function Ku(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ia(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bn(t),e[t]=n}function zT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-bn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Jh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var je=0;function ww(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bw,ep,jw,Sw,Cw,pf=!1,ul=[],Kr=null,qr=null,Gr=null,ua=new Map,da=new Map,Dr=[],$T="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tv(e,t){switch(e){case"focusin":case"focusout":Kr=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":ua.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":da.delete(t.pointerId)}}function Ai(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Va(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function BT(e,t,n,r,s){switch(t){case"focusin":return Kr=Ai(Kr,e,t,n,r,s),!0;case"dragenter":return qr=Ai(qr,e,t,n,r,s),!0;case"mouseover":return Gr=Ai(Gr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return ua.set(i,Ai(ua.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,da.set(i,Ai(da.get(i)||null,e,t,n,r,s)),!0}return!1}function Ew(e){var t=Es(e.target);if(t!==null){var n=Xs(t);if(n!==null){if(t=n.tag,t===13){if(t=hw(n),t!==null){e.blockedOn=t,Cw(e.priority,function(){jw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ml(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cf=r,n.target.dispatchEvent(r),cf=null}else return t=Va(n),t!==null&&ep(t),e.blockedOn=n,!1;t.shift()}return!0}function nv(e,t,n){Ml(e)&&n.delete(t)}function UT(){pf=!1,Kr!==null&&Ml(Kr)&&(Kr=null),qr!==null&&Ml(qr)&&(qr=null),Gr!==null&&Ml(Gr)&&(Gr=null),ua.forEach(nv),da.forEach(nv)}function _i(e,t){e.blockedOn===t&&(e.blockedOn=null,pf||(pf=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,UT)))}function fa(e){function t(s){return _i(s,e)}if(0<ul.length){_i(ul[0],e);for(var n=1;n<ul.length;n++){var r=ul[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Kr!==null&&_i(Kr,e),qr!==null&&_i(qr,e),Gr!==null&&_i(Gr,e),ua.forEach(t),da.forEac
vendor: 11,458 bytes, line 38
38h(t),n=0;n<Dr.length;n++)r=Dr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Dr.length&&(n=Dr[0],n.blockedOn===null);)Ew(n),n.blockedOn===null&&Dr.shift()}var Ao=gr.ReactCurrentBatchConfig,ac=!0;function WT(e,t,n,r){var s=je,i=Ao.transition;Ao.transition=null;try{je=1,tp(e,t,n,r)}finally{je=s,Ao.transition=i}}function HT(e,t,n,r){var s=je,i=Ao.transition;Ao.transition=null;try{je=4,tp(e,t,n,r)}finally{je=s,Ao.transition=i}}function tp(e,t,n,r){if(ac){var s=mf(e,t,n,r);if(s===null)nd(e,t,r,lc,n),tv(e,r);else if(BT(s,e,t,n,r))r.stopPropagation();else if(tv(e,r),t&4&&-1<$T.indexOf(e)){for(;s!==null;){var i=Va(s);if(i!==null&&bw(i),i=mf(e,t,n,r),i===null&&nd(e,t,r,lc,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else nd(e,t,r,null,n)}}var lc=null;function mf(e,t,n,r){if(lc=null,e=Xh(r),e=Es(e),e!==null)if(t=Xs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=hw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return lc=e,null}function Nw(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_T()){case Zh:return 1;case vw:return 4;case oc:case DT:return 16;case yw:return 536870912;default:return 16}default:return 16}}var Wr=null,np=null,Ll=null;function Pw(){if(Ll)return Ll;var e,t=np,n=t.length,r,s="value"in Wr?Wr.value:Wr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===s[i-r];r++);return Ll=s.slice(e,1<r?1-r:void 0)}function Il(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function dl(){return!0}function rv(){return!1}function Ht(e){function t(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?dl:rv,this.isPropagationStopped=rv,this}return Me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=dl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),t}var mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rp=Ht(mi),Fa=Me({},mi,{view:0,detail:0}),KT=Ht(Fa),qu,Gu,Di,Hc=Me({},Fa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Di&&(Di&&e.type==="mousemove"?(qu=e.screenX-Di.screenX,Gu=e.screenY-Di.screenY):Gu=qu=0,Di=e),qu)},movementY:function(e){return"movementY"in e?e.movementY:Gu}}),sv=Ht(Hc),qT=Me({},Hc,{dataTransfer:0}),GT=Ht(qT),QT=Me({},Fa,{relatedTarget:0}),Qu=Ht(QT),YT=Me({},mi,{animationName:0,elapsedTime:0,pseudoElement:0}),XT=Ht(YT),ZT=Me({},mi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),JT=Ht(ZT),ek=Me({},mi,{data:0}),ov=Ht(ek),tk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rk[e])?!!t[e]:!1}function sp(){return sk}var ok=Me({},Fa,{key:function(e){if(e.key){var t=tk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Il(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sp,charCode:function(e){return e.type==="keypress"?Il(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Il(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ik=Ht(ok),ak=Me({},Hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),iv=Ht(ak),lk=Me({},Fa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sp}),ck=Ht(lk),uk=Me({},mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),dk=Ht(uk),fk=Me({},Hc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),hk=Ht(fk),pk=[9,13,27,32],op=ar&&"CompositionEvent"in window,Yi=null;ar&&"documentMode"in document&&(Yi=document.documentMode);var mk=ar&&"TextEvent"in window&&!Yi,Tw=ar&&(!op||Yi&&8<Yi&&11>=Yi),av=" ",lv=!1;function kw(e,t){switch(e){case"keyup":return pk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ho=!1;function gk(e,t){switch(e){case"compositionend":return Rw(t);case"keypress":return t.which!==32?null:(lv=!0,av);case"textInput":return e=t.data,e===av&&lv?null:e;default:return null}}function vk(e,t){if(ho)return e==="compositionend"||!op&&kw(e,t)?(e=Pw(),Ll=np=Wr=null,ho=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tw&&t.locale!=="ko"?null:t.data;default:return null}}var yk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yk[e.type]:t==="textarea"}function Aw(e,t,n,r){lw(r),t=cc(t,"onChange"),0<t.length&&(n=new rp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xi=null,ha=null;function xk(e){Bw(e,0)}function Kc(e){var t=go(e);if(tw(t))return e}function wk(e,t){if(e==="change")return t}var _w=!1;if(ar){var Yu;if(ar){var Xu="oninput"in document;if(!Xu){var uv=document.createElement("div");uv.setAttribute("oninput","return;"),Xu=typeof uv.oninput=="function"}Yu=Xu}else Yu=!1;_w=Yu&&(!document.documentMode||9<document.documentMode)}function dv(){Xi&&(Xi.detachEvent("onpropertychange",Dw),ha=Xi=null)}function Dw(e){if(e.propertyName==="value"&&Kc(ha)){var t=[];Aw(t,ha,e,Xh(e)),fw(xk,t)}}function bk(e,t,n){e==="focusin"?(dv(),Xi=t,ha=n,Xi.attachEvent("onpropertychange",Dw)):e==="focusout"&&dv()}function jk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kc(ha)}function Sk(e,t){if(e==="click")return Kc(t)}function Ck(e,t){if(e==="input"||e==="change")return Kc(t)}function Ek(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Sn=typeof Object.is=="function"?Object.is:Ek;function pa(e,t){if(Sn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Yd.call(t,s)||!Sn(e[s],t[s]))return!1}return!0}function fv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hv(e,t){var n=fv(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fv(n)}}function Ow(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ow(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mw(){for(var e=window,t=nc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nc(e.document)}return t}function ip(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nk(e){var t=Mw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ow(n.ownerDocument.documentElement,n)){if(r!==null&&ip(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=hv(n,i);var a=hv(n,r);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pk=ar&&"documentMode"in document&&11>=document.documentMode,po=null,gf=null,Zi=null,vf=!1;function pv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vf||po==null||po!==nc(r)||(r=po,"selectionStart"in r&&ip(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,352 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),Zi&&pa(Zi,r)||(Zi=r,r=cc(gf,"onSelect"),0<r.length&&(t=new rp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=po)))}function fl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mo={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionend:fl("Transition","TransitionEnd")},Zu={},Lw={};ar&&(Lw=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function qc(e){if(Zu[e])return Zu[e];if(!mo[e])return e;var t=mo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lw)return Zu[e]=t[n];return e}var Iw=qc("animationend"),Fw=qc("animationiteration"),Vw=qc("animationstart"),zw=qc("transitionend"),$w=new Map,mv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ps(e,t){$w.set(e,t),Ys(t,[e])}for(var Ju=0;Ju<mv.length;Ju++){var ed=mv[Ju],Tk=ed.toLowerCase(),kk=ed[0].toUpperCase()+ed.slice(1);ps(Tk,"on"+kk)}ps(Iw,"onAnimationEnd");ps(Fw,"onAnimationIteration");ps(Vw,"onAnimationStart");ps("dblclick","onDoubleClick");ps("focusin","onFocus");ps("focusout","onBlur");ps(zw,"onTransitionEnd");Jo("onMouseEnter",["mouseout","mouseover"]);Jo("onMouseLeave",["mouseout","mouseover"]);Jo("onPointerEnter",["pointerout","pointerover"]);Jo("onPointerLeave",["pointerout","pointerover"]);Ys("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ys("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ys("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ys("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ys("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ys("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ui));function gv(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,TT(r,t,void 0,e),e.currentTarget=null}function Bw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;gv(s,l,u),i=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;gv(s,l,u),i=c}}}if(sc)throw e=ff,sc=!1,ff=null,e}function Te(e,t){var n=t[jf];n===void 0&&(n=t[jf]=new Set);var r=e+"__bubble";n.has(r)||(Uw(t,e,2,!1),n.add(r))}function td(e,t,n){var r=0;t&&(r|=4),Uw(n,e,r,t)}var hl="_reactListening"+Math.random().toString(36).slice(2);function ma(e){if(!e[hl]){e[hl]=!0,Y0.forEach(function(n){n!=="selectionchange"&&(Rk.has(n)||td(n,!1,e),td(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hl]||(t[hl]=!0,td("selectionchange",!1,t))}}function Uw(e,t,n,r){switch(Nw(t)){case 1:var s=WT;break;case 4:s=HT;break;default:s=tp}n=s.bind(null,t,n,e),s=void 0,!df||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 2,676 bytes, line 38
38function nd(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;a=a.return}for(;l!==null;){if(a=Es(l),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}l=l.parentNode}}r=r.return}fw(function(){var u=i,f=Xh(n),h=[];e:{var p=$w.get(e);if(p!==void 0){var m=rp,x=e;switch(e){case"keypress":if(Il(n)===0)break e;case"keydown":case"keyup":m=ik;break;case"focusin":x="focus",m=Qu;break;case"focusout":x="blur",m=Qu;break;case"beforeblur":case"afterblur":m=Qu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=sv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=GT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ck;break;case Iw:case Fw:case Vw:m=XT;break;case zw:m=dk;break;case"scroll":m=KT;break;case"wheel":m=hk;break;case"copy":case"cut":case"paste":m=JT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=iv}var g=(t&4)!==0,b=!g&&e==="scroll",v=g?p!==null?p+"Capture":null:p;g=[];for(var y=u,w;y!==null;){w=y;var j=w.stateNode;if(w.tag===5&&j!==null&&(w=j,v!==null&&(j=ca(y,v),j!=null&&g.push(ga(y,j,w)))),b)break;y=y.return}0<g.length&&(p=new m(p,x,null,n,f),h.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==cf&&(x=n.relatedTarget||n.fromElement)&&(Es(x)||x[lr]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(x=n.relatedTarget||n.toElement,m=u,x=x?Es(x):null,x!==null&&(b=Xs(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=u),m!==x)){if(g=sv,j="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=iv,j="onPointerLeave",v="onPointerEnter",y="pointer"),b=m==null?p:go(m),w=x==null?p:go(x),p=new g(j,y+"leave",m,n,f),p.target=b,p.relatedTarget=w,j=null,Es(f)===u&&(g=new g(v,y+"enter",x,n,f),g.target=w,g.relatedTarget=b,j=g),b=j,m&&x)t:{for(g=m,v=x,y=0,w=g;w;w=io(w))y++;for(w=0,j=v;j;j=io(j))w++;for(;0<y-w;)g=io(g),y--;for(;0<w-y;)v=io(v),w--;for(;y--;){if(g===v||v!==null&&g===v.alternate)break t;g=io(g),v=io(v)}g=null}else g=null;m!==null&&vv(h,p,m,g,!1),x!==null&&b!==null&&vv(h,b,x,g,!0)}}
vendor: 7,582 bytes, lines 38-39
38e:{if(p=u?go(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var S=wk;else if(cv(p))if(_w)S=Ck;else{S=jk;var P=bk}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=Sk);if(S&&(S=S(e,u))){Aw(h,S,n,f);break e}P&&P(e,p,u),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&rf(p,"number",p.value)}switch(P=u?go(u):window,e){case"focusin":(cv(P)||P.contentEditable==="true")&&(po=P,gf=u,Zi=null);break;case"focusout":Zi=gf=po=null;break;case"mousedown":vf=!0;break;case"contextmenu":case"mouseup":case"dragend":vf=!1,pv(h,n,f);break;case"selectionchange":if(Pk)break;case"keydown":case"keyup":pv(h,n,f)}var N;if(op)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else ho?kw(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Tw&&n.locale!=="ko"&&(ho||E!=="onCompositionStart"?E==="onCompositionEnd"&&ho&&(N=Pw()):(Wr=f,np="value"in Wr?Wr.value:Wr.textContent,ho=!0)),P=cc(u,E),0<P.length&&(E=new ov(E,e,null,n,f),h.push({event:E,listeners:P}),N?E.data=N:(N=Rw(n),N!==null&&(E.data=N)))),(N=mk?gk(e,n):vk(e,n))&&(u=cc(u,"onBeforeInput"),0<u.length&&(f=new ov("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:u}),f.data=N))}Bw(h,t)})}function ga(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cc(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ca(e,n),i!=null&&r.unshift(ga(e,i,s)),i=ca(e,t),i!=null&&r.push(ga(e,i,s))),e=e.return}return r}function io(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vv(e,t,n,r,s){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,s?(c=ca(n,i),c!=null&&a.unshift(ga(n,c,l))):s||(c=ca(n,i),c!=null&&a.push(ga(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Ak=/\r\n?/g,_k=/\u0000|\uFFFD/g;function yv(e){return(typeof e=="string"?e:""+e).replace(Ak,` 39`).replace(_k,"")}function pl(e,t,n){if(t=yv(t),yv(e)!==t&&n)throw Error(I(425))}function uc(){}var yf=null,xf=null;function wf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bf=typeof setTimeout=="function"?setTimeout:void 0,Dk=typeof clearTimeout=="function"?clearTimeout:void 0,xv=typeof Promise=="function"?Promise:void 0,Ok=typeof queueMicrotask=="function"?queueMicrotask:typeof xv<"u"?function(e){return xv.resolve(null).then(e).catch(Mk)}:bf;function Mk(e){setTimeout(function(){throw e})}function rd(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),fa(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);fa(t)}function Qr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function wv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var gi=Math.random().toString(36).slice(2),In="__reactFiber$"+gi,va="__reactProps$"+gi,lr="__reactContainer$"+gi,jf="__reactEvents$"+gi,Lk="__reactListeners$"+gi,Ik="__reactHandles$"+gi;function Es(e){var t=e[In];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lr]||n[In]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wv(e);e!==null;){if(n=e[In])return n;e=wv(e)}return t}e=n,n=e.parentNode}return null}function Va(e){return e=e[In]||e[lr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function go(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Gc(e){return e[va]||null}var Sf=[],vo=-1;function ms(e){return{current:e}}function ke(e){0>vo||(e.current=Sf[vo],Sf[vo]=null,vo--)}function Ee(e,t){vo++,Sf[vo]=e.current,e.current=t}var is={},mt=ms(is),At=ms(!1),Vs=is;function ei(e,t){var n=e.type.contextTypes;if(!n)return is;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function _t(e){return e=e.childContextTypes,e!=null}function dc(){ke(At),ke(mt)}function bv(e,t,n){if(mt.current!==is)throw Error(I(168));Ee(mt,t),Ee(At,n)}function Ww(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(I(108,bT(e)||"Unknown",s));return Me({},n,r)}function fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||is,Vs=mt.current,Ee(mt,e),Ee(At,At.current),!0}function jv(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=Ww(e,t,Vs),r.__reactInternalMemoizedMergedChildContext=e,ke(At),ke(mt),Ee(mt,e)):ke(At),Ee(At,n)}var Zn=null,Qc=!1,sd=!1;function Hw(e){Zn===null?Zn=[e]:Zn.push(e)}function Fk(e){Qc=!0,Hw(e)}function gs(){if(!sd&&Zn!==null){sd=!0;var e=0,t=je;try{var n=Zn;for(je=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zn=null,Qc=!1}catch(s){throw Zn!==null&&(Zn=Zn.slice(e+1)),gw(Zh,gs),s}finally{je=t,sd=!1}}return null}var yo=[],xo=0,hc=null,pc=0,Jt=[],en=0,zs=null,er=1,tr="";function bs(e,t){yo[xo++]=pc,yo[xo++]=hc,hc=e,pc=t}function Kw(e,t,n){Jt[en++]=er,Jt[en++]=tr,Jt[en++]=zs,zs=e;var r=er;e=tr;var s=32-bn(r)-1;r&=~(1<<s),n+=1;var i=32-bn(t)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,er=1<<32-bn(t)+s|n<<s|r,tr=i+e}else er=1<<i|n<<s|r,tr=e}function ap(e){e.return!==null&&(bs(e,1),Kw(e,1,0))}function lp(e){for(;e===hc;)hc=yo[--xo],yo[xo]=null,pc=yo[--xo],yo[xo]=null;for(;e===zs;)zs=Jt[--en],Jt[en]=null,tr=Jt[--en],Jt[en]=null,er=Jt[--en],Jt[en]=null}var zt=null,Vt=null,Re=!1,xn=null;function qw(e,t){var n=tn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sv(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,zt=e,Vt=Qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,zt=e,Vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zs!==null?{id:er,overflow:tr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=tn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,zt=e,Vt=null,!0):!1;default:return!1}}function Cf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ef(e){if(Re){var t=Vt;if(t){var n=t;if(!Sv(e,t)){if(Cf(e))throw Error(I(418));t=Qr(n.nextSibling);var r=zt;t&&Sv(e,t)?qw(r,n):(e.flags=e.flags&-4097|2,Re=!1,zt=e)}}else{if(Cf(e))throw Error(I(418));e.flags=e.flags&-4097|2,Re=!1,zt=e}}}function Cv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;zt=e}function ml(e){if(e!==zt)return!1;if(!Re)return Cv(e),Re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wf(e.type,e.memoizedProps)),t&&(t=Vt)){if(Cf(e))throw Gw(),Error(I(418));for(;t;)qw(e,t),t=Qr(t.nextSibling)}if(Cv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 13,966 bytes, line 39
39);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Vt=Qr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Vt=null}}else Vt=zt?Qr(e.stateNode.nextSibling):null;return!0}function Gw(){for(var e=Vt;e;)e=Qr(e.nextSibling)}function ti(){Vt=zt=null,Re=!1}function cp(e){xn===null?xn=[e]:xn.push(e)}var Vk=gr.ReactCurrentBatchConfig;function Oi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=s.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function gl(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ev(e){var t=e._init;return t(e._payload)}function Qw(e){function t(v,y){if(e){var w=v.deletions;w===null?(v.deletions=[y],v.flags|=16):w.push(y)}}function n(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function r(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function s(v,y){return v=Jr(v,y),v.index=0,v.sibling=null,v}function i(v,y,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<y?(v.flags|=2,y):w):(v.flags|=2,y)):(v.flags|=1048576,y)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,y,w,j){return y===null||y.tag!==6?(y=dd(w,v.mode,j),y.return=v,y):(y=s(y,w),y.return=v,y)}function c(v,y,w,j){var S=w.type;return S===fo?f(v,y,w.props.children,j,w.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ar&&Ev(S)===y.type)?(j=s(y,w.props),j.ref=Oi(v,y,w),j.return=v,j):(j=Wl(w.type,w.key,w.props,null,v.mode,j),j.ref=Oi(v,y,w),j.return=v,j)}function u(v,y,w,j){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=fd(w,v.mode,j),y.return=v,y):(y=s(y,w.children||[]),y.return=v,y)}function f(v,y,w,j,S){return y===null||y.tag!==7?(y=Is(w,v.mode,j,S),y.return=v,y):(y=s(y,w),y.return=v,y)}function h(v,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=dd(""+y,v.mode,w),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ol:return w=Wl(y.type,y.key,y.props,null,v.mode,w),w.ref=Oi(v,null,y),w.return=v,w;case uo:return y=fd(y,v.mode,w),y.return=v,y;case Ar:var j=y._init;return h(v,j(y._payload),w)}if($i(y)||ki(y))return y=Is(y,v.mode,w,null),y.return=v,y;gl(v,y)}return null}function p(v,y,w,j){var S=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:l(v,y,""+w,j);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ol:return w.key===S?c(v,y,w,j):null;case uo:return w.key===S?u(v,y,w,j):null;case Ar:return S=w._init,p(v,y,S(w._payload),j)}if($i(w)||ki(w))return S!==null?null:f(v,y,w,j,null);gl(v,w)}return null}function m(v,y,w,j,S){if(typeof j=="string"&&j!==""||typeof j=="number")return v=v.get(w)||null,l(y,v,""+j,S);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case ol:return v=v.get(j.key===null?w:j.key)||null,c(y,v,j,S);case uo:return v=v.get(j.key===null?w:j.key)||null,u(y,v,j,S);case Ar:var P=j._init;return m(v,y,w,P(j._payload),S)}if($i(j)||ki(j))return v=v.get(w)||null,f(y,v,j,S,null);gl(y,j)}return null}function x(v,y,w,j){for(var S=null,P=null,N=y,E=y=0,_=null;N!==null&&E<w.length;E++){N.index>E?(_=N,N=null):_=N.sibling;var T=p(v,N,w[E],j);if(T===null){N===null&&(N=_);break}e&&N&&T.alternate===null&&t(v,N),y=i(T,y,E),P===null?S=T:P.sibling=T,P=T,N=_}if(E===w.length)return n(v,N),Re&&bs(v,E),S;if(N===null){for(;E<w.length;E++)N=h(v,w[E],j),N!==null&&(y=i(N,y,E),P===null?S=N:P.sibling=N,P=N);return Re&&bs(v,E),S}for(N=r(v,N);E<w.length;E++)_=m(N,v,E,w[E],j),_!==null&&(e&&_.alternate!==null&&N.delete(_.key===null?E:_.key),y=i(_,y,E),P===null?S=_:P.sibling=_,P=_);return e&&N.forEach(function(O){return t(v,O)}),Re&&bs(v,E),S}function g(v,y,w,j){var S=ki(w);if(typeof S!="function")throw Error(I(150));if(w=S.call(w),w==null)throw Error(I(151));for(var P=S=null,N=y,E=y=0,_=null,T=w.next();N!==null&&!T.done;E++,T=w.next()){N.index>E?(_=N,N=null):_=N.sibling;var O=p(v,N,T.value,j);if(O===null){N===null&&(N=_);break}e&&N&&O.alternate===null&&t(v,N),y=i(O,y,E),P===null?S=O:P.sibling=O,P=O,N=_}if(T.done)return n(v,N),Re&&bs(v,E),S;if(N===null){for(;!T.done;E++,T=w.next())T=h(v,T.value,j),T!==null&&(y=i(T,y,E),P===null?S=T:P.sibling=T,P=T);return Re&&bs(v,E),S}for(N=r(v,N);!T.done;E++,T=w.next())T=m(N,v,E,T.value,j),T!==null&&(e&&T.alternate!==null&&N.delete(T.key===null?E:T.key),y=i(T,y,E),P===null?S=T:P.sibling=T,P=T);return e&&N.forEach(function(L){return t(v,L)}),Re&&bs(v,E),S}function b(v,y,w,j){if(typeof w=="object"&&w!==null&&w.type===fo&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ol:e:{for(var S=w.key,P=y;P!==null;){if(P.key===S){if(S=w.type,S===fo){if(P.tag===7){n(v,P.sibling),y=s(P,w.props.children),y.return=v,v=y;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ar&&Ev(S)===P.type){n(v,P.sibling),y=s(P,w.props),y.ref=Oi(v,P,w),y.return=v,v=y;break e}n(v,P);break}else t(v,P);P=P.sibling}w.type===fo?(y=Is(w.props.children,v.mode,j,w.key),y.return=v,v=y):(j=Wl(w.type,w.key,w.props,null,v.mode,j),j.ref=Oi(v,y,w),j.return=v,v=j)}return a(v);case uo:e:{for(P=w.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(v,y.sibling),y=s(y,w.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=fd(w,v.mode,j),y.return=v,v=y}return a(v);case Ar:return P=w._init,b(v,y,P(w._payload),j)}if($i(w))return x(v,y,w,j);if(ki(w))return g(v,y,w,j);gl(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(v,y.sibling),y=s(y,w),y.return=v,v=y):(n(v,y),y=dd(w,v.mode,j),y.return=v,v=y),a(v)):n(v,y)}return b}var ni=Qw(!0),Yw=Qw(!1),mc=ms(null),gc=null,wo=null,up=null;function dp(){up=wo=gc=null}function fp(e){var t=mc.current;ke(mc),e._currentValue=t}function Nf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){gc=e,up=wo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Rt=!0),e.firstContext=null)}function sn(e){var t=e._currentValue;if(up!==e)if(e={context:e,memoizedValue:t,next:null},wo===null){if(gc===null)throw Error(I(308));wo=e,gc.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Ns=null;function hp(e){Ns===null?Ns=[e]:Ns.push(e)}function Xw(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,hp(t)):(n.next=s.next,s.next=n),t.interleaved=n,cr(e,r)}function cr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _r=!1;function pp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,xe&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,cr(e,n)}return s=r.interleaved,s===null?(t.next=t,hp(r)):(t.next=s.next,s.next=t),r.interleaved=t,cr(e,n)}function Fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jh(e,n)}}function Nv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vc(e,t,n,r){var s=e.updateQueue;_r=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;a=0,f=u=c=null,l=i;do{var p=l.lane,m=l.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,g=l;switch(p=t,m=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){h=x.call(m,h,p);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,p=typeof x=="function"?x.call(m,h,p):x,p==null)break e;h=Me({},h,p);break e;case 2:_r=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[l]:p.push(l))}else m={eventTime:m,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=m,c=h):f=f.next=m,a|=p;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;p=l,l=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(f===null&&(c=h),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=f,t=s.shared.interleaved,t!==null){s=t;do a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Bs|=a,e.lanes=a,e.memoizedState=h}}function Pv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(I(191,s));s.call(r)}}}var za={},zn=ms(za),ya=ms(za),xa=ms(za);function Ps(e){if(e===za)throw Error(I(174));return e}function mp(e,t){switch(Ee(xa,t),Ee(ya,e),Ee(zn,za),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:of(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=of(t,e)}ke(zn),Ee(zn,t)}function ri(){ke(zn),ke(ya),ke(xa)}function Jw(e){Ps(xa.current);var t=Ps(zn.current),n=of(t,e.type);t!==n&&(Ee(ya,e),Ee(zn,n))}function gp(e){ya.current===e&&(ke(zn),ke(ya))}var _e=ms(0);function yc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var od=[];function vp(){for(var e=0;e<od.length;e++)od[e]._workInProgressVersionPrimary=null;od.length=0}var Vl=gr.ReactCurrentDispatcher,id=gr.ReactCurrentBatchConfig,$s=0,Oe=null,qe=null,Ze=null,xc=!1,Ji=!1,wa=0,zk=0;function at(){throw Error(I(321))}function yp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sn(e[n],t[n]))return!1;return!0}function xp(e,t,n,r,s,i){if($s=i,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vl.current=e===null||e.memoizedState===null?Wk:Hk,e=n(r,s),Ji){i=0;do{if(Ji=!1,wa=0,25<=i)throw Error(I(301));i+=1,Ze=qe=null,t.updateQueue=null,Vl.current=Kk,e=n(r,s)}while(Ji)}if(Vl.current=wc,t=qe!==null&&qe.next!==null,$s=0,Ze=qe=Oe=null,xc=!1,t)throw Error(I(300));return e}function wp(){var e=wa!==0;return wa=0,e}function _n(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?Oe.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function on(){if(qe===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Ze===null?Oe.memoizedState:Ze.next;if(t!==null)Ze=t,qe=e;else{if(e===null)throw Error(I(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Ze===null?Oe.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function ba(e,t){return typeof t=="function"?t(e):t}function ad(e){var t=on(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=qe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=a=null,c=null,u=i;do{var f=u.lane;if(($s&f)===f)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,a=r):c=c.next=h,Oe.lanes|=f,Bs|=f}u=u.next}while(u!==null&&u!==i);c===null?a=r:c.next=l,Sn(r,t.memoizedState)||(Rt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Oe.lanes|=i,Bs|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ld(e){var t=on(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=e(i,a.action),a=a.next;while(a!==s);Sn(i,t.memoizedState)||(Rt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function eb(){}function tb(e,t){var n=Oe,r=on(),s=t(),i=!Sn(r.memoizedState,s);if(i&&(r.memoizedState=s,Rt=!0),r=r.queue,bp(sb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ze!==null&&Ze.memoizedState.tag&1){if(n.flags|=2048,ja(9,rb.bind(null,n,r,s,t),void 0,null),Je===null)throw Error(I(349));
vendor: 4,230 bytes, line 39
39$s&30||nb(n,t,s)}return s}function nb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rb(e,t,n,r){t.value=n,t.getSnapshot=r,ob(t)&&ib(e)}function sb(e,t,n){return n(function(){ob(t)&&ib(e)})}function ob(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sn(e,n)}catch{return!0}}function ib(e){var t=cr(e,1);t!==null&&jn(t,e,1,-1)}function Tv(e){var t=_n();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t.queue=e,e=e.dispatch=Uk.bind(null,Oe,e),[t.memoizedState,e]}function ja(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ab(){return on().memoizedState}function zl(e,t,n,r){var s=_n();Oe.flags|=e,s.memoizedState=ja(1|t,n,void 0,r===void 0?null:r)}function Yc(e,t,n,r){var s=on();r=r===void 0?null:r;var i=void 0;if(qe!==null){var a=qe.memoizedState;if(i=a.destroy,r!==null&&yp(r,a.deps)){s.memoizedState=ja(t,n,i,r);return}}Oe.flags|=e,s.memoizedState=ja(1|t,n,i,r)}function kv(e,t){return zl(8390656,8,e,t)}function bp(e,t){return Yc(2048,8,e,t)}function lb(e,t){return Yc(4,2,e,t)}function cb(e,t){return Yc(4,4,e,t)}function ub(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function db(e,t,n){return n=n!=null?n.concat([e]):null,Yc(4,4,ub.bind(null,t,e),n)}function jp(){}function fb(e,t){var n=on();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hb(e,t){var n=on();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&yp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pb(e,t,n){return $s&21?(Sn(n,t)||(n=xw(),Oe.lanes|=n,Bs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Rt=!0),e.memoizedState=n)}function $k(e,t){var n=je;je=n!==0&&4>n?n:4,e(!0);var r=id.transition;id.transition={};try{e(!1),t()}finally{je=n,id.transition=r}}function mb(){return on().memoizedState}function Bk(e,t,n){var r=Zr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gb(e))vb(t,n);else if(n=Xw(e,t,n,r),n!==null){var s=bt();jn(n,e,r,s),yb(n,t,r)}}function Uk(e,t,n){var r=Zr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gb(e))vb(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,Sn(l,a)){var c=t.interleaved;c===null?(s.next=s,hp(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=Xw(e,t,s,r),n!==null&&(s=bt(),jn(n,e,r,s),yb(n,t,r))}}function gb(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function vb(e,t){Ji=xc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jh(e,n)}}var wc={readContext:sn,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},Wk={readContext:sn,useCallback:function(e,t){return _n().memoizedState=[e,t===void 0?null:t],e},useContext:sn,useEffect:kv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zl(4194308,4,ub.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){return zl(4,2,e,t)},useMemo:function(e,t){var n=_n();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_n();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Bk.bind(null,Oe,e),[r.memoizedState,e]}
vendor: 5,548 bytes, lines 39-41
39,useRef:function(e){var t=_n();return e={current:e},t.memoizedState=e},useState:Tv,useDebugValue:jp,useDeferredValue:function(e){return _n().memoizedState=e},useTransition:function(){var e=Tv(!1),t=e[0];return e=$k.bind(null,e[1]),_n().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,s=_n();if(Re){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Je===null)throw Error(I(349));$s&30||nb(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,kv(sb.bind(null,r,i,e),[e]),r.flags|=2048,ja(9,rb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_n(),t=Je.identifierPrefix;if(Re){var n=tr,r=er;n=(r&~(1<<32-bn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zk++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Hk={readContext:sn,useCallback:fb,useContext:sn,useEffect:bp,useImperativeHandle:db,useInsertionEffect:lb,useLayoutEffect:cb,useMemo:hb,useReducer:ad,useRef:ab,useState:function(){return ad(ba)},useDebugValue:jp,useDeferredValue:function(e){var t=on();return pb(t,qe.memoizedState,e)},useTransition:function(){var e=ad(ba)[0],t=on().memoizedState;return[e,t]},useMutableSource:eb,useSyncExternalStore:tb,useId:mb,unstable_isNewReconciler:!1},Kk={readContext:sn,useCallback:fb,useContext:sn,useEffect:bp,useImperativeHandle:db,useInsertionEffect:lb,useLayoutEffect:cb,useMemo:hb,useReducer:ld,useRef:ab,useState:function(){return ld(ba)},useDebugValue:jp,useDeferredValue:function(e){var t=on();return qe===null?t.memoizedState=e:pb(t,qe.memoizedState,e)},useTransition:function(){var e=ld(ba)[0],t=on().memoizedState;return[e,t]},useMutableSource:eb,useSyncExternalStore:tb,useId:mb,unstable_isNewReconciler:!1};function gn(e,t){if(e&&e.defaultProps){t=Me({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Pf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Me({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xc={isMounted:function(e){return(e=e._reactInternals)?Xs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bt(),s=Zr(e),i=rr(r,s);i.payload=t,n!=null&&(i.callback=n),t=Yr(e,i,s),t!==null&&(jn(t,e,s,r),Fl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bt(),s=Zr(e),i=rr(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Yr(e,i,s),t!==null&&(jn(t,e,s,r),Fl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bt(),r=Zr(e),s=rr(n,r);s.tag=2,t!=null&&(s.callback=t),t=Yr(e,s,r),t!==null&&(jn(t,e,r,n),Fl(t,e,r))}};function Rv(e,t,n,r,s,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!pa(n,r)||!pa(s,i):!0}function xb(e,t,n){var r=!1,s=is,i=t.contextType;return typeof i=="object"&&i!==null?i=sn(i):(s=_t(t)?Vs:mt.current,r=t.contextTypes,i=(r=r!=null)?ei(e,s):is),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Av(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xc.enqueueReplaceState(t,t.state,null)}function Tf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},pp(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=sn(i):(i=_t(t)?Vs:mt.current,s.context=ei(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Pf(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Xc.enqueueReplaceState(s,s.state,null),vc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function si(e,t){try{var n="",r=t;do n+=wT(r),r=r.return;while(r);var s=n}catch(i){s=` 40Error generating stack: `+i.message+` 41`+i.stack}return{value:e,source:t,stack:s,digest:null}}function cd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function kf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qk=typeof WeakMap=="function"?WeakMap:Map;function wb(e,t,n){n=rr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jc||(jc=!0,Vf=r),kf(e,t)},n}function bb(e,t,n){n=rr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){kf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){kf(e,t),typeof r!="function"&&(Xr===null?Xr=new Set([this]):Xr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function _v(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qk;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=a2.bind(null,e,t,n),t.then(e,e))}function Dv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}
vendor: 10,061 bytes, line 41
41function Ov(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=rr(-1,1),t.tag=2,Yr(n,t,1))),n.lanes|=1),e)}var Gk=gr.ReactCurrentOwner,Rt=!1;function wt(e,t,n,r){t.child=e===null?Yw(t,null,n,r):ni(t,e.child,n,r)}function Mv(e,t,n,r,s){n=n.render;var i=t.ref;return _o(t,s),r=xp(e,t,n,r,i,s),n=wp(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ur(e,t,s)):(Re&&n&&ap(t),t.flags|=1,wt(e,t,r,s),t.child)}function Lv(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Rp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,jb(e,t,i,r,s)):(e=Wl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:pa,n(a,r)&&e.ref===t.ref)return ur(e,t,s)}return t.flags|=1,e=Jr(i,r),e.ref=t.ref,e.return=t,t.child=e}function jb(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(pa(i,r)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Rt=!0);else return t.lanes=e.lanes,ur(e,t,s)}return Rf(e,t,n,r,s)}function Sb(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(jo,It),It|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(jo,It),It|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ee(jo,It),It|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ee(jo,It),It|=r;return wt(e,t,s,n),t.child}function Cb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rf(e,t,n,r,s){var i=_t(n)?Vs:mt.current;return i=ei(t,i),_o(t,s),n=xp(e,t,n,r,i,s),r=wp(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,ur(e,t,s)):(Re&&r&&ap(t),t.flags|=1,wt(e,t,n,s),t.child)}function Iv(e,t,n,r,s){if(_t(n)){var i=!0;fc(t)}else i=!1;if(_o(t,s),t.stateNode===null)$l(e,t),xb(t,n,r),Tf(t,n,r,s),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=sn(u):(u=_t(n)?Vs:mt.current,u=ei(t,u));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&Av(t,a,r,u),_r=!1;var p=t.memoizedState;a.state=p,vc(t,r,a,s),c=t.memoizedState,l!==r||p!==c||At.current||_r?(typeof f=="function"&&(Pf(t,n,f,r),c=t.memoizedState),(l=_r||Rv(t,n,l,r,p,c,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Zw(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:gn(t.type,l),a.props=u,h=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=sn(c):(c=_t(n)?Vs:mt.current,c=ei(t,c));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||p!==c)&&Av(t,a,r,c),_r=!1,p=t.memoizedState,a.state=p,vc(t,r,a,s);var x=t.memoizedState;l!==h||p!==x||At.current||_r?(typeof m=="function"&&(Pf(t,n,m,r),x=t.memoizedState),(u=_r||Rv(t,n,u,r,p,x,c)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,x,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,x,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),a.props=r,a.state=x,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Af(e,t,n,r,i,s)}function Af(e,t,n,r,s,i){Cb(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return s&&jv(t,n,!1),ur(e,t,i);r=t.stateNode,Gk.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ni(t,e.child,null,i),t.child=ni(t,null,l,i)):wt(e,t,l,i),t.memoizedState=r.state,s&&jv(t,n,!0),t.child}function Eb(e){var t=e.stateNode;t.pendingContext?bv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bv(e,t.context,!1),mp(e,t.containerInfo)}function Fv(e,t,n,r,s){return ti(),cp(s),t.flags|=256,wt(e,t,n,r),t.child}var _f={dehydrated:null,treeContext:null,retryLane:0};function Df(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nb(e,t,n){var r=t.pendingProps,s=_e.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ee(_e,s&1),e===null)return Ef(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=eu(a,r,0,null),e=Is(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Df(n),t.memoizedState=_f,e):Sp(t,a));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Qk(e,t,a,r,l,s,n);if(i){i=r.fallback,a=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Jr(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Jr(l,i):(i=Is(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Df(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=_f,r}return i=e.child,e=i.sibling,r=Jr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Sp(e,t){return t=eu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vl(e,t,n,r){return r!==null&&cp(r),ni(t,e.child,null,n),e=Sp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qk(e,t,n,r,s,i,a){if(n)return t.flags&256?(t.flags&=-257,r=cd(Error(I(422))),vl(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=eu({mode:"visible",children:r.children},s,0,null),i=Is(i,s,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ni(t,e.child,null,a),t.child.memoizedState=Df(a),t.memoizedState=_f,i);if(!(t.mode&1))return vl(e,t,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(I(419)),r=cd(i,r,void 0),vl(e,t,a,r)}if(l=(a&e.childLanes)!==0,Rt||l){if(r=Je,r!==null){switch(a&-a){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,cr(e,s),jn(r,e,s,-1))}return kp(),r=cd(Error(I(421))),vl(e,t,a,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=l2.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Vt=Qr(s.nextSibling),zt=t,Re=!0,xn=null,e!==null&&(Jt[en++]=er,Jt[en++]=tr,Jt[en++]=zs,er=e.id,tr=e.overflow,zs=t),t=Sp(t,r.children),t.flags|=4096,t)}function Vv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nf(e.return,t,n)}function ud(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Pb(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(wt(e,t,r.children,n),r=_e.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vv(e,n,t);else if(e.tag===19)Vv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(_e,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&yc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ud(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&yc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ud(t,!0,n,null,i);break;case"together":ud(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $l(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ur(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));
vendor: 5,451 bytes, line 41
41if(t.child!==null){for(e=t.child,n=Jr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yk(e,t,n){switch(t.tag){case 3:Eb(t),ti();break;case 5:Jw(t);break;case 1:_t(t.type)&&fc(t);break;case 4:mp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Ee(mc,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(_e,_e.current&1),t.flags|=128,null):n&t.child.childLanes?Nb(e,t,n):(Ee(_e,_e.current&1),e=ur(e,t,n),e!==null?e.sibling:null);Ee(_e,_e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pb(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ee(_e,_e.current),r)break;return null;case 22:case 23:return t.lanes=0,Sb(e,t,n)}return ur(e,t,n)}var Tb,Of,kb,Rb;Tb=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Of=function(){};kb=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Ps(zn.current);var i=null;switch(n){case"input":s=tf(e,s),r=tf(e,r),i=[];break;case"select":s=Me({},s,{value:void 0}),r=Me({},r,{value:void 0}),i=[];break;case"textarea":s=sf(e,s),r=sf(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=uc)}af(n,r);var a;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(aa.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(aa.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Te("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Rb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mi(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xk(e,t,n){var r=t.pendingProps;switch(lp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return _t(t.type)&&dc(),lt(t),null;case 3:return r=t.stateNode,ri(),ke(At),ke(mt),vp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ml(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xn!==null&&(Bf(xn),xn=null))),Of(e,t),lt(t),null;case 5:gp(t);var s=Ps(xa.current);if(n=t.type,e!==null&&t.stateNode!=null)kb(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return lt(t),null}if(e=Ps(zn.current),ml(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[In]=t,r[va]=i,e=(t.mode&1)!==0,n){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(s=0;s<Ui.length;s++)Te(Ui[s],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":Gg(r,i),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Te("invalid",r);break;case"textarea":Yg(r,i),Te("invalid",r)}af(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&pl(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&pl(r.textContent,l,e),s=["children",""+l]):aa.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Te("scroll",r)}switch(n){case"input":il(r),Qg(r,i,!0);break;case"textarea":il(r),Xg(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=uc)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=sw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>
41",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[In]=t,e[va]=r,Tb(e,t,!1,!1),t.stateNode=e;e:{switch(a=lf(n,r),n){case"dialog":Te("cancel",e),Te("close",e),s=r;break;case"iframe":case"object":case"embed":Te("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ui.length;s++)Te(Ui[s],e);s=r;break;case"source":Te("error",e),s=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),s=r;break;case"details":Te("toggle",e),s=r;break;case"input":Gg(e,r),s=tf(e,r),Te("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Me({},r,{value:void 0}),Te("invalid",e);break;case"textarea":Yg(e,r),s=sf(e,r),Te("invalid",e);break;default:s=r}af(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?aw(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&ow(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&la(e,c):typeof c=="number"&&la(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(aa.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Te("scroll",e):c!=null&&qh(e,i,c,a))}switch(n){case"input":il(e),Qg(e,r,!1);break;case"textarea":il(e),Xg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+os(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?To(e,!!r.multiple,i,!1):r.defaultValue!=null&&To(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=uc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lt(t),null;case 6:if(e&&t.stateNode!=null)Rb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=Ps(xa.current),Ps(zn.current),ml(t)){if(r=t.stateNode,n=t.memoizedProps,r[In]=t,(i=r.nodeValue!==n)&&(e=zt,e!==null))switch(e.tag){case 3:pl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[In]=t,t.stateNode=r}return lt(t),null;case 13:if(ke(_e),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Re&&Vt!==null&&t.mode&1&&!(t.flags&128))Gw(),ti(),t.flags|=98560,i=!1;else if(i=ml(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317)
vendor: 25,533 bytes, line 41
41);i[In]=t}else ti(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;lt(t),i=!1}else xn!==null&&(Bf(xn),xn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||_e.current&1?Qe===0&&(Qe=3):kp())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return ri(),Of(e,t),e===null&&ma(t.stateNode.containerInfo),lt(t),null;case 10:return fp(t.type._context),lt(t),null;case 17:return _t(t.type)&&dc(),lt(t),null;case 19:if(ke(_e),i=t.memoizedState,i===null)return lt(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Mi(i,!1);else{if(Qe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=yc(e),a!==null){for(t.flags|=128,Mi(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ee(_e,_e.current&1|2),t.child}e=e.sibling}i.tail!==null&&Be()>oi&&(t.flags|=128,r=!0,Mi(i,!1),t.lanes=4194304)}else{if(!r)if(e=yc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Re)return lt(t),null}else 2*Be()-i.renderingStartTime>oi&&n!==1073741824&&(t.flags|=128,r=!0,Mi(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Be(),t.sibling=null,n=_e.current,Ee(_e,r?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return Tp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?It&1073741824&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Zk(e,t){switch(lp(t),t.tag){case 1:return _t(t.type)&&dc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ri(),ke(At),ke(mt),vp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gp(t),null;case 13:if(ke(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(_e),null;case 4:return ri(),null;case 10:return fp(t.type._context),null;case 22:case 23:return Tp(),null;case 24:return null;default:return null}}var yl=!1,ft=!1,Jk=typeof WeakSet=="function"?WeakSet:Set,H=null;function bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Mf(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var zv=!1;function e2(e,t){if(yf=ac,e=Mw(),ip(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||s!==0&&h.nodeType!==3||(l=a+s),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++u===s&&(l=a),p===i&&++f===r&&(c=a),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(xf={focusedElem:e,selectionRange:n},ac=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,b=x.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:gn(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(j){Ve(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return x=zv,zv=!1,x}function ea(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Mf(t,n,i)}s=s.next}while(s!==r)}}function Zc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Lf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ab(e){var t=e.alternate;t!==null&&(e.alternate=null,Ab(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[In],delete t[va],delete t[jf],delete t[Lk],delete t[Ik])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _b(e){return e.tag===5||e.tag===3||e.tag===4}function $v(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_b(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function If(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=uc));else if(r!==4&&(e=e.child,e!==null))for(If(e,t,n),e=e.sibling;e!==null;)If(e,t,n),e=e.sibling}function Ff(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ff(e,t,n),e=e.sibling;e!==null;)Ff(e,t,n),e=e.sibling}var nt=null,yn=!1;function Cr(e,t,n){for(n=n.child;n!==null;)Db(e,t,n),n=n.sibling}function Db(e,t,n){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(Wc,n)}catch{}switch(n.tag){case 5:ft||bo(n,t);case 6:var r=nt,s=yn;nt=null,Cr(e,t,n),nt=r,yn=s,nt!==null&&(yn?(e=nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):nt.removeChild(n.stateNode));break;case 18:nt!==null&&(yn?(e=nt,n=n.stateNode,e.nodeType===8?rd(e.parentNode,n):e.nodeType===1&&rd(e,n),fa(e)):rd(nt,n.stateNode));break;case 4:r=nt,s=yn,nt=n.stateNode.containerInfo,yn=!0,Cr(e,t,n),nt=r,yn=s;break;case 0:case 11:case 14:case 15:if(!ft&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Mf(n,t,a),s=s.next}while(s!==r)}Cr(e,t,n);break;case 1:if(!ft&&(bo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ve(n,t,l)}Cr(e,t,n);break;case 21:Cr(e,t,n);break;case 22:n.mode&1?(ft=(r=ft)||n.memoizedState!==null,Cr(e,t,n),ft=r):Cr(e,t,n);break;default:Cr(e,t,n)}}function Bv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jk),t.forEach(function(r){var s=c2.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:nt=l.stateNode,yn=!1;break e;case 3:nt=l.stateNode.containerInfo,yn=!0;break e;case 4:nt=l.stateNode.containerInfo,yn=!0;break e}l=l.return}if(nt===null)throw Error(I(160));Db(i,a,s),nt=null,yn=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){Ve(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ob(t,e),t=t.sibling}function Ob(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fn(t,e),Rn(e),r&4){try{ea(3,e,e.return),Zc(3,e)}catch(g){Ve(e,e.return,g)}try{ea(5,e,e.return)}catch(g){Ve(e,e.return,g)}}break;case 1:fn(t,e),Rn(e),r&512&&n!==null&&bo(n,n.return);break;case 5:if(fn(t,e),Rn(e),r&512&&n!==null&&bo(n,n.return),e.flags&32){var s=e.stateNode;try{la(s,"")}catch(g){Ve(e,e.return,g)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&nw(s,i),lf(l,a);var u=lf(l,i);for(a=0;a<c.length;a+=2){var f=c[a],h=c[a+1];f==="style"?aw(s,h):f==="dangerouslySetInnerHTML"?ow(s,h):f==="children"?la(s,h):qh(s,f,h,u)}switch(l){case"input":nf(s,i);break;case"textarea":rw(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?To(s,!!i.multiple,m,!1):p!==!!i.multiple&&(i.defaultValue!=null?To(s,!!i.multiple,i.defaultValue,!0):To(s,!!i.multiple,i.multiple?[]:"",!1))}s[va]=i}catch(g){Ve(e,e.return,g)}}break;case 6:if(fn(t,e),Rn(e),r&4){if(e.stateNode===null)throw Error(I(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(g){Ve(e,e.return,g)}}break;case 3:if(fn(t,e),Rn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fa(t.containerInfo)}catch(g){Ve(e,e.return,g)}break;case 4:fn(t,e),Rn(e);break;case 13:fn(t,e),Rn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Np=Be())),r&4&&Bv(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ft=(u=ft)||f,fn(t,e),ft=u):fn(t,e),Rn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(H=e,f=e.child;f!==null;){for(h=H=f;H!==null;){switch(p=H,m=p.child,p.tag){case 0:case 11:case 14:case 15:ea(4,p,p.return);break;case 1:bo(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(g){Ve(r,n,g)}}break;case 5:bo(p,p.return);break;case 22:if(p.memoizedState!==null){Wv(h);continue}}m!==null?(m.return=p,H=m):Wv(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{s=h.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=iw("display",a))}catch(g){Ve(e,e.return,g)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){Ve(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:fn(t,e),Rn(e),r&4&&Bv(e);break;case 21:break;default:fn(t,e),Rn(e)}}function Rn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_b(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(la(s,""),r.flags&=-33);var i=$v(e);Ff(e,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,l=$v(e);If(e,l,a);break;default:throw Error(I(161))}}catch(c){Ve(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function t2(e,t,n){H=e,Mb(e)}function Mb(e,t,n){for(var r=(e.mode&1)!==0;H!==null;){var s=H,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||yl;if(!a){var l=s.alternate,c=l!==null&&l.memoizedState!==null||ft;l=yl;var u=ft;if(yl=a,(ft=c)&&!u)for(H=s;H!==null;)a=H,c=a.child,a.tag===22&&a.memoizedState!==null?Hv(s):c!==null?(c.return=a,H=c):Hv(s);for(;i!==null;)H=i,Mb(i),i=i.sibling;H=s,yl=l,ft=u}Uv(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,H=i):Uv(e)}}function Uv(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ft||Zc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ft)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:gn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Pv(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Pv(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&fa(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}ft||t.flags&512&&Lf(t)}catch(p){Ve(t,t.return,p)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function Wv(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Hv(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zc(4,t)}catch(c){Ve(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){Ve(t,s,c)}}var i=t.return;try{Lf(t)}catch(c){Ve(t,i,c)}break;case 5:var a=t.return;try{Lf(t)}catch(c){Ve(t,a,c)}}}catch(c){Ve(t,t.return,c)}if(t===e){H=null;break}var l=t.sibling;if(l!==null){l.return=t.return,H=l;break}H=t.return}}var n2=Math.ceil,bc=gr.ReactCurrentDispatcher,Cp=gr.ReactCurrentOwner,nn=gr.ReactCurrentBatchConfig,xe=0,Je=null,We=null,st=0,It=0,jo=ms(0),Qe=0,Sa=null,Bs=0,Jc=0,Ep=0,ta=null,kt=null,Np=0,oi=1/0,Xn=null,jc=!1,Vf=null,Xr=null,xl=!1,Hr=null,Sc=0,na=0,zf=null,Bl=-1,Ul=0;function bt(){return xe&6?Be():Bl!==-1?Bl:Bl=Be()}function Zr(e){return e.mode&1?xe&2&&st!==0?st&-st:Vk.transition!==null?(Ul===0&&(Ul=xw()),Ul):(e=je,e!==0||(e=window.event,e=e===void 0?16:Nw(e.type)),e):1}function jn(e,t,n,r){if(50<na)throw na=0,zf=null,Error(I(185));Ia(e,n,r),(!(xe&2)||e!==Je)&&(e===Je&&(!(xe&2)&&(Jc|=n),Qe===4&&Or(e,st)),Dt(e,r),n===1&&xe===0&&!(t.mode&1)&&(oi=Be()+500,Qc&&gs()))}function Dt(e,t){var n=e.callbackNode;VT(e,t);var r=ic(e,e===Je?st:0);if(r===0)n!==null&&ev(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ev(n),t===1)e.tag===0?Fk(Kv.bind(null,e)):Hw(Kv.bind(null,e)),Ok(function(){!(xe&6)&&gs()}),n=null;else{switch(ww(r)){case 1:n=Zh;break;case 4:n=vw;break;case 16:n=oc;break;case 536870912:n=yw;break;default:n=oc}n=Ub(n,Lb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Lb(e,t){if(Bl=-1,Ul=0,xe&6)throw Error(I(327));var n=e.callbackNode;if(Do()&&e.callbackNode!==n)return null;var r=ic(e,e===Je?st:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cc(e,r);else{t=r;var s=xe;xe|=2;var i=Fb();(Je!==e||st!==t)&&(Xn=null,oi=Be()+500,Ls(e,t));do try{o2();break}catch(l){Ib(e,l)}while(!0);dp(),bc.current=i,xe=s,We!==null?t=0:(Je=null,st=0,t=Qe)}if(t!==0){if(t===2&&(s=hf(e),s!==0&&(r=s,t=$f(e,s))),t===1)throw n=Sa,Ls(e,0),Or(e,r),Dt(e,Be()),n;if(t===6)Or(e,r);else{if(s=e.current.alternate,!(r&30)&&!r2(s)&&(t=Cc(e,r),t===2&&(i=hf(e),i!==0&&(r=i,t=$f(e,i))),t===1))throw n=Sa,Ls(e,0),Or(e,r),Dt(e,Be()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:js(e,kt,Xn);break;case 3:if(Or(e,r),(r&130023424)===r&&(t=Np+500-Be(),10<t)){if(ic(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){bt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=bf(js.bind(null,e,kt,Xn),t);break}js(e,kt,Xn);break;case 4:if(Or(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var a=31-bn(r);i=1<<a,a=t[a],a>s&&(s=a),r&=~i}if(r=s,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*n2(r/1960))-r,10<r){e.timeoutHandle=bf(js.bind(null,e,kt,Xn),r);break}js(e,kt,Xn);break;case 5:js(e,kt,Xn);break;default:throw Error(I(329))}}}return Dt(e,Be()),e.callbackNode===n?Lb.bind(null,e):null}function $f(e,t){var n=ta;return e.current.memoizedState.isDehydrated&&(Ls(e,t).flags|=256),e=Cc(e,t),e!==2&&(t=kt,kt=n,t!==null&&Bf(t)),e}function Bf(e){kt===null?kt=e:kt.push.apply(kt,e)}function r2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Sn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Or(e,t){for(t&=~Ep,t&=~Jc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bn(t),r=1<<n;e[n]=-1,t&=~r}}function Kv(e){if(xe&6)throw Error(I(327));Do();var t=ic(e,0);if(!(t&1))return Dt(e,Be()),null;var n=Cc(e,t);if(e.tag!==0&&n===2){var r=hf(e);r!==0&&(t=r,n=$f(e,r))}if(n===1)throw n=Sa,Ls(e,0),Or(e,t),Dt(e,Be()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,js(e,kt,Xn),Dt(e,Be()),null}function Pp(e,t){var n=xe;xe|=1;try{return e(t)}finally{xe=n,xe===0&&(oi=Be()+500,Qc&&gs())}}function Us(e){Hr!==null&&Hr.tag===0&&!(xe&6)&&Do();var t=xe;xe|=1;var n=nn.transition,r=je;try{if(nn.transition=null,je=1,e)return e()}finally{je=r,nn.transition=n,xe=t,!(xe&6)&&gs()}}function Tp(){It=jo.current,ke(jo)}function Ls(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Dk(n)),We!==null)for(n=We.return;n!==null;){var r=n;switch(lp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&dc();break;case 3:ri(),ke(At),ke(mt),vp();break;case 5:gp(r);break;case 4:ri();break;case 13:ke(_e);break;case 19:ke(_e);break;case 10:fp(r.type._context);break;case 22:case 23:Tp()}n=n.return}if(Je=e,We=e=Jr(e.current,null),st=It=t,Qe=0,Sa=null,Ep=Jc=Bs=0,kt=ta=null,Ns!==null){for(t=0;t<Ns.length;t++)if(n=Ns[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}Ns=null}return e}function Ib(e,t){do{var n=We;try{if(dp(),Vl.current=wc,xc){for(var r=Oe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}xc=!1}if($s=0,Ze=qe=Oe=null,Ji=!1,wa=0,Cp.current=null,n===null||n.return===null){Qe=1,Sa=t,We=null;break}e:{var i=e,a=n.return,l=n,c=t;if(t=st,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=l,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=Dv(a);if(m!==null){m.flags&=-257,Ov(m,a,l,i,t),m.mode&1&&_v(i,u,t),t=m,c=u;var x=t.updateQueue;if(x===null){var g=new Set;g.add(c),t.updateQueue=g}else x.add(c);break e}else{if(!(t&1)){_v(i,u,t),kp();break e}c=Error(I(426))}}else if(Re&&l.mode&1){var b=Dv(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Ov(b,a,l,i,t),cp(si(c,l));break e}}i=c=si(c,l),Qe!==4&&(Qe=2),ta===null?ta=[i]:ta.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=wb(i,c,t);Nv(i,v);break e;case 1:l=c;var y=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Xr===null||!Xr.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var j=bb(i,l,t);Nv(i,j);break e}}i=i.return}while(i!==null)}zb(n)}catch(S){t=S,We===n&&n!==null&&(We=n=n.return);continue}break}while(!0)}function Fb(){var e=bc.current;return bc.current=wc,e===null?wc:e}function kp(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),Je===null||!(Bs&268435455)&&!(Jc&268435455)||Or(Je,st)}function Cc(e,t){var n=xe;xe|=2;var r=Fb();(Je!==e||st!==t)&&(Xn=null,Ls(e,t));do try{s2();break}catch(s){Ib(e,s)}while(!0);if(dp(),xe=n,bc.current=r,We!==null)throw Error(I(261));return Je=null,st=0,Qe}function s2(){for(;We!==null;)Vb(We)}function o2(){for(;We!==null&&!RT();)Vb(We)}function Vb(e){var t=Bb(e.alternate,e,It);e.memoizedProps=e.pendingProps,t===null?zb(e):We=t,Cp.current=null}function zb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Zk(n,t),n!==null){n.flags&=32767,We=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Qe=6,We=null;return}}else if(n=Xk(n,t,It),n!==null){We=n;return}if(t=t.sibling,t!==null){We=t;return}We=t=e}while(t!==null);Qe===0&&(Qe=5)}function js(e,t,n){var r=je,s=nn.transition;try{nn.transition=null,je=1,i2(e,t,n,r)}finally{nn.transition=s,je=r}return null}function i2(e,t,n,r){do Do();while(Hr!==null);if(xe&6)throw Error(I(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zT(e,i),e===Je&&(We=Je=null,st=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xl||(xl=!0,Ub(oc,function(){return Do(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=nn.transition,nn.transition=null;var a=je;je=1;var l=xe;xe|=4,Cp.current=null,e2(e,n),Ob(n,e),Nk(xf),ac=!!yf,xf=yf=null,e.current=n,t2(n),AT(),xe=l,je=a,nn.transition=i}else e.current=n;if(xl&&(xl=!1,Hr=e,Sc=s),i=e.pendingLanes,i===0&&(Xr=null),OT(n.stateNode),Dt(e,Be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(jc)throw jc=!1,e=Vf,Vf=null,e;return Sc&1&&e.tag!==0&&Do(),i=e.pendingLanes,i&1?e===zf?na++:(na=0,zf=e):na=0,gs(),null}function Do(){if(Hr!==null){var e=ww(Sc),t=nn.transition,n=je;try{if(nn.transition=null,je=16>e?16:e,Hr===null)var r=!1;else{if(e=Hr,Hr=null,Sc=0,xe&6)throw Error(I(331));var s=xe;for(xe|=4,H=e.current;H!==null;){var i=H,a=i.child;if(H.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(H=u;H!==null;){var f=H;switch(f.tag){case 0:case 11:case 15:ea(8,f,i)}var h=f.child;if(h!==null)h.return=f,H=h;else for(;H!==null;){f=H;var p=f.sibling,m=f.return;if(Ab(f),f===u){H=null;break}if(p!==null){p.return=m,H=p;break}H=m}}}var x=i.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}H=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,H=a;else e:for(;H!==null;){if(i=H,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ea(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,H=v;break e}H=i.return}}var y=e.current;for(H=y;H!==null;){a=H;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,H=w;else e:for(a=y;H!==null;){if(l=H,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Zc(9,l)}}catch(S){Ve(l,l.return,S)}if(l===a){H=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,H=j;break e}H=l.return}}if(xe=s,gs(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(Wc,e)}catch{}r=!0}return r}finally{je=n,nn.transition=t}}return!1}function qv(e,t,n){t=si(n,t),t=wb(e,t,1),e=Yr(e,t,1),t=bt(),e!==null&&(Ia(e,1,t),Dt(e,t))}function Ve(e,t,n){if(e.tag===3)qv(e,e,n);else for(;t!==null;){if(t.tag===3){qv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xr===null||!Xr.has(r))){e=si(n,e),e=bb(t,e,1),t=Yr(t,e,1),e=bt(),t!==null&&(Ia(t,1,e),Dt(t,e));break}}t=t.return}}function a2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=bt(),e.pingedLanes|=e.suspendedLanes&n,Je===e&&(st&n)===n&&(Qe===4||Qe===3&&(st&130023424)===st&&500>Be()-Np?Ls(e,0):Ep|=n),Dt(e,t)}function $b(e,t){t===0&&(e.mode&1?(t=cl,cl<<=1,!(cl&130023424)&&(cl=4194304)):t=1);var n=bt();e=cr(e,t),e!==null&&(Ia(e,t,n),Dt(e,n))}function l2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$b(e,n)}function c2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),$b(e,n)}var Bb;Bb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||At.current)Rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Rt=!1,Yk(e,t,n);Rt=!!(e.flags&131072)}else Rt=!1,Re&&t.flags&1048576&&Kw(t,pc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$l(e,t),e=t.pendingProps;var s=ei(t,mt.current);_o(t,n),s=xp(null,t,r,e,s,n);var i=wp();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_t(r)?(i=!0,fc(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,pp(t),s.updater=Xc,t.stateNode=s,s._reactInternals=t,Tf(t,r,e,n),t=Af(null,t,r,!0,i,n)):(t.tag=0,Re&&i&&ap(t),wt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch($l(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=d2(r),e=gn(r,e),s){case 0:t=Rf(null,t,r,e,n);break e;case 1:t=Iv(null,t,r,e,n);break e;case 11:t=Mv(null,t,r,e,n);break e;case 14:t=Lv(null,t,r,gn(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),Rf(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),Iv(e,t,r,s,n);case 3:e:{if(Eb(t),e===null)throw Error(I(387));
vendor: 4,674 bytes, line 41
41r=t.pendingProps,i=t.memoizedState,s=i.element,Zw(e,t),vc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=si(Error(I(423)),t),t=Fv(e,t,r,n,s);break e}else if(r!==s){s=si(Error(I(424)),t),t=Fv(e,t,r,n,s);break e}else for(Vt=Qr(t.stateNode.containerInfo.firstChild),zt=t,Re=!0,xn=null,n=Yw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ti(),r===s){t=ur(e,t,n);break e}wt(e,t,r,n)}t=t.child}return t;case 5:return Jw(t),e===null&&Ef(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,wf(r,s)?a=null:i!==null&&wf(r,i)&&(t.flags|=32),Cb(e,t),wt(e,t,a,n),t.child;case 6:return e===null&&Ef(t),null;case 13:return Nb(e,t,n);case 4:return mp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ni(t,null,r,n):wt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),Mv(e,t,r,s,n);case 7:return wt(e,t,t.pendingProps,n),t.child;case 8:return wt(e,t,t.pendingProps.children,n),t.child;case 12:return wt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,Ee(mc,r._currentValue),r._currentValue=a,i!==null)if(Sn(i.value,a)){if(i.children===s.children&&!At.current){t=ur(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=rr(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Nf(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(I(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Nf(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}wt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,_o(t,n),s=sn(s),r=r(s),t.flags|=1,wt(e,t,r,n),t.child;case 14:return r=t.type,s=gn(r,t.pendingProps),s=gn(r.type,s),Lv(e,t,r,s,n);case 15:return jb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),$l(e,t),t.tag=1,_t(r)?(e=!0,fc(t)):e=!1,_o(t,n),xb(t,r,s),Tf(t,r,s,n),Af(null,t,r,!0,e,n);case 19:return Pb(e,t,n);case 22:return Sb(e,t,n)}throw Error(I(156,t.tag))};function Ub(e,t){return gw(e,t)}function u2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(e,t,n,r){return new u2(e,t,n,r)}function Rp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d2(e){if(typeof e=="function")return Rp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qh)return 11;if(e===Yh)return 14}return 2}function Jr(e,t){var n=e.alternate;return n===null?(n=tn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,s,i){var a=2;if(r=e,typeof e=="function")Rp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fo:return Is(n.children,s,i,t);case Gh:a=8,s|=8;break;case Xd:return e=tn(12,n,t,s|2),e.elementType=Xd,e.lanes=i,e;case Zd:return e=tn(13,n,t,s),e.elementType=Zd,e.lanes=i,e;case Jd:return e=tn(19,n,t,s),e.elementType=Jd,e.lanes=i,e;case J0:return eu(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X0:a=10;break e;case Z0:a=9;break e;case Qh:a=11;break e;case Yh:a=14;break e;case Ar:a=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=tn(a,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Is(e,t,n,r){return e=tn(7,e,r,t),e.lanes=n,e}function eu(e,t,n,r){return e=tn(22,e,r,t),e.elementType=J0,e.lanes=n,e.stateNode={isHidden:!1},e}
vendor: 4,733 bytes, line 41
41function dd(e,t,n){return e=tn(6,e,null,t),e.lanes=n,e}function fd(e,t,n){return t=tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function f2(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ku(0),this.expirationTimes=Ku(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ku(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Ap(e,t,n,r,s,i,a,l,c){return e=new f2(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pp(i),e}function h2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:uo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Wb(e){if(!e)return is;e=e._reactInternals;e:{if(Xs(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(_t(n))return Ww(e,n,t)}return t}function Hb(e,t,n,r,s,i,a,l,c){return e=Ap(n,r,!0,e,s,i,a,l,c),e.context=Wb(null),n=e.current,r=bt(),s=Zr(n),i=rr(r,s),i.callback=t??null,Yr(n,i,s),e.current.lanes=s,Ia(e,s,r),Dt(e,r),e}function tu(e,t,n,r){var s=t.current,i=bt(),a=Zr(s);return n=Wb(n),t.context===null?t.context=n:t.pendingContext=n,t=rr(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yr(s,t,a),e!==null&&(jn(e,s,a,i),Fl(e,s,a)),a}function Ec(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Gv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _p(e,t){Gv(e,t),(e=e.alternate)&&Gv(e,t)}function p2(){return null}var Kb=typeof reportError=="function"?reportError:function(e){console.error(e)};function Dp(e){this._internalRoot=e}nu.prototype.render=Dp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));tu(e,t,null,null)};nu.prototype.unmount=Dp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Us(function(){tu(null,e,null,null)}),t[lr]=null}};function nu(e){this._internalRoot=e}nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dr.length&&t!==0&&t<Dr[n].priority;n++);Dr.splice(n,0,e),n===0&&Ew(e)}};function Op(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ru(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qv(){}function m2(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Ec(a);i.call(u)}}var a=Hb(t,r,e,0,null,!1,!1,"",Qv);return e._reactRootContainer=a,e[lr]=a.current,ma(e.nodeType===8?e.parentNode:e),Us(),a}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=Ec(c);l.call(u)}}var c=Ap(e,0,!1,null,null,!1,!1,"",Qv);return e._reactRootContainer=c,e[lr]=c.current,ma(e.nodeType===8?e.parentNode:e),Us(function(){tu(t,c,n,r)}),c}function su(e,t,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var c=Ec(a);l.call(c)}}tu(t,a,e,s)}else a=m2(n,t,e,s,r);return Ec(a)}bw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bi(t.pendingLanes);n!==0&&(Jh(t,n|1),Dt(t,Be()),!(xe&6)&&(oi=Be()+500,gs()))}break;case 13:Us(function(){var r=cr(e,1);if(r!==null){var s=bt();jn(r,e,1,s)}}),_p(e,1)}};ep=function(e){if(e.tag===13){var t=cr(e,134217728);if(t!==null){var n=bt();jn(t,e,134217728,n)}_p(e,134217728)}};jw=function(e){if(e.tag===13){var t=Zr(e),n=cr(e,t);if(n!==null){var r=bt();jn(n,e,t,r)}_p(e,t)}};Sw=function(){return je};Cw=function(e,t){var n=je;try{return je=e,t()}finally{je=n}};uf=function(e,t,n){switch(t){case"input":if(nf(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Gc(r);if(!s)throw Error(I(90));tw(r),nf(r,s)}}}break;
41case"textarea":rw(e,n);break;case"select":t=n.value,t!=null&&To(e,!!n.multiple,t,!1)}};uw=Pp;dw=Us;var g2={usingClientEntryPoint:!1,Events:[Va,go,Gc,lw,cw,Pp]},Li={findFiberByHostInstance:Es,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},v2={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pw(e),e===null?null:e.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||p2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{Wc=wl.inject(v2),Vn=wl}catch{}}Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g2;Wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Op(t))throw Error(I(200));return h2(e,t,null,n)};Wt.createRoot=function(e,t){if(!Op(e))throw Error(I(299));var n=!1,r="",s=Kb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Ap(e,1,!1,null,null,n,!1,r,s),e[lr]=t.current,ma(e.nodeType===8?e.parentNode:e),new Dp(t)};Wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=pw(t),e=e===null?null:e.stateNode,e};Wt.flushSync=function(e){return Us(e)};Wt.hydrate=function(e,t,n){if(!ru(t))throw Error(I(200));return su(null,e,t,!0,n)};Wt.hydrateRoot=function(e,t,n){if(!Op(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=Kb;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Hb(t,null,e,1,n??null,s,!1,i,a),e[lr]=t.current,ma(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new nu(t)};Wt.render=function(e,t,n){if(!ru(t))throw Error(I(200));return su(null,e,t,!1,n)};Wt.unmountComponentAtNode=function(e){if(!ru(e))throw Error(I(40));return e._reactRootContainer?(Us(function(){su(null,null,e,!1,function(){e._reactRootContainer=null,e[lr]=null})}),!0):!1};Wt.unstable_batchedUpdates=Pp;Wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ru(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return su(e,t,n,!1,r)};Wt.version="18.3.1-next-f1338f8080-20240426";function qb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qb)}catch(e){console.error(e)}}qb(),q0.exports=Wt;var Zs=q0.exports;const y2=O0(Zs);var Gb,Yv=Zs;Gb=Yv.createRoot,Yv.hydrateRoot;const x2="modulepreload",w2=function(e){return"/"+e},Xv={},M=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=w2(c),c in Xv)return;Xv[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":x2,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return s.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};function b2(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,s,i,a=[],l="",c=e.split("/");for(c[0]||c.shift();s=c.shift();)n=s[0],n==="*"?(a.push(n),l+=s[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=s.indexOf("?",1),i=s.indexOf(".",1),a.push(s.substring(1,~r?r:~i?i:s.length)),l+=~r&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(l+=(~r?"?":"")+"\\"+s.substring(i))):l+="/"+s;return{keys:a,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var Qb={exports:{}},Yb={};/** 42 * @license React 43 * use-sync-external-store-shim.production.js 44 * 45 * Copyright (c) Meta Platforms, Inc. and affiliates. 46 * 47 * This source code is licensed under the MIT license found in the 48 * LICENSE file in the root directory of this source tree. 49 */var ii=d;function j2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S2=typeof Object.is=="function"?Object.is:j2,C2=ii.useState,E2=ii.useEffect,N2=ii.useLayoutEffect,P2=ii.useDebugValue;function T2(e,t){var n=t(),r=C2({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return N2(function(){s.value=n,s.getSnapshot=t,hd(s)&&i({inst:s})},[e,n,t]),E2(function(){return hd(s)&&i({inst:s}),e(function(){hd(s)&&i({inst:s})})},[e]),P2(n),n}function hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!S2(e,n)}catch{return!0}}function k2(e,t){return t()}var R2=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?k2:T2;Yb.useSyncExternalStore=ii.useSyncExternalStore!==void 0?ii.useSyncExternalStore:R2;Qb.exports=Yb;var A2=Qb.exports;const _2=H0.useInsertionEffect,D2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xb=D2?d.useLayoutEffect:d.useEffect,O2=_2||Xb,Mp=e=>{const t=d.useRef([e,(...n)=>t[0](...n)]).current;return O2(()=>{t[0]=e}),t[1]},M2="popstate",Lp="pushState",Ip="replaceState",L2="hashchange",Zv=[M2,Lp,Ip,L2],I2=e=>{for(const t of Zv)addEventListener(t,e);return()=>{for(const t of Zv)removeEventListener(t,e)}},Zb=(e,t)=>
49A2.useSyncExternalStore(I2,e,t),F2=()=>location.search,V2=({ssrSearch:e=""}={})=>Zb(F2,()=>e),Jv=()=>location.pathname,z2=({ssrPath:e}={})=>Zb(Jv,e?()=>e:Jv),$2=(e,{replace:t=!1,state:n=null}={})=>history[t?Ip:Lp](n,"",e),B2=(e={})=>[z2(e),$2],ey=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[ey]>"u"){for(const e of[Lp,Ip]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,ey,{value:!0})}const U2=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",Jb=(e="")=>e==="/"?"":e,W2=(e,t)=>e[0]==="~"?e.slice(1):Jb(t)+e,H2=(e="",t)=>U2(Uf(Jb(e)),Uf(t)),K2=e=>e[0]==="?"?e.slice(1):e,Uf=e=>{try{return decodeURI(e)}catch{return e}},q2=e=>Uf(K2(e)),e1={hook:B2,searchHook:V2,parser:b2,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},t1=d.createContext(e1),Js=()=>d.useContext(t1),n1={},r1=d.createContext(n1),G2=()=>d.useContext(r1),ou=e=>{const[t,n]=e.hook(e);return[H2(e.base,t),Mp((r,s)=>n(W2(r,e.base),s))]},Kn=()=>ou(Js()),y8=()=>{const e=Js();return q2(e.searchHook(e))},Fp=(e,t,n,r)=>{const{pattern:s,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),a=s.exec(n)||[],[l,...c]=a;return l!==void 0?[!0,(()=>{const u=i!==!1?Object.fromEntries(i.map((h,p)=>[h,c[p]])):a.groups;let f={...c};return u&&Object.assign(f,u),f})(),...r?[l]:[]]:[!1,null]},x8=e=>Fp(Js().parser,e,Kn()[0]),Q2=({children:e,...t})=>{var f,h;const n=Js(),r=t.hook?e1:n;let s=r;const[i,a]=((f=t.ssrPath)==null?void 0:f.split("?"))??[];a&&(t.ssrSearch=a,t.ssrPath=i),t.hrefs=t.hrefs??((h=t.hook)==null?void 0:h.hrefs);let l=d.useRef({}),c=l.current,u=c;for(let p in r){const m=p==="base"?r[p]+(t[p]||""):t[p]||r[p];c===u&&m!==u[p]&&(l.current=u={...u}),u[p]=m,m!==r[p]&&(s=u)}return d.createElement(t1.Provider,{value:s,children:e})},ty=({children:e,component:t},n)=>t?d.createElement(t,{params:n}):typeof e=="function"?e(n):e,Y2=e=>{let t=d.useRef(n1),n=t.current;for(const r in e)e[r]!==n[r]&&(n=e);return Object.keys(e).length===0&&(n=e),t.current=n},A=({path:e,nest:t,match:n,...r})=>{const s=Js(),[i]=ou(s),[a,l,c]=n??Fp(s.parser,e,i,t),u=Y2({...G2(),...l});if(!a)return null;const f=c?d.createElement(Q2,{base:c},ty(r,u)):ty(r,u);return d.createElement(r1.Provider,{value:u,children:f})},An=d.forwardRef((e,t)=>{const n=Js(),[r,s]=ou(n),{to:i="",href:a=i,onClick:l,asChild:c,children:u,className:f,replace:h,state:p,...m}=e,x=Mp(b=>{b.ctrlKey||b.metaKey||b.altKey||b.shiftKey||b.button!==0||(l==null||l(b),b.defaultPrevented||(b.preventDefault(),s(a,e)))}),g=n.hrefs(a[0]==="~"?a.slice(1):n.base+a,n);return c&&d.isValidElement(u)?d.cloneElement(u,{onClick:x,href:g}):d.createElement("a",{...m,onClick:x,href:g,className:f!=null&&f.call?f(r===a):f,children:u,ref:t})}),s1=e=>Array.isArray(e)?e.flatMap(t=>s1(t&&t.type===d.Fragment?t.props.children:t)):[e],o1=({children:e,location:t})=>{const n=Js(),[r]=ou(n);for(const s of s1(e)){let i=0;if(d.isValidElement(s)&&(i=Fp(n.parser,s.props.path,t||r,s.props.nest))[0])return d.cloneElement(s,{match:i})}return null},ue=e=>{const{to:t,href:n=t}=e,[,r]=Kn(),s=Mp(()=>r(t||n,e));return Xb(()=>{s()},[]),null};var vi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ws=typeof window>"u"||"Deno"in globalThis;function Zt(){}function X2(e,t){return typeof e=="function"?e(t):e}function Wf(e){return typeof e=="number"&&e>=0&&e!==1/0}function i1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oo(e,t){return typeof e=="function"?e(t):e}function wn(e,t){return typeof e=="function"?e(t):e}function ny(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==Vp(a,t.options))return!1}else if(!Ca(t.queryKey,a))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function ry(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Hs(t.options.mutationKey)!==Hs(i))return!1}else if(!Ca(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Vp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Hs)(e)}function Hs(e){return JSON.stringify(e,(t,n)=>Hf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Ca(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ca(e[n],t[n])):!1}function a1(e,t){if(e===t)return e;const n=sy(e)&&sy(t);
vendor: 34,236 bytes, line 49
49if(n||Hf(e)&&Hf(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),a=i.length,l=n?[]:{};let c=0;for(let u=0;u<a;u++){const f=n?u:i[u];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,c++):(l[f]=a1(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&c++)}return s===a&&c===s?e:l}return t}function Nc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function sy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hf(e){if(!oy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!oy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function oy(e){return Object.prototype.toString.call(e)==="[object Object]"}function Z2(e){return new Promise(t=>{setTimeout(t,e)})}function Kf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?a1(e,t):t}function J2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function eR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zp=Symbol();function l1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===zp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ks,Mr,zo,C0,tR=(C0=class extends vi{constructor(){super();te(this,ks);te(this,Mr);te(this,zo);B(this,zo,t=>{if(!Ws&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Mr)||this.setEventListener(C(this,zo))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Mr))==null||t.call(this),B(this,Mr,void 0))}setEventListener(t){var n;B(this,zo,t),(n=C(this,Mr))==null||n.call(this),B(this,Mr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,ks)!==t&&(B(this,ks,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,ks)=="boolean"?C(this,ks):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ks=new WeakMap,Mr=new WeakMap,zo=new WeakMap,C0),$p=new tR,$o,Lr,Bo,E0,nR=(E0=class extends vi{constructor(){super();te(this,$o,!0);te(this,Lr);te(this,Bo);B(this,Bo,t=>{if(!Ws&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Lr)||this.setEventListener(C(this,Bo))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Lr))==null||t.call(this),B(this,Lr,void 0))}setEventListener(t){var n;B(this,Bo,t),(n=C(this,Lr))==null||n.call(this),B(this,Lr,t(this.setOnline.bind(this)))}setOnline(t){C(this,$o)!==t&&(B(this,$o,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,$o)}},$o=new WeakMap,Lr=new WeakMap,Bo=new WeakMap,E0),Pc=new nR;function qf(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function rR(e){return Math.min(1e3*2**e,3e4)}function c1(e){return(e??"online")==="online"?Pc.isOnline():!0}var u1=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function pd(e){return e instanceof u1}function d1(e){let t=!1,n=0,r=!1,s;const i=qf(),a=g=>{var b;r||(p(new u1(g)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>$p.isFocused()&&(e.networkMode==="always"||Pc.isOnline())&&e.canRun(),f=()=>c1(e.networkMode)&&e.canRun(),h=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),s==null||s(),i.resolve(g))},p=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),s==null||s(),i.reject(g))},m=()=>new Promise(g=>{var b;s=v=>{(r||u())&&g(v)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;s=void 0,r||(g=e.onContinue)==null||g.call(e)}),x=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(h).catch(v=>{var P;if(r)return;const y=e.retry??(Ws?0:3),w=e.retryDelay??rR,j=typeof w=="function"?w(n,v):w,S=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,v);if(t||!S){p(v);return}n++,(P=e.onFail)==null||P.call(e,n,v),Z2(j).then(()=>u()?void 0:m()).then(()=>{t?p(v):x()})})};return{promise:i,cancel:a,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:f,start:()=>(f()?x():m().then(x),i)}}function sR(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=l=>setTimeout(l,0);const i=l=>{t?e.push(l):s(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||a()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var Ge=sR(),Rs,N0,f1=(N0=class{constructor(){te(this,Rs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wf(this.gcTime)&&B(this,Rs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ws?1/0:5*60*1e3))}clearGcTimeout(){C(this,Rs)&&(clearTimeout(C(this,Rs)),B(this,Rs,void 0))}},Rs=new WeakMap,N0),Uo,Wo,Xt,ct,_a,As,vn,Yn,P0,oR=(P0=class extends f1{constructor(t){super();te(this,vn);te(this,Uo);te(this,Wo);te(this,Xt);te(this,ct);te(this,_a);te(this,As);B(this,As,!1),B(this,_a,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,Xt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,Uo,iR(this.options)),this.state=t.state??C(this,Uo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,ct))==null?void 0:t.promise}setOptions(t){this.options={...C(this,_a),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Xt).remove(this)}setData(t,n){const r=Kf(this.state.data,t,this.options);return le(this,vn,Yn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){le(this,vn,Yn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=C(this,ct))==null?void 0:r.promise;return(s=C(this,ct))==null||s.cancel(t),n?n.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Uo))}isActive(){return this.observers.some(t=>wn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!i1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,ct))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,ct))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Xt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,ct)&&(C(this,As)?C(this,ct).cancel({revert:!0}):C(this,ct).cancelRetry()),this.scheduleGc()),C(this,Xt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||le(this,vn,Yn).call(this,{type:"invalidate"})}fetch(t,n){var c,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,ct))return C(this,ct).continueRetry(),C(this,ct).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(B(this,As,!0),r.signal)})},i=()=>{const h=l1(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return s(p),B(this,As,!1),this.options.persister?this.options.persister(h,p,this):h(p)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};s(a),(c=this.options.behavior)==null||c.onFetch(a,this),B(this,Wo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&le(this,vn,Yn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var p,m,x,g;pd(h)&&h.silent||le(this,vn,Yn).call(this,{type:"error",error:h}),pd(h)||((m=(p=C(this,Xt).config).onError)==null||m.call(p,h,this),(g=(x=C(this,Xt).config).onSettled)==null||g.call(x,this.state.data,h,this)),this.scheduleGc()};return B(this,ct,d1({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,m,x,g;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(b){l(b);return}(m=(p=C(this,Xt).config).onSuccess)==null||m.call(p,h,this),(g=(x=C(this,Xt).config).onSettled)==null||g.call(x,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{le(this,vn,Yn).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{le(this,vn,Yn).call(this,{type:"pause"})},onContinue:()=>{le(this,vn,Yn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),C(this,ct).start()}},Uo=new WeakMap,Wo=new WeakMap,Xt=new WeakMap,ct=new WeakMap,_a=new WeakMap,As=new WeakMap,vn=new WeakSet,Yn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...h1(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return pd(s)&&s.revert&&C(this,Wo)?{...C(this,Wo),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ge.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Xt).notify({query:this,type:"updated",action:t})})},P0);function h1(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:c1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function iR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Dn,T0,aR=(T0=class extends vi{constructor(t={}){super();te(this,Dn);this.config=t,B(this,Dn,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Vp(s,n);let a=this.get(i);return a||(a=new oR({cache:this,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){C(this,Dn).has(t.queryHash)||(C(this,Dn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Dn).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Dn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ge.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Dn).get(t)}getAll(){return[...C(this,Dn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ny(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ny(t,r)):n}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dn=new WeakMap,T0),On,yt,_s,Mn,Tr,k0,lR=(k0=class extends f1{constructor(t){super();te(this,Mn);te(this,On);te(this,yt);te(this,_s);this.mutationId=t.mutationId,B(this,yt,t.mutationCache),B(this,On,[]),this.state=t.state||p1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,On).includes(t)||(C(this,On).push(t),this.clearGcTimeout(),C(this,yt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,On,C(this,On).filter(n=>n!==t)),this.scheduleGc(),C(this,yt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,On).length||(this.state.status==="pending"?this.scheduleGc():C(this,yt).remove(this))}continue(){var t;return((t=C(this,_s))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,c,u,f,h,p,m,x,g,b,v,y,w,j,S,P,N;B(this,_s,d1({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,_)=>{le(this,Mn,Tr).call(this,{type:"failed",failureCount:E,error:_})},onPause:()=>{le(this,Mn,Tr).call(this,{type:"pause"})},onContinue:()=>{le(this,Mn,Tr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,yt).canRun(this)}));const n=this.state.status==="pending",r=!C(this,_s).canStart();try{if(!n){le(this,Mn,Tr).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(s=C(this,yt).config).onMutate)==null?void 0:i.call(s,t,this));const _=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));_!==this.state.context&&le(this,Mn,Tr).call(this,{type:"pending",context:_,variables:t,isPaused:r})}const E=await C(this,_s).start();return await((u=(c=C(this,yt).config).onSuccess)==null?void 0:u.call(c,E,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,E,t,this.state.context)),await((m=(p=C(this,yt).config).onSettled)==null?void 0:m.call(p,E,null,this.state.variables,this.state.context,this)),await((g=(x=this.options).onSettled)==null?void 0:g.call(x,E,null,t,this.state.context)),le(this,Mn,Tr).call(this,{type:"success",data:E}),E}catch(E){try{throw await((v=(b=C(this,yt).config).onError)==null?void 0:v.call(b,E,t,this.state.context,this)),await((w=(y=this.options).onError)==null?void 0:w.call(y,E,t,this.state.context)),await((S=(j=C(this,yt).config).onSettled)==null?void 0:S.call(j,void 0,E,this.state.variables,this.state.context,this)),await((N=(P=this.options).onSettled)==null?void 0:N.call(P,void 0,E,t,this.state.context)),E}finally{le(this,Mn,Tr).call(this,{type:"error",error:E})}}finally{C(this,yt).runNext(this)}}},On=new WeakMap,yt=new WeakMap,_s=new WeakMap,Mn=new WeakSet,Tr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ge.batch(()=>{C(this,On).forEach(r=>{r.onMutationUpdate(t)}),C(this,yt).notify({mutation:this,type:"updated",action:t})})},k0);function p1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Lt,Da,R0,cR=(R0=class extends vi{constructor(t={}){super();te(this,Lt);te(this,Da);this.config=t,B(this,Lt,new Map),B(this,Da,Date.now())}build(t,n,r){const s=new lR({mutationCache:this,mutationId:++rl(this,Da)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){const n=bl(t),r=C(this,Lt).get(n)??[];r.push(t),C(this,Lt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=bl(t);if(C(this,Lt).has(n)){const s=(r=C(this,Lt).get(n))==null?void 0:r.filter(i=>i!==t);s&&(s.length===0?C(this,Lt).delete(n):C(this,Lt).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,Lt).get(bl(t)))==null?void 0:r.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,Lt).get(bl(t)))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ge.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,Lt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ry(n,r))}findAll(t={}){return this.getAll().filter(n=>ry(t,n))}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ge.batch(()=>Promise.all(t.map(n=>n.continue().catch(Zt))))}},Lt=new WeakMap,Da=new WeakMap,R0);function bl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function iy(e){return{onFetch:(t,n)=>{var f,h,p,m,x;const r=t.options,s=(p=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],a=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let g=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=l1(t.options,t.fetchOptions),y=async(w,j,S)=>{if(g)return Promise.reject();if(j==null&&w.pages.length)return Promise.resolve(w);const P={queryKey:t.queryKey,pageParam:j,direction:S?"backward":"forward",meta:t.options.meta};b(P);const N=await v(P),{maxPages:E}=t.options,_=S?eR:J2;return{pages:_(w.pages,N,E),pageParams:_(w.pageParams,j,E)}};if(s&&i.length){const w=s==="backward",j=w?uR:ay,S={pages:i,pageParams:a},P=j(r,S);l=await y(S,P,w)}else{const w=e??i.length;do{const j=c===0?a[0]??r.initialPageParam:ay(r,l);if(c>0&&j==null)break;l=await y(l,j),c++}while(c<w)}return l};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function ay(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function uR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ie,Ir,Fr,Ho,Ko,Vr,qo,Go,A0,dR=(A0=class{constructor(e={}){te(this,Ie);te(this,Ir);te(this,Fr);te(this,Ho);te(this,Ko);te(this,Vr);te(this,qo);te(this,Go);B(this,Ie,e.queryCache||new aR),B(this,Ir,e.mutationCache||new cR),B(this,Fr,e.defaultOptions||{}),B(this,Ho,new Map),B(this,Ko,new Map),B(this,Vr,0)}mount(){rl(this,Vr)._++,C(this,Vr)===1&&(B(this,qo,$p.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ie).onFocus())})),B(this,Go,Pc.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ie).onOnline())})))}unmount(){var e,t;rl(this,Vr)._--,C(this,Vr)===0&&((e=C(this,qo))==null||e.call(this),B(this,qo,void 0),(t=C(this,Go))==null||t.call(this),B(this,Go,void 0))}isFetching(e){return C(this,Ie).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Ir).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ie).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,Ie).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Oo(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,Ie).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=C(this,Ie).get(r.queryHash),i=s==null?void 0:s.state.data,a=X2(t,i);if(a!==void 0)return C(this,Ie).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ge.batch(()=>C(this,Ie).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ie).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Ie);Ge.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Ie),r={type:"active",...e};return Ge.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ge.batch(()=>C(this,Ie).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Zt).catch(Zt)}invalidateQueries(e={},t={}){return Ge.batch(()=>{if(C(this,Ie).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ge.batch(()=>C(this,Ie).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Zt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Ie).build(this,t);return n.isStaleByTime(Oo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zt).catch(Zt)}fetchInfiniteQuery(e){return e.behavior=iy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zt).catch(Zt)}ensureInfiniteQueryData(e){return e.behavior=iy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Pc.isOnline()?C(this,Ir).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Ie)}getMutationCache(){return C(this,Ir)}getDefaultOptions(){return C(this,Fr)}setDefaultOptions(e){B(this,Fr,e)}setQueryDefaults(e,t){C(this,Ho).set(Hs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Ho).values()];let n={};return t.forEach(r=>{Ca(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,Ko).set(Hs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Ko).values()];let n={};return t.forEach(r=>{Ca(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Fr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===zp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Fr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Ie).clear(),C(this,Ir).clear()}},Ie=new WeakMap,Ir=new WeakMap,Fr=new WeakMap,Ho=new WeakMap,Ko=new WeakMap,Vr=new WeakMap,qo=new WeakMap,Go=new WeakMap,A0),Pt,me,Oa,xt,Ds,Qo,zr,Ln,Ma,Yo,Xo,Os,Ms,$r,Zo,be,Wi,Gf,Qf,Yf,Xf,Zf,Jf,eh,m1,_0,fR=(_0=class extends vi{constructor(t,n){super();te(this,be);te(this,Pt);te(this,me);te(this,Oa);te(this,xt);te(this,Ds);te(this,Qo);te(this,zr);te(this,Ln);te(this,Ma);te(this,Yo);te(this,Xo);te(this,Os);te(this,Ms);te(this,$r);te(this,Zo,new Set);this.options=n,B(this,Pt,t),B(this,Ln,null),B(this,zr,qf()),this.options.experimental_prefetchInRender||C(this,zr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,me).addObserver(this),ly(C(this,me),this.options)?le(this,be,Wi).call(this):this.updateResult(),le(this,be,Xf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return th(C(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return th(C(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,le(this,be,Zf).call(this),le(this,be,Jf).call(this),C(this,me).removeObserver(this)}setOptions(t,n){const r=this.options,s=C(this,me);if(this.options=C(this,Pt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,C(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");le(this,be,eh).call(this),C(this,me).setOptions(this.options),r._defaulted&&!Nc(this.options,r)&&C(this,Pt).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,me),observer:this});const i=this.hasListeners();i&&cy(C(this,me),s,this.options,r)&&le(this,be,Wi).call(this),this.updateResult(n),i&&(C(this,me)!==s||wn(this.options.enabled,C(this,me))!==wn(r.enabled,C(this,me))||Oo(this.options.staleTime,C(this,me))!==Oo(r.staleTime,C(this,me)))&&le(this,be,Gf).call(this);const a=le(this,be,Qf).call(this);i&&(C(this,me)!==s||wn(this.options.enabled,C(this,me))!==wn(r.enabled,C(this,me))||a!==C(this,$r))&&le(this,be,Yf).call(this,a)}getOptimisticResult(t){const n=C(this,Pt).getQueryCache().build(C(this,Pt),t),r=this.createResult(n,t);return pR(this,r)&&(B(this,xt,r),B(this,Qo,this.options),B(this,Ds,C(this,me).state)),r}getCurrentResult(){return C(this,xt)}trackResult(t,n){const r={};return Object.keys(t).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n==null||n(s),t[s])})}),r}trackProp(t){C(this,Zo).add(t)}getCurrentQuery(){return C(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Pt).defaultQueryOptions(t),r=C(this,Pt).getQueryCache().build(C(this,Pt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return le(this,be,Wi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,xt)))}createResult(t,n){var E;const r=C(this,me),s=this.options,i=C(this,xt),a=C(this,Ds),l=C(this,Qo),u=t!==r?t.state:C(this,Oa),{state:f}=t;let h={...f},p=!1,m;if(n._optimisticResults){const _=this.hasListeners(),T=!_&&ly(t,n),O=_&&cy(t,r,n,s);(T||O)&&(h={...h,...h1(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:x,errorUpdatedAt:g,status:b}=h;if(n.select&&h.data!==void 0)if(i&&h.data===(a==null?void 0:a.data)&&n.select===C(this,Ma))m=C(this,Yo);else try{B(this,Ma,n.select),m=n.select(h.data),m=Kf(i==null?void 0:i.data,m,n),B(this,Yo,m),B(this,Ln,null)}catch(_){B(this,Ln,_)}else m=h.data;if(n.placeholderData!==void 0&&m===void 0&&b==="pending"){let _;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))_=i.data;else if(_=typeof n.placeholderData=="function"?n.placeholderData((E=C(this,Xo))==null?void 0:E.state.data,C(this,Xo)):n.placeholderData,n.select&&_!==void 0)try{_=n.select(_),B(this,Ln,null)}catch(T){B(this,Ln,T)}_!==void 0&&(b="success",m=Kf(i==null?void 0:i.data,_,n),p=!0)}C(this,Ln)&&(x=C(this,Ln),m=C(this,Yo),g=Date.now(),b="error");const v=h.fetchStatus==="fetching",y=b==="pending",w=b==="error",j=y&&v,S=m!==void 0,N={status:b,fetchStatus:h.fetchStatus,isPending:y,isSuccess:b==="success",isError:w,isInitialLoading:j,isLoading:j,data:m,dataUpdatedAt:h.dataUpdatedAt,error:x,errorUpdatedAt:g,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:w&&!S,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:w&&S,isStale:Bp(t,n),refetch:this.refetch,promise:C(this,zr)};if(this.options.experimental_prefetchInRender){const _=L=>{N.status==="error"?L.reject(N.error):N.data!==void 0&&L.resolve(N.data)},T=()=>{const L=B(this,zr,N.promise=qf());_(L)},O=C(this,zr);switch(O.status){case"pending":t.queryHash===r.queryHash&&_(O);break;case"fulfilled":(N.status==="error"||N.data!==O.value)&&T();break;case"rejected":(N.status!=="error"||N.error!==O.reason)&&T();break}}return N}updateResult(t){const n=C(this,xt),r=this.createResult(C(this,me),this.options);if(B(this,Ds,C(this,me).state),B(this,Qo,this.options),C(this,Ds).data!==void 0&&B(this,Xo,C(this,me)),Nc(r,n))return;B(this,xt,r);const s={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!C(this,Zo).size)return!0;const c=new Set(l??C(this,Zo));return this.options.throwOnError&&c.add("error"),Object.keys(C(this,xt)).some(u=>{const f=u;return C(this,xt)[f]!==n[f]&&c.has(f)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),le(this,be,m1).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&le(this,be,Xf).call(this)}},Pt=new WeakMap,me=new WeakMap,Oa=new WeakMap,xt=new WeakMap,Ds=new WeakMap,Qo=new WeakMap,zr=new WeakMap,Ln=new WeakMap,Ma=new WeakMap,Yo=new WeakMap,Xo=new WeakMap,Os=new WeakMap,Ms=new WeakMap,$r=new WeakMap,Zo=new WeakMap,be=new WeakSet,Wi=function(t){le(this,be,eh).call(this);let n=C(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Zt)),n},Gf=function(){le(this,be,Zf).call(this);const t=Oo(this.options.staleTime,C(this,me));if(Ws||C(this,xt).isStale||!Wf(t))return;const r=i1(C(this,xt).dataUpdatedAt,t)+1;B(this,Os,setTimeout(()=>{C(this,xt).isStale||this.updateResult()},r))},Qf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,me)):this.options.refetchInterval)??!1},Yf=function(t){le(this,be,Jf).call(this),B(this,$r,t),!(Ws||wn(this.options.enabled,C(this,me))===!1||!Wf(C(this,$r))||C(this,$r)===0)&&B(this,Ms,setInterval(()=>{(this.options.refetchIntervalInBackground||$p.isFocused())&&le(this,be,Wi).call(this)},C(this,$r)))},Xf=function(){le(this,be,Gf).call(this),le(this,be,Yf).call(this,le(this,be,Qf).call(this))},Zf=function(){C(this,Os)&&(clearTimeout(C(this,Os)),B(this,Os,void 0))},Jf=function(){C(this,Ms)&&(clearInterval(C(this,Ms)),B(this,Ms,void 0))},eh=function(){const t=C(this,Pt).getQueryCache().build(C(this,Pt),this.options);if(t===C(this,me))return;const n=C(this,me);B(this,me,t),B(this,Oa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},m1=function(t){Ge.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,xt))}),C(this,Pt).getQueryCache().notify({query:C(this,me),type:"observerResultsUpdated"})})},_0);function hR(e,t){return wn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ly(e,t){return hR(e,t)||e.state.data!==void 0&&th(e,t,t.refetchOnMount)}function th(e,t,n){if(wn(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bp(e,t)}return!1}function cy(e,t,n,r){return(e!==t||wn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Bp(e,n)}function Bp(e,t){return wn(t.enabled,e)!==!1&&e.isStaleByTime(Oo(t.staleTime,e))}function pR(e,t){return!Nc(e.getCurrentResult(),t)}var Br,Ur,Tt,Jn,ir,Hl,nh,D0,mR=(D0=class extends vi{constructor(n,r){super();te(this,ir);te(this,Br);te(this,Ur);te(this,Tt);te(this,Jn);B(this,Br,n),this.setOptions(r),this.bindMethods(),le(this,ir,Hl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=C(this,Br).defaultMutationOptions(n),Nc(this.options,r)||C(this,Br).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Tt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Hs(r.mutationKey)!==Hs(this.options.mutationKey)?this.reset():((s=C(this,Tt))==null?void 0:s.state.status)==="pending"&&C(this,Tt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,Tt))==null||n.removeObserver(this)}onMutationUpdate(n){le(this,ir,Hl).call(this),le(this,ir,nh).call(this,n)}getCurrentResult(){return C(this,Ur)}reset(){var n;(n=C(this,Tt))==null||n.removeObserver(this),B(this,Tt,void 0),le(this,ir,Hl).call(this),le(this,ir,nh).call(this)}mutate(n,r){var s;return B(this,Jn,r),(s=C(this,Tt))==null||s.removeObserver(this),B(this,Tt,C(this,Br).getMutationCache().build(C(this,Br),this.options)),C(this,Tt).addObserver(this),C(this,Tt).execute(n)}},Br=new WeakMap,Ur=new WeakMap,Tt=new WeakMap,Jn=new WeakMap,ir=new WeakSet,Hl=function(){var r;const n=((r=C(this,Tt))==null?void 0:r.state)??p1();B(this,Ur,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},nh=function(n){Ge.batch(()=>{var r,s,i,a,l,c,u,f;if(C(this,Jn)&&this.hasListeners()){const h=C(this,Ur).variables,p=C(this,Ur).context;(n==null?void 0:n.type)==="success"?((s=(r=C(this,Jn)).onSuccess)==null||s.call(r,n.data,h,p),(a=(i=C(this,Jn)).onSettled)==null||a.call(i,n.data,null,h,p)):(n==null?void 0:n.type)==="error"&&((c=(l=C(this,Jn)).onError)==null||c.call(l,n.error,h,p),(f=(u=C(this,Jn)).onSettled)==null||f.call(u,void 0,n.error,h,p))}
49this.listeners.forEach(h=>{h(C(this,Ur))})})},D0),g1=d.createContext(void 0),Up=e=>{const t=d.useContext(g1);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gR=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(g1.Provider,{value:e,children:t})),v1=d.createContext(!1),vR=()=>d.useContext(v1);v1.Provider;function yR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xR=d.createContext(yR()),wR=()=>d.useContext(xR);function y1(e,t){return typeof e=="function"?e(...t):!!e}function rh(){}var bR=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},jR=e=>{d.useEffect(()=>{e.clearReset()},[e])},SR=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&y1(n,[e.error,r]),CR=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},ER=(e,t)=>e.isLoading&&e.isFetching&&!t,NR=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,uy=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function PR(e,t,n){var f,h,p,m,x;const r=Up(),s=vR(),i=wR(),a=r.defaultQueryOptions(e);(h=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,a),a._optimisticResults=s?"isRestoring":"optimistic",CR(a),bR(a,i),jR(i);const l=!r.getQueryCache().get(a.queryHash),[c]=d.useState(()=>new t(r,a)),u=c.getOptimisticResult(a);if(d.useSyncExternalStore(d.useCallback(g=>{const b=s?rh:c.subscribe(Ge.batchCalls(g));return c.updateResult(),b},[c,s]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(a,{listeners:!1})},[a,c]),NR(a,u))throw uy(a,c,i);if(SR({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw u.error;if((m=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||m.call(p,a,u),a.experimental_prefetchInRender&&!Ws&&ER(u,s)){const g=l?uy(a,c,i):(x=r.getQueryCache().get(a.queryHash))==null?void 0:x.promise;g==null||g.catch(rh).finally(()=>{c.updateResult()})}return a.notifyOnChangeProps?u:c.trackResult(u)}function $e(e,t){return PR(e,fR)}function tt(e,t){const n=Up(),[r]=d.useState(()=>new mR(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const s=d.useSyncExternalStore(d.useCallback(a=>r.subscribe(Ge.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=d.useCallback((a,l)=>{r.mutate(a,l).catch(rh)},[r]);if(s.error&&y1(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}async function x1(e){if(!e.ok){const t=await e.text()||e.statusText;let n=t;try{const r=JSON.parse(t);r!=null&&r.error?n=r.error:r!=null&&r.message&&(n=r.message)}catch{}throw new Error(`${e.status}: ${n}`)}}function w1(){if(typeof window>"u")return{};const e=window.location.pathname,t=e.includes("knoll-tracker")||e.endsWith("/floor")?"tracker":e.includes("/host")?"host":"";if(!t)return{};const n=sessionStorage.getItem(`floor-access-${t}`);return n?{"x-floor-access":n,"x-floor-area":t}:{}}async function b8(e,t,n){const r=await fetch(t,{method:e,headers:{...n?{"Content-Type":"application/json"}:{},...w1()},body:n?JSON.stringify(n):void 0,credentials:"include"});return await x1(r),r}const b1=({on401:e})=>async({queryKey:t})=>{let n="",r={};for(const a of t)if(typeof a=="string")n&&!n.endsWith("/")&&!a.startsWith("/")&&(n+="/"),n+=a;else if(a!=null&&typeof a=="object")for(const[l,c]of Object.entries(a))c!=null&&c!==""&&(r[l]=String(c));const s=new URLSearchParams(r).toString();s&&(n+=(n.includes("?")?"&":"?")+s);const i=await fetch(n,{credentials:"include",headers:w1()});return e==="returnNull"&&i.status===401?null:(await x1(i),await i.json())},He=new dR({defaultOptions:{queries:{queryFn:b1({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),TR=1,kR=1e6;let md=0;function RR(){return md=(md+1)%Number.MAX_SAFE_INTEGER,md.toString()}const gd=new Map,dy=e=>{if(gd.has(e))return;const t=setTimeout(()=>{gd.delete(e),ra({type:"REMOVE_TOAST",toastId:e})},kR);gd.set(e,t)},AR=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,TR)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
49return n?dy(n):e.toasts.forEach(r=>{dy(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Kl=[];let ql={toasts:[]};function ra(e){ql=AR(ql,e),Kl.forEach(t=>{t(ql)})}function _R({...e}){const t=RR(),n=s=>ra({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>ra({type:"DISMISS_TOAST",toastId:t});return ra({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Wp(){const[e,t]=d.useState(ql);return d.useEffect(()=>(Kl.push(t),()=>{const n=Kl.indexOf(t);n>-1&&Kl.splice(n,1)}),[e]),{...e,toast:_R,dismiss:n=>ra({type:"DISMISS_TOAST",toastId:n})}}function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function fy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function j1(...e){return t=>{let n=!1;const r=e.map(s=>{const i=fy(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():fy(e[s],null)}}}}function de(...e){return d.useCallback(j1(...e),e)}function DR(e,t){const n=d.createContext(t),r=i=>{const{children:a,...l}=i,c=d.useMemo(()=>l,Object.values(l));return o.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function s(i){const a=d.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function ln(e,t=[]){let n=[];function r(i,a){const l=d.createContext(a),c=n.length;n=[...n,a];const u=h=>{var v;const{scope:p,children:m,...x}=h,g=((v=p==null?void 0:p[e])==null?void 0:v[c])||l,b=d.useMemo(()=>x,Object.values(x));return o.jsx(g.Provider,{value:b,children:m})};u.displayName=i+"Provider";function f(h,p){var g;const m=((g=p==null?void 0:p[e])==null?void 0:g[c])||l,x=d.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,f]}const s=()=>{const i=n.map(a=>d.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,OR(s,...t)]}function OR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ai(e){const t=MR(e),n=d.forwardRef((r,s)=>{const{children:i,...a}=r,l=d.Children.toArray(i),c=l.find(LR);if(c){const u=c.props.children,f=l.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return o.jsx(t,{...a,ref:s,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return o.jsx(t,{...a,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var Hp=ai("Slot");function MR(e){const t=d.forwardRef((n,r)=>{const{children:s,...i}=n;if(d.isValidElement(s)){const a=FR(s),l=IR(i,s.props);return s.type!==d.Fragment&&(l.ref=r?j1(r,a):a),d.cloneElement(s,l)}return d.Children.count(s)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S1=Symbol("radix.slottable");function C1(e){const t=({children:n})=>o.jsx(o.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=S1,t}function LR(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===S1}function IR(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{i(...l),s(...l)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function FR(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Kp(e){const t=e+"CollectionProvider",[n,r]=ln(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:b,children:v}=g,y=Pr.useRef(null),w=Pr.useRef(new Map).current;return o.jsx(s,{scope:b,itemMap:w,collectionRef:y,children:v})};a.displayName=t;const l=e+"CollectionSlot",c=ai(l),u=Pr.forwardRef((g,b)=>{const{scope:v,children:y}=g,w=i(l,v),j=de(b,w.collectionRef);return o.jsx(c,{ref:j,children:y})});u.displayName=l;const f=e+"CollectionItemSlot",h="data-radix-collection-item",p=ai(f),m=Pr.forwardRef((g,b)=>{const{scope:v,children:y,...w}=g,j=Pr.useRef(null),S=de(b,j),P=i(f,v);return Pr.useEffect(()=>(P.itemMap.set(j,{ref:j,...w}),()=>
vendor: 4,806 bytes, line 49
49void P.itemMap.delete(j))),o.jsx(p,{[h]:"",ref:S,children:y})});m.displayName=f;function x(g){const b=i(e+"CollectionConsumer",g);return Pr.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((P,N)=>w.indexOf(P.ref.current)-w.indexOf(N.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},x,r]}var VR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],se=VR.reduce((e,t)=>{const n=ai(`Primitive.${t}`),r=d.forwardRef((s,i)=>{const{asChild:a,...l}=s,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function E1(e,t){e&&Zs.flushSync(()=>e.dispatchEvent(t))}function Ue(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function zR(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e);d.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var $R="DismissableLayer",sh="dismissableLayer.update",BR="dismissableLayer.pointerDownOutside",UR="dismissableLayer.focusOutside",hy,N1=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$a=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=e,u=d.useContext(N1),[f,h]=d.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=d.useState({}),x=de(t,N=>h(N)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(b),y=f?g.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,j=y>=v,S=HR(N=>{const E=N.target,_=[...u.branches].some(T=>T.contains(E));!j||_||(s==null||s(N),a==null||a(N),N.defaultPrevented||l==null||l())},p),P=KR(N=>{const E=N.target;[...u.branches].some(T=>T.contains(E))||(i==null||i(N),a==null||a(N),N.defaultPrevented||l==null||l())},p);return zR(N=>{y===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&l&&(N.preventDefault(),l()))},p),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hy=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),py(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=hy)}},[f,p,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),py())},[f,u]),d.useEffect(()=>{const N=()=>m({});return document.addEventListener(sh,N),()=>document.removeEventListener(sh,N)},[]),o.jsx(se.div,{...c,ref:x,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,S.onPointerDownCapture)})});$a.displayName=$R;var WR="DismissableLayerBranch",P1=d.forwardRef((e,t)=>{const n=d.useContext(N1),r=d.useRef(null),s=de(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),o.jsx(se.div,{...e,ref:s})});P1.displayName=WR;function HR(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=d.useRef(!1),s=d.useRef(()=>{});return d.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){T1(BR,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function KR(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=d.useRef(!1);return d.useEffect(()=>{const s=i=>{i.target&&!r.current&&T1(UR,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function py(){const e=new CustomEvent(sh);document.dispatchEvent(e)}function T1(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?E1(s,i):s.dispatchEvent(i)}var qR=$a,GR=P1,it=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},QR="Portal",iu=d.forwardRef((e,t)=>
49{var l;const{container:n,...r}=e,[s,i]=d.useState(!1);it(()=>i(!0),[]);const a=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?y2.createPortal(o.jsx(se.div,{...r,ref:t}),a):null});iu.displayName=QR;function YR(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var cn=e=>{const{present:t,children:n}=e,r=XR(t),s=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=de(r.ref,ZR(s));return typeof n=="function"||r.isPresent?d.cloneElement(s,{ref:i}):null};cn.displayName="Presence";function XR(e){const[t,n]=d.useState(),r=d.useRef({}),s=d.useRef(e),i=d.useRef("none"),a=e?"mounted":"unmounted",[l,c]=YR(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=jl(r.current);i.current=l==="mounted"?u:"none"},[l]),it(()=>{const u=r.current,f=s.current;if(f!==e){const p=i.current,m=jl(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),it(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const g=jl(r.current).includes(m.animationName);if(m.target===t&&g&&(c("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=m=>{m.target===t&&(i.current=jl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function jl(e){return(e==null?void 0:e.animationName)||"none"}function ZR(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function as({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=JR({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=Ue(n),c=d.useCallback(u=>{if(i){const h=typeof u=="function"?u(e):u;h!==e&&l(h)}else s(u)},[i,e,s,l]);return[a,c]}function JR({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,s=d.useRef(r),i=Ue(t);return d.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var eA="VisuallyHidden",yi=d.forwardRef((e,t)=>o.jsx(se.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));yi.displayName=eA;var tA=yi,qp="ToastProvider",[Gp,nA,rA]=Kp("Toast"),[k1,j8]=ln("Toast",[rA]),[sA,au]=k1(qp),R1=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=e,[l,c]=d.useState(null),[u,f]=d.useState(0),h=d.useRef(!1),p=d.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${qp}\`. Expected non-empty \`string\`.`),o.jsx(Gp.Provider,{scope:t,children:o.jsx(sA,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:d.useCallback(()=>f(m=>m+1),[]),onToastRemove:d.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:a})})};R1.displayName=qp;var A1="ToastViewport",oA=["F8"],oh="toast.viewportPause",ih="toast.viewportResume",_1=d.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=oA,label:s="Notifications ({hotkey})",...i}=e,a=au(A1,n),l=nA(n),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=d.useRef(null),p=de(t,h,a.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=a.toastCount>0;d.useEffect(()=>{const b=v=>{var w;r.length!==0&&r.every(j=>v[j]||v.code===j)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),d.useEffect(()=>{const b=c.current,v=h.current;if(x&&b&&v){const y=()=>
49{if(!a.isClosePausedRef.current){const P=new CustomEvent(oh);v.dispatchEvent(P),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const P=new CustomEvent(ih);v.dispatchEvent(P),a.isClosePausedRef.current=!1}},j=P=>{!b.contains(P.relatedTarget)&&w()},S=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",y),b.addEventListener("focusout",j),b.addEventListener("pointermove",y),b.addEventListener("pointerleave",S),window.addEventListener("blur",y),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",y),b.removeEventListener("focusout",j),b.removeEventListener("pointermove",y),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",y),window.removeEventListener("focus",w)}}},[x,a.isClosePausedRef]);const g=d.useCallback(({tabbingDirection:b})=>{const y=l().map(w=>{const j=w.ref.current,S=[j,...yA(j)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?y.reverse():y).flat()},[l]);return d.useEffect(()=>{const b=h.current;if(b){const v=y=>{var S,P,N;const w=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!w){const E=document.activeElement,_=y.shiftKey;if(y.target===b&&_){(S=u.current)==null||S.focus();return}const L=g({tabbingDirection:_?"backwards":"forwards"}),G=L.findIndex(V=>V===E);vd(L.slice(G+1))?y.preventDefault():_?(P=u.current)==null||P.focus():(N=f.current)==null||N.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[l,g]),o.jsxs(GR,{ref:c,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&o.jsx(ah,{ref:u,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});vd(b)}}),o.jsx(Gp.Slot,{scope:n,children:o.jsx(se.ol,{tabIndex:-1,...i,ref:p})}),x&&o.jsx(ah,{ref:f,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});vd(b)}})]})});_1.displayName=A1;var D1="ToastFocusProxy",ah=d.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=au(D1,n);return o.jsx(yi,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const l=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});ah.displayName=D1;var lu="Toast",iA="toast.swipeStart",aA="toast.swipeMove",lA="toast.swipeCancel",cA="toast.swipeEnd",O1=d.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...a}=e,[l=!0,c]=as({prop:r,defaultProp:s,onChange:i});return o.jsx(cn,{present:n||l,children:o.jsx(fA,{open:l,...a,ref:t,onClose:()=>c(!1),onPause:Ue(e.onPause),onResume:Ue(e.onResume),onSwipeStart:Q(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Q(e.onSwipeMove,u=>{const{x:f,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Q(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Q(e.onSwipeEnd,u=>{const{x:f,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});O1.displayName=lu;var[uA,dA]=k1(lu,{onClose(){}}),fA=d.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:m,...x}=e,g=au(lu,n),[b,v]=d.useState(null),y=de(t,V=>v(V)),w=d.useRef(null),j=d.useRef(null),S=s||g.duration,P=d.useRef(0),N=d.useRef(S),E=d.useRef(0),{onToastAdd:_,onToastRemove:T}=g,O=Ue(()=>{var J;(b==null?void 0:b.contains(document.activeElement))&&((J=g.viewport)==null||J.focus()),a()}),L=d.useCallback(V=>
49{!V||V===1/0||(window.clearTimeout(E.current),P.current=new Date().getTime(),E.current=window.setTimeout(O,V))},[O]);d.useEffect(()=>{const V=g.viewport;if(V){const J=()=>{L(N.current),u==null||u()},z=()=>{const W=new Date().getTime()-P.current;N.current=N.current-W,window.clearTimeout(E.current),c==null||c()};return V.addEventListener(oh,z),V.addEventListener(ih,J),()=>{V.removeEventListener(oh,z),V.removeEventListener(ih,J)}}},[g.viewport,S,c,u,L]),d.useEffect(()=>{i&&!g.isClosePausedRef.current&&L(S)},[i,S,g.isClosePausedRef,L]),d.useEffect(()=>(_(),()=>T()),[_,T]);const G=d.useMemo(()=>b?$1(b):null,[b]);return g.viewport?o.jsxs(o.Fragment,{children:[G&&o.jsx(hA,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),o.jsx(uA,{scope:n,onClose:O,children:Zs.createPortal(o.jsx(Gp.ItemSlot,{scope:n,children:o.jsx(qR,{asChild:!0,onEscapeKeyDown:Q(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||O(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(se.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...x,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Q(e.onKeyDown,V=>{V.key==="Escape"&&(l==null||l(V.nativeEvent),V.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:Q(e.onPointerDown,V=>{V.button===0&&(w.current={x:V.clientX,y:V.clientY})}),onPointerMove:Q(e.onPointerMove,V=>{if(!w.current)return;const J=V.clientX-w.current.x,z=V.clientY-w.current.y,W=!!j.current,D=["left","right"].includes(g.swipeDirection),F=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,$=D?F(0,J):0,ee=D?0:F(0,z),pe=V.pointerType==="touch"?10:2,Ae={x:$,y:ee},Ce={originalEvent:V,delta:Ae};W?(j.current=Ae,Sl(aA,h,Ce,{discrete:!1})):my(Ae,g.swipeDirection,pe)?(j.current=Ae,Sl(iA,f,Ce,{discrete:!1}),V.target.setPointerCapture(V.pointerId)):(Math.abs(J)>pe||Math.abs(z)>pe)&&(w.current=null)}),onPointerUp:Q(e.onPointerUp,V=>{const J=j.current,z=V.target;if(z.hasPointerCapture(V.pointerId)&&z.releasePointerCapture(V.pointerId),j.current=null,w.current=null,J){const W=V.currentTarget,D={originalEvent:V,delta:J};my(J,g.swipeDirection,g.swipeThreshold)?Sl(cA,m,D,{discrete:!0}):Sl(lA,p,D,{discrete:!0}),W.addEventListener("click",F=>F.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),hA=e=>{const{__scopeToast:t,children:n,...r}=e,s=au(lu,t),[i,a]=d.useState(!1),[l,c]=d.useState(!1);return gA(()=>a(!0)),d.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:o.jsx(iu,{asChild:!0,children:o.jsx(yi,{...r,children:i&&o.jsxs(o.Fragment,{children:[s.label," ",n]})})})},pA="ToastTitle",M1=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.jsx(se.div,{...r,ref:t})});M1.displayName=pA;var mA="ToastDescription",L1=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.jsx(se.div,{...r,ref:t})});L1.displayName=mA;var I1="ToastAction",F1=d.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?o.jsx(z1,{altText:n,asChild:!0,children:o.jsx(Qp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${I1}\`. Expected non-empty \`string\`.`),null)});F1.displayName=I1;var V1="ToastClose",Qp=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=dA(V1,n);return o.jsx(z1,{asChild:!0,children:o.jsx(se.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,s.onClose)})})});Qp.displayName=V1;var z1=d.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return o.jsx(se.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function $1(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),vA(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...$1(r))}}),t}function Sl(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?E1(s,i):s.dispatchEvent(i)}var my=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function gA(e=()=>{}){const t=Ue(e);it(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}
vendor: 16,384 bytes, lines 49-249
49function vA(e){return e.nodeType===e.ELEMENT_NODE}function yA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var xA=R1,B1=_1,U1=O1,W1=M1,H1=L1,K1=F1,q1=Qp;function G1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=G1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Q1(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=G1(e))&&(r&&(r+=" "),r+=t);return r}const gy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vy=Q1,xi=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return vy(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,a=Object.keys(s).map(u=>{const f=n==null?void 0:n[u],h=i==null?void 0:i[u];if(f===null)return null;const p=gy(f)||gy(h);return s[u][p]}),l=n&&Object.entries(n).reduce((u,f)=>{let[h,p]=f;return p===void 0||(u[h]=p),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:h,className:p,...m}=f;return Object.entries(m).every(x=>{let[g,b]=x;return Array.isArray(b)?b.includes({...i,...l}[g]):{...i,...l}[g]===b})?[...u,h,p]:u},[]);return vy(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 50 * @license lucide-react v0.453.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const wA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y1=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** 55 * @license lucide-react v0.453.0 - ISC 56 * 57 * This source code is licensed under the ISC license. 58 * See the LICENSE file in the root directory of this source tree. 59 */var bA={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"};/** 60 * @license lucide-react v0.453.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 */const jA=d.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...l},c)=>d.createElement("svg",{ref:c,...bA,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Y1("lucide",s),...l},[...a.map(([u,f])=>d.createElement(u,f)),...Array.isArray(i)?i:[i]]));/** 65 * @license lucide-react v0.453.0 - ISC 66 * 67 * This source code is licensed under the ISC license. 68 * See the LICENSE file in the root directory of this source tree. 69 */const Z=(e,t)=>{const n=d.forwardRef(({className:r,...s},i)=>d.createElement(jA,{ref:i,iconNode:t,className:Y1(`lucide-${wA(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 70 * @license lucide-react v0.453.0 - ISC 71 * 72 * This source code is licensed under the ISC license. 73 * See the LICENSE file in the root directory of this source tree. 74 */const SA=Z("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 75 * @license lucide-react v0.453.0 - ISC 76 * 77 * This source code is licensed under the ISC license. 78 * See the LICENSE file in the root directory of this source tree. 79 */const CA=Z("BadgePercent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]]);/** 80 * @license lucide-react v0.453.0 - ISC 81 * 82 * This source code is licensed under the ISC license. 83 * See the LICENSE file in the root directory of this source tree. 84 */const lh=Z("Beer",[["path",{d:"M17 11h1a3 3 0 0 1 0 6h-1",key:"1yp76v"}],["path",{d:"M9 12v6",key:"1u1cab"}],["path",{d:"M13 12v6",key:"1sugkk"}],["path",{d:"M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z",key:"1510fo"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"19jb7n"}]]);/** 85 * @license lucide-react v0.453.0 - ISC 86 * 87 * This source code is licensed under the ISC license. 88 * See the LICENSE file in the root directory of this source tree. 89 */const EA=Z("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 90 * @license lucide-react v0.453.0 - ISC 91 * 92 * This source code is licensed under the ISC license. 93 * See the LICENSE file in the root directory of this source tree. 94 */const NA=Z("CalendarDays",[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 95 * @license lucide-react v0.453.0 - ISC 96 * 97 * This source code is licensed under the ISC license. 98 * See the LICENSE file in the root directory of this source tree. 99 */const PA=Z("CalendarHeart",[["path",{d:"M3 10h18V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7",key:"136lmk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21.29 14.7a2.43 2.43 0 0 0-2.65-.52c-.3.12-.57.3-.8.53l-.34.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L17.5 22l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z",key:"1t7hil"}]]);/** 100 * @license lucide-react v0.453.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 */const TA=Z("CalendarOff",[["path",{d:"M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18",key:"16swn3"}],["path",{d:"M21 15.5V6a2 2 0 0 0-2-2H9.5",key:"yhw86o"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h7",key:"1wap6i"}],["path",{d:"M21 10h-5.5",key:"quycpq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 105 * @license lucide-react v0.453.0 - ISC 106 * 107 * This source code is licensed under the ISC license. 108 * See the LICENSE file in the root directory of this source tree. 109 */const kA=Z("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]);/** 110 * @license lucide-react v0.453.0 - ISC 111 * 112 * This source code is licensed under the ISC license. 113 * See the LICENSE file in the root directory of this source tree. 114 */const RA=Z("CalendarX",[["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"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]]);/** 115 * @license lucide-react v0.453.0 - ISC 116 * 117 * This source code is licensed under the ISC license. 118 * See the LICENSE file in the root directory of this source tree. 119 */const AA=Z("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"}]]);/** 120 * @license lucide-react v0.453.0 - ISC 121 * 122 * This source code is licensed under the ISC license. 123 * See the LICENSE file in the root directory of this source tree. 124 */const X1=Z("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 125 * @license lucide-react v0.453.0 - ISC 126 * 127 * This source code is licensed under the ISC license. 128 * See the LICENSE file in the root directory of this source tree. 129 */const Yp=Z("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 130 * @license lucide-react v0.453.0 - ISC 131 * 132 * This source code is licensed under the ISC license. 133 * See the LICENSE file in the root directory of this source tree. 134 */const _A=Z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 135 * @license lucide-react v0.453.0 - ISC 136 * 137 * This source code is licensed under the ISC license. 138 * See the LICENSE file in the root directory of this source tree. 139 */const DA=Z("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 140 * @license lucide-react v0.453.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 */const OA=Z("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 145 * @license lucide-react v0.453.0 - ISC 146 * 147 * This source code is licensed under the ISC license. 148 * See the LICENSE file in the root directory of this source tree. 149 */const Z1=Z("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 150 * @license lucide-react v0.453.0 - ISC 151 * 152 * This source code is licensed under the ISC license. 153 * See the LICENSE file in the root directory of this source tree. 154 */const ch=Z("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 155 * @license lucide-react v0.453.0 - ISC 156 * 157 * This source code is licensed under the ISC license. 158 * See the LICENSE file in the root directory of this source tree. 159 */const yy=Z("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 160 * @license lucide-react v0.453.0 - ISC 161 * 162 * This source code is licensed under the ISC license. 163 * See the LICENSE file in the root directory of this source tree. 164 */const MA=Z("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 165 * @license lucide-react v0.453.0 - ISC 166 * 167 * This source code is licensed under the ISC license. 168 * See the LICENSE file in the root directory of this source tree. 169 */const LA=Z("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 170 * @license lucide-react v0.453.0 - ISC 171 * 172 * This source code is licensed under the ISC license. 173 * See the LICENSE file in the root directory of this source tree. 174 */const IA=Z("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 175 * @license lucide-react v0.453.0 - ISC 176 * 177 * This source code is licensed under the ISC license. 178 * See the LICENSE file in the root directory of this source tree. 179 */const FA=Z("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 180 * @license lucide-react v0.453.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 */const Xp=Z("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 185 * @license lucide-react v0.453.0 - ISC 186 * 187 * This source code is licensed under the ISC license. 188 * See the LICENSE file in the root directory of this source tree. 189 */const Wn=Z("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"}]]);/** 190 * @license lucide-react v0.453.0 - ISC 191 * 192 * This source code is licensed under the ISC license. 193 * See the LICENSE file in the root directory of this source tree. 194 */const VA=Z("History",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** 195 * @license lucide-react v0.453.0 - ISC 196 * 197 * This source code is licensed under the ISC license. 198 * See the LICENSE file in the root directory of this source tree. 199 */const zA=Z("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"}]]);/** 200 * @license lucide-react v0.453.0 - ISC 201 * 202 * This source code is licensed under the ISC license. 203 * See the LICENSE file in the root directory of this source tree. 204 */const $A=Z("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 205 * @license lucide-react v0.453.0 - ISC 206 * 207 * This source code is licensed under the ISC license. 208 * See the LICENSE file in the root directory of this source tree. 209 */const Zp=Z("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 210 * @license lucide-react v0.453.0 - ISC 211 * 212 * This source code is licensed under the ISC license. 213 * See the LICENSE file in the root directory of this source tree. 214 */const J1=Z("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"}]]);/** 215 * @license lucide-react v0.453.0 - ISC 216 * 217 * This source code is licensed under the ISC license. 218 * See the LICENSE file in the root directory of this source tree. 219 */const Jp=Z("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"}]]);/** 220 * @license lucide-react v0.453.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 */const BA=Z("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"}]]);/** 225 * @license lucide-react v0.453.0 - ISC 226 * 227 * This source code is licensed under the ISC license. 228 * See the LICENSE file in the root directory of this source tree. 229 */const xy=Z("Martini",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]]);/** 230 * @license lucide-react v0.453.0 - ISC 231 * 232 * This source code is licensed under the ISC license. 233 * See the LICENSE file in the root directory of this source tree. 234 */const UA=Z("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 235 * @license lucide-react v0.453.0 - ISC 236 * 237 * This source code is licensed under the ISC license. 238 * See the LICENSE file in the root directory of this source tree. 239 */const wy=Z("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 240 * @license lucide-react v0.453.0 - ISC 241 * 242 * This source code is licensed under the ISC license. 243 * See the LICENSE file in the root directory of this source tree. 244 */const WA=Z("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** 245 * @license lucide-react v0.453.0 - ISC 246 * 247 * This source code is licensed under the ISC license. 248 * See the LICENSE file in the root directory of this source tree. 249 */const HA=Z("Plus",[["path",{d:"M5 12
249h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 250 * @license lucide-react v0.453.0 - ISC 251 * 252 * This source code is licensed under the ISC license. 253 * See the LICENSE file in the root directory of this source tree. 254 */const ej=Z("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"}]]);/** 255 * @license lucide-react v0.453.0 - ISC 256 * 257 * This source code is licensed under the ISC license. 258 * See the LICENSE file in the root directory of this source tree. 259 */const KA=Z("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 260 * @license lucide-react v0.453.0 - ISC 261 * 262 * This source code is licensed under the ISC license. 263 * See the LICENSE file in the root directory of this source tree. 264 */const qA=Z("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"}]]);/** 265 * @license lucide-react v0.453.0 - ISC 266 * 267 * This source code is licensed under the ISC license. 268 * See the LICENSE file in the root directory of this source tree. 269 */const Ks=Z("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 270 * @license lucide-react v0.453.0 - ISC 271 * 272 * This source code is licensed under the ISC license. 273 * See the LICENSE file in the root directory of this source tree. 274 */const GA=Z("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/** 275 * @license lucide-react v0.453.0 - ISC 276 * 277 * This source code is licensed under the ISC license. 278 * See the LICENSE file in the root directory of this source tree. 279 */const rn=Z("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"}]]);/** 280 * @license lucide-react v0.453.0 - ISC 281 * 282 * This source code is licensed under the ISC license. 283 * See the LICENSE file in the root directory of this source tree. 284 */const yd=Z("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 285 * @license lucide-react v0.453.0 - ISC 286 * 287 * This source code is licensed under the ISC license. 288 * See the LICENSE file in the root directory of this source tree. 289 */const by=Z("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 290 * @license lucide-react v0.453.0 - ISC 291 * 292 * This source code is licensed under the ISC license. 293 * See the LICENSE file in the root directory of this source tree. 294 */const tj=Z("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 4,748 bytes, lines 294-344
294],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 295 * @license lucide-react v0.453.0 - ISC 296 * 297 * This source code is licensed under the ISC license. 298 * See the LICENSE file in the root directory of this source tree. 299 */const QA=Z("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 300 * @license lucide-react v0.453.0 - ISC 301 * 302 * This source code is licensed under the ISC license. 303 * See the LICENSE file in the root directory of this source tree. 304 */const em=Z("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"}]]);/** 305 * @license lucide-react v0.453.0 - ISC 306 * 307 * This source code is licensed under the ISC license. 308 * See the LICENSE file in the root directory of this source tree. 309 */const Gl=Z("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 310 * @license lucide-react v0.453.0 - ISC 311 * 312 * This source code is licensed under the ISC license. 313 * See the LICENSE file in the root directory of this source tree. 314 */const YA=Z("UserCheck",[["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"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 315 * @license lucide-react v0.453.0 - ISC 316 * 317 * This source code is licensed under the ISC license. 318 * See the LICENSE file in the root directory of this source tree. 319 */const XA=Z("UserPlus",[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 320 * @license lucide-react v0.453.0 - ISC 321 * 322 * This source code is licensed under the ISC license. 323 * See the LICENSE file in the root directory of this source tree. 324 */const nj=Z("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"}]]);/** 325 * @license lucide-react v0.453.0 - ISC 326 * 327 * This source code is licensed under the ISC license. 328 * See the LICENSE file in the root directory of this source tree. 329 */const jy=Z("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"}]]);/** 330 * @license lucide-react v0.453.0 - ISC 331 * 332 * This source code is licensed under the ISC license. 333 * See the LICENSE file in the root directory of this source tree. 334 */const ZA=Z("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 335 * @license lucide-react v0.453.0 - ISC 336 * 337 * This source code is licensed under the ISC license. 338 * See the LICENSE file in the root directory of this source tree. 339 */const eo=Z("Wine",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]]);/** 340 * @license lucide-react v0.453.0 - ISC 341 * 342 * This source code is licensed under the ISC license. 343 * See the LICENSE file in the root directory of this source tree. 344 */const Ke=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),tm="-",JA=e=>{const t=t_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(tm);return l[0]===""&&l.length!==1&&l.shift(),rj(l,t)||e_(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},rj=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?rj(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(tm);return(a=t.validators.find(({validator:l})=>l(i)))==null?void 0:a.classGroupId},Sy=/^\[(.+)\]$/,e_=e=>{if(Sy.test(e)){const t=Sy.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},t_=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 6,704 bytes, line 344
344return r_(Object.entries(e.classGroups),n).forEach(([i,a])=>{uh(a,r,i,t)}),r},uh=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Cy(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(n_(s)){uh(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,a])=>{uh(a,Cy(t,i),n,r)})})},Cy=(e,t)=>{let n=e;return t.split(tm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},n_=e=>e.isThemeGetter,r_=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,l])=>[t+a,l])):i);return[n,s]}):e,s_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return s(i,a),a},set(i,a){n.has(i)?n.set(i,a):s(i,a)}}},sj="!",o_=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,a=l=>{const c=[];let u=0,f=0,h;for(let b=0;b<l.length;b++){let v=l[b];if(u===0){if(v===s&&(r||l.slice(b,b+i)===t)){c.push(l.slice(f,b)),f=b+i;continue}if(v==="/"){h=b;continue}}v==="["?u++:v==="]"&&u--}const p=c.length===0?l:l.substring(f),m=p.startsWith(sj),x=m?p.substring(1):p,g=h&&h>f?h-f:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:g}};return n?l=>n({className:l,parseClassName:a}):a},i_=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},a_=e=>({cache:s_(e.cacheSize),parseClassName:o_(e),...JA(e)}),l_=/\s+/,c_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],a=e.trim().split(l_);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(u);let x=!!m,g=r(x?p.substring(0,m):p);if(!g){if(!x){l=u+(l.length>0?" "+l:l);continue}if(g=r(p),!g){l=u+(l.length>0?" "+l:l);continue}x=!1}const b=i_(f).join(":"),v=h?b+sj:b,y=v+g;if(i.includes(y))continue;i.push(y);const w=s(g,x);for(let j=0;j<w.length;++j){const S=w[j];i.push(v+S)}l=u+(l.length>0?" "+l:l)}return l};function u_(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=oj(t))&&(r&&(r+=" "),r+=n);return r}const oj=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=oj(e[r]))&&(n&&(n+=" "),n+=t);return n};function d_(e,...t){let n,r,s,i=a;function a(c){const u=t.reduce((f,h)=>h(f),e());return n=a_(u),r=n.cache.get,s=n.cache.set,i=l,l(c)}function l(c){const u=r(c);if(u)return u;const f=c_(c,n);return s(c,f),f}return function(){return i(u_.apply(null,arguments))}}const Pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ij=/^\[(?:([a-z-]+):)?(.+)\]$/i,f_=/^\d+\/\d+$/,h_=new Set(["px","full","screen"]),p_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,g_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,v_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qn=e=>Mo(e)||h_.has(e)||f_.test(e),Er=e=>wi(e,"length",N_),Mo=e=>!!e&&!Number.isNaN(Number(e)),xd=e=>wi(e,"number",Mo),Ii=e=>!!e&&Number.isInteger(Number(e)),x_=e=>e.endsWith("%")&&Mo(e.slice(0,-1)),ie=e=>ij.test(e),Nr=e=>p_.test(e),w_=new Set(["length","size","percentage"]),b_=e=>wi(e,w_,aj),j_=e=>wi(e,"position",aj),S_=new Set(["image","url"]),C_=e=>wi(e,S_,T_),E_=e=>wi(e,"",P_),Fi=()=>!0,wi=(e,t,n)=>{const r=ij.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},N_=e=>m_.test(e)&&!g_.test(e),aj=()=>!1,P_=e=>v_.test(e),T_=e=>y_.test(e),k_=()=>{const e=Pe("colors"),t=Pe("spacing"),n=Pe("blur"),r=Pe("brightness"),s=Pe("borderColor"),i=Pe("borderRadius"),a=Pe("borderSpacing"),l=Pe("borderWidth"),c=Pe("contrast"),u=Pe("grayscale"),f=Pe("hueRotate"),h=Pe("invert"),p=Pe("gap"),m=Pe("gradientColorStops"),x=Pe("gradientColorStopPositions"),g=Pe("inset"),b=Pe("margin"),v=Pe("opacity"),y=Pe("padding"),w=Pe("saturate"),j=Pe("scale"),S=Pe("sepia"),P=Pe("skew"),N=Pe("space"),E=Pe("translate"),_=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",ie,t],L=()=>[ie,t],G=()=>["",Qn,Er],V=()=>["auto",Mo,ie],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",ie],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[Mo,ie];return{cacheSize:500,separator:":",theme:{colors:[Fi],spacing:[Qn,Er],blur:["none","",Nr,ie],brightness:ee(),borderColor:[e],borderRadius:["none","","full",Nr,ie],borderSpacing:L(),borderWidth:G(),contrast:ee(),grayscale:F(),hueRotate:ee(),invert:F(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[x_,Er],inset:O(),margin:O(),opacity:ee(),padding:L(),saturate:ee(),scale:ee(),sepia:F(),skew:ee(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Nr]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),ie]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}
vendor: 9,949 bytes, line 344
344],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ii,ie]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",Ii,ie]}],"grid-cols":[{"grid-cols":[Fi]}],"col-start-end":[{col:["auto",{span:["full",Ii,ie]},ie]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[Fi]}],"row-start-end":[{row:["auto",{span:[Ii,ie]},ie]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[Nr]},Nr]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Nr,Er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xd]}],"font-family":[{font:[Fi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",Mo,xd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qn,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qn,Er]}],"underline-offset":[{"underline-offset":["auto",Qn,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),j_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},C_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:z()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[Qn,ie]}],"outline-w":[{outline:[Qn,Er]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Qn,Er]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nr,E_]}],"shadow-color":[{shadow:[Fi]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Nr,ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[Ii,ie]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
344],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qn,Er,xd]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},R_=d_(k_);function K(...e){return R_(Q1(e))}const A_=xA,lj=d.forwardRef(({className:e,...t},n)=>o.jsx(B1,{ref:n,className:K("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]",e),...t}));lj.displayName=B1.displayName;const __=xi("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"}}),cj=d.forwardRef(({className:e,variant:t,...n},r)=>o.jsx(U1,{ref:r,className:K(__({variant:t}),e),...n}));cj.displayName=U1.displayName;const D_=d.forwardRef(({className:e,...t},n)=>o.jsx(K1,{ref:n,className:K("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",e),...t}));D_.displayName=K1.displayName;const uj=d.forwardRef(({className:e,...t},n)=>o.jsx(q1,{ref:n,className:K("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,160 bytes, line 344
344/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",e),"toast-close":"",...t,children:o.jsx(Ke,{className:"h-4 w-4"})}));uj.displayName=q1.displayName;const dj=d.forwardRef(({className:e,...t},n)=>o.jsx(W1,{ref:n,className:K("text-sm font-semibold",e),...t}));dj.displayName=W1.displayName;const fj=d.forwardRef(({className:e,...t},n)=>o.jsx(H1,{ref:n,className:K("text-sm opacity-90",e),...t}));fj.displayName=H1.displayName;function O_(){const{toasts:e}=Wp();return o.jsxs(A_,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return o.jsxs(cj,{...i,children:[o.jsxs("div",{className:"grid gap-1",children:[n&&o.jsx(dj,{children:n}),r&&o.jsx(fj,{children:r})]}),s,o.jsx(uj,{})]},t)}),o.jsx(lj,{})]})}var M_=H0[" useId ".trim().toString()]||(()=>{}),L_=0;function es(e){const[t,n]=d.useState(M_());return it(()=>{n(r=>r??String(L_++))},[e]),t?`radix-${t}`:""}const I_=["top","right","bottom","left"],ls=Math.min,Ft=Math.max,Tc=Math.round,Cl=Math.floor,$n=e=>({x:e,y:e}),F_={left:"right",right:"left",bottom:"top",top:"bottom"},V_={start:"end",end:"start"};function dh(e,t,n){return Ft(e,ls(t,n))}function dr(e,t){return typeof e=="function"?e(t):e}function fr(e){return e.split("-")[0]}function bi(e){return e.split("-")[1]}function nm(e){return e==="x"?"y":"x"}function rm(e){return e==="y"?"height":"width"}function cs(e){return["top","bottom"].includes(fr(e))?"y":"x"}function sm(e){return nm(cs(e))}function z_(e,t,n){n===void 0&&(n=!1);const r=bi(e),s=sm(e),i=rm(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=kc(a)),[a,kc(a)]}function $_(e){const t=kc(e);return[fh(e),t,fh(t)]}function fh(e){return e.replace(/start|end/g,t=>V_[t])}function B_(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:a;default:return[]}}function U_(e,t,n,r){const s=bi(e);let i=B_(fr(e),n==="start",r);return s&&(i=i.map(a=>a+"-"+s),t&&(i=i.concat(i.map(fh)))),i}function kc(e){return e.replace(/left|right|bottom|top/g,t=>F_[t])}function W_(e){return{top:0,right:0,bottom:0,left:0,...e}}function hj(e){return typeof e!="number"?W_(e):{top:e,right:e,bottom:e,left:e}}function Rc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Ey(e,t,n){let{reference:r,floating:s}=e;const i=cs(t),a=sm(t),l=rm(a),c=fr(t),u=i==="y",f=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,p=r[l]/2-s[l]/2;let m;switch(c){case"top":m={x:f,y:r.y-s.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-s.width,y:h};break;default:m={x:r.x,y:r.y}}switch(bi(t)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const H_=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:h}=Ey(u,r,c),p=r,m={},x=0;for(let g=0;g<l.length;g++){const{name:b,fn:v}=l[g],{x:y,y:w,data:j,reset:S}=await v({x:f,y:h,initialPlacement:r,placement:p,strategy:s,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});f=y??f,h=w??h,m={...m,[b]:{...m[b],...j}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(u=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:f,y:h}=Ey(u,p,c)),g=-1)}return{x:f,y:h,placement:p,strategy:s,middlewareData:m}};async function Ea(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=dr(t,e),x=hj(m),b=l[p?h==="floating"?"reference":"floating":h],v=Rc(await i.getClippingRect
vendor: 7,262 bytes, line 344
344({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),y=h==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),j=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Rc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:c}):y);return{top:(v.top-S.top+x.top)/j.y,bottom:(S.bottom-v.bottom+x.bottom)/j.y,left:(v.left-S.left+x.left)/j.x,right:(S.right-v.right+x.right)/j.x}}const K_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:f=0}=dr(e,t)||{};if(u==null)return{};const h=hj(f),p={x:n,y:r},m=sm(s),x=rm(m),g=await a.getDimensions(u),b=m==="y",v=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",j=i.reference[x]+i.reference[m]-p[m]-i.floating[x],S=p[m]-i.reference[m],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=P?P[w]:0;(!N||!await(a.isElement==null?void 0:a.isElement(P)))&&(N=l.floating[w]||i.floating[x]);const E=j/2-S/2,_=N/2-g[x]/2-1,T=ls(h[v],_),O=ls(h[y],_),L=T,G=N-g[x]-O,V=N/2-g[x]/2+E,J=dh(L,V,G),z=!c.arrow&&bi(s)!=null&&V!==J&&i.reference[x]/2-(V<L?T:O)-g[x]/2<0,W=z?V<L?V-L:V-G:0;return{[m]:p[m]+W,data:{[m]:J,centerOffset:V-J-W,...z&&{alignmentOffset:W}},reset:z}}}),q_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...b}=dr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=fr(s),y=cs(l),w=fr(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=p||(w||!g?[kc(l)]:$_(l)),P=x!=="none";!p&&P&&S.push(...U_(l,g,x,j));const N=[l,...S],E=await Ea(t,b),_=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&_.push(E[v]),h){const V=z_(s,a,j);_.push(E[V[0]],E[V[1]])}if(T=[...T,{placement:s,overflows:_}],!_.every(V=>V<=0)){var O,L;const V=(((O=i.flip)==null?void 0:O.index)||0)+1,J=N[V];if(J)return{data:{index:V,overflows:T},reset:{placement:J}};let z=(L=T.filter(W=>W.overflows[0]<=0).sort((W,D)=>W.overflows[1]-D.overflows[1])[0])==null?void 0:L.placement;if(!z)switch(m){case"bestFit":{var G;const W=(G=T.filter(D=>{if(P){const F=cs(D.placement);return F===y||F==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(F=>F>0).reduce((F,$)=>F+$,0)]).sort((D,F)=>D[1]-F[1])[0])==null?void 0:G[0];W&&(z=W);break}case"initialPlacement":z=l;break}if(s!==z)return{reset:{placement:z}}}return{}}}};function Ny(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Py(e){return I_.some(t=>e[t]>=0)}const G_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=dr(e,t);switch(r){case"referenceHidden":{const i=await Ea(t,{...s,elementContext:"reference"}),a=Ny(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Py(a)}}}case"escaped":{const i=await Ea(t,{...s,altBoundary:!0}),a=Ny(i,n.floating);return{data:{escapedOffsets:a,escaped:Py(a)}}}default:return{}}}}};async function Q_(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=fr(n),l=bi(n),c=cs(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,h=dr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(m=l==="end"?x*-1:x),c?{x:m*f,y:p*u}:{x:p*u,y:m*f}}const Y_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:a,middlewareData:l}=t,c=await Q_(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:a}}}}},X_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:v,y}=b;return{x:v,y}}},...c}=dr(e,t),u={x:n,y:r},f=await Ea(t,c),h=cs(fr(s)),p=nm(h);let m=u[p],x=u[h];if(i){const b=p==="y"?"top":"left",v=p==="y"?"bottom":"right",y=m+f[b],w=m-f[v];m=dh(y,m,w)}if(a){const b=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=x+f[b],w=x-f[v];x=dh(y,x,w)}const g=l.fn({...t,[p]:m,[h]:x});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[h]:a}}}}}},Z_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=dr(e,t),f={x:n,y:r},h=cs(s),p=nm(h);let m=f[p],x=f[h];const g=dr(l,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const w=p==="y"?"height":"width",j=i.reference[p]-i.floating[w]+b.mainAxis,S=i.reference[p]+i.reference[w]-b.mainAxis;m<j?m=j:m>S&&(m=S)}if(u){var v,y;const w=p==="y"?"width":"height",j=["top","left"].includes(fr(s)),S=i.reference[h]-i.floating[w]+(j&&((v=a.offset)==null?void 0:v[h])||0)+(j?0:b.crossAxis),P=i.reference[h]+i.reference[w]+(j?0:((y=a.offset)==null?void 0:y[h])||0)-(j?b.crossAxis:0);x<S?x=S:x>P&&(x=P)}return{[p]:m,[h]:x}}}},J_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:a,elements:l}=t,{apply:c=()=>{},...u}=dr(e,t),f=await Ea(t,u),h=fr(s),p=bi(s),m=cs(s)==="y",{width:x,height:g}=i.floating;let b,v;h==="top"||h==="bottom"?(b=h,v=p===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(v=h,b=p==="end"?"top":"bottom");const y=g-f.top-f.bottom,w=x-f.left-f.right,j=ls(g-f[b],y),S=ls(x-f[v],w),P=!t.middlewareData.shift;let N=j,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=y),P&&!p){const T=Ft(f.left,0),O=Ft(f.right,0),L=Ft(f.top,0),G=Ft(f.bottom,0);m?E=x-2*(T!==0||O!==0?T+O:Ft(f.left,f.right)):N=g-2*(L!==0||G!==0?L+G:Ft(f.top,f.bottom))}await c({...t,availableWidth:E,availableHeight:N});const _=await a.getDimensions(l.floating);return x!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function cu(){return typeof window<"u"}function ji(e){return pj(e)?(e.nodeName||"").toLowerCase():"#document"}function $t(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qn(e){var t;return(t=(pj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pj(e){return cu()?e instanceof Node||e instanceof $t(e).Node:!1}function Cn(e){return cu()?e instanceof Element||e instanceof $t(e).Element:!1}function Hn(e){return cu()?e instanceof HTMLElement||e instanceof $t(e).HTMLElement:!1}function Ty(e){return!cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $t(e).ShadowRoot}function Ba(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=En(e);
vendor: 8,865 bytes, line 344
344return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function eD(e){return["table","td","th"].includes(ji(e))}function uu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function om(e){const t=im(),n=Cn(e)?En(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function tD(e){let t=us(e);for(;Hn(t)&&!li(t);){if(om(t))return t;if(uu(t))return null;t=us(t)}return null}function im(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function li(e){return["html","body","#document"].includes(ji(e))}function En(e){return $t(e).getComputedStyle(e)}function du(e){return Cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function us(e){if(ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ty(e)&&e.host||qn(e);return Ty(t)?t.host:t}function mj(e){const t=us(e);return li(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hn(t)&&Ba(t)?t:mj(t)}function Na(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=mj(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),a=$t(s);if(i){const l=hh(a);return t.concat(a,a.visualViewport||[],Ba(s)?s:[],l&&n?Na(l):[])}return t.concat(s,Na(s,[],n))}function hh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gj(e){const t=En(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Hn(e),i=s?e.offsetWidth:n,a=s?e.offsetHeight:r,l=Tc(n)!==i||Tc(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function am(e){return Cn(e)?e:e.contextElement}function Lo(e){const t=am(e);if(!Hn(t))return $n(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=gj(t);let a=(i?Tc(n.width):n.width)/r,l=(i?Tc(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const nD=$n(0);function vj(e){const t=$t(e);return!im()||!t.visualViewport?nD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$t(e)?!1:t}function qs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=am(e);let a=$n(1);t&&(r?Cn(r)&&(a=Lo(r)):a=Lo(e));const l=rD(i,n,r)?vj(i):$n(0);let c=(s.left+l.x)/a.x,u=(s.top+l.y)/a.y,f=s.width/a.x,h=s.height/a.y;if(i){const p=$t(i),m=r&&Cn(r)?$t(r):r;let x=p,g=hh(x);for(;g&&r&&m!==x;){const b=Lo(g),v=g.getBoundingClientRect(),y=En(g),w=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,j=v.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,u*=b.y,f*=b.x,h*=b.y,c+=w,u+=j,x=$t(g),g=hh(x)}}return Rc({width:f,height:h,x:c,y:u})}function lm(e,t){const n=du(e).scrollLeft;return t?t.left+n:qs(qn(e)).left+n}function yj(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:lm(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function sD(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",a=qn(r),l=t?uu(t.floating):!1;if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=$n(1);const f=$n(0),h=Hn(r);if((h||!h&&!i)&&((ji(r)!=="body"||Ba(a))&&(c=du(r)),Hn(r))){const m=qs(r);u=Lo(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const p=a&&!h&&!i?yj(a,c,!0):$n(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-c.scrollTop*u.y+f.y+p.y}}function oD(e){return Array.from(e.getClientRects())}function iD(e){const t=qn(e),n=du(e),r=e.ownerDocument.body,s=Ft(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ft(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+lm(e);const l=-n.scrollTop;return En(r).direction==="rtl"&&(a+=Ft(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:a,y:l}}function aD(e,t){const n=$t(e),r=qn(e),s=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;const u=im();(!u||u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l,y:c}}function lD(e,t){const n=qs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Hn(e)?Lo(e):$n(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,u=r*i.y;return{width:a,height:l,x:c,y:u}}function ky(e,t,n){let r;if(t==="viewport")r=aD(e,n);else if(t==="document")r=iD(qn(e));else if(Cn(t))r=lD(t,n);else{const s=vj(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Rc(r)}function xj(e,t){const n=us(e);return n===t||!Cn(n)||li(n)?!1:En(n).position==="fixed"||xj(n,t)}function cD(e,t){const n=t.get(e);if(n)return n;let r=Na(e,[],!1).filter(l=>Cn(l)&&ji(l)!=="body"),s=null;const i=En(e).position==="fixed";let a=i?us(e):e;for(;Cn(a)&&!li(a);){const l=En(a),c=om(a);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ba(a)&&!c&&xj(e,a))?r=r.filter(f=>f!==a):s=l,a=us(a)}return t.set(e,r),r}function uD(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?uu(t)?[]:cD(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,f)=>{const h=ky(t,f,s);return u.top=Ft(h.top,u.top),u.right=ls(h.right,u.right),u.bottom=ls(h.bottom,u.bottom),u.left=Ft(h.left,u.left),u},ky(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function dD(e){const{width:t,height:n}=gj(e);return{width:t,height:n}}function fD(e,t,n){const r=Hn(t),s=qn(t),i=n==="fixed",a=qs(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=$n(0);if(r||!r&&!i)if((ji(t)!=="body"||Ba(s))&&(l=du(t)),r){const p=qs(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else s&&(c.x=lm(s));const u=s&&!r&&!i?yj(s,l):$n(0),f=a.left+l.scrollLeft-c.x-u.x,h=a.top+l.scrollTop-c.y-u.y;return{x:f,y:h,width:a.width,height:a.height}}function wd(e){return En(e).position==="static"}function Ry(e,t){if(!Hn(e)||En(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qn(e)===n&&(n=n.ownerDocument.body),n}function wj(e,t){const n=$t(e);if(uu(e))return n;if(!Hn(e)){let s=us(e);for(;s&&!li(s);){if(Cn(s)&&!wd(s))return s;s=us(s)}return n}let r=Ry(e,t);for(;r&&eD(r)&&wd(r);)r=Ry(r,t);return r&&li(r)&&wd(r)&&!om(r)?n:r||tD(e)||n}const hD=async function(e){const t=this.getOffsetParent||wj,n=this.getDimensions,r=await n(e.floating);return{reference:fD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pD(e){return En(e).direction==="rtl"}const mD={convertOffsetParentRelativeRectToViewportRelativeRect:sD,getDocumentElement:qn,getClippingRect:uD,getOffsetParent:wj,getElementRects:hD,getClientRects:oD,getDimensions:dD,getScale:Lo,isElement:Cn,isRTL:pD};function bj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gD(e,t){let n=null,r;const s=qn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:h,width:p,height:m}=u;if(l||t(),!p||!m)return;const x=Cl(h),g=Cl(s.clientWidth-(f+p)),b=Cl(s.clientHeight-(h+m)),v=Cl(f),w={rootMargin:-x+"px "+-g+"px "+-b+"px "+-v+"px",threshold:Ft(0,ls(1,c))||1};let j=!0;function S(P){const N=P[0].intersectionRatio;if(N!==c){if(!j)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!bj(u,e.getBoundingClientRect())&&a(),j=!1}try{n=new IntersectionObserver(S,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return a(!0),i}function vD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=am(e),f=s||i?[...u?Na(u):[],...Na(t)]:[];f.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const h=u&&l?gD(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let x,g=c?qs(e):null;c&&b();function b(){const v=qs(e);g&&!bj(g,v)&&n(),g=v,x=requestAnimationFrame(b)}return n(),()=>{var v;f.forEach(y=>{s&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),h==null||h(),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(x)}}const yD=Y_,xD=X_,wD=q_,bD=J_,jD=G_,Ay=K_,SD=Z_,CD=(e,t,n)=>{const r=new Map,s={platform:mD,...n},i={...s.platform,_c:r};return H_(e,t,{...s,platform:i})};var Ql=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Ac(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 344
344if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ac(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Ac(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function jj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _y(e,t){const n=jj(e);return Math.round(t*n)/n}function bd(e){const t=d.useRef(e);return Ql(()=>{t.current=e}),t}function ED(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=d.useState(r);Ac(p,r)||m(r);const[x,g]=d.useState(null),[b,v]=d.useState(null),y=d.useCallback(D=>{D!==P.current&&(P.current=D,g(D))},[]),w=d.useCallback(D=>{D!==N.current&&(N.current=D,v(D))},[]),j=i||x,S=a||b,P=d.useRef(null),N=d.useRef(null),E=d.useRef(f),_=c!=null,T=bd(c),O=bd(s),L=bd(u),G=d.useCallback(()=>{if(!P.current||!N.current)return;const D={placement:t,strategy:n,middleware:p};O.current&&(D.platform=O.current),CD(P.current,N.current,D).then(F=>{const $={...F,isPositioned:L.current!==!1};V.current&&!Ac(E.current,$)&&(E.current=$,Zs.flushSync(()=>{h($)}))})},[p,t,n,O,L]);Ql(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(D=>({...D,isPositioned:!1})))},[u]);const V=d.useRef(!1);Ql(()=>(V.current=!0,()=>{V.current=!1}),[]),Ql(()=>{if(j&&(P.current=j),S&&(N.current=S),j&&S){if(T.current)return T.current(j,S,G);G()}},[j,S,G,T,_]);const J=d.useMemo(()=>({reference:P,floating:N,setReference:y,setFloating:w}),[y,w]),z=d.useMemo(()=>({reference:j,floating:S}),[j,S]),W=d.useMemo(()=>{const D={position:n,left:0,top:0};if(!z.floating)return D;const F=_y(z.floating,f.x),$=_y(z.floating,f.y);return l?{...D,transform:"translate("+F+"px, "+$+"px)",...jj(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:$}},[n,l,z.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:G,refs:J,elements:z,floatingStyles:W}),[f,G,J,z,W])}const ND=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ay({element:r.current,padding:s}).fn(n):{}:r?Ay({element:r,padding:s}).fn(n):{}}}},PD=(e,t)=>({...yD(e),options:[e,t]}),TD=(e,t)=>({...xD(e),options:[e,t]}),kD=(e,t)=>({...SD(e),options:[e,t]}),RD=(e,t)=>({...wD(e),options:[e,t]}),AD=(e,t)=>({...bD(e),options:[e,t]}),_D=(e,t)=>({...jD(e),options:[e,t]}),DD=(e,t)=>({...ND(e),options:[e,t]});var OD="Arrow",Sj=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return o.jsx(se.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});Sj.displayName=OD;var MD=Sj;function cm(e){const[t,n]=d.useState(void 0);return it(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let a,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var um="Popper",[Cj,fu]=ln(um),[LD,Ej]=Cj(um),Nj=e=>{const{__scopePopper:t,children:n}=e,[r,s]=d.useState(null);return o.jsx(LD,{scope:t,anchor:r,onAnchorChange:s,children:n})};Nj.displayName=um;var Pj="PopperAnchor",Tj=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Ej(Pj,n),a=d.useRef(null),l=de(t,a);return d.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:o.jsx(se.div,{...s,ref:l})});Tj.displayName=Pj;var dm="PopperContent",[ID,FD]=Cj(dm),kj=d.forwardRef((e,t)=>
344{var Y,we,U,ce,ae,ve;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:x,...g}=e,b=Ej(dm,n),[v,y]=d.useState(null),w=de(t,gt=>y(gt)),[j,S]=d.useState(null),P=cm(j),N=(P==null?void 0:P.width)??0,E=(P==null?void 0:P.height)??0,_=r+(i!=="center"?"-"+i:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(u)?u:[u],L=O.length>0,G={padding:T,boundary:O.filter(zD),altBoundary:L},{refs:V,floatingStyles:J,placement:z,isPositioned:W,middlewareData:D}=ED({strategy:"fixed",placement:_,whileElementsMounted:(...gt)=>vD(...gt,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[PD({mainAxis:s+E,alignmentAxis:a}),c&&TD({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?kD():void 0,...G}),c&&RD({...G}),AD({...G,apply:({elements:gt,rects:Ct,availableWidth:yr,availableHeight:xr})=>{const{width:Pn,height:Au}=Ct.reference,no=gt.floating.style;no.setProperty("--radix-popper-available-width",`${yr}px`),no.setProperty("--radix-popper-available-height",`${xr}px`),no.setProperty("--radix-popper-anchor-width",`${Pn}px`),no.setProperty("--radix-popper-anchor-height",`${Au}px`)}}),j&&DD({element:j,padding:l}),$D({arrowWidth:N,arrowHeight:E}),p&&_D({strategy:"referenceHidden",...G})]}),[F,$]=_j(z),ee=Ue(x);it(()=>{W&&(ee==null||ee())},[W,ee]);const pe=(Y=D.arrow)==null?void 0:Y.x,Ae=(we=D.arrow)==null?void 0:we.y,Ce=((U=D.arrow)==null?void 0:U.centerOffset)!==0,[Ye,Le]=d.useState();return it(()=>{v&&Le(window.getComputedStyle(v).zIndex)},[v]),o.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:W?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ye,"--radix-popper-transform-origin":[(ce=D.transformOrigin)==null?void 0:ce.x,(ae=D.transformOrigin)==null?void 0:ae.y].join(" "),...((ve=D.hide)==null?void 0:ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(ID,{scope:n,placedSide:F,onArrowChange:S,arrowX:pe,arrowY:Ae,shouldHideArrow:Ce,children:o.jsx(se.div,{"data-side":F,"data-align":$,...g,ref:w,style:{...g.style,animation:W?void 0:"none"}})})})});kj.displayName=dm;var Rj="PopperArrow",VD={top:"bottom",right:"left",bottom:"top",left:"right"},Aj=d.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=FD(Rj,r),a=VD[i.placedSide];return o.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:o.jsx(MD,{...s,ref:n,style:{...s.style,display:"block"}})})});Aj.displayName=Rj;function zD(e){return e!==null}var $D=e=>({name:"transformOrigin",options:e,fn(t){var b,v,y;const{placement:n,rects:r,middlewareData:s}=t,a=((b=s.arrow)==null?void 0:b.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=_j(n),h={start:"0%",center:"50%",end:"100%"}[f],p=(((v=s.arrow)==null?void 0:v.x)??0)+l/2,m=(((y=s.arrow)==null?void 0:y.y)??0)+c/2;let x="",g="";return u==="bottom"?(x=a?h:`${p}px`,g=`${-c}px`):u==="top"?(x=a?h:`${p}px`,g=`${r.floating.height+c}px`):u==="right"?(x=`${-c}px`,g=a?h:`${m}px`):u==="left"&&(x=`${r.floating.width+c}px`,g=a?h:`${m}px`),{data:{x,y:g}}}});function _j(e){const[t,n="center"]=e.split("-");return[t,n]}var Dj=Nj,Oj=Tj,Mj=kj,Lj=Aj,[hu,S8]=ln("Tooltip",[fu]),pu=fu(),Ij="TooltipProvider",BD=700,ph="tooltip.open",[UD,fm]=hu(Ij),Fj=e=>{const{__scopeTooltip:t,delayDuration:n=BD,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,a=d.useRef(!0),l=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),o.jsx(UD,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:d.useCallback(u=>{l.current=u},[]),disableHoverableContent:s,children:i})};Fj.displayName=Ij;var mu="Tooltip",[WD,gu]=hu(mu),Vj=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:l}=e,c=fm(mu,e.__scopeTooltip),u=pu(t),[f,h]=d.useState(null),p=es(),m=d.useRef(0),x=a??c.disableHoverableContent,g=l??c.delayDuration,b=d.useRef(!1),[v=!1,y]=as({prop:r,defaultProp:s,onChange:N=>{N?(c.onOpen(),document.dispatchEvent(new CustomEvent(ph))):c.onClose(),i==null||i(N)}}),w=d.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),j=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b.current=!1,y(!0)},[y]),S=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),P=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{b.current=!0,y(!0),m.current=0},g)},[g,y]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),o.jsx(Dj,{...u,children:o.jsx(WD,{scope:t,contentId:p,open:v,stateAttribute:w,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayedRef.current?P():j()},[c.isOpenDelayedRef,P,j]),onTriggerLeave:d.useCallback(()=>{x?S():(window.clearTimeout(m.current),m.current=0)},[S,x]),onOpen:j,onClose:S,disableHoverableContent:x,children:n})})};Vj.displayName=mu;var mh="TooltipTrigger",zj=d.forwardRef((e,t)=>
vendor: 5,614 bytes, line 344
344{const{__scopeTooltip:n,...r}=e,s=gu(mh,n),i=fm(mh,n),a=pu(n),l=d.useRef(null),c=de(t,l,s.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),o.jsx(Oj,{asChild:!0,...a,children:o.jsx(se.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:Q(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),f.current=!0)}),onPointerLeave:Q(e.onPointerLeave,()=>{s.onTriggerLeave(),f.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:Q(e.onBlur,s.onClose),onClick:Q(e.onClick,s.onClose)})})});zj.displayName=mh;var HD="TooltipPortal",[C8,KD]=hu(HD,{forceMount:void 0}),ci="TooltipContent",$j=d.forwardRef((e,t)=>{const n=KD(ci,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,a=gu(ci,e.__scopeTooltip);return o.jsx(cn,{present:r||a.open,children:a.disableHoverableContent?o.jsx(Bj,{side:s,...i,ref:t}):o.jsx(qD,{side:s,...i,ref:t})})}),qD=d.forwardRef((e,t)=>{const n=gu(ci,e.__scopeTooltip),r=fm(ci,e.__scopeTooltip),s=d.useRef(null),i=de(t,s),[a,l]=d.useState(null),{trigger:c,onClose:u}=n,f=s.current,{onPointerInTransitChange:h}=r,p=d.useCallback(()=>{l(null),h(!1)},[h]),m=d.useCallback((x,g)=>{const b=x.currentTarget,v={x:x.clientX,y:x.clientY},y=ZD(v,b.getBoundingClientRect()),w=JD(v,y),j=eO(g.getBoundingClientRect()),S=nO([...w,...j]);l(S),h(!0)},[h]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(c&&f){const x=b=>m(b,f),g=b=>m(b,c);return c.addEventListener("pointerleave",x),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",g)}}},[c,f,m,p]),d.useEffect(()=>{if(a){const x=g=>{const b=g.target,v={x:g.clientX,y:g.clientY},y=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),w=!tO(v,a);y?p():w&&(p(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,f,a,u,p]),o.jsx(Bj,{...e,ref:i})}),[GD,QD]=hu(mu,{isInside:!1}),YD=C1("TooltipContent"),Bj=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,c=gu(ci,n),u=pu(n),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(ph,f),()=>document.removeEventListener(ph,f)),[f]),d.useEffect(()=>{if(c.trigger){const h=p=>{const m=p.target;m!=null&&m.contains(c.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,f]),o.jsx($a,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:o.jsxs(Mj,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[o.jsx(YD,{children:r}),o.jsx(GD,{scope:n,isInside:!0,children:o.jsx(tA,{id:c.contentId,role:"tooltip",children:s||r})})]})})});$j.displayName=ci;var Uj="TooltipArrow",XD=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=pu(n);return QD(Uj,n).isInside?null:o.jsx(Lj,{...s,...r,ref:t})});XD.displayName=Uj;function ZD(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function JD(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function eO(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function tO(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i].x,c=t[i].y,u=t[a].x,f=t[a].y;c>r!=f>r&&n<(u-l)*(r-c)/(f-c)+l&&(s=!s)}return s}function nO(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),rO(t)}function rO(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var sO=Fj,oO=Vj,iO=zj,Wj=$j;const Hj=sO,aO=oO,lO=iO,Kj=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(Wj,{ref:r,sideOffset:t,className:K("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
344de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n}));Kj.displayName=Wj.displayName;const an=d.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:K("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",e),...t}));an.displayName="Card";const cO=d.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:K("flex flex-col space-y-1.5 p-6",e),...t}));cO.displayName="CardHeader";const uO=d.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:K("text-2xl font-semibold leading-none tracking-tight",e),...t}));uO.displayName="CardTitle";const dO=d.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:K("text-sm text-muted-foreground",e),...t}));dO.displayName="CardDescription";const qj=d.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:K("p-6 pt-0",e),...t}));qj.displayName="CardContent";const fO=d.forwardRef(({className:e,...t},n)=>o.jsx("div",{ref:n,className:K("flex items-center p-6 pt-0",e),...t}));fO.displayName="CardFooter";function Gj(){return o.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:o.jsx(an,{className:"w-full max-w-md mx-4",children:o.jsxs(qj,{className:"pt-6",children:[o.jsxs("div",{className:"flex mb-4 gap-2",children:[o.jsx(Z1,{className:"h-8 w-8 text-red-500"}),o.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),o.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}const hm=xi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground border border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),q=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const a=r?Hp:"button";return o.jsx(a,{className:K(hm({variant:t,size:n,className:e})),ref:i,...s})});q.displayName="Button";const ts=d.forwardRef(({className:e,type:t,...n},r)=>o.jsx("input",{type:t,"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",className:K("flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));ts.displayName="Input";function hO({onStart:e}){const[t,n]=d.useState(""),r=s=>{s.preventDefault(),t.trim()&&e(t.trim())};return o.jsxs("div",{className:"relative min-h-screen flex items-center justify-center overflow-hidden",children:[o.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/90 via-primary/70 to-primary/50 z-10"}),o.jsx("img",{src:"/winery-aerial.webp",alt:"Nashoba Valley Winery Aerial View",className:"absolute inset-0 w-full h-full object-cover"}),o.jsxs("div",{className:"relative z-20 w-full max-w-2xl px-6 text-center",children:[o.jsx("div",{className:"mb-8 flex justify-center",children:o.jsx("img",{src:"/nvw-logo.png",alt:"Nashoba Valley Winery Logo",className:"w-48 h-auto object-contain drop-shadow-2xl",style:{mixBlendMode:"multiply"}})}),o.jsxs("h1",{className:"font-serif text-4xl md:text-5xl font-light text-primary-foreground mb-4 tracking-wide leading-tight",children:["Welcome to Nashoba Valley Winery, Distillery and Brewery",o.jsx("br",{}),"Tasting Room"]}
vendor: 4,364 bytes, line 344
344),o.jsx("p",{className:"text-xl text-primary-foreground/90 mb-12 font-light",children:"Your personal tasting companion"}),o.jsxs("form",{onSubmit:r,className:"space-y-4",children:[o.jsx("div",{className:"bg-background/95 backdrop-blur-md rounded-lg p-1 shadow-xl",children:o.jsx(ts,{type:"text",placeholder:"Enter your name",value:t,onChange:s=>n(s.target.value),className:"text-center text-lg border-0 bg-transparent focus-visible:ring-0 py-6","data-testid":"input-guest-name",autoFocus:!0})}),o.jsx(q,{type:"submit",size:"lg",className:"w-full py-6 text-lg font-medium",disabled:!t.trim(),"data-testid":"button-start-tasting",children:"Begin Your Tasting Experience"})]}),o.jsx("p",{className:"mt-8 text-sm text-primary-foreground/70",children:"Discover personalized recommendations ⢠Earn rewards through trivia ⢠Build your perfect selection"})]})]})}var jd="focusScope.autoFocusOnMount",Sd="focusScope.autoFocusOnUnmount",Dy={bubbles:!1,cancelable:!0},pO="FocusScope",pm=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=e,[l,c]=d.useState(null),u=Ue(s),f=Ue(i),h=d.useRef(null),p=de(t,g=>c(g)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let g=function(w){if(m.paused||!l)return;const j=w.target;l.contains(j)?h.current=j:kr(h.current,{select:!0})},b=function(w){if(m.paused||!l)return;const j=w.relatedTarget;j!==null&&(l.contains(j)||kr(h.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&kr(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const y=new MutationObserver(v);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),y.disconnect()}}},[r,l,m.paused]),d.useEffect(()=>{if(l){My.add(m);const g=document.activeElement;if(!l.contains(g)){const v=new CustomEvent(jd,Dy);l.addEventListener(jd,u),l.dispatchEvent(v),v.defaultPrevented||(mO(wO(Qj(l)),{select:!0}),document.activeElement===g&&kr(l))}return()=>{l.removeEventListener(jd,u),setTimeout(()=>{const v=new CustomEvent(Sd,Dy);l.addEventListener(Sd,f),l.dispatchEvent(v),v.defaultPrevented||kr(g??document.body,{select:!0}),l.removeEventListener(Sd,f),My.remove(m)},0)}}},[l,u,f,m]);const x=d.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(b&&v){const y=g.currentTarget,[w,j]=gO(y);w&&j?!g.shiftKey&&v===j?(g.preventDefault(),n&&kr(w,{select:!0})):g.shiftKey&&v===w&&(g.preventDefault(),n&&kr(j,{select:!0})):v===y&&g.preventDefault()}},[n,r,m.paused]);return o.jsx(se.div,{tabIndex:-1,...a,ref:p,onKeyDown:x})});pm.displayName=pO;function mO(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(kr(r,{select:t}),document.activeElement!==n)return}function gO(e){const t=Qj(e),n=Oy(t,e),r=Oy(t.reverse(),e);return[n,r]}function Qj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Oy(e,t){for(const n of e)if(!vO(n,{upTo:t}))return n}function vO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yO(e){return e instanceof HTMLInputElement&&"select"in e}function kr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yO(e)&&t&&e.select()}}var My=xO();function xO(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ly(e,t),e.unshift(t)},remove(t){var n;e=Ly(e,t),(n=e[0])==null||n.resume()}}}function Ly(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wO(e){return e.filter(t=>t.tagName!=="A")}var Cd=0;function Yj(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Iy()),document.body.insertAdjacentElement("beforeend",e[1]??Iy()),Cd++,()=>{Cd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>
vendor: 5,795 bytes, lines 344-359
344t.remove()),Cd--}},[])}function Iy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Fn=function(){return Fn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Fn.apply(this,arguments)};function Xj(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function bO(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Yl="right-scroll-bar-position",Xl="width-before-scroll-bar",jO="with-scroll-bars-hidden",SO="--removed-body-scroll-bar-size";function Ed(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CO(e,t){var n=d.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var EO=typeof window<"u"?d.useLayoutEffect:d.useEffect,Fy=new WeakMap;function NO(e,t){var n=CO(null,function(r){return e.forEach(function(s){return Ed(s,r)})});return EO(function(){var r=Fy.get(n);if(r){var s=new Set(r),i=new Set(e),a=n.current;s.forEach(function(l){i.has(l)||Ed(l,null)}),i.forEach(function(l){s.has(l)||Ed(l,a)})}Fy.set(n,e)},[e]),n}function PO(e){return e}function TO(e,t){t===void 0&&(t=PO);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return s}function kO(e){e===void 0&&(e={});var t=TO(null);return t.options=Fn({async:!0,ssr:!1},e),t}var Zj=function(e){var t=e.sideCar,n=Xj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Fn({},n))};Zj.isSideCarExport=!0;function RO(e,t){return e.useMedium(t),Zj}var Jj=kO(),Nd=function(){},vu=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Nd,onWheelCapture:Nd,onTouchMoveCapture:Nd}),s=r[0],i=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,m=e.noIsolation,x=e.inert,g=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,y=e.gapMode,w=Xj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,S=NO([n,t]),P=Fn(Fn({},w),s);return d.createElement(d.Fragment,null,f&&d.createElement(j,{sideCar:Jj,removeScrollBar:u,shards:h,noIsolation:m,inert:x,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:y}),a?d.cloneElement(d.Children.only(l),Fn(Fn({},P),{ref:S})):d.createElement(v,Fn({},P,{className:c,ref:S}),l))});vu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vu.classNames={fullWidth:Xl,zeroRight:Yl};var AO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _O(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AO();return t&&e.setAttribute("nonce",t),e}function DO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var MO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_O())&&(DO(t,n),OO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},LO=function(){var e=MO();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eS=function(){var e=LO(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},IO={left:0,top:0,right:0,gap:0},Pd=function(e){return parseInt(e||"",10)||0},FO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Pd(n),Pd(r),Pd(s)]},VO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return IO;var t=FO(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zO=eS(),Io="data-scroll-locked",$O=function(e,t,n,r){var s=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` 345 .`.concat(jO,` { 346 overflow: hidden `).concat(r,`; 347 padding-right: `).concat(l,"px ").concat(r,`; 348 } 349 body[`).concat(Io,`] { 350 overflow: hidden `).concat(r,`; 351 overscroll-behavior: contain; 352 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 353 padding-left: `.concat(s,`px; 354 padding-top: `).concat(i,`px; 355 padding-right: `).concat(a,`px; 356 margin-left:0; 357 margin-top:0; 358 margin-right: `).concat(l,"px ").concat(r,`; 359 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
359")].filter(Boolean).join(""),` 360 } 361 362 .`).concat(Yl,` { 363 right: `).concat(l,"px ").concat(r,`; 364 } 365 366 .`).concat(Xl,` { 367 margin-right: `).concat(l,"px ").concat(r,`; 368 } 369 370 .`).concat(Yl," .").concat(Yl,` { 371 right: 0 `).concat(r,`; 372 } 373 374 .`).concat(Xl," .").concat(Xl,` { 375 margin-right: 0 `).concat(r,`; 376 } 377 378 body[`).concat(Io,`] { 379 `).concat(SO,": ").concat(l,`px; 380 } 381`)},Vy=function(){var e=parseInt(document.body.getAttribute(Io)||"0",10);return isFinite(e)?e:0},BO=function(){d.useEffect(function(){return document.body.setAttribute(Io,(Vy()+1).toString()),function(){var e=Vy()-1;e<=0?document.body.removeAttribute(Io):document.body.setAttribute(Io,e.toString())}},[])},UO=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;BO();var i=d.useMemo(function(){return VO(s)},[s]);return d.createElement(zO,{styles:$O(i,!t,s,n?"":"!important")})},gh=!1;if(typeof window<"u")try{var El=Object.defineProperty({},"passive",{get:function(){return gh=!0,!0}});window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{gh=!1}var ao=gh?{passive:!1}:!1,WO=function(e){return e.tagName==="TEXTAREA"},tS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!WO(e)&&n[t]==="visible")},HO=function(e){return tS(e,"overflowY")},KO=function(e){return tS(e,"overflowX")},zy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=nS(e,r);if(s){var i=rS(e,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qO=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},GO=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},nS=function(e,t){return e==="v"?HO(t):KO(t)},rS=function(e,t){return e==="v"?qO(t):GO(t)},QO=function(e,t){return e==="h"&&t==="rtl"?-1:1},YO=function(e,t,n,r,s){var i=QO(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,c=t.contains(l),u=!1,f=a>0,h=0,p=0;do{var m=rS(e,l),x=m[0],g=m[1],b=m[2],v=g-b-i*x;(x||v)&&nS(e,l)&&(h+=v,p+=x),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(f&&(Math.abs(h)<1||!s)||!f&&(Math.abs(p)<1||!s))&&(u=!0),u},Nl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$y=function(e){return[e.deltaX,e.deltaY]},By=function(e){return e&&"current"in e?e.current:e},XO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ZO=function(e){return` 382 .block-interactivity-`.concat(e,` {pointer-events: none;} 383 .allow-interactivity-`).concat(e,` {pointer-events: all;} 384`)},JO=0,lo=[];function eM(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),s=d.useState(JO++)[0],i=d.useState(eS)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=bO([e.lockRef.current],(e.shards||[]).map(By),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var v=Nl(g),y=n.current,w="deltaX"in g?g.deltaX:y[0]-v[0],j="deltaY"in g?g.deltaY:y[1]-v[1],S,P=g.target,N=Math.abs(w)>Math.abs(j)?"h":"v";if("touches"in g&&N==="h"&&P.type==="range")return!1;var E=zy(N,P);if(!E)return!0;if(E?S=N:(S=N==="v"?"h":"v",E=zy(N,P)),!E)return!1;if(!r.current&&"changedTouches"in g&&(w||j)&&(r.current=S),!S)return!0;var _=r.current||S;return YO(_,b,g,_==="h"?w:j,!0)},[]),c=d.useCallback(function(g){var b=g;if(!(!lo.length||lo[lo.length-1]!==i)){var v="deltaY"in b?$y(b):Nl(b),y=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&XO(S.delta,v)}
vendor: 8,998 bytes, lines 384-388
384)[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var w=(a.current.shards||[]).map(By).filter(Boolean).filter(function(S){return S.contains(b.target)}),j=w.length>0?l(b,w[0]):!a.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),u=d.useCallback(function(g,b,v,y){var w={name:g,delta:b,target:v,should:y,shadowParent:tM(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(j){return j!==w})},1)},[]),f=d.useCallback(function(g){n.current=Nl(g),r.current=void 0},[]),h=d.useCallback(function(g){u(g.type,$y(g),g.target,l(g,e.lockRef.current))},[]),p=d.useCallback(function(g){u(g.type,Nl(g),g.target,l(g,e.lockRef.current))},[]);d.useEffect(function(){return lo.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ao),document.addEventListener("touchmove",c,ao),document.addEventListener("touchstart",f,ao),function(){lo=lo.filter(function(g){return g!==i}),document.removeEventListener("wheel",c,ao),document.removeEventListener("touchmove",c,ao),document.removeEventListener("touchstart",f,ao)}},[]);var m=e.removeScrollBar,x=e.inert;return d.createElement(d.Fragment,null,x?d.createElement(i,{styles:ZO(s)}):null,m?d.createElement(UO,{gapMode:e.gapMode}):null)}function tM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nM=RO(Jj,eM);var mm=d.forwardRef(function(e,t){return d.createElement(vu,Fn({},e,{ref:t,sideCar:nM}))});mm.classNames=vu.classNames;var rM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},co=new WeakMap,Pl=new WeakMap,Tl={},Td=0,sS=function(e){return e&&(e.host||sS(e.parentNode))},sM=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sS(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},oM=function(e,t,n,r){var s=sM(t,Array.isArray(e)?e:[e]);Tl[n]||(Tl[n]=new WeakMap);var i=Tl[n],a=[],l=new Set,c=new Set(s),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};s.forEach(u);var f=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(l.has(p))f(p);else try{var m=p.getAttribute(r),x=m!==null&&m!=="false",g=(co.get(p)||0)+1,b=(i.get(p)||0)+1;co.set(p,g),i.set(p,b),a.push(p),g===1&&x&&Pl.set(p,!0),b===1&&p.setAttribute(n,"true"),x||p.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return f(t),l.clear(),Td++,function(){a.forEach(function(h){var p=co.get(h)-1,m=i.get(h)-1;co.set(h,p),i.set(h,m),p||(Pl.has(h)||h.removeAttribute(r),Pl.delete(h)),m||h.removeAttribute(n)}),Td--,Td||(co=new WeakMap,co=new WeakMap,Pl=new WeakMap,Tl={})}},oS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=rM(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),oM(r,s,n,"aria-hidden")):function(){return null}},gm="Dialog",[iS,aS]=ln(gm),[iM,Nn]=iS(gm),lS=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=d.useRef(null),c=d.useRef(null),[u=!1,f]=as({prop:r,defaultProp:s,onChange:i});return o.jsx(iM,{scope:t,triggerRef:l,contentRef:c,contentId:es(),titleId:es(),descriptionId:es(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:a,children:n})};lS.displayName=gm;var cS="DialogTrigger",uS=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Nn(cS,n),i=de(t,s.triggerRef);return o.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":xm(s.open),...r,ref:i,onClick:Q(e.onClick,s.onOpenToggle)})});uS.displayName=cS;var vm="DialogPortal",[aM,dS]=iS(vm,{forceMount:void 0}),fS=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Nn(vm,t);return o.jsx(aM,{scope:t,forceMount:n,children:d.Children.map(r,a=>o.jsx(cn,{present:n||i.open,children:o.jsx(iu,{asChild:!0,container:s,children:a})}))})};fS.displayName=vm;var _c="DialogOverlay",hS=d.forwardRef((e,t)=>{const n=dS(_c,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Nn(_c,e.__scopeDialog);return i.modal?o.jsx(cn,{present:r||i.open,children:o.jsx(cM,{...s,ref:t})}):null});hS.displayName=_c;var lM=ai("DialogOverlay.RemoveScroll"),cM=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Nn(_c,n);return o.jsx(mm,{as:lM,allowPinchZoom:!0,shards:[s.contentRef],children:o.jsx(se.div,{"data-state":xm(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Gs="DialogContent",pS=d.forwardRef((e,t)=>{const n=dS(Gs,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Nn(Gs,e.__scopeDialog);return o.jsx(cn,{present:r||i.open,children:i.modal?o.jsx(uM,{...s,ref:t}):o.jsx(dM,{...s,ref:t})})});pS.displayName=Gs;var uM=d.forwardRef((e,t)=>{const n=Nn(Gs,e.__scopeDialog),r=d.useRef(null),s=de(t,n.contentRef,r);return d.useEffect(()=>{const i=r.current;if(i)return oS(i)},[]),o.jsx(mS,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),dM=d.forwardRef((e,t)=>{const n=Nn(Gs,e.__scopeDialog),r=d.useRef(!1),s=d.useRef(!1);return o.jsx(mS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),mS=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=e,l=Nn(Gs,n),c=d.useRef(null),u=de(t,c);return Yj(),o.jsxs(o.Fragment,{children:[o.jsx(pm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:o.jsx($a,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":xm(l.open),...a,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx(hM,{titleId:l.titleId}),o.jsx(mM,{contentRef:c,descriptionId:l.descriptionId})]})]})}),ym="DialogTitle",gS=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Nn(ym,n);return o.jsx(se.h2,{id:s.titleId,...r,ref:t})});gS.displayName=ym;var vS="DialogDescription",yS=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Nn(vS,n);return o.jsx(se.p,{id:s.descriptionId,...r,ref:t})});yS.displayName=vS;var xS="DialogClose",wS=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Nn(xS,n);return o.jsx(se.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>s.onOpenChange(!1))})});wS.displayName=xS;function xm(e){return e?"open":"closed"}var bS="DialogTitleWarning",[fM,jS]=DR(bS,{contentName:Gs,titleName:ym,docsSlug:"dialog"}),hM=({titleId:e})=>{const t=jS(bS),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 385 386If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 387 388For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},pM="DialogDescriptionWarning",mM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jS(pM).contentName}}.`;return d.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},wm=lS,bm=uS,jm=fS,Ua=hS,Wa=pS,Ha=gS,Ka=yS,qa=wS;const ds=wm,E8=bm,gM=jm,N8=qa,SS=d.forwardRef(({className:e,...t},n)=>o.jsx(Ua,{ref:n,className:K("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",e),...t}));SS.displayName=Ua.displayName;const hr=d.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(gM,{children:[o.jsx(SS,{}),o.jsxs(Wa,{ref:r,className:K("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
388nded-lg",e),...n,children:[t,o.jsxs(qa,{className:"absolute right-4 top-4 rounded-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-accent data-[state=open]:text-muted-foreground",children:[o.jsx(Ke,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));hr.displayName=Wa.displayName;const Ga=({className:e,...t})=>o.jsx("div",{className:K("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ga.displayName="DialogHeader";const CS=({className:e,...t})=>o.jsx("div",{className:K("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});CS.displayName="DialogFooter";const pr=d.forwardRef(({className:e,...t},n)=>o.jsx(Ha,{ref:n,className:K("text-lg font-semibold leading-none tracking-tight",e),...t}));pr.displayName=Ha.displayName;const Si=d.forwardRef(({className:e,...t},n)=>o.jsx(Ka,{ref:n,className:K("text-sm text-muted-foreground",e),...t}));Si.displayName=Ka.displayName;function vM(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}function yu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const vh=e=>Array.isArray(e);function ES(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Pa(e){return typeof e=="string"||Array.isArray(e)}function Uy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Sm(e,t,n,r){if(typeof t=="function"){const[s,i]=Uy(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Uy(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function xu(e,t,n){const r=e.getProps();return Sm(r,t,n!==void 0?n:r.custom,e)}const Cm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Em=["initial",...Cm],Qa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],to=new Set(Qa),sr=e=>e*1e3,or=e=>e/1e3,yM={type:"spring",stiffness:500,damping:25,restSpeed:10},xM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wM={type:"keyframes",duration:.8},bM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jM=(e,{keyframes:t})=>t.length>2?wM:to.has(e)?e.startsWith("scale")?xM(t[1]):yM:bM;function Nm(e,t){return e?e[t]||e.default||e:void 0}const SM={skipAnimations:!1,useManualTiming:!1},CM=e=>e!==null;function wu(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(CM),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const pt=e=>e;let yh=pt;function EM(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,f=!1,h=!1)=>{const m=h&&r?t:n;return f&&i.add(u),m.has(u)||m.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(a=u,r){s=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(l),r=!1,s&&(s=!1,c.process(u))}};return c}const kl=["read","resolveKeyframes","update","preRender","render","postRender"],NM=40;function NS(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=kl.reduce((v,y)=>(v[y]=EM(i),v),{}),{read:l,resolveKeyframes:c,update:u,preRender:f,render:h,postRender:p}=a,m=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,NM),1),s.timestamp=v,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),f.process(s),h.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},x=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:kl.reduce((v,y)=>{const w=a[y];return v[y]=(j,S=!1,P=!1)=>(n||x(),w.schedule(j,S,P)),v},{}),cancel:v=>{for(let y=0;y<kl.length;y++)a[kl[y]].cancel(v)},state:s,steps:a}}const{schedule:Se,cancel:fs,state:rt,steps:kd}=NS(typeof requestAnimationFrame<"u"?requestAnimationFrame:pt,!0),PS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PM=1e-7,TM=12;
388function kM(e,t,n,r,s){let i,a,l=0;do a=t+(n-t)/2,i=PS(a,r,s)-e,i>0?n=a:t=a;while(Math.abs(i)>PM&&++l<TM);return a}function Ya(e,t,n,r){if(e===t&&n===r)return pt;const s=i=>kM(i,0,1,e,n);return i=>i===0||i===1?i:PS(s(i),t,r)}const TS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kS=e=>t=>1-e(1-t),RS=Ya(.33,1.53,.69,.99),Pm=kS(RS),AS=TS(Pm),_S=e=>(e*=2)<1?.5*Pm(e):.5*(2-Math.pow(2,-10*(e-1))),Tm=e=>1-Math.sin(Math.acos(e)),DS=kS(Tm),OS=TS(Tm),MS=e=>/^0[^.\s]+$/u.test(e);function RM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||MS(e):!0}const LS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),IS=e=>t=>typeof t=="string"&&t.startsWith(e),FS=IS("--"),AM=IS("var(--"),km=e=>AM(e)?_M.test(e.split("/*")[0].trim()):!1,_M=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,DM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function OM(e){const t=DM.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function VS(e,t,n=1){const[r,s]=OM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return LS(a)?parseFloat(a):a}return km(s)?VS(s,t,n+1):s}const mr=(e,t,n)=>n>t?t:n<e?e:n,Ci={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ta={...Ci,transform:e=>mr(0,1,e)},Rl={...Ci,default:1},Xa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rr=Xa("deg"),Bn=Xa("%"),ne=Xa("px"),MM=Xa("vh"),LM=Xa("vw"),Wy={...Bn,parse:e=>Bn.parse(e)/100,transform:e=>Bn.transform(e*100)},IM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Hy=e=>e===Ci||e===ne,Ky=(e,t)=>parseFloat(e.split(", ")[t]),qy=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Ky(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Ky(i[1],e):0}},FM=new Set(["x","y","z"]),VM=Qa.filter(e=>!FM.has(e));function zM(e){const t=[];return VM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ui={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:qy(4,13),y:qy(5,14)};ui.translateX=ui.x;ui.translateY=ui.y;const zS=e=>t=>t.test(e),$M={test:e=>e==="auto",parse:e=>e},$S=[Ci,ne,Bn,Rr,LM,MM,$M],Gy=e=>$S.find(zS(e)),Fs=new Set;let xh=!1,wh=!1;function BS(){if(wh){const e=Array.from(Fs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=zM(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,a])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}wh=!1,xh=!1,Fs.forEach(e=>e.complete()),Fs.clear()}function US(){Fs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wh=!0)})}function BM(){US(),BS()}class Rm{constructor(t,n,r,s,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fs.add(this),xh||(xh=!0,Se.read(US),Se.resolveKeyframes(BS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=s==null?void 0:s.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),s&&a===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sa=e=>Math.round(e*1e5)/1e5,Am=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UM(e){return e==null}const WM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_m=(e,t)=>
vendor: 78,858 bytes, line 388
388n=>!!(typeof n=="string"&&WM.test(n)&&n.startsWith(e)||t&&!UM(n)&&Object.prototype.hasOwnProperty.call(n,t)),WS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,a,l]=r.match(Am);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},HM=e=>mr(0,255,e),Rd={...Ci,transform:e=>Math.round(HM(e))},Ts={test:_m("rgb","red"),parse:WS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Rd.transform(e)+", "+Rd.transform(t)+", "+Rd.transform(n)+", "+sa(Ta.transform(r))+")"};function KM(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const bh={test:_m("#"),parse:KM,transform:Ts.transform},So={test:_m("hsl","hue"),parse:WS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bn.transform(sa(t))+", "+Bn.transform(sa(n))+", "+sa(Ta.transform(r))+")"},ut={test:e=>Ts.test(e)||bh.test(e)||So.test(e),parse:e=>Ts.test(e)?Ts.parse(e):So.test(e)?So.parse(e):bh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ts.transform(e):So.transform(e)},qM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Am))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(qM))===null||n===void 0?void 0:n.length)||0)>0}const HS="number",KS="color",QM="var",YM="var(",Qy="${}",XM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ka(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(XM,c=>(ut.test(c)?(r.color.push(i),s.push(KS),n.push(ut.parse(c))):c.startsWith(YM)?(r.var.push(i),s.push(QM),n.push(c)):(r.number.push(i),s.push(HS),n.push(parseFloat(c))),++i,Qy)).split(Qy);return{values:n,split:l,indexes:r,types:s}}function qS(e){return ka(e).values}function GS(e){const{split:t,types:n}=ka(e),r=t.length;return s=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],s[a]!==void 0){const l=n[a];l===HS?i+=sa(s[a]):l===KS?i+=ut.transform(s[a]):i+=s[a]}return i}}const ZM=e=>typeof e=="number"?0:e;function JM(e){const t=qS(e);return GS(e)(t.map(ZM))}const hs={test:GM,parse:qS,createTransformer:GS,getAnimatableNone:JM},eL=new Set(["brightness","contrast","saturate","opacity"]);function tL(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Am)||[];if(!r)return e;const s=n.replace(r,"");let i=eL.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const nL=/\b([a-z-]*)\(.*?\)/gu,jh={...hs,getAnimatableNone:e=>{const t=e.match(nL);return t?t.map(tL).join(" "):e}},rL={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne},sL={rotate:Rr,rotateX:Rr,rotateY:Rr,rotateZ:Rr,scale:Rl,scaleX:Rl,scaleY:Rl,scaleZ:Rl,skew:Rr,skewX:Rr,skewY:Rr,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:Ta,originX:Wy,originY:Wy,originZ:ne},Yy={...Ci,transform:Math.round},Dm={...rL,...sL,zIndex:Yy,size:ne,fillOpacity:Ta,strokeOpacity:Ta,numOctaves:Yy},oL={...Dm,color:ut,backgroundColor:ut,outlineColor:ut,fill:ut,stroke:ut,borderColor:ut,borderTopColor:ut,borderRightColor:ut,borderBottomColor:ut,borderLeftColor:ut,filter:jh,WebkitFilter:jh},Om=e=>oL[e];function QS(e,t){let n=Om(e);return n!==jh&&(n=hs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iL=new Set(["auto","none","0"]);function aL(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!iL.has(i)&&ka(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=QS(n,s)}class YS extends Rm{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),km(u))){const f=VS(u,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!IM.has(r)||t.length!==2)return;const[s,i]=t,a=Gy(s),l=Gy(i);if(a!==l)if(Hy(a)&&Hy(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)RM(t[s])&&r.push(s);r.length&&aL(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ui[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=s.length-1,l=s[a];s[a]=ui[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Mm(e){return typeof e=="function"}let Zl;function lL(){Zl=void 0}const Un={now:()=>(Zl===void 0&&Un.set(rt.isProcessing||SM.useManualTiming?rt.timestamp:performance.now()),Zl),set:e=>{Zl=e,queueMicrotask(lL)}},Xy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(hs.test(e)||e==="0")&&!e.startsWith("url("));function cL(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function uL(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=Xy(s,t),l=Xy(i,t);return!a||!l?!1:cL(e)||(n==="spring"||Mm(n))&&r}const dL=40;class XS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Un.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>dL?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&BM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Un.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!uL(t,r,s,i))if(a)this.options.duration=0;else{c==null||c(wu(t,this.options,n)),l==null||l(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const di=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ZS=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(di(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function JS(e,t){return t?e*(1e3/t):0}const fL=5;function eC(e,t,n){const r=Math.max(t-fL,0);return JS(n-e(r),t-r)}const Fe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ad=.001;function hL({duration:e=Fe.duration,bounce:t=Fe.bounce,velocity:n=Fe.velocity,mass:r=Fe.mass}){let s,i,a=1-t;a=mr(Fe.minDamping,Fe.maxDamping,a),e=mr(Fe.minDuration,Fe.maxDuration,or(e)),a<1?(s=u=>{const f=u*a,h=f*e,p=f-n,m=Sh(u,a),x=Math.exp(-h);return Ad-p/m*x},i=u=>{const h=u*a*e,p=h*n+n,m=Math.pow(a,2)*Math.pow(u,2)*e,x=Math.exp(-h),g=Sh(Math.pow(u,2),a);return(-s(u)+Ad>0?-1:1)*((p-m)*x)/g}):(s=u=>{const f=Math.exp(-u*e),h=(u-n)*e+1;return-Ad+f*h},i=u=>{const f=Math.exp(-u*e),h=(n-u)*(e*e);return f*h});const l=5/e,c=mL(s,i,l);if(e=sr(e),isNaN(c))return{stiffness:Fe.stiffness,damping:Fe.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const pL=12;function mL(e,t,n){let r=n;for(let s=1;s<pL;s++)r=r-e(r)/t(r);return r}function Sh(e,t){return e*Math.sqrt(1-t*t)}const Ch=2e4;function tC(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ch;)t+=n,r=e.next(t);return t>=Ch?1/0:t}const gL=["duration","bounce"],vL=["stiffness","damping","mass"];function Zy(e,t){return t.some(n=>e[n]!==void 0)}function yL(e){let t={velocity:Fe.velocity,stiffness:Fe.stiffness,damping:Fe.damping,mass:Fe.mass,isResolvedFromDuration:!1,...e};if(!Zy(e,vL)&&Zy(e,gL))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*mr(.05,1,1-e.bounce)*Math.sqrt(s);t={...t,mass:Fe.mass,stiffness:s,damping:i}}else{const n=hL(e);t={...t,...n,mass:Fe.mass},t.isResolvedFromDuration=!0}return t}function nC(e=Fe.visualDuration,t=Fe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:f,duration:h,velocity:p,isResolvedFromDuration:m}=yL({...n,velocity:-or(n.velocity||0)}),x=p||0,g=u/(2*Math.sqrt(c*f)),b=a-i,v=or(Math.sqrt(c/f)),y=Math.abs(b)<5;r||(r=y?Fe.restSpeed.granular:Fe.restSpeed.default),s||(s=y?Fe.restDelta.granular:Fe.restDelta.default);let w;if(g<1){const S=Sh(v,g);w=P=>{const N=Math.exp(-g*v*P);return a-N*((x+g*v*b)/S*Math.sin(S*P)+b*Math.cos(S*P))}}else if(g===1)w=S=>a-Math.exp(-v*S)*(b+(x+v*b)*S);else{const S=v*Math.sqrt(g*g-1);w=P=>{const N=Math.exp(-g*v*P),E=Math.min(S*P,300);return a-N*((x+g*v*b)*Math.sinh(E)+S*b*Math.cosh(E))/S}}const j={calculatedDuration:m&&h||null,next:S=>{const P=w(S);if(m)l.done=S>=h;else{let N=0;g<1&&(N=S===0?sr(x):eC(w,S,P));const E=Math.abs(N)<=r,_=Math.abs(a-P)<=s;l.done=E&&_}return l.value=l.done?a:P,l},toString:()=>{const S=Math.min(tC(j),Ch),P=ZS(N=>j.next(S*N).value,S,30);return S+"ms "+P}};return j}function Jy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:f}){const h=e[0],p={done:!1,value:h},m=E=>l!==void 0&&E<l||c!==void 0&&E>c,x=E=>l===void 0?c:c===void 0||Math.abs(l-E)<Math.abs(c-E)?l:c;let g=n*t;const b=h+g,v=a===void 0?b:a(b);v!==b&&(g=v-h);const y=E=>-g*Math.exp(-E/r),w=E=>v+y(E),j=E=>{const _=y(E),T=w(E);p.done=Math.abs(_)<=u,p.value=p.done?v:T};let S,P;const N=E=>{m(p.value)&&(S=E,P=nC({keyframes:[p.value,x(p.value)],velocity:eC(w,E,p.value),damping:s,stiffness:i,restDelta:u,restSpeed:f}))};return N(0),{calculatedDuration:null,next:E=>{let _=!1;return!P&&S===void 0&&(_=!0,j(E),N(E)),S!==void 0&&E>=S?P.next(E-S):(!_&&j(E),p)}}}const xL=Ya(.42,0,1,1),wL=Ya(0,0,.58,1),rC=Ya(.42,0,.58,1),bL=e=>Array.isArray(e)&&typeof e[0]!="number",Lm=e=>Array.isArray(e)&&typeof e[0]=="number",ex={linear:pt,easeIn:xL,easeInOut:rC,easeOut:wL,circIn:Tm,circInOut:OS,circOut:DS,backIn:Pm,backInOut:AS,backOut:RS,anticipate:_S},tx=e=>{if(Lm(e)){yh(e.length===4);const[t,n,r,s]=e;return Ya(t,n,r,s)}else if(typeof e=="string")return yh(ex[e]!==void 0),ex[e];return e},jL=(e,t)=>n=>t(e(n)),ns=(...e)=>e.reduce(jL),De=(e,t,n)=>e+(t-e)*n;function _d(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function SL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,a=0;if(!t)s=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;s=_d(c,l,e+1/3),i=_d(c,l,e),a=_d(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Dc(e,t){return n=>n>0?t:e}const Dd=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},CL=[bh,Ts,So],EL=e=>CL.find(t=>t.test(e));function nx(e){const t=EL(e);if(!t)return!1;let n=t.parse(e);return t===So&&(n=SL(n)),n}const rx=(e,t)=>{const n=nx(e),r=nx(t);if(!n||!r)return Dc(e,t);const s={...n};return i=>(s.red=Dd(n.red,r.red,i),s.green=Dd(n.green,r.green,i),s.blue=Dd(n.blue,r.blue,i),s.alpha=De(n.alpha,r.alpha,i),Ts.transform(s))},Eh=new Set(["none","hidden"]);function NL(e,t){return Eh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function PL(e,t){return n=>De(e,t,n)}function Im(e){return typeof e=="number"?PL:typeof e=="string"?km(e)?Dc:ut.test(e)?rx:RL:Array.isArray(e)?sC:typeof e=="object"?ut.test(e)?rx:TL:Dc}function sC(e,t){const n=[...e],r=n.length,s=e.map((i,a)=>Im(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=s[a](i);return n}}function TL(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Im(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function kL(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],l=e.indexes[a][s[a]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=c,s[a]++}return r}const RL=(e,t)=>{const n=hs.createTransformer(t),r=ka(e),s=ka(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Eh.has(e)&&!s.values.length||Eh.has(t)&&!r.values.length?NL(e,t):ns(sC(kL(r,s),s.values),n):Dc(e,t)};function oC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?De(e,t,n):Im(e)(e,t)}function AL(e,t,n){const r=[],s=n||oC,i=e.length-1;for(let a=0;a<i;a++){let l=s(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||pt:t;l=ns(c,l)}r.push(l)}return r}function _L(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(yh(i===t.length),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=AL(t,r,s),l=a.length,c=u=>{let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const h=di(e[f],e[f+1],u);return a[f](h)};return n?u=>c(mr(e[0],e[i-1],u)):c}function DL(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=di(0,t,r);e.push(De(n,1,s))}}function OL(e){const t=[0];return DL(t,e.length-1),t}function ML(e,t){return e.map(n=>n*t)}function LL(e,t){return e.map(()=>t||rC).splice(0,e.length-1)}function Oc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=bL(r)?r.map(tx):tx(r),i={done:!1,value:t[0]},a=ML(n&&n.length===t.length?n:OL(t),e),l=_L(a,t,{ease:Array.isArray(s)?s:LL(t,s)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const IL=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Se.update(t,!0),stop:()=>fs(t),now:()=>rt.isProcessing?rt.timestamp:Un.now()}},FL={decay:Jy,inertia:Jy,tween:Oc,keyframes:Oc,spring:nC},VL=e=>e/100;class Fm extends XS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,a=(s==null?void 0:s.KeyframeResolver)||Rm,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(i,l,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:a=0}=this.options,l=Mm(n)?n:FL[n]||Oc;let c,u;l!==Oc&&typeof t[0]!="number"&&(c=ns(VL,oC(t[0],t[1])),t=[0,100]);const f=l({...this.options,keyframes:t});i==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=tC(f));const{calculatedDuration:h}=f,p=h+s,m=p*(r+1)-s;return{generator:f,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:p,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:m,repeatType:x,repeatDelay:g,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-p*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>f;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let w=this.currentTime,j=i;if(m){const E=Math.min(this.currentTime,f)/h;let _=Math.floor(E),T=E%1;!T&&E>=1&&(T=1),T===1&&_--,_=Math.min(_,m+1),!!(_%2)&&(x==="reverse"?(T=1-T,g&&(T-=g/h)):x==="mirror"&&(j=a)),w=mr(0,1,T)*h}const S=y?{done:!1,value:c[0]}:j.next(w);l&&(S.value=l(S.value));let{done:P}=S;!y&&u!==null&&(P=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return N&&s!==void 0&&(S.value=wu(c,this.options,s)),b&&b(S.value),N&&this.finish(),S}get duration(){const{resolved:t}=this;return t?or(t.calculatedDuration):0}get time(){return or(this.currentTime)}set time(t){t=sr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=or(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=IL,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const zL=new Set(["opacity","clipPath","filter","transform"]);function Vm(e){let t;return()=>(t===void 0&&(t=e()),t)}const $L={linearEasing:void 0};function BL(e,t){const n=Vm(e);return()=>{var r;return(r=$L[t])!==null&&r!==void 0?r:n()}}const Mc=BL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function iC(e){return!!(typeof e=="function"&&Mc()||!e||typeof e=="string"&&(e in Nh||Mc())||Lm(e)||Array.isArray(e)&&e.every(iC))}const Hi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hi([0,.65,.55,1]),circOut:Hi([.55,0,1,.45]),backIn:Hi([.31,.01,.66,-.59]),backOut:Hi([.33,1.53,.69,.99])};function aC(e,t){if(e)return typeof e=="function"&&Mc()?ZS(e,t):Lm(e)?Hi(e):Array.isArray(e)?e.map(n=>aC(n,t)||Nh.easeOut):Nh[e]}function UL(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const f=aC(l,s);return Array.isArray(f)&&(u.easing=f),e.animate(u,{delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function sx(e,t){e.timeline=t,e.onfinish=null}const WL=Vm(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Lc=10,HL=2e4;function KL(e){return Mm(e.type)||e.type==="spring"||!iC(e.ease)}function qL(e,t){const n=new Fm({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<HL;)r=n.sample(i),s.push(r.value),i+=Lc;return{times:void 0,keyframes:s,duration:i-Lc,ease:"linear"}}const lC={anticipate:_S,backInOut:AS,circInOut:OS};function GL(e){return e in lC}class ox extends XS{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new YS(i,(a,l)=>this.onKeyframesResolved(a,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:s=300,times:i,ease:a,type:l,motionValue:c,name:u,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Mc()&&GL(a)&&(a=lC[a]),KL(this.options)){const{onComplete:p,onUpdate:m,motionValue:x,element:g,...b}=this.options,v=qL(t,b);t=v.keyframes,t.length===1&&(t[1]=t[0]),s=v.duration,i=v.times,a=v.ease,l="keyframes"}const h=UL(c.owner.current,u,t,{...this.options,duration:s,times:i,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(sx(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:p}=this.options;c.set(wu(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:s,times:i,type:l,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return or(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return or(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=sr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return pt;const{animation:r}=n;sx(r,t)}return pt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:f,onComplete:h,element:p,...m}=this.options,x=new Fm({...m,keyframes:r,duration:s,type:i,ease:a,times:l,isGenerator:!0}),g=sr(this.time);u.setWithVelocity(x.sample(g-Lc).value,x.sample(g).value,Lc)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:a,type:l}=t;return WL()&&r&&zL.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!s&&i!=="mirror"&&a!==0&&l!=="inertia"}}const QL=Vm(()=>window.ScrollTimeline!==void 0);class YL{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>QL()&&s.attachTimeline?s.attachTimeline(t):n(s));return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function XL({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:u,...f}){return!!Object.keys(f).length}const zm=(e,t,n,r={},s,i)=>a=>{const l=Nm(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-sr(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};XL(l)||(f={...f,...jM(e,f)}),f.duration&&(f.duration=sr(f.duration)),f.repeatDelay&&(f.repeatDelay=sr(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!i&&t.get()!==void 0){const p=wu(f.keyframes,l);if(p!==void 0)return Se.update(()=>{f.onUpdate(p),f.onComplete()}),new YL([])}return!i&&ox.supports(f)?new ox(f):new Fm(f)},ZL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JL=e=>vh(e)?e[e.length-1]||0:e;function $m(e,t){e.indexOf(t)===-1&&e.push(t)}function Bm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Um{constructor(){this.subscriptions=[]}add(t){return $m(this.subscriptions,t),()=>Bm(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ix=30,eI=e=>!isNaN(parseFloat(e));class tI{constructor(t,n={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=Un.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Un.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=eI(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Um);const r=this.events[t].add(n);return t==="change"?()=>{r(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ix)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ix);return JS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ra(e,t){return new tI(e,t)}function nI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ra(n))}function rI(e,t){const n=xu(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const a in i){const l=JL(i[a]);nI(e,a,l)}}const Wm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sI="framerAppearId",cC="data-"+Wm(sI);function uC(e){return e.props[cC]}const ht=e=>!!(e&&e.getVelocity);function oI(e){return!!(ht(e)&&e.add)}function Ph(e,t){const n=e.getValue("willChange");if(oI(n))return n.add(t)}function iI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function dC(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const u=[],f=s&&e.animationState&&e.animationState.getState()[s];for(const h in c){const p=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),m=c[h];if(m===void 0||f&&iI(f,h))continue;const x={delay:n,...Nm(a||{},h)};let g=!1;if(window.MotionHandoffAnimation){const v=uC(e);if(v){const y=window.MotionHandoffAnimation(v,h,Se);y!==null&&(x.startTime=y,g=!0)}}Ph(e,h),p.start(zm(h,p,m,e.shouldReduceMotion&&to.has(h)?{type:!1}:x,e,g));const b=p.animation;b&&u.push(b)}return l&&Promise.all(u).then(()=>{Se.update(()=>{l&&rI(e,l)})}),u}function Th(e,t,n={}){var r;const s=xu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const a=s?()=>Promise.all(dC(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:p}=i;return aI(e,t,f+u,h,p,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[u,f]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>f())}else return Promise.all([a(),l(n.delay)])}function aI(e,t,n=0,r=0,s=1,i){const a=[],l=(e.variantChildren.size-1)*r,c=s===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(lI).forEach((u,f)=>{u.notify("AnimationStart",t),a.push(Th(u,t,{...i,delay:n+c(f)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function lI(e,t){return e.sortNodePosition(t)}function cI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Th(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Th(e,t,n);else{const s=typeof t=="function"?xu(e,t,n.custom):t;r=Promise.all(dC(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const uI=Em.length;function fC(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?fC(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uI;n++){const r=Em[n],s=e.props[r];(Pa(s)||s===!1)&&(t[r]=s)}return t}const dI=[...Cm].reverse(),fI=Cm.length;function hI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cI(e,n,r)))}function pI(e){let t=hI(e),n=ax(),r=!0;const s=c=>(u,f)=>{var h;const p=xu(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:m,transitionEnd:x,...g}=p;u={...u,...g,...x}}return u};function i(c){t=c(e)}function a(c){const{props:u}=e,f=fC(e.parent)||{},h=[],p=new Set;let m={},x=1/0;for(let b=0;b<fI;b++){const v=dI[b],y=n[v],w=u[v]!==void 0?u[v]:f[v],j=Pa(w),S=v===c?y.isActive:null;S===!1&&(x=b);let P=w===f[v]&&w!==u[v]&&j;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...m},!y.isActive&&S===null||!w&&!y.prevProp||yu(w)||typeof w=="boolean")continue;const N=mI(y.prevProp,w);let E=N||v===c&&y.isActive&&!P&&j||b>x&&j,_=!1;const T=Array.isArray(w)?w:[w];let O=T.reduce(s(v),{});S===!1&&(O={});const{prevResolvedValues:L={}}=y,G={...L,...O},V=W=>{E=!0,p.has(W)&&(_=!0,p.delete(W)),y.needsAnimating[W]=!0;const D=e.getValue(W);D&&(D.liveStyle=!1)};for(const W in G){const D=O[W],F=L[W];if(m.hasOwnProperty(W))continue;let $=!1;vh(D)&&vh(F)?$=!ES(D,F):$=D!==F,$?D!=null?V(W):p.add(W):D!==void 0&&p.has(W)?V(W):y.protectedKeys[W]=!0}y.prevProp=w,y.prevResolvedValues=O,y.isActive&&(m={...m,...O}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(P&&N)||_)&&h.push(...T.map(W=>({animation:W,options:{type:v}})))}if(p.size){const b={};p.forEach(v=>{const y=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),b[v]=y??null}),h.push({animation:b})}let g=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(h):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(c,u)}),n[c].isActive=u;const h=a(c);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=ax(),r=!0}}}function mI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ES(t,e):!1}function ws(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ax(){return{animate:ws(!0),whileInView:ws(),whileHover:ws(),whileTap:ws(),whileDrag:ws(),whileFocus:ws(),exit:ws()}}class vs{constructor(t){this.isMounted=!1,this.node=t}update(){}}class gI extends vs{constructor(t){super(t),t.animationState||(t.animationState=pI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();yu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let vI=0;class yI extends vs{constructor(){super(...arguments),this.id=vI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const xI={animation:{Feature:gI},exit:{Feature:yI}};function wI(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const pn={x:!1,y:!1};function hC(){return pn.x||pn.y}function lx(e){return t=>{t.pointerType==="touch"||hC()||e(t)}}function bI(e,t,n={}){const r=new AbortController,s={passive:!0,...n,signal:r.signal},i=lx(a=>{const{target:l}=a,c=t(a);if(!c||!l)return;const u=lx(f=>{c(f),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,s)});return wI(e).forEach(a=>{a.addEventListener("pointerenter",i,s)}),()=>r.abort()}function jI(e){return e==="x"||e==="y"?pn[e]?null:(pn[e]=!0,()=>{pn[e]=!1}):pn.x||pn.y?null:(pn.x=pn.y=!0,()=>{pn.x=pn.y=!1})}const pC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Za(e){return{point:{x:e.pageX,y:e.pageY}}}const SI=e=>t=>pC(t)&&e(t,Za(t));function nr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rs(e,t,n,r){return nr(e,t,SI(n),r)}const cx=(e,t)=>Math.abs(e-t);function CI(e,t){const n=cx(e.x,t.x),r=cx(e.y,t.y);return Math.sqrt(n**2+r**2)}class mC{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Md(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=CI(h.offset,{x:0,y:0})>=3;if(!p&&!m)return;const{point:x}=h,{timestamp:g}=rt;this.history.push({...x,timestamp:g});const{onStart:b,onMove:v}=this.handlers;p||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Od(p,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:m,onSessionEnd:x,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Md(h.type==="pointercancel"?this.lastMoveEventInfo:Od(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,b),x&&x(h,b)},!pC(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=Za(t),l=Od(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=rt;this.history=[{...c,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,Md(l,this.history)),this.removeListeners=ns(rs(this.contextWindow,"pointermove",this.handlePointerMove),rs(this.contextWindow,"pointerup",this.handlePointerUp),rs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),fs(this.updatePoint)}}function Od(e,t){return t?{point:t(e.point)}:e}function ux(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Md({point:e},t){return{point:e,delta:ux(e,gC(t)),offset:ux(e,EI(t)),velocity:NI(t,.1)}}function EI(e){return e[0]}function gC(e){return e[e.length-1]}function NI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=gC(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>sr(t)));)n--;if(!r)return{x:0,y:0};const i=or(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Co(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const vC=1e-4,PI=1-vC,TI=1+vC,yC=.01,kI=0-yC,RI=0+yC;function Ut(e){return e.max-e.min}function AI(e,t,n){return Math.abs(e-t)<=n}function dx(e,t,n,r=.5){e.origin=r,e.originPoint=De(t.min,t.max,e.origin),e.scale=Ut(n)/Ut(t),e.translate=De(n.min,n.max,e.origin)-e.originPoint,(e.scale>=PI&&e.scale<=TI||isNaN(e.scale))&&(e.scale=1),(e.translate>=kI&&e.translate<=RI||isNaN(e.translate))&&(e.translate=0)}function oa(e,t,n,r){dx(e.x,t.x,n.x,r?r.originX:void 0),dx(e.y,t.y,n.y,r?r.originY:void 0)}function fx(e,t,n){e.min=n.min+t.min,e.max=e.min+Ut(t)}function _I(e,t,n){fx(e.x,t.x,n.x),fx(e.y,t.y,n.y)}function hx(e,t,n){e.min=t.min-n.min,e.max=e.min+Ut(t)}function ia(e,t,n){hx(e.x,t.x,n.x),hx(e.y,t.y,n.y)}function DI(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?De(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?De(n,e,r.max):Math.min(e,n)),e}function px(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function OI(e,{top:t,left:n,bottom:r,right:s}){return{x:px(e.x,n,s),y:px(e.y,t,r)}}function mx(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function MI(e,t){return{x:mx(e.x,t.x),y:mx(e.y,t.y)}}function LI(e,t){let n=.5;const r=Ut(e),s=Ut(t);return s>r?n=di(t.min,t.max-r,e.min):r>s&&(n=di(e.min,e.max-s,t.min)),mr(0,1,n)}function II(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const kh=.35;function FI(e=kh){return e===!1?e=0:e===!0&&(e=kh),{x:gx(e,"left","right"),y:gx(e,"top","bottom")}}function gx(e,t,n){return{min:vx(e,t),max:vx(e,n)}}function vx(e,t){return typeof e=="number"?e:e[t]||0}const yx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Eo=()=>({x:yx(),y:yx()}),xx=()=>({min:0,max:0}),ze=()=>({x:xx(),y:xx()});function Yt(e){return[e("x"),e("y")]}function xC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function VI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ld(e){return e===void 0||e===1}function Rh({scale:e,scaleX:t,scaleY:n}){return!Ld(e)||!Ld(t)||!Ld(n)}function Ss(e){return Rh(e)||wC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wC(e){return wx(e.x)||wx(e.y)}function wx(e){return e&&e!=="0%"}function Ic(e,t,n){const r=e-n,s=t*r;return n+s}function bx(e,t,n,r,s){return s!==void 0&&(e=Ic(e,s,r)),Ic(e,n,r)+t}function Ah(e,t=0,n=1,r,s){e.min=bx(e.min,t,n,r,s),e.max=bx(e.max,t,n,r,s)}function bC(e,{x:t,y:n}){Ah(e.x,t.translate,t.scale,t.originPoint),Ah(e.y,n.translate,n.scale,n.originPoint)}const jx=.999999999999,Sx=1.0000000000001;function $I(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,a;for(let l=0;l<s;l++){i=n[l],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Po(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,bC(e,a)),r&&Ss(i.latestValues)&&Po(e,i.latestValues))}t.x<Sx&&t.x>jx&&(t.x=1),t.y<Sx&&t.y>jx&&(t.y=1)}function No(e,t){e.min=e.min+t,e.max=e.max+t}function Cx(e,t,n,r,s=.5){const i=De(e.min,e.max,s);Ah(e,t,n,i,r)}function Po(e,t){Cx(e.x,t.x,t.scaleX,t.scale,t.originX),Cx(e.y,t.y,t.scaleY,t.scale,t.originY)}function jC(e,t){return xC(zI(e.getBoundingClientRect(),t))}function BI(e,t,n){const r=jC(e,n),{scroll:s}=t;return s&&(No(r.x,s.offset.x),No(r.y,s.offset.y)),r}const SC=({current:e})=>e?e.ownerDocument.defaultView:null,UI=new WeakMap;class WI{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ze(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Za(f).point)},i=(f,h)=>{const{drag:p,dragPropagation:m,onDragStart:x}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jI(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yt(b=>{let v=this.getAxisMotionValue(b).get()||0;if(Bn.test(v)){const{projection:y}=this.visualElement;if(y&&y.layout){const w=y.layout.layoutBox[b];w&&(v=Ut(w)*(parseFloat(v)/100))}}this.originPoint[b]=v}),x&&Se.postRender(()=>x(f,h)),Ph(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:x,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=h;if(m&&this.currentDirection===null){this.currentDirection=HI(b),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),g&&g(f,h)},l=(f,h)=>this.stop(f,h),c=()=>Yt(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mC(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:SC(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Se.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Al(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=DI(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Co(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=OI(s.layoutBox,n):this.constraints=!1,this.elastic=FI(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Yt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=II(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Co(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=BI(r,s.root,this.visualElement.getTransformPagePoint());let a=MI(s.layout.layoutBox,i);if(n){const l=n(VI(a));this.hasMutatedConstraints=!!l,l&&(a=xC(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Yt(f=>{if(!Al(f,n,this.currentDirection))return;let h=c&&c[f]||{};a&&(h={min:0,max:0});const p=s?200:1e6,m=s?40:1e7,x={type:"inertia",velocity:r?t[f]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(f,x)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ph(this.visualElement,t),r.start(zm(t,r,0,n,this.visualElement,!1))}stopAnimation(){Yt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Yt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Yt(n=>{const{drag:r}=this.getProps();if(!Al(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n];i.set(t[n]-De(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Co(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Yt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();s[a]=LI({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Yt(a=>{if(!Al(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(De(c,u,s[a]))})}addListeners(){if(!this.visualElement.current)return;UI.set(this.visualElement,this);const t=this.visualElement.current,n=rs(t,"pointerdown",c=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Co(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Se.read(r);const a=nr(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Yt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=kh,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function Al(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function HI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class KI extends vs{constructor(t){super(t),this.removeGroupControls=pt,this.removeListeners=pt,this.controls=new WI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ex=e=>(t,n)=>{e&&Se.postRender(()=>e(t,n))};class qI extends vs{constructor(){super(...arguments),this.removePointerDownListener=pt}onPointerDown(t){this.session=new mC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:SC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ex(t),onStart:Ex(n),onMove:r,onEnd:(i,a)=>{delete this.session,s&&Se.postRender(()=>s(i,a))}}}mount(){this.removePointerDownListener=rs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const bu=d.createContext(null);function GI(){const e=d.useContext(bu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,s=d.useId();d.useEffect(()=>r(s),[]);const i=d.useCallback(()=>n&&n(s),[s,n]);return!t&&n?[!1,i]:[!0]}const Hm=d.createContext({}),CC=d.createContext({}),Jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Nx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=Nx(e,t.target.x),r=Nx(e,t.target.y);return`${n}% ${r}%`}},QI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=hs.parse(e);if(s.length>5)return r;const i=hs.createTransformer(e),a=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;s[0+a]/=l,s[1+a]/=c;const u=De(l,c,.5);return typeof s[2+a]=="number"&&(s[2+a]/=u),typeof s[3+a]=="number"&&(s[3+a]/=u),i(s)}},Fc={};function YI(e){Object.assign(Fc,e)}const{schedule:Km,cancel:P8}=NS(queueMicrotask,!1);class XI extends d.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;YI(ZI),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,s||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Se.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Km.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function EC(e){const[t,n]=GI(),r=d.useContext(Hm);return o.jsx(XI,{...e,layoutGroup:r,switchLayoutGroup:d.useContext(CC),isPresent:t,safeToRemove:n})}const ZI={borderRadius:{...Vi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vi,borderTopRightRadius:Vi,borderBottomLeftRadius:Vi,borderBottomRightRadius:Vi,boxShadow:QI},NC=["TopLeft","TopRight","BottomLeft","BottomRight"],JI=NC.length,Px=e=>typeof e=="string"?parseFloat(e):e,Tx=e=>typeof e=="number"||ne.test(e);function eF(e,t,n,r,s,i){s?(e.opacity=De(0,n.opacity!==void 0?n.opacity:1,tF(r)),e.opacityExit=De(t.opacity!==void 0?t.opacity:1,0,nF(r))):i&&(e.opacity=De(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<JI;a++){const l=`border${NC[a]}Radius`;let c=kx(t,l),u=kx(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Tx(c)===Tx(u)?(e[l]=Math.max(De(Px(c),Px(u),r),0),(Bn.test(u)||Bn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=De(t.rotate||0,n.rotate||0,r))}function kx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tF=PC(0,.5,DS),nF=PC(.5,.95,pt);function PC(e,t,n){return r=>r<e?0:r>t?1:n(di(e,t,r))}function Rx(e,t){e.min=t.min,e.max=t.max}function Qt(e,t){Rx(e.x,t.x),Rx(e.y,t.y)}function Ax(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _x(e,t,n,r,s){return e-=t,e=Ic(e,1/n,r),s!==void 0&&(e=Ic(e,1/s,r)),e}function rF(e,t=0,n=1,r=.5,s,i=e,a=e){if(Bn.test(t)&&(t=parseFloat(t),t=De(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=De(i.min,i.max,r);e===i&&(l-=t),e.min=_x(e.min,t,n,l,s),e.max=_x(e.max,t,n,l,s)}function Dx(e,t,[n,r,s],i,a){rF(e,t[n],t[r],t[s],t.scale,i,a)}const sF=["x","scaleX","originX"],oF=["y","scaleY","originY"];function Ox(e,t,n,r){Dx(e.x,t,sF,n?n.x:void 0,r?r.x:void 0),Dx(e.y,t,oF,n?n.y:void 0,r?r.y:void 0)}function Mx(e){return e.translate===0&&e.scale===1}function TC(e){return Mx(e.x)&&Mx(e.y)}function Lx(e,t){return e.min===t.min&&e.max===t.max}function iF(e,t){return Lx(e.x,t.x)&&Lx(e.y,t.y)}function Ix(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function kC(e,t){return Ix(e.x,t.x)&&Ix(e.y,t.y)}function Fx(e){return Ut(e.x)/Ut(e.y)}function Vx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aF{constructor(){this.members=[]}add(t){$m(this.members,t),t.scheduleRender()}remove(t){if(Bm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lF(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||i||a)&&(r=`translate3d(${s}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:f,rotateX:h,rotateY:p,skewX:m,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),x&&(r+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const cF=(e,t)=>e.depth-t.depth;class uF{constructor(){this.children=[],this.isDirty=!1}add(t){$m(this.children,t),this.isDirty=!0}remove(t){Bm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cF),this.isDirty=!1,this.children.forEach(t)}}function ec(e){const t=ht(e)?e.get():e;return ZL(t)?t.toValue():t}function dF(e,t){const n=Un.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(fs(r),e(i-t))};return Se.read(r,!0),()=>fs(r)}function fF(e){return e instanceof SVGElement&&e.tagName!=="svg"}function hF(e,t,n){const r=ht(e)?e:Ra(e);return r.start(zm("",r,t,n)),r.animation}const Cs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ki=typeof window<"u"&&window.MotionDebug!==void 0,Id=["","X","Y","Z"],pF={visibility:"hidden"},zx=1e3;let mF=0;function Fd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function RC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=uC(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Se,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&RC(r)}function AC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},l=t==null?void 0:t()){this.id=mF++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ki&&(Cs.totalNodes=Cs.resolvedTargetDeltas=Cs.recalculatedProjection=0),this.nodes.forEach(yF),this.nodes.forEach(SF),this.nodes.forEach(CF),this.nodes.forEach(xF),Ki&&window.MotionDebug.record(Cs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new uF)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Um),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fF(a),this.instance=a;const{layoutId:c,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=dF(p,250),Jl.hasAnimatedSinceResize&&(Jl.hasAnimatedSinceResize=!1,this.nodes.forEach(Bx))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeTargetChanged:m,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||kF,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=f.getProps(),y=!this.targetLayout||!kC(this.targetLayout,x)||m,w=!p&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const j={...Nm(g,"layout"),onPlay:b,onComplete:v};(f.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else p||Bx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,fs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(EF),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&RC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($x);return}this.isUpdating||this.nodes.forEach(bF),this.isUpdating=!1,this.nodes.forEach(jF),this.nodes.forEach(gF),this.nodes.forEach(vF),this.clearAllSnapshots();const l=Un.now();rt.delta=mr(0,1e3/60,l-rt.timestamp),rt.timestamp=l,rt.isProcessing=!0,kd.update.process(rt),kd.preRender.process(rt),kd.render.process(rt),rt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Km.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wF),this.sharedNodes.forEach(NF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Se.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Se.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!TC(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;a&&(l||Ss(this.latestValues)||f)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),RF(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return ze();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(AF))){const{scroll:f}=this.root;f&&(No(c.x,f.offset.x),No(c.y,f.offset.y))}return c}removeElementScroll(a){var l;const c=ze();if(Qt(c,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const f=this.path[u],{scroll:h,options:p}=f;f!==this.root&&h&&p.layoutScroll&&(h.wasRoot&&Qt(c,a),No(c.x,h.offset.x),No(c.y,h.offset.y))}return c}applyTransform(a,l=!1){const c=ze();Qt(c,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Po(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ss(f.latestValues)&&Po(c,f.latestValues)}return Ss(this.latestValues)&&Po(c,this.latestValues),c}removeTransform(a){const l=ze();Qt(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Ss(u.latestValues))continue;Rh(u.latestValues)&&u.updateSnapshot();const f=ze(),h=u.measurePageBox();Qt(f,h),Ox(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return Ss(this.latestValues)&&Ox(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==rt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=rt.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ze(),this.relativeTargetOrigin=ze(),ia(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ze(),this.targetWithTransforms=ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_I(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qt(this.target,this.layout.layoutBox),bC(this.target,this.targetDelta)):Qt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ze(),this.relativeTargetOrigin=ze(),ia(this.relativeTargetOrigin,this.target,m.target),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ki&&Cs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Rh(this.parent.latestValues)||wC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===rt.timestamp&&(u=!1),u)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Qt(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,m=this.treeScale.y;$I(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=ze());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ax(this.prevProjectionDelta.x,this.projectionDelta.x),Ax(this.prevProjectionDelta.y,this.projectionDelta.y)),oa(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==m||!Vx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),Ki&&Cs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Eo(),this.projectionDelta=Eo(),this.projectionDeltaWithTransform=Eo()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},f={...this.latestValues},h=Eo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=ze(),m=c?c.source:void 0,x=this.layout?this.layout.source:void 0,g=m!==x,b=this.getStack(),v=!b||b.members.length<=1,y=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(TF));this.animationProgress=0;let w;this.mixTargetDelta=j=>{const S=j/1e3;Ux(h.x,a.x,S),Ux(h.y,a.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ia(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),PF(this.relativeTarget,this.relativeTargetOrigin,p,S),w&&iF(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ze()),Qt(w,this.relativeTarget)),g&&(this.animationValues=f,eF(f,u,this.latestValues,S,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(fs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{Jl.hasAnimatedSinceResize=!0,this.currentAnimation=hF(0,zx,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:f}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&_C(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||ze();const h=Ut(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const p=Ut(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}Qt(l,c),Po(l,f),oa(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new aF),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Fd("z",a,u,this.animationValues);for(let f=0;f<Id.length;f++)Fd(`rotate${Id[f]}`,a,u,this.animationValues),Fd(`skew${Id[f]}`,a,u,this.animationValues);a.render();for(const f in u)a.setStaticValue(f,u[f]),this.animationValues&&(this.animationValues[f]=u[f]);a.scheduleRender()}getProjectionStyles(a){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return pF;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ec(a==null?void 0:a.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=ec(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ss(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=lF(this.projectionDeltaWithTransform,this.treeScale,p),f&&(u.transform=f(p,u.transform));const{x:m,y:x}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${x.origin*100}% 0`,h.animationValues?u.opacity=h===this?(c=(l=p.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in Fc){if(p[g]===void 0)continue;const{correct:b,applyTo:v}=Fc[g],y=u.transform==="none"?p[g]:b(p[g],h);if(v){const w=v.length;for(let j=0;j<w;j++)u[v[j]]=y}else u[g]=y}return this.options.layoutId&&(u.pointerEvents=h===this?ec(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach($x),this.root.sharedNodes.clear()}}}function gF(e){e.updateLayout()}function vF(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?Yt(h=>{const p=a?n.measuredBox[h]:n.layoutBox[h],m=Ut(p);p.min=r[h].min,p.max=p.min+m}):_C(i,n.layoutBox,r)&&Yt(h=>{const p=a?n.measuredBox[h]:n.layoutBox[h],m=Ut(r[h]);p.max=p.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const l=Eo();oa(l,r,n.layoutBox);const c=Eo();a?oa(c,e.applyTransform(s,!0),n.measuredBox):oa(c,r,n.layoutBox);const u=!TC(l);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:m}=h;if(p&&m){const x=ze();ia(x,n.layoutBox,p.layoutBox);const g=ze();ia(g,r,m.layoutBox),kC(x,g)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function yF(e){Ki&&Cs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function xF(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wF(e){e.clearSnapshot()}function $x(e){e.clearMeasurements()}function bF(e){e.isLayoutDirty=!1}function jF(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Bx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SF(e){e.resolveTargetDelta()}function CF(e){e.calcProjection()}
388function EF(e){e.resetSkewAndRotation()}function NF(e){e.removeLeadSnapshot()}function Ux(e,t,n){e.translate=De(t.translate,0,n),e.scale=De(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wx(e,t,n,r){e.min=De(t.min,n.min,r),e.max=De(t.max,n.max,r)}function PF(e,t,n,r){Wx(e.x,t.x,n.x,r),Wx(e.y,t.y,n.y,r)}function TF(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kF={duration:.45,ease:[.4,0,.1,1]},Hx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Kx=Hx("applewebkit/")&&!Hx("chrome/")?Math.round:pt;function qx(e){e.min=Kx(e.min),e.max=Kx(e.max)}function RF(e){qx(e.x),qx(e.y)}function _C(e,t,n){return e==="position"||e==="preserve-aspect"&&!AI(Fx(t),Fx(n),.2)}function AF(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const _F=AC({attachResizeListener:(e,t)=>nr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vd={current:void 0},DC=AC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vd.current){const e=new _F({});e.mount(window),e.setOptions({layoutScroll:!0}),Vd.current=e}return Vd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),DF={pan:{Feature:qI},drag:{Feature:KI,ProjectionNode:DC,MeasureLayout:EC}};function Gx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n);const s=r[n?"onHoverStart":"onHoverEnd"];s&&Se.postRender(()=>s(t,Za(t)))}class OF extends vs{mount(){const{current:t,props:n}=this.node;t&&(this.unmount=bI(t,r=>(Gx(this.node,r,!0),s=>Gx(this.node,s,!1)),{passive:!n.onHoverStart&&!n.onHoverEnd}))}unmount(){}}class MF extends vs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ns(nr(this.node.current,"focus",()=>this.onFocus()),nr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const OC=(e,t)=>t?e===t?!0:OC(e,t.parentElement):!1;function zd(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Za(n))}class LF extends vs{constructor(){super(...arguments),this.removeStartListeners=pt,this.removeEndListeners=pt,this.removeAccessibleListeners=pt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=rs(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:h}=this.node.getProps(),p=!h&&!OC(this.node.current,l.target)?f:u;p&&Se.update(()=>p(l,c))},{passive:!(r.onTap||r.onPointerUp)}),a=rs(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ns(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=l=>{l.key!=="Enter"||!this.checkPressEnd()||zd("up",(c,u)=>{const{onTap:f}=this.node.getProps();f&&Se.postRender(()=>f(c,u))})};this.removeEndListeners(),this.removeEndListeners=nr(this.node.current,"keyup",a),zd("down",(l,c)=>{this.startPress(l,c)})},n=nr(this.node.current,"keydown",t),r=()=>{this.isPressing&&zd("cancel",(i,a)=>this.cancelPress(i,a))},s=nr(this.node.current,"blur",r);this.removeAccessibleListeners=ns(n,s)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Se.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!hC()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Se.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=rs(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=nr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ns(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const _h=new WeakMap,$d=new WeakMap,IF=e=>{const t=_h.get(e.target);t&&t(e)},FF=e=>{e.forEach(IF)};function VF({root:e,...t}){const n=e||document;$d.has(n)||$d.set(n,{});const r=$d.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(FF,{root:e,...t})),r[s]}function zF(e,t,n){const r=VF(t);return _h.set(e,n),r.observe(e),()=>{_h.delete(e),r.unobserve(e)}}const $F={some:0,all:1};class BF extends vs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:$F[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),p=u?f:h;p&&p(c)};return zF(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(UF(t,n))&&this.startObserver()}unmount(){}}function UF({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WF={inView:{Feature:BF},tap:{Feature:LF},focus:{Feature:MF},hover:{Feature:OF}},HF={layout:{ProjectionNode:DC,MeasureLayout:EC}},qm=d.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ju=d.createContext({}),Gm=typeof window<"u",MC=Gm?d.useLayoutEffect:d.useEffect,LC=d.createContext({strict:!1});
vendor: 8,776 bytes, line 388
388function KF(e,t,n,r,s){var i,a;const{visualElement:l}=d.useContext(ju),c=d.useContext(LC),u=d.useContext(bu),f=d.useContext(qm).reducedMotion,h=d.useRef();r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f}));const p=h.current,m=d.useContext(CC);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&qF(h.current,n,s,m);const x=d.useRef(!1);d.useInsertionEffect(()=>{p&&x.current&&p.update(n,u)});const g=n[cC],b=d.useRef(!!g&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,g))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,g)));return MC(()=>{p&&(x.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Km.render(p.render),b.current&&p.animationState&&p.animationState.animateChanges())}),d.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),b.current=!1))}),p}function qF(e,t,n,r){const{layoutId:s,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:IC(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!a||l&&Co(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function IC(e){if(e)return e.options.allowProjection!==!1?e.projection:IC(e.parent)}function GF(e,t,n){return d.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Co(n)&&(n.current=r))},[t])}function Su(e){return yu(e.animate)||Em.some(t=>Pa(e[t]))}function FC(e){return!!(Su(e)||e.variants)}function QF(e,t){if(Su(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pa(n)?n:void 0,animate:Pa(r)?r:void 0}}return e.inherit!==!1?t:{}}function YF(e){const{initial:t,animate:n}=QF(e,d.useContext(ju));return d.useMemo(()=>({initial:t,animate:n}),[Qx(t),Qx(n)])}function Qx(e){return Array.isArray(e)?e.join(" "):e}const Yx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},fi={};for(const e in Yx)fi[e]={isEnabled:t=>Yx[e].some(n=>!!t[n])};function XF(e){for(const t in e)fi[t]={...fi[t],...e[t]}}const ZF=Symbol.for("motionComponentSymbol");function JF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){e&&XF(e);function i(l,c){let u;const f={...d.useContext(qm),...l,layoutId:e4(l)},{isStatic:h}=f,p=YF(l),m=r(l,h);if(!h&&Gm){t4();const x=n4(f);u=x.MeasureLayout,p.visualElement=KF(s,m,f,t,x.ProjectionNode)}return o.jsxs(ju.Provider,{value:p,children:[u&&p.visualElement?o.jsx(u,{visualElement:p.visualElement,...f}):null,n(s,l,GF(m,p.visualElement,c),m,h,p.visualElement)]})}const a=d.forwardRef(i);return a[ZF]=s,a}function e4({layoutId:e}){const t=d.useContext(Hm).id;return t&&e!==void 0?t+"-"+e:e}function t4(e,t){d.useContext(LC).strict}function n4(e){const{drag:t,layout:n}=fi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const r4=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Qm(e){return typeof e!="string"||e.includes("-")?!1:!!(r4.indexOf(e)>-1||/[A-Z]/u.test(e))}function VC(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const zC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $C(e,t,n,r){VC(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(zC.has(s)?s:Wm(s),t.attrs[s])}function BC(e,{layout:t,layoutId:n}){return to.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fc[e]||e==="opacity")}function Ym(e,t,n){var r;const{style:s}=e,i={};for(const a in s)(ht(s[a])||t.style&&ht(t.style[a])||BC(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=s[a]);return i}function UC(e,t,n){const r=Ym(e,t,n);for(const s in e)if(ht(e[s])||ht(t[s])){const i=Qa.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function Xm(e){const t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}function s4({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,s,i){const a={latestValues:o4(r,s,i,e),renderState:t()};return n&&(a.mount=l=>n(r,l,a)),a}const WC=e=>(t,n)=>{const r=d.useContext(ju),s=d.useContext(bu),i=()=>s4(e,t,r,s);return n?i():Xm(i)};function o4(e,t,n,r){const s={},i=r(e,{});for(const p in i)s[p]=ec(i[p]);let{initial:a,animate:l}=e;const c=Su(e),u=FC(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?l:a;if(h&&typeof h!="boolean"&&!yu(h)){const p=Array.isArray(h)?h:[h];for(let m=0;m<p.length;m++){const x=Sm(e,p[m]);if(x){const{transitionEnd:g,transition:b,...v}=x;for(const y in v){let w=v[y];if(Array.isArray(w)){const j=f?w.length-1:0;w=w[j]}w!==null&&(s[y]=w)}for(const y in g)s[y]=g[y]}}}return s}const Zm=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),HC=()=>({...Zm(),attrs:{}}),KC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,i4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a4=Qa.length;function l4(e,t,n){let r="",s=!0;for(let i=0;i<a4;i++){const a=Qa[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=KC(l,Dm[a]);if(!c){s=!1;const f=i4[a]||a;r+=`${f}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Jm(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(to.has(c)){a=!0;continue}else if(FS(c)){s[c]=u;continue}else{const f=KC(u,Dm[c]);c.startsWith("origin")?(l=!0,i[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=l4(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:f=0}=i;r.transformOrigin=`${c} ${u} ${f}`}}function Xx(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function c4(e,t,n){const r=Xx(t,e.x,e.width),s=Xx(n,e.y,e.height);return`${r} ${s}`}const u4={offset:"stroke-dashoffset",array:"stroke-dasharray"},d4={offset:"strokeDashoffset",array:"strokeDasharray"};function f4(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?u4:d4;e[i.offset]=ne.transform(-r);const a=ne.transform(t),l=ne.transform(n);e[i.array]=`${a} ${l}`}function eg(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...u},f,h){if(Jm(e,u,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:x}=e;p.transform&&(x&&(m.transform=p.transform),delete p.transform),x&&(s!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=c4(x,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&f4(p,a,l,c,!1)}const tg=e=>typeof e=="string"&&e.toLowerCase()==="svg",h4={useVisualState:WC({scrapeMotionValuesFromProps:UC,createRenderState:HC,onMount:(e,t,{renderState:n,latestValues:r})=>{Se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Se.render(()=>{eg(n,r,tg(t.tagName),e.transformTemplate),$C(t,n)})}})},p4={useVisualState:WC({scrapeMotionValuesFromProps:Ym,createRenderState:Zm})};function qC(e,t,n){for(const r in t)!ht(t[r])&&!BC(r,n)&&(e[r]=t[r])}function m4({transformTemplate:e},t){return d.useMemo(()=>{const n=Zm();return Jm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function g4(e,t){const n=e.style||{},r={};return qC(r,n,e),Object.assign(r,m4(e,t)),r}function v4(e,t){const n={},r=g4(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
388`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const y4=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Vc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||y4.has(e)}let GC=e=>!Vc(e);function x4(e){e&&(GC=t=>t.startsWith("on")?!Vc(t):e(t))}try{x4(require("@emotion/is-prop-valid").default)}catch{}function w4(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(GC(s)||n===!0&&Vc(s)||!t&&!Vc(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function b4(e,t,n,r){const s=d.useMemo(()=>{const i=HC();return eg(i,t,tg(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};qC(i,e.style,e),s.style={...i,...s.style}}return s}function j4(e=!1){return(n,r,s,{latestValues:i},a)=>{const c=(Qm(n)?b4:v4)(r,i,a,n),u=w4(r,typeof n=="string",e),f=n!==d.Fragment?{...u,...c,ref:s}:{},{children:h}=r,p=d.useMemo(()=>ht(h)?h.get():h,[h]);return d.createElement(n,{...f,children:p})}}function S4(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Qm(r)?h4:p4,preloadedFeatures:e,useRender:j4(s),createVisualElement:t,Component:r};return JF(a)}}const Dh={current:null},QC={current:!1};function C4(){if(QC.current=!0,!!Gm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dh.current=e.matches;e.addListener(t),t()}else Dh.current=!1}function E4(e,t,n){for(const r in t){const s=t[r],i=n[r];if(ht(s))e.addValue(r,s);else if(ht(i))e.addValue(r,Ra(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,Ra(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Zx=new WeakMap,N4=[...$S,ut,hs],P4=e=>N4.find(zS(e)),Jx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class T4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Rm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Un.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Se.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=Su(n),this.isVariantNode=FC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const m=h[p];c[p]!==void 0&&ht(m)&&m.set(c[p],!1)}}mount(t){this.current=t,Zx.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 7,753 bytes, lines 388-396
388h((n,r)=>this.bindToMotionValue(r,n)),QC.current||C4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Zx.delete(this.current),this.projection&&this.projection.unmount(),fs(this.notifyUpdate),fs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=to.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Se.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fi){const n=fi[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Jx.length;r++){const s=Jx[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,a=t[i];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=E4(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ra(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(LS(s)||MS(s))?s=parseFloat(s):!P4(s)&&hs.test(n)&&(s=QS(t,n)),this.setBaseTarget(t,ht(s)?s.get():s)),ht(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=Sm(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ht(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Um),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class YC extends T4{constructor(){super(...arguments),this.KeyframeResolver=YS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function k4(e){return window.getComputedStyle(e)}class R4 extends YC{constructor(){super(...arguments),this.type="html",this.renderInstance=VC}readValueFromInstance(t,n){if(to.has(n)){const r=Om(n);return r&&r.default||0}else{const r=k4(t),s=(FS(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return jC(t,n)}build(t,n,r){Jm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ym(t,n,r)}}class A4 extends YC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ze}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(to.has(n)){const r=Om(n);return r&&r.default||0}return n=zC.has(n)?n:Wm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return UC(t,n,r)}build(t,n,r){eg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){$C(t,n,r,s)}mount(t){this.isSVGTag=tg(t.tagName),super.mount(t)}}const _4=(e,t)=>Qm(e)?new A4(t):new R4(t,{allowProjection:e!==d.Fragment}),D4=S4({...xI,...WF,...DF,...HF},_4),e0=vM(D4);class O4 extends d.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function M4({children:e,isPresent:t}){const n=d.useId(),r=d.useRef(null),s=d.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=d.useContext(qm);return d.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u}=s.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return i&&(f.nonce=i),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` 389 [data-motion-pop-id="${n}"] { 390 position: absolute !important; 391 width: ${a}px !important; 392 height: ${l}px !important; 393 top: ${c}px !important; 394 left: ${u}px !important; 395 } 396 `),()=>{document.head.removeChild(f)}},[t]),o.jsx(O4,{isPresent:t,childRef:r,sizeRef:s,children:d.cloneElement(e,{ref:r})})}const L4=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:a})=>{const l=Xm(I4),c=d.useId(),u=d.useCallback(h=>{l.set(h,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),f=d.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:h=>(l.set(h,!1),()=>l.delete(h))}),i?[Math.random(),u]:[n,u]);return d.useMemo(()=>{l.forEach((h,p)=>l.set(p,!1))},[n]),d.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=o.jsx(M4,{isPresent:n,children:e})),o.jsx(bu.Provider,{value:f,children:e})};function I4(){return new Map}const _l=e=>e.key||"";function t0(e){const t=[];
396return d.Children.forEach(e,n=>{d.isValidElement(n)&&t.push(n)}),t}const n0=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const l=d.useMemo(()=>t0(e),[e]),c=l.map(_l),u=d.useRef(!0),f=d.useRef(l),h=Xm(()=>new Map),[p,m]=d.useState(l),[x,g]=d.useState(l);MC(()=>{u.current=!1,f.current=l;for(let y=0;y<x.length;y++){const w=_l(x[y]);c.includes(w)?h.delete(w):h.get(w)!==!0&&h.set(w,!1)}},[x,c.length,c.join("-")]);const b=[];if(l!==p){let y=[...l];for(let w=0;w<x.length;w++){const j=x[w],S=_l(j);c.includes(S)||(y.splice(w,0,j),b.push(j))}a==="wait"&&b.length&&(y=b),g(t0(y)),m(l);return}const{forceRender:v}=d.useContext(Hm);return o.jsx(o.Fragment,{children:x.map(y=>{const w=_l(y),j=l===x||c.includes(w),S=()=>{if(h.has(w))h.set(w,!0);else return;let P=!0;h.forEach(N=>{N||(P=!1)}),P&&(v==null||v(),g(f.current),s&&s())};return o.jsx(L4,{isPresent:j,initial:!u.current||r?void 0:!1,custom:j?void 0:n,presenceAffectsLayout:i,mode:a,onExitComplete:j?void 0:S,children:y},w)})})};function F4({open:e,onContinue:t,guestName:n}){const[r,s]=d.useState(0),[i,a]=d.useState(0),{data:l=[],isLoading:c}=$e({queryKey:["/api/slideshow-images"]}),u=l.filter(b=>b.isActive).sort((b,v)=>b.displayOrder-v.displayOrder),f=()=>{r<u.length-1?(a(1),s(r+1)):t()},h=()=>{r>0&&(a(-1),s(r-1))},p=b=>{a(b>r?1:-1),s(b)},m={enter:b=>({x:b>0?1e3:-1e3,opacity:0}),center:{x:0,opacity:1},exit:b=>({x:b<0?1e3:-1e3,opacity:0})};if(c)return null;if(u.length===0)return o.jsx(ds,{open:e,onOpenChange:()=>{},children:o.jsxs(hr,{className:"max-w-md p-8","data-testid":"dialog-introduction",children:[o.jsx(pr,{className:"sr-only",children:"Welcome"}),o.jsxs("div",{className:"text-center space-y-4",children:[o.jsxs("h2",{className:"font-serif text-2xl text-primary",children:["Welcome, ",n,"!"]}),o.jsx("p",{className:"text-base",children:"Thank you for visiting. We're thrilled to have you here today."}),o.jsx(q,{onClick:t,className:"w-full","data-testid":"button-continue",children:"Let's Begin!"})]})]})});const x=u[r],g=(b,v)=>{const y=b.replace(/\{guestName\}/g,`<span class="font-serif text-primary font-semibold">${v}</span>`);return o.jsx("div",{className:"text-foreground/90 prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:y}})};return o.jsx(ds,{open:e,onOpenChange:()=>{},children:o.jsxs(hr,{className:"max-w-6xl p-0 gap-0 overflow-hidden border-0","data-testid":"dialog-introduction",children:[o.jsx(pr,{className:"sr-only",children:"Welcome Slideshow"}),o.jsxs("div",{className:"flex h-[85vh] max-h-[650px]",children:[o.jsx("div",{className:"relative w-2/5 bg-black flex items-center justify-center p-6",children:o.jsx(n0,{initial:!1,custom:i,children:o.jsx(e0.div,{custom:i,variants:m,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},className:"relative w-full h-full flex items-center justify-center",children:(x==null?void 0:x.imageUrl)&&o.jsx("div",{className:"relative w-full aspect-[4/5] overflow-hidden rounded-lg shadow-2xl",children:o.jsx("img",{src:x.imageUrl,alt:x.title||"Slide image",className:"absolute inset-0 h-full w-full object-cover max-w-none scale-125 origin-center"})})},r)})}),o.jsxs("div",{className:"w-3/5 flex flex-col bg-background",children:[o.jsx("div",{className:"flex-1 overflow-y-auto p-8",children:o.jsx("div",{className:"min-h-full flex flex-col justify-center",children:o.jsx(n0,{mode:"wait",children:o.jsxs(e0.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},className:"space-y-4",children:[o.jsx("h2",{className:"font-serif text-2xl text-primary leading-tight",children:x==null?void 0:x.title}),(x==null?void 0:x.contentHtml)&&g(x.contentHtml,n)]},r)})})}),o.jsxs("div",{className:"border-t bg-background p-4 space-y-3",children:[o.jsxs("div",{className:"flex justify-between items-center gap-4",children:[o.jsxs(q,{variant:"outline",onClick:h,disabled:r===0,className:"gap-2","data-testid":"button-prev-slide",children:[o.jsx(_A,{className:"w-4 h-4"}),"Back"]}),o.jsxs("div",{className:"text-sm text-muted-foreground",children:[r+1," / ",u.length]}),o.jsxs(q,{onClick:f,className:"gap-2","data-testid":"button-next-slide",children:[r===u.length-1?"Let's Begin!":"Next",r<u.length-1&&o.jsx(DA,{className:"w-4 h-4"})]})]}),o.jsx("div",{className:"flex justify-center gap-2 pt-2",children:u.map((b,v)=>o.jsx("button",{onClick:()=>p(v),className:`h-2.5 rounded-full transition-all duration-300 ${v===r?"w-8 bg-primary":"w-2.5 bg-muted-foreground
396/40 hover:bg-muted-foreground/60"}`,"data-testid":`dot-slide-${v}`,"aria-label":`Go to slide ${v+1}`},v))})]})]})]})]})})}var V4="Label",XC=d.forwardRef((e,t)=>o.jsx(se.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));XC.displayName=V4;var ZC=XC;const z4=xi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),dt=d.forwardRef(({className:e,...t},n)=>o.jsx(ZC,{ref:n,className:K(z4(),e),...t}));dt.displayName=ZC.displayName;const Fo=d.forwardRef(({className:e,...t},n)=>o.jsx("textarea",{"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",className:K("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Fo.displayName="Textarea";var $4=d.createContext(void 0);function Cu(e){const t=d.useContext($4);return e||t||"ltr"}var Bd="rovingFocusGroup.onEntryFocus",B4={bubbles:!1,cancelable:!0},Eu="RovingFocusGroup",[Oh,JC,U4]=Kp(Eu),[W4,eE]=ln(Eu,[U4]),[H4,K4]=W4(Eu),tE=d.forwardRef((e,t)=>o.jsx(Oh.Provider,{scope:e.__scopeRovingFocusGroup,children:o.jsx(Oh.Slot,{scope:e.__scopeRovingFocusGroup,children:o.jsx(q4,{...e,ref:t})})}));tE.displayName=Eu;var q4=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...h}=e,p=d.useRef(null),m=de(t,p),x=Cu(i),[g=null,b]=as({prop:a,defaultProp:l,onChange:c}),[v,y]=d.useState(!1),w=Ue(u),j=JC(n),S=d.useRef(!1),[P,N]=d.useState(0);return d.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(Bd,w),()=>E.removeEventListener(Bd,w)},[w]),o.jsx(H4,{scope:n,orientation:r,dir:x,loop:s,currentTabStopId:g,onItemFocus:d.useCallback(E=>b(E),[b]),onItemShiftTab:d.useCallback(()=>y(!0),[]),onFocusableItemAdd:d.useCallback(()=>N(E=>E+1),[]),onFocusableItemRemove:d.useCallback(()=>N(E=>E-1),[]),children:o.jsx(se.div,{tabIndex:v||P===0?-1:0,"data-orientation":r,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{S.current=!0}),onFocus:Q(e.onFocus,E=>{const _=!S.current;if(E.target===E.currentTarget&&_&&!v){const T=new CustomEvent(Bd,B4);if(E.currentTarget.dispatchEvent(T),!T.defaultPrevented){const O=j().filter(z=>z.focusable),L=O.find(z=>z.active),G=O.find(z=>z.id===g),J=[L,G,...O].filter(Boolean).map(z=>z.ref.current);sE(J,f)}}S.current=!1}),onBlur:Q(e.onBlur,()=>y(!1))})})}),nE="RovingFocusGroupItem",rE=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,...a}=e,l=es(),c=i||l,u=K4(nE,n),f=u.currentTabStopId===c,h=JC(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=u;return d.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),o.jsx(Oh.ItemSlot,{scope:n,id:c,focusable:r,active:s,children:o.jsx(se.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:Q(e.onMouseDown,x=>{r?u.onItemFocus(c):x.preventDefault()}),onFocus:Q(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:Q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){u.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const g=Y4(x,u.orientation,u.dir);if(g!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let v=h().filter(y=>y.focusable).map(y=>y.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const y=v.indexOf(x.currentTarget);v=u.loop?X4(v,y+1):v.slice(y+1)}setTimeout(()=>sE(v))}})})})});rE.displayName=nE;var G4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Q4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Y4(e,t,n){const r=Q4(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return G4[r]}function sE(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function X4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Z4=tE,J4=rE;function ng(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var rg="Radio",[e3,oE]=ln(rg),[t3,n3]=e3(rg),iE=d.forwardRef((e,t)=>
vendor: 2,651 bytes, line 396
396{const{__scopeRadio:n,name:r,checked:s=!1,required:i,disabled:a,value:l="on",onCheck:c,form:u,...f}=e,[h,p]=d.useState(null),m=de(t,b=>p(b)),x=d.useRef(!1),g=h?u||!!h.closest("form"):!0;return o.jsxs(t3,{scope:n,checked:s,disabled:a,children:[o.jsx(se.button,{type:"button",role:"radio","aria-checked":s,"data-state":cE(s),"data-disabled":a?"":void 0,disabled:a,value:l,...f,ref:m,onClick:Q(e.onClick,b=>{s||c==null||c(),g&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),g&&o.jsx(r3,{control:h,bubbles:!x.current,name:r,value:l,checked:s,required:i,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});iE.displayName=rg;var aE="RadioIndicator",lE=d.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...s}=e,i=n3(aE,n);return o.jsx(cn,{present:r||i.checked,children:o.jsx(se.span,{"data-state":cE(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})})});lE.displayName=aE;var r3=e=>{const{control:t,checked:n,bubbles:r=!0,...s}=e,i=d.useRef(null),a=ng(n),l=cm(t);return d.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&h){const p=new Event("click",{bubbles:r});h.call(c,n),c.dispatchEvent(p)}},[a,n,r]),o.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function cE(e){return e?"checked":"unchecked"}var s3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sg="RadioGroup",[o3,k8]=ln(sg,[eE,oE]),uE=eE(),dE=oE(),[i3,a3]=o3(sg),fE=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:s,value:i,required:a=!1,disabled:l=!1,orientation:c,dir:u,loop:f=!0,onValueChange:h,...p}=e,m=uE(n),x=Cu(u),[g,b]=as({prop:i,defaultProp:s,onChange:h});return o.jsx(i3,{scope:n,name:r,required:a,disabled:l,value:g,onValueChange:b,children:o.jsx(Z4,{asChild:!0,...m,orientation:c,dir:x,loop:f,children:o.jsx(se.div,{role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":l?"":void 0,dir:x,...p,ref:t})})})});fE.displayName=sg;var hE="RadioGroupItem",pE=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...s}=e,i=a3(hE,n),a=i.disabled||r,l=uE(n),c=dE(n),u=d.useRef(null),f=de(t,u),h=i.value===s.value,p=d.useRef(!1);return d.useEffect(()=>{const m=g=>{s3.includes(g.key)&&(p.current=!0)},x=()=>p.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",x)}},[]),o.jsx(J4,{asChild:!0,...l,focusable:!a,active:h,children:o.jsx(iE,{disabled:a,required:i.required,
396checked:h,...c,...s,name:i.name,ref:f,onCheck:()=>i.onValueChange(s.value),onKeyDown:Q(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:Q(s.onFocus,()=>{var m;p.current&&((m=u.current)==null||m.click())})})})});pE.displayName=hE;var l3="RadioGroupIndicator",mE=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,s=dE(n);return o.jsx(lE,{...s,...r,ref:t})});mE.displayName=l3;var gE=fE,vE=pE,c3=mE;const yE=d.forwardRef(({className:e,...t},n)=>o.jsx(gE,{className:K("grid gap-2",e),...t,ref:n}));yE.displayName=gE.displayName;const xE=d.forwardRef(({className:e,...t},n)=>o.jsx(vE,{ref:n,className:K("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:o.jsx(c3,{className:"flex items-center justify-center",children:o.jsx(MA,{className:"h-2.5 w-2.5 fill-current text-current"})})}));xE.displayName=vE.displayName;const u3={1:"Very Difficult",2:"Difficult",3:"Neutral",4:"Easy",5:"Very Easy"},r0={1:"Strongly Disagree",2:"Disagree",3:"Neutral",4:"Agree",5:"Strongly Agree"},d3={1:"Not at all",2:"Unlikely",3:"Neutral",4:"Likely",5:"Very Likely"};function f3({open:e,onClose:t,onSubmit:n,submitting:r=!1}){const[s,i]=d.useState({easeOfUse:null,helpfulness:null,staffReplacement:null,recommendation:null,favoriteFeature:"",improvements:"",additionalComments:""}),a=c=>{c.preventDefault(),n(s)},l=({value:c,onChange:u,labels:f,name:h})=>o.jsx(yE,{value:(c==null?void 0:c.toString())||"",onValueChange:p=>u(parseInt(p)),className:"flex gap-2",children:[1,2,3,4,5].map(p=>o.jsxs("div",{className:"flex flex-col items-center gap-1 flex-1",children:[o.jsx(xE,{value:p.toString(),id:`${h}-${p}`,className:"h-5 w-5","data-testid":`radio-${h}-${p}`}),o.jsx(dt,{htmlFor:`${h}-${p}`,className:"text-xs text-center cursor-pointer",children:p}),o.jsx("span",{className:"text-[10px] text-muted-foreground text-center hidden sm:block",children:f[p]})]},p))});return o.jsx(ds,{open:e,onOpenChange:t,children:o.jsxs(hr,{className:"max-w-3xl max-h-[90vh] overflow-y-auto","data-testid":"dialog-survey",children:[o.jsxs(Ga,{children:[o.jsx(pr,{className:"font-serif text-2xl text-primary",children:"Tasting Experience Survey"}),o.jsx(Si,{children:"Thank you for trying our Interactive Tasting Companion! Your feedback helps us improve."})]}),o.jsxs("form",{onSubmit:a,className:"space-y-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(dt,{className:"text-base font-medium",children:"1. How easy was it to use the app during your tasting?"}),o.jsx(l,{name:"ease-of-use",value:s.easeOfUse,onChange:c=>i({...s,easeOfUse:c}),labels:u3})]}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(dt,{className:"text-base font-medium",children:"2. How helpful was the app in enhancing your tasting experience?"}),o.jsx(l,{name:"helpfulness",value:s.helpfulness,onChange:c=>i({...s,helpfulness:c}),labels:r0})]}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(dt,{className:"text-base font-medium",children:"3. The app complemented (not replaced) our tasting staff"}),o.jsx(l,{name:"staff-replacement",value:s.staffReplacement,onChange:c=>i({...s,staffReplacement:c}),labels:r0})]}),o.jsxs("div",{className:"space-y-3",children:[o.jsx(dt,{className:"text-base font-medium",children:"4. Would you recommend this app to other visitors?"}),o.jsx(l,{name:"recommendation",value:s.recommendation,onChange:c=>i({...s,recommendation:c}),labels:d3})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(dt,{htmlFor:"favorite-feature",className:"text-base font-medium",children:"5. What was your favorite feature?"}),o.jsx(Fo,{id:"favorite-feature",placeholder:"e.g., AI recommendations, trivia, product details...",value:s.favoriteFeature,onChange:c=>i({...s,favoriteFeature:c.target.value}),className:"min-h-[80px]","data-testid":"textarea-favorite-feature"})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(dt,{htmlFor:"improvements",className:"text-base font-medium",children:"6. What c
396ould we improve?"}),o.jsx(Fo,{id:"improvements",placeholder:"Share any suggestions or issues you encountered...",value:s.improvements,onChange:c=>i({...s,improvements:c.target.value}),className:"min-h-[80px]","data-testid":"textarea-improvements"})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(dt,{htmlFor:"additional-comments",className:"text-base font-medium",children:"7. Additional comments (optional)"}),o.jsx(Fo,{id:"additional-comments",placeholder:"Anything else you'd like to share...",value:s.additionalComments,onChange:c=>i({...s,additionalComments:c.target.value}),className:"min-h-[80px]","data-testid":"textarea-additional-comments"})]})]}),o.jsxs("div",{className:"flex gap-3 pt-4 border-t",children:[o.jsx(q,{type:"button",variant:"outline",onClick:t,className:"flex-1","data-testid":"button-cancel-survey",children:"Cancel"}),o.jsx(q,{type:"submit",className:"flex-1",disabled:r,"data-testid":"button-submit-survey",children:r?"Submitting...":o.jsxs(o.Fragment,{children:[o.jsx(ch,{className:"w-4 h-4 mr-2"}),"Submit Feedback"]})})]})]})]})})}const h3=xi("whitespace-nowrap inline-flex items-center rounded-md 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 hover-elevate ",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-xs",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-xs",outline:" border [border-color:var(--badge-outline)] shadow-xs"}},defaultVariants:{variant:"default"}});function ge({className:e,variant:t,...n}){return o.jsx("div",{className:K(h3({variant:t}),e),...n})}function p3({id:e,name:t,category:n,image:r,characteristics:s,isFavorite:i=!1,onFavoriteToggle:a,onClick:l}){const c=u=>{u.stopPropagation(),a==null||a(e)};return o.jsxs("div",{className:"flex items-center gap-4 p-3 hover-elevate cursor-pointer rounded-md border border-border bg-card",onClick:()=>l==null?void 0:l(e),"data-testid":`list-item-product-${e}`,children:[o.jsx("div",{className:"relative w-14 h-14 flex-shrink-0 rounded-md overflow-hidden bg-muted",children:r?o.jsx("img",{src:r,alt:t,className:"w-full h-full object-cover"}):o.jsx("div",{className:"w-full h-full flex items-center justify-center text-muted-foreground",children:o.jsx(eo,{className:"w-6 h-6"})})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("h3",{className:"font-serif text-base font-medium mb-1 truncate","data-testid":`text-product-name-${e}`,children:t}),o.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[o.jsx(ge,{variant:"secondary",className:"text-xs",children:n}),s&&o.jsx("span",{className:"text-muted-foreground truncate",children:s})]})]}),o.jsx("button",{onClick:c,className:"flex-shrink-0 p-2 rounded-full hover-elevate active-elevate-2","data-testid":`button-favorite-${e}`,children:o.jsx(Wn,{className:`w-5 h-5 ${i?"fill-primary text-primary":"text-muted-foreground"}`})})]})}function Mh(e,[t,n]){return Math.min(n,Math.max(t,e))}var m3=[" ","Enter","ArrowUp","ArrowDown"],g3=[" ","Enter"],Ja="Select",[Nu,Pu,v3]=Kp(Ja),[Ei,R8]=ln(Ja,[v3,fu]),Tu=fu(),[y3,ys]=Ei(Ja),[x3,w3]=Ei(Ja),wE=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:i,value:a,defaultValue:l,onValueChange:c,dir:u,name:f,autoComplete:h,disabled:p,required:m,form:x}=e,g=Tu(t),[b,v]=d.useState(null),[y,w]=d.useState(null),[j,S]=d.useState(!1),P=Cu(u),[N=!1,E]=as({prop:r,defaultProp:s,onChange:i}),[_,T]=as({prop:a,defaultProp:l,onChange:c}),O=d.useRef(null),L=b?x||!!b.closest("form"):!0,[G,V]=d.useState(new Set),J=Array.from(G).map(z=>z.props.value).join(";");return o.jsx(Dj,{...g,children:o.jsxs(y3,{required:m,scope:t,trigger:b,onTriggerChange:v,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:j,onValueNodeHasChildrenChange:S,contentId:es(),value:_,onValueChange:T,open:N,onOpenChange:E,dir:P,triggerPointerDownPosRef:O,disabled:p,children:[o.jsx(Nu.Provider,{scope:t,children:o.jsx(x3,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(z=>{V(W=>new Set(W).add(z))},[]),onNativeOptionRemove:d.useCallback(z=>{V(W=>{const D=new Set(W);return D.delete(z),D})},[]),children:n})}),L?o.jsxs(HE,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:h,value:_,onCh
vendor: 16,954 bytes, line 396
396ange:z=>T(z.target.value),disabled:p,form:x,children:[_===void 0?o.jsx("option",{value:""}):null,Array.from(G)]},J):null]})})};wE.displayName=Ja;var bE="SelectTrigger",jE=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,i=Tu(n),a=ys(bE,n),l=a.disabled||r,c=de(t,a.onTriggerChange),u=Pu(n),f=d.useRef("touch"),[h,p,m]=KE(g=>{const b=u().filter(w=>!w.disabled),v=b.find(w=>w.value===a.value),y=qE(b,g,v);y!==void 0&&a.onValueChange(y.value)}),x=g=>{l||(a.onOpenChange(!0),m()),g&&(a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return o.jsx(Oj,{asChild:!0,...i,children:o.jsx(se.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":WE(a.value)?"":void 0,...s,ref:c,onClick:Q(s.onClick,g=>{g.currentTarget.focus(),f.current!=="mouse"&&x(g)}),onPointerDown:Q(s.onPointerDown,g=>{f.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(x(g),g.preventDefault())}),onKeyDown:Q(s.onKeyDown,g=>{const b=h.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(b&&g.key===" ")&&m3.includes(g.key)&&(x(),g.preventDefault())})})})});jE.displayName=bE;var SE="SelectValue",CE=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:a="",...l}=e,c=ys(SE,n),{onValueNodeHasChildrenChange:u}=c,f=i!==void 0,h=de(t,c.onValueNodeChange);return it(()=>{u(f)},[u,f]),o.jsx(se.span,{...l,ref:h,style:{pointerEvents:"none"},children:WE(c.value)?o.jsx(o.Fragment,{children:a}):i})});CE.displayName=SE;var b3="SelectIcon",EE=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return o.jsx(se.span,{"aria-hidden":!0,...s,ref:t,children:r||"â¼"})});EE.displayName=b3;var j3="SelectPortal",NE=e=>o.jsx(iu,{asChild:!0,...e});NE.displayName=j3;var Qs="SelectContent",PE=d.forwardRef((e,t)=>{const n=ys(Qs,e.__scopeSelect),[r,s]=d.useState();if(it(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?Zs.createPortal(o.jsx(TE,{scope:e.__scopeSelect,children:o.jsx(Nu.Slot,{scope:e.__scopeSelect,children:o.jsx("div",{children:e.children})})}),i):null}return o.jsx(kE,{...e,ref:t})});PE.displayName=Qs;var mn=10,[TE,xs]=Ei(Qs),S3="SelectContentImpl",C3=ai("SelectContent.RemoveScroll"),kE=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:p,collisionPadding:m,sticky:x,hideWhenDetached:g,avoidCollisions:b,...v}=e,y=ys(Qs,n),[w,j]=d.useState(null),[S,P]=d.useState(null),N=de(t,Y=>j(Y)),[E,_]=d.useState(null),[T,O]=d.useState(null),L=Pu(n),[G,V]=d.useState(!1),J=d.useRef(!1);d.useEffect(()=>{if(w)return oS(w)},[w]),Yj();const z=d.useCallback(Y=>{const[we,...U]=L().map(ve=>ve.ref.current),[ce]=U.slice(-1),ae=document.activeElement;for(const ve of Y)if(ve===ae||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===we&&S&&(S.scrollTop=0),ve===ce&&S&&(S.scrollTop=S.scrollHeight),ve==null||ve.focus(),document.activeElement!==ae))return},[L,S]),W=d.useCallback(()=>z([E,w]),[z,E,w]);d.useEffect(()=>{G&&W()},[G,W]);const{onOpenChange:D,triggerPointerDownPosRef:F}=y;d.useEffect(()=>{if(w){let Y={x:0,y:0};const we=ce=>{var ae,ve;Y={x:Math.abs(Math.round(ce.pageX)-(((ae=F.current)==null?void 0:ae.x)??0)),y:Math.abs(Math.round(ce.pageY)-(((ve=F.current)==null?void 0:ve.y)??0))}},U=ce=>{Y.x<=10&&Y.y<=10?ce.preventDefault():w.contains(ce.target)||D(!1),document.removeEventListener("pointermove",we),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,D,F]),d.useEffect(()=>{const Y=()=>D(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[D]);const[$,ee]=KE(Y=>{const we=L().filter(ae=>!ae.disabled),U=we.find(ae=>ae.ref.current===document.activeElement),ce=qE(we,Y,U);ce&&setTimeout(()=>ce.ref.current.focus())}),pe=d.useCallback((Y,we,U)=>{const ce=!J.current&&!U;(y.value!==void 0&&y.value===we||ce)&&(_(Y),ce&&(J.current=!0))},[y.value]),Ae=d.useCallback(()=>w==null?void 0:w.focus(),[w]),Ce=d.useCallback((Y,we,U)=>{const ce=!J.current&&!U;(y.value!==void 0&&y.value===we||ce)&&O(Y)},[y.value]),Ye=r==="popper"?Lh:RE,Le=Ye===Lh?{side:l,sideOffset:c,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:p,collisionPadding:m,sticky:x,hideWhenDetached:g,avoidCollisions:b}:{};return o.jsx(TE,{scope:n,content:w,viewport:S,onViewportChange:P,itemRefCallback:pe,selectedItem:E,onItemLeave:Ae,itemTextRefCallback:Ce,focusSelectedItem:W,selectedItemText:T,position:r,isPositioned:G,searchRef:$,children:o.jsx(mm,{as:C3,allowPinchZoom:!0,children:o.jsx(pm,{asChild:!0,trapped:y.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:Q(s,Y=>{var we;(we=y.trigger)==null||we.focus({preventScroll:!0}),Y.preventDefault()}),children:o.jsx($a,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:o.jsx(Ye,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:Y=>Y.preventDefault(),...v,...Le,onPlaced:()=>V(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Q(v.onKeyDown,Y=>{const we=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!we&&Y.key.length===1&&ee(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let ce=L().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(ce=ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const ae=Y.target,ve=ce.indexOf(ae);ce=ce.slice(ve+1)}setTimeout(()=>z(ce)),Y.preventDefault()}})})})})})})});kE.displayName=S3;var E3="SelectItemAlignedPosition",RE=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,i=ys(Qs,n),a=xs(Qs,n),[l,c]=d.useState(null),[u,f]=d.useState(null),h=de(t,N=>f(N)),p=Pu(n),m=d.useRef(!1),x=d.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:v,focusSelectedItem:y}=a,w=d.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&g&&b&&v){const N=i.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),_=i.valueNode.getBoundingClientRect(),T=v.getBoundingClientRect();if(i.dir!=="rtl"){const ae=T.left-E.left,ve=_.left-ae,gt=N.left-ve,Ct=N.width+gt,yr=Math.max(Ct,E.width),xr=window.innerWidth-mn,Pn=Mh(ve,[mn,Math.max(mn,xr-yr)]);l.style.minWidth=Ct+"px",l.style.left=Pn+"px"}else{const ae=E.right-T.right,ve=window.innerWidth-_.right-ae,gt=window.innerWidth-N.right-ve,Ct=N.width+gt,yr=Math.max(Ct,E.width),xr=window.innerWidth-mn,Pn=Mh(ve,[mn,Math.max(mn,xr-yr)]);l.style.minWidth=Ct+"px",l.style.right=Pn+"px"}const O=p(),L=window.innerHeight-mn*2,G=g.scrollHeight,V=window.getComputedStyle(u),J=parseInt(V.borderTopWidth,10),z=parseInt(V.paddingTop,10),W=parseInt(V.borderBottomWidth,10),D=parseInt(V.paddingBottom,10),F=J+z+G+D+W,$=Math.min(b.offsetHeight*5,F),ee=window.getComputedStyle(g),pe=parseInt(ee.paddingTop,10),Ae=parseInt(ee.paddingBottom,10),Ce=N.top+N.height/2-mn,Ye=L-Ce,Le=b.offsetHeight/2,Y=b.offsetTop+Le,we=J+z+Y,U=F-we;if(we<=Ce){const ae=O.length>0&&b===O[O.length-1].ref.current;l.style.bottom="0px";const ve=u.clientHeight-g.offsetTop-g.offsetHeight,gt=Math.max(Ye,Le+(ae?Ae:0)+ve+W),Ct=we+gt;l.style.height=Ct+"px"}else{const ae=O.length>0&&b===O[0].ref.current;l.style.top="0px";const gt=Math.max(Ce,J+g.offsetTop+(ae?pe:0)+Le)+U;l.style.height=gt+"px",g.scrollTop=we-Ce+g.offsetTop}l.style.margin=`${mn}px 0`,l.style.minHeight=$+"px",l.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,l,u,g,b,v,i.dir,r]);it(()=>w(),[w]);const[j,S]=d.useState();it(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const P=d.useCallback(N=>{N&&x.current===!0&&(w(),y==null||y(),x.current=!1)},[w,y]);return o.jsx(P3,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:o.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:o.jsx(se.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});RE.displayName=E3;var N3="SelectPopperPosition",Lh=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=mn,...i}=e,a=Tu(n);return o.jsx(Mj,{...a,...i,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Lh.displayName=N3;var[P3,og]=Ei(Qs,{}),Ih="SelectViewport",AE=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,i=xs(Ih,n),a=og(Ih,n),l=de(t,i.onViewportChange),c=d.useRef(0);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),o.jsx(Nu.Slot,{scope:n,children:o.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Q(s.onScroll,u=>{const f=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&h){const m=Math.abs(c.current-f.scrollTop);if(m>0){const x=window.innerHeight-mn*2,g=parseFloat(h.style.minHeight),b=parseFloat(h.style.height),v=Math.max(g,b);if(v<x){const y=v+m,w=Math.min(x,y),j=y-w;h.style.height=w+"px",h.style.bottom==="0px"&&(f.scrollTop=j>0?j:0,h.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});AE.displayName=Ih;var _E="SelectGroup",[T3,k3]=Ei(_E),R3=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=es();return o.jsx(T3,{scope:n,id:s,children:o.jsx(se.div,{role:"group","aria-labelledby":s,...r,ref:t})})});R3.displayName=_E;var DE="SelectLabel",OE=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=k3(DE,n);return o.jsx(se.div,{id:s.id,...r,ref:t})});OE.displayName=DE;var zc="SelectItem",[A3,ME]=Ei(zc),LE=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...a}=e,l=ys(zc,n),c=xs(zc,n),u=l.value===r,[f,h]=d.useState(i??""),[p,m]=d.useState(!1),x=de(t,y=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,y,r,s)}),g=es(),b=d.useRef("touch"),v=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return o.jsx(A3,{scope:n,value:r,disabled:s,textId:g,isSelected:u,onItemTextChange:d.useCallback(y=>{h(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:o.jsx(Nu.ItemSlot,{scope:n,value:r,disabled:s,textValue:f,children:o.jsx(se.div,{role:"option","aria-labelledby":g,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...a,ref:x,onFocus:Q(a.onFocus,()=>m(!0)),onBlur:Q(a.onBlur,()=>m(!1)),onClick:Q(a.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:Q(a.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:Q(a.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:Q(a.onPointerMove,y=>{var w;b.current=y.pointerType,s?(w=c.onItemLeave)==null||w.call(c):b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(a.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Q(a.onKeyDown,y=>{var j;((j=c.searchRef)==null?void 0:j.current)!==""&&y.key===" "||(g3.includes(y.key)&&v(),y.key===" "&&y.preventDefault())})})})})});LE.displayName=zc;var qi="SelectItemText",IE=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...i}=e,a=ys(qi,n),l=xs(qi,n),c=ME(qi,n),u=w3(qi,n),[f,h]=d.useState(null),p=de(t,v=>h(v),c.onItemTextChange,v=>{var y;return(y=l.itemTextRefCallback)==null?void 0:y.call(l,v,c.value,c.disabled)}),m=f==null?void 0:f.textContent,x=d.useMemo(()=>o.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=u;return it(()=>(g(x),()=>b(x)),[g,b,x]),o.jsxs(o.Fragment,{children:[o.jsx(se.span,{id:c.textId,...i,ref:p}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Zs.createPortal(i.children,a.valueNode):null]})});IE.displayName=qi;var FE="SelectItemIndicator",VE=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ME(FE,n).isSelected?o.jsx(se.span,{"aria-hidden":!0,...r,ref:t}):null});VE.displayName=FE;var Fh="SelectScrollUpButton",zE=d.forwardRef((e,t)=>{const n=xs(Fh,e.__scopeSelect),r=og(Fh,e.__scopeSelect),[s,i]=d.useState(!1),a=de(t,r.onScrollButtonChange);return it(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?o.jsx(BE,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});zE.displayName=Fh;var Vh="SelectScrollDownButton",$E=d.forwardRef((e,t)=>{const n=xs(Vh,e.__scopeSelect),r=og(Vh,e.__scopeSelect),[s,i]=d.useState(!1),a=de(t,r.onScrollButtonChange);return it(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;i(f)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),s?o.jsx(BE,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});$E.displayName=Vh;var BE=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,i=xs("SelectScrollButton",n),a=d.useRef(null),l=Pu(n),c=d.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),it(()=>{var f;const u=l().find(h=>h.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),o.jsx(se.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:Q(s.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Q(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Q(s.onPointerLeave,()=>{c()})})}),_3="SelectSeparator",UE=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return o.jsx(se.div,{"aria-hidden":!0,...r,ref:t})});UE.displayName=_3;var zh="SelectArrow",D3=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Tu(n),i=ys(zh,n),a=xs(zh,n);return i.open&&a.position==="popper"?o.jsx(Lj,{...s,...r,ref:t}):null});D3.displayName=zh;function WE(e){return e===""||e===void 0}var HE=d.forwardRef((e,t)=>{const{value:n,...r}=e,s=d.useRef(null),i=de(t,s),a=ng(n);return d.useEffect(()=>{const l=s.current,c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==n&&f){const h=new Event("change",{bubbles:!0});f.call(l,n),l.dispatchEvent(h)}},[a,n]),o.jsx(yi,{asChild:!0,children:o.jsx("select",{...r,ref:i,defaultValue:n})})});HE.displayName="BubbleSelect";function KE(e){const t=Ue(e),n=d.useRef(""),r=d.useRef(0),s=d.useCallback(a=>{const l=n.current+a;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function qE(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=O3(e,Math.max(i,0));s.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function O3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var M3=wE,GE=jE,L3=CE,I3=EE,F3=NE,QE=PE,V3=AE,YE=OE,XE=LE,z3=IE,$3=VE,ZE=zE,JE=$E,eN=UE;const Ot=M3,Mt=L3,Et=d.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(GE,{ref:r,className:K("flex h-9 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
396ing-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,o.jsx(I3,{asChild:!0,children:o.jsx(Yp,{className:"h-4 w-4 opacity-50"})})]}));Et.displayName=GE.displayName;const tN=d.forwardRef(({className:e,...t},n)=>o.jsx(ZE,{ref:n,className:K("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(OA,{className:"h-4 w-4"})}));tN.displayName=ZE.displayName;const nN=d.forwardRef(({className:e,...t},n)=>o.jsx(JE,{ref:n,className:K("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(Yp,{className:"h-4 w-4"})}));nN.displayName=JE.displayName;const Nt=d.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>o.jsx(F3,{children:o.jsxs(QE,{ref:s,className:K("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover 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 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[o.jsx(tN,{}),o.jsx(V3,{className:K("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(nN,{})]})}));Nt.displayName=QE.displayName;const B3=d.forwardRef(({className:e,...t},n)=>o.jsx(YE,{ref:n,className:K("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));B3.displayName=YE.displayName;const ye=d.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(XE,{ref:r,className:K("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx($3,{children:o.jsx(X1,{className:"h-4 w-4"})})}),o.jsx(z3,{children:t})]}));ye.displayName=XE.displayName;const U3=d.forwardRef(({className:e,...t},n)=>o.jsx(eN,{ref:n,className:K("-mx-1 my-1 h-px bg-muted",e),...t}));U3.displayName=eN.displayName;async function W3(e){const t=await fetch("/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({guestName:e})});if(!t.ok)throw new Error("Failed to create session");return t.json()}async function H3(e,t,n,r,s){const i=await fetch(`/api/sessions/${e}/preferences`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({beverageTypes:t,flavorPreferences:n,wineColors:r,occasion:s})});if(!i.ok)throw new Error("Failed to update preferences");return i.json()}async function K3(e){const t=new URLSearchParams;e!=null&&e.search&&t.set("search",e.search),e!=null&&e.category&&e.category!=="all"&&t.set("category",e.category),e!=null&&e.wineColor&&e.wineColor!=="all"&&t.set("wineColor",e.wineColor),e!=null&&e.sweetness&&e.sweetness!=="all"&&t.set("sweetness",e.sweetness),e!=null&&e.minPrice&&t.set("minPrice",e.minPrice.toString()),e!=null&&e.maxPrice&&t.set("maxPrice",e.maxPrice.toString());const n=await fetch(`/api/products?${t}`);if(!n.ok)throw new Error("Failed to fetch products");return n.json()}async function q3(e){const t=await fetch(`/api/sessions/${e}/favorites`);if(!t.ok)throw new Error("Failed to fetch favorites");return t.json()}async function G3(e,t){const n=await fetch(`/api/sessions/${e}/favorites`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:t})});if(!n.ok)throw new Error("Failed to add favorite");return n.json()}async function Q3(e,t){if(!(await fetch(`/api/sessions/${e}/favorites/${t}`,{method:"DELETE"})).ok)throw new Error("Failed to remove favorite")}async function Y3(e,t){const n=await fetch(`/api/favorites/${e}/note`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({note:t})});if(!n.ok)throw new Error("Failed to update note");return n.json()}async function X3(e){const t=await fetch(`/api/sessions/${e}/notes`);if(!t.ok)throw new Error("Failed to fetch product notes");return t.json()}async function Z3(e,t,n){const r=await fetch(`/api/sessions/${e}/notes`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:t,note:n})});if(!r.ok)throw new Error("Failed to save note");return r.json()}async function J3(e,t){await fetch(`/api/sessions/${e}/views`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:t})})}async function eV(e){const t=await fetch(`/api/sessions/${e}/views`);if(!t.ok)throw new Error("Failed to fetch view history");return t.json()}async function tV(e){const t=await fetch(`/api/sessions/${e}/cart`);if(!t.ok)throw new Error("Failed to fetch cart");return t.json()}async function nV(e,t,n=1){const r=await fetch(`/api/sessions/${e}/cart`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:t,quantity:n})});if(!r.ok)throw new Error("Failed to add to cart");return r.json()}async function rV(e,t){const n=await fetch(`/api/cart/${e}/quantity`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quantity:t})});if(!n.ok)throw new Error("Failed to update quantity");return n.json()}async function sV(e){if(!(await fetch(`/api/cart/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to remove from cart")}async function oV(e){const t=await fetch(`/api/cart-discounts/${e}`);if(!t.ok)throw new Error("Failed to fetch cart discounts");return t.json()}async function A8(e=!0){const t=new URLSearchParams;e&&t.set("activeOnly","true");const n=await fetch(`/api/trivia/questions?${t}`);if(!n.ok)throw new Error("Failed to fetch trivia questions");return n.json()}async function iV(e){const t=await fetch(`/api/sessions/${e}/trivia/next`);if(t.status===404)return null;if(!t.ok)throw new Error("Failed to fetch next question");return t.json()}async function aV(e,t,n,r){const s=await fetch(`/api/sessions/${e}/trivia/scores`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({questionId:t,isCorrect:n,attemptId:r})});if(!s.ok)throw new Error("Failed to record answer");return s.json()}async function lV(e){const t=await fetch(`/api/sessions/${e}/trivia/scores`);if(!t.ok)throw new Error("Failed to fetch scores");return t.json()}async function cV(e,t){const n=await fetch("/api/trivia-attempt/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e,totalQuestions:t})});if(!n.ok){const r=await n.json();throw new Error(r.message||"Failed to start trivia attempt")}return n.json()}async function uV(e,t){const n=await fetch("/api/trivia-attempt/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attemptId:e,correctAnswers:t})});if(!n.ok){const r=await n.json();throw new Error(r.message||"Failed to complete trivia attempt")}return n.json()}async function dV(e){const t=await fetch(`/api/trivia-attempt/${e}`);if(t.status===404)return null;if(!t.ok)throw new Error("Failed to fetch token redemption");const n=await t.json();return!n.achievementId||n.tokenVerifiedAt?null:n}
396async function fV(e,t,n){const r=await fetch("/api/trivia-attempt/verify-token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attemptId:e,staffVerifier:t,notes:n})});if(!r.ok){const s=await r.json();throw new Error(s.message||"Failed to verify token")}return r.json()}async function _8(e){const t=await fetch("/api/trivia/questions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to create trivia question");return t.json()}async function D8(e,t){const n=await fetch(`/api/trivia/questions/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw new Error("Failed to update trivia question");return n.json()}async function O8(e){if(!(await fetch(`/api/trivia/questions/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to delete trivia question")}async function M8(e){const t=await fetch("/api/trivia/questions/bulk-delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:e})});if(!t.ok)throw new Error("Failed to delete questions");return t.json()}async function L8(e){const t=await fetch("/api/products",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to create product");return t.json()}async function I8(e,t){const n=await fetch(`/api/products/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw new Error("Failed to update product");return n.json()}async function hV(e){const t=await fetch(`/api/products/${e}`,{method:"DELETE"});if(!t.ok)throw new Error("Failed to archive product");return(await t.json()).product}const F8=hV;async function V8(e){const t=await fetch(`/api/products/${e}/restore`,{method:"POST"});if(!t.ok)throw new Error("Failed to restore product");return(await t.json()).product}async function z8(){const e=await fetch("/api/products/archived");if(!e.ok)throw new Error("Failed to fetch archived products");return e.json()}async function $8(e){if(!(await fetch(`/api/products/${e}/permanent`,{method:"DELETE"})).ok)throw new Error("Failed to permanently delete product")}async function pV(e){const t=await fetch(`/api/sessions/${e}/recommendations`);if(!t.ok)throw new Error("Failed to fetch recommendations");return t.json()}async function mV(e,t){if(!(await fetch(`/api/sessions/${e}/email/cart`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw new Error("Failed to email cart")}async function gV(e,t){if(!(await fetch(`/api/sessions/${e}/email/favorites`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t})})).ok)throw new Error("Failed to email favorites")}async function B8(){const e=await fetch("/api/admin/products/template");if(!e.ok)throw new Error("Failed to download template");const t=await e.blob(),n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download="product-template.xlsx",document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}async function U8(){const e=await fetch("/api/admin/products/export");if(!e.ok)throw new Error("Failed to export products");const t=await e.blob(),n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n;const s=new Date().toISOString().split("T")[0];r.download=`products-export-${s}.xlsx`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}async function W8(){const e=await fetch("/api/admin/data/export-all");if(!e.ok)throw new Error("Failed to export data");const t=await e.blob(),n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n;const s=new Date().toISOString().split("T")[0];r.download=`nashoba-all-data-${s}.xlsx`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}async function H8(e){const t=new FormData;t.append("file",e);const n=await fetch("/api/admin/products/import",{method:"POST",body:t});if(!n.ok){const r=await n.json().catch(()=>({message:"Failed to upload products"}));throw new Error(r.message||"Failed to upload products")}return n.json()}async function K8(e){const t=new FormData;t.append("file",e);const n=await fetch("/api/admin/data/import-all",{method:"POST",body:t});if(!n.ok){const r=await n.json().catch(()=>({message:"Failed to import data"}));throw new Error(r.message||"Failed to import data")}return n.json()}async function q8(){const e=await fetch("/api/admin/products/delete-duplicates",{method:"POST"});if(!e.ok){const t=await e.json().catch(()=>({message:"Failed to delete duplicates"}));throw new Error(t.message||"Failed to delete duplicates")}return e.json()}async function vV(e,t){if(!(await fetch(`/api/sessions/${e}/survey`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw new Error("Failed to submit survey")}async function yV(e){const n=await fetch("/api/filter-options");
396if(!n.ok)throw new Error("Failed to fetch filter options");return n.json()}async function G8(e){const t=await fetch("/api/filter-options",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const n=await t.json().catch(()=>({message:"Failed to create filter option"}));throw new Error(n.message||"Failed to create filter option")}return t.json()}async function Q8(e,t){const n=await fetch(`/api/filter-options/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const r=await n.json().catch(()=>({message:"Failed to update filter option"}));throw new Error(r.message||"Failed to update filter option")}return n.json()}async function Y8(e){if(!(await fetch(`/api/filter-options/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to delete filter option")}async function xV(){const e=await fetch("/api/settings/discount_tiers");if(!e.ok)throw new Error("Failed to fetch discount tiers");return(await e.json()).value}async function X8(e){if(!(await fetch("/api/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:"discount_tiers",value:e})})).ok)throw new Error("Failed to update discount tiers")}async function wV(){const e=await fetch("/api/settings/canned_discount_tiers");if(!e.ok)throw new Error("Failed to fetch canned discount tiers");return(await e.json()).value}async function Z8(e){if(!(await fetch("/api/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:"canned_discount_tiers",value:e})})).ok)throw new Error("Failed to update canned discount tiers")}async function J8(){const e=await fetch("/api/media-library/upload-url",{method:"POST"});if(!e.ok)throw new Error("Failed to get upload URL");return(await e.json()).uploadUrl}async function eB(e){const t=new URLSearchParams;e&&e!=="all"&&t.set("category",e);const n=await fetch(`/api/media-library?${t}`);if(!n.ok)throw new Error("Failed to fetch media library files");return n.json()}async function tB(e){const t=await fetch("/api/media-library",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Failed to create media library file");return t.json()}async function nB(e,t){const n=await fetch(`/api/media-library/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw new Error("Failed to update media library file");return n.json()}async function rB(e){if(!(await fetch(`/api/media-library/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to delete media library file")}async function sB(){const e=await fetch("/api/admin/trivia-achievements");if(!e.ok)throw new Error("Failed to fetch trivia achievements");return e.json()}async function oB(e){const t=await fetch("/api/admin/trivia-achievements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const n=await t.json().catch(()=>({message:"Failed to create trivia achievement"}));throw new Error(n.message||"Failed to create trivia achievement")}return t.json()}async function iB(e,t){const n=await fetch(`/api/admin/trivia-achievements/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const r=await n.json().catch(()=>({message:"Failed to update trivia achievement"}));throw new Error(r.message||"Failed to update trivia achievement")}return n.json()}async function aB(e){if(!(await fetch(`/api/admin/trivia-achievements/${e}`,{method:"DELETE"})).ok)throw new Error("Failed to delete trivia achievement")}function bV({searchQuery:e,selectedCategory:t,sortBy:n,priceRange:r,wineColor:s="all",sweetness:i="all",body:a="all",characteristics:l="all",beerStyle:c="all",beerColor:u="all",beerBitterness:f="all",spiritType:h="all",spiritAging:p="all",spiritFlavor:m="all",onSearchChange:x,onCategoryChange:g,onSortChange:b,onPriceRangeChange:v,onWineColorChange:y,onSweetnessChange:w,onBodyChange:j,onCharacteristicsChange:S,onBeerStyleChange:P,onBeerColorChange:N,onBeerBitternessChange:E,onSpiritTypeChange:_,onSpiritAgingChange:T,onSpiritFlavorChange:O,onClearFilters:L}){var D,F,$,ee,pe,Ae,Ce,Ye,Le,Y,we;
396const[G,V]=d.useState(!1),{data:J=[]}=$e({queryKey:["/api/filter-options"],queryFn:()=>yV()}),z=d.useMemo(()=>{const U=J.reduce((ce,ae)=>(ce[ae.fieldType]||(ce[ae.fieldType]=[]),ae.isActive&&ce[ae.fieldType].push(ae),ce),{});return Object.keys(U).forEach(ce=>{U[ce].sort((ae,ve)=>ae.sortOrder-ve.sortOrder)}),U},[J]),W=t!=="all"||r!=="all"||s!=="all"||i!=="all"||a!=="all"||l!=="all"||c!=="all"||u!=="all"||f!=="all"||h!=="all"||p!=="all"||m!=="all";return o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex gap-3 items-center",children:[o.jsxs("div",{className:"relative flex-1",children:[o.jsx(KA,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),o.jsx(ts,{type:"search",placeholder:"Search products...",value:e,onChange:U=>x(U.target.value),className:"pl-10","data-testid":"input-search"})]}),W&&o.jsx(q,{variant:"outline",size:"icon",onClick:L,"data-testid":"button-clear-filters",children:o.jsx(Ke,{className:"w-4 h-4"})})]}),o.jsxs("div",{className:"flex flex-wrap gap-3",children:[o.jsxs(Ot,{value:t,onValueChange:g,children:[o.jsx(Et,{className:"w-[180px]","data-testid":"select-category",children:o.jsx(Mt,{placeholder:"Category"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Categories"}),(D=z.category)==null?void 0:D.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),t==="wine"&&o.jsxs(o.Fragment,{children:[o.jsxs(Ot,{value:s,onValueChange:y,children:[o.jsx(Et,{className:"w-[150px]","data-testid":"select-wine-color",children:o.jsx(Mt,{placeholder:"Wine Type"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Types"}),(F=z.wine_color)==null?void 0:F.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),o.jsxs(Ot,{value:i,onValueChange:w,children:[o.jsx(Et,{className:"w-[150px]","data-testid":"select-sweetness",children:o.jsx(Mt,{placeholder:"Sweetness"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Sweetness"}),($=z.sweetness)==null?void 0:$.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),o.jsxs(q,{variant:"outline",size:"sm",onClick:()=>V(!G),className:"gap-2","data-testid":"button-advanced-filters",children:[o.jsx(GA,{className:"w-4 h-4"}),"Advanced",o.jsx(Yp,{className:`w-4 h-4 transition-transform ${G?"rotate-180":""}`})]})]}),t==="beer"&&P&&N&&E&&o.jsxs(o.Fragment,{children:[o.jsxs(Ot,{value:c,onValueChange:P,children:[o.jsx(Et,{className:"w-[150px]","data-testid":"select-beer-style",children:o.jsx(Mt,{placeholder:"Beer Style"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Styles"}),(ee=z.beer_style)==null?void 0:ee.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),o.jsxs(Ot,{value:u,onValueChange:N,children:[o.jsx(Et,{className:"w-[150px]","data-testid":"select-beer-color",children:o.jsx(Mt,{placeholder:"Beer Color"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Colors"}),(pe=z.beer_color)==null?void 0:pe.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),o.jsxs(Ot,{value:f,onValueChange:E,children:[o.jsx(Et,{className:"w-[160px]","data-testid":"select-beer-bitterness",children:o.jsx(Mt,{placeholder:"Bitterness"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Bitterness"}),(Ae=z.beer_bitterness)==null?void 0:Ae.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]})]}),t==="spirits"&&_&&T&&O&&o.jsxs(o.Fragment,{children:[o.jsxs(Ot,{value:h,onValueChange:_,children:[o.jsx(Et,{className:"w-[150px]","data-testid":"select-spirit-type",children:o.jsx(Mt,{placeholder:"Spirit Type"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Types"}),(Ce=z.spirit_type)==null?void 0:Ce.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),o.jsxs(Ot,{value:p,onValueChange:T,children:[o.jsx(Et,{className:"w-[180px]","data-testid":"select-spirit-aging",children:o.jsx(Mt,{placeholder:"Aging"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Aging"}),(Ye=z.spirit_aging)==null?void 0:Ye.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),o.jsxs(Ot,{value:m,onValueChange:O,children:[o.jsx(Et,{className:"w-[160px]","data-testid":"select-spirit-flavor",children:o.jsx(Mt,{placeholder:"Flavor Profile"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Flavors"}),(Le=z.spirit_flavor)==null?void 0:Le.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]})]}),o.jsxs(Ot,{value:r,onValueChange:v,children:[o.jsx(Et,{className:"w-[150px]","data-testid":"select-price",children:o.jsx(Mt,{placeholder:"Price Range"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Prices"}),o.jsx(ye,{value:"0-20",children:"Under $20"}),o.jsx(ye,{value:"20-40",children:"$20 - $40"}),o.jsx(ye,{value:"40-60",children:"$40 - $60"}),o.jsx(ye,{value:"60+",children:"$60+"})]})]}),o.jsxs(Ot,{value:n,onValueChange:b,children:[o.jsx(Et,{className:"w-[180px]","data-testid":"select-sort",children:o.jsx(Mt,{placeholder:"Sort by"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"name",children:"Name (A-Z)"}),o.jsx(ye,{value:"price-low",children:"Price (Low to High)"}),o.jsx(ye,{value:"price-high",children:"Price (High to Low)"}),o.jsx(ye,{value:"popular",children:"Most Popular"}),o.jsx(ye,{value:"newest",children:"Newest"})]})]})]}),t==="wine"&&G&&o.jsxs("div",{className:"flex flex-wrap gap-3 p-4 bg-muted/30 rounded-lg border",children:[o.jsxs(Ot,{value:a,onValueChange:j,children:[o.jsx(Et,{className:"w-[160px]","data-testid":"select-body",children:o.jsx(Mt,{placeholder:"Body"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Body Types"}),(Y=z.body)==null?void 0:Y.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),o.jsxs(Ot,{value:l,onValueChange:S,children:[o.jsx(Et,{className:"w-[200px]","data-testid":"select-characteristics",children:o.jsx(Mt,{placeholder:"Characteristics"})}),o.jsxs(Nt,{children:[o.jsx(ye,{value:"all",children:"All Characteristics"}),(we=z.characteristics)==null?void 0:we.map(U=>o.jsx(ye,{value:U.optionValue,children:U.displayLabel},U.id))]})]}),o.jsx("div",{className:"text-xs text-muted-foreground flex items-center px-2",children:o.jsx("span",{children:"Pro tip: Comb
396ine filters to find your perfect match!"})})]}),W&&o.jsxs("div",{className:"flex flex-wrap gap-2",children:[t!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1",children:[t,o.jsx("button",{onClick:()=>g("all"),children:o.jsx(Ke,{className:"w-3 h-3"})})]}),r!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1",children:["$",r,o.jsx("button",{onClick:()=>v("all"),children:o.jsx(Ke,{className:"w-3 h-3"})})]}),s!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:s}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>y==null?void 0:y("all"),"data-testid":"button-clear-wine-color","aria-label":"Clear wine color filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),i!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:i}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>w==null?void 0:w("all"),"data-testid":"button-clear-sweetness","aria-label":"Clear sweetness filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),a!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:a}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>j==null?void 0:j("all"),"data-testid":"button-clear-body","aria-label":"Clear body filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),l!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:l}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>S==null?void 0:S("all"),"data-testid":"button-clear-characteristics","aria-label":"Clear characteristics filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),c!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:c}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>P==null?void 0:P("all"),"data-testid":"button-clear-beer-style","aria-label":"Clear beer style filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),u!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:u}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>N==null?void 0:N("all"),"data-testid":"button-clear-beer-color","aria-label":"Clear beer color filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),f!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:f}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>E==null?void 0:E("all"),"data-testid":"button-clear-beer-bitterness","aria-label":"Clear beer bitterness filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),h!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:h}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>_==null?void 0:_("all"),"data-testid":"button-clear-spirit-type","aria-label":"Clear spirit type filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),p!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:p}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>T==null?void 0:T("all"),"data-testid":"button-clear-spirit-aging","aria-label":"Clear spirit aging filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]}),m!=="all"&&o.jsxs(ge,{variant:"secondary",className:"gap-1 pr-1",children:[o.jsx("span",{className:"pointer-events-none",children:m}),o.jsx(q,{size:"icon",variant:"ghost",className:"h-5 w-5 shrink-0 pointer-events-auto",onClick:()=>O==null?void 0:O("all"),"data-testid":"button-clear-spirit-flavor","aria-label":"Clear spirit flavor filter",children:o.jsx(Ke,{className:"w-3 h-3"})})]})]})]})}var jV="Separator",s0="horizontal",SV=["horizontal","vertical"],rN=d.forwardRef((e,t)=>
vendor: 9,080 bytes, line 396
396{const{decorative:n,orientation:r=s0,...s}=e,i=CV(r)?r:s0,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return o.jsx(se.div,{"data-orientation":i,...l,...s,ref:t})});rN.displayName=jV;function CV(e){return SV.includes(e)}var sN=rN;const Aa=d.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},s)=>o.jsx(sN,{ref:s,decorative:n,orientation:t,className:K("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Aa.displayName=sN.displayName;function EV(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var ig="ScrollArea",[oN,lB]=ln(ig),[NV,un]=oN(ig),iN=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:s,scrollHideDelay:i=600,...a}=e,[l,c]=d.useState(null),[u,f]=d.useState(null),[h,p]=d.useState(null),[m,x]=d.useState(null),[g,b]=d.useState(null),[v,y]=d.useState(0),[w,j]=d.useState(0),[S,P]=d.useState(!1),[N,E]=d.useState(!1),_=de(t,O=>c(O)),T=Cu(s);return o.jsx(NV,{scope:n,type:r,dir:T,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:f,content:h,onContentChange:p,scrollbarX:m,onScrollbarXChange:x,scrollbarXEnabled:S,onScrollbarXEnabledChange:P,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:N,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:j,children:o.jsx(se.div,{dir:T,...a,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});iN.displayName=ig;var aN="ScrollAreaViewport",lN=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:s,...i}=e,a=un(aN,n),l=d.useRef(null),c=de(t,l,a.onViewportChange);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),o.jsx(se.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:o.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});lN.displayName=aN;var Gn="ScrollAreaScrollbar",ag=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=un(Gn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=s,l=e.orientation==="horizontal";return d.useEffect(()=>(l?i(!0):a(!0),()=>{l?i(!1):a(!1)}),[l,i,a]),s.type==="hover"?o.jsx(PV,{...r,ref:t,forceMount:n}):s.type==="scroll"?o.jsx(TV,{...r,ref:t,forceMount:n}):s.type==="auto"?o.jsx(cN,{...r,ref:t,forceMount:n}):s.type==="always"?o.jsx(lg,{...r,ref:t}):null});ag.displayName=Gn;var PV=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=un(Gn,e.__scopeScrollArea),[i,a]=d.useState(!1);return d.useEffect(()=>{const l=s.scrollArea;let c=0;if(l){const u=()=>{window.clearTimeout(c),a(!0)},f=()=>{c=window.setTimeout(()=>a(!1),s.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",f)}}},[s.scrollArea,s.scrollHideDelay]),o.jsx(cn,{present:n||i,children:o.jsx(cN,{"data-state":i?"visible":"hidden",...r,ref:t})})}),TV=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=un(Gn,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Ru(()=>c("SCROLL_END"),100),[l,c]=EV("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,s.scrollHideDelay,c]),d.useEffect(()=>{const u=s.viewport,f=i?"scrollLeft":"scrollTop";if(u){let h=u[f];const p=()=>{const m=u[f];h!==m&&(c("SCROLL"),a()),h=m};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[s.viewport,i,c,a]),o.jsx(cn,{present:n||l!=="hidden",children:o.jsx(lg,{"data-state":l==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Q(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:Q(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),cN=d.forwardRef((e,t)=>{const n=un(Gn,e.__scopeScrollArea),{forceMount:r,...s}=e,[i,a]=d.useState(!1),l=e.orientation==="horizontal",c=Ru(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;a(l?u:f)}},10);return hi(n.viewport,c),hi(n.content,c),o.jsx(cn,{present:r||i,children:o.jsx(lg,{"data-state":i?"visible":"hidden",...s,ref:t})})}),lg=d.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,s=un(Gn,e.__scopeScrollArea),i=d.useRef(null),a=d.useRef(0),[l,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=pN(l.viewport,l.content),f={...r,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:p=>i.current=p,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:p=>a.current=p};function h(p,m){return OV(p,a.current,l,m)}return n==="horizontal"?o.jsx(kV,{...f,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const p=s.viewport.scrollLeft,m=o0(p,l,s.dir);i.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:p=>{s.viewport&&(s.viewport.scrollLeft=p)},onDragScroll:p=>{s.viewport&&(s.viewport.scrollLeft=h(p,s.dir))}}):n==="vertical"?o.jsx(RV,{...f,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const p=s.viewport.scrollTop,m=o0(p,l);i.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:p=>{s.viewport&&(s.viewport.scrollTop=p)},onDragScroll:p=>{s.viewport&&(s.viewport.scrollTop=h(p))}}):null}),kV=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...s}=e,i=un(Gn,e.__scopeScrollArea),[a,l]=d.useState(),c=d.useRef(null),u=de(t,c,i.onScrollbarXChange);return d.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),o.jsx(dN,{"data-orientation":"horizontal",...s,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ku(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,h)=>{if(i.viewport){const p=i.viewport.scrollLeft+f.deltaX;e.onWheelScroll(p),gN(p,h)&&f.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Bc(a.paddingLeft),paddingEnd:Bc(a.paddingRight)}})}})}),RV=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...s}=e,i=un(Gn,e.__scopeScrollArea),[a,l]=d.useState(),c=d.useRef(null),u=de(t,c,i.onScrollbarYChange);return d.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),o.jsx(dN,{"data-orientation":"vertical",...s,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ku(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,h)=>{if(i.viewport){const p=i.viewport.scrollTop+f.deltaY;e.onWheelScroll(p),gN(p,h)&&f.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Bc(a.paddingTop),paddingEnd:Bc(a.paddingBottom)}})}})}),[AV,uN]=oN(Gn),dN=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:s,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:f,onResize:h,...p}=e,m=un(Gn,n),[x,g]=d.useState(null),b=de(t,_=>g(_)),v=d.useRef(null),y=d.useRef(""),w=m.viewport,j=r.content-r.viewport,S=Ue(f),P=Ue(c),N=Ru(h,10);function E(_){if(v.current){const T=_.clientX-v.current.left,O=_.clientY-v.current.top;u({x:T,y:O})}}return d.useEffect(()=>{const _=T=>{const O=T.target;(x==null?void 0:x.contains(O))&&S(T,j)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[w,x,j,S]),d.useEffect(P,[r,P]),hi(x,N),hi(m.content,N),o.jsx(AV,{scope:n,scrollbar:x,hasThumb:s,onThumbChange:Ue(i),onThumbPointerUp:Ue(a),onThumbPositionChange:P,onThumbPointerDown:Ue(l),children:o.jsx(se.div,{...p,ref:b,style:{position:"absolute",...p.style},onPointerDown:Q(e.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),v.current=x.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),E(_))}),onPointerMove:Q(e.onPointerMove,E),onPointerUp:Q(e.onPointerUp,_=>{const T=_.target;T.hasPointerCapture(_.pointerId)&&T.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=y.current,m.viewport&&(m.viewport.style.scrollBehavior=""),v.current=null})})})}),$c="ScrollAreaThumb",fN=d.forwardRef((e,t)=>
396{const{forceMount:n,...r}=e,s=uN($c,e.__scopeScrollArea);return o.jsx(cn,{present:n||s.hasThumb,children:o.jsx(_V,{ref:t,...r})})}),_V=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...s}=e,i=un($c,n),a=uN($c,n),{onThumbPositionChange:l}=a,c=de(t,h=>a.onThumbChange(h)),u=d.useRef(void 0),f=Ru(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=i.viewport;if(h){const p=()=>{if(f(),!u.current){const m=MV(h,l);u.current=m,l()}};return l(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,f,l]),o.jsx(se.div,{"data-state":a.hasThumb?"visible":"hidden",...s,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Q(e.onPointerDownCapture,h=>{const m=h.target.getBoundingClientRect(),x=h.clientX-m.left,g=h.clientY-m.top;a.onThumbPointerDown({x,y:g})}),onPointerUp:Q(e.onPointerUp,a.onThumbPointerUp)})});fN.displayName=$c;var cg="ScrollAreaCorner",hN=d.forwardRef((e,t)=>{const n=un(cg,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?o.jsx(DV,{...e,ref:t}):null});hN.displayName=cg;var DV=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,s=un(cg,n),[i,a]=d.useState(0),[l,c]=d.useState(0),u=!!(i&&l);return hi(s.scrollbarX,()=>{var h;const f=((h=s.scrollbarX)==null?void 0:h.offsetHeight)||0;s.onCornerHeightChange(f),c(f)}),hi(s.scrollbarY,()=>{var h;const f=((h=s.scrollbarY)==null?void 0:h.offsetWidth)||0;s.onCornerWidthChange(f),a(f)}),u?o.jsx(se.div,{...r,ref:t,style:{width:i,height:l,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Bc(e){return e?parseInt(e,10):0}function pN(e,t){const n=e/t;return isNaN(n)?0:n}function ku(e){const t=pN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function OV(e,t,n,r="ltr"){const s=ku(n),i=s/2,a=t||i,l=s-a,c=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,f=n.content-n.viewport,h=r==="ltr"?[0,f]:[f*-1,0];return mN([c,u],h)(e)}function o0(e,t,n="ltr"){const r=ku(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,a=t.content-t.viewport,l=i-r,c=n==="ltr"?[0,a]:[a*-1,0],u=Mh(e,c);return mN([0,a],[0,l])(u)}function mN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function gN(e,t){return e>0&&e<t}var MV=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function s(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,l=n.top!==i.top;(a||l)&&t(),n=i,r=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(r)};function Ru(e,t){const n=Ue(e),r=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),d.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function hi(e,t){const n=Ue(t);it(()=>{let r=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(r),s.unobserve(e)}}},[e,n])}var vN=iN,LV=lN,IV=hN;const yN=d.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(vN,{ref:r,className:K("relative overflow-hidden",e),...n,children:[o.jsx(LV,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(xN,{}),o.jsx(IV,{})]}));yN.displayName=vN.displayName;const xN=d.forwardRef(({className:e,orientation:t="vertical",...n},r)=>o.jsx(ag,{ref:r,orientation:t,className:K("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]",e),...n,children:o.jsx(fN,{className:"relative flex-1 rounded-full bg-border"})}));xN.displayName=ag.displayName;function FV({product:e,isOpen:t,isFavorite:n=!1,note:r="",tier:s,onClose:i,onFavoriteToggle:a,onAddToCart:l,onUpdateNote:c}){const[u,f]=d.useState(r),[h,p]=d.useState(0),[m,x]=d.useState(0),g=d.useRef(null),b=d.useRef(r),{data:v=[],isLoading:y}=$e({queryKey:[`/api/products/${e==null?void 0:e.id}/characteristics`],enabled:t&&!!(e!=null&&e.id)});d.useEffect(()=>{e!=null&&e.id&&(f(r),b.current=r)},[e==null?void 0:e.id]),d.useEffect(()=>{r!==b.current&&g.current===null&&(f(r),b.current=r)},[r]),d.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const w=T=>{f(T),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{b.current=T,c==null||c(T),g.current=null},500)},j=()=>{g.current&&(clearTimeout(g.current),g.current=null),u!==b.current&&(b.current=u,c==null||c(u))},S=T=>{T||(j(),i())},P=()=>{j(),i()},N=()=>{h>0&&(l==null||l(h,"bottle"),p(0))},E=()=>{m>0&&(l==null||l(m,"case"),x(0))},_=T=>{if(!T.tierPrice)return null;const O=Number(T.price),L=Number(T.tierPrice);return{discountPercent:Math.round((O-L)/O*100),savings:(O-L).toFixed(2),tierPrice
396:L.toFixed(2)}};return e?o.jsx(ds,{open:t,onOpenChange:S,children:o.jsxs(hr,{className:"max-w-6xl max-h-[95vh] p-0","data-testid":"product-detail-modal",children:[o.jsx(yi,{children:o.jsx(pr,{children:e.name})}),o.jsx(yN,{className:"max-h-[95vh]",children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-0",children:[o.jsxs("div",{className:"relative bg-muted flex items-center justify-center p-12 min-h-[600px]",children:[e.imageUrl?o.jsx("img",{src:e.imageUrl,alt:e.name,className:"max-h-[550px] w-auto object-contain"}):o.jsx(eo,{className:"w-48 h-48 text-muted-foreground/20"}),o.jsx("button",{onClick:a,className:"absolute top-6 right-6 p-3 rounded-full bg-background/80 backdrop-blur-sm hover-elevate active-elevate-2","data-testid":"button-favorite-product",children:o.jsx(Wn,{className:`w-6 h-6 ${n?"fill-primary text-primary":"text-foreground"}`})})]}),o.jsxs("div",{className:"p-8 space-y-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"font-serif text-4xl font-medium mb-2","data-testid":"text-product-name",children:e.name}),e.vintageYear&&o.jsxs("p",{className:"text-xl text-muted-foreground mb-3",children:[e.vintageYear," ",e.varietal||e.type]}),o.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[o.jsx(ge,{variant:"outline",className:"capitalize","data-testid":"badge-category",children:e.category}),e.type&&e.type!=="N/A"&&o.jsx(ge,{variant:"outline","data-testid":"badge-wine-color",children:e.type}),e.sweetness&&e.sweetness!=="N/A"&&o.jsx(ge,{variant:"outline","data-testid":"badge-sweetness",children:e.sweetness}),e.body&&e.body!=="N/A"&&o.jsx(ge,{variant:"outline","data-testid":"badge-body",children:e.body})]}),o.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.staffPick&&o.jsx(ge,{className:"bg-chart-2 text-background",children:"Staff Pick"}),e.featured&&o.jsx(ge,{className:"bg-primary text-primary-foreground",children:"Featured"}),e.wineOfMonth&&o.jsx(ge,{className:"bg-chart-1 text-background",children:"Product of the Month"})]})]}),e.description&&o.jsx("p",{className:"text-base leading-relaxed text-muted-foreground",children:e.description}),e.tastingNotes&&o.jsx("p",{className:"text-base leading-relaxed text-muted-foreground",children:e.tastingNotes}),o.jsxs("div",{className:"space-y-4 pt-4",children:[s&&o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-sm text-muted-foreground",children:"Pricing Tier:"}),o.jsx(ge,{variant:"secondary",children:s})]}),_(e)?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx("span",{className:"text-sm text-muted-foreground",children:"Retail Price:"}),o.jsxs("p",{className:"text-lg line-through text-muted-foreground",children:["$",parseFloat(e.price).toFixed(2)," per bottle"]})]}),o.jsxs("div",{className:"space-y-1 p-3 bg-primary/10 rounded-lg border border-primary/20",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-medium",children:"Your Price:"}),o.jsxs("span",{className:"text-2xl font-bold text-primary",children:["$",_(e).tierPrice," per bottle"]})]}),o.jsxs("p",{className:"text-sm text-green-600",children:["Save $",_(e).savings," per bottle (",_(e).discountPercent,"% off)"]})]})]}):o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-medium",children:"Price:"}),o.jsxs("span",{className:"text-2xl font-bold text-primary","data-testid":"text-product-price",children:["$",parseFloat(e.price).toFixed(2)," per bottle"]})]})]}),e.isDistributed&&o.jsx("div",{className:"p-4 bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 rounded-lg","data-testid":"distributor-notice-detail",children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx(em,{className:"h-5 w-5 text-amber-600 dark:text-amber-400 mt-0.5 shrink-0"}),o.jsxs("div",{children:[o.jsx("p",{className:"font-medium text-amber-800 dark:text-amber-300 text-sm mb-1",children:"Distributed Product"}),o.jsx("p",{className:"text-sm text-amber-700 dark:text-amber-400",children:"Distributed by Carolina - See note below"})]})]})}),o.jsx("div",{className:"space-y-4",children:e.category==="wine"||e.category==="spirits"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(dt,{htmlFor:"detail-bottles",className:"text-sm",children:"Bottles"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ts,{id:"detail-bottles",type:"number",min:"0",value:h,onChange:T=>p(Math.max(0,parseInt(T.target.value)||0)),className:"h-8",placeholder:"0","data-testid":"input-bottles-detail"}),o.jsx(q,{size:"sm",onClick:N,disabled:!e.ignoreInventory&&e.stockQuantity<1||h===0,style:{backgroundColor:"#dcfce7",color:"#000000"},className:"hover:brightness-95 disabled:bg-muted disabled:text-muted-foreground","data-testid":"button-add-bottles-detail",children:"Bottles"})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(dt,{htmlFor:"detail-cases",className:"text-sm",children:"Cases"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ts,{id:"detail-cases",type:"number",min:"0",value:m,onChange:T=>x(Math.max(0,parseInt(T.target.value)||0)),className:"h-8",placeholder:"0","data-testid":"input-cases-detail"}),o.jsx(q,{size:"sm",onClick:E,disabled:!e.ignoreInventory&&e.stockQuantity<e.caseSize||m===0,style:{backgroundColor:"#dcfce7",color:"#000000"},className:"hover:brightness-95 disabled:bg-muted disabled:text-muted-foreground","data-testid":"button-add-cases-detail",children:"Cases"})]})]})]}):o.jsxs("div",{className:"space-y-2",children:[o.jsx(dt,{htmlFor:"detail-cases-qty",className:"text-sm",children:"Cases"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ts,{id:"detail-cases-qty",type:"number",min:"0",value:m,onChange:T=>x(Math.max(0,parseInt(T.target.value)||0)),className:"h-8",placeholder:"0","data-testid":"input-cases-qty-detail"}),o.jsx(q,{size:"sm",onClick:E,disabled:!e.ignoreInventory&&e.stockQuantity<e.caseSize||m===0,style:{backgroundColor:"#dcfce7",color:"#000000"},className:"hover:brightness-95 disabled:bg-muted disabled:text-muted-foreground","data-testid":"button-add-cases-qty-detail",children:"Add"})]})]})}),o.jsx(Aa,{}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("h3",{className:"font-serif text-xl font-medium",children:"Product Details"}),o.jsxs("div",{className:"grid grid-cols-2 gap-x-6 gap-y-3 text-sm",children:[e.type&&e.type!=="N/A"&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Color"}),o.jsx("p",{className:"font-medium",children:e.type})]}),e.sweetness&&e.sweetness!=="N/A"&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Sweetness"}),o.jsx("p",{className:"font-medium",children:e.sweetness})]}),e.body&&e.body!=="N/A"&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Body"}),o.jsx("p",{className:"font-medium",children:e.body})]}),e.varietal&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Varietal"}),o.jsx("p",{className:"font-medium",children:e.varietal})]}),e.vintageYear&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Vintage"}),o.jsx("p",{className:"font-medium",children:e.vintageYear})]}
396),e.region&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Region"}),o.jsx("p",{className:"font-medium",children:e.region})]}),e.bottleSize&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Bottle Size"}),o.jsx("p",{className:"font-medium",children:e.bottleSize})]}),e.servingTemp&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Serving Temp"}),o.jsx("p",{className:"font-medium",children:e.servingTemp})]}),e.alcoholContent&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Alcohol Content"}),o.jsx("p",{className:"font-medium",children:e.alcoholContent})]}),e.productionMethod&&o.jsxs("div",{className:"col-span-2",children:[o.jsx("span",{className:"text-muted-foreground",children:"Production"}),o.jsx("p",{className:"font-medium",children:e.productionMethod})]}),e.agingProcess&&o.jsxs("div",{className:"col-span-2",children:[o.jsx("span",{className:"text-muted-foreground",children:"Aging"}),o.jsx("p",{className:"font-medium",children:e.agingProcess})]}),e.awards&&o.jsxs("div",{className:"col-span-2",children:[o.jsx("span",{className:"text-muted-foreground",children:"Awards"}),o.jsx("p",{className:"font-medium",children:e.awards})]}),(v.length>0||e.characteristics)&&o.jsxs("div",{className:"col-span-2",children:[o.jsx("span",{className:"text-muted-foreground block mb-2",children:"Characteristics"}),y?o.jsxs("div",{className:"flex gap-2",children:[o.jsx("div",{className:"h-6 w-20 bg-muted animate-pulse rounded-full"}),o.jsx("div",{className:"h-6 w-24 bg-muted animate-pulse rounded-full"}),o.jsx("div",{className:"h-6 w-16 bg-muted animate-pulse rounded-full"})]}):v.length>0?o.jsx("div",{className:"flex flex-wrap gap-2","data-testid":"characteristics-tags",children:v.map((T,O)=>o.jsx(ge,{variant:"secondary","data-testid":`badge-characteristic-${O}`,children:T.name},T.id))}):e.characteristics?o.jsx("p",{className:"font-medium text-sm text-muted-foreground italic",children:e.characteristics}):null]}),e.rating&&o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Rating"}),o.jsxs("p",{className:"font-medium",children:[parseFloat(e.rating).toFixed(1)," / 5.0"]})]})]}),e.foodPairings&&o.jsxs("div",{className:"pt-2",children:[o.jsx("span",{className:"text-sm text-muted-foreground block mb-2",children:"Pairs well with"}),o.jsx("p",{className:"font-medium",children:e.foodPairings})]})]}),o.jsx(Aa,{}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-serif text-lg font-medium mb-3",children:"Your Tasting Notes"}),o.jsx(Fo,{placeholder:"Add your personal tasting notes...",value:u,onChange:T=>w(T.target.value),className:"min-h-[100px]","data-testid":"textarea-product-notes"}),o.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Notes are saved when you click Save"})]}),o.jsx(q,{variant:"outline",className:"w-full",onClick:P,"data-testid":"button-save-detail",children:"Save"})]})]})})]})}):null}function VV({activeTab:e,cartCount:t=0,favoritesCount:n=0,onTabChange:r}){const s=[{id:"browse",label:"Browse",icon:eo},{id:"favorites",label:"Favorites",icon:Wn,count:n},{id:"recommendations",label:"AI Picks",icon:rn},{id:"videos",label:"Videos",icon:ZA},{id:"cart",label:"Cart",icon:Ks,count:t},{id:"profile",label:"Finish",icon:nj}];return o.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-card border-t border-card-border z-40",children:o.jsx("div",{className:"flex items-center justify-around",children:s.map(i=>{const a=i.icon,l=e===i.id;return o.jsxs("button",{onClick:()=>r(i.id),className:`flex flex-col items-center gap-1 py-3 px-4 min-w-[64px] relative hover-elevate ${l?"text-primary":"text-muted-foreground"}`,"data-testid":`button-nav-${i.id}`,children:[o.jsxs("div",{className:"relative",children:[o.jsx(a,{className:"w-6 h-6"}),i.count!==void 0&&i.count>0&&o.jsx(ge,{className:"absolute -top-2 -right-2 h-5 w-5 flex items-center justify-center p-0 text-xs",children:i.count>9?"9+":i.count})]}),o.jsx("span",{className:"text-xs font-medium",children:i.label})]},i.id)})})})}function zV({items:e,triviaCredit:t=0,sessionId:n,onUpdateQuantity:r,onRemoveItem:s,onCheckout:i}){const{data:a}=$e({queryKey:["/api/settings/discount_tiers"],queryFn:xV}),{data:l}=$e({queryKey:["/api/settings/canned_discount_tiers"],queryFn:wV}),{data:c=[]}=$e({queryKey:["/api/cart-discounts",n],queryFn:()=>oV(n),enabled:!!n}),u=d.useMemo(()=>e.filter(T=>["wine","spirits"].includes(T.category.toLowerCase())).reduce((T,O)=>T+O.quantity,0),[e]),f=d.useMemo(()=>e.filter(T=>["beer","canned_cocktail","canned_wine"].includes(T.category.toLowerCase())).reduce((T,O)=>T+O.quantity,0),[e]),h=d.useMemo(()=>(T,O)=>{if(!O)return 0;const L=[O.tier4,O.tier3,O.tier2,O.tier1];for(const G of L)if(T>=G.min&&T<=G.max)return G.discount;return 0},[]),p=d.useMemo(()=>e.filter(T=>["wine","spirits"].includes(T.category.toLowerCase())).reduce((T,O)=>T+O.price*O.quantity,0),[e]),m=d.useMemo(()=>e.filter(T=>["beer","canned_cocktail","canned_wine"].includes(T.category.toLowerCase())).reduce((T,O)=>T+O.price*O.quantity,0),[e]),x=d.useMemo(()=>e.reduce((T,O)=>T+O.price*O.quantity,0),[e]),g=d.useMemo(()=>h(u,a),[h,u,a]),b=d.useMemo(()=>h(f,l),[h,f,l]),v=d.useMemo(()=>p*g,[p,g]),y=d.useMemo(()=>m*b,[m,b]),w=d.useMemo(()=>v+y,[v,y]),j=d.useMemo(()=>c.reduce((T,O)=>T+parseFloat(O.amount),0),[c]),S=d.useMemo(()=>x-w,[x,w]),P=d.useMemo(()=>S-j,[S,j]),N=d.useMemo(()=>Math.max(0,P-t),[P,t]),E=()=>
396{if(!a)return null;const T=[{...a.tier1,name:"tier1"},{...a.tier2,name:"tier2"},{...a.tier3,name:"tier3"},{...a.tier4,name:"tier4"}].sort((O,L)=>O.min-L.min);for(const O of T)if(u<O.min){const L=O.min-u,G=(O.discount*100).toFixed(0);return`Add ${L} more bottles for ${G}% off`}return null},_=()=>{if(!l)return null;const T=[{...l.tier1,name:"tier1"},{...l.tier2,name:"tier2"},{...l.tier3,name:"tier3"},{...l.tier4,name:"tier4"}].sort((O,L)=>O.min-L.min);for(const O of T)if(f<O.min){const L=O.min-f,G=(O.discount*100).toFixed(0);return`Add ${L} more cans for ${G}% off`}return null};return o.jsxs(an,{className:"h-full flex flex-col",children:[o.jsxs("div",{className:"p-6 border-b",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[o.jsx(Ks,{className:"w-6 h-6 text-primary"}),o.jsx("h2",{className:"font-serif text-2xl font-medium",children:"Your Cart"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.length," ",e.length===1?"item":"items"]})]}),o.jsx("div",{className:"flex-1 overflow-auto p-6 space-y-4",children:e.length===0?o.jsxs("div",{className:"text-center py-12",children:[o.jsx(Ks,{className:"w-16 h-16 mx-auto mb-4 text-muted-foreground/50"}),o.jsx("p",{className:"text-muted-foreground",children:"Your cart is empty"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Add some products to get started"})]}):e.map(T=>o.jsx(an,{className:"p-4","data-testid":`cart-item-${T.id}`,children:o.jsx("div",{className:"flex gap-4",children:o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex items-start justify-between mb-2",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"font-medium mb-1",children:T.name}),o.jsx(ge,{variant:"secondary",className:"text-xs",children:T.category})]}),o.jsx(q,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>s==null?void 0:s(T.id),"data-testid":`button-remove-${T.id}`,children:o.jsx(tj,{className:"w-4 h-4"})})]}),o.jsxs("div",{className:"flex items-center justify-between mt-3",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(q,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:()=>r==null?void 0:r(T.id,Math.max(1,T.quantity-1)),"data-testid":`button-decrease-${T.id}`,"aria-label":"Decrease quantity",children:o.jsx(UA,{className:"w-5 h-5"})}),o.jsx("span",{className:"w-10 text-center font-medium text-lg","data-testid":`text-quantity-${T.id}`,children:T.quantity}),o.jsx(q,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:()=>r==null?void 0:r(T.id,T.quantity+1),"data-testid":`button-increase-${T.id}`,"aria-label":"Increase quantity",children:o.jsx(HA,{className:"w-5 h-5"})})]}),o.jsxs("p",{className:"font-semibold",children:["$",(T.price*T.quantity).toFixed(2)]})]})]})})},T.id))}),e.length>0&&o.jsxs("div",{className:"border-t p-6 space-y-4",children:[o.jsxs("div",{className:"bg-blue-50 dark:bg-blue-950 rounded-lg p-3 border border-blue-200 dark:border-blue-800 text-xs",children:[o.jsx("p",{className:"font-medium text-blue-900 dark:text-blue-100 mb-1",children:"Discount Debug Info:"}),o.jsxs("p",{className:"text-blue-700 dark:text-blue-300",children:["Bottles: ",u," (",(g*100).toFixed(0),"%) | Cans: ",f," (",(b*100).toFixed(0),"%) | Tiers: ",a&&l?"Yes":"No"]}),(!a||!l)&&o.jsxs("p",{className:"text-destructive mt-1 flex items-center gap-1",children:[o.jsx(em,{className:"w-3 h-3"}),"Discount tiers not loaded from server"]})]}),g>0&&o.jsxs("div",{className:"bg-green-50 dark:bg-green-950 rounded-lg p-4 border border-green-200 dark:border-green-800",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(by,{className:"w-4 h-4 text-green-600"}),o.jsxs("p",{className:"font-medium text-sm text-green-900 dark:text-green-100",children:[u," bottles: ",(g*100).toFixed(0),"% discount applied!"]})]}),E()&&o.jsx("p",{className:"text-xs text-green-700 dark:text-green-300",children:E()})]}),b>0&&o.jsxs("div",{className:"bg-green-50 dark:bg-green-950 rounded-lg p-4 border border-green-200 dark:border-green-800",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(by,{className:"w-4 h-4 text-green-600"}),o.jsxs("p",{className:"font-medium text-sm text-green-900 dark:text-green-100",children:[f," cans: ",(b*100).toFixed(0),"% discount applied!"]})]}),_()&&o.jsx("p",{className:"text-xs text-green-700 dark:text-green-300",children:_()})]}),c.length>0&&o.jsxs("div",{className:"bg-primary/5 dark:bg-primary/10 rounded-lg p-4 border border-primary/20","data-testid":"section-achievement-discounts",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx("img",{src:"/nvw-logo.png",alt:"Nashoba Logo",className:"w-5 h-5 object-contain"}),o.jsx("p",{className:"font-medium text-sm",children:"Trivia Achievement Rewards"})]}),o.jsx("div",{className:"space-y-2",children:c.map((T,O)=>o.jsxs("div",{className:"flex items-center justify-between","data-testid":`achievement-discount-${O}`,children:[o.jsx("div",{className:"flex items-center gap-2",children:o.jsx(ge,{variant:"secondary",className:"text-xs","data-testid":`badge-discount-label-${O}`,children:T.label})}),o.jsxs("p",{className:"font-semibold text-primary","data-testid":`text-discount-amount-${O}`,children:["-$",parseFloat(T.amount).toFixed(2)]})]},T.id))})]}),t>0&&o.jsx("div",{className:"bg-chart-2/10 rounded-lg p-4 border border-chart-2/20",children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("p",{className:"font-medium text-sm",children:"Trivia Reward"}),o.jsxs("p",{className:"font-semibold text-green-600",children:["-$",t.toFixed(2)]})]})}),o.jsx(Aa,{}),o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Subtotal"}),o.jsxs("span",{"data-testid":"text-subtotal",children:["$",x.toFixed(2)]})]}),g>0&&o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsxs("span",{className:"text-muted-foreground",children:["Bottle Discount (",(g*100).toFixed(0),"%)"]}),o.jsxs("span",{className:"text-green-600","data-testid":"text-bottle-discount",children:["-$",v.toFixed(2)]})]}),b>0&&o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsxs("span",{className:"text-muted-foreground",children:["Canned Discount (",(b*100).toFixed(0),"%)"]}),o.jsxs("span",{className:"text-green-600","data-testid":"text-canned-discount",children:["-$",y.toFixed(2)]})]}),c.map((T,O)=>o.jsxs("div",{className:"flex justify-between text-sm","data-testid":`breakdown-achievement-discount-${O}`,children:[o.jsx("span",{className:"text-muted-foreground",children:T.label}),o.jsxs("span",{className:"text-primary font-medium","data-testid":`breakdown-discount-amount-${O}`,children:["-$",parseFloat(T.amount).toFixed(2)]})]},T.id)),t>0&&o.jsxs("div",{className:"flex justify-between text-sm",children:[o.jsx("span",{className:"text-muted-foreground",children:"Trivia Reward"}),o.jsxs("span",{className:"text-green-600","data-testid":"text-trivia-credit",children:["-$",t.toFixed(2)]})]}),o.jsx(Aa,{}),o.jsxs("div",{className:"flex justify-between font-semibold text-lg",children:[o.jsx("span",{children:"Total"}),o.jsxs("span",{"data-testid":"text-cart-total",children:["$",N.toFixed(2)]})]})]}),o.jsxs(q,{className:"w-full gap-2",size:"lg",onClick:i,"data-testid":"button-checkout",children:[o.jsx(Jp,{className:"w-4 h-4"}),"Email Order to Staff"]})]})]})}function $V({favorites:e,onUpdateNote:t,onRemoveFavorite:n,onAddToCart:r,onEmailFavorites:s,onReturnToProducts:i}){const[a,l]=d.useState({}),c=d.useRef({}),u=d.useRef({});d.useEffect(()=>{const m={};e.forEach(x=>{m[x.id]=x.note||"",u.current[x.id]=x.note||""}),l(m)},[e.map(m=>m.id).join(",")]),d.useEffect(()=>{e.forEach(m=>{m.note!==u.current[m.id]&&!c.current[m.id]&&(l(x=>
396({...x,[m.id]:m.note||""})),u.current[m.id]=m.note||"")})},[e]);const f=(m,x)=>{l(g=>({...g,[m]:x})),c.current[m]&&clearTimeout(c.current[m]),c.current[m]=setTimeout(()=>{u.current[m]=x,t==null||t(m,x),delete c.current[m]},500)};d.useEffect(()=>()=>{Object.values(c.current).forEach(m=>clearTimeout(m))},[]);const h=()=>{Object.entries(c.current).forEach(([m,x])=>{clearTimeout(x);const g=a[m];g!==u.current[m]&&(u.current[m]=g,t==null||t(m,g))}),c.current={}},p=()=>{h(),i==null||i()};return o.jsxs(an,{className:"h-full flex flex-col",children:[o.jsxs("div",{className:"p-6 border-b",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[o.jsx(Wn,{className:"w-6 h-6 text-primary fill-primary"}),o.jsx("h2",{className:"font-serif text-2xl font-medium",children:"Your Favorites"})]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.length," ",e.length===1?"item":"items"," saved"]})]}),o.jsx("div",{className:"flex-1 overflow-auto p-6 space-y-4",children:e.length===0?o.jsxs("div",{className:"text-center py-12",children:[o.jsx(Wn,{className:"w-16 h-16 mx-auto mb-4 text-muted-foreground/50"}),o.jsx("p",{className:"text-muted-foreground",children:"No favorites yet"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Tap the heart icon on products you love"})]}):e.map(m=>o.jsx(an,{className:"p-4","data-testid":`favorite-item-${m.id}`,children:o.jsxs("div",{className:"flex gap-4",children:[o.jsx("div",{className:"w-20 h-20 rounded-lg bg-muted overflow-hidden flex-shrink-0",children:m.image?o.jsx("img",{src:m.image,alt:m.name,className:"w-full h-full object-cover"}):o.jsx("div",{className:"w-full h-full flex items-center justify-center text-2xl",children:"ð·"})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-start justify-between mb-2",children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("h3",{className:"font-medium mb-1 truncate",children:m.name}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(ge,{variant:"secondary",className:"text-xs",children:m.category}),o.jsxs("span",{className:"font-semibold text-sm",children:["$",m.price.toFixed(2)]})]})]}),o.jsx(q,{variant:"ghost",size:"icon",className:"h-8 w-8 flex-shrink-0",onClick:()=>n==null?void 0:n(m.id),"data-testid":`button-remove-favorite-${m.id}`,children:o.jsx(tj,{className:"w-4 h-4"})})]}),o.jsx(Fo,{placeholder:"Add your tasting notes...",value:a[m.id]||"",onChange:x=>f(m.id,x.target.value),className:"mb-3 text-sm min-h-[60px]","data-testid":`textarea-note-${m.id}`}),o.jsxs(q,{size:"sm",className:"w-full gap-2",onClick:()=>r==null?void 0:r(m.id),"data-testid":`button-add-favorite-to-cart-${m.id}`,children:[o.jsx(Ks,{className:"w-3 h-3"}),"Add to Cart"]})]})]})},m.id))}),e.length>0&&o.jsxs("div",{className:"border-t p-6 space-y-3",children:[o.jsxs(q,{variant:"outline",className:"w-full gap-2",size:"lg",onClick:p,"data-testid":"button-return-to-products",children:[o.jsx(SA,{className:"w-4 h-4"}),"Save and Return to Products"]}),o.jsxs(q,{className:"w-full gap-2",size:"lg",onClick:s,"data-testid":"button-email-favorites",children:[o.jsx(Jp,{className:"w-4 h-4"}),"Email My Favorites & Notes"]})]})]})}function BV({id:e,name:t,category:n,price:r,image:s,description:i,isFavorite:a=!1,viewCount:l=0,isStaffPick:c=!1,isFeatured:u=!1,stockQuantity:f=0,ignoreInventory:h=!0,onFavoriteToggle:p,onAddToCart:m,onClick:x}){const[g,b]=d.useState(a),v=!h&&f===0,y=j=>{j.stopPropagation(),b(!g),p==null||p(e)},w=j=>{j.stopPropagation(),m==null||m(e)};return o.jsxs(an,{className:"overflow-hidden hover-elevate cursor-pointer group",onClick:()=>x==null?void 0:x(e),"data-testid":`card-product-${e}`,children:[o.jsxs("div",{className:"relative aspect-[3/4] bg-muted overflow-hidden",children:[s?o.jsx("img",{src:s,alt:t,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):o.jsx("div",{className:"w-full h-full flex items-center justify-center",children:o.jsx("div",{className:"text-muted-foreground text-4xl",children:"ð·"})}),o.jsx("button",{onClick:y,className:"absolute top-3 right-3 p-2 rounded-full bg-background/80 backdrop-blur-sm hover-elevate active-elevate-2","data-testid":`button-favorite-${e}`,children:o.jsx(Wn,{className:`w-5 h-5 ${g?"fill-primary text-primary":"text-foreground"}`})}),o.jsxs("div",{className:"absolute bottom-3 right-3 flex flex-col gap-2 items-end",children:[o.jsxs(ge,{className:"bg-chart-2 text-background font-semibold",children:["$",r.toFixed(2)]}),v&&o.jsx(ge,{variant:"destructive",className:"font-semibold",children:"Out of Stock"})]}),l>0&&o.jsx("div",{className:"absolute bottom-3 left-3",children:o.jsxs(ge,{variant:"secondary",className:"gap-1",children:[o.jsx(FA,{className:"w-3 h-3"}),l]})}),(c||u)&&o.jsxs("div",{className:"absolute top-3 left-3 flex flex-col gap-2",children:[c&&o.jsx(ge,{className:"bg-chart-2 text-background",children:"â Staff Pick"}),u&&o.jsx(ge,{className:"bg-primary text-primary-foreground",children:"Featured"})]})]}),o.jsxs("div",{className:"p-4",children:[o.jsx("div",{className:"mb-2",children:o.jsx(ge,{variant:"secondary",className:"text-xs",children:n})}),o.jsx("h3",{className:"font-serif text-xl font-medium mb-2 line-clamp-2","data-testid":`text-product-name-${e}`,children:t}),o.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-4",children:i}),o.jsxs(q,{size:"sm",className:"w-full gap-2",onClick:w,disabled:v,"data-testid":`button-add-to-cart-${e}`,children:[o.jsx(Ks,{className:"w-4 h-4"}),v?"Out of Stock":"Add to Cart"]})]})]})}function UV({products:e,isLoading:t=!1,onRefresh:n,onProductClick:r,onAddToCart:s,onFavoriteToggle:i}){return o.jsxs(an,{className:"p-6 md:p-8",children:[o.jsxs("div",{className:"flex items-start justify-between mb-6",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:o.jsx(rn,{className:"w-6 h-6 text-primary"})}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl md:text-3xl font-medium",children:"Your AI Picks"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Personalized recommendations based on your preferences"})]})]}),o.jsx(q,{variant:"outline",size:"icon",onClick:n,disabled:t,"data-testid":"button-refresh-recommendations",children:o.jsx(ej,{className:`w-4 h-4 ${t?"animate-spin":""}`})})]}),t?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(6)].map((a,l)=>o.jsxs("div",{className:"space-y-4",children:[o.jsx("div",{className:"aspect-[3/4] bg-muted animate-pulse rounded-lg"}),o.jsxs("div",{className:"space-y-2",children:[o.jsx("div",{className:"h-4 bg-muted animate-pulse rounded"}),o.jsx("div",{className:"h-3 bg-muted animate-pulse rounded w-2/3"})]})]},l))}):o.jsxs("div",{className:"space-y-6",children:[o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map((a,l)=>o.jsxs("div",{className:"space-y-3",style:{animationDelay:`${l*100}ms`},children:[o.jsx(BV,{...a,onClick:r,onAddToCart:s,onFavoriteToggle:i}),o.jsx("div",{className:"bg-muted/50 rounded-lg p-3",children:o.jsxs("p",{className:"text-xs text-muted-foreground",children:[o.jsx("span",{className:"font-medium text-foreground",children:"Why we recommend: "}),a.reason]})})]},a.id))}),e.length===0&&o.jsxs("div",{className:"text-center py-12",children:[o.jsx(rn,{className:"w-16 h-16 mx-auto mb-4 text-muted-foreground
396/50"}),o.jsx("p",{className:"text-muted-foreground mb-2",children:"No recommendations yet"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Browse and favorite some products to get personalized AI picks"})]})]})]})}const WV=[{value:"wine",label:"Wine",icon:eo},{value:"beer",label:"Beer",icon:lh},{value:"spirits",label:"Spirits",icon:xy},{value:"canned_cocktail",label:"Canned Cocktails",icon:xy},{value:"ciders",label:"Ciders",icon:lh}],HV=[{value:"red",label:"Red"},{value:"white",label:"White"},{value:"rosé",label:"Rosé"},{value:"sparkling",label:"Sparkling"}],KV=[{value:"sweet",label:"Sweet"},{value:"dry",label:"Dry"},{value:"fruity",label:"Fruity"},{value:"bold",label:"Bold & Full-bodied"},{value:"light",label:"Light & Crisp"},{value:"smooth",label:"Smooth & Mellow"},{value:"complex",label:"Complex & Layered"}];function qV({onSubmit:e,isLoading:t=!1}){const[n,r]=d.useState([]),[s,i]=d.useState([]),[a,l]=d.useState([]),c=m=>{r(x=>x.includes(m)?x.filter(g=>g!==m):[...x,m])},u=m=>{i(x=>x.includes(m)?x.filter(g=>g!==m):[...x,m])},f=m=>{l(x=>x.includes(m)?x.filter(g=>g!==m):[...x,m])},h=()=>{n.length!==0&&e({beverageTypes:n,wineColors:s.length>0?s:void 0,flavorPreferences:a})},p=n.length>0&&!t;return o.jsxs(an,{className:"p-6 md:p-8",children:[o.jsxs("div",{className:"flex items-start gap-3 mb-6",children:[o.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:o.jsx(rn,{className:"w-6 h-6 text-primary"})}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl md:text-3xl font-medium",children:"Your AI Picks"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Tell us your preferences to get personalized recommendations"})]})]}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"font-medium mb-3",children:"What types of beverages do you usually enjoy?"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Select all that apply"}),o.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:WV.map(m=>{const x=m.icon,g=n.includes(m.value);return o.jsxs("button",{onClick:()=>c(m.value),className:`flex items-center gap-3 p-4 rounded-lg border-2 transition-all hover-elevate active-elevate-2 ${g?"border-primary bg-primary/5":"border-card-border"}`,"data-testid":`button-beverage-${m.value}`,children:[o.jsx("div",{className:`flex items-center justify-center h-10 w-10 rounded-full ${g?"bg-primary/10":"bg-muted"}`,children:o.jsx(x,{className:`h-5 w-5 ${g?"text-primary":"text-muted-foreground"}`})}),o.jsx("span",{className:`font-medium ${g?"text-foreground":"text-muted-foreground"}`,children:m.label})]},m.value)})})]}),n.includes("wine")&&o.jsxs("div",{children:[o.jsx("h3",{className:"font-medium mb-3",children:"What wine colors do you prefer?"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Optional - select all that interest you"}),o.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:HV.map(m=>{const x=s.includes(m.value);return o.jsx("button",{onClick:()=>u(m.value),className:`flex items-center justify-center gap-2 p-3 rounded-lg border-2 transition-all hover-elevate active-elevate-2 ${x?"border-primary bg-primary/5":"border-card-border"}`,"data-testid":`button-wine-color-${m.value}`,children:o.jsx("span",{className:`text-sm font-medium ${x?"text-foreground":"text-muted-foreground"}`,children:m.label})},m.value)})})]}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-medium mb-3",children:"What flavor profiles do you prefer?"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Optional - helps us refine recommendations"}),o.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:KV.map(m=>{const x=a.includes(m.value);return o.jsx("button",{onClick:()=>f(m.value),className:`flex items-center justify-center gap-2 p-3 rounded-lg border-2 transition-all hover-elevate active-elevate-2 ${x?"border-primary bg-primary/5":"border-card-border"}`,"data-testid":`button-flavor-${m.value}`,children:o.jsx("span",{className:`text-sm font-medium ${x?"text-foreground":"text-muted-foreground"}`,children:m.label})},m.value)})})]}),o.jsxs("div",{className:"pt-4",children:[o.jsx(q,{onClick:h,disabled:!p,className:"w-full",size:"lg","data-testid":"button-submit-preferences",children:t?o.jsxs(o.Fragment,{children:[o.jsx(rn,{className:"w-4 h-4 mr-2 animate-pulse"}),"Generating Recommendations..."]}):o.jsxs(o.Fragment,{children:[o.jsx(rn,{className:"w-4 h-4 mr-2"}),"Get My Recommendations"]})}),o.jsx("p",{className:"text-xs text-muted-foreground text-center mt-3",children:"You can also browse products to build recommendations based on your activity"})]})]})]})}var ug="Checkbox",[GV,cB]=ln(ug),[QV,YV]=GV(ug),wN=d.forwardRef((e,t)=>
396{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:a,disabled:l,value:c="on",onCheckedChange:u,form:f,...h}=e,[p,m]=d.useState(null),x=de(t,j=>m(j)),g=d.useRef(!1),b=p?f||!!p.closest("form"):!0,[v=!1,y]=as({prop:s,defaultProp:i,onChange:u}),w=d.useRef(v);return d.useEffect(()=>{const j=p==null?void 0:p.form;if(j){const S=()=>y(w.current);return j.addEventListener("reset",S),()=>j.removeEventListener("reset",S)}},[p,y]),o.jsxs(QV,{scope:n,state:v,disabled:l,children:[o.jsx(se.button,{type:"button",role:"checkbox","aria-checked":ss(v)?"mixed":v,"aria-required":a,"data-state":SN(v),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:x,onKeyDown:Q(e.onKeyDown,j=>{j.key==="Enter"&&j.preventDefault()}),onClick:Q(e.onClick,j=>{y(S=>ss(S)?!0:!S),b&&(g.current=j.isPropagationStopped(),g.current||j.stopPropagation())})}),b&&o.jsx(XV,{control:p,bubbles:!g.current,name:r,value:c,checked:v,required:a,disabled:l,form:f,style:{transform:"translateX(-100%)"},defaultChecked:ss(i)?!1:i})]})});wN.displayName=ug;var bN="CheckboxIndicator",jN=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...s}=e,i=YV(bN,n);return o.jsx(cn,{present:r||ss(i.state)||i.state===!0,children:o.jsx(se.span,{"data-state":SN(i.state),"data-disabled":i.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});jN.displayName=bN;var XV=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:s,...i}=e,a=d.useRef(null),l=ng(n),c=cm(t);d.useEffect(()=>{const f=a.current,h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(l!==n&&m){const x=new Event("click",{bubbles:r});f.indeterminate=ss(n),m.call(f,ss(n)?!1:n),f.dispatchEvent(x)}},[l,n,r]);const u=d.useRef(ss(n)?!1:n);return o.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s??u.current,...i,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ss(e){return e==="indeterminate"}function SN(e){return ss(e)?"indeterminate":e?"checked":"unchecked"}var CN=wN,ZV=jN;const tc=d.forwardRef(({className:e,...t},n)=>o.jsx(CN,{ref:n,className:K("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:o.jsx(ZV,{className:K("flex items-center justify-center text-current"),children:o.jsx(X1,{className:"h-4 w-4"})})}));tc.displayName=CN.displayName;function JV({open:e,hasCartItems:t,hasFavorites:n,onPlaceOrder:r,onEmailFavorites:s,onComplete:i,isPlacingOrder:a,isEmailingFavorites:l,orderError:c,emailError:u}){const[f,h]=d.useState(!1),[p,m]=d.useState(!1),[x,g]=d.useState(!1),[b,v]=d.useState(""),y=E=>{h(E),E&&g(!1)},w=E=>{m(E),E&&g(!1)},j=E=>{g(E),E&&(h(!1),m(!1))},S=()=>{if(x){i();return}if(f&&t&&r(),p&&n){if(!b.trim())return;s(b)}},P=a||l,N=x||f&&t||p&&n&&b.trim();return o.jsx(ds,{open:e,children:o.jsxs(hr,{className:"sm:max-w-md","data-testid":"dialog-pre-survey",children:[o.jsxs(Ga,{children:[o.jsx(pr,{children:"Before You Go"}),o.jsx(Si,{children:"Would you like us to help with anything before completing your tasting experience?"})]}),o.jsxs("div",{className:"space-y-4 py-4",children:[t&&o.jsxs("div",{className:"flex items-start space-x-3",children:[o.jsx(tc,{id:"order",checked:f,onCheckedChange:y,disabled:P,"data-testid":"checkbox-order"}),o.jsx("div",{className:"flex-1",children:o.jsxs(dt,{htmlFor:"order",className:"flex items-center gap-2 cursor-pointer",children:[o.jsx(Ks,{className:"h-4 w-4"}),o.jsx("span",{children:"Place an order for my cart items to pick up at the retail register"})]})})]}),n&&o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-start space-x-3",children:[o.jsx(tc,{id:"email",checked:p,onCheckedChange:w,disabled:P,"data-testid":"checkbox-email"}),o.jsx("div",{className:"flex-1",children:o.jsxs(dt,{htmlFor:"email",className:"flex items-center gap-2 cursor-pointer",children:[o.jsx(Wn,{className:"h-4 w-4"}),o.jsx("span",{children:"Email my favorites and notes to me"})]})})]}),p&&o.jsx("div",{className:"ml-9",children:o.jsx(ts,{type:"email",placeholder:"[email protected]",value:b,onChange:E=>v(E.target.value),disabled:P,"data-testid":"input-email"})})]}),o.jsxs("div",{className:"flex items-start space-x-3",children:[o.jsx(tc,{id:"none",checked:x,onCheckedChange:j,disabled:P,"data-testid":"checkbox-none"}),o.jsx("div",{className:"flex-1",children:o.jsx(dt,{htmlFor:"none",className:"cursor-pointer",children:"None of the above"})})]})]}),(c||u)&&o.jsx("div",{className:"bg-destructive/10 border border-destructive/20 rounded-md p-3",children:o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(Z1,{className:"h-4 w-4 text-destructive mt-0.5"}),o.jsxs("div",{className:"text-sm text-destructive space-y-1",children:[c&&o.jsx("p",{"data-testid":"text-order-error",children:c}),u&&o.jsx("p",{"data-testid":"text-email-error",children:u})]})]})}),o.jsx(CS,{children:o.jsx(q,{onClick:S,disabled:!N||P,className:"w-full","data-testid":"button-continue",children:P?"Processing...":"Continue to Survey"})})]})})}function e5({question:e,currentScore:t,totalAnswered:n,onAnswer:r,onClose:s}
396){const[i,a]=d.useState(null),[l,c]=d.useState(!1),u=p=>{l||(a(p),c(!0))},f=()=>{if(i===null)return;const p=i===e.correctIndex;r(p)},h=i===e.correctIndex;return o.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-background/70 backdrop-blur-sm",children:[o.jsxs(an,{className:"w-full max-w-2xl p-6 md:p-8 shadow-2xl",children:[o.jsxs("div",{className:"flex items-start justify-between mb-6",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[o.jsxs(ge,{variant:"secondary",children:["Question ",n+1]}),o.jsxs(ge,{className:"bg-chart-2 text-background",children:["Score: ",t,"/",n]})]}),o.jsx("h2",{className:"font-serif text-2xl md:text-3xl font-medium text-foreground",children:"Wine Trivia Challenge"})]}),o.jsx(q,{variant:"ghost",size:"icon",onClick:s,"data-testid":"button-close-trivia",children:o.jsx(Ke,{className:"w-5 h-5"})})]}),e.image&&o.jsx("div",{className:"mb-6 rounded-lg overflow-hidden",children:o.jsx("img",{src:e.image,alt:"Trivia question",className:"w-full aspect-video object-cover"})}),o.jsx("p",{className:"text-lg md:text-xl mb-6 text-foreground",children:e.question}),o.jsx("div",{className:"grid gap-3 mb-6",children:e.answers.map((p,m)=>{const x=i===m,g=m===e.correctIndex;let b="outline",v="";return l?g?v="border-2 border-green-500 bg-green-50 dark:bg-green-950":x&&!g&&(v="border-2 border-destructive bg-destructive/10"):x&&(b="default"),o.jsxs(q,{variant:b,size:"lg",className:`justify-start text-left h-auto py-4 px-6 ${v}`,onClick:()=>u(m),disabled:l,"data-testid":`button-answer-${m}`,children:[o.jsx("span",{className:"flex-1",children:p}),l&&g&&o.jsx(ch,{className:"w-5 h-5 text-green-600"}),l&&x&&!g&&o.jsx(yy,{className:"w-5 h-5 text-destructive"})]},m)})}),l&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`rounded-lg p-4 mb-4 ${h?"bg-green-50 dark:bg-green-950 border border-green-200 dark:border-green-800":"bg-destructive/10 border border-destructive/20"}`,children:[o.jsx("p",{className:"font-medium mb-2 flex items-center gap-2",children:h?o.jsxs(o.Fragment,{children:[o.jsx(ch,{className:"w-5 h-5 text-green-600"}),o.jsx("span",{className:"text-green-900 dark:text-green-100",children:"Correct!"})]}):o.jsxs(o.Fragment,{children:[o.jsx(yy,{className:"w-5 h-5 text-destructive"}),o.jsx("span",{className:"text-destructive",children:"Not quite"})]})}),o.jsx("p",{className:"text-sm text-muted-foreground",children:e.explanation})]}),o.jsx(q,{onClick:f,className:"w-full",size:"lg","data-testid":"button-continue-trivia",children:"Continue"})]})]}),l&&h&&n===0&&o.jsx("div",{className:"fixed inset-0 pointer-events-none z-50",children:[...Array(12)].map((p,m)=>o.jsx(rn,{className:"absolute text-primary animate-ping",style:{top:`${Math.random()*100}%`,left:`${Math.random()*100}%`,animationDelay:`${Math.random()*.5}s`,animationDuration:`${1+Math.random()}s`}},m))})]})}function t5({open:e,onClose:t,score:n,total:r,achievement:s}){const i=n/r*100,a=!!s;return o.jsx(ds,{open:e,onOpenChange:t,children:o.jsxs(hr,{className:"max-w-md","data-testid":"trivia-rewards-dialog",children:[o.jsxs(Ga,{children:[o.jsx(pr,{className:"flex items-center justify-center gap-2 text-3xl",children:a?o.jsxs(o.Fragment,{children:[o.jsx(Gl,{className:"w-8 h-8 text-primary"}),"Congratulations!"]}):o.jsxs(o.Fragment,{children:[o.jsx(yd,{className:"w-8 h-8 text-chart-2"}),"Trivia Complete!"]})}),o.jsx(Si,{className:"sr-only",children:"Your trivia results and rewards"})]}),o.jsxs("div",{className:"space-y-6 py-6",children:[o.jsxs("div",{className:"text-center space-y-3",children:[o.jsxs("div",{className:"flex items-center justify-center gap-3",children:[o.jsx("div",{className:"text-6xl font-bold text-primary",children:n}),o.jsxs("div",{className:"text-2xl text-muted-foreground",children:["/ ",r]})]}),o.jsxs("p",{className:"text-lg text-muted-foreground",children:[i,"% Correct"]})]}),s&&s.rewardType==="discount"&&o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:[...Array(8)].map((l,c)=>o.jsx(rn,{className:"absolute text-primary animate-ping",style:{to
396p:`${Math.random()*100}%`,left:`${Math.random()*100}%`,animationDelay:`${Math.random()*.5}s`,animationDuration:`${1+Math.random()}s`}},c))}),o.jsxs("div",{className:"relative bg-primary/10 border-2 border-primary rounded-lg p-6 text-center space-y-3",children:[o.jsx(IA,{className:"w-12 h-12 text-primary mx-auto"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xl font-bold text-primary mb-1",children:s.achievementMessage}),o.jsxs("p",{className:"text-2xl font-bold text-foreground mb-2",children:["$",parseFloat(s.rewardValue).toFixed(2)," Discount"]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Congratulations! $",parseFloat(s.rewardValue).toFixed(2)," discount added to your cart"]})]})]})]}),s&&s.rewardType==="token"&&o.jsxs("div",{className:"bg-chart-2/10 border-2 border-chart-2 rounded-lg p-6 text-center space-y-3",children:[o.jsx(Xp,{className:"w-12 h-12 text-chart-2 mx-auto"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xl font-bold text-chart-2 mb-1",children:s.achievementMessage}),o.jsxs("p",{className:"text-lg font-semibold text-foreground mb-2",children:[parseFloat(s.rewardValue)," Tasting Token",parseFloat(s.rewardValue)!==1?"s":""," Earned"]}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Congratulations! You earned ",parseFloat(s.rewardValue)," tasting token",parseFloat(s.rewardValue)!==1?"s":"","! Show this to staff to redeem"]})]})]}),!a&&n>=5&&o.jsxs("div",{className:"bg-muted/50 border rounded-lg p-6 text-center space-y-2",children:[o.jsx(yd,{className:"w-10 h-10 text-chart-2 mx-auto"}),o.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Great Effort!"}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["You scored ",n," out of 10. Try again next time for rewards!"]})]}),!a&&n<5&&o.jsxs("div",{className:"bg-muted/50 border rounded-lg p-6 text-center space-y-2",children:[o.jsx(yd,{className:"w-10 h-10 text-muted-foreground mx-auto"}),o.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Thanks for Playing!"}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["You scored ",n," out of 10. Keep exploring and learning about wine!"]})]}),o.jsx("div",{className:"bg-muted/30 rounded-lg p-4 text-center",children:o.jsx("p",{className:"text-sm text-muted-foreground",children:a?o.jsx(o.Fragment,{children:"Thank you for participating in our wine trivia!"}):o.jsx(o.Fragment,{children:"Keep exploring our wines to learn more. Rewards are available for scores of 8/10 or higher!"})})}),o.jsx(q,{onClick:t,className:"w-full",size:"lg","data-testid":"button-close-rewards",children:"Continue Tasting"})]})]})})}function n5({onClose:e}){return o.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:o.jsxs(an,{className:"max-w-md w-full p-6 relative",children:[o.jsx(q,{variant:"ghost",size:"icon",onClick:e,className:"absolute top-2 right-2","data-testid":"button-close-favorites-info",children:o.jsx(Ke,{className:"w-4 h-4"})}),o.jsxs("div",{className:"text-center space-y-4",children:[o.jsx("div",{className:"flex justify-center",children:o.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:o.jsx(Wn,{className:"w-8 h-8 text-primary"})})}),o.jsx("h2",{className:"text-2xl font-semibold",children:"Save Your Favorites"}),o.jsxs("div",{className:"space-y-3 text-left",children:[o.jsxs("div",{className:"flex gap-3",children:[o.jsx(Wn,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Press the ",o.jsx("span",{className:"font-medium text-foreground",children:"heart button"})," on any product to add it to your favorites list along with your tasting notes."]})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx(Jp,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["At the end of your tasting, visit the ",o.jsx("span",{className:"font-medium text-foreground",children:"Profile tab"})," to email your favorites list to yourself."]}
396)]})]}),o.jsx("div",{className:"pt-2",children:o.jsx(q,{onClick:e,className:"w-full","data-testid":"button-got-it-favorites",children:"Got it!"})})]})]})})}function r5({onClose:e}){const t=[{name:"Tier 1",count:"3-5 items",discount:"5% off"},{name:"Tier 2",count:"6-11 items",discount:"10% off"},{name:"Tier 3",count:"12-23 items",discount:"15% off"},{name:"Tier 4",count:"24+ items",discount:"24% off"}],n=[{name:"Tier 1",count:"3-5 items",discount:"5% off"},{name:"Tier 2",count:"6-11 items",discount:"10% off"},{name:"Tier 3",count:"12-23 items",discount:"15% off"},{name:"Tier 4",count:"24+ items",discount:"24% off"}];return o.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:o.jsxs(an,{className:"max-w-md w-full p-6 relative max-h-[90vh] overflow-y-auto",children:[o.jsx(q,{variant:"ghost",size:"icon",onClick:e,className:"absolute top-2 right-2","data-testid":"button-close-discount-info",children:o.jsx(Ke,{className:"w-4 h-4"})}),o.jsxs("div",{className:"text-center space-y-4",children:[o.jsx("div",{className:"flex justify-center",children:o.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center",children:o.jsx(CA,{className:"w-8 h-8 text-primary"})})}),o.jsx("h2",{className:"text-2xl font-semibold",children:"Volume Discounts"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Did you know? The more you purchase, the more you save! We offer separate discounts for bottles and canned products."}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"text-left",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(eo,{className:"w-5 h-5 text-primary"}),o.jsx("h3",{className:"font-semibold",children:"Wine & Spirits (Bottles)"})]}),o.jsx("div",{className:"space-y-2",children:t.map((r,s)=>o.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50",children:[o.jsxs("div",{className:"text-left",children:[o.jsx("p",{className:"font-medium text-sm",children:r.name}),o.jsx("p",{className:"text-xs text-muted-foreground",children:r.count})]}),o.jsx("div",{className:"text-right",children:o.jsx("p",{className:"font-semibold text-primary",children:r.discount})})]},s))})]}),o.jsxs("div",{className:"text-left",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(lh,{className:"w-5 h-5 text-primary"}),o.jsx("h3",{className:"font-semibold",children:"Beer & Canned Products"})]}),o.jsx("div",{className:"space-y-2",children:n.map((r,s)=>o.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-muted/50",children:[o.jsxs("div",{className:"text-left",children:[o.jsx("p",{className:"font-medium text-sm",children:r.name}),o.jsx("p",{className:"text-xs text-muted-foreground",children:r.count})]}),o.jsx("div",{className:"text-right",children:o.jsx("p",{className:"font-semibold text-primary",children:r.discount})})]},s))})]})]}),o.jsxs("div",{className:"pt-2 pb-1 flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[o.jsx(rn,{className:"w-4 h-4 text-primary"}),o.jsx("p",{className:"italic",children:"Discounts apply separately to each category!"}),o.jsx(rn,{className:"w-4 h-4 text-primary"})]}),o.jsx("div",{className:"pt-2",children:o.jsx(q,{onClick:e,className:"w-full","data-testid":"button-got-it-discount",children:"Great to know!"})})]})]})})}function s5({commercial:e,onClose:t}){return o.jsx(ds,{open:!0,onOpenChange:t,children:o.jsxs(hr,{className:"max-w-2xl max-h-[85vh] overflow-hidden","data-testid":"dialog-commercial",children:[o.jsx(pr,{className:"sr-only",children:e.title}),o.jsx(Si,{className:"sr-only",children:e.description||"Commercial message"}),e.imageUrl&&o.jsx("div",{className:"w-full -mx-6 -mt-6 max-h-[50vh] flex items-center justify-center bg-black",children:o.jsx("img",{src:e.imageUrl,alt:e.title,className:"w-full h-auto object-contain max-h-[50vh]","data-testid":"img-commercial"})}),o.jsxs("div",{className:"space-y-4",children:[o.jsx("h2",{className:"text-2xl font-semibold","data-testid":"text-commercial-title",children:e.title}),e.description&&o.jsx("p",{className:"text-muted-foreground whitespace-pre-wrap","data-testid":"text-commercial-description",children:e.description}),o.jsx(q,{onClick:t,className:"w-full","data-testid":"button-continue",children:"Continue"})]})]})})}var EN="AlertDialog",[o5,uB]=ln(EN,[aS]),vr=aS(),NN=e=>{const{__scopeAlertDialog:t,...n}=e,r=vr(t);return o.jsx(wm,{...r,...n,modal:!0})};NN.displayName=EN;var i5="AlertDialogTrigger",PN=d.forwardRef((e,t)=>
396{const{__scopeAlertDialog:n,...r}=e,s=vr(n);return o.jsx(bm,{...s,...r,ref:t})});PN.displayName=i5;var a5="AlertDialogPortal",TN=e=>{const{__scopeAlertDialog:t,...n}=e,r=vr(t);return o.jsx(jm,{...r,...n})};TN.displayName=a5;var l5="AlertDialogOverlay",kN=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=vr(n);return o.jsx(Ua,{...s,...r,ref:t})});kN.displayName=l5;var Vo="AlertDialogContent",[c5,u5]=o5(Vo),d5=C1("AlertDialogContent"),RN=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...s}=e,i=vr(n),a=d.useRef(null),l=de(t,a),c=d.useRef(null);return o.jsx(fM,{contentName:Vo,titleName:AN,docsSlug:"alert-dialog",children:o.jsx(c5,{scope:n,cancelRef:c,children:o.jsxs(Wa,{role:"alertdialog",...i,...s,ref:l,onOpenAutoFocus:Q(s.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[o.jsx(d5,{children:r}),o.jsx(h5,{contentRef:a})]})})})});RN.displayName=Vo;var AN="AlertDialogTitle",_N=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=vr(n);return o.jsx(Ha,{...s,...r,ref:t})});_N.displayName=AN;var DN="AlertDialogDescription",ON=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=vr(n);return o.jsx(Ka,{...s,...r,ref:t})});ON.displayName=DN;var f5="AlertDialogAction",MN=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,s=vr(n);return o.jsx(qa,{...s,...r,ref:t})});MN.displayName=f5;var LN="AlertDialogCancel",IN=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:s}=u5(LN,n),i=vr(n),a=de(t,s);return o.jsx(qa,{...i,...r,ref:a})});IN.displayName=LN;var h5=({contentRef:e})=>{const t=`\`${Vo}\` requires a description for the component to be accessible for screen reader users. 397 398You can add a description to the \`${Vo}\` by passing a \`${DN}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 399 400Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Vo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 401 402For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return d.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},p5=NN,m5=PN,g5=TN,FN=kN,VN=RN,zN=MN,$N=IN,BN=_N,UN=ON;const v5=p5,dB=m5,y5=g5,WN=d.forwardRef(({className:e,...t},n)=>o.jsx(FN,{className:K("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",e),...t,ref:n}));WN.displayName=FN.displayName;const HN=d.forwardRef(({className:e,...t},n)=>o.jsxs(y5,{children:[o.jsx(WN,{}),o.jsx(VN,{ref:n,className:K("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));HN.displayName=VN.displayName;const KN=({className:e,...t})=>o.jsx("div",{className:K("flex flex-col space-y-2 text-center sm:text-left",e),...t});KN.displayName="AlertDialogHeader";const qN=({className:e,...t})=>o.jsx("div",{className:K("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});qN.displayName="AlertDialogFooter";const GN=d.forwardRef(({className:e,...t},n)=>o.jsx(BN,{ref:n,className:K("text-lg font-semibold",e),...t}));GN.displayName=BN.displayName;const QN=d.forwardRef(({className:e,...t},n)=>o.jsx(UN,{ref:n,className:K("text-sm text-muted-foreground",e),...t}));QN.displayName=UN.displayName;const YN=d.forwardRef(({className:e,...t},n)=>o.jsx(zN,{ref:n,className:K(hm(),e),...t}));YN.displayName=zN.displayName;const XN=d.forwardRef(({className:e,...t},n)=>o.jsx($N,{ref:n,className:K(hm({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));XN.displayName=$N.displayName;function x5({sessionId:e}){const{toast:t}
402=Wp(),[n,r]=d.useState(!1),[s,i]=d.useState(""),{data:a,isLoading:l}=$e({queryKey:["/api/trivia-attempt",e],queryFn:()=>dV(e),enabled:!!e,refetchInterval:3e4}),c=tt({mutationFn:({attemptId:m,staffName:x})=>fV(m,x),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/trivia-attempt",e]}),r(!1),i(""),t({title:"Token Redeemed!",description:"Your tasting tokens have been verified and applied."})},onError:m=>{t({title:"Verification Failed",description:m.message,variant:"destructive"})}}),u=()=>{r(!0)},f=()=>{a&&c.mutate({attemptId:a.id,staffName:s||void 0})};if(l||!a||!a.achievement)return null;const{achievement:h}=a,p=parseFloat(h.rewardValue);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"w-full bg-gradient-to-r from-primary to-primary/80 text-primary-foreground px-4 py-6 mb-6 rounded-lg shadow-lg relative overflow-hidden","data-testid":"banner-trivia-token",children:[o.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-primary-foreground/10 rounded-full -mr-16 -mt-16"}),o.jsx("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-primary-foreground/10 rounded-full -ml-12 -mb-12"}),o.jsxs("div",{className:"relative z-10 flex flex-col items-center text-center gap-4",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(rn,{className:"w-6 h-6 animate-pulse"}),o.jsx("h2",{className:"text-2xl font-serif font-semibold",children:"Congratulations! Trivia Reward Earned"}),o.jsx(rn,{className:"w-6 h-6 animate-pulse"})]}),o.jsxs("div",{className:"flex items-center gap-3 bg-primary-foreground/20 px-6 py-3 rounded-full",children:[o.jsx(Xp,{className:"w-8 h-8"}),o.jsxs("div",{className:"text-left",children:[o.jsxs("div",{className:"text-3xl font-serif font-bold",children:[p," Tasting Token",p!==1?"s":""]}),o.jsx(ge,{variant:"outline",className:"mt-1 bg-primary-foreground text-primary border-primary-foreground",children:"Earned Reward"})]})]}),o.jsx("p",{className:"text-lg font-medium max-w-lg",children:h.achievementMessage}),o.jsxs("div",{className:"bg-primary-foreground/10 px-6 py-4 rounded-lg max-w-md",children:[o.jsx("p",{className:"text-sm font-medium mb-2",children:"ð Show this screen to staff to redeem your tokens"}),o.jsx("p",{className:"text-xs opacity-90",children:"Staff will verify this reward and provide you with tasting tokens to use today"})]}),o.jsx(q,{size:"lg",variant:"outline",className:"bg-primary-foreground text-primary hover:bg-primary-foreground/90 border-2 border-primary-foreground font-semibold",onClick:u,disabled:c.isPending,"data-testid":"button-staff-verify",children:c.isPending?"Verifying...":"Staff: I have verified this redemption"})]})]}),o.jsx(v5,{open:n,onOpenChange:r,children:o.jsxs(HN,{"data-testid":"dialog-verify-confirmation",children:[o.jsxs(KN,{children:[o.jsx(GN,{children:"Verify Token Redemption"}),o.jsx(QN,{children:"Please confirm that you are a staff member verifying this token redemption. This action will mark the tokens as redeemed and cannot be undone."})]}),o.jsxs("div",{className:"py-4",children:[o.jsx(dt,{htmlFor:"staff-name",className:"text-sm font-medium",children:"Staff Name (Optional)"}),o.jsx(ts,{id:"staff-name",type:"text",placeholder:"Enter your name",value:s,onChange:m=>i(m.target.value),className:"mt-2","data-testid":"input-staff-name"})]}),o.jsxs(qN,{children:[o.jsx(XN,{"data-testid":"button-cancel-verify",children:"Cancel"}),o.jsx(YN,{onClick:f,disabled:c.isPending,"data-testid":"button-confirm-verify",children:c.isPending?"Verifying...":"Confirm Verification"})]})]})})]})}function Ud(e){var n;const t=(n=e.media)==null?void 0:n.find(r=>r.role==="primary");return t?`/api/media-library/${t.media.id}/file`:e.imageUrl||null}function w5(){var Lg,Ig,Fg,Vg,zg;const{toast:e}=Wp(),[t,n]=d.useState(""),[r,s]=d.useState(null),[i,a]=d.useState("browse"),[l,c]=d.useState(!1),[u,f]=d.useState(!1),[h,p]=d.useState(!1),[m,x]=d.useState({order:!1,email:!1}),[g,b]=d.useState(""),[v,y]=d.useState(""),[w,j]=d.useState("all"),[S,P]=d.useState("name"),[N,E]=d.useState("all"),[_,T]=d.useState("all"),[O,L]=d.useState("all"),[G,V]=d.useState("all"),[J,z]=d.useState("all"),[W,D]=d.useState("all"),[F,$]=d.useState("all"),[ee,pe]=d.useState("all"),[Ae,Ce]=d.useState("all"),[Ye,Le]=d.useState("all"),[Y,we]=d.useState("all"),[U,ce]=d.useState(!1),[ae,ve]=d.useState(!1),[gt,Ct]=d.useState(!1),[yr,xr]=d.useState({score:0,total:0}),[Pn,Au]=d.useState(null),[no,uP]=d.useState(null),[dP,hg]=d.useState(!1),[pg,fP]=d.useState(0),[hP,mg]=d.useState(!1),[pP,gg]=d.useState(!1),[Kt,vg]=d.useState(null),[mP,yg]=d.useState(!1),_u=!!r,{data:el=[],isLoading:gP,isError:vP,error:xg}=$e({queryKey:["/api/products",{search:v,category:w,wineColor:w==="wine"?_:"all",sweetness:w==="wine"?O:"all",body:w==="wine"?G:"all",characteristics:w==="wine"?J:"all",beerStyle:w==="beer"?W:"all",beerColor:w==="beer"?F:"all",beerBitterness:w==="beer"?ee:"all",spiritType:w==="spirits"?Ae:"all",spiritAging:w==="spirits"?Ye:"all",spiritFlavor:w==="spirits"?Y:"all",priceRange:N}],queryFn:async()=>{const k={};if(v&&(k.search=v),w!=="all"&&(k.category=w),w==="wine"&&(_!=="all"&&(k.wineColor=_),O!=="all"&&(k.sweetness=O),G!=="all"&&(k.body=G),J!=="all"&&(k.characteristics=J)),w==="beer"&&(W!=="all"&&(k.beerStyle=W),F!=="all"&&(k.beerColor=F),ee!=="all"&&(k.beerBitterness=ee)),w==="spirits"&&(Ae!=="all"&&(k.spiritType=Ae),Ye!=="all"&&(k.spiritAging=Ye),Y!=="all"&&(k.spiritFlavor=Y)),N!=="all"){const[X,oe]=N.split("-").map(Number);X&&(k.minPrice=X),oe&&(k.maxPrice=oe)}return K3(k)},enabled:_u,retry:2});d.useEffect(()=>{const k=setTimeout(()=>{y(g)},400);return()=>clearTimeout(k)},[g]),d.useEffect(()=>{w!=="wine"&&(T("all"),L("all"),V("all"),z("all")),w!=="beer"&&(D("all"),$("all"),pe("all")),w!=="spirits"&&(Ce("all"),Le("all"),we("all"))},[w]);const{data:dn=[]}=$e({queryKey:["/api/sessions",r,"favorites"],queryFn:()=>q3(r),enabled:!!r}),{data:tl=[]}=$e({queryKey:["/api/sessions",r,"cart"],queryFn:()=>tV(r),enabled:!!r}),{data:Du=[]}=$e({queryKey:["/api/sessions",r,"views"],queryFn:()=>eV(r),enabled:!!r}),{data:wg=[]}=$e({queryKey:["/api/sessions",r,"notes"],queryFn:()=>X3(r),enabled:!!r}),{data:Tn=[]}=$e({queryKey:["/api/sessions",r,"trivia","scores"],queryFn:()=>lV(r),enabled:!!r}),{data:kn}=$e({queryKey:["/api/sessions",r,"trivia","next"],queryFn:()=>iV(r),enabled:!!r}),{data:ro=[]}=$e({queryKey:["/api/commercials?activeOnly=true"]}),{data:bg=240}=$e({queryKey:["/api/settings/trivia_interval_seconds"],queryFn:async()=>{const k=await fetch("/api/settings/trivia_interval_seconds");if(!k.ok){if(k.status===404)return 240;throw new Error("Failed to fetch trivia interval")}return(await k.json()).value}});d.useEffect(()=>{if(!r||!kn||Tn.length>=10||l||ae||!localStorage.getItem("hasSeenTriviaInfo"))return;if(Tn.length===0){const oe=setTimeout(()=>
402{kn&&Tn.length===0&&ce(!0)},6e4);return()=>clearTimeout(oe)}const X=setInterval(()=>{kn&&Tn.length<10&&ce(!0)},bg*1e3);return()=>clearInterval(X)},[r,kn,Tn.length,l,ae,bg]),d.useEffect(()=>{if(!r||l||localStorage.getItem("hasSeenFavoritesInfo"))return;const X=setTimeout(()=>{mg(!0),localStorage.setItem("hasSeenFavoritesInfo","true")},6e5);return()=>clearTimeout(X)},[r,l]),d.useEffect(()=>{if(!r||l||localStorage.getItem("hasSeenDiscountInfo"))return;const X=setTimeout(()=>{gg(!0),localStorage.setItem("hasSeenDiscountInfo","true")},15e5);return()=>clearTimeout(X)},[r,l]);const{data:qt}=$e({queryKey:["/api/sessions",r],queryFn:()=>fetch(`/api/sessions/${r}`).then(k=>k.json()),enabled:!!r}),jg=dn.length+Du.length,Sg=!!((Lg=qt==null?void 0:qt.preferredBeverageTypes)!=null&&Lg.length||(Ig=qt==null?void 0:qt.wineColors)!=null&&Ig.length||(Fg=qt==null?void 0:qt.flavorPreferences)!=null&&Fg.length||qt!=null&&qt.occasion),yP=!!r&&(jg>=2||Sg),{data:xP=[],isLoading:wP}=$e({queryKey:["/api/sessions",r,"recommendations"],queryFn:()=>pV(r),enabled:yP}),{data:Cg=[],isLoading:bP}=$e({queryKey:["/api/videos"],queryFn:async()=>{const k=await fetch("/api/videos?activeOnly=true");if(!k.ok)throw new Error("Failed to fetch videos");return k.json()},enabled:_u}),jP=tt({mutationFn:k=>W3(k),onSuccess:k=>{s(k.id),n(k.guestName),c(!0)},onError:()=>{e({title:"Error",description:"Failed to start session",variant:"destructive"})}}),Eg=tt({mutationFn:k=>vV(r,k),onSuccess:()=>{p(!1),e({title:"Thank you!",description:"Your feedback helps us improve the experience"})},onError:()=>{e({title:"Error",description:"Failed to submit survey",variant:"destructive"})}}),SP=tt({mutationFn:k=>G3(r,k),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"favorites"]})},onError:()=>{e({title:"Error",description:"Failed to add favorite",variant:"destructive"})}}),CP=tt({mutationFn:k=>Q3(r,k),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"favorites"]})},onError:()=>{e({title:"Error",description:"Failed to remove favorite",variant:"destructive"})}});tt({mutationFn:({favoriteId:k,note:X})=>Y3(k,X),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"favorites"]})}});const Ng=tt({mutationFn:({productId:k,note:X})=>Z3(r,k,X),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"notes"]})},onError:k=>{console.error("Failed to save product note:",k),e({title:"Error",description:"Failed to save note",variant:"destructive"})}}),EP=tt({mutationFn:k=>nV(r,k,1),onSuccess:(k,X)=>{He.invalidateQueries({queryKey:["/api/sessions",r,"cart"]});const oe=el.find(Xe=>Xe.id===X);e({title:"Added to cart",description:oe==null?void 0:oe.name})},onError:()=>{e({title:"Error",description:"Failed to add to cart",variant:"destructive"})}}),Pg=tt({mutationFn:({cartItemId:k,quantity:X})=>rV(k,X),onMutate:async({cartItemId:k,quantity:X})=>{await He.cancelQueries({queryKey:["/api/sessions",r,"cart"]});const oe=He.getQueryData(["/api/sessions",r,"cart"]);return He.setQueryData(["/api/sessions",r,"cart"],Xe=>Xe&&Xe.map(vt=>vt.id===k?{...vt,quantity:X}:vt)),{previousCart:oe}},onError:(k,X,oe)=>{oe!=null&&oe.previousCart&&He.setQueryData(["/api/sessions",r,"cart"],oe.previousCart),e({title:"Error",description:"Failed to update quantity",variant:"destructive"})},onSettled:()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"cart"]})}}),Tg=tt({mutationFn:k=>sV(k),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"cart"]})}}),NP=tt({mutationFn:k=>J3(r,k),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"views"]})}}),kg=tt({mutationFn:({questionId:k,isCorrect:X,attemptId:oe})=>aV(r,k,X,oe),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"trivia","scores"]}),He.invalidateQueries({queryKey:["/api/sessions",r,"trivia","next"]})}}),PP=tt({mutationFn:k=>cV(r,k),onSuccess:k=>{Au(k.id)},onError:k=>{k.message.includes("already has a completed")?e({title:"Trivia already completed",description:"You've already completed the trivia for this session",variant:"destructive"}):e({title:"Error",description:"Failed to start trivia attempt",variant:"destructive"}),ce(!1)}}),TP=tt({mutationFn:({attemptId:k,correctAnswers:X})=>uV(k,X),onSuccess:k=>{uP(k.achievement||null)},onError:()=>{e({title:"Error",description:"Failed to complete trivia attempt",variant:"destructive"})}}),wr=tt({mutationFn:k=>mV(r,k),onSuccess:()=>{e({title:"Order sent!",description:"Staff will prepare your order shortly"})},onError:()=>{e({title:"Error",description:"Failed to send order email",variant:"destructive"})}}),br=tt({mutationFn:k=>gV(r,k),onSuccess:()=>{e({title:"Email sent!",description:"Check your inbox for your favorites and notes"})},onError:()=>{e({title:"Error",description:"Failed to send favorites email",variant:"destructive"})}}),Rg=tt({mutationFn:k=>H3(r,k.beverageTypes,k.flavorPreferences,k.wineColors,k.occasion),onSuccess:()=>{He.invalidateQueries({queryKey:["/api/sessions",r]}),He.invalidateQueries({queryKey:["/api/sessions",r,"recommendations"]}),e({title:"Preferences saved!",description:"Generating personalized recommendations for you"})},onError:()=>{e({title:"Error",description:"Failed to save preferences",variant:"destructive"})}}),kP=k=>{jP.mutate(k)},nl=k=>{dn.some(oe=>oe.productId===k)?CP.mutate(k):SP.mutate(k)},RP=(k,X)=>{Ng.mutate({productId:k,note:X})},Ou=k=>{EP.mutate(k)},Ag=(k,X)=>{Pg.isPending||Tg.isPending||(X===0?Tg.mutate(k):Pg.mutate({cartItemId:k,quantity:X}))},_g=k=>{NP.mutate(k);const X=el.find(oe=>oe.id===k);X&&(vg(X),yg(!0))},AP=()=>{yg(!1),vg(null)},_P=()=>{Kt&&nl(Kt.id)},DP=()=>{Kt&&(Ou(Kt.id),e({title:"Added to cart",description:`${Kt.name} added to your cart`}))},OP=k=>{Kt&&Ng.mutate({productId:Kt.id,note:k})},MP=()=>{hg(!1),fP(k=>k+1)},LP=k=>{if(kn){const X=Tn.length;X===0&&!Pn?PP.mutate(10,{onSuccess:oe=>{kg.mutate({questionId:kn.id,isCorrect:k,attemptId:oe.id},{onSuccess:()=>{Dg(k,X)}})}}):kg.mutate({questionId:kn.id,isCorrect:k,attemptId:Pn||void 0},{onSuccess:()=>{Dg(k,X)}})}ce(!1)},Dg=(k,X)=>
402{const oe=Tn.filter(vt=>vt.isCorrect).length+(k?1:0),Xe=X+1;Xe===10?Pn?TP.mutate({attemptId:Pn,correctAnswers:oe},{onSuccess:()=>{xr({score:oe,total:Xe}),Ct(!0)}}):(xr({score:oe,total:Xe}),Ct(!0)):Xe%3===0&&ro.length>0&&ro[pg%ro.length]&&hg(!0)},IP=()=>{He.invalidateQueries({queryKey:["/api/sessions",r,"recommendations"]})},FP=()=>{const k=window.prompt("Enter your email address to receive your favorites:");k&&k.trim()&&br.mutate(k.trim())},VP=()=>{const k=Gt.filter(re=>["wine","spirits"].includes(re.category)).reduce((re,Ne)=>re+Ne.quantity,0),X=Gt.filter(re=>["beer","canned_cocktail","canned_wine"].includes(re.category)).reduce((re,Ne)=>re+Ne.quantity,0),oe=re=>re>=24?.24:re>=12?.15:re>=6?.1:re>=3?.05:0,Xe=Gt.filter(re=>["wine","spirits"].includes(re.category)).reduce((re,Ne)=>re+Ne.price*Ne.quantity,0),vt=Gt.filter(re=>["beer","canned_cocktail","canned_wine"].includes(re.category)).reduce((re,Ne)=>re+Ne.price*Ne.quantity,0),Sr=Gt.reduce((re,Ne)=>re+Ne.price*Ne.quantity,0),oo=oe(k),Lu=oe(X),Pi=Xe*oo,Ti=vt*Lu,Iu=Pi+Ti,Fu=Sr-Iu,Vu=Math.max(0,Fu-Ni);wr.mutate({subtotal:Sr,bottleDiscount:Pi,cannedDiscount:Ti,triviaCredit:Ni,total:Vu})},zP=()=>{x(re=>({...re,order:!0}));const k=Gt.filter(re=>["wine","spirits"].includes(re.category)).reduce((re,Ne)=>re+Ne.quantity,0),X=Gt.filter(re=>["beer","canned_cocktail","canned_wine"].includes(re.category)).reduce((re,Ne)=>re+Ne.quantity,0),oe=re=>re>=24?.24:re>=12?.15:re>=6?.1:re>=3?.05:0,Xe=Gt.filter(re=>["wine","spirits"].includes(re.category)).reduce((re,Ne)=>re+Ne.price*Ne.quantity,0),vt=Gt.filter(re=>["beer","canned_cocktail","canned_wine"].includes(re.category)).reduce((re,Ne)=>re+Ne.price*Ne.quantity,0),Sr=Gt.reduce((re,Ne)=>re+Ne.price*Ne.quantity,0),oo=oe(k),Lu=oe(X),Pi=Xe*oo,Ti=vt*Lu,Iu=Pi+Ti,Fu=Sr-Iu,Vu=Math.max(0,Fu-Ni);wr.mutate({subtotal:Sr,bottleDiscount:Pi,cannedDiscount:Ti,triviaCredit:Ni,total:Vu})},$P=k=>{x(X=>({...X,email:!0})),br.mutate(k)},BP=()=>{f(!1),p(!0),x({order:!1,email:!1})};d.useEffect(()=>{u&&(wr.reset(),br.reset(),x({order:!1,email:!1}))},[u]),d.useEffect(()=>{const k=m.order,X=m.email;if(!k&&!X)return;const oe=!k||wr.isSuccess,Xe=!X||br.isSuccess;oe&&Xe&&(f(!1),p(!0),x({order:!1,email:!1}))},[m,wr.isSuccess,br.isSuccess]),d.useMemo(()=>{const k={};return Du.forEach(X=>{k[X.productId]=X.viewCount}),k},[Du]);const Og=d.useMemo(()=>new Set(dn.map(k=>k.productId)),[dn]),Mu=d.useMemo(()=>{const k={};return wg.forEach(X=>{k[X.productId]=X.note}),k},[wg]),UP=d.useMemo(()=>dn.map(k=>({id:k.productId,name:k.product.name,category:k.product.category,price:parseFloat(k.product.price),image:Ud(k.product)||"",note:Mu[k.productId]||k.note||void 0})),[dn,Mu]),Gt=d.useMemo(()=>tl.map(k=>({id:k.id,productId:k.productId,name:k.product.name,category:k.product.category,price:parseFloat(k.product.price),quantity:k.quantity})),[tl]),WP=d.useMemo(()=>tl.reduce((k,X)=>k+X.quantity,0),[tl]),so=d.useMemo(()=>Tn.filter(k=>k.isCorrect).length,[Tn]),jr=Tn.length,Ni=d.useMemo(()=>jr===10&&so===10?5:0,[jr,so]),HP=k=>k===100?"You're on your way to winning a $5.00 discount!":k>=90?"Outstanding! Almost perfect!":k>=80?"Excellent work! Keep it up!":k>=70?"Great job! You're doing well!":k>=60?"Good effort! Not bad at all!":k>=50?"Not bad! Keep trying!":k>=40?"You're learning! Keep going!":k>=30?"Practice makes perfect!":k>0?"Every expert was once a beginner!":"Give it another shot!",Mg=d.useMemo(()=>jr===0?0:Math.round(so/jr*100),[so,jr]);return _u?o.jsxs("div",{className:"min-h-screen bg-background pb-20",children:[o.jsx("header",{className:"sticky top-0 z-30 bg-card border-b border-card-border",children:o.jsx("div",{className:"max-w-7xl mx-auto px-4 py-4",children:o.jsxs("div",{className:"flex items-center justify-between gap-4",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"font-serif text-2xl font-medium",children:["Welcome, ",t]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Tasting Session"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:`Let's find the adult beverages you are going to love. Use the search features below to select a category such as "Wine" and additional search options will appear such as sweetness levels.`})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[jr>0&&o.jsx("div",{className:"text-right","data-testid":"trivia-score-display",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Gl,{className:"w-5 h-5 text-primary"}),o.jsxs("div",{children:[o.jsxs("p",{className:"text-sm font-medium",children:[so,"/",jr," Correct (",Mg,"%)"]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:HP(Mg)})]})]})}),o.jsxs(q,{variant:"outline",size:"icon",onClick:()=>a("favorites"),"data-testid":"button-favorites-header",className:"relative",children:[o.jsx(Wn,{className:`w-5 h-5 ${dn.length>0?"fill-primary text-primary":""}`}),dn.length>0&&o.jsx("span",{className:"absolute -top-1 -right-1 bg-primary text-primary-foreground text-xs rounded-full h-5 w-5 flex items-center justify-center",children:dn.length})]})]})]})})}),o.jsxs("main",{className:"max-w-7xl mx-auto px-4 py-6",children:[o.jsx(x5,{sessionId:r}),i==="browse"&&o.jsxs("div",{className:"space-y-6",children:[o.jsx(bV,{searchQuery:g,selectedCategory:w,sortBy:S,priceRange:N,wineColor:_,sweetness:O,body:G,characteristics:J,beerStyle:W,beerColor:F,beerBitterness:ee,spiritType:Ae,spiritAging:Ye,spiritFlavor:Y,onSearchChange:b,onCategoryChange:j,onSortChange:P,onPriceRangeChange:E,onWineColorChange:T,onSweetnessChange:L,onBodyChange:V,onCharacteristicsCh
402ange:z,onBeerStyleChange:D,onBeerColorChange:$,onBeerBitternessChange:pe,onSpiritTypeChange:Ce,onSpiritAgingChange:Le,onSpiritFlavorChange:we,onClearFilters:()=>{b(""),j("all"),E("all"),T("all"),L("all"),V("all"),z("all"),D("all"),$("all"),pe("all"),Ce("all"),Le("all"),we("all")}}),o.jsx("div",{className:"space-y-2 max-w-3xl mx-auto",children:vP?o.jsxs("div",{className:"text-center py-12 bg-card rounded-lg border border-card-border",children:[o.jsx("p",{className:"text-lg text-destructive mb-2",children:"Unable to load products"}),o.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:xg instanceof Error?xg.message:"An error occurred"}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"The product catalog may not be available yet. Please contact staff for assistance."})]}):gP?o.jsxs("div",{className:"text-center py-12",children:[o.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),o.jsx("p",{className:"text-muted-foreground",children:"Loading products..."})]}):el.length===0?o.jsxs("div",{className:"text-center py-12 bg-card rounded-lg border border-card-border",children:[o.jsx("p",{className:"text-lg text-muted-foreground mb-2",children:"No products found"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Try adjusting your filters"})]}):el.map(k=>o.jsx(p3,{id:k.id,name:k.name,category:k.category,image:Ud(k)||"",characteristics:k.characteristics||"",isFavorite:Og.has(k.id),onFavoriteToggle:nl,onClick:_g},k.id))})]}),i==="favorites"&&o.jsx("div",{className:"max-w-2xl mx-auto",children:o.jsx($V,{favorites:UP,onUpdateNote:RP,onRemoveFavorite:nl,onAddToCart:Ou,onEmailFavorites:FP,onReturnToProducts:()=>a("browse")})}),i==="recommendations"&&(!Sg&&jg<2?o.jsx(qV,{onSubmit:k=>Rg.mutate(k),isLoading:Rg.isPending}):o.jsx(UV,{products:xP.map(k=>({id:k.product.id,name:k.product.name,category:k.product.category,price:parseFloat(k.product.price),image:Ud(k.product)||"",description:k.product.description||"",reason:k.reason})),isLoading:wP,onRefresh:IP,onProductClick:_g,onAddToCart:Ou,onFavoriteToggle:nl})),i==="videos"&&o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"mb-6",children:[o.jsx("h2",{className:"font-serif text-3xl font-medium mb-2",children:"Educational Videos"}),o.jsx("p",{className:"text-muted-foreground",children:"Learn more about our products and the craft behind them"})]}),bP?o.jsxs("div",{className:"text-center py-12",children:[o.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),o.jsx("p",{className:"text-muted-foreground",children:"Loading videos..."})]}):Cg.length===0?o.jsxs("div",{className:"text-center py-12 bg-card rounded-lg border border-card-border",children:[o.jsx("p",{className:"text-lg text-muted-foreground mb-2",children:"No videos available yet"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Check back soon for educational content"})]}):o.jsx("div",{className:"space-y-6",children:Cg.map(k=>{const oe=(vt=>{if(!vt)return"";const Sr=vt.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]+)/);if(Sr)return`https://www.youtube.com/embed/${Sr[1]}?rel=0&modestbranding=1`;const oo=vt.match(/vimeo\.com\/(?:video\/)?(\d+)/);return oo?`https://player.vimeo.com/video/${oo[1]}`:vt})(k.videoUrl),Xe=oe&&(oe.includes("youtube.com/embed")||oe.includes("player.vimeo.com")||oe.endsWith(".mp4")||oe.endsWith(".webm"));return o.jsxs("div",{className:"bg-card rounded-lg border border-card-border overflow-hidden","data-testid":`video-card-${k.id}`,children:[o.jsx("div",{className:"aspect-video bg-black relative",children:Xe?o.jsx("iframe",{src:oe,title:k.title,className:"w-full h-full",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,"data-testid":`video-player-${k.id}`}):o.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center gap-4 p-8",children:[o.jsx("svg",{className:"w-16 h-16 text-muted-foreground",fill:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{d:"M8 5v14l11-7z"})}),o.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Video cannot be embedded. Click the link below to watch."})]})}),o.jsxs("div",{className:"p-6",children:[o.jsx("h3",{className:"font-serif text-xl font-medium mb-2",children:k.title}),k.description&&o.jsx("p",{className:"text-muted-foreground mb-4",children:k.description}),o.jsxs("a",{href:k.videoUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors","data-testid":`link-source-video-${k.id}`,children:[o.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),"Open in new tab"]})]})]},k.id)})})]}),i==="cart"&&o.jsx("div",{className:"max-w-2xl mx-auto",children:o.jsx(zV,{items:Gt,triviaCredit:Ni,sessionId:r||void 0,onUpdateQuantity:Ag,onRemoveItem:k=>Ag(k,0),onCheckout:VP})}),i==="profile"&&o.jsx("div",{className:"max-w-2xl mx-auto text-center py-12",children:o.jsxs("div",{className:"bg-card rounded-lg p-8 border border-card-border space-y-6",children:[o.jsxs("h2",{className:"font-serif text-4xl mb-4",children:["Thank You, ",t,"!"]}),o.jsx("p",{className:"text-lg leading-relaxed",children:"We hope you enjoyed exploring our products with our Interactive Tasting Companion. Your experience and feedback are invaluable to us."}),o.jsx("p",{className:"text-muted-foreground",children:"Please take a moment to share your thoughts by completing our quick survey. Your input helps us improve the tasting experience for future guests."}),o.jsx(q,{size:"lg",onClick:()=>f(!0),"data-testid":"button-complete-tasting",className:"mt-4",children:"Complete Tasting Experience"})]})})]}),o.jsx(VV,{activeTab:i,cartCount:WP,favoritesCount:dn.length,onTabChange:a}),U&&kn&&o.jsx(e5,{question:{...kn,image:kn.image||void 0},currentScore:so,totalAnswered:jr,onAnswer:LP,onClose:()=>ce(!1)}),dP&&ro.length>0&&o.jsx(s5,{commercial:ro[pg%ro.length],onClose:MP}),o.jsx(t5,{open:gt,onClose:()=>Ct(!1),score:yr.score,total:yr.total,achievement:no}),o.jsx(FV,{product:Kt,isOpen:mP,isFavorite:Kt?Og.has(Kt.id):!1,note:Kt&&Mu[Kt.id]||"",onClose:AP,onFavoriteToggle:_P,onAddToCart:DP,onUpdateNote:OP}),o.jsx(F4,{open:l,onContinue:()=>{c(!1),ve(!0)},guestName:t}),o.jsx(JV,{open:u,hasCartItems:Gt.length>0,hasFavorites:dn.length>0,onPlaceOrder:zP,onEmailFavorites:$P,onComplete:BP,isPlacingOrder:wr.isPending,isEmailingFavorites:br.isPending,orderError:wr.isError?((Vg=wr.error)==null?void 0:Vg.message)||"Failed to place order":void 0,emailError:br.isError?((zg=br.error)==null?void 0:zg.message)||"Failed to send email":void 0}),o.jsx(f3,{open:h,onClose:()=>p(!1),onSubmit:k=>Eg.mutate(k),submitting:Eg.isPending}),o.jsx(ds,{open:ae,onOpenChange:ve,children:o.jsxs(hr,{className:"max-w-lg","data-testid":"trivia-info-dialog",children:[o.jsxs(Ga,{children:[o.jsxs(pr,{className:"flex items-center gap-2 text-2xl",children:[o.jsx(Gl,{className:"w-7 h-7 text-primary"}),"Fun Facts & Rewards!"]}),o.jsx(Si,{className:"sr-only",children:"Learn about our trivia rewards program"})]}),o.jsxs("div",{className:"space-y-6 py-4",children:[o.jsxs("p",{className:"text-base leading-relaxed",children:[o.jsx("strong",{children:"10 fun facts"})," will appear during your tasting experience to test your knowledge!"]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-start gap-3 p-4 bg-primary/10 rounded-lg border border-primary/20",children:[o.jsx(Gl,{className:"w-6 h-6 text-primary flex-shrink-0 mt-0.5"}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold mb-1",children:"Perfect Score Reward"}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Get ",o.jsx("strong",{className:"text-foreground",children:"10 out of 10 correct"})," and earn a ",o.jsx("strong",{className:"text-primary",children:"$5.00 certificate"})," for products purchased on this platform!"]})]})]}),o.jsxs("div",{className:"flex items-start gap-3 p-4 bg-chart-2/10 rounded-lg border border-chart-2/20",children:[o.jsx(Xp,{className:"w-6 h-6 text-chart-2 flex-shrink-0 mt-0.5"}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold mb-1",children:"Almost Perfect Reward"}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Get ",o.jsx("strong",{className:"text-foreground",children:"8 or 9 out of 10"})," and receive an ",o.jsx("strong",{className:"text-chart-2",children:"additional tasting chip"})," to enjoy a complimentary tasting on us!"]})]})]})]}),o.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Questions will appear automatically as you explore. Good luck! ð·"}),o.jsx(q,{onClick:()=>ve(!1),className:"w-full","data-testid":"button-close-trivia-info",children:"Got It!"})]})]})}),hP&&o.jsx(n5,{onClose:()=>mg(!1)}),pP&&o.jsx(r5,{onClose:()=>gg(!1)})]}):o.jsx(hO,{onStart:kP})}const i0={none:0,view:1,edit:2,admin:3};function he(){const{data:e,isLoading:t}=$e({queryKey:["/api/auth/user"],queryFn:b1({on401:"returnNull"}),retry:!1,staleTime:0,gcTime:3e5,refetchOnMount:!0,refetchOnWindowFocus:!0}),n=e==null?void 0:e.rbac,r=d.useCallback(u=>{if(!n){const f=e==null?void 0:e.globalRole;return f==="super_admin"||f==="admin"||f==="manager"}return n.isGlobalAdmin||(e==null?void 0:e.globalRole)==="super_admin"||(e==null?void 0:e.globalRole)==="admin"||(e==null?void 0:e.globalRole)==="manager"?!0:n.moduleAccess[u]===!0},[n,e]),s=d.useCallback(()=>{var f;if(!e)return!1;const u=e.globalRole;return u==="super_admin"||u==="admin"||u==="manager"||n!=null&&n.isGlobalAdmin?!0:((f=n==null?void 0:n.moduleAccess)==null?void 0:f.staff_dashboard)===!0},[e,n]),i=(u,f,h="view")=>{if(!n)return(e==null?void 0:e.globalRole)==="super_admin";if(n.isGlobalAdmin||(e==null?void 0:e.globalRole)==="super_admin")return!0;
402if(!r(u))return!1;const p=`${u}.${f}`,m=n.featurePermissions[p]||"none";return i0[m]>=i0[h]},a=(u,f)=>i(u,f,"view"),l=(u,f)=>i(u,f,"edit"),c=(u,f)=>i(u,f,"admin");return{user:e,isLoading:t,isAuthenticated:!!e,isAdmin:(e==null?void 0:e.globalRole)==="super_admin"||(n==null?void 0:n.isGlobalAdmin)===!0,rbac:n,hasModuleAccess:r,hasFeaturePermission:i,canView:a,canEdit:l,canAdmin:c,groups:(n==null?void 0:n.groups)||[],canAccessStaffDashboard:s}}const ZN=d.createContext(void 0),Wd="reservationCart",Hd={firstName:"",lastName:"",email:"",phone:""};function b5({children:e}){const[t,n]=d.useState([]),[r,s]=d.useState(Hd),[i,a]=d.useState(!1);d.useEffect(()=>{if(typeof window<"u"){try{const x=localStorage.getItem(Wd);if(x){const g=JSON.parse(x);Array.isArray(g)?n(g):g&&typeof g=="object"&&(Array.isArray(g.items)&&n(g.items),g.customerInfo&&s(g.customerInfo))}}catch{}a(!0)}},[]),d.useEffect(()=>{if(typeof window<"u"&&i)try{const x=t.length>0,g=r.firstName||r.lastName||r.email||r.phone;if(x||g){const b={items:t,customerInfo:r};localStorage.setItem(Wd,JSON.stringify(b))}else localStorage.removeItem(Wd)}catch{}},[t,r,i]);const l=d.useCallback(x=>{n(g=>{const b=g.findIndex(y=>y.experienceId===x.experienceId);let v;return b>=0?(v=[...g],v[b]=x):v=[...g,x],v})},[]),c=d.useCallback(x=>{n(g=>g.filter(b=>b.experienceId!==x))},[]),u=d.useCallback(()=>{n([]),s(Hd)},[]),f=d.useCallback(x=>t.some(g=>g.experienceId===x),[t]),h=d.useCallback(x=>t.find(g=>g.experienceId===x),[t]),p=d.useCallback(x=>{s(x)},[]),m=d.useCallback(()=>{s(Hd)},[]);return o.jsx(ZN.Provider,{value:{cartItems:t,addToCart:l,removeFromCart:c,clearCart:u,isInCart:f,getCartItem:h,cartCount:t.length,customerInfo:r,setCustomerInfo:p,resetCustomerInfo:m},children:e})}function fB(){const e=d.useContext(ZN);if(e===void 0)throw new Error("useReservationCart must be used within a ReservationCartProvider");return e}const JN=d.createContext(void 0);function eP({children:e}){const t=Up(),{data:n,isLoading:r,refetch:s}=$e({queryKey:["b2b","me"],queryFn:async()=>{try{const l=await fetch("/api/b2b/me",{credentials:"include"});if(!l.ok){if(l.status===401){if((await fetch("/api/b2b/bridge-login",{method:"POST",credentials:"include"})).ok){const u=await fetch("/api/b2b/me",{credentials:"include"});if(u.ok)return u.json()}return null}if(l.status===404)return null;throw new Error("Failed to fetch user")}return l.json()}catch{return null}},retry:!1,staleTime:5*60*1e3}),i=async()=>{try{await fetch("/api/b2b/logout",{method:"POST",credentials:"include"}),t.setQueryData(["b2b","me"],null),t.clear(),sessionStorage.removeItem("b2b_verified"),localStorage.removeItem("admin_impersonating"),window.location.href="/b2b"}catch(l){console.error("Logout failed:",l)}},a={user:n??null,isLoading:r,isAuthenticated:!!n,isCustomer:(n==null?void 0:n.type)==="customer",isSalesRep:(n==null?void 0:n.type)==="sales_rep",isAdmin:(n==null?void 0:n.type)==="admin",logout:i,refetch:s};return o.jsx(JN.Provider,{value:a,children:e})}function dg(){const e=d.useContext(JN);if(e===void 0)throw new Error("useB2bAuth must be used within B2bAuthProvider");return e}const j5=Object.freeze(Object.defineProperty({__proto__:null,B2bAuthProvider:eP,useB2bAuth:dg},Symbol.toStringTag,{value:"Module"}));function hn({children:e,requireAuth:t=!0,requireCustomer:n=!1,requireAdmin:r=!1,requireSalesRep:s=!1}){const[,i]=Kn(),{user:a,isLoading:l,isCustomer:c,isAdmin:u,isSalesRep:f}=dg();if(d.useEffect(()=>{if(l)return;const p=(u||f)&&localStorage.getItem("admin_impersonating");if(t&&!a){i(r?"/b2b/login/admin":s?"/b2b/login/sales-rep":"/b2b/login/customer");return}if(n&&!c&&!p){i("/b2b/login/customer");return}if(r&&!u&&!f){i("/b2b/login/admin");return}if(s&&!f){i("/b2b/login/sales-rep");return}},[l,a,c,u,f,t,n,r,s,i]),l)return o.jsx("div",{className:"min-h-screen flex items-center justify-center",children:o.jsx(Zp,{className:"h-8 w-8 animate-spin text-primary"})});if(t&&!a)return null;const h=(u||f)&&localStorage.getItem("admin_impersonating");return n&&!c&&!h||r&&!u&&!f||s&&!f?null:o.jsx(o.Fragment,{children:e})}function tP({children:e}){const{user:t,isAuthenticated:n,logout:r}=dg(),[s]=Kn();return o.jsxs("div",{className:"min-h-screen flex flex-col",children:[o.jsx("header",{className:"border-b bg-card",children:o.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:o.jsxs("div",{className:"flex items-center justify-between h-16",children:[o.jsxs(An,{href:"/b2b",className:"flex items-center gap-2 hover-elevate active-elevate-2 roun
402ded-lg px-3 py-2",children:[o.jsx(eo,{className:"h-6 w-6 text-primary"}),o.jsxs("div",{children:[o.jsx("h1",{className:"font-serif text-lg font-semibold",children:"Nashoba Valley Winery"}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"Wholesale Portal"})]})]}),o.jsx("div",{className:"flex items-center gap-2",children:n&&t&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:t.accountName||t.name}),o.jsxs(q,{variant:"outline",size:"sm",onClick:r,"data-testid":"button-logout",children:[o.jsx(J1,{className:"h-4 w-4 mr-2"}),"Logout"]})]})})]})})}),n&&(t==null?void 0:t.type)==="customer"&&o.jsx("nav",{className:"border-b bg-muted/30",children:o.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:o.jsxs("div",{className:"flex gap-1 overflow-x-auto py-2",children:[o.jsx(An,{href:"/b2b/catalog",children:o.jsxs(q,{variant:s==="/b2b/catalog"?"default":"ghost",size:"sm",className:"flex items-center gap-2 whitespace-nowrap","data-testid":"nav-catalog",children:[o.jsx(wy,{className:"h-4 w-4"}),"Catalog"]})}),o.jsx(An,{href:"/b2b/cart",children:o.jsxs(q,{variant:s==="/b2b/cart"?"default":"ghost",size:"sm",className:"flex items-center gap-2 whitespace-nowrap","data-testid":"nav-cart",children:[o.jsx(Ks,{className:"h-4 w-4"}),"Cart"]})}),o.jsx(An,{href:"/b2b/orders",children:o.jsxs(q,{variant:s==="/b2b/orders"?"default":"ghost",size:"sm",className:"flex items-center gap-2 whitespace-nowrap","data-testid":"nav-orders",children:[o.jsx(VA,{className:"h-4 w-4"}),"Orders"]})}),o.jsx(An,{href:"/b2b/reorder",children:o.jsxs(q,{variant:s==="/b2b/reorder"?"default":"ghost",size:"sm",className:"flex items-center gap-2 whitespace-nowrap","data-testid":"nav-reorder",children:[o.jsx(wy,{className:"h-4 w-4"}),"Reorder"]})})]})})}),n&&(t==null?void 0:t.type)==="admin"&&o.jsx("nav",{className:"border-b bg-muted/30",children:o.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:o.jsxs("div",{className:"flex gap-1 overflow-x-auto py-2",children:[o.jsx(An,{href:"/b2b/admin",children:o.jsxs(q,{variant:s==="/b2b/admin"?"default":"ghost",size:"sm",className:"flex items-center gap-2 whitespace-nowrap","data-testid":"nav-admin-dashboard",children:[o.jsx(nj,{className:"h-4 w-4"}),"Dashboard"]})}),o.jsx(An,{href:"/b2b/admin/customer-requests",children:o.jsxs(q,{variant:s==="/b2b/admin/customer-requests"?"default":"ghost",size:"sm",className:"flex items-center gap-2 whitespace-nowrap","data-testid":"nav-admin-customer-requests",children:[o.jsx(YA,{className:"h-4 w-4"}),"Customer Requests"]})})]})})}),n&&(t==null?void 0:t.type)==="sales_rep"&&o.jsx("nav",{className:"border-b bg-muted/30",children:o.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:o.jsxs("div",{className:"flex gap-1 overflow-x-auto py-2",children:[o.jsx(An,{href:"/b2b/commissions",children:o.jsxs(q,{variant:s==="/b2b/commissions"?"default":"ghost",size:"sm",className:"flex items-center gap-2 whitespace-nowrap","data-testid":"nav-sales-rep-commissions",children:[o.jsx(QA,{className:"h-4 w-4"}),"Commissions"]})}),o.jsx(An,{href:"/b2b/customer-requests",children:o.jsxs(q,{variant:s==="/b2b/customer-requests"?"default":"ghost",size:"sm",className:"flex items-center gap-2 whitespace-nowrap","data-testid":"nav-sales-rep-customer-requests",children:[o.jsx(XA,{className:"h-4 w-4"}),"Customer Requests"]})})]})})}),o.jsx("main",{className:"flex-1",children:e}),o.jsx("footer",{className:"border-t bg-muted/30 py-6 mt-auto",children:o.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:o.jsxs("p",{className:"text-center text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Nashoba Valley Winery. All rights reserved."]})})})]})}const S5=Object.freeze(Object.defineProperty({__proto__:null,B2bLayout:tP},Symbol.toStringTag,{value:"Module"})),Kd=768;function C5(){const[e,t]=d.useState(void 0);return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Kd-1}px)`),r=()=>{t(window.innerWidth<Kd)};return n.addEventListener("change",r),t(window.innerWidth<Kd),()=>n.removeEventListener("change",r)},[]),!!e}const E5=wm,hB=bm,N5=jm,nP=d.forwardRef(({className:e,...t},n)=>o.jsx(Ua,{className:K("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",e),...t,ref:n}));nP.displayName=Ua.displayName;const P5=xi("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"}}),rP=d.forwardRef(({side:e="right",className:t,children:n,...r},s)=>o.jsxs(N5,{children:[o.jsx(nP,{}),o.jsxs(Wa,{ref:s,className:K(P5({side:e}),t),...r,children:[n,o.jsxs(qa,{className:"absolute right-4 top-4 roun
402ded-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:[o.jsx(Ke,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));rP.displayName=Wa.displayName;const sP=({className:e,...t})=>o.jsx("div",{className:K("flex flex-col space-y-2 text-center sm:text-left",e),...t});sP.displayName="SheetHeader";const oP=d.forwardRef(({className:e,...t},n)=>o.jsx(Ha,{ref:n,className:K("text-lg font-semibold text-foreground",e),...t}));oP.displayName=Ha.displayName;const iP=d.forwardRef(({className:e,...t},n)=>o.jsx(Ka,{ref:n,className:K("text-sm text-muted-foreground",e),...t}));iP.displayName=Ka.displayName;const T5="sidebar_state",k5=60*60*24*7,R5="16rem",A5="18rem",_5="3rem",D5="b",aP=d.createContext(null);function fg(){const e=d.useContext(aP);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function O5({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:s,children:i,...a}){const l=C5(),[c,u]=d.useState(!1),[f,h]=d.useState(e),p=t??f,m=d.useCallback(v=>{const y=typeof v=="function"?v(p):v;n?n(y):h(y),document.cookie=`${T5}=${y}; path=/; max-age=${k5}`},[n,p]),x=d.useCallback(()=>l?u(v=>!v):m(v=>!v),[l,m,u]);d.useEffect(()=>{const v=y=>{y.key===D5&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),x())};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[x]);const g=p?"expanded":"collapsed",b=d.useMemo(()=>({state:g,open:p,setOpen:m,isMobile:l,openMobile:c,setOpenMobile:u,toggleSidebar:x}),[g,p,m,l,c,u,x]);return o.jsx(aP.Provider,{value:b,children:o.jsx(Hj,{delayDuration:0,children:o.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":R5,"--sidebar-width-icon":_5,...s},className:K("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...a,children:i})})})}function M5({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:s,...i}){const{isMobile:a,state:l,openMobile:c,setOpenMobile:u}=fg();return n==="none"?o.jsx("div",{"data-slot":"sidebar",className:K("bg-sidebar text-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col",r),...i,children:s}):a?o.jsx(E5,{open:c,onOpenChange:u,...i,children:o.jsxs(rP,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-[var(--sidebar-width)] p-0 [&>button]:hidden",style:{"--sidebar-width":A5},side:e,children:[o.jsxs(sP,{className:"sr-only",children:[o.jsx(oP,{children:"Sidebar"}),o.jsx(iP,{children:"Displays the mobile sidebar."})]}),o.jsx("div",{className:"flex h-full w-full flex-col",children:s})]})}):o.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[o.jsx("div",{"data-slot":"sidebar-gap",className:K("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+var(--spacing-4))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),o.jsx("div",{"data-slot":"sidebar-container",className:K("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+var(--spacing-4)+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s})})]})}function L5({className:e,onClick:t,...n}){const{toggleSidebar:r}=fg();return o.jsxs(q,{"data-sidebar":"trigger","data-slot":"sidebar-tr
402igger",variant:"ghost",size:"icon",className:K("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...n,children:[o.jsx(WA,{}),o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function I5({className:e,...t}){return o.jsx("main",{"data-slot":"sidebar-inset",className:K("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function F5({className:e,...t}){return o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:K("flex flex-col gap-2 p-2",e),...t})}function V5({className:e,...t}){return o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:K("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function z5({className:e,...t}){return o.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:K("relative flex w-full min-w-0 flex-col p-2",e),...t})}function $5({className:e,asChild:t=!1,...n}){const r=t?Hp:"div";return o.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:K("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:h-4 [&>svg]:w-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function B5({className:e,...t}){return o.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:K("w-full text-sm",e),...t})}function U5({className:e,...t}){return o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:K("flex w-full min-w-0 flex-col gap-1",e),...t})}function W5({className:e,...t}){return o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:K("group/menu-item relative",e),...t})}const H5=xi("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:w-8! group-data-[collapsible=icon]:h-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function K5({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:s,className:i,...a}){const l=e?Hp:"button",{isMobile:c,state:u}=fg(),f=o.jsx(l,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:K(H5({variant:n,size:r}),i),...a});return s?(typeof s=="string"&&(s={children:s}),o.jsxs(aO,{children:[o.jsx(lO,{asChild:!0,children:f}),o.jsx(Kj,{side:"right",align:"center",hidden:u!=="collapsed"||c,...s})]})):f}const q5=[{title:"Dashboard",url:"/reservations/admin",icon:zA},{title:"Experiences",url:"/reservations/admin/experiences",icon:eo},{title:"Locations",url:"/reservations/admin/locations",icon:BA},{title:"Private Events",url:"/reservations/admin/private-events",icon:TA},{title:"Private Event Registration",url:"/reservations/admin/event-registration",icon:kA},{title:"Special Dates",url:"/reservations/admin/special-dates",icon:RA},{title:"Recurring Holidays",url:"/reservations/admin/holidays",icon:PA},{title:"Calendar",url:"/reservations/admin/calendar",icon:NA},{title:"Reservations",url:"/reservations/admin/reservations",icon:AA},{title:"Knoll Table Tracker",url:"/knoll-tracker",icon:$A},{title:"Host/Information Center",url:"/host",icon:jy},{title:"Customers",url:"/reservations/admin/customers",icon:jy},{title:"Clubs",url:"/reservations/admin/clubs",icon:LA},{title:"Settings",url:"/reservations/admin/settings",icon:qA},{title:"Documentation",url:"/reservations/admin/documentation",icon:EA}];function G5(){const[e]=Kn();return o.jsxs(M5,{children:[o.jsx(V5,{children:o.jsxs(z5,{children:[o.jsx($5,{className:"text-lg font-serif font-semibold px-4 py-4",children:"Nashoba Valley"}),o.jsx(B5,{children:o.jsx(U5,{children:q5.map(t=>o.jsx(W5,{children:o.jsx(K5,{asChild:!0,isActive:e===t.url,"data-testid":`link-${t.title.toLowerCase().replace(/\s+/g,"-")}`,children:o.jsxs(An,{href:t.url,children:[o.jsx(t.icon,{className:"w-4 h-4"}),o.jsx("span",{children:t.title})]})})},t.title))})})]})}),o.jsx(F5,{className:"p-4",children:o.jsx(q,{variant:"ghost",className:"w-full justify-start",asChild:!0,"data-testid":"button-logout",children:o.jsxs("a",{href:"/api/logout",children:[o.jsx(J1,{className:"w-4 h-4 mr-2"}),"Logout"]})})})]})}function et({children:e}){const{isAuthenticated:t,isLoading:n,hasModuleAccess:r}=he(),s=d.useRef(!1),[,i]=Kn(),a=r("reservations");return d.useEffect(()=>{!n&&!t&&!s.current&&(s.current=!0,window.location.href="/api/login")},[t,n]),d.useEffect(()=>{!n&&t&&!a&&!s.current&&(s.current=!0,i("/"))},[t,n,a,i]),n?o.jsx("div",{className:"flex items-center justify-center h-screen","data-testid":"auth-loading",children:o.jsx(Zp,{className:"w-8 h-8 animate-spin text-primary"})}):t?a?o.jsxs(O5,{children:[o.jsx(G5,{}),o.jsxs(I5,{children:[o.jsx("header",{className:"flex h-14 items-center gap-4 border-b px-6",children:o.jsx(L5,{"data-testid":"button-sidebar-toggle"})}),o.jsx("main",{className:"flex-1 overflow-auto p-6",children:e})]})]}):o.jsxs("div",{className:"flex flex-col items-center justify-center h-screen gap-4","data-testid":"no-module-access",children:[o.jsx("p",{className:"text-muted-foreground",children:"You don't have access to the Reservations module."}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"Redirecting..."})]}):null}class Q5 extends d.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error(`[${this.props.moduleName||"Module"}] Render error:`,t,n.componentStack)}render(){var t;return this.state.hasError?o.jsxs("div",{className:"flex flex-col items-center justify-center h-full min-h-[60vh] gap-4 p-8 text-center",children:[o.jsx(em,{className:"h-10 w-10 text-destructive opacity-70"}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-lg",children:"Something went wrong"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1 max-w-sm",children:((t=this.state.error)==null?void 0:t.message)||"An unexpected error occurred in this module."})]}),o.jsxs(q,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:[o.jsx(ej,{className:"h-4 w-4 mr-2"}),"Try Again"]})]}):this.props.children}}const lP=d.lazy(()=>M(()=>import("./AdminDashboard-DRTwoK4u.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49]))),Y5=d.lazy(()=>M(()=>import("./AdminHub-BDlzcooj.js"),__vite__mapDeps([50,19,11,51,40,52,20,53,29,54,39,55,56,57,33,58,59,60,61,62,63,64]))),X5=d.lazy(()=>M(()=>import("./DatabaseSync-DQC6TVri.js"),__vite__mapDeps([65,26,11,66,67,19,8,68,48,43,20,29,69,24,12,52,32,13,57,63,70]))),Z5=d.lazy(()=>M(()=>import("./ModuleDirectory-D-ZsWx-q.js"),__vite__mapDeps([71,20,33,46,10,55,57,58,59,60,61]))),J5=d.lazy(()=>M(()=>import("./AccessControl-DWB3kuxC.js"),__vite__mapDeps([72,8,11,1,20,73,74,75]))),ez=d.lazy(()=>M(()=>import("./ModuleManagement-DaRwRTI1.js"),__vite__mapDeps([76,77,2,78,6,68,79,52,5,80,81,53,82,83,84,85,86,87,88,55,41,64,89,90,49,32,91,44,92,93,94,60,63,95,56,96,97,98,34,99,48,24,100,46,30,101,59,102,103,104,105,47,33,69,38,28,42,14,35,106,107,108,109,57,110,
402111,15,43,112,61,113,3,13,114,39,115,75,116,117,118,54,119,120,121,122,29,123,124,125,126,127,128,129,45,130,70,131,132,73,133,134,135,136,25,23,137,138,7,10,62,139,140,141,142,21,20,143,144,36,4,37,145,146,147,148,149,150,17,151,152,153,154,12,74,155,156,157,58,158,1])));d.lazy(()=>M(()=>import("./ComingSoon-B9RDB8J0.js"),__vite__mapDeps([159,98])).then(e=>({default:e.ProceduresComingSoon})));const tz=d.lazy(()=>M(()=>import("./ComingSoon-B9RDB8J0.js"),__vite__mapDeps([159,98])).then(e=>({default:e.AppleGameComingSoon}))),nz=d.lazy(()=>M(()=>import("./ResetPassword-fQjVV0Zs.js"),__vite__mapDeps([160,115]))),rz=d.lazy(()=>M(()=>import("./FutureConcepts-C0O1f5LK.js"),__vite__mapDeps([161,54,73,138,56]))),sz=d.lazy(()=>M(()=>import("./EnhancementRequests-BnFloDxX.js"),__vite__mapDeps([162,133,141,91,56,58]))),oz=d.lazy(()=>M(()=>import("./CompanyInfo-BzsD9-PO.js"),__vite__mapDeps([163,8,55,10,135,109,101,46,56]))),iz=d.lazy(()=>M(()=>import("./MeetingNotes-CrufsTBU.js"),__vite__mapDeps([164,19,129,37,91,56,121,33]))),az=d.lazy(()=>M(()=>import("./UnsubscribePage-CNEhUZUQ.js"),__vite__mapDeps([165,32,124]))),lz=d.lazy(()=>M(()=>import("./LmsAdminDashboard-Cta3XLlx.js"),__vite__mapDeps([166,11,8,19,167,40,116,56,33,4,15,13,154,57,90,35,48,120,80,32,122,92]))),cz=d.lazy(()=>M(()=>import("./LmsLearnerPortal-C_RotwXd.js"),__vite__mapDeps([168,167,11,19,32,80,56,57,123,116,136,52,33]))),uz=d.lazy(()=>M(()=>import("./ExternalTrainingPage-BvOmptQM.js"),__vite__mapDeps([169,167,33,57,56,170,157,132,136,37]))),dz=d.lazy(()=>M(()=>import("./TrainingPortal-CWheKSQW.js"),__vite__mapDeps([171,167,19,57,123,32,56,80,33,52]))),fz=d.lazy(()=>M(()=>import("./ComplianceAdminDashboard-CAo7ob0_.js"),__vite__mapDeps([172,11,19,40,51,62,33,56,32,55,42,46,100,4,36,34,2,173,170,174,175,95,12,30,131,24,13,176,177,178,179]))),hz=d.lazy(()=>M(()=>import("./ComplianceComplete-DExaTGUD.js"),__vite__mapDeps([180,56,170]))),pz=d.lazy(()=>M(()=>import("./DepartmentCalendarDashboard-CrDJAWjr.js"),__vite__mapDeps([181,11,19,51,116,56,55,32,100,4,34,2,133,53,170,173,174,175]))),mz=d.lazy(()=>M(()=>import("./DailyReportsAdminDashboard-BxwTegzp.js"),__vite__mapDeps([182,11,183,67,19,8,26,40,184,81,32,10,170,51,33,56,47,41,4,42,100,141,7,23,34,46,24,5,143,77,59,58,6,176,177,178,179]))),gz=d.lazy(()=>M(()=>import("./PublicDailyReportForm--_sUOZBD.js"),__vite__mapDeps([185,184,19,81,32,10,170,55,7,128,141,60,146,121,130]))),vz=d.lazy(()=>M(()=>import("./StaffReportingDashboard-BzaeM7V8.js"),__vite__mapDeps([186,19,11,182,183,67,8,26,40,184,81,32,10,170,51,33,56,47,41,4,42,100,141,7,23,34,46,24,5,143,77,59,58,6,176,177,178,179,187,22,25,63,133,188]))),yz=d.lazy(()=>M(()=>import("./Accounting-C9NP22ex.js"),__vite__mapDeps([189,19,11,113,137,33,12,1,64,55,133,89]))),xz=d.lazy(()=>M(()=>import("./ProceduresAdminDashboard-BKBlS5yW.js"),__vite__mapDeps([187,11,19,22,23,34,46,24,25,33,63,133]))),wz=d.lazy(()=>M(()=>import("./ProcedureTemplateEditor-Cim3g8Re.js"),__vite__mapDeps([188,8,10]))),bz=d.lazy(()=>M(()=>import("./ProceduresUsers-B2xG854f.js"),__vite__mapDeps([190,8,1,11,33,63,75,133,170]))),jz=d.lazy(()=>M(()=>import("./ProceduresSubmissions-CpUn1pVx.js"),__vite__mapDeps([191,1,11,19,192,193,170,194,175,179,178,195,9,33,63,56,32]))),Sz=d.lazy(()=>M(()=>import("./PublicProceduresForm-B8EiwGyP.js"),__vite__mapDeps([196,167,32,60,52,10,147,146]))),Cz=d.lazy(()=>M(()=>import("./StaffProceduresForm-DNfwWtzo.js"),__vite__mapDeps([197,167,60,10,32,147,146]))),Ez=d.lazy(()=>M(()=>import("./StaffPortal-OdIAKLnG.js"),__vite__mapDeps([198,33,60,25,58,21,123,56,170]))),Nz=d.lazy(()=>M(()=>import("./StaffWorkOrderForm-BD2Iii95.js"),__vite__mapDeps([199,58]))),Pz=d.lazy(()=>M(()=>import("./MaintenanceDashboard-fU25fl9l.js"),__vite__mapDeps([200,11,1,85,90,63,119,46,58,56,55,74,4,170]))),Tz=d.lazy(()=>M(()=>import("./TechnicianWorkOrders-wHWQPLy4.js"),__vite__mapDeps([201,11,58,33,128,136,56,170]))),kz=d.lazy(()=>M(()=>import("./ContractsDashboard-BD6Gji3h.js"),__vite__mapDeps([202,16,33,32,55,52,12,24,133,18]))),Rz=d.lazy(()=>M(()=>import("./SpotInventoryAdminDashboard-B8TBrqXr.js"),__vite__mapDeps([203,11,19,1,51,204,111,63,105,100,4,13,23,24,170]))),Az=d.lazy(()=>M(()=>import("./SpotInventoryStaffApp-DJAzlDon.js"),__vite__mapDeps([205,19,139,111,89,52]))),_z=d.lazy(()=>M(()=>import("./StaffDashboard-DhpA-gY1.js"),__vite__mapDeps([206,207,103,60,62,122,64,46,208,52]))),Dz=d.lazy(()=>M(()=>import("./StaffDashboardAdmin-B1ZqD6Ae.js"),__vite__mapDeps([209,207,103,60,62,122,64,46,208,52]))),Oz=d.lazy(()=>M(()=>import("./StaffManagementSegmentPage-CxUor0Rr.js"),__vite__mapDeps([210,207,103,60,62,122,64,46,98,58]))),Mz=d.lazy(()=>M(()=>import("./StaffDirectoryPage-B-VmQPE4.js"),__vite__mapDeps([211,207,103,60,62,122,64,46,11,155,88,10,35,29,63,57,20,56,51,1,69,141,49,100]))),Lz=d.lazy(()=>M(()=>import("./SupportAdminDashboard-C47CoXUT.js"),__vite__mapDeps([212,51,9,44,90,14,84,2,131,24,104,141,133,128,7,102,33,38,91,32,81,56,176,177,170,178,179]))),Iz=d.lazy(()=>M(()=>import("./SupportKnowledgeBase-DQ2ARyA1.js"),__vite__mapDeps([213,11,8,33,14,109,73,170]))),Fz=d.lazy(()=>M(()=>import("./SupportAnalytics-CFoQICsV.js"),__vite__mapDeps([214,167,11,84,33,150,158,56,90,128,152,170]))),Vz=d.lazy(()=>M(()=>import("./SocialReviews-B3rRTY9N.js"),__vite__mapDeps([215,11,128,55,12,109,150,46,34,176,177,170,178,179]))),zz=d.lazy(()=>M(()=>
402import("./SupportWidget-DMyzY0nx.js"),__vite__mapDeps([216,128,84,150,141,56,44,170]))),$z=d.lazy(()=>M(()=>import("./SupportContactForm-DI1A1IDe.js"),__vite__mapDeps([217,32,128]))),Bz=d.lazy(()=>M(()=>import("./FAQPage-zr8z6WW-.js"),__vite__mapDeps([218,66,67,150]))),Uz=d.lazy(()=>M(()=>import("./FAQWidgetPage-A9EmRDhn.js"),__vite__mapDeps([219,44]))),Wz=d.lazy(()=>M(()=>import("./SupportAgentsPage-B5wBZQPB.js"),__vite__mapDeps([220,8,19,20,30,133,32]))),Hz=d.lazy(()=>M(()=>import("./SupportAgentTicketPage-bEM2c_fh.js"),__vite__mapDeps([221,32,141,81,128,56,20,131,24,34,102,33,38,176,177,170,178,179]))),Kz=d.lazy(()=>M(()=>import("./SupportCategoriesPage-Dtdq9vsp.js"),__vite__mapDeps([222,8,14,73])));d.lazy(()=>M(()=>import("./RccDashboard-LRfoy8hO.js"),__vite__mapDeps([223,11,19,90,145,143,149,127,54,87,24,12,224,170,52,152,81,96,175])));d.lazy(()=>M(()=>import("./BoomerangDashboard-D143ECDp.js"),__vite__mapDeps([225,11,149,80,158,142,90,107,136,42,135,32,145,56,152,155,21])));const qz=d.lazy(()=>M(()=>import("./CommandCenter-COM9LwBh.js"),__vite__mapDeps([226,19,167,158,149,32,128,141,87,56,90,93,135,227,228,156,82,9,154,10,44,45,25,30,112,34,46,133,229,15,140,142,97,54,33,127,170,193,177,179,195,52,121,152,144,96,80,119,81,42,21,99,39,223,11,145,143,24,12,224,175,225,107,136,155,117,138,106]))),Gz=d.lazy(()=>M(()=>import("./ToastConnect-B9jA3DPx.js"),__vite__mapDeps([229,9,228,156,82,25,15,154,140,45,142,97,54,33,34,46,30]))),Qz=d.lazy(()=>M(()=>import("./CellarTraks-BuXj9EN8.js"),__vite__mapDeps([230,19,90,24,10,32,79,108,11,1,33,4,8,39,21,137,183,67,110,48,133,145,143,12,42,30,5,119,117,59,56]))),a0=d.lazy(()=>M(()=>import("./NashobatvDisplay-DMaJhwBs.js"),__vite__mapDeps([231,56,53,70,89,110,44,96,144,118,156,108]))),Yz=d.lazy(()=>M(()=>import("./SpecialEventsPublic-BxCl0Ig9.js"),__vite__mapDeps([232,233,97,34,42,56,17]))),Xz=d.lazy(()=>M(()=>import("./MediaCenter-BHoHfpJe.js"),__vite__mapDeps([234,8,11,19,167,13,53,89,56,45,4,12,46,39,15,227,228,156,82,9,154,10,44,25,30,112,34,133,127,170,224,70,33,52,32,120,135,109,21,83,97]))),Zz=d.lazy(()=>M(()=>import("./MediaLibraryPage-JtjSX8kL.js"),__vite__mapDeps([235,11,31,26,12,32,4,33,34,35,36,37,13,38,114,43]))),Jz=d.lazy(()=>M(()=>import("./MusicCalendar-BANDKC6V.js"),__vite__mapDeps([236,233,70,97,34,32,46,141,56,109]))),e6=d.lazy(()=>M(()=>import("./FoodTruckCalendar-6OQJ_CmS.js"),__vite__mapDeps([237,233,156,97,34,21,33,46,32,141,56,109]))),t6=d.lazy(()=>M(()=>import("./landing-DIkX95aD.js"),__vite__mapDeps([238,239,119,17,46]))),n6=d.lazy(()=>M(()=>import("./location-landing-CxWVlBFC.js"),__vite__mapDeps([240,238,239,119,17,46]))),r6=d.lazy(()=>M(()=>import("./booking-BMflT0nK.js"),__vite__mapDeps([241,16,192,193,170,194,175,179,178,195,46,56,18]))),s6=d.lazy(()=>M(()=>import("./cart-DLWBg_wf.js"),__vite__mapDeps([242,99,56,170,224]))),o6=d.lazy(()=>M(()=>import("./checkout-CL_MTHl8.js"),[])),i6=d.lazy(()=>M(()=>import("./confirmation-Dyhtsyyt.js"),__vite__mapDeps([243,56,135,170]))),a6=d.lazy(()=>M(()=>import("./confirm-Bce6JTCo.js"),__vite__mapDeps([244,239,32,56,170]))),l6=d.lazy(()=>M(()=>import("./admin-home-CLlDMkWj.js"),__vite__mapDeps([245,46,170]))),c6=d.lazy(()=>M(()=>import("./admin-calendar-vHcjIXw9.js"),__vite__mapDeps([246,192,193,170,194,175,179,178,195,56,135,224]))),u6=d.lazy(()=>M(()=>import("./admin-experiences-BmWgtbnS.js"),__vite__mapDeps([247,16,248,8,249,18,250,19,13,239,46,30,133,34,134,12]))),d6=d.lazy(()=>M(()=>import("./admin-reservations-DwvhtHFC.js"),__vite__mapDeps([251,248,1,192,193,170,194,175,179,178,195,9,16,249,18,133,148,56,5,6,32]))),cP=d.lazy(()=>M(()=>import("./floor-plan-CotQcplH.js"),__vite__mapDeps([252,126,170]))),f6=d.lazy(()=>M(()=>import("./admin-locations-DWudJtzg.js"),__vite__mapDeps([253,16,248,239,249,18,46,30,52,34]))),h6=d.lazy(()=>M(()=>import("./admin-location-detail-2Vw6DsVC.js"),__vite__mapDeps([254,16,248,11,239,249,18,46,56,106,151,24,47,12,133,136,132,17]))),p6=d.lazy(()=>M(()=>import("./admin-customers-BIM3jmbp.js"),__vite__mapDeps([255,1,16,249,18,133,170]))),m6=d.lazy(()=>M(()=>import("./admin-customer-detail-Cza0dQR9.js"),__vite__mapDeps([256,11,1,16,249,18,133,135,56,170]))),g6=d.lazy(()=>M(()=>import("./admin-clubs-DnwncNtD.js"),__vite__mapDeps([257,16,248,8,183,67,1,249,18,133,134]))),v6=d.lazy(()=>M(()=>import("./admin-special-dates-DxCtDTTn.js"),__vite__mapDeps([258,16,8,249,18,248,192,193,170,194,175,179,178,195,9,56,133]))),y6=d.lazy(()=>M(()=>import("./admin-holidays-bV6ffle2.js"),__vite__mapDeps([259,8,249,18]))),x6=d.lazy(()=>M(()=>import("./admin-private-events-Bi1vFir3.js"),__vite__mapDeps([260,16,248,249,18,170,56,135,133,175]))),w6=d.lazy(()=>M(()=>import("./admin-event-registration-DIJ2dErD.js"),__vite__mapDeps([261,11,19,1,33,97,115,133,25,34,5,6,170,224]))),b6=d.lazy(()=>M(()=>import("./EventRegistrationPortal-DQOhYCWH.js"),__vite__mapDeps([262,19,115,56,
402133,170,224]))),j6=d.lazy(()=>M(()=>import("./EventCalendar-DxHH9XW1.js"),__vite__mapDeps([263,19,170,224]))),S6=d.lazy(()=>M(()=>import("./admin-flow-settings-C6sXafgx.js"),__vite__mapDeps([264,16,248,11,249,18,56,106,151,133]))),C6=d.lazy(()=>M(()=>import("./admin-settings-CTBNzaPK.js"),__vite__mapDeps([265,16,248,11,249,18,250,19,13,55,119,46,133]))),E6=d.lazy(()=>M(()=>import("./admin-documentation-C4fDaXLo.js"),__vite__mapDeps([266,11,26,148,46,56,81,94,99,13,119,20])));d.lazy(()=>M(()=>Promise.resolve().then(()=>j5),void 0).then(e=>({default:e.B2bAuthProvider})));d.lazy(()=>M(()=>Promise.resolve().then(()=>S5),void 0).then(e=>({default:e.B2bLayout})));const N6=d.lazy(()=>M(()=>import("./PricingPage-C-fjJcht.js"),__vite__mapDeps([267,11,268,19,152,108,86,20]))),P6=d.lazy(()=>M(()=>import("./PricingSheetPage-D33JbVqF.js"),__vite__mapDeps([269,19,1,11]))),T6=d.lazy(()=>M(()=>import("./RegistrationPage-BcoMIbXt.js"),__vite__mapDeps([270,16,271,145,33,18]))),k6=d.lazy(()=>M(()=>import("./ApplicationThankYouPage-CqYVtfdq.js"),__vite__mapDeps([272,271,32,56]))),R6=d.lazy(()=>M(()=>import("./LoginPage-5k_e05gV.js"),__vite__mapDeps([273,16,123,30,18]))),A6=d.lazy(()=>M(()=>import("./ForgotPasswordPage-Dmxyt7PX.js"),__vite__mapDeps([274,16,32,18]))),_6=d.lazy(()=>M(()=>import("./ResetPasswordPage-DlFTcuy5.js"),__vite__mapDeps([275,16,32,75,30,18]))),D6=d.lazy(()=>M(()=>import("./SetupPage-jApAtANn.js"),__vite__mapDeps([276,26,52]))),O6=d.lazy(()=>M(()=>import("./CatalogPage-B7IlMX4k.js"),__vite__mapDeps([277,268,19,26,74,122,111]))),M6=d.lazy(()=>M(()=>import("./CartPage-Bd2ruzTZ.js"),__vite__mapDeps([278,268,26,143,74]))),L6=d.lazy(()=>M(()=>import("./CheckoutPage-SQLIo_i6.js"),__vite__mapDeps([279,268,280,26,74]))),I6=d.lazy(()=>M(()=>import("./OrdersPage-KUXTZ8uF.js"),__vite__mapDeps([281,280,19,153,32,33,56,170]))),F6=d.lazy(()=>M(()=>import("./ReorderPage-CN1qVjSI.js"),__vite__mapDeps([282,268,19]))),V6=d.lazy(()=>M(()=>import("./AdminDashboard-DQjNkuPk.js"),__vite__mapDeps([283,268,19,8,16,51,11,26,1,116,52,133,64,27,28,13,4,73,29,39,158,56,32,33,34,170,22,23,24,25,66,67,20,10,63,127,149,137,74,167,153,99,40,90,78,224,174,195,194,175,141,100,12,41,135,18]))),z6=d.lazy(()=>M(()=>import("./WhereToBuyPage-BkEyOPs0.js"),__vite__mapDeps([284,19,145,156,125,135,109]))),$6=d.lazy(()=>M(()=>import("./SalesRepDashboard-DU6o0LUc.js"),__vite__mapDeps([285,19,11,167,90,52,170]))),B6=d.lazy(()=>M(()=>import("./CustomerRequestsPage-CdrEtz21.js"),__vite__mapDeps([286,19,73,32,56,170]))),U6=d.lazy(()=>M(()=>import("./CustomerRequestsAdminPage-DmDO1_2U.js"),__vite__mapDeps([287,19,135,41,32,33,56,170]))),W6=d.lazy(()=>M(()=>import("./CustomerDataPage--aKF-cTo.js"),__vite__mapDeps([288,26,24,12]))),H6=d.lazy(()=>M(()=>import("./TierAgreementPage-CCR2HmK0.js"),__vite__mapDeps([289,271,32,170]))),K6=d.lazy(()=>M(()=>import("./ViewSignedAgreementPage-CQjfJNvK.js"),__vite__mapDeps([290,33,41,135,32,170]))),q6=d.lazy(()=>M(()=>import("./OrderDeliveryDatePage-BrBgoVtx.js"),__vite__mapDeps([291,192,193,170,194,175,179,178,195,9,32]))),G6=d.lazy(()=>M(()=>import("./OrderApprovalPage-B_THj7A0.js"),__vite__mapDeps([292,32,33,153,170]))),Q6=d.lazy(()=>M(()=>import("./OrderDeliveryConfirmPage-CRD4sqSt.js"),__vite__mapDeps([293,32,153,170])));function R(){return o.jsx("div",{className:"flex items-center justify-center h-screen",children:o.jsx(Zp,{className:"h-8 w-8 animate-spin text-primary"})})}function Y6(){const[,e]=Kn(),{isLoading:t,isAdmin:n}=he();return t?o.jsx(R,{}):n?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(lP,{onBackToGuest:()=>e("/tasting")})}):o.jsx(ue,{to:"/"})}function X6(){const[,e]=Kn(),{isLoading:t,isAdmin:n}=he();return t?o.jsx(R,{}):n?o.jsxs("div",{className:"min-h-screen bg-background",children:[o.jsx("header",{className:"border-b p-4",children:o.jsx(q,{variant:"outline",onClick:()=>e("/admin"),children:"Back to Admin"})}),o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(X5,{})})]}):o.jsx(ue,{to:"/"})}function Z6(){const[,e]=Kn(),{isLoading:t,user:n,rbac:r,isAdmin:s}=he();return t?o.jsx(R,{}):n?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Y5,{onBackToGuest:()=>e("/tasting"),user:n,rbac:r,isAdmin:s})}):o.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:o.jsxs("div",{className:"max-w-md w-full mx-4",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h1",{className:"text-3xl font-serif font-semibold mb-2",children:"Nashoba Operations Hub"}),o.jsx("p",{className:"text-muted-foreground",children:"Sign in to access the operations platform"})]}),o.jsxs("div",{className:"bg-card border rounded-lg p-6 space-y-4",children:[o.jsx(q,{className:"w-full",onClick:()=>window.location.href="/api/login?returnTo=/","data-testid":"button-login",children:"Sign in with Platform Account"}),o.jsx("p",{className:"text-xs text-center text-muted-foreground",children:"You must have an authorized platform account to access the Hub."})]})]})})}function J6(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(lz,{})}):o.jsx(ue,{to:"/"})}function e$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(cz,{})})}function t$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(uz,{})})}function n$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(dz,{})})}function r$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Z5,{})}):o.jsx(ue,{to:"/"})}function s$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(J5,{})}):o.jsx(ue,{to:"/"})}function o$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(ez,{})}):o.jsx(ue,{to:"/"})}function i$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(xz,{})})}function l0(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(wz,{})})}function a$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(bz,{})})}function l$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(jz,{})})}function c$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Sz,{})})}function u$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Cz,{})})}function d$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Ez,{})})}function f$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Nz,{})})}function c0(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Lz,{})}):o.jsx(ue,{to:"/"})}function h$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Iz,{})}):o.jsx(ue,{to:"/"})}function p$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(zz,{})})}function m$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx($z,{})})}function g$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Bz,{})})}function v$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Uz,{})})}function y$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Fz,{})}):o.jsx(ue,{to:"/"})}function x$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Vz,{})}):o.jsx(ue,{to:"/"})}function w$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Wz,{})}):o.jsx(ue,{to:"/"})}function b$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Kz,{})}):o.jsx(ue,{to:"/"})}function j$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Hz,{})})}function S$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(Q5,{moduleName:"Command Center",children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(qz,{})})}):o.jsx(ue,{to:"/"})}function C$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Qz,{})}):o.jsx(ue,{to:"/"})}function E$(){const{isLoading:e,isAdmin:t,hasModuleAccess:n}=he();return e?o.jsx(R,{}):!t&&!n("media_center")?o.jsx(ue,{to:"/"}):o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Xz,{})})}function N$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Zz,{})}):o.jsx(ue,{to:"/"})}function P$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Jz,{})})}function T$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(e6,{})})}function k$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Yz,{})})}function R$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Gz,{})}):o.jsx(ue,{to:"/"})}function u0(){return o.jsx(ue,{to:"/command-center"})}function d0(){return o.jsx(ue,{to:"/command-center"})}function A$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(tz,{})})}function _$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(fz,{})}):o.jsx(ue,{to:"/"})}function D$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(hz,{})})}function f0(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(pz,{})}):o.jsx(ue,{to:"/"})}function h0(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(kz,{})}):o.jsx(ue,{to:"/"})}function p0(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Pz,{})}):o.jsx(ue,{to:"/"})}function O$(){const{isLoading:e,isAuthenticated:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Tz,{})}):o.jsx(ue,{to:"/"})}function m0(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Rz,{})}):o.jsx(ue,{to:"/"})}function M$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Az,{})})}function L$(){const{isLoading:e,isAuthenticated:t,canAccessStaffDashboard:n}=he();return e?o.jsx(R,{}):t?n()?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(_z,{})}):o.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4 p-8 text-center bg-background",children:[o.jsx("p",{className:"font-semibold text-lg",children:"Staff Management access required"}),o.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:"Ask an administrator to grant the Staff Management module in Access Control, or use an account with Manager, Admin, or Super Admin platform role."}),o.jsx(q,{variant:"outline",type:"button",onClick:()=>{window.location.href="/"},"data-testid":"staff-dashboard-access-denied-home",children:"Back to hub"})]}):(window.location.href="/api/login?returnTo=/staff-dashboard",o.jsx(R,{}))}function I$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Dz,{})}):o.jsx(ue,{to:"/"})}function F$(){const{isLoading:e,isAuthenticated:t,canAccessStaffDashboard:n}=he();if(e)return o.jsx(R,{});if(!t){const r=`${window.location.pathname}${window.location.search}`;return window.location.href=`/api/login?returnTo=${encodeURIComponent(r)}`,o.jsx(R,{})}return n()?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Mz,{})}):o.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4 p-8 text-center bg-background",children:[o.jsx("p",{className:"font-semibold text-lg",children:"Staff Management access required"}),o.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:"Ask an administrator to grant the Staff Management module in Access Control, or use an account with Manager, Admin, or Super Admin platform role."}),o.jsx(q,{variant:"outline",type:"button",onClick:()=>{window.location.href="/"},"data-testid":"staff-dashboard-access-denied-home",children:"Back to hub"})]})}function V$(){const{isLoading:e,isAuthenticated:t,canAccessStaffDashboard:n}=he();if(e)return o.jsx(R,{});if(!t){const r=`${window.location.pathname}${window.location.search}`;return window.location.href=`/api/login?returnTo=${encodeURIComponent(r)}`,o.jsx(R,{})}return n()?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Oz,{})}):o.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center gap-4 p-8 text-center bg-background",children:[o.jsx("p",{className:"font-semibold text-lg",children:"Staff Management access required"}),o.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:"Ask an administrator to grant the Staff Management module in Access Control, or use an account with Manager, Admin, or Super Admin platform role."}),o.jsx(q,{variant:"outline",type:"button",onClick:()=>{window.location.href="/"},"data-testid":"staff-dashboard-access-denied-home",children:"Back to hub"})]})}function g0(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(mz,{})}):o.jsx(ue,{to:"/"})}function qd(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(vz,{})}):o.jsx(ue,{to:"/"})}function v0(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(yz,{})}):o.jsx(ue,{to:"/"})}function y0(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(gz,{})})}function z$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(nz,{})})}function $$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(az,{})})}function B$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(rz,{})}):o.jsx(ue,{to:"/"})}function U$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(sz,{})}):o.jsx(ue,{to:"/"})}function x0(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(iz,{})}):o.jsx(ue,{to:"/"})}function W$(){const{isLoading:e,isAdmin:t}=he();return e?o.jsx(R,{}):t?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(oz,{})}):o.jsx(ue,{to:"/"})}function H$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(t6,{})})}function K$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(n6,{})})}function Gd(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(r6,{})})}function q$(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(s6,{})})}function w0(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(o6,{})})}function b0(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(i6,{})})}function Qd(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(a6,{})})}function G$(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(l6,{})})})}function Q$(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(c6,{})})})}function Y$(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(u6,{})})})}
402function X$(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(d6,{})})})}function j0(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(cP,{})})})}function S0(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(cP,{hostStation:!0})})})}function Z$(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(f6,{})})})}function J$(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(h6,{})})})}function e8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(p6,{})})})}function t8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(m6,{})})})}function n8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(g6,{})})})}function r8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(v6,{})})})}function s8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(y6,{})})})}function o8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(x6,{})})})}function i8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(w6,{})})})}function a8(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(b6,{})})}function l8(){return o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(j6,{})})}function c8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(S6,{})})})}function u8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(C6,{})})})}function d8(){return o.jsx(et,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(E6,{})})})}function f8(){return o.jsx(eP,{children:o.jsx(tP,{children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsxs(o1,{children:[o.jsx(A,{path:"/b2b",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(N6,{})})}),o.jsx(A,{path:"/b2b/pricing-sheet",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(P6,{})})}),o.jsx(A,{path:"/b2b/where-to-buy",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(z6,{})})}),o.jsx(A,{path:"/b2b/register",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(T6,{})})}),o.jsx(A,{path:"/b2b/application-submitted",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(k6,{})})}),o.jsx(A,{path:"/b2b/login/:role",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(R6,{})})}),o.jsx(A,{path:"/b2b/forgot-password",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(A6,{})})}),o.jsx(A,{path:"/b2b/reset-password",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(_6,{})})}),o.jsx(A,{path:"/b2b/setup",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(D6,{})})}),o.jsx(A,{path:"/b2b/tier-agreement/:token",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(H6,{})})}),o.jsx(A,{path:"/b2b/order-delivery/:token",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(q6,{})})}),o.jsx(A,{path:"/b2b/order-approval/:token",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(G6,{})})}),o.jsx(A,{path:"/b2b/order-confirm-delivery/:token",component:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(Q6,{})})}),o.jsx(A,{path:"/b2b/catalog",children:o.jsx(hn,{requireCustomer:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(O6,{})})})}),o.jsx(A,{path:"/b2b/cart",children:o.jsx(hn,{requireCustomer:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(M6,{})})})}),o.jsx(A,{path:"/b2b/checkout",children:o.jsx(hn,{requireCustomer:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(L6,{})})})}),o.jsx(A,{path:"/b2b/orders",children:o.jsx(hn,{requireCustomer:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(I6,{})})})}),o.jsx(A,{path:"/b2b/reorder",children:o.jsx(hn,{requireCustomer:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(F6,{})})})}),o.jsx(A,{path:"/b2b/customer-data",children:o.jsx(hn,{requireCustomer:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(W6,{})})})}),o.jsx(A,{path:"/b2b/admin",children:o.jsx(hn,{requireAdmin:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(V6,{})})})}),o.jsx(A,{path:"/b2b/admin/agreements/:agreementId",children:o.jsx(hn,{requireAdmin:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(K6,{})})})}),o.jsx(A,{path:"/b2b/admin/customer-requests",children:o.jsx(hn,{requireAdmin:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(U6,{})})})}),o.jsx(A,{path:"/b2b/commissions",children:o.jsx(hn,{requireSalesRep:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx($6,{})})})}),o.jsx(A,{path:"/b2b/customer-requests",children:o.jsx(hn,{requireSalesRep:!0,children:o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(B6,{})})})}),o.jsx(A,{component:Gj})]})})})})}function h8(){const[e,t]=d.useState(!1),{user:n,isAdmin:r}=he(),[s]=Kn();return e&&r?o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(lP,{onBackToGuest:()=>t(!1)})}):s.startsWith("/b2b")?o.jsx(f8,{}):o.jsx("div",{className:"relative",children:o.jsxs(o1,{children:[o.jsx(A,{path:"/",component:Z6}),o.jsx(A,{path:"/tasting",component:w5}),o.jsx(A,{path:"/display/:slug",children:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(a0,{})})}),o.jsx(A,{path:"/display",children:()=>o.jsx(d.Suspense,{fallback:o.jsx(R,{}),children:o.jsx(a0,{})})}),o.jsx(A,{path:"/daily-report/:code",component:y0}),o.jsx(A,{path:"/daily-report",component:y0}),o.jsx(A,{path:"/hub",children:()=>o.jsx(ue,{to:"/"})}),o.jsx(A,{path:"/admin-hub",children:()=>o.jsx(ue,{to:"/"})}),o.jsx(A,{path:"/admin",component:Y6}),o.jsx(A,{path:"/admin/database-sync",component:X6}),o.jsx(A,{path:"/modules",component:r$}),o.jsx(A,{path:"/access-control",component:s$}),o.jsx(A,{path:"/module-management",component:o$}),o.jsx(A,{path:"/procedures/admin",component:i$}),o.jsx(A,{path:"/procedures/templates/new",component:l0}),o.jsx(A,{path:"/procedures/templates/:id",component:l0}),o.jsx(A,{path:"/procedures/users",component:a$}),o.jsx(A,{path:"/procedures/submissions",component:l$}),o.jsx(A,{path:"/procedures",children:()=>o.jsx(ue,{to:"/procedures/submissions"})}),o.jsx(A,{path:"/procedures/public",component:c$}),o.jsx(A,{path:"/procedures/staff",component:u$}),o.jsx(A,{path:"/staff",component:d$}),o.jsx(A,{path:"/staff/work-order",component:f$}),o.jsx(A,{path:"/event-registration",component:a8}),o.jsx(A,{path:"/event-calendar",component:l8}),o.jsx(A,{path:"/support",component:c0}),o.jsx(A,{path:"/support/admin",component:c0}),o.jsx(A,{path:"/support/knowledge-base",component:h$}),o.jsx(A,{path:"/support/widget",component:p$}),o.jsx(A,{path:"/contact",component:m$}),o.jsx(A,{path:"/faq",component:g$}),o.jsx(A,{path:"/faq-widget",component:v$}),o.jsx(A,{path:"/admin/support/analytics",component:y$}),o.jsx(A,{path:"/admin/support/social-reviews",component:x$}),o.jsx(A,{path:"/admin/support/agents",component:w$}),o.jsx(A,{path:"/admin/support/categories",component:b$}),o.jsx(A,{path:"/support/agent/ticket/:ticketId",component:j$}),o.jsx(A,{path:"/rcc",component:u0}),o.jsx(A,{path:"/rcc/admin",component:u0}),o.jsx(A,{path:"/boomerang",component:d0}),o.jsx(A,{path:"/boomerang/admin",component:d0}),o.jsx(A,{path:"/command-center",component:S$}),o.jsx(A,{path:"/cellartraks",component:C$}),o.jsx(A,{path:"/music",component:P$}),o.jsx(A,{path:"/food-trucks",component:T$}),o.jsx(A,{path:"/media-center",component:E$}),o.jsx(A,{path:"/media",children:o.jsx(ue,{to:"/media-center"})}),o.jsx(A,{path:"/media-library",component:N$}),o.jsx(A,{path:"/events",component:k$}),o.jsx(A,{path:"/toast-connect",component:R$}),o.jsx(A,{path:"/apple-game",component:A$}),o.jsx(A,{path:"/reset-password",component:z$}),o.jsx(A,{path:"/unsubscribe",component:$$}),o.jsx(A,{path:"/future-concepts",component:B$}),o.jsx(A,{path:"/enhancement-requests",component:U$}),o.jsx(A,{path:"/operations/:rest*",component:x0}),o.jsx(A,{path:"/operations",component:x0}),o.jsx(A,{path:"/company-info",component:W$}),o.jsx(A,{path:"/lms",component:e$}),o.jsx(A,{path:"/lms/admin",component:J6}),o.jsx(A,{path:"/lms/portal",component:n$}),o.jsx(A,{path:"/training/:token",component:t$}),o.jsx(A,{path:"/compliance/admin",component:_$}),o.jsx(A,{path:"/compliance/complete",component:D$}),o.jsx(A,{path:"/department-calendar",component:f0}),o.jsx(A,{path:"/department-calendar/admin",component:f0}),o.jsx(A,{path:"/contracts",component:h0}),o.jsx(A,{path:"/contracts/admin",component:h0}),o.jsx(A,{path:"/maintenance",component:p0}),o.jsx(A,{path:"/maintenance/admin",component:p0}),o.jsx(A,{path:"/maintenance/work-orders",component:O$}),o.jsx(A,{path:"/spot-inventory",component:m0}),o.jsx(A,{path:"/spot-inventory/admin",component:m0}),o.jsx(A,{path:"/spot-inventory/staff",component:M$}),o.jsx(A,{path:"/staff-dashboard/admin",component:I$}),o.jsx(A,{path:"/staff-dashboard/directory",component:F$}),o.jsx(A,{path:"/staff-dashboard/:segment",component:V$}),o.jsx(A,{path:"/staff-dashboard",component:L$}),o.jsx(A,{path:"/staff-reporting/procedures/templates/:id",component:qd}),o.jsx(A,{path:"/staff-reporting/admin",component:qd}),o.jsx(A,{path:"/staff-reporting",component:qd}),o.jsx(A,{path:"/accounting/admin",component:v0}),o.jsx(A,{path:"/accounting",component:v0}),o.jsx(A,{path:"/daily-reports",component:g0}),o.jsx(A,{path:"/daily-reports/admin",component:g0}),o.jsx(A,{path:"/reservations/locations/:id",component:K$}),o.jsx(A,{path:"/reservations",component:H$}),o.jsx(A,{path:"/reservations/booking/:id",component:Gd}),o.jsx(A,{path:"/reservations/cart",component:q$}),o.jsx(A,{path:"/book/:id",component:Gd}),o.jsx(A,{path:"/checkout/:id",component:w0}),o.jsx(A,{path:"/confirmation/:id",component:b0}),o.jsx(A,{path:"/reservations/checkout",component:w0}),o.jsx(A,{path:"/reservations/confirmation",component:b0}),o.jsx(A,{path:"/reservations/confirm/:token",component:Qd}),o.jsx(A,{path:"/reservations/cancel/:token",component:Qd}),o.jsx(A,{path:"/reservations/rebook/:token",component:Qd}),o.jsx(A,{path:"/reservations/admin",component:G$}),o.jsx(A,{path:"/reservations/admin/calendar",component:Q$}),o.jsx(A,{path:"/reservations/admin/experiences",component:Y$}),o.jsx(A,{path:"/reservations/admin/reservations",component:X$}),o.jsx(A,{path:"/reservations/admin/floor",component:j0}),o.jsx(A,{path:"/reservations/admin/host",component:S0}),o.jsx(A,{path:"/knoll-tracker",component:j0}),o.jsx(A,{path:"/host",component:S0}),o.jsx(A,{path:"/reservations/admin/locations",component:Z$}),o.jsx(A,{path:"/reservations/admin/locations/:id",component:J$}),o.jsx(A,{path:"/reservations/admin/customers",component:e8}),o.jsx(A,{path:"/reservations/admin/customers/:id",component:t8}),o.jsx(A,{path:"/reservations/admin/clubs",component:n8}),o.jsx(A,{path:"/reservations/admin/special-dates",component:r8}),o.jsx(A,{path:"/reservations/admin/holidays",component:s8}),o.jsx(A,{path:"/reservations/admin/private-events",component:o8}),o.jsx(A,{path:"/reservations/admin/event-registration",component:i8}),o.jsx(A,{path:"/reservations/admin/flow-settings",component:c8}),o.jsx(A,{path:"/reservations/admin/settings",component:u8}),o.jsx(A,{path:"/reservations/admin/documentation",component:d8}),o.jsx(A,{path:"/:bookingSlug",component:Gd}),o.jsx(A,{component:Gj})]})})}function p8(){return o.jsx(gR,{client:He,children:o.jsx(Hj,{children:o.jsxs(b5,{children:[o.jsx(O_,{}),o.jsx(h8,{})]})})})}Gb(document.getElementById("root")).render(o.jsx(p8,{}));export{X1 as $,v5 as A,q as B,an as C,K as D,Ot as E,Et as F,Mt as G,Nt as H,ts as I,ye as J,Fo as K,dt as L,_A as M,DA as N,Ua as O,wy as P,b8 as Q,wm as R,KA as S,tj as T,ds as U,hr as V,Ga as W,Ke as X,pr as Y,Si as Z,yN as _,tt as a,AA as a$,CS as a0,cO as a1,uO as a2,dO as a3,qj as a4,G8 as a5,Q8 as a6,Y8 as a7,yV as a8,Zp as a9,qA as aA,L8 as aB,I8 as aC,F8 as aD,_8 as aE,D8 as aF,O8 as aG,M8 as aH,B8 as aI,U8 as aJ,H8 as aK,W8 as aL,q8 as aM,K8 as aN,A8 as aO,ln as aP,Ue as aQ,it as aR,rn as aS,$A as aT,Yp as aU,An as aV,Ks as aW,QA as aX,YA as aY,ej as aZ,fO as a_,eo as aa,Aa as ab,lh as ac,X8 as ad,Z8 as ae,xV as af,wV as ag,IA as ah,oB as ai,iB as aj,aB as ak,sB as al,Jp as am,jy as an,em as ao,E8 as ap,FA as aq,ZA as ar,Z1 as as,ch as at,yy as au,Kn as av,SA as aw,zA as ax,J1 as ay,EA as az,HA as b,xi as b$,OA as b0,Z as b1,CA as b2,NA as b3,PA as b4,TA as b5,kA as b6,RA as b7,MA as b8,LA as b9,cm as bA,ng as bB,Mh as bC,G2 as bD,M as bE,Up as bF,J8 as bG,tB as bH,rB as bI,nB as bJ,eB as bK,Pr as b
402L,H0 as bM,fu as bN,Oj as bO,cn as bP,oS as bQ,mm as bR,Yj as bS,pm as bT,$a as bU,Mj as bV,Lj as bW,Dj as bX,iu as bY,ai as bZ,Hp as b_,Xp as ba,Wn as bb,VA as bc,BA as bd,xy as be,UA as bf,WA as bg,GA as bh,yd as bi,by as bj,Gl as bk,nj as bl,XA as bm,jA as bn,aO as bo,lO as bp,Kj as bq,he as br,y8 as bs,yE as bt,xE as bu,Kp as bv,as as bw,Q as bx,de as by,Cu as bz,tc as c,eE as c0,Z4 as c1,J4 as c2,E1 as c3,hm as c4,E5 as c5,hB as c6,rP as c7,ue as c8,v8 as c9,g8 as ca,O0 as cb,O5 as cc,L5 as cd,M5 as ce,V5 as cf,z5 as cg,$5 as ch,B5 as ci,U5 as cj,W5 as ck,K5 as cl,N8 as cm,x8 as cn,n0 as co,e0 as cp,Zs as cq,fB as cr,dB as cs,w1 as ct,dg as cu,FV as cv,sP as cw,oP as cx,ge as d,HN as e,KN as f,Ud as g,GN as h,QN as i,o as j,qN as k,XN as l,YN as m,hV as n,$e as o,V8 as p,He as q,d as r,$8 as s,z8 as t,Wp as u,es as v,se as w,j1 as x,jm as y,Wa as z};
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.