PageSourceSearch

https://smritea.ai/assets/index-OkXy-d5Y.js

js smritea.ai collected 2026-10-05 15:06:38 UTC 658,298 bytes, 186 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardLayout-10QDJMud.js","assets/separator-D5JjMsAa.js","assets/select-Dpk4TeIL.js","assets/chevron-down-D6eBPoHA.js","assets/badge-D70DEMXH.js","assets/plus-CqeGYQIF.js","assets/orgsSlice-mdJJI7Vn.js","assets/avatar-DOu3tEmf.js","assets/drawer-BKNRAhtm.js","assets/label-B8fcy5Qd.js","assets/boxes-BLoE49t_.js","assets/brain-miUL15Zz.js","assets/key-BiiylvYb.js","assets/teams-client-B1lQR8qa.js","assets/search-Bi7-eThi.js","assets/appsSlice-B3WyvwFA.js","assets/user-UwyjQNvF.js","assets/apiKeysSlice-CHmcOGx4.js","assets/memoriesSlice-ClQDWo33.js","assets/teamsSlice-5vkjwFUw.js","assets/usageSlice-CgepbOY5.js","assets/subscriptionsSlice-CAeRwGnr.js","assets/dataPlanesSlice-C7pz8lk_.js","assets/dashboardSlice-Catn3u6Y.js","assets/appConfigDraftSlice-Dh8czg1U.js","assets/drafts-client-CbJfUKYS.js","assets/chevron-right-KD1l2-eL.js","assets/HomePage-D0j-d5te.js","assets/SeoHead-B8UDfQqR.js","assets/CTASection-CU6payEt.js","assets/CodeWindow-BIXuFLiG.js","assets/CopyButton-Bg3eIyIl.js","assets/UseCasesSection-fkSRwiTD.js","assets/StatProofCard-dn8rp0OX.js","assets/PricingSection-D3y2sJL9.js","assets/alert-0QuNooNy.js","assets/card-BOYNs0rn.js","assets/skeleton-CTnX7jIE.js","assets/billing-format-CjDMm46p.js","assets/NotFoundPage-BdafFsFx.js","assets/arrow-left-BG1TkwtI.js","assets/ProductPage-DFLY3vqX.js","assets/PricingPage-CUGwBlZK.js","assets/ExamplesPage-BYgnBvgI.js","assets/InvitationAcceptPage-BP3Gm5Wx.js","assets/date-utils-BapGj4Cw.js","assets/loader-circle-Cq8KN2OP.js","assets/circle-check-DAYyMIQA.js","assets/circle-x-Bh5g1r5S.js","assets/LoginPage-B9D4EafN.js","assets/index.esm-B_a780Xx.js","assets/tabs-DOaoAkMM.js","assets/LoginForm-DVJXTvJS.js","assets/ForgotPasswordPage-CWcSCUTX.js","assets/mail-Du3d_nkx.js","assets/ResetPasswordPage-CtUSTGnM.js","assets/VerifyEmailPage-CkIpvWr7.js","assets/OAuthCallbackPage-CmVr4pEs.js","assets/CLIAuthorizePage-7ikt6BFk.js","assets/OrgPickerCard-Bs-d0RaF.js","assets/SelectOrgPage-rBGzRK0I.js","assets/DashboardHomePage-Da3WKkdQ.js","assets/UsageBar-Bpipzlxn.js","assets/progress-bFXLrkxf.js","assets/circle-alert-CQF3oPcN.js","assets/AppsListPage-33TtgeON.js","assets/collapsible-CZUQNwDz.js","assets/EmptyState-B-dhNU1x.js","assets/settings-2-Cg1wNlM7.js","assets/trash-2-D_SaHreE.js","assets/AppDetailPage-Dq3_HvML.js","assets/MemoryRow-Bzu-xJPf.js","assets/alert-dialog-Dc3pT7KS.js","assets/triangle-alert-CDwBzzS8.js","assets/ApiKeyRow-Bp3E9QkA.js","assets/useUrlState-BpAdUcU0.js","assets/AppWizardPage-DZn2aLYr.js","assets/lock-BKSEzYPl.js","assets/draftConfigMapping-DFlHEMSm.js","assets/AllApiKeysPage-CB0J3pEr.js","assets/MemoryExplorerPage-c8rwuYvG.js","assets/UsageBillingPage-C_MO31sY.js","assets/table-B-pszi_P.js","assets/BillingPage-B1ok5CXF.js","assets/PlanChangeConfirm-BSRFGOOM.js","assets/PlanChangeFlow-CX0DWTJb.js","assets/PlanChangePage-Djt3rz5T.js","assets/TeamsPage-Chcdp1rY.js","assets/MemberRow-D30GUP0b.js","assets/OrgSettingsPage-C8Vgan6e.js","assets/UserProfilePage-B4YaS1gA.js","assets/SubscribePage-DdwwH-ED.js"])))=>i.map(i=>d[i]);
2var WE=Object.defineProperty;var JE=(e,t,n)=>t in e?WE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;
vendor: 5,798 bytes, lines 2-10
2var hr=(e,t,n)=>JE(e,typeof t!="symbol"?t+"":t,n);function VE(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const i in o)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(o,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>o[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var af={exports:{}},ts={},sf={exports:{}},et={};/**
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 zy;function GE(){if(zy)return et;zy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.iterator;function w(D){return D===null||typeof D!="object"?null:(D=m&&D[m]||D["@@iterator"],typeof D=="function"?D:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,_={};function E(D,H,B){this.props=D,this.context=H,this.refs=_,this.updater=B||x}E.prototype.isReactComponent={},E.prototype.setState=function(D,H){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,H,"setState")},E.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=E.prototype;function P(D,H,B){this.props=D,this.context=H,this.refs=_,this.updater=B||x}var N=P.prototype=new C;N.constructor=P,R(N,E.prototype),N.isPureReactComponent=!0;var A=Array.isArray,q=Object.prototype.hasOwnProperty,U={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function L(D,H,B){var Q,oe={},ee=null,ne=null;if(H!=null)for(Q in H.ref!==void 0&&(ne=H.ref),H.key!==void 0&&(ee=""+H.key),H)q.call(H,Q)&&!T.hasOwnProperty(Q)&&(oe[Q]=H[Q]);var he=arguments.length-2;if(he===1)oe.children=B;else if(1<he){for(var we=Array(he),De=0;De<he;De++)we[De]=arguments[De+2];oe.children=we}if(D&&D.defaultProps)for(Q in he=D.defaultProps,he)oe[Q]===void 0&&(oe[Q]=he[Q]);return{$$typeof:e,type:D,key:ee,ref:ne,props:oe,_owner:U.current}}function $(D,H){return{$$typeof:e,type:D.type,key:H,ref:D.ref,props:D.props,_owner:D._owner}}function re(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function le(D){var H={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(B){return H[B]})}var se=/\/+/g;function Z(D,H){return typeof D=="object"&&D!==null&&D.key!=null?le(""+D.key):H.toString(36)}function fe(D,H,B,Q,oe){var ee=typeof D;(ee==="undefined"||ee==="boolean")&&(D=null);var ne=!1;if(D===null)ne=!0;else switch(ee){case"string":case"number":ne=!0;break;case"object":switch(D.$$typeof){case e:case t:ne=!0}}if(ne)return ne=D,oe=oe(ne),D=Q===""?"."+Z(ne,0):Q,A(oe)?(B="",D!=null&&(B=D.replace(se,"$&/")+"/"),fe(oe,H,B,"",function(De){return De})):oe!=null&&(re(oe)&&(oe=$(oe,B+(!oe.key||ne&&ne.key===oe.key?"":(""+oe.key).replace(se,"$&/")+"/")+D)),H.push(oe)),1;if(ne=0,Q=Q===""?".":Q+":",A(D))for(var he=0;he<D.length;he++){ee=D[he];var we=Q+Z(ee,he);ne+=fe(ee,H,B,we,oe)}else if(we=w(D),typeof we=="function")for(D=we.call(D),he=0;!(ee=D.next()).done;)ee=ee.value,we=Q+Z(ee,he++),ne+=fe(ee,H,B,we,oe);else if(ee==="object")throw H=String(D),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return ne}function me(D,H,B){if(D==null)return D;var Q=[],oe=0;return fe(D,Q,"","",function(ee){return H.call(B,ee,oe++)}),Q}function X(D){if(D._status===-1){var H=D._result;H=H(),H.then(function(B){(D._status===0||D._status===-1)&&(D._status=1,D._result=B)},function(B){(D._status===0||D._status===-1)&&(D._status=2,D._result=B)}),D._status===-1&&(D._status=0,D._result=H)}if(D._status===1)return D._result.default;throw D._result}var ue={current:null},I={transition:null},V={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:I,ReactCurrentOwner:U};function j(){throw Error("act(...) is not supported in production builds of React.")}return et.Children={map:me,forEach:function(D,H,B){me(D,function(){H.apply(this,arguments)},B)},count:function(D){var H=0;return me(D,function(){H++}),H},toArray:function(D){return me(D,function(H){return H})||[]},only:function(D){if(!re(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},et.Component=E,et.Fragment=n,et.Profiler=i,et.PureComponent=P,et.StrictMode=o,et.Suspense=f,et.__SECRET_INT
vendor: 4,851 bytes, lines 10-26
10ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,et.act=j,et.cloneElement=function(D,H,B){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var Q=R({},D.props),oe=D.key,ee=D.ref,ne=D._owner;if(H!=null){if(H.ref!==void 0&&(ee=H.ref,ne=U.current),H.key!==void 0&&(oe=""+H.key),D.type&&D.type.defaultProps)var he=D.type.defaultProps;for(we in H)q.call(H,we)&&!T.hasOwnProperty(we)&&(Q[we]=H[we]===void 0&&he!==void 0?he[we]:H[we])}var we=arguments.length-2;if(we===1)Q.children=B;else if(1<we){he=Array(we);for(var De=0;De<we;De++)he[De]=arguments[De+2];Q.children=he}return{$$typeof:e,type:D.type,key:oe,ref:ee,props:Q,_owner:ne}},et.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:s,_context:D},D.Consumer=D},et.createElement=L,et.createFactory=function(D){var H=L.bind(null,D);return H.type=D,H},et.createRef=function(){return{current:null}},et.forwardRef=function(D){return{$$typeof:d,render:D}},et.isValidElement=re,et.lazy=function(D){return{$$typeof:g,_payload:{_status:-1,_result:D},_init:X}},et.memo=function(D,H){return{$$typeof:p,type:D,compare:H===void 0?null:H}},et.startTransition=function(D){var H=I.transition;I.transition={};try{D()}finally{I.transition=H}},et.unstable_act=j,et.useCallback=function(D,H){return ue.current.useCallback(D,H)},et.useContext=function(D){return ue.current.useContext(D)},et.useDebugValue=function(){},et.useDeferredValue=function(D){return ue.current.useDeferredValue(D)},et.useEffect=function(D,H){return ue.current.useEffect(D,H)},et.useId=function(){return ue.current.useId()},et.useImperativeHandle=function(D,H,B){return ue.current.useImperativeHandle(D,H,B)},et.useInsertionEffect=function(D,H){return ue.current.useInsertionEffect(D,H)},et.useLayoutEffect=function(D,H){return ue.current.useLayoutEffect(D,H)},et.useMemo=function(D,H){return ue.current.useMemo(D,H)},et.useReducer=function(D,H,B){return ue.current.useReducer(D,H,B)},et.useRef=function(D){return ue.current.useRef(D)},et.useState=function(D){return ue.current.useState(D)},et.useSyncExternalStore=function(D,H,B){return ue.current.useSyncExternalStore(D,H,B)},et.useTransition=function(){return ue.current.useTransition()},et.version="18.3.1",et}var Fy;function Vu(){return Fy||(Fy=1,sf.exports=GE()),sf.exports}/**
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 qy;function KE(){if(qy)return ts;qy=1;var e=Vu(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var g,m={},w=null,x=null;p!==void 0&&(w=""+p),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(x=f.ref);for(g in f)o.call(f,g)&&!s.hasOwnProperty(g)&&(m[g]=f[g]);if(d&&d.defaultProps)for(g in f=d.defaultProps,f)m[g]===void 0&&(m[g]=f[g]);return{$$typeof:t,type:d,key:w,ref:x,props:m,_owner:i.current}}return ts.Fragment=n,ts.jsx=u,ts.jsxs=u,ts}var $y;function YE(){return $y||($y=1,af.exports=KE()),af.exports}var S=YE(),Gl={},lf={exports:{}},kn={},uf={exports:{}},cf={};/**
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 */var Uy;function XE(){return Uy||(Uy=1,(function(e){function t(I,V){var j=I.length;I.push(V);e:for(;0<j;){var D=j-1>>>1,H=I[D];if(0<i(H,V))I[D]=V,I[j]=H,j=D;else break e}}function n(I){return I.length===0?null:I[0]}function o(I){if(I.length===0)return null;var V=I[0],j=I.pop();if(j!==V){I[0]=j;e:for(var D=0,H=I.length,B=H>>>1;D<B;){var Q=2*(D+1)-1,oe=I[Q],ee=Q+1,ne=I[ee];if(0>i(oe,j))ee<H&&0>i(ne,oe)?(I[D]=ne,I[ee]=j,D=ee):(I[D]=oe,I[Q]=j,D=Q);else if(ee<H&&0>i(ne,j))I[D]=ne,I[ee]=j,D=ee;else break e}}return V}function i(I,V){var j=I.sortIndex-V.sortIndex;return j!==0?j:I.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],g=1,m=null,w=3,x=!1,R=!1,_=!1,E=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(I){for(var V=n(p);V!==null;){if(V.callback===null)o(p);
vendor: 17,941 bytes, lines 26-38
26else if(V.startTime<=I)o(p),V.sortIndex=V.expirationTime,t(f,V);else break;V=n(p)}}function A(I){if(_=!1,N(I),!R)if(n(f)!==null)R=!0,X(q);else{var V=n(p);V!==null&&ue(A,V.startTime-I)}}function q(I,V){R=!1,_&&(_=!1,C(L),L=-1),x=!0;var j=w;try{for(N(V),m=n(f);m!==null&&(!(m.expirationTime>V)||I&&!le());){var D=m.callback;if(typeof D=="function"){m.callback=null,w=m.priorityLevel;var H=D(m.expirationTime<=V);V=e.unstable_now(),typeof H=="function"?m.callback=H:m===n(f)&&o(f),N(V)}else o(f);m=n(f)}if(m!==null)var B=!0;else{var Q=n(p);Q!==null&&ue(A,Q.startTime-V),B=!1}return B}finally{m=null,w=j,x=!1}}var U=!1,T=null,L=-1,$=5,re=-1;function le(){return!(e.unstable_now()-re<$)}function se(){if(T!==null){var I=e.unstable_now();re=I;var V=!0;try{V=T(!0,I)}finally{V?Z():(U=!1,T=null)}}else U=!1}var Z;if(typeof P=="function")Z=function(){P(se)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,me=fe.port2;fe.port1.onmessage=se,Z=function(){me.postMessage(null)}}else Z=function(){E(se,0)};function X(I){T=I,U||(U=!0,Z())}function ue(I,V){L=E(function(){I(e.unstable_now())},V)}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(I){I.callback=null},e.unstable_continueExecution=function(){R||x||(R=!0,X(q))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(I){switch(w){case 1:case 2:case 3:var V=3;break;default:V=w}var j=w;w=V;try{return I()}finally{w=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,V){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var j=w;w=I;try{return V()}finally{w=j}},e.unstable_scheduleCallback=function(I,V,j){var D=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?D+j:D):j=D,I){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=j+H,I={id:g++,callback:V,priorityLevel:I,startTime:j,expirationTime:H,sortIndex:-1},j>D?(I.sortIndex=j,t(p,I),n(f)===null&&I===n(p)&&(_?(C(L),L=-1):_=!0,ue(A,j-D))):(I.sortIndex=H,t(f,I),R||x||(R=!0,X(q))),I},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(I){var V=w;return function(){var j=w;w=V;try{return I.apply(this,arguments)}finally{w=j}}}})(cf)),cf}var By;function QE(){return By||(By=1,uf.exports=XE()),uf.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 Hy;function ZE(){if(Hy)return kn;Hy=1;var e=Vu(),t=QE();function n(r){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,i={};function s(r,a){u(r,a),u(r+"Capture",a)}function u(r,a){for(i[r]=a,r=0;r<a.length;r++)o.add(a[r])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,g={},m={};function w(r){return f.call(m,r)?!0:f.call(g,r)?!1:p.test(r)?m[r]=!0:(g[r]=!0,!1)}function x(r,a,l,c){if(l!==null&&l.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function R(r,a,l,c){if(a===null||typeof a>"u"||x(r,a,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function _(r,a,l,c,h,y,b){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=l,this.propertyName=r,this.type=a,this.sanitizeURL=y,this.removeEmptyString=b}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){E[r]=new _(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var a=r[0];E[a]=new _(a,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){E[r]=new _(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){E[r]=new _(r,2,!1,r,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(r){E[r]=new _(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){E[r]=new _(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){E[r]=new _(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){E[r]=new _(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){E[r]=new _(r,5,!1,r.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function P(r){return r[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(r){var a=r.replace(C,P);E[a]=new _(a,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var a=r.replace(C,P);E[a]=new _(a,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var a=r.replace(C,P);E[a]=new _(a,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){E[r]=new _(r,1,!1,r.toLowerCase(),null,!1,!1)}),E.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){E[r]=new _(r,1,!1,r.toLowerCase(),null,!0,!0)});function N(r,a,l,c){var h=E.hasOwnProperty(a)?E[a]:null;(h!==null?h.type!==0:c||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(R(a,l,h,c)&&(l=null),c||h===null?w(a)&&(l===null?r.removeAttribute(a):r.setAttribute(a,""+l)):h.mustUseProperty?r[h.propertyName]=l===null?h.type===3?!1:"":l:(a=h.attributeName,c=h.attributeNamespace,l===null?r.removeAttribute(a):(h=h.type,l=h===3||h===4&&l===!0?"":""+l,c?r.setAttributeNS(c,a,l):r.setAttribute(a,l))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,q=Symbol.for("react.element"),U=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),le=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),I=Symbol.iterator;function V(r){return r===null||typeof r!="object"?null:(r=I&&r[I]||r["@@iterator"],typeof r=="function"?r:null)}var j=Object.assign,D;function H(r){if(D===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);D=a&&a[1]||""}return`
35`+D+r}var B=!1;function Q(r,a){if(!r||B)return"";B=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(Y){var c=Y}Reflect.construct(r,[],a)}else{try{a.call()}catch(Y){c=Y}r.call(a.prototype)}else{try{throw Error()}catch(Y){c=Y}r()}}catch(Y){if(Y&&c&&typeof Y.stack=="string"){for(var h=Y.stack.split(`
36`),y=c.stack.split(`
37`),b=h.length-1,O=y.length-1;1<=b&&0<=O&&h[b]!==y[O];)O--;for(;1<=b&&0<=O;b--,O--)if(h[b]!==y[O]){if(b!==1||O!==1)do if(b--,O--,0>O||h[b]!==y[O]){var M=`
38`+h[b].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),M}while(1<=b&&0<=O);break}}}finally{B=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?H(r):""}function oe(r){switch(r.tag){case 5:return H(r.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return r=Q(r.type,!1),r;case 11:return r=Q(r.type.render,!1),r;case 1:return r=Q(r.type,!0),r;default:return""}}function ee(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case T:return"Fragment";case U:return"Portal";case $:return"Profiler";case L:return"StrictMode";case Z:return"Suspense";case fe:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case le:return(r.displayName||"Context")+".Consumer";case re:return(r._context.displayName||"Context")+".Provider";case se:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case me:return a=r.displayName||null,a!==null?a:ee(r.type)||"Memo";case X:a=r._payload,r=r._init;try{return ee(r(a))}catch{}}return null}function ne(r){var a=r.type;switch(r.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=a.render,r=r.displayName||r.name||"",a.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(a);case 8:return a===L?"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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function he(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function we(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function De(r){var a=we(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,a),c=""+r[a];if(!r.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,y=l.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return h.call(this)},set:function(b){c=""+b,y.call(this,b)}}),Object.defineProperty(r,a,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function rt(r){r._valueTracker||(r._valueTracker=De(r))}function $e(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),c="";return r&&(c=we(r)?r.checked?"true":"false":r.value),r=c,r!==l?(a.setValue(r),!0):!1}function Ue(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function ae(r,a){var l=a.checked;return j({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Me(r,a){var l=a.defaultValue==null?"":a.defaultValue,c=a.checked!=null?a.checked:a.defaultChecked;l=he(a.value!=null?a.value:l),r._wrapperState={initialChecked:c,initialValue:l,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function Ke(r,a){a=a.checked,a!=null&&N(r,"checked",a,!1)}function at(r,a){Ke(r,a);var l=he(a.value),c=a.type;if(l!=null)c==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}a.hasOwnProperty("value")?qe(r,a.type,l):a.hasOwnProperty("defaultValue")&&qe(r,a.type,he(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(r.defaultChecked=!!a.defaultChecked)}function Ye(r,a,l){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var c=a.type;if(!(c!=="submit"&&c!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+r._wrapperState.initialValue,l||a===r.value||(r.value=a),r.defaultValue=a}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function qe(r,a,l){(a!=="number"||Ue(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var ut=Array.isArray;function Tt(r,a,l,c){if(r=r.options,a){a={};for(var h=0;h<l.length;h++)a["$"+l[h]]=!0;for(l=0;l<r.length;l++)h=a.hasOwnProperty("$"+r[l].value),r[l].selected!==h&&(r[l].selected=h),h&&c&&(r[l].defaultSelected=!0)}else{for(l=""+he(l),a=null,h=0;h<r.length;h++){if(r[h].value===l){r[h].selected=!0,c&&(r[h].defaultSelected=!0);return}a!==null||r[h].disabled||(a=r[h])}a!==null&&(a.selected=!0)}}function nt(r,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return j({},a,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function bt(r,a){var l=a.value;if(l==null){if(l=a.children,a=a.defaultValue,l!=null){if(a!=null)throw Error(n(92));if(ut(l)){if(1<l.length)throw Error(n(93));l=l[0]}a=l}a==null&&(a=""),l=a}r._wrapperState={initialValue:he(l)}}function Pt(r,a){var l=he(a.value),c=he(a.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),a.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),c!=null&&(r.defaultValue=""+c)}function Nt(r){var a=r.textContent;a===r._wrapperState.initialValue&&a!==""&&a!==null&&(r.value=a)}function Ft(r){switch(r){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 Xt(r,a){return r==null||r==="http://www.w3.org/1999/xhtml"?Ft(a):r==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var _t,qt=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,l,c,h){MSApp.execUnsafeLocalFunction(function(){return r(a,l,c,h)})}:r})(function(r,a){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=a;else{for(_t=_t||document.createElement("div"),_t.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=_t.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;a.firstChild;)r.appendChild(a.firstChild)}});function Wt(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var Rn={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},Jt=["Webkit","ms","Moz","O"];Object.keys(Rn).forEach(function(r){Jt.forEach(function(a){a=a+r.charAt(0).toUpperCase()+r.substring(1),Rn[a]=Rn[r]})});function sn(r,a,l){return a==null||typeof a=="boolean"||a===""?"":l||typeof a!="number"||a===0||Rn.hasOwnProperty(r)&&Rn[r]?(""+a).trim():a+"px"}function Vt(r,a){r=r.style;for(var l in a)if(a.hasOwnProperty(l)){var c=l.indexOf("--")===0,h=sn(l,a[l],c);l==="float"&&(l="cssFloat"),c?r.setProperty(l,h):r[l]=h}}var ar=j({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 ir(r,a){if(a){if(ar[r]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function Cr(r,a){if(r.indexOf("-")===-1)return typeof a.is=="str
38ing";switch(r){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 sr=null;function Te(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ge=null,je=null,He=null;function mt(r){if(r=$i(r)){if(typeof Ge!="function")throw Error(n(280));var a=r.stateNode;a&&(a=ll(a),Ge(r.stateNode,r.type,a))}}function ke(r){je?He?He.push(r):He=[r]:je=r}function Xe(){if(je){var r=je,a=He;if(He=je=null,mt(r),a)for(r=0;r<a.length;r++)mt(a[r])}}function ft(r,a){return r(a)}function it(){}var $t=!1;function ct(r,a,l){if($t)return r(a,l);$t=!0;try{return ft(r,a,l)}finally{$t=!1,(je!==null||He!==null)&&(it(),Xe())}}function pt(r,a){var l=r.stateNode;if(l===null)return null;var c=ll(l);if(c===null)return null;l=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,a,typeof l));return l}var yn=!1;if(d)try{var k={};Object.defineProperty(k,"passive",{get:function(){yn=!0}}),window.addEventListener("test",k,k),window.removeEventListener("test",k,k)}catch{yn=!1}function z(r,a,l,c,h,y,b,O,M){var Y=Array.prototype.slice.call(arguments,3);try{a.apply(l,Y)}catch(de){this.onError(de)}}var K=!1,ie=null,ye=!1,Ae=null,Le={onError:function(r){K=!0,ie=r}};function Se(r,a,l,c,h,y,b,O,M){K=!1,ie=null,z.apply(Le,arguments)}function Re(r,a,l,c,h,y,b,O,M){if(Se.apply(this,arguments),K){if(K){var Y=ie;K=!1,ie=null}else throw Error(n(198));ye||(ye=!0,Ae=Y)}}function Pe(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function We(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function Ne(r){if(Pe(r)!==r)throw Error(n(188))}function Ve(r){var a=r.alternate;if(!a){if(a=Pe(r),a===null)throw Error(n(188));return a!==r?null:r}for(var l=r,c=a;;){var h=l.return;if(h===null)break;var y=h.alternate;if(y===null){if(c=h.return,c!==null){l=c;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===l)return Ne(h),r;if(y===c)return Ne(h),a;y=y.sibling}throw Error(n(188))}if(l.return!==c.return)l=h,c=y;else{for(var b=!1,O=h.child;O;){if(O===l){b=!0,l=h,c=y;break}if(O===c){b=!0,c=h,l=y;break}O=O.sibling}if(!b){for(O=y.child;O;){if(O===l){b=!0,l=y,c=h;break}if(O===c){b=!0,c=y,l=h;break}O=O.sibling}if(!b)throw Error(n(189))}}if(l.alternate!==c)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:a}function tt(r){return r=Ve(r),r!==null?Gt(r):null}function Gt(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var a=Gt(r);if(a!==null)return a;r=r.sibling}return null}var Ut=t.unstable_scheduleCallback,nn=t.unstable_cancelCallback,ht=t.unstable_shouldYield,_n=t.unstable_requestPaint,gt=t.unstable_now,Jo=t.unstable_getCurrentPriorityLevel,Gn=t.unstable_ImmediatePriority,Mn=t.unstable_UserBlockingPriority,co=t.unstable_NormalPriority,Vo=t.unstable_LowPriority,Tr=t.unstable_IdlePriority,Wr=null,vn=null;function ot(r){if(vn&&typeof vn.onCommitFiberRoot=="function")try{vn.onCommitFiberRoot(Wr,r,void 0,(r.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:Ot,fo=Math.log,Jr=Math.LN2;function Ot(r){return r>>>=0,r===0?32:31-(fo(r)/Jr|0)|0}var Vr=64,Go=4194304;function Ko(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Vs(r,a){var l=r.pendingLanes;if(l===0)return 0;var c=0,h=r.suspendedLanes,y=r.pingedLanes,b=l&268435455;if(b!==0){var O=b&~h;O!==0?c=Ko(O):(y&=b,y!==0&&(c=Ko(y)))}else b=l&~h,b!==0?c=Ko(b):y!==0&&(c=Ko(y));if(c===0)return 0;if(a!==0&&a!==c&&(a&h)===0&&(h=c&-c,y=a&-a,h>=y||h===16&&(y&4194240)!==0))return a;
vendor: 3,995 bytes, line 38
38if((c&4)!==0&&(c|=l&16),a=r.entangledLanes,a!==0)for(r=r.entanglements,a&=c;0<a;)l=31-xt(a),h=1<<l,c|=r[l],a&=~h;return c}function u_(r,a){switch(r){case 1:case 2:case 4:return a+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 a+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 c_(r,a){for(var l=r.suspendedLanes,c=r.pingedLanes,h=r.expirationTimes,y=r.pendingLanes;0<y;){var b=31-xt(y),O=1<<b,M=h[b];M===-1?((O&l)===0||(O&c)!==0)&&(h[b]=u_(O,a)):M<=a&&(r.expiredLanes|=O),y&=~O}}function Cc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function hm(){var r=Vr;return Vr<<=1,(Vr&4194240)===0&&(Vr=64),r}function Tc(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function Ri(r,a,l){r.pendingLanes|=a,a!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,a=31-xt(a),r[a]=l}function d_(r,a){var l=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a,a=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<l;){var h=31-xt(l),y=1<<h;a[h]=0,c[h]=-1,r[h]=-1,l&=~y}}function Pc(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var c=31-xt(l),h=1<<c;h&a|r[c]&a&&(r[c]|=a),l&=~h}}var yt=0;function mm(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var gm,Oc,ym,vm,wm,kc=!1,Gs=[],po=null,ho=null,mo=null,_i=new Map,Ei=new Map,go=[],f_="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 xm(r,a){switch(r){case"focusin":case"focusout":po=null;break;case"dragenter":case"dragleave":ho=null;break;case"mouseover":case"mouseout":mo=null;break;case"pointerover":case"pointerout":_i.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ei.delete(a.pointerId)}}function Ci(r,a,l,c,h,y){return r===null||r.nativeEvent!==y?(r={blockedOn:a,domEventName:l,eventSystemFlags:c,nativeEvent:y,targetContainers:[h]},a!==null&&(a=$i(a),a!==null&&Oc(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,h!==null&&a.indexOf(h)===-1&&a.push(h),r)}function p_(r,a,l,c,h){switch(a){case"focusin":return po=Ci(po,r,a,l,c,h),!0;case"dragenter":return ho=Ci(ho,r,a,l,c,h),!0;case"mouseover":return mo=Ci(mo,r,a,l,c,h),!0;case"pointerover":var y=h.pointerId;return _i.set(y,Ci(_i.get(y)||null,r,a,l,c,h)),!0;case"gotpointercapture":return y=h.pointerId,Ei.set(y,Ci(Ei.get(y)||null,r,a,l,c,h)),!0}return!1}function Sm(r){var a=Yo(r.target);if(a!==null){var l=Pe(a);if(l!==null){if(a=l.tag,a===13){if(a=We(l),a!==null){r.blockedOn=a,wm(r.priority,function(){ym(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ks(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=Ac(r.domEventName,r.eventSystemFlags,a[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);sr=c,l.target.dispatchEvent(c),sr=null}else return a=$i(l),a!==null&&Oc(a),r.blockedOn=l,!1;a.shift()}return!0}function bm(r,a,l){Ks(r)&&l.delete(a)}function h_(){kc=!1,po!==null&&Ks(po)&&(po=null),ho!==null&&Ks(ho)&&(ho=null),mo!==null&&Ks(mo)&&(mo=null),_i.forEach(bm),Ei.forEach(bm)}function Ti(r,a){r.blockedOn===a&&(r.blockedOn=null,kc||(kc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,h_)))}function Pi(r){function a(h){return Ti(h,r)}if(0<Gs.length){Ti(Gs[0],r);for(var l=1;l<Gs.length;l++){var c=Gs[l];c.blockedOn===r&&(c.blockedOn=null)}}for(po!==null&&Ti(po,r),ho!==null&&Ti(ho,r),mo!==null&&Ti(mo,r),_i.forEac
vendor: 2,613 bytes, line 38
38h(a),Ei.forEach(a),l=0;l<go.length;l++)c=go[l],c.blockedOn===r&&(c.blockedOn=null);for(;0<go.length&&(l=go[0],l.blockedOn===null);)Sm(l),l.blockedOn===null&&go.shift()}var Ra=A.ReactCurrentBatchConfig,Ys=!0;function m_(r,a,l,c){var h=yt,y=Ra.transition;Ra.transition=null;try{yt=1,Dc(r,a,l,c)}finally{yt=h,Ra.transition=y}}function g_(r,a,l,c){var h=yt,y=Ra.transition;Ra.transition=null;try{yt=4,Dc(r,a,l,c)}finally{yt=h,Ra.transition=y}}function Dc(r,a,l,c){if(Ys){var h=Ac(r,a,l,c);if(h===null)Yc(r,a,c,Xs,l),xm(r,c);else if(p_(h,r,a,l,c))c.stopPropagation();else if(xm(r,c),a&4&&-1<f_.indexOf(r)){for(;h!==null;){var y=$i(h);if(y!==null&&gm(y),y=Ac(r,a,l,c),y===null&&Yc(r,a,c,Xs,l),y===h)break;h=y}h!==null&&c.stopPropagation()}else Yc(r,a,c,null,l)}}var Xs=null;function Ac(r,a,l,c){if(Xs=null,r=Te(c),r=Yo(r),r!==null)if(a=Pe(r),a===null)r=null;else if(l=a.tag,l===13){if(r=We(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null);return Xs=r,null}function Rm(r){switch(r){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(Jo()){case Gn:return 1;case Mn:return 4;case co:case Vo:return 16;case Tr:return 536870912;default:return 16}default:return 16}}var yo=null,Ic=null,Qs=null;function _m(){if(Qs)return Qs;var r,a=Ic,l=a.length,c,h="value"in yo?yo.value:yo.textContent,y=h.length;for(r=0;r<l&&a[r]===h[r];r++);var b=l-r;for(c=1;c<=b&&a[l-c]===h[y-c];c++);return Qs=h.slice(r,1<c?1-c:void 0)}function Zs(r){var a=r.keyCode;
vendor: 11,135 bytes, line 38
38return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function js(){return!0}function Em(){return!1}function Ln(r){function a(l,c,h,y,b){this._reactName=l,this._targetInst=h,this.type=c,this.nativeEvent=y,this.target=b,this.currentTarget=null;for(var O in r)r.hasOwnProperty(O)&&(l=r[O],this[O]=l?l(y):y[O]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?js:Em,this.isPropagationStopped=Em,this}return j(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=js)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=js)},persist:function(){},isPersistent:js}),a}var _a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nc=Ln(_a),Oi=j({},_a,{view:0,detail:0}),y_=Ln(Oi),Mc,Lc,ki,el=j({},Oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fc,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ki&&(ki&&r.type==="mousemove"?(Mc=r.screenX-ki.screenX,Lc=r.screenY-ki.screenY):Lc=Mc=0,ki=r),Mc)},movementY:function(r){return"movementY"in r?r.movementY:Lc}}),Cm=Ln(el),v_=j({},el,{dataTransfer:0}),w_=Ln(v_),x_=j({},Oi,{relatedTarget:0}),zc=Ln(x_),S_=j({},_a,{animationName:0,elapsedTime:0,pseudoElement:0}),b_=Ln(S_),R_=j({},_a,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),__=Ln(R_),E_=j({},_a,{data:0}),Tm=Ln(E_),C_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T_={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"},P_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function O_(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=P_[r])?!!a[r]:!1}function Fc(){return O_}var k_=j({},Oi,{key:function(r){if(r.key){var a=C_[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Zs(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?T_[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fc,charCode:function(r){return r.type==="keypress"?Zs(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Zs(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),D_=Ln(k_),A_=j({},el,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pm=Ln(A_),I_=j({},Oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fc}),N_=Ln(I_),M_=j({},_a,{propertyName:0,elapsedTime:0,pseudoElement:0}),L_=Ln(M_),z_=j({},el,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),F_=Ln(z_),q_=[9,13,27,32],qc=d&&"CompositionEvent"in window,Di=null;d&&"documentMode"in document&&(Di=document.documentMode);var $_=d&&"TextEvent"in window&&!Di,Om=d&&(!qc||Di&&8<Di&&11>=Di),km=" ",Dm=!1;function Am(r,a){switch(r){case"keyup":return q_.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Im(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ea=!1;function U_(r,a){switch(r){case"compositionend":return Im(a);case"keypress":return a.which!==32?null:(Dm=!0,km);case"textInput":return r=a.data,r===km&&Dm?null:r;default:return null}}function B_(r,a){if(Ea)return r==="compositionend"||!qc&&Am(r,a)?(r=_m(),Qs=Ic=yo=null,Ea=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Om&&a.locale!=="ko"?null:a.data;default:return null}}var H_={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 Nm(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!H_[r.type]:a==="textarea"}function Mm(r,a,l,c){ke(c),a=al(a,"onChange"),0<a.length&&(l=new Nc("onChange","change",null,l,c),r.push({event:l,listeners:a}))}var Ai=null,Ii=null;function W_(r){jm(r,0)}function tl(r){var a=ka(r);if($e(a))return r}function J_(r,a){if(r==="change")return a}var Lm=!1;if(d){var $c;if(d){var Uc="oninput"in document;if(!Uc){var zm=document.createElement("div");zm.setAttribute("oninput","return;"),Uc=typeof zm.oninput=="function"}$c=Uc}else $c=!1;Lm=$c&&(!document.documentMode||9<document.documentMode)}function Fm(){Ai&&(Ai.detachEvent("onpropertychange",qm),Ii=Ai=null)}function qm(r){if(r.propertyName==="value"&&tl(Ii)){var a=[];Mm(a,Ii,r,Te(r)),ct(W_,a)}}function V_(r,a,l){r==="focusin"?(Fm(),Ai=a,Ii=l,Ai.attachEvent("onpropertychange",qm)):r==="focusout"&&Fm()}function G_(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return tl(Ii)}function K_(r,a){if(r==="click")return tl(a)}function Y_(r,a){if(r==="input"||r==="change")return tl(a)}function X_(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var lr=typeof Object.is=="function"?Object.is:X_;function Ni(r,a){if(lr(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),c=Object.keys(a);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var h=l[c];if(!f.call(a,h)||!lr(r[h],a[h]))return!1}return!0}function $m(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Um(r,a){var l=$m(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=a&&c>=a)return{node:l,offset:a-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=$m(l)}}function Bm(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Bm(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Hm(){for(var r=window,a=Ue();a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=Ue(r.document)}return a}function Bc(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function Q_(r){var a=Hm(),l=r.focusedElem,c=r.selectionRange;if(a!==l&&l&&l.ownerDocument&&Bm(l.ownerDocument.documentElement,l)){if(c!==null&&Bc(l)){if(a=c.start,r=c.end,r===void 0&&(r=a),"selectionStart"in l)l.selectionStart=a,l.selectionEnd=Math.min(r,l.value.length);else if(r=(a=l.ownerDocument||document)&&a.defaultView||window,r.getSelection){r=r.getSelection();var h=l.textContent.length,y=Math.min(c.start,h);c=c.end===void 0?y:Math.min(c.end,h),!r.extend&&y>c&&(h=c,c=y,y=h),h=Um(l,y);var b=Um(l,c);h&&b&&(r.rangeCount!==1||r.anchorNode!==h.node||r.anchorOffset!==h.offset||r.focusNode!==b.node||r.focusOffset!==b.offset)&&(a=a.createRange(),a.setStart(h.node,h.offset),r.removeAllRanges(),y>c?(r.addRange(a),r.extend(b.node,b.offset)):(a.setEnd(b.node,b.offset),r.addRange(a)))}}for(a=[],r=l;r=r.parentNode;)r.nodeType===1&&a.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<a.length;l++)r=a[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var Z_=d&&"documentMode"in document&&11>=document.documentMode,Ca=null,Hc=null,Mi=null,Wc=!1;function Wm(r,a,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wc||Ca==null||Ca!==Ue(c)||(c=Ca,"selectionStart"in c&&Bc(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Mi&&Ni(Mi,c)||(Mi=c,c=al(Hc,"onSelect"),0<c.length&&(a=new Nc("onSelect","select",null,a,l),r.push({event:a,listeners:c}),a.target=Ca)))}function nl(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var Ta={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionend:nl("Transition","TransitionEnd")},Jc={},Jm={};d&&(Jm=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function rl(r){if(Jc[r])return Jc[r];if(!Ta[r])return r;var a=Ta[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in Jm)return Jc[r]=a[l];return r}var Vm=rl("animationend"),Gm=rl("animationiteration"),Km=rl("animationstart"),Ym=rl("transitionend"),Xm=new Map,Qm="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 vo(r,a){Xm.set(r,a),s(a,[r])}for(var Vc=0;Vc<Qm.length;Vc++){var Gc=Qm[Vc],j_=Gc.toLowerCase(),eE=Gc[0].toUpperCase()+Gc.slice(1);vo(j_,"on"+eE)}vo(Vm,"onAnimationEnd"),vo(Gm,"onAnimationIteration"),vo(Km,"onAnimationStart"),vo("dblclick","onDoubleClick"),vo("focusin","onFocus"),vo("focusout","onBlur"),vo(Ym,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focu
38sin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="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(" "),tE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Li));function Zm(r,a,l){var c=r.type||"unknown-event";r.currentTarget=l,Re(c,a,void 0,r),r.currentTarget=null}function jm(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],h=c.event;c=c.listeners;e:{var y=void 0;if(a)for(var b=c.length-1;0<=b;b--){var O=c[b],M=O.instance,Y=O.currentTarget;if(O=O.listener,M!==y&&h.isPropagationStopped())break e;Zm(h,O,Y),y=M}else for(b=0;b<c.length;b++){if(O=c[b],M=O.instance,Y=O.currentTarget,O=O.listener,M!==y&&h.isPropagationStopped())break e;Zm(h,O,Y),y=M}}}if(ye)throw r=Ae,ye=!1,Ae=null,r}function Et(r,a){var l=a[td];l===void 0&&(l=a[td]=new Set);var c=r+"__bubble";l.has(c)||(eg(a,r,2,!1),l.add(c))}function Kc(r,a,l){var c=0;a&&(c|=4),eg(l,r,c,a)}var ol="_reactListening"+Math.random().toString(36).slice(2);function zi(r){if(!r[ol]){r[ol]=!0,o.forEach(function(l){l!=="selectionchange"&&(tE.has(l)||Kc(l,!1,r),Kc(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[ol]||(a[ol]=!0,Kc("selectionchange",!1,a))}}function eg(r,a,l,c){switch(Rm(a)){case 1:var h=m_;break;case 4:h=g_;break;default:h=Dc}l=h.bind(null,a,l,r),h=void 0,!yn||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(h=!0),c?h!==void 0?r.addEventListener(a,l,{capture:!0,passive:h}):r.addEventListener(a,l,!0):h!==void 0?r.addEventListener(a,l,{passive:h}):r.addEventListener(a,l,!1)}function Yc(r,a,l,c,h){var y=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var O=c.stateNode.containerInfo;if(O===h||O.nodeType===8&&O.parentNode===h)break;if(b===4)for(b=c.return;b!==null;){var M=b.tag;if((M===3||M===4)&&(M=b.stateNode.containerInfo,M===h||M.nodeType===8&&M.parentNode===h))return;b=b.return}for(;O!==null;){if(b=Yo(O),b===null)return;if(M=b.tag,M===5||M===6){c=y=b;continue e}O=O.parentNode}}c=c.return}ct(function(){var Y=y,de=Te(l),pe=[];e:{var ce=Xm.get(r);if(ce!==void 0){var xe=Nc,_e=r;switch(r){case"keypress":if(Zs(l)===0)break e;case"keydown":case"keyup":xe=D_;break;case"focusin":_e="focus",xe=zc;break;case"focusout":_e="blur",xe=zc;break;case"beforeblur":case"afterblur":xe=zc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=Cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=w_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=N_;break;case Vm:case Gm:case Km:xe=b_;break;case Ym:xe=L_;break;case"scroll":xe=y_;break;case"wheel":xe=F_;break;case"copy":case"cut":case"paste":xe=__;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=Pm}var Oe=(a&4)!==0,Bt=!Oe&&r==="scroll",W=Oe?ce!==null?ce+"Capture":null:ce;Oe=[];for(var F=Y,G;F!==null;){G=F;var ge=G.stateNode;if(G.tag===5&&ge!==null&&(G=ge,W!==null&&(ge=pt(F,W),ge!=null&&Oe.push(Fi(F,ge,G)))),Bt)break;F=F.return}0<Oe.length&&(ce=new xe(ce,_e,null,l,de),pe.push({event:ce,listeners:Oe}))}}if((a&7)===0){e:{if(ce=r==="mouseover"||r==="pointerover",xe=r==="mouseout"||r==="pointerout",ce&&l!==sr&&(_e=l.relatedTarget||l.fromElement)&&(Yo(_e)||_e[Gr]))break e;if((xe||ce)&&(ce=de.window===de?de:(ce=de.ownerDocument)?ce.defaultView||ce.parentWindow:window,xe?(_e=l.relatedTarget||l.toElement,xe=Y,_e=_e?Yo(_e):null,_e!==null&&(Bt=Pe(_e),_e!==Bt||_e.tag!==5&&_e.tag!==6)&&(_e=null)):(xe=null,_e=Y),xe!==_e)){if(Oe=Cm,ge="onMouseLeave",W="onMouseEnter",F="mouse",(r==="pointerout"||r==="pointerover")&&(Oe=Pm,ge="onPointerLeave",W="onPointerEnter",F="pointer"),Bt=xe==null?ce:ka(xe),G=_e==null?ce:ka(_e),ce=new Oe(ge,F+"leave",xe,l,de),ce.target=Bt,ce.relatedTarget=G,ge=null,Yo(de)===Y&&(Oe=new Oe(W,F+"enter",_e,l,de),Oe.target=G,Oe.relatedTarget=Bt,ge=Oe),Bt=ge,xe&&_e)t:{for(Oe=xe,W=_e,F=0,G=Oe;G;G=Pa(G))F++;for(G=0,ge=W;ge;ge=Pa(ge))G++;for(;0<F-G;)Oe=Pa(Oe),F--;for(;0<G-F;)W=Pa(W),G--;for(;F--;){if(Oe===W||W!==null&&Oe===W.alternate)break t;Oe=Pa(Oe),W=Pa(W)}Oe=null}else Oe=null;xe!==null&&tg(pe,ce,xe,Oe,!1),_e!==null&&Bt!==null&&tg(pe,Bt,_e,Oe,!0)}}
vendor: 5,635 bytes, lines 38-39
38e:{if(ce=Y?ka(Y):window,xe=ce.nodeName&&ce.nodeName.toLowerCase(),xe==="select"||xe==="input"&&ce.type==="file")var Ie=J_;else if(Nm(ce))if(Lm)Ie=Y_;else{Ie=G_;var ze=V_}else(xe=ce.nodeName)&&xe.toLowerCase()==="input"&&(ce.type==="checkbox"||ce.type==="radio")&&(Ie=K_);if(Ie&&(Ie=Ie(r,Y))){Mm(pe,Ie,l,de);break e}ze&&ze(r,ce,Y),r==="focusout"&&(ze=ce._wrapperState)&&ze.controlled&&ce.type==="number"&&qe(ce,"number",ce.value)}switch(ze=Y?ka(Y):window,r){case"focusin":(Nm(ze)||ze.contentEditable==="true")&&(Ca=ze,Hc=Y,Mi=null);break;case"focusout":Mi=Hc=Ca=null;break;case"mousedown":Wc=!0;break;case"contextmenu":case"mouseup":case"dragend":Wc=!1,Wm(pe,l,de);break;case"selectionchange":if(Z_)break;case"keydown":case"keyup":Wm(pe,l,de)}var Fe;if(qc)e:{switch(r){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Ea?Am(r,l)&&(Be="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Be="onCompositionStart");Be&&(Om&&l.locale!=="ko"&&(Ea||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Ea&&(Fe=_m()):(yo=de,Ic="value"in yo?yo.value:yo.textContent,Ea=!0)),ze=al(Y,Be),0<ze.length&&(Be=new Tm(Be,r,null,l,de),pe.push({event:Be,listeners:ze}),Fe?Be.data=Fe:(Fe=Im(l),Fe!==null&&(Be.data=Fe)))),(Fe=$_?U_(r,l):B_(r,l))&&(Y=al(Y,"onBeforeInput"),0<Y.length&&(de=new Tm("onBeforeInput","beforeinput",null,l,de),pe.push({event:de,listeners:Y}),de.data=Fe))}jm(pe,a)})}function Fi(r,a,l){return{instance:r,listener:a,currentTarget:l}}function al(r,a){for(var l=a+"Capture",c=[];r!==null;){var h=r,y=h.stateNode;h.tag===5&&y!==null&&(h=y,y=pt(r,l),y!=null&&c.unshift(Fi(r,y,h)),y=pt(r,a),y!=null&&c.push(Fi(r,y,h))),r=r.return}return c}function Pa(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function tg(r,a,l,c,h){for(var y=a._reactName,b=[];l!==null&&l!==c;){var O=l,M=O.alternate,Y=O.stateNode;if(M!==null&&M===c)break;O.tag===5&&Y!==null&&(O=Y,h?(M=pt(l,y),M!=null&&b.unshift(Fi(l,M,O))):h||(M=pt(l,y),M!=null&&b.push(Fi(l,M,O)))),l=l.return}b.length!==0&&r.push({event:a,listeners:b})}var nE=/\r\n?/g,rE=/\u0000|\uFFFD/g;function ng(r){return(typeof r=="string"?r:""+r).replace(nE,`
39`).replace(rE,"")}function il(r,a,l){if(a=ng(a),ng(r)!==a&&l)throw Error(n(425))}function sl(){}var Xc=null,Qc=null;function Zc(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var jc=typeof setTimeout=="function"?setTimeout:void 0,oE=typeof clearTimeout=="function"?clearTimeout:void 0,rg=typeof Promise=="function"?Promise:void 0,aE=typeof queueMicrotask=="function"?queueMicrotask:typeof rg<"u"?function(r){return rg.resolve(null).then(r).catch(iE)}:jc;function iE(r){setTimeout(function(){throw r})}function ed(r,a){var l=a,c=0;do{var h=l.nextSibling;if(r.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(c===0){r.removeChild(h),Pi(a);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=h}while(l);Pi(a)}function wo(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return r}function og(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(a===0)return r;a--}else l==="/$"&&a++}r=r.previousSibling}return null}var Oa=Math.random().toString(36).slice(2),Pr="__reactFiber$"+Oa,qi="__reactProps$"+Oa,Gr="__reactContainer$"+Oa,td="__reactEvents$"+Oa,sE="__reactListeners$"+Oa,lE="__reactHandles$"+Oa;function Yo(r){var a=r[Pr];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Gr]||l[Pr]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=og(r);r!==null;){if(l=r[Pr])return l;r=og(r)}return a}r=l,l=r.parentNode}return null}function $i(r){return r=r[Pr]||r[Gr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function ka(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function ll(r){return r[qi]||null}var nd=[],Da=-1;function xo(r){return{current:r}}function Ct(r){0>Da||(r.current=nd[Da],nd[Da]=null,Da--)}function Rt(r,a){Da++,nd[Da]=r.current,r.current=a}var So={},dn=xo(So),En=xo(!1),Xo=So;function Aa(r,a){var l=r.type.contextTypes;if(!l)return So;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===a)return c.__reactInternalMemoizedMaskedChildContext;var h={},y;for(y in l)h[y]=a[y];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=a,r.__reactInternalMemoizedMaskedChildContext=h),h}function Cn(r){return r=r.childContextTypes,r!=null}function ul(){Ct(En),Ct(dn)}function ag(r,a,l){if(dn.current!==So)throw Error(n(168));Rt(dn,a),Rt(En,l)}function ig(r,a,l){var c=r.stateNode;if(a=a.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var h in c)if(!(h in a))throw Error(n(108,ne(r)||"Unknown",h));return j({},l,c)}function cl(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||So,Xo=dn.current,Rt(dn,r),Rt(En,En.current),!0}function sg(r,a,l){var c=r.stateNode;if(!c)throw Error(n(169));l?(r=ig(r,a,Xo),c.__reactInternalMemoizedMergedChildContext=r,Ct(En),Ct(dn),Rt(dn,r)):Ct(En),Rt(En,l)}var Kr=null,dl=!1,rd=!1;function lg(r){Kr===null?Kr=[r]:Kr.push(r)}function uE(r){dl=!0,lg(r)}function bo(){if(!rd&&Kr!==null){rd=!0;var r=0,a=yt;try{var l=Kr;for(yt=1;r<l.length;r++){var c=l[r];do c=c(!0);while(c!==null)}Kr=null,dl=!1}catch(h){throw Kr!==null&&(Kr=Kr.slice(r+1)),Ut(Gn,bo),h}finally{yt=a,rd=!1}
vendor: 5,706 bytes, line 39
39}return null}var Ia=[],Na=0,fl=null,pl=0,Kn=[],Yn=0,Qo=null,Yr=1,Xr="";function Zo(r,a){Ia[Na++]=pl,Ia[Na++]=fl,fl=r,pl=a}function ug(r,a,l){Kn[Yn++]=Yr,Kn[Yn++]=Xr,Kn[Yn++]=Qo,Qo=r;var c=Yr;r=Xr;var h=32-xt(c)-1;c&=~(1<<h),l+=1;var y=32-xt(a)+h;if(30<y){var b=h-h%5;y=(c&(1<<b)-1).toString(32),c>>=b,h-=b,Yr=1<<32-xt(a)+h|l<<h|c,Xr=y+r}else Yr=1<<y|l<<h|c,Xr=r}function od(r){r.return!==null&&(Zo(r,1),ug(r,1,0))}function ad(r){for(;r===fl;)fl=Ia[--Na],Ia[Na]=null,pl=Ia[--Na],Ia[Na]=null;for(;r===Qo;)Qo=Kn[--Yn],Kn[Yn]=null,Xr=Kn[--Yn],Kn[Yn]=null,Yr=Kn[--Yn],Kn[Yn]=null}var zn=null,Fn=null,kt=!1,ur=null;function cg(r,a){var l=jn(5,null,null,0);l.elementType="DELETED",l.stateNode=a,l.return=r,a=r.deletions,a===null?(r.deletions=[l],r.flags|=16):a.push(l)}function dg(r,a){switch(r.tag){case 5:var l=r.type;return a=a.nodeType!==1||l.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(r.stateNode=a,zn=r,Fn=wo(a.firstChild),!0):!1;case 6:return a=r.pendingProps===""||a.nodeType!==3?null:a,a!==null?(r.stateNode=a,zn=r,Fn=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(l=Qo!==null?{id:Yr,overflow:Xr}:null,r.memoizedState={dehydrated:a,treeContext:l,retryLane:1073741824},l=jn(18,null,null,0),l.stateNode=a,l.return=r,r.child=l,zn=r,Fn=null,!0):!1;default:return!1}}function id(r){return(r.mode&1)!==0&&(r.flags&128)===0}function sd(r){if(kt){var a=Fn;if(a){var l=a;if(!dg(r,a)){if(id(r))throw Error(n(418));a=wo(l.nextSibling);var c=zn;a&&dg(r,a)?cg(c,l):(r.flags=r.flags&-4097|2,kt=!1,zn=r)}}else{if(id(r))throw Error(n(418));r.flags=r.flags&-4097|2,kt=!1,zn=r}}}function fg(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;zn=r}function hl(r){if(r!==zn)return!1;if(!kt)return fg(r),kt=!0,!1;var a;if((a=r.tag!==3)&&!(a=r.tag!==5)&&(a=r.type,a=a!=="head"&&a!=="body"&&!Zc(r.type,r.memoizedProps)),a&&(a=Fn)){if(id(r))throw pg(),Error(n(418));for(;a;)cg(r,a),a=wo(a.nextSibling)}if(fg(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(a===0){Fn=wo(r.nextSibling);break e}a--}else l!=="$"&&l!=="$!"&&l!=="$?"||a++}r=r.nextSibling}Fn=null}}else Fn=zn?wo(r.stateNode.nextSibling):null;return!0}function pg(){for(var r=Fn;r;)r=wo(r.nextSibling)}function Ma(){Fn=zn=null,kt=!1}function ld(r){ur===null?ur=[r]:ur.push(r)}var cE=A.ReactCurrentBatchConfig;function Ui(r,a,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var c=l.stateNode}if(!c)throw Error(n(147,r));var h=c,y=""+r;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===y?a.ref:(a=function(b){var O=h.refs;b===null?delete O[y]:O[y]=b},a._stringRef=y,a)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function ml(r,a){throw r=Object.prototype.toString.call(a),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r))}function hg(r){var a=r._init;return a(r._payload)}function mg(r){function a(W,F){if(r){var G=W.deletions;G===null?(W.deletions=[F],W.flags|=16):G.push(F)}}function l(W,F){if(!r)return null;for(;F!==null;)a(W,F),F=F.sibling;return null}function c(W,F){for(W=new Map;F!==null;)F.key!==null?W.set(F.key,F):W.set(F.index,F),F=F.sibling;return W}function h(W,F){return W=ko(W,F),W.index=0,W.sibling=null,W}function y(W,F,G){return W.index=G,r?(G=W.alternate,G!==null?(G=G.index,G<F?(W.flags|=2,F):G):(W.flags|=2,F)):(W.flags|=1048576,F)}function b(W){return r&&W.alternate===null&&(W.flags|=2),W}function O(W,F,G,ge){return F===null||F.tag!==6?(F=jd(G,W.mode,ge),F.return=W,F):(F=h(F,G),F.return=W,F)}function M(W,F,G,ge){var Ie=G.type;return Ie===T?de(W,F,G.props.children,ge,G.key):F!==null&&(F.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===X&&hg(Ie)===F.type)?(ge=h(F,G.props),ge.ref=Ui(W,F,G),ge.return=W,ge):(ge=ql(G.type,G.key,G.props,null,W.mode,ge),ge.ref=Ui(W,F,G),ge.return=W,ge)}function Y(W,F,G,ge){return F===null||F.tag!==4||F.stateNode.containerInfo!==G.containerInfo||F.stateNode.implementation!==G.implementation?(F=ef(G,W.mode,ge),F.return=W,F):(F=h(F,G.children||[]),F.return=W,F)}function de(W,F,G,ge,Ie){return F===null||F.tag!==7?(F=ia(G,W.mode,ge,Ie),F.return=W,F):(F=h(F,G),F.return=W,F)}function pe(W,F,G){if(typeof F=="string"&&F!==""||typeof F=="number")return F=jd(""+F,W.mode,G),F.return=W,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case q:return G=ql(F.type,F.key,F.props,null,W.mode,G),G.ref=Ui(W,null,F),G.return=W,G;case U:return F=ef(F,W.mode,G),F.return=W,F;case X:var ge=F._init;return pe(W,ge(F._payload),G)}if(ut(F)||V(F))return F=ia(F,W.mode,G,null),F.return=W,F;ml(W,F)}return null}function ce(W,F,G,ge){var Ie=F!==null?F.key:null;if(typeof G=="string"&&G!==""||typeof G=="number")return Ie!==null?null:O(W,F,""+G,ge);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case q:return G.key===Ie?M(W,F,G,ge):null;case U:return G.key===Ie?Y(W,F,G,ge):null;case X:return Ie=G._init,ce(W,F,Ie(G._payload),ge)}if(ut(G)||V(G))return Ie!==null?null:de(W,F,G,ge,null);ml(W,G)}return null}function xe(W,F,G,ge,Ie){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return W=W.get(G)||null,O(F,W,""+ge,Ie);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case q:return W=W.get(ge.key===null?G:ge.key)||null,M(F,W,ge,Ie);case U:return W=W.get(ge.key===null?G:ge.key)||null,Y(F,W,ge,Ie);case X:var ze=ge._init;return xe(W,F,G,ze(ge._payload),Ie)}if(ut(ge)||V(ge))return W=W.get(G)||null,de(F,W,ge,Ie,null);ml(F,ge)}return null}function _e(W,F,G,ge){for(var Ie=null,ze=null,Fe=F,Be=F=0,an=null;Fe!==null&&Be<G.length;Be++){Fe.index>
vendor: 7,053 bytes, line 39
39Be?(an=Fe,Fe=null):an=Fe.sibling;var dt=ce(W,Fe,G[Be],ge);if(dt===null){Fe===null&&(Fe=an);break}r&&Fe&&dt.alternate===null&&a(W,Fe),F=y(dt,F,Be),ze===null?Ie=dt:ze.sibling=dt,ze=dt,Fe=an}if(Be===G.length)return l(W,Fe),kt&&Zo(W,Be),Ie;if(Fe===null){for(;Be<G.length;Be++)Fe=pe(W,G[Be],ge),Fe!==null&&(F=y(Fe,F,Be),ze===null?Ie=Fe:ze.sibling=Fe,ze=Fe);return kt&&Zo(W,Be),Ie}for(Fe=c(W,Fe);Be<G.length;Be++)an=xe(Fe,W,Be,G[Be],ge),an!==null&&(r&&an.alternate!==null&&Fe.delete(an.key===null?Be:an.key),F=y(an,F,Be),ze===null?Ie=an:ze.sibling=an,ze=an);return r&&Fe.forEach(function(Do){return a(W,Do)}),kt&&Zo(W,Be),Ie}function Oe(W,F,G,ge){var Ie=V(G);if(typeof Ie!="function")throw Error(n(150));if(G=Ie.call(G),G==null)throw Error(n(151));for(var ze=Ie=null,Fe=F,Be=F=0,an=null,dt=G.next();Fe!==null&&!dt.done;Be++,dt=G.next()){Fe.index>Be?(an=Fe,Fe=null):an=Fe.sibling;var Do=ce(W,Fe,dt.value,ge);if(Do===null){Fe===null&&(Fe=an);break}r&&Fe&&Do.alternate===null&&a(W,Fe),F=y(Do,F,Be),ze===null?Ie=Do:ze.sibling=Do,ze=Do,Fe=an}if(dt.done)return l(W,Fe),kt&&Zo(W,Be),Ie;if(Fe===null){for(;!dt.done;Be++,dt=G.next())dt=pe(W,dt.value,ge),dt!==null&&(F=y(dt,F,Be),ze===null?Ie=dt:ze.sibling=dt,ze=dt);return kt&&Zo(W,Be),Ie}for(Fe=c(W,Fe);!dt.done;Be++,dt=G.next())dt=xe(Fe,W,Be,dt.value,ge),dt!==null&&(r&&dt.alternate!==null&&Fe.delete(dt.key===null?Be:dt.key),F=y(dt,F,Be),ze===null?Ie=dt:ze.sibling=dt,ze=dt);return r&&Fe.forEach(function(HE){return a(W,HE)}),kt&&Zo(W,Be),Ie}function Bt(W,F,G,ge){if(typeof G=="object"&&G!==null&&G.type===T&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case q:e:{for(var Ie=G.key,ze=F;ze!==null;){if(ze.key===Ie){if(Ie=G.type,Ie===T){if(ze.tag===7){l(W,ze.sibling),F=h(ze,G.props.children),F.return=W,W=F;break e}}else if(ze.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===X&&hg(Ie)===ze.type){l(W,ze.sibling),F=h(ze,G.props),F.ref=Ui(W,ze,G),F.return=W,W=F;break e}l(W,ze);break}else a(W,ze);ze=ze.sibling}G.type===T?(F=ia(G.props.children,W.mode,ge,G.key),F.return=W,W=F):(ge=ql(G.type,G.key,G.props,null,W.mode,ge),ge.ref=Ui(W,F,G),ge.return=W,W=ge)}return b(W);case U:e:{for(ze=G.key;F!==null;){if(F.key===ze)if(F.tag===4&&F.stateNode.containerInfo===G.containerInfo&&F.stateNode.implementation===G.implementation){l(W,F.sibling),F=h(F,G.children||[]),F.return=W,W=F;break e}else{l(W,F);break}else a(W,F);F=F.sibling}F=ef(G,W.mode,ge),F.return=W,W=F}return b(W);case X:return ze=G._init,Bt(W,F,ze(G._payload),ge)}if(ut(G))return _e(W,F,G,ge);if(V(G))return Oe(W,F,G,ge);ml(W,G)}return typeof G=="string"&&G!==""||typeof G=="number"?(G=""+G,F!==null&&F.tag===6?(l(W,F.sibling),F=h(F,G),F.return=W,W=F):(l(W,F),F=jd(G,W.mode,ge),F.return=W,W=F),b(W)):l(W,F)}return Bt}var La=mg(!0),gg=mg(!1),gl=xo(null),yl=null,za=null,ud=null;function cd(){ud=za=yl=null}function dd(r){var a=gl.current;Ct(gl),r._currentValue=a}function fd(r,a,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===l)break;r=r.return}}function Fa(r,a){yl=r,ud=za=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&a)!==0&&(Tn=!0),r.firstContext=null)}function Xn(r){var a=r._currentValue;if(ud!==r)if(r={context:r,memoizedValue:a,next:null},za===null){if(yl===null)throw Error(n(308));za=r,yl.dependencies={lanes:0,firstContext:r}}else za=za.next=r;return a}var jo=null;function pd(r){jo===null?jo=[r]:jo.push(r)}function yg(r,a,l,c){var h=a.interleaved;return h===null?(l.next=l,pd(a)):(l.next=h.next,h.next=l),a.interleaved=l,Qr(r,c)}function Qr(r,a){r.lanes|=a;var l=r.alternate;for(l!==null&&(l.lanes|=a),l=r,r=r.return;r!==null;)r.childLanes|=a,l=r.alternate,l!==null&&(l.childLanes|=a),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Ro=!1;function hd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vg(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Zr(r,a){return{eventTime:r,lane:a,tag:0,payload:null,callback:null,next:null}}function _o(r,a,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(st&2)!==0){var h=c.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a,Qr(r,l)}return h=c.interleaved,h===null?(a.next=a,pd(c)):(a.next=h.next,h.next=a),c.interleaved=a,Qr(r,l)}function vl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194240)!==0)){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,Pc(r,l)}}function wg(r,a){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var h=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var b={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?h=y=b:y=y.next=b,l=l.next}while(l!==null);y===null?h=y=a:y=y.next=a}else h=y=a;l={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:c.shared,effects:c.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}function wl(r,a,l,c){var h=r.updateQueue;Ro=!1;var y=h.firstBaseUpdate,b=h.lastBaseUpdate,O=h.shared.pending;if(O!==null){h.shared.pending=null;var M=O,Y=M.next;M.next=null,b===null?y=Y:b.next=Y,b=M;var de=r.alternate;de!==null&&(de=de.updateQueue,O=de.lastBaseUpdate,O!==b&&(O===null?de.firstBaseUpdate=Y:O.next=Y,de.lastBaseUpdate=M))}if(y!==null){var pe=h.baseState;b=0,de=Y=M=null,O=y;do{var ce=O.lane,xe=O.eventTime;if((c&ce)===ce){de!==null&&(de=de.next={eventTime:xe,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var _e=r,Oe=O;switch(ce=a,xe=l,Oe.tag){case 1:if(_e=Oe.payload,typeof _e=="function"){pe=_e.call(xe,pe,ce);break e}pe=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Oe.payload,ce=typeof _e=="function"?_e.call(xe,pe,ce):_e,ce==null)break e;pe=j({},pe,ce);break e;case 2:Ro=!0}}O.callback!==null&&O.lane!==0&&(r.flags|=64,ce=h.effects,ce===null?h.effects=[O]:ce.push(O))}else xe={eventTime:xe,lane:ce,tag:O.tag,payload:O.payload,callback:O.callback,next:null},de===null?(Y=de=xe,M=pe):de=de.next=xe,b|=ce;if(O=O.next,O===null){if(O=h.shared.pending,O===null)break;ce=O,O=ce.next,ce.next=null,h.lastBaseUpdate=ce,h.shared.pending=null}}while(!0);if(de===null&&(M=pe),h.baseState=M,h.firstBaseUpdate=Y,h.lastBaseUpdate=de,a=h.shared.interleaved,a!==null){h=a;do b|=h.lane,h=h.next;while(h!==a)}else y===null&&(h.shared.lanes=0);na|=b,r.lanes=b,r.memoizedState=pe}}function xg(r,a,l){if(r=a.effects,a.effects=null,r!==null)for(a=0;a<r.length;a++){var c=r[a],h=c.callback;if(h!==null){if(c.callback=null,c=l,typeof h!="function")throw Error(n(191,h));h.call(c)}}}var Bi={},Or=xo(Bi),Hi=xo(Bi),Wi=xo(Bi);function ea(r){if(r===Bi)throw Error(n(174));return r}function md(r,a){switch(Rt(Wi,a),Rt(Hi,r),Rt(Or,Bi),r=a.nodeType,r){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:Xt(null,"");break;
vendor: 7,026 bytes, line 39
39default:r=r===8?a.parentNode:a,a=r.namespaceURI||null,r=r.tagName,a=Xt(a,r)}Ct(Or),Rt(Or,a)}function qa(){Ct(Or),Ct(Hi),Ct(Wi)}function Sg(r){ea(Wi.current);var a=ea(Or.current),l=Xt(a,r.type);a!==l&&(Rt(Hi,r),Rt(Or,l))}function gd(r){Hi.current===r&&(Ct(Or),Ct(Hi))}var Dt=xo(0);function xl(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var yd=[];function vd(){for(var r=0;r<yd.length;r++)yd[r]._workInProgressVersionPrimary=null;yd.length=0}var Sl=A.ReactCurrentDispatcher,wd=A.ReactCurrentBatchConfig,ta=0,At=null,Qt=null,rn=null,bl=!1,Ji=!1,Vi=0,dE=0;function fn(){throw Error(n(321))}function xd(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!lr(r[l],a[l]))return!1;return!0}function Sd(r,a,l,c,h,y){if(ta=y,At=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Sl.current=r===null||r.memoizedState===null?mE:gE,r=l(c,h),Ji){y=0;do{if(Ji=!1,Vi=0,25<=y)throw Error(n(301));y+=1,rn=Qt=null,a.updateQueue=null,Sl.current=yE,r=l(c,h)}while(Ji)}if(Sl.current=El,a=Qt!==null&&Qt.next!==null,ta=0,rn=Qt=At=null,bl=!1,a)throw Error(n(300));return r}function bd(){var r=Vi!==0;return Vi=0,r}function kr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rn===null?At.memoizedState=rn=r:rn=rn.next=r,rn}function Qn(){if(Qt===null){var r=At.alternate;r=r!==null?r.memoizedState:null}else r=Qt.next;var a=rn===null?At.memoizedState:rn.next;if(a!==null)rn=a,Qt=r;else{if(r===null)throw Error(n(310));Qt=r,r={memoizedState:Qt.memoizedState,baseState:Qt.baseState,baseQueue:Qt.baseQueue,queue:Qt.queue,next:null},rn===null?At.memoizedState=rn=r:rn=rn.next=r}return rn}function Gi(r,a){return typeof a=="function"?a(r):a}function Rd(r){var a=Qn(),l=a.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var c=Qt,h=c.baseQueue,y=l.pending;if(y!==null){if(h!==null){var b=h.next;h.next=y.next,y.next=b}c.baseQueue=h=y,l.pending=null}if(h!==null){y=h.next,c=c.baseState;var O=b=null,M=null,Y=y;do{var de=Y.lane;if((ta&de)===de)M!==null&&(M=M.next={lane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),c=Y.hasEagerState?Y.eagerState:r(c,Y.action);else{var pe={lane:de,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null};M===null?(O=M=pe,b=c):M=M.next=pe,At.lanes|=de,na|=de}Y=Y.next}while(Y!==null&&Y!==y);M===null?b=c:M.next=O,lr(c,a.memoizedState)||(Tn=!0),a.memoizedState=c,a.baseState=b,a.baseQueue=M,l.lastRenderedState=c}if(r=l.interleaved,r!==null){h=r;do y=h.lane,At.lanes|=y,na|=y,h=h.next;while(h!==r)}else h===null&&(l.lanes=0);return[a.memoizedState,l.dispatch]}function _d(r){var a=Qn(),l=a.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var c=l.dispatch,h=l.pending,y=a.memoizedState;if(h!==null){l.pending=null;var b=h=h.next;do y=r(y,b.action),b=b.next;while(b!==h);lr(y,a.memoizedState)||(Tn=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),l.lastRenderedState=y}return[y,c]}function bg(){}function Rg(r,a){var l=At,c=Qn(),h=a(),y=!lr(c.memoizedState,h);if(y&&(c.memoizedState=h,Tn=!0),c=c.queue,Ed(Cg.bind(null,l,c,r),[r]),c.getSnapshot!==a||y||rn!==null&&rn.memoizedState.tag&1){if(l.flags|=2048,Ki(9,Eg.bind(null,l,c,h,a),void 0,null),on===null)throw Error(n(349));(ta&30)!==0||_g(l,a,h)}return h}function _g(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=At.updateQueue,a===null?(a={lastEffect:null,stores:null},At.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function Eg(r,a,l,c){a.value=l,a.getSnapshot=c,Tg(a)&&Pg(r)}function Cg(r,a,l){return l(function(){Tg(a)&&Pg(r)})}function Tg(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!lr(r,l)}catch{return!0}}function Pg(r){var a=Qr(r,1);a!==null&&pr(a,r,1,-1)}function Og(r){var a=kr();return typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:r},a.queue=r,r=r.dispatch=hE.bind(null,At,r),[a.memoizedState,r]}function Ki(r,a,l,c){return r={tag:r,create:a,destroy:l,deps:c,next:null},a=At.updateQueue,a===null?(a={lastEffect:null,stores:null},At.updateQueue=a,a.lastEffect=r.next=r):(l=a.lastEffect,l===null?a.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,a.lastEffect=r)),r}function kg(){return Qn().memoizedState}function Rl(r,a,l,c){var h=kr();At.flags|=r,h.memoizedState=Ki(1|a,l,void 0,c===void 0?null:c)}function _l(r,a,l,c){var h=Qn();c=c===void 0?null:c;var y=void 0;if(Qt!==null){var b=Qt.memoizedState;if(y=b.destroy,c!==null&&xd(c,b.deps)){h.memoizedState=Ki(a,l,y,c);return}}At.flags|=r,h.memoizedState=Ki(1|a,l,y,c)}function Dg(r,a){return Rl(8390656,8,r,a)}function Ed(r,a){return _l(2048,8,r,a)}function Ag(r,a){return _l(4,2,r,a)}function Ig(r,a){return _l(4,4,r,a)}function Ng(r,a){if(typeof a=="function")return r=r(),a(r),function(){a(null)};if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Mg(r,a,l){return l=l!=null?l.concat([r]):null,_l(4,4,Ng.bind(null,a,r),l)}function Cd(){}function Lg(r,a){var l=Qn();a=a===void 0?null:a;var c=l.memoizedState;return c!==null&&a!==null&&xd(a,c[1])?c[0]:(l.memoizedState=[r,a],r)}function zg(r,a){var l=Qn();a=a===void 0?null:a;var c=l.memoizedState;return c!==null&&a!==null&&xd(a,c[1])?c[0]:(r=r(),l.memoizedState=[r,a],r)}function Fg(r,a,l){return(ta&21)===0?(r.baseState&&(r.baseState=!1,Tn=!0),r.memoizedState=l):(lr(l,a)||(l=hm(),At.lanes|=l,na|=l,r.baseState=!0),a)}function fE(r,a){var l=yt;yt=l!==0&&4>l?l:4,r(!0);var c=wd.transition;wd.transition={};try{r(!1),a()}finally{yt=l,wd.transition=c}}function qg(){return Qn().memoizedState}function pE(r,a,l){var c=Po(r);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},$g(r))Ug(a,l);else if(l=yg(r,a,l,c),l!==null){var h=xn();pr(l,r,c,h),Bg(l,a,c)}}function hE(r,a,l){var c=Po(r),h={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if($g(r))Ug(a,h);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var b=a.lastRenderedState,O=y(b,l);if(h.hasEagerState=!0,h.eagerState=O,lr(O,b)){var M=a.interleaved;M===null?(h.next=h,pd(a)):(h.next=M.next,M.next=h),a.interleaved=h;return}}catch{}finally{}l=yg(r,a,h,c),l!==null&&(h=xn(),pr(l,r,c,h),Bg(l,a,c))}}function $g(r){var a=r.alternate;return r===At||a!==null&&a===At}function Ug(r,a){Ji=bl=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function Bg(r,a,l){if((l&4194240)!==0){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,Pc(r,l)}}var El={readContext:Xn,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useInsertionEffect:fn,useLayoutEffect:fn,useMemo:fn,useReducer:fn,useRef
vendor: 8,291 bytes, lines 39-41
39:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useMutableSource:fn,useSyncExternalStore:fn,useId:fn,unstable_isNewReconciler:!1},mE={readContext:Xn,useCallback:function(r,a){return kr().memoizedState=[r,a===void 0?null:a],r},useContext:Xn,useEffect:Dg,useImperativeHandle:function(r,a,l){return l=l!=null?l.concat([r]):null,Rl(4194308,4,Ng.bind(null,a,r),l)},useLayoutEffect:function(r,a){return Rl(4194308,4,r,a)},useInsertionEffect:function(r,a){return Rl(4,2,r,a)},useMemo:function(r,a){var l=kr();return a=a===void 0?null:a,r=r(),l.memoizedState=[r,a],r},useReducer:function(r,a,l){var c=kr();return a=l!==void 0?l(a):a,c.memoizedState=c.baseState=a,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:a},c.queue=r,r=r.dispatch=pE.bind(null,At,r),[c.memoizedState,r]},useRef:function(r){var a=kr();return r={current:r},a.memoizedState=r},useState:Og,useDebugValue:Cd,useDeferredValue:function(r){return kr().memoizedState=r},useTransition:function(){var r=Og(!1),a=r[0];return r=fE.bind(null,r[1]),kr().memoizedState=r,[a,r]},useMutableSource:function(){},useSyncExternalStore:function(r,a,l){var c=At,h=kr();if(kt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=a(),on===null)throw Error(n(349));(ta&30)!==0||_g(c,a,l)}h.memoizedState=l;var y={value:l,getSnapshot:a};return h.queue=y,Dg(Cg.bind(null,c,y,r),[r]),c.flags|=2048,Ki(9,Eg.bind(null,c,y,l,a),void 0,null),l},useId:function(){var r=kr(),a=on.identifierPrefix;if(kt){var l=Xr,c=Yr;l=(c&~(1<<32-xt(c)-1)).toString(32)+l,a=":"+a+"R"+l,l=Vi++,0<l&&(a+="H"+l.toString(32)),a+=":"}else l=dE++,a=":"+a+"r"+l.toString(32)+":";return r.memoizedState=a},unstable_isNewReconciler:!1},gE={readContext:Xn,useCallback:Lg,useContext:Xn,useEffect:Ed,useImperativeHandle:Mg,useInsertionEffect:Ag,useLayoutEffect:Ig,useMemo:zg,useReducer:Rd,useRef:kg,useState:function(){return Rd(Gi)},useDebugValue:Cd,useDeferredValue:function(r){var a=Qn();return Fg(a,Qt.memoizedState,r)},useTransition:function(){var r=Rd(Gi)[0],a=Qn().memoizedState;return[r,a]},useMutableSource:bg,useSyncExternalStore:Rg,useId:qg,unstable_isNewReconciler:!1},yE={readContext:Xn,useCallback:Lg,useContext:Xn,useEffect:Ed,useImperativeHandle:Mg,useInsertionEffect:Ag,useLayoutEffect:Ig,useMemo:zg,useReducer:_d,useRef:kg,useState:function(){return _d(Gi)},useDebugValue:Cd,useDeferredValue:function(r){var a=Qn();return Qt===null?a.memoizedState=r:Fg(a,Qt.memoizedState,r)},useTransition:function(){var r=_d(Gi)[0],a=Qn().memoizedState;return[r,a]},useMutableSource:bg,useSyncExternalStore:Rg,useId:qg,unstable_isNewReconciler:!1};function cr(r,a){if(r&&r.defaultProps){a=j({},a),r=r.defaultProps;for(var l in r)a[l]===void 0&&(a[l]=r[l]);return a}return a}function Td(r,a,l,c){a=r.memoizedState,l=l(c,a),l=l==null?a:j({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Cl={isMounted:function(r){return(r=r._reactInternals)?Pe(r)===r:!1},enqueueSetState:function(r,a,l){r=r._reactInternals;var c=xn(),h=Po(r),y=Zr(c,h);y.payload=a,l!=null&&(y.callback=l),a=_o(r,y,h),a!==null&&(pr(a,r,h,c),vl(a,r,h))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var c=xn(),h=Po(r),y=Zr(c,h);y.tag=1,y.payload=a,l!=null&&(y.callback=l),a=_o(r,y,h),a!==null&&(pr(a,r,h,c),vl(a,r,h))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=xn(),c=Po(r),h=Zr(l,c);h.tag=2,a!=null&&(h.callback=a),a=_o(r,h,c),a!==null&&(pr(a,r,c,l),vl(a,r,c))}};function Hg(r,a,l,c,h,y,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,b):a.prototype&&a.prototype.isPureReactComponent?!Ni(l,c)||!Ni(h,y):!0}function Wg(r,a,l){var c=!1,h=So,y=a.contextType;return typeof y=="object"&&y!==null?y=Xn(y):(h=Cn(a)?Xo:dn.current,c=a.contextTypes,y=(c=c!=null)?Aa(r,h):So),a=new a(l,y),r.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Cl,r.stateNode=a,a._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=h,r.__reactInternalMemoizedMaskedChildContext=y),a}function Jg(r,a,l,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,c),a.state!==r&&Cl.enqueueReplaceState(a,a.state,null)}function Pd(r,a,l,c){var h=r.stateNode;h.props=l,h.state=r.memoizedState,h.refs={},hd(r);var y=a.contextType;typeof y=="object"&&y!==null?h.context=Xn(y):(y=Cn(a)?Xo:dn.current,h.context=Aa(r,y)),h.state=r.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Td(r,a,y,l),h.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(a=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),a!==h.state&&Cl.enqueueReplaceState(h,h.state,null),wl(r,l,h,c),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308)}function $a(r,a){try{var l="",c=a;do l+=oe(c),c=c.return;while(c);var h=l}catch(y){h=`
40Error generating stack: `+y.message+`
41`+y.stack}return{value:r,source:a,stack:h,digest:null}}function Od(r,a,l){return{value:r,source:null,stack:l??null,digest:a??null}}function kd(r,a){try{console.error(a.value)}catch(l){setTimeout(function(){throw l})}}var vE=typeof WeakMap=="function"?WeakMap:Map;function Vg(r,a,l){l=Zr(-1,l),l.tag=3,l.payload={element:null};var c=a.value;return l.callback=function(){Il||(Il=!0,Jd=c),kd(r,a)},l}function Gg(r,a,l){l=Zr(-1,l),l.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var h=a.value;l.payload=function(){return c(h)},l.callback=function(){kd(r,a)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){kd(r,a),typeof c!="function"&&(Co===null?Co=new Set([this]):Co.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})}),l}function Kg(r,a,l){var c=r.pingCache;if(c===null){c=r.pingCache=new vE;var h=new Set;c.set(a,h)}else h=c.get(a),h===void 0&&(h=new Set,c.set(a,h));h.has(l)||(h.add(l),r=AE.bind(null,r,a,l),a.then(r,r))}function Yg(r){do{var a;if((a=r.tag===13)&&(a=r.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return r;r=r.return}while(r!==null);return null}function Xg(r,a,l,c,h){return(r.mode&1)===0?(r===a?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(a=Zr(-1,1),a.tag=2,_o(l,a,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=h,r)}var wE=A.ReactCurrentOwner,Tn=!1;function wn(r,a,l,c){a.child=r===null?gg(a,null,l,c):La(a,r.child,l,c)}function Qg(r,a,l,c,h){l=l.render;var y=a.ref;return Fa(a,h),c=Sd(r,a,l,c,y,h),l=bd(),r!==null&&!Tn?(a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~h,jr(r,a,h)):(kt&&l&&od(a),a.flags|=1,wn(r,a,c,h),a.child)}function Zg(r,a,l,c,h){if(r===null){var y=l.type;return typeof y=="function"&&!Zd(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(a.tag=15,a.type=y,jg(r,a,y,c,h)):(r=ql(l.type,null,c,a,a.mode,h),r.ref=a.ref,r.return=a,a.child=r)}if(y=r.child,(r.lanes&h)===0){var b=y.memoizedProps;if(l=l.compare,l=l!==null?l:Ni,l(b,c)&&r.ref===a.ref)return jr(r,a,h)}return a.flags|=1,r=ko(y,c),r.ref=a.ref,r.return=a,a.child=r}function jg(r,a,l,c,h){if(r!==null){var y=r.memoizedProps;if(Ni(y,c)&&r.ref===a.ref)if(Tn=!1,a.pendingProps=c=y,(r.lanes&h)!==0)(r.flags&131072)!==0&&(Tn=!0);else return a.lanes=r.lanes,jr(r,a,h)}return Dd(r,a,l,c,h)}function ey(r,a,l){var c=a.pendingProps,h=c.children,y=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rt(Ba,qn),qn|=l;else{if((l&1073741824)===0)return r=y!==null?y.baseLanes|l:l,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:r,cachePool:null,transitions:null},a.updateQueue=null,Rt(Ba,qn),qn|=r,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=y!==null?y.baseLanes:l,Rt(Ba,qn),qn|=c}else y!==null?(c=y.baseLanes|l,a.memoizedState=null):c=l,Rt(Ba,qn),qn|=c;return wn(r,a,h,l),a.child}function ty(r,a){var l=a.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(a.flags|=512,a.flags|=2097152)}
vendor: 14,748 bytes, line 41
41function Dd(r,a,l,c,h){var y=Cn(l)?Xo:dn.current;return y=Aa(a,y),Fa(a,h),l=Sd(r,a,l,c,y,h),c=bd(),r!==null&&!Tn?(a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~h,jr(r,a,h)):(kt&&c&&od(a),a.flags|=1,wn(r,a,l,h),a.child)}function ny(r,a,l,c,h){if(Cn(l)){var y=!0;cl(a)}else y=!1;if(Fa(a,h),a.stateNode===null)Pl(r,a),Wg(a,l,c),Pd(a,l,c,h),c=!0;else if(r===null){var b=a.stateNode,O=a.memoizedProps;b.props=O;var M=b.context,Y=l.contextType;typeof Y=="object"&&Y!==null?Y=Xn(Y):(Y=Cn(l)?Xo:dn.current,Y=Aa(a,Y));var de=l.getDerivedStateFromProps,pe=typeof de=="function"||typeof b.getSnapshotBeforeUpdate=="function";pe||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O!==c||M!==Y)&&Jg(a,b,c,Y),Ro=!1;var ce=a.memoizedState;b.state=ce,wl(a,c,b,h),M=a.memoizedState,O!==c||ce!==M||En.current||Ro?(typeof de=="function"&&(Td(a,l,de,c),M=a.memoizedState),(O=Ro||Hg(a,l,O,c,ce,M,Y))?(pe||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(a.flags|=4194308)):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=M),b.props=c,b.state=M,b.context=Y,c=O):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{b=a.stateNode,vg(r,a),O=a.memoizedProps,Y=a.type===a.elementType?O:cr(a.type,O),b.props=Y,pe=a.pendingProps,ce=b.context,M=l.contextType,typeof M=="object"&&M!==null?M=Xn(M):(M=Cn(l)?Xo:dn.current,M=Aa(a,M));var xe=l.getDerivedStateFromProps;(de=typeof xe=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O!==pe||ce!==M)&&Jg(a,b,c,M),Ro=!1,ce=a.memoizedState,b.state=ce,wl(a,c,b,h);var _e=a.memoizedState;O!==pe||ce!==_e||En.current||Ro?(typeof xe=="function"&&(Td(a,l,xe,c),_e=a.memoizedState),(Y=Ro||Hg(a,l,Y,c,ce,_e,M)||!1)?(de||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,_e,M),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,_e,M)),typeof b.componentDidUpdate=="function"&&(a.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof b.componentDidUpdate!="function"||O===r.memoizedProps&&ce===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&ce===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=_e),b.props=c,b.state=_e,b.context=M,c=Y):(typeof b.componentDidUpdate!="function"||O===r.memoizedProps&&ce===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&ce===r.memoizedState||(a.flags|=1024),c=!1)}return Ad(r,a,l,c,y,h)}function Ad(r,a,l,c,h,y){ty(r,a);var b=(a.flags&128)!==0;if(!c&&!b)return h&&sg(a,l,!1),jr(r,a,y);c=a.stateNode,wE.current=a;var O=b&&typeof l.getDerivedStateFromError!="function"?null:c.render();return a.flags|=1,r!==null&&b?(a.child=La(a,r.child,null,y),a.child=La(a,null,O,y)):wn(r,a,O,y),a.memoizedState=c.state,h&&sg(a,l,!0),a.child}function ry(r){var a=r.stateNode;a.pendingContext?ag(r,a.pendingContext,a.pendingContext!==a.context):a.context&&ag(r,a.context,!1),md(r,a.containerInfo)}function oy(r,a,l,c,h){return Ma(),ld(h),a.flags|=256,wn(r,a,l,c),a.child}var Id={dehydrated:null,treeContext:null,retryLane:0};function Nd(r){return{baseLanes:r,cachePool:null,transitions:null}}function ay(r,a,l){var c=a.pendingProps,h=Dt.current,y=!1,b=(a.flags&128)!==0,O;if((O=b)||(O=r!==null&&r.memoizedState===null?!1:(h&2)!==0),O?(y=!0,a.flags&=-129):(r===null||r.memoizedState!==null)&&(h|=1),Rt(Dt,h&1),r===null)return sd(a),r=a.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((a.mode&1)===0?a.lanes=1:r.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(b=c.children,r=c.fallback,y?(c=a.mode,y=a.child,b={mode:"hidden",children:b},(c&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=b):y=$l(b,c,0,null),r=ia(r,c,l,null),y.return=a,r.return=a,y.sibling=r,a.child=y,a.child.memoizedState=Nd(l),a.memoizedState=Id,r):Md(a,b));if(h=r.memoizedState,h!==null&&(O=h.dehydrated,O!==null))return xE(r,a,b,c,O,h,l);if(y){y=c.fallback,b=a.mode,h=r.child,O=h.sibling;var M={mode:"hidden",children:c.children};return(b&1)===0&&a.child!==h?(c=a.child,c.childLanes=0,c.pendingProps=M,a.deletions=null):(c=ko(h,M),c.subtreeFlags=h.subtreeFlags&14680064),O!==null?y=ko(O,y):(y=ia(y,b,l,null),y.flags|=2),y.return=a,c.return=a,c.sibling=y,a.child=c,c=y,y=a.child,b=r.child.memoizedState,b=b===null?Nd(l):{baseLanes:b.baseLanes|l,cachePool:null,transitions:b.transitions},y.memoizedState=b,y.childLanes=r.childLanes&~l,a.memoizedState=Id,c}return y=r.child,r=y.sibling,c=ko(y,{mode:"visible",children:c.children}),(a.mode&1)===0&&(c.lanes=l),c.return=a,c.sibling=null,r!==null&&(l=a.deletions,l===null?(a.deletions=[r],a.flags|=16):l.push(r)),a.child=c,a.memoizedState=null,c}function Md(r,a){return a=$l({mode:"visible",children:a},r.mode,0,null),a.return=r,r.child=a}function Tl(r,a,l,c){return c!==null&&ld(c),La(a,r.child,null,l),r=Md(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function xE(r,a,l,c,h,y,b){if(l)return a.flags&256?(a.flags&=-257,c=Od(Error(n(422))),Tl(r,a,b,c)):a.memoizedState!==null?(a.child=r.child,a.flags|=128,null):(y=c.fallback,h=a.mode,c=$l({mode:"visible",children:c.children},h,0,null),y=ia(y,h,b,null),y.flags|=2,c.return=a,y.return=a,c.sibling=y,a.child=c,(a.mode&1)!==0&&La(a,r.child,null,b),a.child.memoizedState=Nd(b),a.memoizedState=Id,y);if((a.mode&1)===0)return Tl(r,a,b,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var O=c.dgst;return c=O,y=Error(n(419)),c=Od(y,c,void 0),Tl(r,a,b,c)}if(O=(b&r.childLanes)!==0,Tn||O){if(c=on,c!==null){switch(b&-b){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|b))!==0?0:h,h!==0&&h!==y.retryLane&&(y.retryLane=h,Qr(r,h),pr(c,r,h,-1))}return Qd(),c=Od(Error(n(421))),Tl(r,a,b,c)}return h.data==="$?"?(a.flags|=128,a.child=r.child,a=IE.bind(null,r),h._reactRetry=a,null):(r=y.treeContext,Fn=wo(h.nextSibling),zn=a,kt=!0,ur=null,r!==null&&(Kn[Yn++]=Yr,Kn[Yn++]=Xr,Kn[Yn++]=Qo,Yr=r.id,Xr=r.overflow,Qo=a),a=Md(a,c.children),a.flags|=4096,a)}function iy(r,a,l){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),fd(r.return,a,l)}function Ld(r,a,l,c,h){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:h}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=l,y.tailMode=h)}function sy(r,a,l){var c=a.pendingProps,h=c.revealOrder,y=c.tail;if(wn(r,a,c.children,l),c=Dt.current,(c&2)!==0)c=c&1|2,a.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&iy(r,l,a);else if(r.tag===19)iy(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Rt(Dt,c),(a.mode&1)===0)a.memoizedState=null;else switch(h){case"forwards":for(l=a.child,h=null;l!==null;)r=l.alternate,r!==null&&xl(r)===null&&(h=l),l=l.sibling;l=h,l===null?(h=a.child,a.child=null):(h=l.sibling,l.sibling=null),Ld(a,!1,h,l,y);break;case"backwards":for(l=null,h=a.child,a.child=null;h!==null;){if(r=h.alternate,r!==null&&xl(r)===null){a.child=h;break}r=h.sibling,h.sibling=l,l=h,h=r}Ld(a,!0,l,null,y);break;case"together":Ld(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Pl(r,a){(a.mode&1)===0&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=2)}function jr(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),na|=a.lanes,(l&a.childLanes)===0)return null;if(r!==null&&a.child!==r.child)throw Error(n(153));if(a.child!==null){for(r=a.child,l=ko(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=ko(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function SE(r,a,l){switch(a.tag){case 3:ry(a),Ma();break;case 5:Sg(a);break;case 1:Cn(a.type)&&cl(a);break;case 4:md(a,a.stateNode.containerInfo);break;case 10:var c=a.type._context,h=a.memoizedProps.value;Rt(gl,c._currentValue),c._currentValue=h;break;case 13:if(c=a.memoizedState,c!==null)return c.dehydrated!==null?(Rt(Dt,Dt.current&1),a.flags|=128,null):(l&a.child.childLanes)!==0?ay(r,a,l):(Rt(Dt,Dt.current&1),r=jr(r,a,l),r!==null?r.sibling:null);Rt(Dt,Dt.current&1);break;case 19:if(c=(l&a.childLanes)!==0,(r.flags&128)!==0){if(c)return sy(r,a,l);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Rt(Dt,Dt.current),c)break;return null;case 22:case 23:return a.lanes=0,ey(r,a,l)}return jr(r,a,l)}var ly,zd,uy,cy;ly=function(r,a){for(var l=a.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},zd=function(){},uy=function(r,a,l,c){var h=r.memoizedProps;if(h!==c){r=a.stateNode,ea(Or.current);var y=null;switch(l){case"input":h=ae(r,h),c=ae(r,c),y=[];break;case"select":h=j({},h,{value:void 0}),c=j({},c,{value:void 0}),y=[];break;case"textarea":h=nt(r,h),c=nt(r,c),y=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=sl)}ir(l,c);var b;l=null;for(Y in h)if(!c.hasOwnProperty(Y)&&h.hasOwnProperty(Y)&&h[Y]!=null)if(Y==="style"){var O=h[Y];for(b in O)O.hasOwnProperty(b)&&(l||(l={}),l[b]="")}else Y!=="dangerouslySetInnerHTML"&&Y!=="children"&&Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(i.hasOwnProperty(Y)?y||(y=[]):(y=y||[]).push(Y,null));for(Y in c){var M=c[Y];if(O=h!=null?h[Y]:void 0,c.hasOwnProperty(Y)&&M!==O&&(M!=null||O!=null))if(Y==="style")if(O){for(b in O)!O.hasOwnProperty(b)||M&&M.hasOwnProperty(b)||(l||(l={}),l[b]="");for(b in M)M.hasOwnProperty(b)&&O[b]!==M[b]&&(l||(l={}),l[b]=M[b])}else l||(y||(y=[]),y.push(Y,l)),l=M;else Y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,O=O?O.__html:void 0,M!=null&&O!==M&&(y=y||[]).push(Y,M)):Y==="children"?typeof M!="string"&&typeof M!="number"||(y=y||[]).push(Y,""+M):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&(i.hasOwnProperty(Y)?(M!=null&&Y==="onScroll"&&Et("scroll",r),y||O===M||(y=[])):(y=y||[]).push(Y,M))}l&&(y=y||[]).push("style",l);var Y=y;(a.updateQueue=Y)&&(a.flags|=4)}},cy=function(r,a,l,c){l!==c&&(a.flags|=4)};function Yi(r,a){if(!kt)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function pn(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(a)for(var h=r.child;h!==null;)l|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=r,h=h.sibling;else for(h=r.child;h!==null;)l|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=r,h=h.sibling;return r.subtreeFlags|=c,r.childLanes=l,a}function bE(r,a,l){var c=a.pendingProps;switch(ad(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pn(a),null;case 1:return Cn(a.type)&&ul(),pn(a),null;case 3:return c=a.stateNode,qa(),Ct(En),Ct(dn),vd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(hl(a)?a.flags|=4:r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ur!==null&&(Kd(ur),ur=null))),zd(r,a),pn(a),null;case 5:gd(a);var h=ea(Wi.current);if(l=a.type,r!==null&&a.stateNode!=null)uy(r,a,l,c,h),r.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!c){if(a.stateNode===null)throw Error(n(166));return pn(a),null}if(r=ea(Or.current),hl(a)){c=a.stateNode,l=a.type;var y=a.memoizedProps;switch(c[Pr]=a,c[qi]=y,r=(a.mode&1)!==0,l){case"dialog":Et("cancel",c),Et("close",c);break;case"iframe":case"object":case"embed":Et("load",c);break;case"video":case"audio":for(h=0;h<Li.length;h++)Et(Li[h],c);break;case"source":Et("error",c);break;case"img":case"image":case"link":Et("error",c),Et("load",c);break;case"details":Et("toggle",c);break;case"input":Me(c,y),Et("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!y.multiple},Et("invalid",c);break;case"textarea":bt(c,y),Et("invalid",c)}ir(l,y),h=null;for(var b in y)if(y.hasOwnProperty(b)){var O=y[b];b==="children"?typeof O=="string"?c.textContent!==O&&(y.suppressHydrationWarning!==!0&&il(c.textContent,O,r),h=["children",O]):typeof O=="number"&&c.textContent!==""+O&&(y.suppressHydrationWarning!==!0&&il(c.textContent,O,r),h=["children",""+O]):i.hasOwnProperty(b)&&O!=null&&b==="onScroll"&&Et("scroll",c)}switch(l){case"input":rt(c),Ye(c,y,!0);break;case"textarea":rt(c),Nt(c);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(c.onclick=sl)}c=h,a.updateQueue=c,c!==null&&(a.flags|=4)}else{b=h.nodeType===9?h:h.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Ft(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=b.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=b.createElement(l,{is:c.is}):(r=b.createElement(l),l==="select"&&(b=r,c.multiple?b.multiple=!0:c.size&&(b.size=c.size))):r=b.createElementNS(r,l),r[Pr]=a,r[qi]=c,ly(r,a,!1,!1),a.stateNode=r;e:{switch(b=Cr(l,c),l){case"dialog":Et("cancel",r),Et("close",r),h=c;break;case"iframe":case"object":case"embed":Et("load",r),h=c;break;case"video":case"audio":for(h=0;h<Li.length;h++)Et(Li[h],r);h=c;break;case"source":Et("error",r),h=c;break;case"img":case"image":case"link":Et("error",r),Et("load",r),h=c;break;case"details":Et("toggle",r),h=c;break;case"input":Me(r,c),h=ae(r,c),Et("invalid",r);break;case"option":h=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},h=j({},c,{value:void 0}),Et("invalid",r);break;case"textarea":bt(r,c),h=nt(r,c),Et("invalid",r);break;default:h=c}ir(l,h),O=h;for(y in O)if(O.hasOwnProperty(y)){var M=O[y];y==="style"?Vt(r,M):y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&qt(r,M)):y==="children"?typeof M=="str
41ing"?(l!=="textarea"||M!=="")&&Wt(r,M):typeof M=="number"&&Wt(r,""+M):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(i.hasOwnProperty(y)?M!=null&&y==="onScroll"&&Et("scroll",r):M!=null&&N(r,y,M,b))}switch(l){case"input":rt(r),Ye(r,c,!1);break;case"textarea":rt(r),Nt(r);break;case"option":c.value!=null&&r.setAttribute("value",""+he(c.value));break;case"select":r.multiple=!!c.multiple,y=c.value,y!=null?Tt(r,!!c.multiple,y,!1):c.defaultValue!=null&&Tt(r,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(r.onclick=sl)}switch(l){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return pn(a),null;case 6:if(r&&a.stateNode!=null)cy(r,a,r.memoizedProps,c);else{if(typeof c!="string"&&a.stateNode===null)throw Error(n(166));if(l=ea(Wi.current),ea(Or.current),hl(a)){if(c=a.stateNode,l=a.memoizedProps,c[Pr]=a,(y=c.nodeValue!==l)&&(r=zn,r!==null))switch(r.tag){case 3:il(c.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&il(c.nodeValue,l,(r.mode&1)!==0)}y&&(a.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[Pr]=a,a.stateNode=c}return pn(a),null;case 13:if(Ct(Dt),c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(kt&&Fn!==null&&(a.mode&1)!==0&&(a.flags&128)===0)pg(),Ma(),a.flags|=98560,y=!1;else if(y=hl(a),c!==null&&c.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=a.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Pr]=a}else Ma(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pn(a),y=!1}else ur!==null&&(Kd(ur),ur=null),y=!0;if(!y)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=l,a):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(a.child.flags|=8192,(a.mode&1)!==0&&(r===null||(Dt.current&1)!==0?Zt===0&&(Zt=3):Qd())),a.updateQueue!==null&&(a.flags|=4),pn(a),null);case 4:return qa(),zd(r,a),r===null&&zi(a.stateNode.containerInfo),pn(a),null;case 10:return dd(a.type._context),pn(a),null;case 17:return Cn(a.type)&&ul(),pn(a),null;case 19:if(Ct(Dt),y=a.memoizedState,y===null)return pn(a),null;if(c=(a.flags&128)!==0,b=y.rendering,b===null)if(c)Yi(y,!1);else{if(Zt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(b=xl(r),b!==null){for(a.flags|=128,Yi(y,!1),c=b.updateQueue,c!==null&&(a.updateQueue=c,a.flags|=4),a.subtreeFlags=0,c=l,l=a.child;l!==null;)y=l,r=c,y.flags&=14680066,b=y.alternate,b===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=b.childLanes,y.lanes=b.lanes,y.child=b.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=b.memoizedProps,y.memoizedState=b.memoizedState,y.updateQueue=b.updateQueue,y.type=b.type,r=b.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Rt(Dt,Dt.current&1|2),a.child}r=r.sibling}y.tail!==null&&gt()>Ha&&(a.flags|=128,c=!0,Yi(y,!1),a.lanes=4194304)}else{if(!c)if(r=xl(b),r!==null){if(a.flags|=128,c=!0,l=r.updateQueue,l!==null&&(a.updateQueue=l,a.flags|=4),Yi(y,!0),y.tail===null&&y.tailMode==="hidden"&&!b.alternate&&!kt)return pn(a),null}else 2*gt()-y.renderingStartTime>Ha&&l!==1073741824&&(a.flags|=128,c=!0,Yi(y,!1),a.lanes=4194304);y.isBackwards?(b.sibling=a.child,a.child=b):(l=y.last,l!==null?l.sibling=b:a.child=b,y.last=b)}return y.tail!==null?(a=y.tail,y.rendering=a,y.tail=a.sibling,y.renderingStartTime=gt(),a.sibling=null,l=Dt.current,Rt(Dt,c?l&1|2:l&1),a):(pn(a),null);case 22:case 23:return Xd(),c=a.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(a.flags|=8192),c&&(a.mode&1)!==0?(qn&1073741824)!==0&&(pn(a),a.subtreeFlags&6&&(a.flags|=8192)):pn(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function RE(r,a){switch(ad(a),a.tag){case 1:return Cn(a.type)&&ul(),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return qa(),Ct(En),Ct(dn),vd(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 5:return gd(a),null;case 13:if(Ct(Dt),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Ma()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Ct(Dt),null;case 4:return qa(),null;case 10:return dd(a.type._context),null;case 22:case 23:return Xd(),null;case 24:return null;default:return null}}var Ol=!1,hn=!1,_E=typeof WeakSet=="function"?WeakSet:Set,be=null;function Ua(r,a){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){Mt(r,a,c)}else l.current=null}function Fd(r,a,l){try{l()}catch(c){Mt(r,a,c)}}var dy=!1;
vendor: 21,037 bytes, line 41
41function EE(r,a){if(Xc=Ys,r=Hm(),Bc(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var h=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var b=0,O=-1,M=-1,Y=0,de=0,pe=r,ce=null;t:for(;;){for(var xe;pe!==l||h!==0&&pe.nodeType!==3||(O=b+h),pe!==y||c!==0&&pe.nodeType!==3||(M=b+c),pe.nodeType===3&&(b+=pe.nodeValue.length),(xe=pe.firstChild)!==null;)ce=pe,pe=xe;for(;;){if(pe===r)break t;if(ce===l&&++Y===h&&(O=b),ce===y&&++de===c&&(M=b),(xe=pe.nextSibling)!==null)break;pe=ce,ce=pe.parentNode}pe=xe}l=O===-1||M===-1?null:{start:O,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qc={focusedElem:r,selectionRange:l},Ys=!1,be=a;be!==null;)if(a=be,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,be=r;else for(;be!==null;){a=be;try{var _e=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var Oe=_e.memoizedProps,Bt=_e.memoizedState,W=a.stateNode,F=W.getSnapshotBeforeUpdate(a.elementType===a.type?Oe:cr(a.type,Oe),Bt);W.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var G=a.stateNode.containerInfo;G.nodeType===1?G.textContent="":G.nodeType===9&&G.documentElement&&G.removeChild(G.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ge){Mt(a,a.return,ge)}if(r=a.sibling,r!==null){r.return=a.return,be=r;break}be=a.return}return _e=dy,dy=!1,_e}function Xi(r,a,l){var c=a.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&r)===r){var y=h.destroy;h.destroy=void 0,y!==void 0&&Fd(a,l,y)}h=h.next}while(h!==c)}}function kl(r,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var l=a=a.next;do{if((l.tag&r)===r){var c=l.create;l.destroy=c()}l=l.next}while(l!==a)}}function qd(r){var a=r.ref;if(a!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof a=="function"?a(r):a.current=r}}function fy(r){var a=r.alternate;a!==null&&(r.alternate=null,fy(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&(delete a[Pr],delete a[qi],delete a[td],delete a[sE],delete a[lE])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function py(r){return r.tag===5||r.tag===3||r.tag===4}function hy(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||py(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function $d(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?l.nodeType===8?l.parentNode.insertBefore(r,a):l.insertBefore(r,a):(l.nodeType===8?(a=l.parentNode,a.insertBefore(r,l)):(a=l,a.appendChild(r)),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=sl));else if(c!==4&&(r=r.child,r!==null))for($d(r,a,l),r=r.sibling;r!==null;)$d(r,a,l),r=r.sibling}function Ud(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Ud(r,a,l),r=r.sibling;r!==null;)Ud(r,a,l),r=r.sibling}var ln=null,dr=!1;function Eo(r,a,l){for(l=l.child;l!==null;)my(r,a,l),l=l.sibling}function my(r,a,l){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(Wr,l)}catch{}switch(l.tag){case 5:hn||Ua(l,a);case 6:var c=ln,h=dr;ln=null,Eo(r,a,l),ln=c,dr=h,ln!==null&&(dr?(r=ln,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):ln.removeChild(l.stateNode));break;case 18:ln!==null&&(dr?(r=ln,l=l.stateNode,r.nodeType===8?ed(r.parentNode,l):r.nodeType===1&&ed(r,l),Pi(r)):ed(ln,l.stateNode));break;case 4:c=ln,h=dr,ln=l.stateNode.containerInfo,dr=!0,Eo(r,a,l),ln=c,dr=h;break;case 0:case 11:case 14:case 15:if(!hn&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var y=h,b=y.destroy;y=y.tag,b!==void 0&&((y&2)!==0||(y&4)!==0)&&Fd(l,a,b),h=h.next}while(h!==c)}Eo(r,a,l);break;case 1:if(!hn&&(Ua(l,a),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(O){Mt(l,a,O)}Eo(r,a,l);break;case 21:Eo(r,a,l);break;case 22:l.mode&1?(hn=(c=hn)||l.memoizedState!==null,Eo(r,a,l),hn=c):Eo(r,a,l);break;default:Eo(r,a,l)}}function gy(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new _E),a.forEach(function(c){var h=NE.bind(null,r,c);l.has(c)||(l.add(c),c.then(h,h))})}}function fr(r,a){var l=a.deletions;if(l!==null)for(var c=0;c<l.length;c++){var h=l[c];try{var y=r,b=a,O=b;e:for(;O!==null;){switch(O.tag){case 5:ln=O.stateNode,dr=!1;break e;case 3:ln=O.stateNode.containerInfo,dr=!0;break e;case 4:ln=O.stateNode.containerInfo,dr=!0;break e}O=O.return}if(ln===null)throw Error(n(160));my(y,b,h),ln=null,dr=!1;var M=h.alternate;M!==null&&(M.return=null),h.return=null}catch(Y){Mt(h,a,Y)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)yy(a,r),a=a.sibling}function yy(r,a){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(fr(a,r),Dr(r),c&4){try{Xi(3,r,r.return),kl(3,r)}catch(Oe){Mt(r,r.return,Oe)}try{Xi(5,r,r.return)}catch(Oe){Mt(r,r.return,Oe)}}break;case 1:fr(a,r),Dr(r),c&512&&l!==null&&Ua(l,l.return);break;case 5:if(fr(a,r),Dr(r),c&512&&l!==null&&Ua(l,l.return),r.flags&32){var h=r.stateNode;try{Wt(h,"")}catch(Oe){Mt(r,r.return,Oe)}}if(c&4&&(h=r.stateNode,h!=null)){var y=r.memoizedProps,b=l!==null?l.memoizedProps:y,O=r.type,M=r.updateQueue;if(r.updateQueue=null,M!==null)try{O==="input"&&y.type==="radio"&&y.name!=null&&Ke(h,y),Cr(O,b);var Y=Cr(O,y);for(b=0;b<M.length;b+=2){var de=M[b],pe=M[b+1];de==="style"?Vt(h,pe):de==="dangerouslySetInnerHTML"?qt(h,pe):de==="children"?Wt(h,pe):N(h,de,pe,Y)}switch(O){case"input":at(h,y);break;case"textarea":Pt(h,y);break;case"select":var ce=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!y.multiple;var xe=y.value;xe!=null?Tt(h,!!y.multiple,xe,!1):ce!==!!y.multiple&&(y.defaultValue!=null?Tt(h,!!y.multiple,y.defaultValue,!0):Tt(h,!!y.multiple,y.multiple?[]:"",!1))}h[qi]=y}catch(Oe){Mt(r,r.return,Oe)}}break;case 6:if(fr(a,r),Dr(r),c&4){if(r.stateNode===null)throw Error(n(162));h=r.stateNode,y=r.memoizedProps;try{h.nodeValue=y}catch(Oe){Mt(r,r.return,Oe)}}break;case 3:if(fr(a,r),Dr(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{Pi(a.containerInfo)}catch(Oe){Mt(r,r.return,Oe)}break;case 4:fr(a,r),Dr(r);break;case 13:fr(a,r),Dr(r),h=r.child,h.flags&8192&&(y=h.memoizedState!==null,h.stateNode.isHidden=y,!y||h.alternate!==null&&h.alternate.memoizedState!==null||(Wd=gt())),c&4&&gy(r);break;case 22:if(de=l!==null&&l.memoizedState!==null,r.mode&1?(hn=(Y=hn)||de,fr(a,r),hn=Y):fr(a,r),Dr(r),c&8192){if(Y=r.memoizedState!==null,(r.stateNode.isHidden=Y)&&!de&&(r.mode&1)!==0)for(be=r,de=r.child;de!==null;){for(pe=be=de;be!==null;){switch(ce=be,xe=ce.child,ce.tag){case 0:case 11:case 14:case 15:Xi(4,ce,ce.return);break;case 1:Ua(ce,ce.return);var _e=ce.stateNode;if(typeof _e.componentWillUnmount=="function"){c=ce,l=ce.return;try{a=c,_e.props=a.memoizedProps,_e.state=a.memoizedState,_e.componentWillUnmount()}catch(Oe){Mt(c,l,Oe)}}break;case 5:Ua(ce,ce.return);break;case 22:if(ce.memoizedState!==null){xy(pe);continue}}xe!==null?(xe.return=ce,be=xe):xy(pe)}de=de.sibling}e:for(de=null,pe=r;;){if(pe.tag===5){if(de===null){de=pe;try{h=pe.stateNode,Y?(y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(O=pe.stateNode,M=pe.memoizedProps.style,b=M!=null&&M.hasOwnProperty("display")?M.display:null,O.style.display=sn("display",b))}catch(Oe){Mt(r,r.return,Oe)}}}else if(pe.tag===6){if(de===null)try{pe.stateNode.nodeValue=Y?"":pe.memoizedProps}catch(Oe){Mt(r,r.return,Oe)}}else if((pe.tag!==22&&pe.tag!==23||pe.memoizedState===null||pe===r)&&pe.child!==null){pe.child.return=pe,pe=pe.child;continue}if(pe===r)break e;for(;pe.sibling===null;){if(pe.return===null||pe.return===r)break e;de===pe&&(de=null),pe=pe.return}de===pe&&(de=null),pe.sibling.return=pe.return,pe=pe.sibling}}break;case 19:fr(a,r),Dr(r),c&4&&gy(r);break;case 21:break;default:fr(a,r),Dr(r)}}function Dr(r){var a=r.flags;if(a&2){try{e:{for(var l=r.return;l!==null;){if(py(l)){var c=l;break e}l=l.return}throw Error(n(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(Wt(h,""),c.flags&=-33);var y=hy(r);Ud(r,y,h);break;case 3:case 4:var b=c.stateNode.containerInfo,O=hy(r);$d(r,O,b);break;default:throw Error(n(161))}}catch(M){Mt(r,r.return,M)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function CE(r,a,l){be=r,vy(r)}function vy(r,a,l){for(var c=(r.mode&1)!==0;be!==null;){var h=be,y=h.child;if(h.tag===22&&c){var b=h.memoizedState!==null||Ol;if(!b){var O=h.alternate,M=O!==null&&O.memoizedState!==null||hn;O=Ol;var Y=hn;if(Ol=b,(hn=M)&&!Y)for(be=h;be!==null;)b=be,M=b.child,b.tag===22&&b.memoizedState!==null?Sy(h):M!==null?(M.return=b,be=M):Sy(h);for(;y!==null;)be=y,vy(y),y=y.sibling;be=h,Ol=O,hn=Y}wy(r)}else(h.subtreeFlags&8772)!==0&&y!==null?(y.return=h,be=y):wy(r)}}function wy(r){for(;be!==null;){var a=be;if((a.flags&8772)!==0){var l=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:hn||kl(5,a);break;case 1:var c=a.stateNode;if(a.flags&4&&!hn)if(l===null)c.componentDidMount();else{var h=a.elementType===a.type?l.memoizedProps:cr(a.type,l.memoizedProps);c.componentDidUpdate(h,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var y=a.updateQueue;y!==null&&xg(a,y,c);break;case 3:var b=a.updateQueue;if(b!==null){if(l=null,a.child!==null)switch(a.child.tag){case 5:l=a.child.stateNode;break;case 1:l=a.child.stateNode}xg(a,b,l)}break;case 5:var O=a.stateNode;if(l===null&&a.flags&4){l=O;var M=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&l.focus();break;case"img":M.src&&(l.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var Y=a.alternate;if(Y!==null){var de=Y.memoizedState;if(de!==null){var pe=de.dehydrated;pe!==null&&Pi(pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}hn||a.flags&512&&qd(a)}catch(ce){Mt(a,a.return,ce)}}if(a===r){be=null;break}if(l=a.sibling,l!==null){l.return=a.return,be=l;break}be=a.return}}function xy(r){for(;be!==null;){var a=be;if(a===r){be=null;break}var l=a.sibling;if(l!==null){l.return=a.return,be=l;break}be=a.return}}function Sy(r){for(;be!==null;){var a=be;try{switch(a.tag){case 0:case 11:case 15:var l=a.return;try{kl(4,a)}catch(M){Mt(a,l,M)}break;case 1:var c=a.stateNode;if(typeof c.componentDidMount=="function"){var h=a.return;try{c.componentDidMount()}catch(M){Mt(a,h,M)}}var y=a.return;try{qd(a)}catch(M){Mt(a,y,M)}break;case 5:var b=a.return;try{qd(a)}catch(M){Mt(a,b,M)}}}catch(M){Mt(a,a.return,M)}if(a===r){be=null;break}var O=a.sibling;if(O!==null){O.return=a.return,be=O;break}be=a.return}}var TE=Math.ceil,Dl=A.ReactCurrentDispatcher,Bd=A.ReactCurrentOwner,Zn=A.ReactCurrentBatchConfig,st=0,on=null,Kt=null,un=0,qn=0,Ba=xo(0),Zt=0,Qi=null,na=0,Al=0,Hd=0,Zi=null,Pn=null,Wd=0,Ha=1/0,eo=null,Il=!1,Jd=null,Co=null,Nl=!1,To=null,Ml=0,ji=0,Vd=null,Ll=-1,zl=0;function xn(){return(st&6)!==0?gt():Ll!==-1?Ll:Ll=gt()}function Po(r){return(r.mode&1)===0?1:(st&2)!==0&&un!==0?un&-un:cE.transition!==null?(zl===0&&(zl=hm()),zl):(r=yt,r!==0||(r=window.event,r=r===void 0?16:Rm(r.type)),r)}function pr(r,a,l,c){if(50<ji)throw ji=0,Vd=null,Error(n(185));Ri(r,l,c),((st&2)===0||r!==on)&&(r===on&&((st&2)===0&&(Al|=l),Zt===4&&Oo(r,un)),On(r,c),l===1&&st===0&&(a.mode&1)===0&&(Ha=gt()+500,dl&&bo()))}function On(r,a){var l=r.callbackNode;c_(r,a);var c=Vs(r,r===on?un:0);if(c===0)l!==null&&nn(l),r.callbackNode=null,r.callbackPriority=0;else if(a=c&-c,r.callbackPriority!==a){if(l!=null&&nn(l),a===1)r.tag===0?uE(Ry.bind(null,r)):lg(Ry.bind(null,r)),aE(function(){(st&6)===0&&bo()}),l=null;else{switch(mm(c)){case 1:l=Gn;break;case 4:l=Mn;break;case 16:l=co;break;case 536870912:l=Tr;break;default:l=co}l=Dy(l,by.bind(null,r))}r.callbackPriority=a,r.callbackNode=l}}function by(r,a){if(Ll=-1,zl=0,(st&6)!==0)throw Error(n(327));var l=r.callbackNode;if(Wa()&&r.callbackNode!==l)return null;var c=Vs(r,r===on?un:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||a)a=Fl(r,c);else{a=c;var h=st;st|=2;var y=Ey();(on!==r||un!==a)&&(eo=null,Ha=gt()+500,oa(r,a));do try{kE();break}catch(O){_y(r,O)}while(!0);cd(),Dl.current=y,st=h,Kt!==null?a=0:(on=null,un=0,a=Zt)}if(a!==0){if(a===2&&(h=Cc(r),h!==0&&(c=h,a=Gd(r,h))),a===1)throw l=Qi,oa(r,0),Oo(r,c),On(r,gt()),l;if(a===6)Oo(r,c);else{if(h=r.current.alternate,(c&30)===0&&!PE(h)&&(a=Fl(r,c),a===2&&(y=Cc(r),y!==0&&(c=y,a=Gd(r,y))),a===1))throw l=Qi,oa(r,0),Oo(r,c),On(r,gt()),l;switch(r.finishedWork=h,r.finishedLanes=c,a){case 0:case 1:throw Error(n(345));case 2:aa(r,Pn,eo);break;case 3:if(Oo(r,c),(c&130023424)===c&&(a=Wd+500-gt(),10<a)){if(Vs(r,0)!==0)break;if(h=r.suspendedLanes,(h&c)!==c){xn(),r.pingedLanes|=r.suspendedLanes&h;break}r.timeoutHandle=jc(aa.bind(null,r,Pn,eo),a);break}aa(r,Pn,eo);break;case 4:if(Oo(r,c),(c&4194240)===c)break;for(a=r.eventTimes,h=-1;0<c;){var b=31-xt(c);y=1<<b,b=a[b],b>h&&(h=b),c&=~y}if(c=h,c=gt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*TE(c/1960))-c,10<c){r.timeoutHandle=jc(aa.bind(null,r,Pn,eo),c);break}aa(r,Pn,eo);break;case 5:aa(r,Pn,eo);break;default:throw Error(n(329))}}}return On(r,gt()),r.callbackNode===l?by.bind(null,r):null}function Gd(r,a){var l=Zi;return r.current.memoizedState.isDehydrated&&(oa(r,a).flags|=256),r=Fl(r,a),r!==2&&(a=Pn,Pn=l,a!==null&&Kd(a)),r}function Kd(r){Pn===null?Pn=r:Pn.push.apply(Pn,r)}function PE(r){for(var a=r;;){if(a.flags&16384){var l=a.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var h=l[c],y=h.getSnapshot;h=h.value;try{if(!lr(y(),h))return!1}catch{return!1}}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Oo(r,a){for(a&=~Hd,a&=~Al,r.suspendedLanes|=a,r.pingedLanes&=~a,r=r.expirationTimes;0<a;){var l=31-xt(a),c=1<<l;r[l]=-1,a&=~c}}function Ry(r){if((st&6)!==0)throw Error(n(327));Wa();var a=Vs(r,0);if((a&1)===0)return On(r,gt()),null;var l=Fl(r,a);if(r.tag!==0&&l===2){var c=Cc(r);c!==0&&(a=c,l=Gd(r,c))}if(l===1)throw l=Qi,oa(r,0),Oo(r,a),On(r,gt()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=a,aa(r,Pn,eo),On(r,gt()),null}function Yd(r,a){var l=st;st|=1;try{return r(a)}finally{st=l,st===0&&(Ha=gt()+500,dl&&bo())}}function ra(r){To!==null&&To.tag===0&&(st&6)===0&&Wa();var a=st;st|=1;var l=Zn.transition,c=yt;try{if(Zn.transition=null,yt=1,r)return r()}finally{yt=c,Zn.transition=l,st=a,(st&6)===0&&bo()}}function Xd(){qn=Ba.current,Ct(Ba)}function oa(r,a){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,oE(l)),Kt!==null)for(l=Kt.return;l!==null;){var c=l;switch(ad(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&ul();break;case 3:qa(),Ct(En),Ct(dn),vd();break;case 5:gd(c);break;case 4:qa();break;case 13:Ct(Dt);break;case 19:Ct(Dt);break;case 10:dd(c.type._context);break;case 22:case 23:Xd()}l=l.return}if(on=r,Kt=r=ko(r.current,null),un=qn=a,Zt=0,Qi=null,Hd=Al=na=0,Pn=Zi=null,jo!==null){for(a=0;a<jo.length;a++)if(l=jo[a],c=l.interleaved,c!==null){l.interleaved=null;var h=c.next,y=l.pending;if(y!==null){var b=y.next;y.next=h,c.next=b}l.pending=c}jo=null}return r}function _y(r,a){do{var l=Kt;try{if(cd(),Sl.current=El,bl){for(var c=At.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}bl=!1}if(ta=0,rn=Qt=At=null,Ji=!1,Vi=0,Bd.current=null,l===null||l.return===null){Zt=1,Qi=a,Kt=null;break}e:{var y=r,b=l.return,O=l,M=a;if(a=un,O.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var Y=M,de=O,pe=de.tag;if((de.mode&1)===0&&(pe===0||pe===11||pe===15)){var ce=de.alternate;ce?(de.updateQueue=ce.updateQueue,de.memoizedState=ce.memoizedState,de.lanes=ce.lanes):(de.updateQueue=null,de.memoizedState=null)}var xe=Yg(b);if(xe!==null){xe.flags&=-257,Xg(xe,b,O,y,a),xe.mode&1&&Kg(y,Y,a),a=xe,M=Y;var _e=a.updateQueue;if(_e===null){var Oe=new Set;Oe.add(M),a.updateQueue=Oe}else _e.add(M);break e}else{if((a&1)===0){Kg(y,Y,a),Qd();break e}M=Error(n(426))}}else if(kt&&O.mode&1){var Bt=Yg(b);if(Bt!==null){(Bt.flags&65536)===0&&(Bt.flags|=256),Xg(Bt,b,O,y,a),ld($a(M,O));break e}}y=M=$a(M,O),Zt!==4&&(Zt=2),Zi===null?Zi=[y]:Zi.push(y),y=b;do{switch(y.tag){case 3:y.flags|=65536,a&=-a,y.lanes|=a;var W=Vg(y,M,a);wg(y,W);break e;case 1:O=M;var F=y.type,G=y.stateNode;if((y.flags&128)===0&&(typeof F.getDerivedStateFromError=="function"||G!==null&&typeof G.componentDidCatch=="function"&&(Co===null||!Co.has(G)))){y.flags|=65536,a&=-a,y.lanes|=a;var ge=Gg(y,O,a);wg(y,ge);break e}}y=y.return}while(y!==null)}Ty(l)}catch(Ie){a=Ie,Kt===l&&l!==null&&(Kt=l=l.return);continue}break}while(!0)}function Ey(){var r=Dl.current;return Dl.current=El,r===null?El:r}function Qd(){(Zt===0||Zt===3||Zt===2)&&(Zt=4),on===null||(na&268435455)===0&&(Al&268435455)===0||Oo(on,un)}function Fl(r,a){var l=st;st|=2;var c=Ey();(on!==r||un!==a)&&(eo=null,oa(r,a));do try{OE();break}catch(h){_y(r,h)}while(!0);if(cd(),st=l,Dl.current=c,Kt!==null)throw Error(n(261));return on=null,un=0,Zt}function OE(){for(;Kt!==null;)Cy(Kt)}function kE(){for(;Kt!==null&&!ht();)Cy(Kt)}function Cy(r){var a=ky(r.alternate,r,qn);r.memoizedProps=r.pendingProps,a===null?Ty(r):Kt=a,Bd.current=null}function Ty(r){var a=r;do{var l=a.alternate;if(r=a.return,(a.flags&32768)===0){if(l=bE(l,a,qn),l!==null){Kt=l;return}}else{if(l=RE(l,a),l!==null){l.flags&=32767,Kt=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Zt=6,Kt=null;return}}if(a=a.sibling,a!==null){Kt=a;return}Kt=a=r}while(a!==null);Zt===0&&(Zt=5)}function aa(r,a,l){var c=yt,h=Zn.transition;try{Zn.transition=null,yt=1,DE(r,a,l,c)}finally{Zn.transition=h,yt=c}return null}function DE(r,a,l,c){do Wa();while(To!==null);if((st&6)!==0)throw Error(n(327));l=r.finishedWork;var h=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=l.lanes|l.childLanes;if(d_(r,y),r===on&&(Kt=on=null,un=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Nl||(Nl=!0,Dy(co,function(){return Wa(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=Zn.transition,Zn.transition=null;var b=yt;yt=1;var O=st;st|=4,Bd.current=null,EE(r,l),yy(l,r),Q_(Qc),Ys=!!Xc,Qc=Xc=null,r.current=l,CE(l),_n(),st=O,yt=b,Zn.transition=y}else r.current=l;if(Nl&&(Nl=!1,To=r,Ml=h),y=r.pendingLanes,y===0&&(Co=null),ot(l.stateNode),On(r,gt()),a!==null)for(c=r.onRecoverableError,l=0;l<a.length;l++)h=a[l],c(h.value,{componentStack:h.stack,digest:h.digest});if(Il)throw Il=!1,r=Jd,Jd=null,r;return(Ml&1)!==0&&r.tag!==0&&Wa(),y=r.pendingLanes,(y&1)!==0?r===Vd?ji++:(ji=0,Vd=r):ji=0,bo(),null}function Wa(){if(To!==null){var r=mm(Ml),a=Zn.transition,l=yt;try{if(Zn.transition=null,yt=16>r?16:r,To===null)var c=!1;else{if(r=To,To=null,Ml=0,(st&6)!==0)throw Error(n(331));var h=st;for(st|=4,be=r.current;be!==null;){var y=be,b=y.child;if((be.flags&16)!==0){var O=y.deletions;if(O!==null){for(var M=0;M<O.length;M++){var Y=O[M];for(be=Y;be!==null;){var de=be;switch(de.tag){case 0:case 11:case 15:Xi(8,de,y)}var pe=de.child;if(pe!==null)pe.return=de,be=pe;else for(;be!==null;){de=be;var ce=de.sibling,xe=de.return;if(fy(de),de===Y){be=null;break}if(ce!==null){ce.return=xe,be=ce;break}be=xe}}}var _e=y.alternate;if(_e!==null){var Oe=_e.child;if(Oe!==null){_e.child=null;do{var Bt=Oe.sibling;Oe.sibling=null,Oe=Bt}while(Oe!==null)}}be=y}}if((y.subtreeFlags&2064)!==0&&b!==null)b.return=y,be=b;else e:for(;be!==null;){if(y=be,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Xi(9,y,y.return)}var W=y.sibling;if(W!==null){W.return=y.return,be=W;break e}be=y.return}}var F=r.current;for(be=F;be!==null;){b=be;var G=b.child;if((b.subtreeFlags&2064)!==0&&G!==null)G.return=b,be=G;else e:for(b=F;be!==null;){if(O=be,(O.flags&2048)!==0)try{switch(O.tag){case 0:case 11:case 15:kl(9,O)}}catch(Ie){Mt(O,O.return,Ie)}if(O===b){be=null;break e}var ge=O.sibling;if(ge!==null){ge.return=O.return,be=ge;break e}be=O.return}}if(st=h,bo(),vn&&typeof vn.onPostCommitFiberRoot=="function")try{vn.onPostCommitFiberRoot(Wr,r)}catch{}c=!0}return c}finally{yt=l,Zn.transition=a}}return!1}function Py(r,a,l){a=$a(l,a),a=Vg(r,a,1),r=_o(r,a,1),a=xn(),r!==null&&(Ri(r,1,a),On(r,a))}function Mt(r,a,l){if(r.tag===3)Py(r,r,l);else for(;a!==null;){if(a.tag===3){Py(a,r,l);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Co===null||!Co.has(c))){r=$a(l,r),r=Gg(a,r,1),a=_o(a,r,1),r
vendor: 4,729 bytes, line 41
41=xn(),a!==null&&(Ri(a,1,r),On(a,r));break}}a=a.return}}function AE(r,a,l){var c=r.pingCache;c!==null&&c.delete(a),a=xn(),r.pingedLanes|=r.suspendedLanes&l,on===r&&(un&l)===l&&(Zt===4||Zt===3&&(un&130023424)===un&&500>gt()-Wd?oa(r,0):Hd|=l),On(r,a)}function Oy(r,a){a===0&&((r.mode&1)===0?a=1:(a=Go,Go<<=1,(Go&130023424)===0&&(Go=4194304)));var l=xn();r=Qr(r,a),r!==null&&(Ri(r,a,l),On(r,l))}function IE(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),Oy(r,l)}function NE(r,a){var l=0;switch(r.tag){case 13:var c=r.stateNode,h=r.memoizedState;h!==null&&(l=h.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(a),Oy(r,l)}var ky;ky=function(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps||En.current)Tn=!0;else{if((r.lanes&l)===0&&(a.flags&128)===0)return Tn=!1,SE(r,a,l);Tn=(r.flags&131072)!==0}else Tn=!1,kt&&(a.flags&1048576)!==0&&ug(a,pl,a.index);switch(a.lanes=0,a.tag){case 2:var c=a.type;Pl(r,a),r=a.pendingProps;var h=Aa(a,dn.current);Fa(a,l),h=Sd(null,a,c,r,h,l);var y=bd();return a.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Cn(c)?(y=!0,cl(a)):y=!1,a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,hd(a),h.updater=Cl,a.stateNode=h,h._reactInternals=a,Pd(a,c,r,l),a=Ad(null,a,c,!0,y,l)):(a.tag=0,kt&&y&&od(a),wn(null,a,h,l),a=a.child),a;case 16:c=a.elementType;e:{switch(Pl(r,a),r=a.pendingProps,h=c._init,c=h(c._payload),a.type=c,h=a.tag=LE(c),r=cr(c,r),h){case 0:a=Dd(null,a,c,r,l);break e;case 1:a=ny(null,a,c,r,l);break e;case 11:a=Qg(null,a,c,r,l);break e;case 14:a=Zg(null,a,c,cr(c.type,r),l);break e}throw Error(n(306,c,""))}return a;case 0:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:cr(c,h),Dd(r,a,c,h,l);case 1:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:cr(c,h),ny(r,a,c,h,l);case 3:e:{if(ry(a),r===null)throw Error(n(387));c=a.pendingProps,y=a.memoizedState,h=y.element,vg(r,a),wl(a,c,null,l);var b=a.memoizedState;if(c=b.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},a.updateQueue.baseState=y,a.memoizedState=y,a.flags&256){h=$a(Error(n(423)),a),a=oy(r,a,c,l,h);break e}else if(c!==h){h=$a(Error(n(424)),a),a=oy(r,a,c,l,h);break e}else for(Fn=wo(a.stateNode.containerInfo.firstChild),zn=a,kt=!0,ur=null,l=gg(a,null,c,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ma(),c===h){a=jr(r,a,l);break e}wn(r,a,c,l)}a=a.child}return a;case 5:return Sg(a),r===null&&sd(a),c=a.type,h=a.pendingProps,y=r!==null?r.memoizedProps:null,b=h.children,Zc(c,h)?b=null:y!==null&&Zc(c,y)&&(a.flags|=32),ty(r,a),wn(r,a,b,l),a.child;case 6:return r===null&&sd(a),null;case 13:return ay(r,a,l);case 4:return md(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=La(a,null,c,l):wn(r,a,c,l),a.child;case 11:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:cr(c,h),Qg(r,a,c,h,l);case 7:return wn(r,a,a.pendingProps,l),a.child;case 8:return wn(r,a,a.pendingProps.children,l),a.child;case 12:return wn(r,a,a.pendingProps.children,l),a.child;case 10:e:{if(c=a.type._context,h=a.pendingProps,y=a.memoizedProps,b=h.value,Rt(gl,c._currentValue),c._currentValue=b,y!==null)if(lr(y.value,b)){if(y.children===h.children&&!En.current){a=jr(r,a,l);break e}}else for(y=a.child,y!==null&&(y.return=a);y!==null;){var O=y.dependencies;if(O!==null){b=y.child;for(var M=O.firstContext;M!==null;){if(M.context===c){if(y.tag===1){M=Zr(-1,l&-l),M.tag=2;var Y=y.updateQueue;if(Y!==null){Y=Y.shared;var de=Y.pending;de===null?M.next=M:(M.next=de.next,de.next=M),Y.pending=M}}y.lanes|=l,M=y.alternate,M!==null&&(M.lanes|=l),fd(y.return,l,a),O.lanes|=l;break}M=M.next}}else if(y.tag===10)b=y.type===a.type?null:y.child;else if(y.tag===18){if(b=y.return,b===null)throw Error(n(341));b.lanes|=l,O=b.alternate,O!==null&&(O.lanes|=l),fd(b,l,a),b=y.sibling}else b=y.child;if(b!==null)b.return=y;else for(b=y;b!==null;){if(b===a){b=null;break}if(y=b.sibling,y!==null){y.return=b.return,b=y;break}b=b.return}y=b}wn(r,a,h.children,l),a=a.child}return a;case 9:return h=a.type,c=a.pendingProps.children,Fa(a,l),h=Xn(h),c=c(h),a.flags|=1,wn(r,a,c,l),a.child;case 14:return c=a.type,h=cr(c,a.pendingProps),h=cr(c.type,h),Zg(r,a,c,h,l);case 15:return jg(r,a,a.type,a.pendingProps,l);case 17:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:cr(c,h),Pl(r,a),a.tag=1,Cn(c)?(r=!0,cl(a)):r=!1,Fa(a,l),Wg(a,c,h),Pd(a,c,h,l),Ad(null,a,c,!0,r,l);case 19:return sy(r,a,l);case 22:return ey(r,a,l)}throw Error(n(156,a.tag))};function Dy(r,a){return Ut(r,a)}function ME(r,a,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 7,560 bytes, line 41
41ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(r,a,l,c){return new ME(r,a,l,c)}function Zd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function LE(r){if(typeof r=="function")return Zd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===se)return 11;if(r===me)return 14}return 2}function ko(r,a){var l=r.alternate;return l===null?(l=jn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function ql(r,a,l,c,h,y){var b=2;if(c=r,typeof r=="function")Zd(r)&&(b=1);else if(typeof r=="string")b=5;else e:switch(r){case T:return ia(l.children,h,y,a);case L:b=8,h|=8;break;case $:return r=jn(12,l,a,h|2),r.elementType=$,r.lanes=y,r;case Z:return r=jn(13,l,a,h),r.elementType=Z,r.lanes=y,r;case fe:return r=jn(19,l,a,h),r.elementType=fe,r.lanes=y,r;case ue:return $l(l,h,y,a);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case re:b=10;break e;case le:b=9;break e;case se:b=11;break e;case me:b=14;break e;case X:b=16,c=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return a=jn(b,l,a,h),a.elementType=r,a.type=c,a.lanes=y,a}function ia(r,a,l,c){return r=jn(7,r,c,a),r.lanes=l,r}function $l(r,a,l,c){return r=jn(22,r,c,a),r.elementType=ue,r.lanes=l,r.stateNode={isHidden:!1},r}function jd(r,a,l){return r=jn(6,r,null,a),r.lanes=l,r}function ef(r,a,l){return a=jn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}function zE(r,a,l,c,h){this.tag=a,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tc(0),this.expirationTimes=Tc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tc(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function tf(r,a,l,c,h,y,b,O,M){return r=new zE(r,a,l,O,M),a===1?(a=1,y===!0&&(a|=8)):a=0,y=jn(3,null,null,a),r.current=y,y.stateNode=r,y.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},hd(y),r}function FE(r,a,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:c==null?null:""+c,children:r,containerInfo:a,implementation:l}}function Ay(r){if(!r)return So;r=r._reactInternals;e:{if(Pe(r)!==r||r.tag!==1)throw Error(n(170));var a=r;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Cn(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(Cn(l))return ig(r,l,a)}return a}function Iy(r,a,l,c,h,y,b,O,M){return r=tf(l,c,!0,r,h,y,b,O,M),r.context=Ay(null),l=r.current,c=xn(),h=Po(l),y=Zr(c,h),y.callback=a??null,_o(l,y,h),r.current.lanes=h,Ri(r,h,c),On(r,c),r}function Ul(r,a,l,c){var h=a.current,y=xn(),b=Po(h);return l=Ay(l),a.context===null?a.context=l:a.pendingContext=l,a=Zr(y,b),a.payload={element:r},c=c===void 0?null:c,c!==null&&(a.callback=c),r=_o(h,a,b),r!==null&&(pr(r,h,b,y),vl(r,h,b)),b}function Bl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Ny(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function nf(r,a){Ny(r,a),(r=r.alternate)&&Ny(r,a)}function qE(){return null}var My=typeof reportError=="function"?reportError:function(r){console.error(r)};function rf(r){this._internalRoot=r}Hl.prototype.render=rf.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(n(409));Ul(r,a,null,null)},Hl.prototype.unmount=rf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;ra(function(){Ul(null,r,null,null)}),a[Gr]=null}};function Hl(r){this._internalRoot=r}Hl.prototype.unstable_scheduleHydration=function(r){if(r){var a=vm();r={blockedOn:null,target:r,priority:a};for(var l=0;l<go.length&&a!==0&&a<go[l].priority;l++);go.splice(l,0,r),l===0&&Sm(r)}};function of(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Wl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Ly(){}function $E(r,a,l,c,h){if(h){if(typeof c=="function"){var y=c;c=function(){var Y=Bl(b);y.call(Y)}}var b=Iy(a,c,r,0,null,!1,!1,"",Ly);return r._reactRootContainer=b,r[Gr]=b.current,zi(r.nodeType===8?r.parentNode:r),ra(),b}for(;h=r.lastChild;)r.removeChild(h);if(typeof c=="function"){var O=c;c=function(){var Y=Bl(M);O.call(Y)}}var M=tf(r,0,!1,null,null,!1,!1,"",Ly);return r._reactRootContainer=M,r[Gr]=M.current,zi(r.nodeType===8?r.parentNode:r),ra(function(){Ul(a,M,l,c)}),M}function Jl(r,a,l,c,h){var y=l._reactRootContainer;if(y){var b=y;if(typeof h=="function"){var O=h;h=function(){var M=Bl(b);O.call(M)}}Ul(a,b,r,h)}else b=$E(l,a,r,h,c);return Bl(b)}gm=function(r){switch(r.tag){case 3:var a=r.stateNode;if(a.current.memoizedState.isDehydrated){var l=Ko(a.pendingLanes);l!==0&&(Pc(a,l|1),On(a,gt()),(st&6)===0&&(Ha=gt()+500,bo()))}break;case 13:ra(function(){var c=Qr(r,1);if(c!==null){var h=xn();pr(c,r,1,h)}}),nf(r,1)}},Oc=function(r){if(r.tag===13){var a=Qr(r,134217728);if(a!==null){var l=xn();pr(a,r,134217728,l)}nf(r,134217728)}},ym=function(r){if(r.tag===13){var a=Po(r),l=Qr(r,a);if(l!==null){var c=xn();pr(l,r,a,c)}nf(r,a)}},vm=function(){return yt},wm=function(r,a){var l=yt;try{return yt=r,a()}finally{yt=l}},Ge=function(r,a,l){switch(a){case"input":if(at(r,l),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<l.length;a++){var c=l[a];if(c!==r&&c.form===r.form){var h=ll(c);if(!h)throw Error(n(90));$e(c),at(c,h)}}}break;case"textarea":Pt(r,l);break;case"select":a=l.value,a!=null&&Tt(r,!!l.multiple,a,!1)}},ft=Yd,it=ra;var UE={usingClientEntryPoint:!1,Events:[$i,ka,ll,ke,Xe,Yd]},es={findFiberByHostInstance:Yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},BE={bundleType:es.bundleType,version:es.version,rendererPackageName:es.rendererPackageName,rendererConfig:es.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=tt(r),r===null?null:r.stateNode},findFiberByHostInstance:es.findFiberByHostInstance||qE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vl.isDisabled&&Vl.supportsFiber)try{Wr=Vl.inject(BE),vn=Vl}catch{}}return kn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UE,kn.createPortal=function(r,a){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!of(a))throw Error(n(200));return FE(r,a,null,l)},kn.createRoot=function(r,a){if(!of(r))throw Error(n(299));var l=!1,c="",h=My;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onRecoverableError!==void 0&&(h=a.onRecoverableError)),a=tf(r,1,!1,null,null,l,!1,c,h),r[Gr]=a.current,zi(r.nodeType===8?r.parentNode:r),new rf(a)},kn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=tt(a),r=r===null?null:r.stateNode,r},kn.flushSync=function(r){return ra(r)},kn.hydrate=function(r,a,l){if(!Wl(a))throw Error(n(200));return Jl(null,r,a,!0,l)},kn.hydrateRoot=function(r,a,l){if(!of(r))throw Error(n(405));var c=l!=null&&l.hydratedSources||null,h=!1,y="",b=My;if(l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(b=l.onRecoverableError)),a=Iy(a,null,r,1,l??null,h,!1,y,b),r[Gr]=a.current,zi(r),c)for(r=0;r<c.length;r++)l=c[r],h=l._getVersion,h=h(l._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[l,h]:a.mutableSourceEagerHydrationData.push(l,h);return new Hl(a)},kn.render=function(r,a,l){if(!Wl(a))throw Error(n(200));return Jl(null,r,a,!1,l)},kn.unmountComponentAtNode=function(r){if(!Wl(r))throw Error(n(40));return r._reactRootContainer?(ra(function(){Jl(null,null,r,!1,function(){r._reactRootContainer=null,r[Gr]=null})}),!0):!1},kn.unstable_batchedUpdates=Yd,kn.unstable_renderSubtreeIntoContainer=function(r,a,l,c){if(!Wl(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Jl(r,a,l,!1,c)},kn.version="18.3.1-next-f1338f8080-20240426",kn}var Wy;function i0(){if(Wy)return lf.exports;Wy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),lf.exports=ZE(),lf.exports}var Jy;function jE(){if(Jy)return Gl;Jy=1;var e=i0();return Gl.createRoot=e.createRoot,Gl.hydrateRoot=e.hydrateRoot,Gl}var Vy=jE(),v=Vu();const J=Is(v),Gu=VE({__proto__:null,default:J},[v]);var df={exports:{}},ff={};/**
42 * @license React
43 * use-sync-external-store-with-selector.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 Gy;function eC(){if(Gy)return ff;Gy=1;var e=Vu();function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,o=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,u=e.useMemo,d=e.useDebugValue;return ff.useSyncExternalStoreWithSelector=function(f,p,g,m,w){var x=i(null);if(x.current===null){var R={hasValue:!1,value:null};x.current=R}else R=x.current;x=u(function(){function E(q){if(!C){if(C=!0,P=q,q=m(q),w!==void 0&&R.hasValue){var U=R.value;if(w(U,q))return N=U}return N=q}if(U=N,n(P,q))return U;var T=m(q);return w!==void 0&&w(U,T)?(P=q,U):(P=q,N=T)}var C=!1,P,N,A=g===void 0?null:g;return[function(){return E(p())},A===null?void 0:function(){return E(A())}]},[p,g,m,w]);var _=o(f,x[0],x[1]);return s(function(){R.hasValue=!0,R.value=_},[_]),d(_),_},ff}var Ky;function tC(){return Ky||(Ky=1,df.exports=eC()),df.exports}var nC=tC();function rC(e){e()}function oC(){let e=null,t=null;return{clear(){e=null,t=null},notify(){rC(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let o=e;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!o||e===null||(o=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Yy={notify(){},get:()=>[]};function aC(e,t){let n,o=Yy,i=0,s=!1;function u(_){g();const E=o.subscribe(_);let C=!1;return()=>{C||(C=!0,E(),m())}}function d(){o.notify()}function f(){R.onStateChange&&R.onStateChange()}function p(){return s}function g(){i++,n||(n=e.subscribe(f),o=oC())}function m(){i--,n&&i===0&&(n(),n=void 0,o.clear(),o=Yy)}function w(){s||(s=!0,g())}function x(){s&&(s=!1,m())}const R={addNestedSub:u,notifyNestedSubs:d,handleChangeWrapper:f,isSubscribed:p,trySubscribe:w,tryUnsubscribe:x,getListeners:()=>o};return R}var iC=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sC=iC(),lC=()=>typeof navigator<"u"&&navigator.product==="ReactNative",uC=lC(),cC=()=>sC||uC?v.useLayoutEffect:v.useEffect,dC=cC(),pf=Symbol.for("react-redux-context"),hf=typeof globalThis<"u"?globalThis:{};function fC(){if(!v.createContext)return{};const e=hf[pf]??(hf[pf]=new Map);let t=e.get(v.createContext);return t||(t=v.createContext(null),e.set(v.createContext,t)),t}var Fo=fC();function pC(e){const{children:t,context:n,serverState:o,store:i}=e,s=v.useMemo(()=>{const f=aC(i);return{store:i,subscription:f,getServerState:o?()=>o:void 0}},[i,o]),u=v.useMemo(()=>i.getState(),[i]);dC(()=>{const{subscription:f}=s;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),u!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[s,u]);const d=n||Fo;return v.createElement(d.Provider,{value:s},t)}var hC=pC;function nh(e=Fo){return function(){return v.useContext(e)}}
49var s0=nh();function l0(e=Fo){const t=e===Fo?s0:nh(e),n=()=>{const{store:o}=t();return o};return Object.assign(n,{withTypes:()=>n}),n}var mC=l0();function gC(e=Fo){const t=e===Fo?mC:l0(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var u0=gC(),yC=(e,t)=>e===t;function vC(e=Fo){const t=e===Fo?s0:nh(e),n=(o,i={})=>{const{equalityFn:s=yC}=typeof i=="function"?{equalityFn:i}:i,u=t(),{store:d,subscription:f,getServerState:p}=u;v.useRef(!0);const g=v.useCallback({[o.name](w){return o(w)}}[o.name],[o]),m=nC.useSyncExternalStoreWithSelector(f.addNestedSub,d.getState,p||d.getState,g,s);return v.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var c0=vC(),mf,Xy;function wC(){if(Xy)return mf;Xy=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,u){if(s===u)return!0;if(s&&u&&typeof s=="object"&&typeof u=="object"){if(s.constructor!==u.constructor)return!1;var d,f,p;if(Array.isArray(s)){if(d=s.length,d!=u.length)return!1;for(f=d;f--!==0;)if(!i(s[f],u[f]))return!1;return!0}var g;if(t&&s instanceof Map&&u instanceof Map){if(s.size!==u.size)return!1;for(g=s.entries();!(f=g.next()).done;)if(!u.has(f.value[0]))return!1;for(g=s.entries();!(f=g.next()).done;)if(!i(f.value[1],u.get(f.value[0])))return!1;return!0}if(n&&s instanceof Set&&u instanceof Set){if(s.size!==u.size)return!1;for(g=s.entries();!(f=g.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(u)){if(d=s.length,d!=u.length)return!1;for(f=d;f--!==0;)if(s[f]!==u[f])return!1;return!0}if(s.constructor===RegExp)return s.source===u.source&&s.flags===u.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof u.valueOf=="function")return s.valueOf()===u.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof u.toString=="function")return s.toString()===u.toString();if(p=Object.keys(s),d=p.length,d!==Object.keys(u).length)return!1;for(f=d;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,p[f]))return!1;if(e&&s instanceof Element)return!1;for(f=d;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&s.$$typeof)&&!i(s[p[f]],u[p[f]]))return!1;return!0}return s!==s&&u!==u}return mf=function(u,d){try{return i(u,d)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},mf}var xC=wC();const SC=Is(xC);var gf,Qy;function bC(){if(Qy)return gf;Qy=1;var e=function(t,n,o,i,s,u,d,f){if(!t){var p;if(n===void 0)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[o,i,s,u,d,f],m=0;p=new Error(n.replace(/%s/g,function(){return g[m++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}};return gf=e,gf}var RC=bC();const Zy=Is(RC);var yf,jy;function _C(){return jy||(jy=1,yf=function(t,n,o,i){var s=o?o.call(i,t,n):void 0;if(s!==void 0)return!!s;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var u=Object.keys(t),d=Object.keys(n);if(u.length!==d.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(n),p=0;p<u.length;p++){var g=u[p];if(!f(g))return!1;var m=t[g],w=n[g];if(s=o?o.call(i,m,w,g):void 0,s===!1||s===void 0&&m!==w)return!1}return!0}),yf}var EC=_C();const CC=Is(EC);var d0=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(d0||{}),vf={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},ev=Object.values(d0),rh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},TC=Object.entries(rh).reduce((e,[t,n])=>(e[n]=t,e),{}),yr="data-rh",ai={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ii=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const o=e[n];if(Object.prototype.hasOwnProperty.call(o,t))return o[t]}return null},PC=e=>{let t=ii(e,"title");const n=ii(e,ai.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const o=ii(e,ai.DEFAULT_TITLE);return t||o||void 0},OC=e=>ii(e,ai.ON_CHANGE_CLIENT_STATE)||(()=>{}),wf=(e,t)=>
49t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,o)=>({...n,...o}),{}),kC=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,o)=>{if(!n.length){const i=Object.keys(o);for(let s=0;s<i.length;s+=1){const d=i[s].toLowerCase();if(e.indexOf(d)!==-1&&o[d])return n.concat(o)}}return n},[]),DC=e=>console&&typeof console.warn=="function"&&console.warn(e),ns=(e,t,n)=>{const o={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&DC(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,s)=>{const u={};s.filter(f=>{let p;const g=Object.keys(f);for(let w=0;w<g.length;w+=1){const x=g[w],R=x.toLowerCase();t.indexOf(R)!==-1&&!(p==="rel"&&f[p].toLowerCase()==="canonical")&&!(R==="rel"&&f[R].toLowerCase()==="stylesheet")&&(p=R),t.indexOf(x)!==-1&&(x==="innerHTML"||x==="cssText"||x==="itemprop")&&(p=x)}if(!p||!f[p])return!1;const m=f[p].toLowerCase();return o[p]||(o[p]={}),u[p]||(u[p]={}),o[p][m]?!1:(u[p][m]=!0,!0)}).reverse().forEach(f=>i.push(f));const d=Object.keys(u);for(let f=0;f<d.length;f+=1){const p=d[f],g={...o[p],...u[p]};o[p]=g}return i},[]).reverse()},AC=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},IC=e=>({baseTag:kC(["href"],e),bodyAttributes:wf("bodyAttributes",e),defer:ii(e,ai.DEFER),encode:ii(e,ai.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:wf("htmlAttributes",e),linkTags:ns("link",["rel","href"],e),metaTags:ns("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ns("noscript",["innerHTML"],e),onChangeClientState:OC(e),scriptTags:ns("script",["src","innerHTML"],e),styleTags:ns("style",["cssText"],e),title:PC(e),titleAttributes:wf("titleAttributes",e),prioritizeSeoTags:AC(e,ai.PRIORITIZE_SEO_TAGS)}),f0=e=>Array.isArray(e)?e.join(""):e,NC=(e,t)=>{const n=Object.keys(e);for(let o=0;o<n.length;o+=1)if(t[n[o]]&&t[n[o]].includes(e[n[o]]))return!0;return!1},xf=(e,t)=>Array.isArray(e)?e.reduce((n,o)=>(NC(o,t)?n.priority.push(o):n.default.push(o),n),{priority:[],default:[]}):{default:e,priority:[]},tv=(e,t)=>({...e,[t]:void 0}),MC=["noscript","script","style"],yp=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),p0=e=>Object.keys(e).reduce((t,n)=>{const o=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${o}`:o},""),LC=(e,t,n,o)=>{const i=p0(n),s=f0(t);return i?`<${e} ${yr}="true" ${i}>${yp(s,o)}</${e}>`:`<${e} ${yr}="true">${yp(s,o)}</${e}>`},zC=(e,t,n=!0)=>t.reduce((o,i)=>{const s=i,u=Object.keys(s).filter(p=>!(p==="innerHTML"||p==="cssText")).reduce((p,g)=>{const m=typeof s[g]>"u"?g:`${g}="${yp(s[g],n)}"`;return p?`${p} ${m}`:m},""),d=s.innerHTML||s.cssText||"",f=MC.indexOf(e)===-1;return`${o}<${e} ${yr}="true" ${u}${f?"/>":`>${d}</${e}>`}`},""),h0=(e,t={})=>Object.keys(e).reduce((n,o)=>{const i=rh[o];return n[i||o]=e[o],n},t),FC=(e,t,n)=>{const o={key:t,[yr]:!0},i=h0(n,o);return[J.createElement("title",i,t)]},hu=(e,t)=>t.map((n,o)=>{const i={key:o,[yr]:!0};return Object.keys(n).forEach(s=>{const d=rh[s]||s;if(d==="innerHTML"||d==="cssText"){const f=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:f}}else i[d]=n[s]}),J.createElement(e,i)}),er=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>FC(e,t.title,t.titleAttributes),toString:()=>LC(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>h0(t),toString:()=>p0(t)};default:return{toComponent:()=>hu(e,t),toString:()=>zC(e,t,n)}}},qC=({metaTags:e,linkTags:t,scriptTags:n,encode:o})=>{const i=xf(e,vf.meta),s=xf(t,vf.link),u=xf(n,vf.script);return{priorityMethods:{toComponent:()=>[...hu("meta",i.priority),...hu("link",s.priority),...hu("script",u.priority)],toString:()=>`${er("meta",i.priority,o)} ${er("link",s.priority,o)} ${er("script",u.priority,o)}`},metaTags:i.default,linkTags:s.default,scriptTags:u.default}},$C=e=>{const{baseTag:t,bodyAttributes:n,encode:o=!0,htmlAttributes:i,noscriptTags:s,styleTags:u,title:d="",titleAttributes:f,prioritizeSeoTags:p}=e;let{linkTags:g,metaTags:m,scriptTags:w}=e,x={toComponent:()=>{},toString:()=>""};return p&&({priorityMethods:x,linkTags:g,metaTags:m,scriptTags:w}=qC(e)),{priority:x,base:er("base",t,o),bodyAttributes:er("bodyAttributes",n,o),htmlAttributes:er("htmlAttributes",i,o),link:er("link",g,o),meta:er("meta",m,o),noscript:er("noscript",s,o),script:er("script",w,o),style:er("style",u,o),title:er("title",{title:d,titleAttributes:f},o)}},vp=$C,Kl=[],m0=!!(typeof window<"u"&&window.document&&window.document.createElement),wp=class{constructor(e,t){hr(this,"instances",[]);hr(this,"canUseDOM",m0);hr(this,"context");hr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Kl:this.instances,add:e=>{(this.canUseDOM?Kl:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Kl:this.instances).indexOf(e);(this.canUseDOM?Kl:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=vp({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},UC={},g0=J.createContext(UC),fa,y0=(fa=class extends v.Component{constructor(n){super(n);hr(this,"helmetData");this.helmetData=new wp(this.props.context||{},fa.canUseDOM)}render(){return J.createElement(g0.Provider,{value:this.helmetData.value},this.props.children)}},hr(fa,"canUseDOM",m0),fa),Ja=(e,t)=>{const n=document.head||document.querySelector("head"),o=n.querySelectorAll(`${e}[${yr}]`),i=[].slice.call(o),s=[];let u;return t&&t.length&&t.forEach(d=>{const f=document.createElement(e);for(const p in d)if(Object.prototype.hasOwnProperty.call(d,p))if(p==="innerHTML")f.innerHTML=d.innerHTML;else if(p==="cssText")f.styleSheet?f.styleSheet.cssText=d.cssText:f.appendChild(document.createTextNode(d.cssText));else{const g=p,m=typeof d[g]>"u"?"":d[g];f.setAttribute(p,m)}f.setAttribute(yr,"true"),i.some((p,g)=>(u=g,f.isEqualNode(p)))?i.splice(u,1):s.push(f)}
49),i.forEach(d=>{var f;return(f=d.parentNode)==null?void 0:f.removeChild(d)}),s.forEach(d=>n.appendChild(d)),{oldTags:i,newTags:s}},xp=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const o=n.getAttribute(yr),i=o?o.split(","):[],s=[...i],u=Object.keys(t);for(const d of u){const f=t[d]||"";n.getAttribute(d)!==f&&n.setAttribute(d,f),i.indexOf(d)===-1&&i.push(d);const p=s.indexOf(d);p!==-1&&s.splice(p,1)}for(let d=s.length-1;d>=0;d-=1)n.removeAttribute(s[d]);i.length===s.length?n.removeAttribute(yr):n.getAttribute(yr)!==u.join(",")&&n.setAttribute(yr,u.join(","))},BC=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=f0(e)),xp("title",t)},nv=(e,t)=>{const{baseTag:n,bodyAttributes:o,htmlAttributes:i,linkTags:s,metaTags:u,noscriptTags:d,onChangeClientState:f,scriptTags:p,styleTags:g,title:m,titleAttributes:w}=e;xp("body",o),xp("html",i),BC(m,w);const x={baseTag:Ja("base",n),linkTags:Ja("link",s),metaTags:Ja("meta",u),noscriptTags:Ja("noscript",d),scriptTags:Ja("script",p),styleTags:Ja("style",g)},R={},_={};Object.keys(x).forEach(E=>{const{newTags:C,oldTags:P}=x[E];C.length&&(R[E]=C),P.length&&(_[E]=x[E].oldTags)}),t&&t(),f(e,R,_)},rs=null,HC=e=>{rs&&cancelAnimationFrame(rs),e.defer?rs=requestAnimationFrame(()=>{nv(e,()=>{rs=null})}):(nv(e),rs=null)},WC=HC,rv=class extends v.Component{constructor(){super(...arguments);hr(this,"rendered",!1)}shouldComponentUpdate(t){return!CC(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let o=null;const i=IC(t.get().map(s=>{const u={...s.props};return delete u.context,u}));y0.canUseDOM?WC(i):vp&&(o=vp(i)),n(o)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},gp,JC=(gp=class extends v.Component{shouldComponentUpdate(e){return!SC(tv(this.props,"helmetData"),tv(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,o){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,o)}]}}mapObjectTypeChildren(e,t,n,o){switch(e.type){case"title":return{...t,[e.type]:o,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(o=>{n={...n,[o]:e[o]}}),n}warnOnInvalidChildren(e,t){return Zy(ev.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${ev.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Zy(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return J.Children.forEach(e,o=>{if(!o||!o.props)return;const{children:i,...s}=o.props,u=Object.keys(s).reduce((f,p)=>(f[TC[p]||p]=s[p],f),{});let{type:d}=o;
49switch(typeof d=="symbol"?d=d.toString():this.warnOnInvalidChildren(o,i),d){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(o,n,u,i);break;default:t=this.mapObjectTypeChildren(o,t,u,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:o}=t;if(e&&(n=this.mapChildrenToProps(e,n)),o&&!(o instanceof wp)){const i=o;o=new wp(i.context,!0),delete n.helmetData}return o?J.createElement(rv,{...n,context:o.value}):J.createElement(g0.Consumer,null,i=>J.createElement(rv,{...n,context:i}))}},hr(gp,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),gp);/**
50 * react-router v7.13.0
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */var v0=e=>{throw TypeError(e)},VC=(e,t,n)=>t.has(e)||v0("Cannot "+n),Sf=(e,t,n)=>(VC(e,t,"read from private field"),n?n.call(e):t.get(e)),GC=(e,t,n)=>t.has(e)?v0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ov="popstate";function KC(e={}){function t(o,i){let{pathname:s,search:u,hash:d}=o.location;return Rs("",{pathname:s,search:u,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){return typeof i=="string"?i:Fr(i)}return XC(t,n,null,e)}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function YC(){return Math.random().toString(36).substring(2,10)}function av(e,t){return{usr:e.state,key:e.key,idx:t}}function Rs(e,t,n=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ho(t):t,state:n,key:t&&t.key||o||YC()}}function Fr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ho(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function XC(e,t,n,o={}){let{window:i=document.defaultView,v5Compat:s=!1}=o,u=i.history,d="POP",f=null,p=g();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function g(){return(u.state||{idx:null}).idx}function m(){d="POP";let E=g(),C=E==null?null:E-p;p=E,f&&f({action:d,location:_.location,delta:C})}function w(E,C){d="PUSH";let P=Rs(_.location,E,C);p=g()+1;let N=av(P,p),A=_.createHref(P);try{u.pushState(N,"",A)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;i.location.assign(A)}s&&f&&f({action:d,location:_.location,delta:1})}function x(E,C){d="REPLACE";let P=Rs(_.location,E,C);p=g();let N=av(P,p),A=_.createHref(P);u.replaceState(N,"",A),s&&f&&f({action:d,location:_.location,delta:0})}function R(E){return w0(E)}let _={get action(){return d},get location(){return e(i,u)},listen(E){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(ov,m),f=E,()=>{i.removeEventListener(ov,m),f=null}},createHref(E){return t(i,E)},createURL:R,encodeLocation(E){let C=R(E);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:w,replace:x,go(E){return u.go(E)}};return _}function w0(e,t=!1){let n="http://localhost";
58typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ze(n,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:Fr(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=n+o),new URL(o,n)}var fs,iv=class{constructor(e){if(GC(this,fs,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Sf(this,fs).has(e))return Sf(this,fs).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Sf(this,fs).set(e,t)}};fs=new WeakMap;var QC=new Set(["lazy","caseSensitive","path","id","index","children"]);function ZC(e){return QC.has(e)}var jC=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function eT(e){return jC.has(e)}function tT(e){return e.index===!0}function _s(e,t,n=[],o={},i=!1){return e.map((s,u)=>{let d=[...n,String(u)],f=typeof s.id=="string"?s.id:d.join("-");if(Ze(s.index!==!0||!s.children,"Cannot specify children on an index route"),Ze(i||!o[f],`Found a route id collision on i
58d "${f}".  Route id's must be globally unique within Data Router usages`),tT(s)){let p={...s,id:f};return o[f]=sv(p,t(p)),p}else{let p={...s,id:f,children:void 0};return o[f]=sv(p,t(p)),s.children&&(p.children=_s(s.children,t,d,o,i)),p}})}function sv(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function No(e,t,n="/"){return ps(e,t,n,!1)}function ps(e,t,n,o){let i=typeof t=="string"?Ho(t):t,s=Nn(i.pathname||"/",n);if(s==null)return null;let u=x0(e);rT(u);let d=null;for(let f=0;d==null&&f<u.length;++f){let p=hT(s);d=fT(u[f],p,o)}return d}function nT(e,t){let{route:n,pathname:o,params:i}=e;return{id:n.id,pathname:o,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function x0(e,t=[],n=[],o="",i=!1){let s=(u,d,f=i,p)=>{let g={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(o)&&f)return;Ze(g.relativePath.startsWith(o),`Absolute route path "${g.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(o.length)}let m=Lr([o,g.relativePath]),w=n.concat(g);u.children&&u.children.length>0&&(Ze(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),x0(u.children,t,w,m,f)),!(u.path==null&&!u.index)&&t.push({path:m,score:cT(m,u.index),routesMeta:w})};return e.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))s(u,d);else for(let p of S0(u.path))s(u,d,!0,p)}),t}function S0(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(o.length===0)return i?[s,""]:[s];let u=S0(o.join("/")),d=[];return d.push(...u.map(f=>f===""?s:[s,f].join("/"))),i&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function rT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dT(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}
58var oT=/^:[\w-]+$/,aT=3,iT=2,sT=1,lT=10,uT=-2,lv=e=>e==="*";function cT(e,t){let n=e.split("/"),o=n.length;return n.some(lv)&&(o+=uT),t&&(o+=iT),n.filter(i=>!lv(i)).reduce((i,s)=>i+(oT.test(s)?aT:s===""?sT:lT),o)}function dT(e,t){return e.length===t.length&&e.slice(0,-1).every((o,i)=>o===t[i])?e[e.length-1]-t[t.length-1]:0}function fT(e,t,n=!1){let{routesMeta:o}=e,i={},s="/",u=[];for(let d=0;d<o.length;++d){let f=o[d],p=d===o.length-1,g=s==="/"?t:t.slice(s.length)||"/",m=Eu({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},g),w=f.route;if(!m&&p&&n&&!o[o.length-1].route.index&&(m=Eu({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},g)),!m)return null;Object.assign(i,m.params),u.push({params:i,pathname:Lr([s,m.pathname]),pathnameBase:yT(Lr([s,m.pathnameBase])),route:w}),m.pathnameBase!=="/"&&(s=Lr([s,m.pathnameBase]))}return u}function Eu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=pT(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],u=s.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:o.reduce((p,{paramName:g,isOptional:m},w)=>{if(g==="*"){let R=d[w]||"";u=s.slice(0,s.length-R.length).replace(/(.)\/+$/,"$1")}const x=d[w];return m&&!x?p[g]=void 0:p[g]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:u,pattern:e}}function pT(e,t=!1,n=!0){Lt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f)=>(o.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),o]}function hT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Lt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Nn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}function mT({basename:e,pathname:t}){return t==="/"?e:Lr([e,t])}var b0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oh=e=>b0.test(e);function gT(e,t="/"){let{pathname:n,search:o="",hash:i=""}=typeof e=="string"?Ho(e):e,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=uv(n.substring(1),"/"):s=uv(n,t)):s=t,{pathname:s,search:vT(o),hash:wT(i)}}function uv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function bf(e,t,n,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function R0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ku(e){let t=R0(e);return t.map((n,o)=>o===t.length-1?n.pathname:n.pathnameBase)}function Yu(e,t,n,o=!1){let i;typeof e=="string"?i=Ho(e):(i={...e},Ze(!i.pathname||!i.pathname.includes("?"),bf("?","pathname","search",i)),Ze(!i.pathname||!i.pathname.includes("#"),bf("#","pathname","hash",i)),Ze(!i.search||!i.search.includes("#"),bf("#","search","hash",i)));let s=e===""||i.pathname==="",u=s?"/":i.pathname,d;if(u==null)d=n;else{let m=t.length-1;if(!o&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),m-=1;i.pathname=w.join("/")}d=m>=0?t[m]:"/"}let f=gT(i,d),p=u&&u!=="/"&&u.endsWith("/"),g=(s||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||g)&&(f.pathname+="/"),f}var Lr=e=>e.join("/").replace(/\/\/+/g,"/"),yT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ns=class{constructor(e,t,n,o=!1){this.status=e,this.statusText=t||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Es(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ms(e){return e.map(t=>
58t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var _0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function E0(e,t){let n=e;if(typeof n!="string"||!b0.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let o=n,i=!1;if(_0)try{let s=new URL(window.location.href),u=n.startsWith("//")?new URL(s.protocol+n):new URL(n),d=Nn(u.pathname,t);u.origin===s.origin&&d!=null?n=d+u.search+u.hash:i=!0}catch{Lt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:i,to:n}}var Lo=Symbol("Uninstrumented");function xT(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(i=>i({id:t.id,index:t.index,path:t.path,instrument(s){let u=Object.keys(n);for(let d of u)s[d]&&n[d].push(s[d])}}));let o={};if(typeof t.lazy=="function"&&n.lazy.length>0){let i=ni(n.lazy,t.lazy,()=>{});i&&(o.lazy=i)}if(typeof t.lazy=="object"){let i=t.lazy;["middleware","loader","action"].forEach(s=>{let u=i[s],d=n[`lazy.${s}`];if(typeof u=="function"&&d.length>0){let f=ni(d,u,()=>{});f&&(o.lazy=Object.assign(o.lazy||{},{[s]:f}))}})}return["loader","action"].forEach(i=>{let s=t[i];if(typeof s=="function"&&n[i].length>0){let u=s[Lo]??s,d=ni(n[i],u,(...f)=>cv(f[0]));d&&(i==="loader"&&u.hydrate===!0&&(d.hydrate=!0),d[Lo]=u,o[i]=d)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(o.middleware=t.middleware.map(i=>{let s=i[Lo]??i,u=ni(n.middleware,s,(...d)=>cv(d[0]));return u?(u[Lo]=s,u):i})),o}function ST(e,t){let n={navigate:[],fetch:[]};if(t.forEach(o=>o({instrument(i){let s=Object.keys(i);for(let u of s)i[u]&&n[u].push(i[u])}})),n.navigate.length>0){let o=e.navigate[Lo]??e.navigate,i=ni(n.navigate,o,(...s)=>{let[u,d]=s;return{to:typeof u=="number"||typeof u=="string"?u:u?Fr(u):".",...dv(e,d??{})}});i&&(i[Lo]=o,e.navigate=i)}if(n.fetch.length>0){let o=e.fetch[Lo]??e.fetch,i=ni(n.fetch,o,(...s)=>{let[u,,d,f]=s;return{href:d??".",fetcherKey:u,...dv(e,f??{})}});i&&(i[Lo]=o,e.fetch=i)}return e}function ni(e,t,n){return e.length===0?null:async(...o)=>{let i=await C0(e,n(...o),()=>t(...o),e.length-1);if(i.type==="error")throw i.value;return i.value}}async function C0(e,t,n,o){let i=e[o],s;if(i){let u,d=async()=>(u?console.error("You cannot call instrumented handlers more than once"):u=C0(e,t,n,o-1),s=await u,Ze(s,"Expected a result"),s.type==="error"&&s.value instanceof Error?{status:"error",error:s.value}:{status:"success",error:void 0});try{await i(d,t)}catch(f){console.error("An instrumentation function threw an error:",f)}u||await d(),await u}else try{s={type:"success",value:await n()}}catch(u){s={type:"error",value:u}}return s||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function cv(e){let{request:t,context:n,params:o,unstable_pattern:i}=e;return{request:bT(t),params:{...o},unstable_pattern:i,context:RT(n)}}function dv(e,t){return{currentUrl:Fr(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function bT(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function RT(e){if(ET(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var _T=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ET(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===_T}var T0=["POST","PUT","PATCH","DELETE"],CT=new Set(T0),TT=["GET",...T0],PT=new Set(TT),P0=new Set([301,302,303,307,308]),OT=new Set([307,308]),Rf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},kT={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Za={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},DT=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),O0="remix-router-transitions",k0=Symbol("ResetLoaderData");function AT(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Ze(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o=e.hydrationRouteProperties||[],i=e.mapRouteProperties||DT,s=i;
58if(e.unstable_instrumentations){let k=e.unstable_instrumentations;s=z=>({...i(z),...xT(k.map(K=>K.route).filter(Boolean),z)})}let u={},d=_s(e.routes,s,void 0,u),f,p=e.basename||"/";p.startsWith("/")||(p=`/${p}`);let g=e.dataStrategy||zT,m={...e.future},w=null,x=new Set,R=null,_=null,E=null,C=e.hydrationData!=null,P=No(d,e.history.location,p),N=!1,A=null,q;if(P==null&&!e.patchRoutesOnNavigation){let k=nr(404,{pathname:e.history.location.pathname}),{matches:z,route:K}=Yl(d);q=!0,P=z,A={[K.id]:k}}else if(P&&!e.hydrationData&&it(P,d,e.history.location.pathname).active&&(P=null),P)if(P.some(k=>k.route.lazy))q=!1;else if(!P.some(k=>ah(k.route)))q=!0;else{let k=e.hydrationData?e.hydrationData.loaderData:null,z=e.hydrationData?e.hydrationData.errors:null;if(z){let K=P.findIndex(ie=>z[ie.route.id]!==void 0);q=P.slice(0,K+1).every(ie=>!bp(ie.route,k,z))}else q=P.every(K=>!bp(K.route,k,z))}else{q=!1,P=[];let k=it(null,d,e.history.location.pathname);k.active&&k.matches&&(N=!0,P=k.matches)}let U,T={historyAction:e.history.action,location:e.history.location,matches:P,initialized:q,navigation:Rf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||A,fetchers:new Map,blockers:new Map},L="POP",$=null,re=!1,le,se=!1,Z=new Map,fe=null,me=!1,X=!1,ue=new Set,I=new Map,V=0,j=-1,D=new Map,H=new Set,B=new Map,Q=new Map,oe=new Set,ee=new Map,ne,he=null;function we(){if(w=e.history.listen(({action:k,location:z,delta:K})=>{if(ne){ne(),ne=void 0;return}Lt(ee.size===0||K!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let ie=je({currentLocation:T.location,nextLocation:z,historyAction:k});if(ie&&K!=null){let ye=new Promise(Ae=>{ne=Ae});e.history.go(K*-1),Ge(ie,{state:"blocked",location:z,proceed(){Ge(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),ye.then(()=>e.history.go(K))},reset(){let Ae=new Map(T.blockers);Ae.set(ie,Za),$e({blockers:Ae})}}),$==null||$.resolve(),$=null;return}return Ke(k,z)}),n){tP(t,Z);let k=()=>nP(t,Z);t.addEventListener("pagehide",k),fe=()=>t.removeEventListener("pagehide",k)}return T.initialized||Ke("POP",T.location,{initialHydration:!0}),U}function De(){w&&w(),fe&&fe(),x.clear(),le&&le.abort(),T.fetchers.forEach((k,z)=>Jt(z)),T.blockers.forEach((k,z)=>Te(z))}function rt(k){return x.add(k),()=>x.delete(k)}function $e(k,z={}){k.matches&&(k.matches=k.matches.map(ye=>{let Ae=u[ye.route.id],Le=ye.route;return Le.element!==Ae.element||Le.errorElement!==Ae.errorElement||Le.hydrateFallbackElement!==Ae.hydrateFallbackElement?{...ye,route:Ae}:ye})),T={...T,...k};let K=[],ie=[];T.fetchers.forEach((ye,Ae)=>{ye.state==="idle"&&(oe.has(Ae)?K.push(Ae):ie.push(Ae))}),oe.forEach(ye=>{!T.fetchers.has(ye)&&!I.has(ye)&&K.push(ye)}),[...x].forEach(ye=>ye(T,{deletedFetchers:K,newErrors:k.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),K.forEach(ye=>Jt(ye)),ie.forEach(ye=>T.fetchers.delete(ye))}function Ue(k,z,{flushSync:K}={}){var We,Ne;let ie=T.actionData!=null&&T.navigation.formMethod!=null&&mn(T.navigation.formMethod)&&T.navigation.state==="loading"&&((We=k.state)==null?void 0:We._isRedirect)!==!0,ye;z.actionData?Object.keys(z.actionData).length>0?ye=z.actionData:ye=null:ie?ye=T.actionData:ye=null;let Ae=z.loaderData?Sv(T.loaderData,z.loaderData,z.matches||[],z.errors):T.loaderData,Le=T.blockers;Le.size>0&&(Le=new Map(Le),Le.forEach((Ve,tt)=>Le.set(tt,Za)));let Se=me?!1:ft(k,z.matches||T.matches),Re=re===!0||T.navigation.formMethod!=null&&mn(T.navigation.formMethod)&&((Ne=k.state)==null?void 0:Ne._isRedirect)!==!0;f&&(d=f,f=void 0),me||L==="POP"||(L==="PUSH"?e.history.push(k,k.state):L==="REPLACE"&&e.history.replace(k,k.state));let Pe;if(L==="POP"){let Ve=Z.get(T.location.pathname);Ve&&Ve.has(k.pathname)?Pe={currentLocation:T.location,nextLocation:k}:Z.has(k.pathname)&&(Pe={currentLocation:k,nextLocation:T.location})}else if(se){let Ve=Z.get(T.location.pathname);Ve?Ve.add(k.pathname):(Ve=new Set([k.pathname]),Z.set(T.location.pathname,Ve)),Pe={currentLocation:T.location,nextLocation:k}}$e({...z,actionData:ye,loaderData:Ae,historyAction:L,location:k,initialized:!0,navigation:Rf,revalidation:"idle",restoreScrollPosition:Se,preventScrollReset:Re,blockers:Le},{viewTransitionOpts:Pe,flushSync:K===!0}),L="POP",re=!1,se=!1,me=!1,X=!1,$==null||$.resolve(),$=null,he==null||he.resolve(),he=null}async function ae(k,z){if($==null||$.resolve(),$=null,typeof k=="number"){$||($=Ev());let tt=$.promise;return e.history.go(k),tt}let K=Sp(T.location,T.matches,p,k,z==null?void 0:z.fromRouteId,z==null?void 0:z.relative),{path:ie,submission:ye,error:Ae}=fv(!1,K,z),Le=T.location,Se=Rs(T.location,ie,z&&z.state);Se={...Se,...e.history.encodeLocation(Se)};let Re=z&&z.replace!=null?z.replace:void 0,Pe="PUSH";Re===!0?Pe="REPLACE":Re===!1||ye!=null&&mn(ye.formMethod)&&ye.formAction===T.location.pathname+T.location.search&&(Pe="REPLACE");let We=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,Ne=(z&&z.flushSync)===!0,Ve=je({currentLocation:Le,nextLocation:Se,historyAction:Pe});if(Ve){Ge(Ve,{state:"blocked",location:Se,proceed(){Ge(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:Se}),ae(k,z)},reset(){let tt=new Map(T.blockers);tt.set(Ve,Za),$e({blockers:tt})}});return}await Ke(Pe,Se,{submission:ye,pendingError:Ae,preventScrollReset:We,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:Ne,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function Me(){he||(he=Ev()),Xt(),$e({revalidation:"loading"});let k=he.promise;return T.navigation.state==="submitting"?k:T.navigation.state==="idle"?(Ke(T.historyAction,T.location,{startUninterruptedRevalidation:!0}
58),k):(Ke(L||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:se===!0}),k)}async function Ke(k,z,K){le&&le.abort(),le=null,L=k,me=(K&&K.startUninterruptedRevalidation)===!0,Xe(T.location,T.matches),re=(K&&K.preventScrollReset)===!0,se=(K&&K.enableViewTransition)===!0;let ie=f||d,ye=K&&K.overrideNavigation,Ae=K!=null&&K.initialHydration&&T.matches&&T.matches.length>0&&!N?T.matches:No(ie,z,p),Le=(K&&K.flushSync)===!0;if(Ae&&T.initialized&&!X&&JT(T.location,z)&&!(K&&K.submission&&mn(K.submission.formMethod))){Ue(z,{matches:Ae},{flushSync:Le});return}let Se=it(Ae,ie,z.pathname);if(Se.active&&Se.matches&&(Ae=Se.matches),!Ae){let{error:Ut,notFoundMatches:nn,route:ht}=He(z.pathname);Ue(z,{matches:nn,loaderData:{},errors:{[ht.id]:Ut}},{flushSync:Le});return}le=new AbortController;let Re=ja(e.history,z,le.signal,K&&K.submission),Pe=e.getContext?await e.getContext():new iv,We;if(K&&K.pendingError)We=[Mo(Ae).route.id,{type:"error",error:K.pendingError}];else if(K&&K.submission&&mn(K.submission.formMethod)){let Ut=await at(Re,z,K.submission,Ae,Pe,Se.active,K&&K.initialHydration===!0,{replace:K.replace,flushSync:Le});if(Ut.shortCircuited)return;if(Ut.pendingActionResult){let[nn,ht]=Ut.pendingActionResult;if(Un(ht)&&Es(ht.error)&&ht.error.status===404){le=null,Ue(z,{matches:Ut.matches,loaderData:{},errors:{[nn]:ht.error}});return}}Ae=Ut.matches||Ae,We=Ut.pendingActionResult,ye=_f(z,K.submission),Le=!1,Se.active=!1,Re=ja(e.history,Re.url,Re.signal)}let{shortCircuited:Ne,matches:Ve,loaderData:tt,errors:Gt}=await Ye(Re,z,Ae,Pe,Se.active,ye,K&&K.submission,K&&K.fetcherSubmission,K&&K.replace,K&&K.initialHydration===!0,Le,We,K&&K.callSiteDefaultShouldRevalidate);Ne||(le=null,Ue(z,{matches:Ve||Ae,...bv(We),loaderData:tt,errors:Gt}))}async function at(k,z,K,ie,ye,Ae,Le,Se={}){Xt();let Re=jT(z,K);if($e({navigation:Re},{flushSync:Se.flushSync===!0}),Ae){let Ne=await $t(ie,z.pathname,k.signal);if(Ne.type==="aborted")return{shortCircuited:!0};if(Ne.type==="error"){if(Ne.partialMatches.length===0){let{matches:tt,route:Gt}=Yl(d);return{matches:tt,pendingActionResult:[Gt.id,{type:"error",error:Ne.error}]}}let Ve=Mo(Ne.partialMatches).route.id;return{matches:Ne.partialMatches,pendingActionResult:[Ve,{type:"error",error:Ne.error}]}}else if(Ne.matches)ie=Ne.matches;else{let{notFoundMatches:Ve,error:tt,route:Gt}=He(z.pathname);return{matches:Ve,pendingActionResult:[Gt.id,{type:"error",error:tt}]}}}let Pe,We=mu(ie,z);if(!We.route.action&&!We.route.lazy)Pe={type:"error",error:nr(405,{method:k.method,pathname:z.pathname,routeId:We.route.id})};else{let Ne=si(s,u,k,ie,We,Le?[]:o,ye),Ve=await Nt(k,Ne,ye,null);if(Pe=Ve[We.route.id],!Pe){for(let tt of ie)if(Ve[tt.route.id]){Pe=Ve[tt.route.id];break}}if(k.signal.aborted)return{shortCircuited:!0}}if(da(Pe)){let Ne;return Se&&Se.replace!=null?Ne=Se.replace:Ne=vv(Pe.response.headers.get("Location"),new URL(k.url),p,e.history)===T.location.pathname+T.location.search,await Pt(k,Pe,!0,{submission:K,replace:Ne}),{shortCircuited:!0}}if(Un(Pe)){let Ne=Mo(ie,We.route.id);return(Se&&Se.replace)!==!0&&(L="PUSH"),{matches:ie,pendingActionResult:[Ne.route.id,Pe,We.route.id]}}return{matches:ie,pendingActionResult:[We.route.id,Pe]}}async function Ye(k,z,K,ie,ye,Ae,Le,Se,Re,Pe,We,Ne,Ve){let tt=Ae||_f(z,Le),Gt=Le||Se||_v(tt),Ut=!me&&!Pe;if(ye){if(Ut){let xt=qe(Ne);$e({navigation:tt,...xt!==void 0?{actionData:xt}:{}},{flushSync:We})}let ot=await $t(K,z.pathname,k.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:fo,route:Jr}=Yl(d);return{matches:fo,loaderData:{},errors:{[Jr.id]:ot.error}}}let xt=Mo(ot.partialMatches).route.id;return{matches:ot.partialMatches,loaderData:{},errors:{[xt]:ot.error}}}else if(ot.matches)K=ot.matches;else{let{error:xt,notFoundMatches:fo,route:Jr}
58=He(z.pathname);return{matches:fo,loaderData:{},errors:{[Jr.id]:xt}}}}let nn=f||d,{dsMatches:ht,revalidatingFetchers:_n}=pv(k,ie,s,u,e.history,T,K,Gt,z,Pe?[]:o,Pe===!0,X,ue,oe,B,H,nn,p,e.patchRoutesOnNavigation!=null,Ne,Ve);if(j=++V,!e.dataStrategy&&!ht.some(ot=>ot.shouldLoad)&&!ht.some(ot=>ot.route.middleware&&ot.route.middleware.length>0)&&_n.length===0){let ot=ir();return Ue(z,{matches:K,loaderData:{},errors:Ne&&Un(Ne[1])?{[Ne[0]]:Ne[1].error}:null,...bv(Ne),...ot?{fetchers:new Map(T.fetchers)}:{}},{flushSync:We}),{shortCircuited:!0}}if(Ut){let ot={};if(!ye){ot.navigation=tt;let xt=qe(Ne);xt!==void 0&&(ot.actionData=xt)}_n.length>0&&(ot.fetchers=ut(_n)),$e(ot,{flushSync:We})}_n.forEach(ot=>{Vt(ot.key),ot.controller&&I.set(ot.key,ot.controller)});let gt=()=>_n.forEach(ot=>Vt(ot.key));le&&le.signal.addEventListener("abort",gt);let{loaderResults:Jo,fetcherResults:Gn}=await Ft(ht,_n,k,ie);if(k.signal.aborted)return{shortCircuited:!0};le&&le.signal.removeEventListener("abort",gt),_n.forEach(ot=>I.delete(ot.key));let Mn=Xl(Jo);if(Mn)return await Pt(k,Mn.result,!0,{replace:Re}),{shortCircuited:!0};if(Mn=Xl(Gn),Mn)return H.add(Mn.key),await Pt(k,Mn.result,!0,{replace:Re}),{shortCircuited:!0};let{loaderData:co,errors:Vo}=xv(T,K,Jo,Ne,_n,Gn);Pe&&T.errors&&(Vo={...T.errors,...Vo});let Tr=ir(),Wr=Cr(j),vn=Tr||Wr||_n.length>0;return{matches:K,loaderData:co,errors:Vo,...vn?{fetchers:new Map(T.fetchers)}:{}}}function qe(k){if(k&&!Un(k[1]))return{[k[0]]:k[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function ut(k){return k.forEach(z=>{let K=T.fetchers.get(z.key),ie=os(void 0,K?K.data:void 0);T.fetchers.set(z.key,ie)}),new Map(T.fetchers)}async function Tt(k,z,K,ie){Vt(k);let ye=(ie&&ie.flushSync)===!0,Ae=f||d,Le=Sp(T.location,T.matches,p,K,z,ie==null?void 0:ie.relative),Se=No(Ae,Le,p),Re=it(Se,Ae,Le);if(Re.active&&Re.matches&&(Se=Re.matches),!Se){qt(k,z,nr(404,{pathname:Le}),{flushSync:ye});return}let{path:Pe,submission:We,error:Ne}=fv(!0,Le,ie);if(Ne){qt(k,z,Ne,{flushSync:ye});return}let Ve=e.getContext?await e.getContext():new iv,tt=(ie&&ie.preventScrollReset)===!0;if(We&&mn(We.formMethod)){await nt(k,z,Pe,Se,Ve,Re.active,ye,tt,We,ie&&ie.unstable_defaultShouldRevalidate);return}B.set(k,{routeId:z,path:Pe}),await bt(k,z,Pe,Se,Ve,Re.active,ye,tt,We)}async function nt(k,z,K,ie,ye,Ae,Le,Se,Re,Pe){Xt(),B.delete(k);let We=T.fetchers.get(k);_t(k,eP(Re,We),{flushSync:Le});let Ne=new AbortController,Ve=ja(e.history,K,Ne.signal,Re);if(Ae){let Ot=await $t(ie,new URL(Ve.url).pathname,Ve.signal,k);if(Ot.type==="aborted")return;if(Ot.type==="error"){qt(k,z,Ot.error,{flushSync:Le});return}else if(Ot.matches)ie=Ot.matches;else{qt(k,z,nr(404,{pathname:K}),{flushSync:Le});return}}let tt=mu(ie,K);if(!tt.route.action&&!tt.route.lazy){let Ot=nr(405,{method:Re.formMethod,pathname:K,routeId:z});qt(k,z,Ot,{flushSync:Le});return}I.set(k,Ne);let Gt=V,Ut=si(s,u,Ve,ie,tt,o,ye),nn=await Nt(Ve,Ut,ye,k),ht=nn[tt.route.id];if(!ht){for(let Ot of Ut)if(nn[Ot.route.id]){ht=nn[Ot.route.id];break}}if(Ve.signal.aborted){I.get(k)===Ne&&I.delete(k);return}if(oe.has(k)){if(da(ht)||Un(ht)){_t(k,no(void 0));return}}else{if(da(ht))if(I.delete(k),j>Gt){_t(k,no(void 0));return}else return H.add(k),_t(k,os(Re)),Pt(Ve,ht,!1,{fetcherSubmission:Re,preventScrollReset:Se});if(Un(ht)){qt(k,z,ht.error);return}}let _n=T.navigation.location||T.location,gt=ja(e.history,_n,Ne.signal),Jo=f||d,Gn=T.navigation.state!=="idle"?No(Jo,T.navigation.location,p):T.matches;Ze(Gn,"Didn't find any matches after fetcher action");let Mn=++V;D.set(k,Mn);let co=os(Re,ht.data);T.fetchers.set(k,co);let{dsMatches:Vo,revalidatingFetchers:Tr}=pv(gt,ye,s,u,e.history,T,Gn,Re,_n,o,!1,X,ue,oe,B,H,Jo,p,e.patchRoutesOnNavigation!=null,[tt.route.id,ht],Pe);Tr.filter(Ot=>Ot.key!==k).forEach(Ot=>{let Vr=Ot.key,Go=T.fetchers.get(Vr),Ko=os(void 0,Go?Go.data:void 0);T.fetchers.set(Vr,Ko),Vt(Vr),Ot.controller&&I.set(Vr,Ot.controller)}),$e({fetchers:new Map(T.fetchers)});let Wr=()=>Tr.forEach(Ot=>Vt(Ot.key));Ne.signal.addEventListener("abort",Wr);let{loaderResults:vn,fetcherResults:ot}=await Ft(Vo,Tr,gt,ye);
58if(Ne.signal.aborted)return;if(Ne.signal.removeEventListener("abort",Wr),D.delete(k),I.delete(k),Tr.forEach(Ot=>I.delete(Ot.key)),T.fetchers.has(k)){let Ot=no(ht.data);T.fetchers.set(k,Ot)}let xt=Xl(vn);if(xt)return Pt(gt,xt.result,!1,{preventScrollReset:Se});if(xt=Xl(ot),xt)return H.add(xt.key),Pt(gt,xt.result,!1,{preventScrollReset:Se});let{loaderData:fo,errors:Jr}=xv(T,Gn,vn,void 0,Tr,ot);Cr(Mn),T.navigation.state==="loading"&&Mn>j?(Ze(L,"Expected pending action"),le&&le.abort(),Ue(T.navigation.location,{matches:Gn,loaderData:fo,errors:Jr,fetchers:new Map(T.fetchers)})):($e({errors:Jr,loaderData:Sv(T.loaderData,fo,Gn,Jr),fetchers:new Map(T.fetchers)}),X=!1)}async function bt(k,z,K,ie,ye,Ae,Le,Se,Re){let Pe=T.fetchers.get(k);_t(k,os(Re,Pe?Pe.data:void 0),{flushSync:Le});let We=new AbortController,Ne=ja(e.history,K,We.signal);if(Ae){let ht=await $t(ie,new URL(Ne.url).pathname,Ne.signal,k);if(ht.type==="aborted")return;if(ht.type==="error"){qt(k,z,ht.error,{flushSync:Le});return}else if(ht.matches)ie=ht.matches;else{qt(k,z,nr(404,{pathname:K}),{flushSync:Le});return}}let Ve=mu(ie,K);I.set(k,We);let tt=V,Gt=si(s,u,Ne,ie,Ve,o,ye),nn=(await Nt(Ne,Gt,ye,k))[Ve.route.id];if(I.get(k)===We&&I.delete(k),!Ne.signal.aborted){if(oe.has(k)){_t(k,no(void 0));return}if(da(nn))if(j>tt){_t(k,no(void 0));return}else{H.add(k),await Pt(Ne,nn,!1,{preventScrollReset:Se});return}if(Un(nn)){qt(k,z,nn.error);return}_t(k,no(nn.data))}}async function Pt(k,z,K,{submission:ie,fetcherSubmission:ye,preventScrollReset:Ae,replace:Le}={}){K||($==null||$.resolve(),$=null),z.response.headers.has("X-Remix-Revalidate")&&(X=!0);let Se=z.response.headers.get("Location");Ze(Se,"Expected a Location header on the redirect Response"),Se=vv(Se,new URL(k.url),p,e.history);let Re=Rs(T.location,Se,{_isRedirect:!0});if(n){let Gt=!1;if(z.response.headers.has("X-Remix-Reload-Document"))Gt=!0;else if(oh(Se)){const Ut=w0(Se,!0);Gt=Ut.origin!==t.location.origin||Nn(Ut.pathname,p)==null}if(Gt){Le?t.location.replace(Se):t.location.assign(Se);return}}le=null;let Pe=Le===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:We,formAction:Ne,formEncType:Ve}=T.navigation;!ie&&!ye&&We&&Ne&&Ve&&(ie=_v(T.navigation));let tt=ie||ye;if(OT.has(z.response.status)&&tt&&mn(tt.formMethod))await Ke(Pe,Re,{submission:{...tt,formAction:Se},preventScrollReset:Ae||re,enableViewTransition:K?se:void 0});else{let Gt=_f(Re,ie);await Ke(Pe,Re,{overrideNavigation:Gt,fetcherSubmission:ye,preventScrollReset:Ae||re,enableViewTransition:K?se:void 0})}}async function Nt(k,z,K,ie){var Le;let ye,Ae={};try{ye=await qT(g,k,z,ie,K,!1)}catch(Se){return z.filter(Re=>Re.shouldLoad).forEach(Re=>{Ae[Re.route.id]={type:"error",error:Se}}),Ae}if(k.signal.aborted)return Ae;if(!mn(k.method))for(let Se of z){if(((Le=ye[Se.route.id])==null?void 0:Le.type)==="error")break;!ye.hasOwnProperty(Se.route.id)&&!T.loaderData.hasOwnProperty(Se.route.id)&&(!T.errors||!T.errors.hasOwnProperty(Se.route.id))&&Se.shouldCallHandler()&&(ye[Se.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Se.route.id}`)})}for(let[Se,Re]of Object.entries(ye))if(YT(Re)){let Pe=Re.result;Ae[Se]={type:"redirect",response:HT(Pe,k,Se,z,p)}}else Ae[Se]=await BT(Re);return Ae}async function Ft(k,z,K,ie){let ye=Nt(K,k,ie,null),Ae=Promise.all(z.map(async Re=>{if(Re.matches&&Re.match&&Re.request&&Re.controller){let We=(await Nt(Re.request,Re.matches,ie,Re.key))[Re.match.route.id];return{[Re.key]:We}}else return Promise.resolve({[Re.key]:{type:"error",error:nr(404,{pathname:Re.path})}})})),Le=await ye,Se=(await Ae).reduce((Re,Pe)=>Object.assign(Re,Pe),{});return{loaderResults:Le,fetcherResults:Se}}function Xt(){X=!0,B.forEach((k,z)=>{I.has(z)&&ue.add(z),Vt(z)})}function _t(k,z,K={}){T.fetchers.set(k,z),$e({fetchers:new Map(T.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function qt(k,z,K,ie={}){let ye=Mo(T.matches,z);Jt(k),$e({errors:{[ye.route.id]:K},fetchers:new Map(T.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function Wt(k){return Q.set(k,(Q.get(k)||0)+1),oe.has(k)&&oe.delete(k),T.fetchers.get(k)||kT}function Rn(k,z){Vt(k,z==null?void 0:z.reason),_t(k,no(null))}function Jt(k){let z=T.fetchers.get(k);I.has(k)&&!(z&&z.state==="loading"&&D.has(k))&&Vt(k),B.delete(k),D.delete(k),H.delete(k),oe.delete(k),ue.delete(k),T.fetchers.delete(k)}function sn(k){let z=(Q.get(k)||0)-1;z<=0?(Q.delete(k),oe.add(k)):Q.set(k,z),$e({fetchers:new Map(T.fetchers)})}function Vt(k,z){let K=I.get(k);K&&(K.abort(z),I.delete(k))}function ar(k){for(let z of k){let K=Wt(z),ie=no(K.data);T.fetchers.set(z,ie)}}function ir(){let k=[],z=!1;for(let K of H){let ie=T.fetchers.get(K);Ze(ie,`Expected fetcher: ${K}`),ie.state==="loading"&&(H.delete(K),k.push(K),z=!0)}return ar(k),z}function Cr(k){let z=[];for(let[K,ie]of D)if(ie<k){let ye=T.fetchers.get(K);Ze(ye,`Expected fetcher: ${K}`),ye.state==="loading"&&(Vt(K),D.delete(K),z.push(K))}return ar(z),z.length>0}function sr(k,z){let K=T.blockers.get(k)||Za;return ee.get(k)!==z&&ee.set(k,z),K}function Te(k){T.blockers.delete(k),ee.delete(k)}function Ge(k,z){let K=T.blockers.get(k)||Za;Ze(K.state==="unblocked"&&z.state==="blocked"||K.state==="blocked"&&z.state==="blocked"||K.state==="blocked"&&z.state==="proceeding"||K.state==="blocked"&&z.state==="unblocked"||K.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${K.state} -> ${z.state}`);let ie=new Map(T.blockers);ie.set(k,z),$e({blockers:ie})}function je({currentLocation:k,nextLocation:z,historyAction:K}){if(ee.size===0)return;ee.size>1&&Lt(!1,"A router only supports one blocker at a time");let ie=Array.from(ee.entries()),[ye,Ae]=ie[ie.length-1],Le=T.blockers.get(ye);if(!(Le&&Le.state==="proceeding")&&Ae({currentLocation:k,nextLocation:z,historyAction:K}))return ye}function He(k){let z=nr(404,{pathname:k}),K=f||d,{matches:ie,route:ye}=Yl(K);return{notFoundMatches:ie,route:ye,error:z}}function mt(k,z,K){if(R=k,E=z,_=K||null,!C&&T.navigation===Rf){C=!0;let ie=ft(T.location,T.matches);ie!=null&&$e({restoreScrollPosition:ie})}return()=>{R=null,E=null,_=null}}function ke(k,z){return _&&_(k,z.map(ie=>nT(ie,T.loaderData)))||k.key}function Xe(k,z){if(R&&E){let K=ke(k,z);R[K]=E()}}function ft(k,z){if(R){let K=ke(k,z),ie=R[K];if(typeof ie=="number")return ie}return null}function it(k,z,K){if(e.patchRoutesOnNavigation)if(k){if(Object.keys(k[0].params).length>0)return{active:!0,matches:ps(z,K,p,!0)}}else return{active:!0,matches:ps(z,K,p,!0)||[]};return{active:!1,matches:null}}async function $t(k,z,K,ie){if(!e.patchRoutesOnNavigation)return{type:"success",matches:k};let ye=k;for(;;){let Ae=f==null,Le=f||d,Se=u;try{await e.patchRoutesOnNavigation({signal:K,path:z,matches:ye,fetcherKey:ie,patch:(We,Ne)=>{K.aborted||hv(We,Ne,Le,Se,s,!1)}})}catch(We){return{type:"error",error:We,partialMatches:ye}}finally{Ae&&!K.aborted&&(d=[...d])}if(K.aborted)return{type:"aborted"};let Re=No(Le,z,p),Pe=null;if(Re){if(Object.keys(Re[0].params).length===0)return{type:"success",matches:Re};if(Pe=ps(Le,z,p,!0),!(Pe&&ye.length<Pe.length&&ct(ye,Pe.slice(0,ye.length))))return{type:"success",matches:Re}}if(Pe||(Pe=ps(Le,z,p,!0)),!Pe||ct(ye,Pe))return{type:"success",matches:null};ye=Pe}}function ct(k,z){return k.length===z.length&&k.every((K,ie)=>K.route.id===z[ie].route.id)}function pt(k){u={},f=_s(k,s,void 0,u)}function yn(k,z,K=!1){let ie=f==null;hv(k,z,f||d,u,s,K),ie&&(d=[...d],$e({}))}return U={get basename(){return p},get future(){return m},get state(){return T},get routes(){return d},get window(){return t},initialize:we,subscribe:rt,enableScrollRestoration:mt,navigate:ae,fetch:Tt,revalidate:Me,createHref:k=>e.history.createHref(k),encodeLocation:k=>e.history.encodeLocation(k),getFetcher:Wt,resetFetcher:Rn,deleteFetcher:sn,dispose:De,getBlocker:sr,deleteBlocker:Te,patchRoutes:yn,_internalFetchControllers:I,_internalSetRoutes:pt,_internalSetStateDoNotUseOrYouWillBreakYourApp(k){$e(k)}},e.unstable_instrumentations&&(U=ST(U,e.unstable_instrumentations.map(k=>
58k.router).filter(Boolean))),U}function IT(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Sp(e,t,n,o,i,s){let u,d;if(i){u=[];for(let p of t)if(u.push(p),p.route.id===i){d=p;break}}else u=t,d=t[t.length-1];let f=Yu(o||".",Ku(u),Nn(e.pathname,n)||e.pathname,s==="path");if(o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&d){let p=sh(f.search);if(d.route.index&&!p)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&p){let g=new URLSearchParams(f.search),m=g.getAll("index");g.delete("index"),m.filter(x=>x).forEach(x=>g.append("index",x));let w=g.toString();f.search=w?`?${w}`:""}}return n!=="/"&&(f.pathname=mT({basename:n,pathname:f.pathname})),Fr(f)}function fv(e,t,n){if(!n||!IT(n))return{path:t};if(n.formMethod&&!ZT(n.formMethod))return{path:t,error:nr(405,{method:n.formMethod})};let o=()=>({path:t,error:nr(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),u=L0(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!mn(s))return o();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,[x,R])=>`${w}${x}=${R}
59`,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!mn(s))return o();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:u,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}Ze(typeof FormData=="function","FormData is not available in this environment");let d,f;if(n.formData)d=_p(n.formData),f=n.formData;else if(n.body instanceof FormData)d=_p(n.body),f=n.body;else if(n.body instanceof URLSearchParams)d=n.body,f=wv(d);else if(n.body==null)d=new URLSearchParams,f=new FormData;else try{d=new URLSearchParams(n.body),f=wv(d)}catch{return o()}let p={formMethod:s,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(mn(p.formMethod))return{path:t,submission:p};let g=Ho(t);return e&&g.search&&sh(g.search)&&d.append("index",""),g.search=`?${d}`,{path:Fr(g),submission:p}}function pv(e,t,n,o,i,s,u,d,f,p,g,m,w,x,R,_,E,C,P,N,A){var me;let q=N?Un(N[1])?N[1].error:N[1].data:void 0,U=i.createURL(s.location),T=i.createURL(f),L;if(g&&s.errors){let X=Object.keys(s.errors)[0];L=u.findIndex(ue=>ue.route.id===X)}else if(N&&Un(N[1])){let X=N[0];L=u.findIndex(ue=>ue.route.id===X)-1}let $=N?N[1].statusCode:void 0,re=$&&$>=400,le={currentUrl:U,currentParams:((me=s.matches[0])==null?void 0:me.params)||{},nextUrl:T,nextParams:u[0].params,...d,actionResult:q,actionStatus:$},se=Ms(u),Z=u.map((X,ue)=>{let{route:I}=X,V=null;if(L!=null&&ue>L?V=!1:I.lazy?V=!0:ah(I)?g?V=bp(I,s.loaderData,s.errors):NT(s.loaderData,s.matches[ue],X)&&(V=!0):V=!1,V!==null)return Rp(n,o,e,se,X,p,t,V);let j=!1;typeof A=="boolean"?j=A:re?j=!1:(m||U.pathname+U.search===T.pathname+T.search||U.search!==T.search||MT(s.matches[ue],X))&&(j=!0);let D={...le,defaultShouldRevalidate:j},H=ws(X,D);return Rp(n,o,e,se,X,p,t,H,D,A)}),fe=[];return R.forEach((X,ue)=>{if(g||!u.some(oe=>oe.route.id===X.routeId)||x.has(ue))return;let I=s.fetchers.get(ue),V=I&&I.state!=="idle"&&I.data===void 0,j=No(E,X.path,C);if(!j){if(P&&V)return;fe.push({key:ue,routeId:X.routeId,path:X.path,matches:null,match:null,request:null,controller:null});return}if(_.has(ue))return;let D=mu(j,X.path),H=new AbortController,B=ja(i,X.path,H.signal),Q=null;if(w.has(ue))w.delete(ue),Q=si(n,o,B,j,D,p,t);else if(V)m&&(Q=si(n,o,B,j,D,p,t));else{let oe;typeof A=="boolean"?oe=A:re?oe=!1:oe=m;let ee={...le,defaultShouldRevalidate:oe};ws(D,ee)&&(Q=si(n,o,B,j,D,p,t,ee))}Q&&fe.push({key:ue,routeId:X.routeId,path:X.path,matches:Q,match:D,request:B,controller:H})}),{dsMatches:Z,revalidatingFetchers:fe}}function ah(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function bp(e,t,n){if(e.lazy)return!0;if(!ah(e))return!1;let o=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;return!o&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!o&&!i}function NT(e,t,n){let o=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return o||i}function MT(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ws(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function hv(e,t,n,o,i,s){let u;if(e){let p=o[e];Ze(p,`No route found to patch children into: routeId = ${e}`),p.children||(p.children=[]),u=p.children}else u=n;let d=[],f=[];if(t.forEach(p=>{let g=u.find(m=>D0(p,m));g?f.push({existingRoute:g,newRoute:p}):d.push(p)}),d.length>0){let p=_s(d,i,[e||"_","patch",String((u==null?void 0:u.length)||"0")],o);u.push(...p)}if(s&&f.length>0)for(let p=0;p<f.length;p++){let{existingRoute:g,newRoute:m}=f[p],w=g,[x]=_s([m],i,[],{},!0);Object.assign(w,{element:x.element?x.element:w.element,errorElement:x.errorElement?x.errorElement:w.errorElement,hydrateFallbackElement:x.hydrateFallbackElement?x.hydrateFallbackElement:w.hydrateFallbackElement})}}function D0(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,o)=>{var i;return(i=t.children)==null?void 0:i.some(s=>D0(n,s))}):!1}var mv=new WeakMap,A0=({key:e,route:t,manifest:n,mapRouteProperties:o})=>{let i=n[t.id];if(Ze(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let s=i.lazy[e];if(!s)return;let u=mv.get(i);u||(u={},mv.set(i,u));let d=u[e];
59if(d)return d;let f=(async()=>{let p=ZC(e),m=i[e]!==void 0&&e!=="hasErrorBoundary";if(p)Lt(!p,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),u[e]=Promise.resolve();else if(m)Lt(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let w=await s();w!=null&&(Object.assign(i,{[e]:w}),Object.assign(i,o(i)))}typeof i.lazy=="object"&&(i.lazy[e]=void 0,Object.values(i.lazy).every(w=>w===void 0)&&(i.lazy=void 0))})();return u[e]=f,f},gv=new WeakMap;function LT(e,t,n,o,i){let s=n[e.id];if(Ze(s,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let g=gv.get(s);if(g)return{lazyRoutePromise:g,lazyHandlerPromise:g};let m=(async()=>{Ze(typeof e.lazy=="function","No lazy route function found");let w=await e.lazy(),x={};for(let R in w){let _=w[R];if(_===void 0)continue;let E=eT(R),P=s[R]!==void 0&&R!=="hasErrorBoundary";E?Lt(!E,"Route property "+R+" is not a supported property to be returned from a lazy route function. This property will be ignored."):P?Lt(!P,`Route "${s.id}" has a static property "${R}" defined but its lazy function is also returning a value for this property. The lazy route property "${R}" will be ignored.`):x[R]=_}Object.assign(s,x),Object.assign(s,{...o(s),lazy:void 0})})();return gv.set(s,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let u=Object.keys(e.lazy),d=[],f;for(let g of u){if(i&&i.includes(g))continue;let m=A0({key:g,route:e,manifest:n,mapRouteProperties:o});m&&(d.push(m),g===t&&(f=m))}let p=d.length>0?Promise.all(d).then(()=>{}):void 0;return p==null||p.catch(()=>{}),f==null||f.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:f}}async function yv(e){let t=e.matches.filter(i=>i.shouldLoad),n={};return(await Promise.all(t.map(i=>i.resolve()))).forEach((i,s)=>{n[t[s].route.id]=i}),n}async function zT(e){return e.matches.some(t=>t.route.middleware)?I0(e,()=>yv(e)):yv(e)}function I0(e,t){return FT(e,t,o=>{if(QT(o))throw o;return o},GT,n);function n(o,i,s){if(s)return Promise.resolve(Object.assign(s.value,{[i]:{type:"error",result:o}}));{let{matches:u}=e,d=Math.min(Math.max(u.findIndex(p=>p.route.id===i),0),Math.max(u.findIndex(p=>p.shouldCallHandler()),0)),f=Mo(u,u[d].route.id).route.id;return Promise.resolve({[f]:{type:"error",result:o}})}}}async function FT(e,t,n,o,i){let{matches:s,request:u,params:d,context:f,unstable_pattern:p}=e,g=s.flatMap(w=>w.route.middleware?w.route.middleware.map(x=>[w.route.id,x]):[]);return await N0({request:u,params:d,context:f,unstable_pattern:p},g,t,n,o,i)}async function N0(e,t,n,o,i,s,u=0){let{request:d}=e;if(d.signal.aborted)throw d.signal.reason??new Error(`Request aborted: ${d.method} ${d.url}`);let f=t[u];if(!f)return await n();let[p,g]=f,m,w=async()=>{if(m)throw new Error("You may only call `next()` once per middleware");try{return m={value:await N0(e,t,n,o,i,s,u+1)},m.value}catch(x){return m={value:await s(x,p,m)},m.value}};try{let x=await g(e,w),R=x!=null?o(x):void 0;return i(R)?R:m?R??m.value:(m={value:await w()},m.value)}catch(x){return await s(x,p,m)}}function M0(e,t,n,o,i){let s=A0({key:"middleware",route:o.route,manifest:t,mapRouteProperties:e}),u=LT(o.route,mn(n.method)?"action":"loader",t,e,i);return{middleware:s,route:u.lazyRoutePromise,handler:u.lazyHandlerPromise}}function Rp(e,t,n,o,i,s,u,d,f=null,p){let g=!1,m=M0(e,t,n,i,s);return{...i,_lazyPromises:m,shouldLoad:d,shouldRevalidateArgs:f,shouldCallHandler(w){return g=!0,f?typeof p=="boolean"?ws(i,{...f,defaultShouldRevalidate:p}):typeof w=="boolean"?ws(i,{...f,defaultShouldRevalidate:w}):ws(i,f):d},resolve(w){let{lazy:x,loader:R,middleware:_}=i.route,E=g||d||w&&!mn(n.method)&&(x||R),C=_&&_.length>0&&!R&&!x;return E&&(mn(n.method)||!C)?$T({request:n,unstable_pattern:o,match:i,lazyHandlerPromise:m==null?void 0:m.handler,lazyRoutePromise:m==null?void 0:m.route,handlerOverride:w,scopedContext:u}):Promise.resolve({type:"data",result:void 0})}}}function si(e,t,n,o,i,s,u,d=null){return o.map(f=>f.route.id!==i.route.id?{...f,shouldLoad:!1,shouldRevalidateArgs:d,shouldCallHandler:()=>!1,_lazyPromises:M0(e,t,n,f,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Rp(e,t,n,Ms(o),f,s,u,!0,d))}async function qT(e,t,n,o,i,s){n.some(p=>{var g;return(g=p._lazyPromises)==null?void 0:g.middleware})&&await Promise.all(n.map(p=>{var g;return(g=p._lazyPromises)==null?void 0:g.middleware}));let u={request:t,unstable_pattern:Ms(n),params:n[0].params,context:i,matches:n},f=await e({...u,fetcherKey:o,runClientMiddleware:p=>{let g=u;return I0(g,()=>p({...g,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(p=>{var g,m;return[(g=p._lazyPromises)==null?void 0:g.handler,(m=p._lazyPromises)==null?void 0:m.route]}))}catch{}return f}async function $T({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:o,lazyRoutePromise:i,handlerOverride:s,scopedContext:u}){let d,f,p=mn(e.method),g=p?"action":"loader",m=w=>{let x,R=new Promise((C,P)=>x=P);f=()=>x(),e.signal.addEventListener("abort",f);let _=C=>typeof w!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${g}" [routeId: ${n.route.id}]`)):w({request:e,unstable_pattern:t,params:n.params,context:u},...C!==void 0?[C]:[]),E=(async()=>{try{return{type:"data",result:await(s?s(P=>_(P)):_())}}catch(C){return{type:"error",result:C}}})();return Promise.race([E,R])};try{let w=p?n.route.action:n.route.loader;if(o||i)if(w){let x,[R]=await Promise.all([m(w).catch(_=>{x=_}),o,i]);if(x!==void 0)throw x;d=R}else{await o;let x=p?n.route.action:n.route.loader;if(x)[d]=await Promise.all([m(x),i]);else if(g==="action"){let R=new URL(e.url),_=R.pathname+R.search;throw nr(405,{method:e.method,pathname:_,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(w)d=await m(w);else{let x=new URL(e.url),R=x.pathname+x.search;throw nr(404,{pathname:R})}}catch(w){return{type:"error",result:w}}finally{f&&e.signal.removeEventListener("abort",f)}return d}async function UT(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function BT(e){var o,i,s,u,d;let{result:t,type:n}=e;if(ih(t)){let f;try{f=await UT(t)}catch(p){return{type:"error",error:p}}return n==="error"?{type:"error",error:new Ns(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:"data",data:f,statusCode:t.status,headers:t.headers}}return n==="error"?Rv(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}:{type:"error",error:VT(t),statusCode:Es(t)?t.status:void 0,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Es(t)?t.status:void 0}:Rv(t)?{type:"data",data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function HT(e,t,n,o,i){let s=e.headers.get("Location");if(Ze(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!oh(s)){let u=o.slice(0,o.findIndex(d=>d.route.id===n)+1);s=Sp(new URL(t.url),u,i,s),e.headers.set("Location",s)}return e}function vv(e,t,n,o){let i=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(oh(e)){let s=e,u=s.startsWith("//")?new URL(t.protocol+s):new URL(s);if(i.includes(u.protocol))throw new Error("Invalid redirect location");let d=Nn(u.pathname,n)!=null;if(u.origin===t.origin&&d)return u.pathname+u.search+u.hash}try{let s=o.createURL(e);if(i.includes(s.protocol))throw new Error("Invalid redirect location")}catch{}return e}function ja(e,t,n,o){let i=e.createURL(L0(t)).toString(),s={signal:n};if(o&&mn(o.formMethod)){let{formMethod:u,formEncType:d}=o;s.method=u.toUpperCase(),d==="application/json"?(s.headers=new Headers({"Content-Type":d}),s.body=JSON.stringify(o.json)):d==="text/plain"?s.body=o.text:d==="application/x-www-form-urlencoded"&&o.formData?s.body=_p(o.formData):s.body=o.formData}
59return new Request(i,s)}function _p(e){let t=new URLSearchParams;for(let[n,o]of e.entries())t.append(n,typeof o=="string"?o:o.name);return t}function wv(e){let t=new FormData;for(let[n,o]of e.entries())t.append(n,o);return t}function WT(e,t,n,o=!1,i=!1){let s={},u=null,d,f=!1,p={},g=n&&Un(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let w=m.route.id,x=t[w];if(Ze(!da(x),"Cannot handle redirect results in processLoaderData"),Un(x)){let R=x.error;if(g!==void 0&&(R=g,g=void 0),u=u||{},i)u[w]=R;else{let _=Mo(e,w);u[_.route.id]==null&&(u[_.route.id]=R)}o||(s[w]=k0),f||(f=!0,d=Es(x.error)?x.error.status:500),x.headers&&(p[w]=x.headers)}else s[w]=x.data,x.statusCode&&x.statusCode!==200&&!f&&(d=x.statusCode),x.headers&&(p[w]=x.headers)}),g!==void 0&&n&&(u={[n[0]]:g},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:u,statusCode:d||200,loaderHeaders:p}}function xv(e,t,n,o,i,s){let{loaderData:u,errors:d}=WT(t,n,o);return i.filter(f=>!f.matches||f.matches.some(p=>p.shouldLoad)).forEach(f=>{let{key:p,match:g,controller:m}=f;if(m&&m.signal.aborted)return;let w=s[p];if(Ze(w,"Did not find corresponding fetcher result"),Un(w)){let x=Mo(e.matches,g==null?void 0:g.route.id);d&&d[x.route.id]||(d={...d,[x.route.id]:w.error}),e.fetchers.delete(p)}else if(da(w))Ze(!1,"Unhandled fetcher revalidation redirect");else{let x=no(w.data);e.fetchers.set(p,x)}}),{loaderData:u,errors:d}}function Sv(e,t,n,o){let i=Object.entries(t).filter(([,s])=>s!==k0).reduce((s,[u,d])=>(s[u]=d,s),{});for(let s of n){let u=s.route.id;if(!t.hasOwnProperty(u)&&e.hasOwnProperty(u)&&s.route.loader&&(i[u]=e[u]),o&&o.hasOwnProperty(u))break}return i}function bv(e){return e?Un(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Mo(e,t){return(t?e.slice(0,e.findIndex(o=>o.route.id===t)+1):[...e]).reverse().find(o=>o.route.hasErrorBoundary===!0)||e[0]}function Yl(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function nr(e,{pathname:t,routeId:n,method:o,type:i,message:s}={}){let u="Unknown Server Error",d="Unknown @remix-run/router error";return e===400?(u="Bad Request",o&&t&&n?d=`You made a ${o} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i==="invalid-body"&&(d="Unable to encode submission body")):e===403?(u="Forbidden",d=`Route "${n}" does not match URL "${t}"`):e===404?(u="Not Found",d=`No route matches URL "${t}"`):e===405&&(u="Method Not Allowed",o&&t&&n?d=`You made a ${o.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:o&&(d=`Invalid request method "${o.toUpperCase()}"`)),new Ns(e||500,u,new Error(d),!0)}function Xl(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[o,i]=t[n];if(da(i))return{key:o,result:i}}}function L0(e){let t=typeof e=="string"?Ho(e):e;return Fr({...t,hash:""})}function JT(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function VT(e){var t,n;return new Ns(((t=e.init)==null?void 0:t.status)??500,((n=e.init)==null?void 0:n.statusText)??"Internal Server Error",e.data)}function GT(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&KT(n))}function KT(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function YT(e){return ih(e.result)&&P0.has(e.result.status)}function Un(e){return e.type==="error"}function da(e){return(e&&e.type)==="redirect"}function Rv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function ih(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XT(e){return P0.has(e)}function QT(e){return ih(e)&&XT(e.status)&&e.headers.has("Location")}function ZT(e){return PT.has(e.toUpperCase())}function mn(e){return CT.has(e.toUpperCase())}function sh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function mu(e,t){let n=typeof t=="string"?Ho(t).search:t.search;if(e[e.length-1].route.index&&sh(n||""))return e[e.length-1];let o=R0(e);return o[o.length-1]}function _v(e){let{formMethod:t,formAction:n,formEncType:o,text:i,formData:s,json:u}=e;if(!(!t||!n||!o)){if(i!=null)return{formMethod:t,formAction:n,formEncType:o,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:t,formAction:n,formEncType:o,formData:s,json:void 0,text:void 0};if(u!==void 0)return{formMethod:t,formAction:n,formEncType:o,formData:void 0,json:u,text:void 0}}}function _f(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function jT(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function os(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eP(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function no(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tP(e,t){try{let n=e.sessionStorage.getItem(O0);if(n){let o=JSON.parse(n);for(let[i,s]of Object.entries(o||{}))s&&Array.isArray(s)&&t.set(i,new Set(s||[]))}}catch{}}function nP(e,t){if(t.size>0){let n={};for(let[o,i]of t)n[o]=[...i];try{e.sessionStorage.setItem(O0,JSON.stringify(n))}catch(o){Lt(!1,`Failed to save applied view transitions in sessionStorage (${o}).`)}}}function Ev(){let e,t,n=new Promise((o,i)=>{e=async s=>{o(s);try{await n}catch{}},t=async s=>{i(s);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var wa=v.createContext(null);wa.displayName="DataRouter";var Ls=v.createContext(null);Ls.displayName="DataRouterState";var z0=v.createContext(!1);function rP(){return v.useContext(z0)}var lh=v.createContext({isTransitioning:!1});lh.displayName="ViewTransition";var F0=v.createContext(new Map);F0.displayName="Fetchers";var oP=v.createContext(null);oP.displayName="Await";var Jn=v.createContext(null);Jn.displayName="Navigation";var Xu=v.createContext(null);Xu.displayName="Location";var or=v.createContext({outlet:null,matches:[],isDataRoute:!1});or.displayName="Route";var uh=v.createContext(null);uh.displayName="RouteError";var q0="REACT_ROUTER_ERROR",aP="REDIRECT",iP="ROUTE_ERROR_RESPONSE";function sP(e){if(e.startsWith(`${q0}:${aP}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="str
59ing"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function lP(e){if(e.startsWith(`${q0}:${iP}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ns(t.status,t.statusText,t.data)}catch{}}function uP(e,{relative:t}={}){Ze(mi(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=v.useContext(Jn),{hash:i,pathname:s,search:u}=zs(e,{relative:t}),d=s;return n!=="/"&&(d=s==="/"?n:Lr([n,s])),o.createHref({pathname:d,search:u,hash:i})}function mi(){return v.useContext(Xu)!=null}function Ur(){return Ze(mi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Xu).location}var $0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function U0(e){v.useContext(Jn).static||v.useLayoutEffect(e)}function ch(){let{isDataRoute:e}=v.useContext(or);return e?RP():cP()}function cP(){Ze(mi(),"useNavigate() may be used only in the context of a <Router> component.");let e=v.useContext(wa),{basename:t,navigator:n}=v.useContext(Jn),{matches:o}=v.useContext(or),{pathname:i}=Ur(),s=JSON.stringify(Ku(o)),u=v.useRef(!1);return U0(()=>{u.current=!0}),v.useCallback((f,p={})=>{if(Lt(u.current,$0),!u.current)return;if(typeof f=="number"){n.go(f);return}let g=Yu(f,JSON.parse(s),i,p.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Lr([t,g.pathname])),(p.replace?n.replace:n.push)(g,p.state,p)},[t,n,s,i,e])}var dP=v.createContext(null);function fP(e){let t=v.useContext(or).outlet;return v.useMemo(()=>t&&v.createElement(dP.Provider,{value:e},t),[t,e])}function s5(){let{matches:e}=v.useContext(or),t=e[e.length-1];return t?t.params:{}}function zs(e,{relative:t}={}){let{matches:n}=v.useContext(or),{pathname:o}=Ur(),i=JSON.stringify(Ku(n));return v.useMemo(()=>Yu(e,JSON.parse(i),o,t==="path"),[e,i,o,t])}function pP(e,t,n,o,i){Ze(mi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(Jn),{matches:u}=v.useContext(or),d=u[u.length-1],f=d?d.params:{},p=d?d.pathname:"/",g=d?d.pathnameBase:"/",m=d&&d.route;{let P=m&&m.path||"";J0(p,!m||P.endsWith("*")||P.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${P}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
61Please change the parent <Route path="${P}"> to <Route path="${P==="/"?"*":`${P}/*`}">.`)}let w=Ur(),x;x=w;let R=x.pathname||"/",_=R;if(g!=="/"){let P=g.replace(/^\//,"").split("/");_="/"+R.replace(/^\//,"").split("/").slice(P.length).join("/")}let E=No(e,{pathname:_});return Lt(m||E!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Lt(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),vP(E&&E.map(P=>Object.assign({},P,{params:Object.assign({},f,P.params),pathname:Lr([g,s.encodeLocation?s.encodeLocation(P.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?g:Lr([g,s.encodeLocation?s.encodeLocation(P.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:P.pathnameBase])})),u,n,o,i)}function hP(){let e=SP(),t=Es(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o},s={padding:"2px 4px",backgroundColor:o},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:s},"ErrorBoundary")," or"," ",v.createElement("code",{style:s},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application 
61Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:i},n):null,u)}var mP=v.createElement(hP,null),B0=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=lP(e.digest);n&&(e=n)}let t=e!==void 0?v.createElement(or.Provider,{value:this.props.routeContext},v.createElement(uh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?v.createElement(gP,{error:e},t):t}};B0.contextType=z0;var Ef=new WeakMap;function gP({children:e,error:t}){let{basename:n}=v.useContext(Jn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=sP(t.digest);if(o){let i=Ef.get(t);if(i)throw i;let s=E0(o.location,n);if(_0&&!Ef.get(t))if(s.isExternal||o.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:o.replace}));throw Ef.set(t,u),u}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function yP({routeContext:e,match:t,children:n}){let o=v.useContext(wa);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(or.Provider,{value:e},n)}function vP(e,t=[],n=null,o=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,u=n==null?void 0:n.errors;if(u!=null){let g=s.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);Ze(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,g+1))}let d=!1,f=-1;if(n)for(let g=0;g<s.length;g++){let m=s[g];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=g),m.route.id){let{loaderData:w,errors:x}=n,R=m.route.loader&&!w.hasOwnProperty(m.route.id)&&(!x||x[m.route.id]===void 0);if(m.route.lazy||R){d=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}let p=n&&o?(g,m)=>{var w,x;o(g,{location:n.location,params:((x=(w=n.matches)==null?void 0:w[0])==null?void 0:x.params)??{},unstable_pattern:Ms(n.matches),errorInfo:m})}:void 0;return s.reduceRight((g,m,w)=>{let x,R=!1,_=null,E=null;n&&(x=u&&m.route.id?u[m.route.id]:void 0,_=m.route.errorElement||mP,d&&(f<0&&w===0?(J0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,E=null):f===w&&(R=!0,E=m.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,w+1)),P=()=>{let N;return x?N=_:R?N=E:m.route.Component?N=v.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=g,v.createElement(yP,{match:m,routeContext:{outlet:g,matches:C,isDataRoute:n!=null},children:N})};return n&&(m.route.ErrorBoundary||m.route.errorElement||w===0)?v.createElement(B0,{location:n.location,revalidation:n.revalidation,component:_,error:x,children:P(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:p}):P()},null)}function dh(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function H0(e){let t=v.useContext(wa);return Ze(t,dh(e)),t}function W0(e){let t=v.useContext(Ls);return Ze(t,dh(e)),t}function wP(e){let t=v.useContext(or);return Ze(t,dh(e)),t}function fh(e){let t=wP(e),n=t.matches[t.matches.length-1];return Ze(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function xP(){return fh("useRouteId")}function SP(){var o;let e=v.useContext(uh),t=W0("useRouteError"),n=fh("useRouteError");return e!==void 0?e:(o=t.errors)==null?void 0:o[n]}var bP=0;function l5(e){let{router:t,basename:n}=H0("useBlocker"),o=W0("useBlocker"),[i,s]=v.useState(""),u=v.useCallback(d=>
61{if(typeof e!="function")return!!e;if(n==="/")return e(d);let{currentLocation:f,nextLocation:p,historyAction:g}=d;return e({currentLocation:{...f,pathname:Nn(f.pathname,n)||f.pathname},nextLocation:{...p,pathname:Nn(p.pathname,n)||p.pathname},historyAction:g})},[n,e]);return v.useEffect(()=>{let d=String(++bP);return s(d),()=>t.deleteBlocker(d)},[t]),v.useEffect(()=>{i!==""&&t.getBlocker(i,u)},[t,i,u]),i&&o.blockers.has(i)?o.blockers.get(i):Za}function RP(){let{router:e}=H0("useNavigate"),t=fh("useNavigate"),n=v.useRef(!1);return U0(()=>{n.current=!0}),v.useCallback(async(i,s={})=>{Lt(n.current,$0),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var Cv={};function J0(e,t,n){!t&&!Cv[e]&&(Cv[e]=!0,Lt(!1,n))}var Tv={};function Pv(e,t){!e&&!Tv[t]&&(Tv[t]=!0,console.warn(t))}var _P="useOptimistic",Ov=Gu[_P],EP=()=>{};function CP(e){return Ov?Ov(e):[e,EP]}function TP(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Lt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:v.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Lt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Lt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var PP=["HydrateFallback","hydrateFallbackElement"],OP=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function kP({router:e,flushSync:t,onError:n,unstable_useTransitions:o}){o=rP()||o;let[s,u]=v.useState(e.state),[d,f]=CP(s),[p,g]=v.useState(),[m,w]=v.useState({isTransitioning:!1}),[x,R]=v.useState(),[_,E]=v.useState(),[C,P]=v.useState(),N=v.useRef(new Map),A=v.useCallback((L,{deletedFetchers:$,newErrors:re,flushSync:le,viewTransitionOpts:se})=>{re&&n&&Object.values(re).forEach(fe=>{var me;return n(fe,{location:L.location,params:((me=L.matches[0])==null?void 0:me.params)??{},unstable_pattern:Ms(L.matches)})}),L.fetchers.forEach((fe,me)=>{fe.data!==void 0&&N.current.set(me,fe.data)}),$.forEach(fe=>N.current.delete(fe)),Pv(le===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Z=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Pv(se==null||Z,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!se||!Z){t&&le?t(()=>u(L)):o===!1?u(L):v.startTransition(()=>{o===!0&&f(fe=>kv(fe,L)),u(L)});return}if(t&&le){t(()=>{_&&(x==null||x.resolve(),_.skipTransition()),w({isTransitioning:!0,flushSync:!0,currentLocation:se.currentLocation,nextLocation:se.nextLocation})});let fe=e.window.document.startViewTransition(()=>{t(()=>u(L))});fe.finished.finally(()=>{t(()=>{R(void 0),E(void 0),g(void 0),w({isTransitioning:!1})})}),t(()=>E(fe));return}_?(x==null||x.resolve(),_.skipTransition(),P({state:L,currentLocation:se.currentLocation,nextLocation:se.nextLocation})):(g(L),w({isTransitioning:!0,flushSync:!1,currentLocation:se.currentLocation,nextLocation:se.nextLocation}))},[e.window,t,_,x,o,f,n]);v.useLayoutEffect(()=>e.subscribe(A),[e,A]),v.useEffect(()=>{m.isTransitioning&&!m.flushSync&&R(new OP)},[m]),v.useEffect(()=>{if(x&&p&&e.window){let L=p,$=x.promise,re=e.window.document.startViewTransition(async()=>{o===!1?u(L):v.startTransition(()=>{o===!0&&f(le=>kv(le,L)),u(L)}),await $});re.finished.finally(()=>{R(void 0),E(void 0),g(void 0),w({isTransitioning:!1})}),E(re)}},[p,x,e.window,o,f]),v.useEffect(()=>{x&&p&&d.location.key===p.location.key&&x.resolve()},[x,_,d.location,p]),v.useEffect(()=>{!m.isTransitioning&&C&&(g(C.state),w({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),P(void 0))},[m.isTransitioning,C]);let q=v.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:L=>e.navigate(L),push:(L,$,re)=>e.navigate(L,{state:$,preventScrollReset:re==null?void 0:re.preventScrollReset}),replace:(L,$,re)=>e.navigate(L,{replace:!0,state:$,preventScrollReset:re==null?void 0:re.preventScrollReset})}),[e]),U=e.basename||"/",T=v.useMemo(()=>({router:e,navigator:q,static:!1,basename:U,onError:n}),[e,q,U,n]);return v.createElement(v.Fragment,null,v.createElement(wa.Provider,{value:T},v.createElement(Ls.Provider,{value:d},v.createElement(F0.Provider,{value:N.current},v.createElement(lh.Provider,{value:m},v.createElement(NP,{basename:U,location:d.location,navigationType:d.historyAction,navigator:q,unstable_useTransitions:o},v.createElement(DP,{routes:e.routes,future:e.future,state:d,onError:n})))))),null)}function kv(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var DP=v.memo(AP);function AP({routes:e,future:t,state:n,onError:o}){return pP(e,void 0,n,o,t)}function IP({to:e,replace:t,state:n,relative:o}){Ze(mi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=v.useContext(Jn);Lt(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=v.useContext(or),{pathname:u}=Ur(),d=ch(),f=Yu(e,Ku(s),u,o==="path"),p=JSON.stringify(f);return v.useEffect(()=>{d(JSON.parse(p),{replace:t,state:n,relative:o})},[d,p,o,t,n]),null}function ph(e){return fP(e.context)}function NP({basename:e="/",children:t=null,location:n,navigationType:o="POP",navigator:i,static:s=!1,unstable_useTransitions:u}){Ze(!mi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),f=v.useMemo(()=>({basename:d,navigator:i,static:s,unstable_useTransitions:u,future:{}}),[d,i,s,u]);typeof n=="string"&&(n=Ho(n));
61let{pathname:p="/",search:g="",hash:m="",state:w=null,key:x="default"}=n,R=v.useMemo(()=>{let _=Nn(p,d);return _==null?null:{location:{pathname:_,search:g,hash:m,state:w,key:x},navigationType:o}},[d,p,g,m,w,x,o]);return Lt(R!=null,`<Router basename="${d}"> is not able to match the URL "${p}${g}${m}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:v.createElement(Jn.Provider,{value:f},v.createElement(Xu.Provider,{children:t,value:R}))}var gu="get",yu="application/x-www-form-urlencoded";function Qu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function MP(e){return Qu(e)&&e.tagName.toLowerCase()==="button"}function LP(e){return Qu(e)&&e.tagName.toLowerCase()==="form"}function zP(e){return Qu(e)&&e.tagName.toLowerCase()==="input"}function FP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qP(e,t){return e.button===0&&(!t||t==="_self")&&!FP(e)}function Ep(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let o=e[n];return t.concat(Array.isArray(o)?o.map(i=>[n,i]):[[n,o]])},[]))}function $P(e,t){let n=Ep(e);return t&&t.forEach((o,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}var Ql=null;function UP(){if(Ql===null)try{new FormData(document.createElement("form"),0),Ql=!1}catch{Ql=!0}return Ql}var BP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Cf(e){return e!=null&&!BP.has(e)?(Lt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yu}"`),null):e}function HP(e,t){let n,o,i,s,u;if(LP(e)){let d=e.getAttribute("action");o=d?Nn(d,t):null,n=e.getAttribute("method")||gu,i=Cf(e.getAttribute("enctype"))||yu,s=new FormData(e)}else if(MP(e)||zP(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(o=f?Nn(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||gu,i=Cf(e.getAttribute("formenctype"))||Cf(d.getAttribute("enctype"))||yu,s=new FormData(d,e),!UP()){let{name:p,type:g,value:m}=e;if(g==="image"){let w=p?`${p}.`:"";s.append(`${w}x`,"0"),s.append(`${w}y`,"0")}else p&&s.append(p,m)}}else{if(Qu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=gu,o=null,i=yu,u=e}return s&&i==="text/plain"&&(u=s,s=void 0),{action:o,method:n.toLowerCase(),encType:i,formData:s,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function hh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function WP(e,t,n,o){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${o}`:i.pathname=`${i.pathname}.${o}`:i.pathname==="/"?i.pathname=`_root.${o}`:t&&Nn(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${o}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${o}`,i}async function JP(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function VP(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function GP(e,t,n){let o=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let u=await JP(s,n);return u.links?u.links():[]}return[]}));return QP(o.flat(1).filter(VP).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Dv(e,t,n,o,i,s){let u=(f,p)=>n[p]?f.route.id!==n[p].route.id:!0,d=(f,p)=>{var g;return n[p].pathname!==f.pathname||((g=n[p].route.path)==null?void 0:g.endsWith("*"))&&n[p].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,p)=>u(f,p)||d(f,p)):s==="data"?t.filter((f,p)=>{var m;let g=o.routes[f.route.id];if(!g||!g.hasLoader)return!1;if(u(f,p)||d(f,p))return!0;
61if(f.route.shouldRevalidate){let w=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function KP(e,t,{includeHydrateFallback:n}={}){return YP(e.map(o=>{let i=t.routes[o.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function YP(e){return[...new Set(e)]}function XP(e){let t={},n=Object.keys(e).sort();for(let o of n)t[o]=e[o];return t}function QP(e,t){let n=new Set;return new Set(t),e.reduce((o,i)=>{let s=JSON.stringify(XP(i));return n.has(s)||(n.add(s),o.push({key:s,link:i})),o},[])}function V0(){let e=v.useContext(wa);return hh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ZP(){let e=v.useContext(Ls);return hh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mh=v.createContext(void 0);mh.displayName="FrameworkContext";function G0(){let e=v.useContext(mh);return hh(e,"You must render this element inside a <HydratedRouter> element"),e}function jP(e,t){let n=v.useContext(mh),[o,i]=v.useState(!1),[s,u]=v.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:p,onMouseLeave:g,onTouchStart:m}=t,w=v.useRef(null);v.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let _=C=>{C.forEach(P=>{u(P.isIntersecting)})},E=new IntersectionObserver(_,{threshold:.5});return w.current&&E.observe(w.current),()=>{E.disconnect()}}},[e]),v.useEffect(()=>{if(o){let _=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(_)}}},[o]);let x=()=>{i(!0)},R=()=>{i(!1),u(!1)};return n?e!=="intent"?[s,w,{}]:[s,w,{onFocus:as(d,x),onBlur:as(f,R),onMouseEnter:as(p,x),onMouseLeave:as(g,R),onTouchStart:as(m,x)}]:[!1,w,{}]}function as(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function eO({page:e,...t}){let{router:n}=V0(),o=v.useMemo(()=>No(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?v.createElement(nO,{page:e,matches:o,...t}):null}function tO(e){let{manifest:t,routeModules:n}=G0(),[o,i]=v.useState([]);return v.useEffect(()=>{let s=!1;return GP(e,t,n).then(u=>{s||i(u)}),()=>{s=!0}},[e,t,n]),o}function nO({page:e,matches:t,...n}){let o=Ur(),{future:i,manifest:s,routeModules:u}=G0(),{basename:d}=V0(),{loaderData:f,matches:p}=ZP(),g=v.useMemo(()=>Dv(e,t,p,s,o,"data"),[e,t,p,s,o]),m=v.useMemo(()=>Dv(e,t,p,s,o,"assets"),[e,t,p,s,o]),w=v.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let _=new Set,E=!1;if(t.forEach(P=>{var A;let N=s.routes[P.route.id];!N||!N.hasLoader||(!g.some(q=>q.route.id===P.route.id)&&P.route.id in f&&((A=u[P.route.id])!=null&&A.shouldRevalidate)||N.hasClientLoader?E=!0:_.add(P.route.id))}),_.size===0)return[];let C=WP(e,d,i.unstable_trailingSlashAwareDataRequests,"data");return E&&_.size>0&&C.searchParams.set("_routes",t.filter(P=>_.has(P.route.id)).map(P=>P.route.id).join(",")),[C.pathname+C.search]},[d,i.unstable_trailingSlashAwareDataRequests,f,o,s,g,t,e,u]),x=v.useMemo(()=>KP(m,s),[m,s]),R=tO(m);return v.createElement(v.Fragment,null,w.map(_=>v.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),x.map(_=>v.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),R.map(({key:_,link:E})=>v.createElement("link",{key:_,nonce:n.nonce,...E,crossOrigin:E.crossOrigin??n.crossOrigin})))}function rO(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var oO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{oO&&(window.__reactRouterVersion="7.13.0")}catch{}function aO(e,t){return AT({basename:t==null?void 0:t.basename,getContext:t==null?void 0:t.getContext,future:t==null?void 0:t.future,history:KC({window:t==null?void 0:t.window}),hydrationData:iO(),routes:e,mapRouteProperties:TP,hydrationRouteProperties:PP,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window,unstable_instrumentations:t==null?void 0:t.unstable_instrumentations}).initialize()}function iO(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:sO(e.errors)}),e}function sO(e){if(!e)return null;let t=Object.entries(e),n={};for(let[o,i]of t)if(i&&i.__type==="RouteErrorResponse")n[o]=new Ns(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let u=new s(i.message);u.stack="",n[o]=u}catch{}}if(n[o]==null){let s=new Error(i.message);s.stack="",n[o]=s}}else n[o]=i;return n}var K0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vr=v.forwardRef(function({onClick:t,discover:n="render",prefetch:o="none",relative:i,reloadDocument:s,replace:u,state:d,target:f,to:p,preventScrollReset:g,viewTransition:m,unstable_defaultShouldRevalidate:w,...x},R){let{basename:_,unstable_useTransitions:E}=v.useContext(Jn),C=typeof p=="string"&&K0.test(p),P=E0(p,_);p=P.to;let N=uP(p,{relative:i}),[A,q,U]=jP(o,x),T=cO(p,{replace:u,state:d,target:f,preventScrollReset:g,relative:i,viewTransition:m,unstable_defaultShouldRevalidate:w,unstable_useTransitions:E});function L(re){t&&t(re),re.defaultPrevented||T(re)}let $=v.createElement("a",{...x,...U,href:P.absoluteURL||N,onClick:P.isExternal||s?t:L,ref:rO(R,q),target:f,"data-discover":!C&&n==="render"?"true":void 0});return A&&!C?v.createElement(v.Fragment,null,$,v.createElement(eO,{page:N})):$});vr.displayName="Link";var ro=v.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:o="",end:i=!1,style:s,to:u,viewTransition:d,children:f,...p},g){let m=zs(u,{relative:p.relative}),w=Ur(),x=v.useContext(Ls),{navigator:R,basename:_}=v.useContext(Jn),E=x!=null&&mO(m)&&d===!0,C=R.encodeLocation?R.encodeLocation(m).pathname:m.pathname,P=w.pathname,N=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(P=P.toLowerCase(),N=N?N.toLowerCase():null,C=C.toLowerCase()),N&&_&&(N=Nn(N,_)||N);const A=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let q=P===C||!i&&P.startsWith(C)&&P.charAt(A)==="/",U=N!=null&&(N===C||!i&&N.startsWith(C)&&N.charAt(C.length)==="/"),T={isActive:q,isPending:U,isTransitioning:E},L=q?t:void 0,$;typeof o=="function"?$=o(T):$=[o,q?"active":null,U?"pending":null,E?"transitioning":null].filter(
61Boolean).join(" ");let re=typeof s=="function"?s(T):s;return v.createElement(vr,{...p,"aria-current":L,className:$,ref:g,style:re,to:u,viewTransition:d},typeof f=="function"?f(T):f)});ro.displayName="NavLink";var lO=v.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:o,replace:i,state:s,method:u=gu,action:d,onSubmit:f,relative:p,preventScrollReset:g,viewTransition:m,unstable_defaultShouldRevalidate:w,...x},R)=>{let{unstable_useTransitions:_}=v.useContext(Jn),E=pO(),C=hO(d,{relative:p}),P=u.toLowerCase()==="get"?"get":"post",N=typeof d=="string"&&K0.test(d),A=q=>{if(f&&f(q),q.defaultPrevented)return;q.preventDefault();let U=q.nativeEvent.submitter,T=(U==null?void 0:U.getAttribute("formmethod"))||u,L=()=>E(U||q.currentTarget,{fetcherKey:t,method:T,navigate:n,replace:i,state:s,relative:p,preventScrollReset:g,viewTransition:m,unstable_defaultShouldRevalidate:w});_&&n!==!1?v.startTransition(()=>L()):L()};return v.createElement("form",{ref:R,method:P,action:C,onSubmit:o?f:A,...x,"data-discover":!N&&e==="render"?"true":void 0})});lO.displayName="Form";function uO(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Y0(e){let t=v.useContext(wa);return Ze(t,uO(e)),t}function cO(e,{target:t,replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:d,unstable_useTransitions:f}={}){let p=ch(),g=Ur(),m=zs(e,{relative:s});return v.useCallback(w=>{if(qP(w,t)){w.preventDefault();let x=n!==void 0?n:Fr(g)===Fr(m),R=()=>p(e,{replace:x,state:o,preventScrollReset:i,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:d});f?v.startTransition(()=>R()):R()}},[g,p,m,n,o,t,e,i,s,u,d,f])}function u5(e){Lt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(Ep(e)),n=v.useRef(!1),o=Ur(),i=v.useMemo(()=>$P(o.search,n.current?null:t.current),[o.search]),s=ch(),u=v.useCallback((d,f)=>{const p=Ep(typeof d=="function"?d(new URLSearchParams(i)):d);n.current=!0,s("?"+p,f)},[s,i]);return[i,u]}var dO=0,fO=()=>`__${String(++dO)}__`;function pO(){let{router:e}=Y0("useSubmit"),{basename:t}=v.useContext(Jn),n=xP(),o=e.fetch,i=e.navigate;return v.useCallback(async(s,u={})=>{let{action:d,method:f,encType:p,formData:g,body:m}=HP(s,t);if(u.navigate===!1){let w=u.fetcherKey||fO();await o(w,n,u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:m,formMethod:u.method||f,formEncType:u.encType||p,flushSync:u.flushSync})}else await i(u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,body:m,formMethod:u.method||f,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:n,flushSync:u.flushSync,viewTransition:u.viewTransition})},[o,i,t,n])}function hO(e,{relative:t}={}){let{basename:n}=v.useContext(Jn),o=v.useContext(or);Ze(o,"useFormAction must be used inside a RouteContext");let[i]=o.matches.slice(-1),s={...zs(e||".",{relative:t})},u=Ur();if(e==null){s.search=u.search;let d=new URLSearchParams(s.search),f=d.getAll("index");if(f.some(g=>g==="")){d.delete("index"),f.filter(m=>m).forEach(m=>d.append("index",m));let g=d.toString();s.search=g?`?${g}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Lr([n,s.pathname])),Fr(s)}function mO(e,{relative:t}={}){let n=v.useContext(lh);Ze(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Y0("useViewTransitionState"),i=zs(e,{relative:t});if(!n.isTransitioning)return!1;let s=Nn(n.currentLocation.pathname,o)||n.currentLocation.pathname,u=Nn(n.nextLocation.pathname,o)||n.nextLocation.pathname;return Eu(i.pathname,u)!=null||Eu(i.pathname,s)!=null}const X0="smritea-theme",Q0="(prefers-color-scheme: dark)",Z0=v.createContext(null);function gO(e){return e==="system"||e==="light"||e==="dark"||e==="bright"}function j0(){return typeof window>"u"||typeof window.matchMedia!="function"?"light":window.matchMedia(Q0).matches?"dar
61k":"light"}function xs(e){return e==="bright"?"bright":e==="system"?j0():e}function Av(){if(typeof window>"u")return"system";const e=window.localStorage.getItem(X0);return e==="warm"?"light":gO(e)?e:"system"}function yO(e){return xs(e)}const vO="smritea-country",wO=new Set(["IN","PK","BD","LK","NP","AF","BT","MV","CN"]);function Tf(){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp(`(?:^|; )${vO}=([^;]*)`)),t=e==null?void 0:e[1];return t!==void 0?decodeURIComponent(t):null}function Pf(e,t){return e!=="system"?xs(e):j0()==="dark"?"dark":t!==null&&wO.has(t)?"light":"bright"}function xO({children:e}){const[t,n]=v.useState(()=>Av()),[o,i]=v.useState(()=>{const d=Av();return d==="system"?Pf(d,Tf()):yO(d)});v.useLayoutEffect(()=>{typeof document<"u"&&(document.documentElement.dataset.theme=o)},[o]),v.useEffect(()=>{if(typeof window>"u")return;if(window.localStorage.setItem(X0,t),t!=="system"||typeof window.matchMedia!="function"){i(xs(t));return}const d=window.matchMedia(Q0),f=()=>{i(t==="system"?Pf(t,Tf()):xs(t))};return i(t==="system"?Pf(t,Tf()):xs(t)),d.addEventListener("change",f),()=>{d.removeEventListener("change",f)}},[t]);const s=v.useCallback(d=>{n(d)},[]),u=v.useMemo(()=>({mode:t,resolvedTheme:o,setMode:s}),[t,o,s]);return S.jsx(Z0.Provider,{value:u,children:e})}function ex(){const e=v.useContext(Z0);if(e===null)throw new Error("useTheme must be used within a ThemeProvider");return e}var gh=i0();const tx=Is(gh);function SO(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const bO=e=>{switch(e){case"success":return EO;case"info":return TO;case"warning":return CO;case"error":return PO;default:return null}},RO=Array(12).fill(0),_O=({visible:e,className:t})=>J.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},J.createElement("div",{className:"sonner-spinner"},RO.map((n,o)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),EO=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),CO=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),TO=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),PO=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),OO=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),kO=()=>{const[e,t]=J.useState(document.hidden);return J.useEffect(()=>{const n=()=>{t(document.hidden)};
vendor: 4,380 bytes, line 61
61return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Cp=1;class DO{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:o,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Cp++,u=this.toasts.find(f=>f.id===s),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),u?this.toasts=this.toasts.map(f=>f.id===s?(this.publish({...f,...t,id:s,title:o}),{...f,...t,id:s,dismissible:d,title:o}):f):this.addToast({title:o,...i,dismissible:d,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(o=>o({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let o;n.loading!==void 0&&(o=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let s=o!==void 0,u;const d=i.then(async p=>{if(u=["resolve",p],J.isValidElement(p))s=!1,this.create({id:o,type:"default",message:p});else if(IO(p)&&!p.ok){s=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${p.status}`):n.error,w=typeof n.description=="function"?await n.description(`HTTP error! status: ${p.status}`):n.description,R=typeof m=="object"&&!J.isValidElement(m)?m:{message:m};this.create({id:o,type:"error",description:w,...R})}else if(p instanceof Error){s=!1;const m=typeof n.error=="function"?await n.error(p):n.error,w=typeof n.description=="function"?await n.description(p):n.description,R=typeof m=="object"&&!J.isValidElement(m)?m:{message:m};this.create({id:o,type:"error",description:w,...R})}else if(n.success!==void 0){s=!1;const m=typeof n.success=="function"?await n.success(p):n.success,w=typeof n.description=="function"?await n.description(p):n.description,R=typeof m=="object"&&!J.isValidElement(m)?m:{message:m};this.create({id:o,type:"success",description:w,...R})}}).catch(async p=>{if(u=["reject",p],n.error!==void 0){s=!1;const g=typeof n.error=="function"?await n.error(p):n.error,m=typeof n.description=="function"?await n.description(p):n.description,x=typeof g=="object"&&!J.isValidElement(g)?g:{message:g};this.create({id:o,type:"error",description:m,...x})}}).finally(()=>{s&&(this.dismiss(o),o=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((p,g)=>d.then(()=>u[0]==="reject"?g(u[1]):p(u[1])).catch(g));return typeof o!="string"&&typeof o!="number"?{unwrap:f}:Object.assign(o,{unwrap:f})},this.custom=(t,n)=>{const o=(n==null?void 0:n.id)||Cp++;return this.create({jsx:t(o),id:o,...n}),o},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const In=new DO,AO=(e,t)=>{const n=(t==null?void 0:t.id)||Cp++;return In.addToast({title:e,...t,id:n}),n},IO=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",NO=AO,MO=()=>In.toasts,LO=()=>In.getActiveToasts(),Iv=Object.assign(NO,{success:In.success,info:In.info,warning:In.warning,error:In.error,custom:In.custom,message:In.message,promise:In.promise,dismiss:In.dismiss,loading:In.loading},{getHistory:MO,getToasts:LO});SO("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;
61--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,513 bytes, line 61
61}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
vendor: 5,360 bytes, line 61
61Zl(e){return e.label!==void 0}const zO=3,FO="24px",qO="16px",Nv=4e3,$O=356,UO=14,BO=45,HO=200;function Ar(...e){return e.filter(Boolean).join(" ")}function WO(e){const[t,n]=e.split("-"),o=[];return t&&o.push(t),n&&o.push(n),o}const JO=e=>{var t,n,o,i,s,u,d,f,p;const{invert:g,toast:m,unstyled:w,interacting:x,setHeights:R,visibleToasts:_,heights:E,index:C,toasts:P,expanded:N,removeToast:A,defaultRichColors:q,closeButton:U,style:T,cancelButtonStyle:L,actionButtonStyle:$,className:re="",descriptionClassName:le="",duration:se,position:Z,gap:fe,expandByDefault:me,classNames:X,icons:ue,closeButtonAriaLabel:I="Close toast"}=e,[V,j]=J.useState(null),[D,H]=J.useState(null),[B,Q]=J.useState(!1),[oe,ee]=J.useState(!1),[ne,he]=J.useState(!1),[we,De]=J.useState(!1),[rt,$e]=J.useState(!1),[Ue,ae]=J.useState(0),[Me,Ke]=J.useState(0),at=J.useRef(m.duration||se||Nv),Ye=J.useRef(null),qe=J.useRef(null),ut=C===0,Tt=C+1<=_,nt=m.type,bt=m.dismissible!==!1,Pt=m.className||"",Nt=m.descriptionClassName||"",Ft=J.useMemo(()=>E.findIndex(ke=>ke.toastId===m.id)||0,[E,m.id]),Xt=J.useMemo(()=>{var ke;return(ke=m.closeButton)!=null?ke:U},[m.closeButton,U]),_t=J.useMemo(()=>m.duration||se||Nv,[m.duration,se]),qt=J.useRef(0),Wt=J.useRef(0),Rn=J.useRef(0),Jt=J.useRef(null),[sn,Vt]=Z.split("-"),ar=J.useMemo(()=>E.reduce((ke,Xe,ft)=>ft>=Ft?ke:ke+Xe.height,0),[E,Ft]),ir=kO(),Cr=m.invert||g,sr=nt==="loading";Wt.current=J.useMemo(()=>Ft*fe+ar,[Ft,ar]),J.useEffect(()=>{at.current=_t},[_t]),J.useEffect(()=>{Q(!0)},[]),J.useEffect(()=>{const ke=qe.current;if(ke){const Xe=ke.getBoundingClientRect().height;return Ke(Xe),R(ft=>[{toastId:m.id,height:Xe,position:m.position},...ft]),()=>R(ft=>ft.filter(it=>it.toastId!==m.id))}},[R,m.id]),J.useLayoutEffect(()=>{if(!B)return;const ke=qe.current,Xe=ke.style.height;ke.style.height="auto";const ft=ke.getBoundingClientRect().height;ke.style.height=Xe,Ke(ft),R(it=>it.find(ct=>ct.toastId===m.id)?it.map(ct=>ct.toastId===m.id?{...ct,height:ft}:ct):[{toastId:m.id,height:ft,position:m.position},...it])},[B,m.title,m.description,R,m.id]);const Te=J.useCallback(()=>{ee(!0),ae(Wt.current),R(ke=>ke.filter(Xe=>Xe.toastId!==m.id)),setTimeout(()=>{A(m)},HO)},[m,A,R,Wt]);J.useEffect(()=>{if(m.promise&&nt==="loading"||m.duration===1/0||m.type==="loading")return;let ke;return N||x||ir?(()=>{if(Rn.current<qt.current){const it=new Date().getTime()-qt.current;at.current=at.current-it}Rn.current=new Date().getTime()})():(()=>{at.current!==1/0&&(qt.current=new Date().getTime(),ke=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),Te()},at.current))})(),()=>clearTimeout(ke)},[N,x,m,nt,ir,Te]),J.useEffect(()=>{m.delete&&Te()},[Te,m.delete]);function Ge(){var ke;if(ue!=null&&ue.loading){var Xe;return J.createElement("div",{className:Ar(X==null?void 0:X.loader,m==null||(Xe=m.classNames)==null?void 0:Xe.loader,"sonner-loader"),"data-visible":nt==="loading"},ue.loading)}return J.createElement(_O,{className:Ar(X==null?void 0:X.loader,m==null||(ke=m.classNames)==null?void 0:ke.loader),visible:nt==="loading"})}const je=m.icon||(ue==null?void 0:ue[nt])||bO(nt);var He,mt;return J.createElement("li",{tabIndex:0,ref:qe,className:Ar(re,Pt,X==null?void 0:X.toast,m==null||(t=m.classNames)==null?void 0:t.toast,X==null?void 0:X.default,X==null?void 0:X[nt],m==null||(n=m.classNames)==null?void 0:n[nt]),"data-sonner-toast":"","data-rich-colors":(He=m.richColors)!=null?He:q,"data-styled":!(m.jsx||m.unstyled||w),"data-mounted":B,"data-promise":!!m.promise,"data-swiped":rt,"data-removed":oe,"data-visible":Tt,"data-y-position":sn,"data-x-position":Vt,"data-index":C,"data-front":ut,"data-swiping":ne,"data-dismissible":bt,"data-type":nt,"data-invert":Cr,"data-swipe-out":we,"data-swipe-direction":D,"data-expanded":!!(N||me&&B),style:{"--index":C,"--toasts-before":C,"--z-index":P.length-C,"--offset":`${oe?Ue:Wt.current}px`,"--initial-height":me?"auto":`${Me}px`,...T,...m.style},onDragEnd:()=>{he(!1),j(null),Jt.current=null},onPointerDown:ke=>{sr||!bt||(Ye.current=new Date,ae(Wt.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(he(!0),Jt.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,Xe,ft;if(we||!bt)return;Jt.current=null;const it=Number(((ke=qe.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),$t=Number(((Xe=qe.current)==null?void 0:Xe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ct=new Date().getTime()-((ft=Ye.current)==null?void 0:ft.getTime()),pt=V==="x"?it:$t,yn=Math.abs(pt)/ct;if(Math.abs(pt)>=BO||yn>.11){ae(Wt.current),m.onDismiss==null||m.onDismiss.call(m,m),H(V==="x"?it>0?"right":"left":$t>0?"down":"up"),Te(),De(!0);return}else{var k,z;(k=qe.current)==null||k.style.setProperty("--swipe-amount-x","0px"),(z=qe.current)==null||z.style.setProperty("--swipe-amount-y","0px")}$e(!1),he(!1),j(null)},onPointerMove:ke=>{var Xe,ft,it;if(!Jt.current||!bt||((Xe=window.getSelection())==null?void 0:Xe.toString().length)>0)return;const ct=ke.clientY-Jt.current.y,pt=ke.clientX-Jt.current.x;var yn;const k=(yn=e.swipeDirections)!=null?yn:WO(Z);!V&&(Math.abs(pt)>1||Math.abs(ct)>1)&&j(Math.abs(pt)>Math.abs(ct)?"x":"y");let z={x:0,y:0};const K=ie=>1/(1.5+Math.abs(ie)/20);if(V==="y"){if(k.includes("top")||k.includes("bottom"))if(k.includes("top")&&ct<0||k.includes("bottom")&&ct>0)z.y=ct;else{const ie=ct*K(ct);
vendor: 4,494 bytes, line 61
61z.y=Math.abs(ie)<Math.abs(ct)?ie:ct}}else if(V==="x"&&(k.includes("left")||k.includes("right")))if(k.includes("left")&&pt<0||k.includes("right")&&pt>0)z.x=pt;else{const ie=pt*K(pt);z.x=Math.abs(ie)<Math.abs(pt)?ie:pt}(Math.abs(z.x)>0||Math.abs(z.y)>0)&&$e(!0),(ft=qe.current)==null||ft.style.setProperty("--swipe-amount-x",`${z.x}px`),(it=qe.current)==null||it.style.setProperty("--swipe-amount-y",`${z.y}px`)}},Xt&&!m.jsx&&nt!=="loading"?J.createElement("button",{"aria-label":I,"data-disabled":sr,"data-close-button":!0,onClick:sr||!bt?()=>{}:()=>{Te(),m.onDismiss==null||m.onDismiss.call(m,m)},className:Ar(X==null?void 0:X.closeButton,m==null||(o=m.classNames)==null?void 0:o.closeButton)},(mt=ue==null?void 0:ue.close)!=null?mt:OO):null,(nt||m.icon||m.promise)&&m.icon!==null&&((ue==null?void 0:ue[nt])!==null||m.icon)?J.createElement("div",{"data-icon":"",className:Ar(X==null?void 0:X.icon,m==null||(i=m.classNames)==null?void 0:i.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Ge():null,m.type!=="loading"?je:null):null,J.createElement("div",{"data-content":"",className:Ar(X==null?void 0:X.content,m==null||(s=m.classNames)==null?void 0:s.content)},J.createElement("div",{"data-title":"",className:Ar(X==null?void 0:X.title,m==null||(u=m.classNames)==null?void 0:u.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?J.createElement("div",{"data-description":"",className:Ar(le,Nt,X==null?void 0:X.description,m==null||(d=m.classNames)==null?void 0:d.description)},typeof m.description=="function"?m.description():m.description):null),J.isValidElement(m.cancel)?m.cancel:m.cancel&&Zl(m.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||L,onClick:ke=>{Zl(m.cancel)&&bt&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,ke),Te())},className:Ar(X==null?void 0:X.cancelButton,m==null||(f=m.classNames)==null?void 0:f.cancelButton)},m.cancel.label):null,J.isValidElement(m.action)?m.action:m.action&&Zl(m.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||$,onClick:ke=>{Zl(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,ke),!ke.defaultPrevented&&Te())},className:Ar(X==null?void 0:X.actionButton,m==null||(p=m.classNames)==null?void 0:p.actionButton)},m.action.label):null)};function Mv(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function VO(e,t){const n={};return[e,t].forEach((o,i)=>{const s=i===1,u=s?"--mobile-offset":"--offset",d=s?qO:FO;function f(p){["top","right","bottom","left"].forEach(g=>{n[`${u}-${g}`]=typeof p=="number"?`${p}px`:p})}typeof o=="number"||typeof o=="string"?f(o):typeof o=="object"?["top","right","bottom","left"].forEach(p=>{o[p]===void 0?n[`${u}-${p}`]=d:n[`${u}-${p}`]=typeof o[p]=="number"?`${o[p]}px`:o[p]}):f(d)}),n}const GO=J.forwardRef(function(t,n){const{invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:u,closeButton:d,className:f,offset:p,mobileOffset:g,theme:m="light",richColors:w,duration:x,style:R,visibleToasts:_=zO,toastOptions:E,dir:C=Mv(),gap:P=UO,icons:N,containerAriaLabel:A="Notifications"}=t,[q,U]=J.useState([]),T=J.useMemo(()=>Array.from(new Set([i].concat(q.filter(D=>D.position).map(D=>D.position)))),[q,i]),[L,$]=J.useState([]),[re,le]=J.useState(!1),[se,Z]=J.useState(!1),[fe,me]=J.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=J.useRef(null),ue=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=J.useRef(null),V=J.useRef(!1),j=J.useCallback(D=>{U(H=>{var B;return(B=H.find(Q=>Q.id===D.id))!=null&&B.delete||In.dismiss(D.id),H.filter(({id:Q})=>Q!==D.id)})},[]);return J.useEffect(()=>In.subscribe(D=>{if(D.dismiss){requestAnimationFrame(()=>{U(H=>H.map(B=>B.id===D.id?{...B,delete:!0}:B))});return}setTimeout(()=>{tx.flushSync(()=>{U(H=>{const B=H.findIndex(Q=>Q.id===D.id);return B!==-1?[...H.slice(0,B),{...H[B],...D},...H.slice(B+1)]:[D,...H]})})})}),[q]),J.useEffect(()=>{if(m!=="system"){me(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?me("dark"):me("light")),typeof window>"u")return;const D=window.matchMedia("(prefers-color-scheme: dark)");try{D.addEventListener("change",({matches:H})=>{me(H?"dark":"light")})}catch{D.addListener(({matches:B})=>
61{try{me(B?"dark":"light")}catch(Q){console.error(Q)}})}},[m]),J.useEffect(()=>{q.length<=1&&le(!1)},[q]),J.useEffect(()=>{const D=H=>{var B;if(s.every(ee=>H[ee]||H.code===ee)){var oe;le(!0),(oe=X.current)==null||oe.focus()}H.code==="Escape"&&(document.activeElement===X.current||(B=X.current)!=null&&B.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[s]),J.useEffect(()=>{if(X.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,V.current=!1)}},[X.current]),J.createElement("section",{ref:n,"aria-label":`${A} ${ue}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((D,H)=>{var B;const[Q,oe]=D.split("-");return q.length?J.createElement("ol",{key:D,dir:C==="auto"?Mv():C,tabIndex:-1,ref:X,className:f,"data-sonner-toaster":!0,"data-sonner-theme":fe,"data-y-position":Q,"data-lifted":re&&q.length>1&&!u,"data-x-position":oe,style:{"--front-toast-height":`${((B=L[0])==null?void 0:B.height)||0}px`,"--width":`${$O}px`,"--gap":`${P}px`,...R,...VO(p,g)},onBlur:ee=>{V.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(V.current=!1,I.current&&(I.current.focus({preventScroll:!0}),I.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||V.current||(V.current=!0,I.current=ee.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{se||le(!1)},onDragEnd:()=>le(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},q.filter(ee=>!ee.position&&H===0||ee.position===D).map((ee,ne)=>{var he,we;return J.createElement(JO,{key:ee.id,icons:N,index:ne,toast:ee,defaultRichColors:w,duration:(he=E==null?void 0:E.duration)!=null?he:x,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:o,visibleToasts:_,closeButton:(we=E==null?void 0:E.closeButton)!=null?we:d,interacting:se,position:D,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:j,toasts:q.filter(De=>De.position==ee.position),heights:L.filter(De=>De.position==ee.position),setHeights:$,expandByDefault:u,gap:P,expanded:re,swipeDirections:t.swipeDirections})})):null}))}),KO=({...e})=>{const{resolvedTheme:t}=ex(),n=t==="dark"?"dark":"light";return S.jsx(GO,{theme:n,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function cn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var YO=typeof Symbol=="function"&&Symbol.observable||"@@observable",Lv=YO,Of=()=>Math.random().toString(36).substring(7).split("").join("."),XO={INIT:`@@redux/INIT${Of()}`,REPLACE:`@@redux/REPLACE${Of()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Of()}`},Cu=XO;function yh(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function nx(e,t,n){if(typeof e!="function")throw new Error(cn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(cn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(cn(1));return n(nx)(e,t)}let o=e,i=t,s=new Map,u=s,d=0,f=!1;
vendor: 4,598 bytes, line 61
61function p(){u===s&&(u=new Map,s.forEach((E,C)=>{u.set(C,E)}))}function g(){if(f)throw new Error(cn(3));return i}function m(E){if(typeof E!="function")throw new Error(cn(4));if(f)throw new Error(cn(5));let C=!0;p();const P=d++;return u.set(P,E),function(){if(C){if(f)throw new Error(cn(6));C=!1,p(),u.delete(P),s=null}}}function w(E){if(!yh(E))throw new Error(cn(7));if(typeof E.type>"u")throw new Error(cn(8));if(typeof E.type!="string")throw new Error(cn(17));if(f)throw new Error(cn(9));try{f=!0,i=o(i,E)}finally{f=!1}return(s=u).forEach(P=>{P()}),E}function x(E){if(typeof E!="function")throw new Error(cn(10));o=E,w({type:Cu.REPLACE})}function R(){const E=m;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(cn(11));function P(){const A=C;A.next&&A.next(g())}return P(),{unsubscribe:E(P)}},[Lv](){return this}}}return w({type:Cu.INIT}),{dispatch:w,subscribe:m,getState:g,replaceReducer:x,[Lv]:R}}function QO(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Cu.INIT})>"u")throw new Error(cn(12));if(typeof n(void 0,{type:Cu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(cn(13))})}function rx(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const u=t[s];typeof e[u]=="function"&&(n[u]=e[u])}const o=Object.keys(n);let i;try{QO(n)}catch(s){i=s}return function(u={},d){if(i)throw i;let f=!1;const p={};for(let g=0;g<o.length;g++){const m=o[g],w=n[m],x=u[m],R=w(x,d);if(typeof R>"u")throw d&&d.type,new Error(cn(14));p[m]=R,f=f||R!==x}return f=f||o.length!==Object.keys(u).length,f?p:u}}function Tu(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function ZO(...e){return t=>(n,o)=>{const i=t(n,o);let s=()=>{throw new Error(cn(15))};const u={getState:i.getState,dispatch:(f,...p)=>s(f,...p)},d=e.map(f=>f(u));return s=Tu(...d)(i.dispatch),{...i,dispatch:s}}}function jO(e){return yh(e)&&"type"in e&&typeof e.type=="string"}var ox=Symbol.for("immer-nothing"),zv=Symbol.for("immer-draftable"),Sn=Symbol.for("immer-state");function gr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Hn=Object,di=Hn.getPrototypeOf,Pu="constructor",Zu="prototype",Tp="configurable",Ou="enumerable",vu="writable",Cs="value",io=e=>!!e&&!!e[Sn];function xr(e){var t;return e?ax(e)||ec(e)||!!e[zv]||!!((t=e[Pu])!=null&&t[zv])||tc(e)||nc(e):!1}var e1=Hn[Zu][Pu].toString(),Fv=new WeakMap;function ax(e){if(!e||!vh(e))return!1;const t=di(e);if(t===null||t===Hn[Zu])return!0;const n=Hn.hasOwnProperty.call(t,Pu)&&t[Pu];if(n===Object)return!0;if(!ei(n))return!1;let o=Fv.get(n);return o===void 0&&(o=Function.toString.call(n),Fv.set(n,o)),o===e1}function ju(e,t,n=!0){Fs(e)===0?(n?Reflect.ownKeys(e):Hn.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((o,i)=>t(i,o,e))}function Fs(e){const t=e[Sn];return t?t.type_:ec(e)?1:tc(e)?2:nc(e)?3:0}var qv=(e,t,n=Fs(e))=>n===2?e.has(t):Hn[Zu].hasOwnProperty.call(e,t),Pp=(e,t,n=Fs(e))=>n===2?e.get(t):e[t],ku=(e,t,n,o=Fs(e))=>{o===2?e.set(t,n):o===3?e.add(n):e[t]=n};function t1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ec=Array.isArray,tc=e=>e instanceof Map,nc=e=>e instanceof Set,vh=e=>typeof e=="object",ei=e=>typeof e=="function",kf=e=>typeof e=="boolean";function n1(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var oo=e=>e.copy_||e.base_,wh=e=>e.modified_?e.copy_:e.base_;function Op(e,t){if(tc(e))return new Map(e);if(nc(e))return new Set(e);if(ec(e))return Array[Zu].slice.call(e);const n=ax(e);if(t===!0||t==="class_only"&&!n){const o=Hn.getOwnPropertyDescriptors(e);delete o[Sn];let i=Reflect.ownKeys(o);for(let s=0;s<i.length;s++){const u=i[s],d=o[u];d[vu]===!1&&(d[vu]=!0,d[Tp]=!0),(d.get||d.set)&&(o[u]={[Tp]:!0,[vu]:!0,[Ou]:d[Ou],[Cs]:e[u]})}return Hn.create(di(e),o)}else{const o=di(e);if(o!==null&&n)return{...e};const i=Hn.create(o);return Hn.assign(i,e)}}function xh(e,t=!1){return rc(e)||io(e)||!xr(e)||(Fs(e)>1&&Hn.defineProperties(e,{set:jl,add:jl,clear:jl,delete:jl}),Hn.freeze(e),t&&ju(e,(n,o)=>{xh(o,!0)},!1)),e}function r1(){gr(2)}var jl={[Cs]:r1};function rc(e){return e===null||!vh(e)?!0:Hn.isFrozen(e)}var Du="MapSet",kp="Patches",$v="ArrayMethods",ix={};function ha(e){const t=ix[e];return t||gr(0,e),t}var Uv=e=>!!ix[e],Ts,sx=()=>Ts,o1=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Uv(Du)?ha(Du):void 0,arrayMethodsPlugin_:Uv($v)?ha($v):void 0});function Bv(e,t){t&&(e.patchPlugin_=ha(kp),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Dp(e){Ap(e),e.drafts_.forEach(a1),e.drafts_=null}
61function Ap(e){e===Ts&&(Ts=e.parent_)}var Hv=e=>Ts=o1(Ts,e);function a1(e){const t=e[Sn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Wv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Sn].modified_&&(Dp(t),gr(4)),xr(e)&&(e=Jv(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Sn].base_,e,t)}else e=Jv(t,n);return i1(t,e,!0),Dp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ox?e:void 0}function Jv(e,t){if(rc(t))return t;const n=t[Sn];if(!n)return Au(t,e.handledSet_,e);if(!oc(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:o}=n;if(o)for(;o.length>0;)o.pop()(e);cx(n,e)}return n.copy_}function i1(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xh(t,n)}function lx(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var oc=(e,t)=>e.scope_===t,s1=[];function ux(e,t,n,o){const i=oo(e),s=e.type_;if(o!==void 0&&Pp(i,o,s)===t){ku(i,o,n,s);return}if(!e.draftLocations_){const d=e.draftLocations_=new Map;ju(i,(f,p)=>
61{if(io(p)){const g=d.get(p)||[];g.push(f),d.set(p,g)}})}const u=e.draftLocations_.get(t)??s1;for(const d of u)ku(i,d,n,s)}function l1(e,t,n){e.callbacks_.push(function(i){var d;const s=t;if(!s||!oc(s,i))return;(d=i.mapSetPlugin_)==null||d.fixSetContents(s);const u=wh(s);ux(e,s.draft_??s,u,n),cx(s,i)})}function cx(e,t){var o;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((o=e.assigned_)==null?void 0:o.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const s=i.getPath(e);s&&i.generatePatches_(e,s,t)}lx(e)}}function u1(e,t,n){const{scope_:o}=e;if(io(n)){const i=n[Sn];oc(i,o)&&i.callbacks_.push(function(){wu(e);const u=wh(i);ux(e,n,u,t)})}else xr(n)&&e.callbacks_.push(function(){const s=oo(e);e.type_===3?s.has(n)&&Au(n,o.handledSet_,o):Pp(s,t,e.type_)===n&&o.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Au(Pp(e.copy_,t,e.type_),o.handledSet_,o)})}function Au(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||io(e)||t.has(e)||!xr(e)||rc(e)||(t.add(e),ju(e,(o,i)=>{if(io(i)){const s=i[Sn];if(oc(s,n)){const u=wh(s);ku(e,o,u,e.type_),lx(s)}}else xr(i)&&Au(i,t,n)})),e}function c1(e,t){const n=ec(e),o={type_:n?1:0,scope_:t?t.scope_:sx(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=o,s=Iu;n&&(i=[o],s=Ps);const{revoke:u,proxy:d}=Proxy.revocable(i,s);return o.draft_=d,o.revoke_=u,[d,o]}var Iu={get(e,t){if(t===Sn)return e;let n=e.scope_.arrayMethodsPlugin_;const o=e.type_===1&&typeof t=="string";if(o&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=oo(e);if(!qv(i,t,e.type_))return d1(e,i,t);const s=i[t];if(e.finalized_||!xr(s)||o&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&n1(t))return s;if(s===Df(e.base_,t)){wu(e);const u=e.type_===1?+t:t,d=Np(e.scope_,s,e,u);return e.copy_[u]=d}return s},has(e,t){return t in oo(e)},ownKeys(e){return Reflect.ownKeys(oo(e))},set(e,t,n){const o=dx(oo(e),t);if(o!=null&&o.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const i=Df(oo(e),t),s=i==null?void 0:i[Sn];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(t1(n,i)&&(n!==void 0||qv(e.base_,t,e.type_)))return!0;wu(e),Ip(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),u1(e,t,n)),!0},deleteProperty(e,t){return wu(e),Df(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ip(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=oo(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o&&{[vu]:!0,[Tp]:e.type_!==1||t!=="length",[Ou]:o[Ou],[Cs]:n[t]}},defineProperty(){gr(11)},getPrototypeOf(e){return di(e.base_)},setPrototypeOf(){gr(12)}},Ps={};for(let e in Iu){let t=Iu[e];Ps[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Ps.deleteProperty=function(e,t){return Ps.set.call(this,e,t,void 0)};Ps.set=function(e,t,n){return Iu.set.call(this,e[0],t,n,e[0])};function Df(e,t){const n=e[Sn];return(n?oo(n):e)[t]}function d1(e,t,n){var i;const o=dx(t,n);return o?Cs in o?o[Cs]:(i=o.get)==null?void 0:i.call(e.draft_):void 0}function dx(e,t){if(!(t in e))return;let n=di(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=di(n)}}function Ip(e){e.modified_||(e.modified_=!0,e.parent_&&Ip(e.parent_))}function wu(e){e.copy_||(e.assigned_=new Map,e.copy_=Op(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var f1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,o)=>{if(ei(t)&&!ei(n)){const s=n;n=t;const u=this;return function(f=s,...p){return u.produce(f,g=>n.call(this,g,...p))}}ei(n)||gr(6),o!==void 0&&!ei(o)&&gr(7);let i;if(xr(t)){const s=Hv(this),u=Np(s,t,void 0);let d=!0;try{i=n(u),d=!1}finally{d?Dp(s):Ap(s)}return Bv(s,o),Wv(i,s)}else if(!t||!vh(t)){if(i=n(t),i===void 0&&(i=t),i===ox&&(i=void 0),this.autoFreeze_&&xh(i,!0),o){const s=[],u=[];ha(kp).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:u}),o(s,u)}return i}else gr(1,t)},this.produceWithPatches=(t,n)=>{if(ei(t))return(u,...d)=>this.produceWithPatches(u,f=>t(f,...d));let o,i;return[this.produce(t,n,(u,d)=>{o=u,i=d}),o,i]},kf(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),kf(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),kf(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xr(e)||gr(8),io(e)&&(e=p1(e));const t=Hv(this),n=Np(t,e,void 0);return n[Sn].isManual_=!0,Ap(t),n}finishDraft(e,t){const n=e&&e[Sn];(!n||!n.isManual_)&&gr(9);const{scope_:o}=n;return Bv(o,t),Wv(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>
61-1&&(t=t.slice(n+1));const o=ha(kp).applyPatches_;return io(e)?o(e,t):this.produce(e,i=>o(i,t))}};function Np(e,t,n,o){const[i,s]=tc(t)?ha(Du).proxyMap_(t,n):nc(t)?ha(Du).proxySet_(t,n):c1(t,n);return((n==null?void 0:n.scope_)??sx()).drafts_.push(i),s.callbacks_=(n==null?void 0:n.callbacks_)??[],s.key_=o,n&&o!==void 0?l1(n,s,o):s.callbacks_.push(function(f){var g;(g=f.mapSetPlugin_)==null||g.fixSetContents(s);const{patchPlugin_:p}=f;s.modified_&&p&&p.generatePatches_(s,[],f)}),i}function p1(e){return io(e)||gr(10,e),fx(e)}function fx(e){if(!xr(e)||rc(e))return e;const t=e[Sn];let n,o=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Op(e,t.scope_.immer_.useStrictShallowCopy_),o=t.scope_.immer_.shouldUseStrictIteration()}else n=Op(e,!0);return ju(n,(i,s)=>{ku(n,i,fx(s))},o),t&&(t.finalized_=!1),n}var h1=new f1,px=h1.produce;function hx(e){return({dispatch:n,getState:o})=>i=>s=>typeof s=="function"?s(n,o,e):i(s)}var m1=hx(),g1=hx,y1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tu:Tu.apply(null,arguments)},v1=e=>e&&typeof e.match=="function";function Ss(e,t){function n(...o){if(t){let i=t(...o);if(!i)throw new Error(wr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:o[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=o=>jO(o)&&o.type===e,n}var mx=class hs extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,hs.prototype)}static get[Symbol.species](){return hs}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new hs(...t[0].concat(this)):new hs(...t.concat(this))}};function Vv(e){return xr(e)?px(e,()=>{}):e}function ms(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function w1(e){return typeof e=="boolean"}var x1=()=>function(t){const{thunk:n=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let u=new mx;return n&&(w1(n)?u.push(m1):u.push(g1(n.extraArgument))),u},S1="RTK_autoBatch",Gv=e=>t=>{setTimeout(t,e)},b1=(e={type:"raf"})=>t=>(...n)=>{const o=t(...n);let i=!0,s=!1,u=!1;const d=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gv(10):e.type==="callback"?e.queueNotification:Gv(e.timeout),p=()=>{u=!1,s&&(s=!1,d.forEach(g=>g()))};return Object.assign({},o,{subscribe(g){const m=()=>i&&g(),w=o.subscribe(m);return d.add(g),()=>{w(),d.delete(g)}},dispatch(g){var m;try{return i=!((m=g==null?void 0:g.meta)!=null&&m[S1]),s=!i,s&&(u||(u=!0,f(p))),o.dispatch(g)}finally{i=!0}}})},R1=e=>function(n){const{autoBatch:o=!0}=n??{};let i=new mx(e);return o&&i.push(b1(typeof o=="object"?o:void 0)),i};function _1(e){const t=x1(),{reducer:n=void 0,middleware:o,devTools:i=!0,preloadedState:s=void 0,enhancers:u=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(yh(n))d=rx(n);else throw new Error(wr(1));let f;typeof o=="function"?f=o(t):f=t();let p=Tu;i&&(p=y1({trace:!1,...typeof i=="object"&&i}));const g=ZO(...f),m=R1(g);let w=typeof u=="function"?u(m):m();const x=p(...w);return nx(d,s,x)}function gx(e){const t={},n=[];let o;const i={addCase(s,u){const d=typeof s=="string"?s:s.type;if(!d)throw new Error(wr(28));if(d in t)throw new Error(wr(29));return t[d]=u,i},addAsyncThunk(s,u){return u.pending&&(t[s.pending.type]=u.pending),u.rejected&&(t[s.rejected.type]=u.rejected),u.fulfilled&&(t[s.fulfilled.type]=u.fulfilled),u.settled&&n.push({matcher:s.settled,reducer:u.settled}),i},addMatcher(s,u){return n.push({matcher:s,reducer:u}),i},addDefaultCase(s){return o=s,i}};return e(i),[t,n,o]}function E1(e){return typeof e=="function"}function C1(e,t){let[n,o,i]=gx(t),s;if(E1(e))s=()=>Vv(e());else{const d=Vv(e);s=()=>d}function u(d=s(),f){let p=[n[f.type],...o.filter(({matcher:g})=>g(f)).map(({reducer:g})=>g)];return p.filter(g=>!!g).length===0&&(p=[i]),p.reduce((g,m)=>{if(m)if(io(g)){const x=m(g,f);return x===void 0?g:x}else{if(xr(g))return px(g,w=>m(w,f));{const w=m(g,f);if(w===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}}return g},d)}return u.getInitialState=s,u}var T1=(e,t)=>v1(e)?e.match(t):e(t);function P1(...e){return t=>e.some(n=>T1(n,t))}var O1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",yx=(e=21)=>{let t="",n=e;for(;n--;)t+=O1[Math.random()*64|0];return t},k1=["name","message","stack","code"],Af=class{constructor(e,t){hr(this,"_type");this.payload=e,this.meta=t}},Kv=class{constructor(e,t){hr(this,"_type");this.payload=e,this.meta=t}},D1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of k1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Yv="External signal was aborted",Ht=(()=>{function e(t,n,o){const i=Ss(t+"/fulfilled",(f,p,g,m)=>({payload:f,meta:{...m||{},arg:g,requestId:p,requestStatus:"fulfilled"}})),s=Ss(t+"/pending",(f,p,g)=>({payload:void 0,meta:{...g||{},arg:p,requestId:f,requestStatus:"pending"}}
61)),u=Ss(t+"/rejected",(f,p,g,m,w)=>({payload:m,error:(o&&o.serializeError||D1)(f||"Rejected"),meta:{...w||{},arg:g,requestId:p,rejectedWithValue:!!m,requestStatus:"rejected",aborted:(f==null?void 0:f.name)==="AbortError",condition:(f==null?void 0:f.name)==="ConditionError"}}));function d(f,{signal:p}={}){return(g,m,w)=>{const x=o!=null&&o.idGenerator?o.idGenerator(f):yx(),R=new AbortController;let _,E;function C(N){E=N,R.abort()}p&&(p.aborted?C(Yv):p.addEventListener("abort",()=>C(Yv),{once:!0}));const P=(async function(){var q,U;let N;try{let T=(q=o==null?void 0:o.condition)==null?void 0:q.call(o,f,{getState:m,extra:w});if(I1(T)&&(T=await T),T===!1||R.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const L=new Promise(($,re)=>{_=()=>{re({name:"AbortError",message:E||"Aborted"})},R.signal.addEventListener("abort",_,{once:!0})});g(s(x,f,(U=o==null?void 0:o.getPendingMeta)==null?void 0:U.call(o,{requestId:x,arg:f},{getState:m,extra:w}))),N=await Promise.race([L,Promise.resolve(n(f,{dispatch:g,getState:m,extra:w,requestId:x,signal:R.signal,abort:C,rejectWithValue:($,re)=>new Af($,re),fulfillWithValue:($,re)=>new Kv($,re)})).then($=>{if($ instanceof Af)throw $;return $ instanceof Kv?i($.payload,x,f,$.meta):i($,x,f)})])}catch(T){N=T instanceof Af?u(null,x,f,T.payload,T.meta):u(T,x,f)}finally{_&&R.signal.removeEventListener("abort",_)}return o&&!o.dispatchConditionRejection&&u.match(N)&&N.meta.condition||g(N),N})();return Object.assign(P,{abort:C,requestId:x,arg:f,unwrap(){return P.then(A1)}})}}return Object.assign(d,{pending:s,rejected:u,fulfilled:i,settled:P1(u,i),typePrefix:t})}return e.withTypes=()=>e,e})();function A1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function I1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var N1=Symbol.for("rtk-slice-createasyncthunk");function M1(e,t){return`${e}/${t}`}function L1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[N1];return function(i){const{name:s,reducerPath:u=s}=i;if(!s)throw new Error(wr(11));const d=(typeof i.reducers=="function"?i.reducers(F1()):i.reducers)||{},f=Object.keys(d),p={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(A,q){const U=typeof A=="string"?A:A.type;if(!U)throw new Error(wr(12));if(U in p.sliceCaseReducersByType)throw new Error(wr(13));return p.sliceCaseReducersByType[U]=q,g},addMatcher(A,q){return p.sliceMatchers.push({matcher:A,reducer:q}),g},exposeAction(A,q){return p.actionCreators[A]=q,g},exposeCaseReducer(A,q){return p.sliceCaseReducersByName[A]=q,g}};f.forEach(A=>{const q=d[A],U={reducerName:A,type:M1(s,A),createNotation:typeof i.reducers=="function"};$1(q)?B1(U,q,g,t):q1(U,q,g)});function m(){const[A={},q=[],U=void 0]=typeof i.extraReducers=="function"?gx(i.extraReducers):[i.extraReducers],T={...A,...p.sliceCaseReducersByType};return C1(i.initialState,L=>{for(let $ in T)L.addCase($,T[$]);for(let $ of p.sliceMatchers)L.addMatcher($.matcher,$.reducer);for(let $ of q)L.addMatcher($.matcher,$.reducer);U&&L.addDefaultCase(U)})}const w=A=>A,x=new Map,R=new WeakMap;let _;function E(A,q){return _||(_=m()),_(A,q)}function C(){return _||(_=m()),_.getInitialState()}function P(A,q=!1){function U(L){let $=L[A];return typeof $>"u"&&q&&($=ms(R,U,C)),$}function T(L=w){const $=ms(x,q,()=>new WeakMap);return ms($,L,()=>{const re={};for(const[le,se]of Object.entries(i.selectors??{}))re[le]=z1(se,L,()=>ms(R,L,C),q);return re})}return{reducerPath:A,getSelectors:T,get selectors(){return T(U)},selectSlice:U}}const N={name:s,reducer:E,actions:p.actionCreators,caseReducers:p.sliceCaseReducersByName,getInitialState:C,...P(u),injectInto(A,{reducerPath:q,...U}={}){const T=q??u;return A.inject({reducerPath:T,reducer:E},U),{...N,...P(T,!0)}}};return N}}function z1(e,t,n,o){function i(s,...u){let d=t(s);return typeof d>"u"&&o&&(d=n()),e(d,...u)}return i.unwrapped=e,i}var ac=L1();function F1(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function q1({type:e,reducerName:t,createNotation:n},o,i){let s,u;if("reducer"in o){if(n&&!U1(o))throw new Error(wr(17));s=o.reducer,u=o.prepare}else s=o;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,u?Ss(e,u):Ss(e))}function $1(e){return e._reducerDefinitionType==="asyncThunk"}function U1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function B1({type:e,reducerName:t},n,o,i){if(!i)throw new Error(wr(18));const{payloadCreator:s,fulfilled:u,pending:d,rejected:f,settled:p,options:g}=n,m=i(e,s,g);o.exposeAction(t,m),u&&o.addCase(m.fulfilled,u),d&&o.addCase(m.pending,d),f&&o.addCase(m.rejected,f),p&&o.addMatcher(m.settled,p),o.exposeCaseReducer(t,{fulfilled:u||eu,pending:d||eu,rejected:f||eu,settled:p||eu})}function eu(){}var H1=e=>"reducerPath"in e&&typeof e.reducerPath=="string",W1=e=>e.flatMap(t=>H1(t)?[[t.reducerPath,t.reducer]]:Object.entries(t)),Sh=Symbol.for("rtk-state-proxy-original"),J1=e=>!!e&&!!e[Sh],V1=new WeakMap,G1=(e,t,n)=>ms(V1,e,()=>new Proxy(e,{get:(o,i,s)=>{if(i===Sh)return o;const u=Reflect.get(o,i,s);if(typeof u>"u"){const d=n[i];if(typeof d<"u")return d;const f=t[i];if(f){const p=f(void 0,{type:yx()});if(typeof p>"u")throw new Error(wr(24));return n[i]=p,p}}return u}})),K1=e=>{if(!J1(e))throw new Error(wr(25));return e[Sh]},Y1={},X1=(e=Y1)=>e;function Q1(...e){const t=Object.fromEntries(W1(e)),n=()=>Object.keys(t).length?rx(t):X1;let o=n();function i(f,p){return o(f,p)}i.withLazyLoadedSlices=()=>i;const s={},u=(f,p={})=>{const{reducerPath:g,reducer:m}=f,w=t[g];return!p.overrideExisting&&w&&w!==m||(p.overrideExisting&&w!==m&&delete s[g],t[g]=m,o=n()),i},d=Object.assign(function(p,g){return function(w,...x){return p(G1(g?g(w,...x):w,t,s),...x)}},{original:K1});return Object.assign(i,{inject:u,selector:d})}function wr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function Z1(e,t){const n=v.createContext(t),o=s=>{const{children:u,...d}=s,f=v.useMemo(()=>d,Object.values(d));return S.jsx(n.Provider,{value:f,children:u})};o.displayName=e+"Provider";function i(s){const u=v.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,i]}function xa(e,t=[]){let n=[];function o(s,u){const d=v.createContext(u),f=n.length;n=[...n,u];const p=m=>{var C;const{scope:w,children:x,...R}=m,_=((C=w==null?void 0:w[e])==null?void 0:C[f])||d,E=v.useMemo(()=>R,Object.values(R));return S.jsx(_.Provider,{value:E,children:x})};p.displayName=s+"Provider";function g(m,w){var _;const x=((_=w==null?void 0:w[e])==null?void 0:_[f])||d,R=v.useContext(x);if(R)return R;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[p,g]}const i=()=>{const s=n.map(u=>v.createContext(u));return function(d){const f=(d==null?void 0:d[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return i.scopeName=e,[o,j1(i,...t)]}function j1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const u=o.reduce((d,{useScope:f,scopeName:p})=>{const m=f(s)[`__scope${p}`];return{...d,...m}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function Xv(e,t){if(typeof e=="function")return e(t);
vendor: 10,605 bytes, lines 61-121
61e!=null&&(e.current=t)}function ic(...e){return t=>{let n=!1;const o=e.map(i=>{const s=Xv(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<o.length;i++){const s=o[i];typeof s=="function"?s():Xv(e[i],null)}}}}function tn(...e){return v.useCallback(ic(...e),e)}var so=v.forwardRef((e,t)=>{const{children:n,...o}=e,i=v.Children.toArray(n),s=i.find(ek);if(s){const u=s.props.children,d=i.map(f=>f===s?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:f);return S.jsx(Mp,{...o,ref:t,children:v.isValidElement(u)?v.cloneElement(u,void 0,d):null})}return S.jsx(Mp,{...o,ref:t,children:n})});so.displayName="Slot";var Mp=v.forwardRef((e,t)=>{const{children:n,...o}=e;if(v.isValidElement(n)){const i=nk(n),s=tk(o,n.props);return n.type!==v.Fragment&&(s.ref=t?ic(t,i):i),v.cloneElement(n,s)}return v.Children.count(n)>1?v.Children.only(null):null});Mp.displayName="SlotClone";var vx=({children:e})=>S.jsx(S.Fragment,{children:e});function ek(e){return v.isValidElement(e)&&e.type===vx}function tk(e,t){const n={...t};for(const o in t){const i=e[o],s=t[o];/^on[A-Z]/.test(o)?i&&s?n[o]=(...d)=>{s(...d),i(...d)}:i&&(n[o]=i):o==="style"?n[o]={...i,...s}:o==="className"&&(n[o]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function nk(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function wx(e){const t=e+"CollectionProvider",[n,o]=xa(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=x=>{const{scope:R,children:_}=x,E=J.useRef(null),C=J.useRef(new Map).current;return S.jsx(i,{scope:R,itemMap:C,collectionRef:E,children:_})};u.displayName=t;const d=e+"CollectionSlot",f=J.forwardRef((x,R)=>{const{scope:_,children:E}=x,C=s(d,_),P=tn(R,C.collectionRef);return S.jsx(so,{ref:P,children:E})});f.displayName=d;const p=e+"CollectionItemSlot",g="data-radix-collection-item",m=J.forwardRef((x,R)=>{const{scope:_,children:E,...C}=x,P=J.useRef(null),N=tn(R,P),A=s(p,_);return J.useEffect(()=>(A.itemMap.set(P,{ref:P,...C}),()=>void A.itemMap.delete(P))),S.jsx(so,{[g]:"",ref:N,children:E})});m.displayName=p;function w(x){const R=s(e+"CollectionConsumer",x);return J.useCallback(()=>{const E=R.collectionRef.current;if(!E)return[];const C=Array.from(E.querySelectorAll(`[${g}]`));return Array.from(R.itemMap.values()).sort((A,q)=>C.indexOf(A.ref.current)-C.indexOf(q.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:u,Slot:f,ItemSlot:m},w,o]}function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Sr(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function sc({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=rk({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:o,d=Sr(n),f=v.useCallback(p=>{if(s){const m=typeof p=="function"?p(e):p;m!==e&&d(m)}else i(p)},[s,e,i,d]);return[u,f]}function rk({defaultProp:e,onChange:t}){const n=v.useState(e),[o]=n,i=v.useRef(o),s=Sr(t);return v.useEffect(()=>{i.current!==o&&(s(o),i.current=o)},[o,i,s]),n}var ok=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],zt=ok.reduce((e,t)=>{const n=v.forwardRef((o,i)=>{const{asChild:s,...u}=o,d=s?so:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(d,{...u,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function xx(e,t){e&&gh.flushSync(()=>e.dispatchEvent(t))}var ma=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function ak(e,t){return v.useReducer((n,o)=>t[n][o]??n,e)}var Br=e=>{const{present:t,children:n}=e,o=ik(t),i=typeof n=="function"?n({present:o.isPresent}):v.Children.only(n),s=tn(o.ref,sk(i));return typeof n=="function"||o.isPresent?v.cloneElement(i,{ref:s}):null};Br.displayName="Presence";function ik(e){const[t,n]=v.useState(),o=v.useRef({}),i=v.useRef(e),s=v.useRef("none"),u=e?"mounted":"unmounted",[d,f]=ak(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=tu(o.current);s.current=d==="mounted"?p:"none"},[d]),ma(()=>{const p=o.current,g=i.current;if(g!==e){const w=s.current,x=tu(p);e?f("MOUNT"):x==="none"||(p==null?void 0:p.display)==="none"?f("UNMOUNT"):f(g&&w!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),ma(()=>{if(t){let p;const g=t.ownerDocument.defaultView??window,m=x=>{const _=tu(o.current).includes(x.animationName);if(x.target===t&&_&&(f("ANIMATION_END"),!i.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",p=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},w=x=>{x.target===t&&(s.current=tu(o.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{g.clearTimeout(p),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:v.useCallback(p=>{p&&(o.current=getComputedStyle(p)),n(p)},[])}}function tu(e){return(e==null?void 0:e.animationName)||"none"}function sk(e){var o,i;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var lk=Gu.useId||(()=>{}),uk=0;function pa(e){const[t,n]=v.useState(lk());return ma(()=>{n(o=>o??String(uk++))},[e]),e||(t?`radix-${t}`:"")}var ck=v.createContext(void 0);function Sx(e){const t=v.useContext(ck);return e||t||"ltr"}/**
62 * @license lucide-react v0.487.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const dk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Qv=e=>{const t=fk(e);return t.charAt(0).toUpperCase()+t.slice(1)},bx=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();/**
67 * @license lucide-react v0.487.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */var pk={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"};/**
72 * @license lucide-react v0.487.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const hk=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:i="",children:s,iconNode:u,...d},f)=>v.createElement("svg",{ref:f,...pk,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:bx("lucide",i),...d},[...u.map(([p,g])=>v.createElement(p,g)),...Array.isArray(s)?s:[s]]));/**
77 * @license lucide-react v0.487.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const Wo=(e,t)=>{const n=v.forwardRef(({className:o,...i},s)=>v.createElement(hk,{ref:s,iconNode:t,className:bx(`lucide-${dk(Qv(e))}`,`lucide-${e}`,o),...i}));return n.displayName=Qv(e),n};/**
82 * @license lucide-react v0.487.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const mk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],gk=Wo("check",mk);/**
87 * @license lucide-react v0.487.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const yk=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],vk=Wo("coffee",yk);/**
92 * @license lucide-react v0.487.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const wk=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],xk=Wo("menu",wk);/**
97 * @license lucide-react v0.487.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const Sk=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],bk=Wo("monitor",Sk);/**
102 * @license lucide-react v0.487.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const Rk=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],_k=Wo("moon",Rk);/**
107 * @license lucide-react v0.487.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const Ek=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Ck=Wo("panel-left",Ek);/**
112 * @license lucide-react v0.487.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const Tk=[["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"}]],Pk=Wo("sparkles",Tk);/**
117 * @license lucide-react v0.487.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const Ok=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 7,719 bytes, line 121
121],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kk=Wo("x",Ok);function Rx(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Rx(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function _x(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Rx(e))&&(o&&(o+=" "),o+=t);return o}const bh="-",Dk=e=>{const t=Ik(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{const d=u.split(bh);return d[0]===""&&d.length!==1&&d.shift(),Ex(d,t)||Ak(u)},getConflictingClassGroupIds:(u,d)=>{const f=n[u]||[];return d&&o[u]?[...f,...o[u]]:f}}},Ex=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),i=o?Ex(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(bh);return(u=t.validators.find(({validator:d})=>d(s)))==null?void 0:u.classGroupId},Zv=/^\[(.+)\]$/,Ak=e=>{if(Zv.test(e)){const t=Zv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ik=e=>{const{theme:t,classGroups:n}=e,o={nextPart:new Map,validators:[]};for(const i in n)Lp(n[i],o,i,t);return o},Lp=(e,t,n,o)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:jv(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(Nk(i)){Lp(i(o),t,n,o);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,u])=>{Lp(u,jv(t,s),n,o)})})},jv=(e,t)=>{let n=e;return t.split(bh).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Nk=e=>e.isThemeGetter,Mk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const i=(s,u)=>{n.set(s,u),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let u=n.get(s);if(u!==void 0)return u;if((u=o.get(s))!==void 0)return i(s,u),u},set(s,u){n.has(s)?n.set(s,u):i(s,u)}}},zp="!",Fp=":",Lk=Fp.length,zk=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=i=>{const s=[];let u=0,d=0,f=0,p;for(let R=0;R<i.length;R++){let _=i[R];if(u===0&&d===0){if(_===Fp){s.push(i.slice(f,R)),f=R+Lk;continue}if(_==="/"){p=R;continue}}_==="["?u++:_==="]"?u--:_==="("?d++:_===")"&&d--}const g=s.length===0?i:i.substring(f),m=Fk(g),w=m!==g,x=p&&p>f?p-f:void 0;return{modifiers:s,hasImportantModifier:w,baseClassName:m,maybePostfixModifierPosition:x}};if(t){const i=t+Fp,s=o;o=u=>u.startsWith(i)?s(u.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const i=o;o=s=>n({className:s,parseClassName:i})}return o},Fk=e=>e.endsWith(zp)?e.substring(0,e.length-1):e.startsWith(zp)?e.substring(1):e,qk=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const i=[];let s=[];return o.forEach(u=>{u[0]==="["||t[u]?(i.push(...s.sort(),u),s=[]):s.push(u)}),i.push(...s.sort()),i}},$k=e=>({cache:Mk(e.cacheSize),parseClassName:zk(e),sortModifiers:qk(e),...Dk(e)}),Uk=/\s+/,Bk=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:s}=t,u=[],d=e.trim().split(Uk);let f="";for(let p=d.length-1;p>=0;p-=1){const g=d[p],{isExternal:m,modifiers:w,hasImportantModifier:x,baseClassName:R,maybePostfixModifierPosition:_}=n(g);if(m){f=g+(f.length>0?" "+f:f);continue}let E=!!_,C=o(E?R.substring(0,_):R);if(!C){if(!E){f=g+(f.length>0?" "+f:f);continue}if(C=o(R),!C){f=g+(f.length>0?" "+f:f);continue}E=!1}const P=s(w).join(":"),N=x?P+zp:P,A=N+C;if(u.includes(A))continue;u.push(A);const q=i(C,E);for(let U=0;U<q.length;++U){const T=q[U];u.push(N+T)}f=g+(f.length>0?" "+f:f)}return f};function Hk(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Cx(t))&&(o&&(o+=" "),o+=n);return o}const Cx=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Cx(e[o]))&&(n&&(n+=" "),n+=t);return n};function Wk(e,...t){let n,o,i,s=u;function u(f){const p=t.reduce((g,m)=>m(g),e());return n=$k(p),o=n.cache.get,i=n.cache.set,s=d,d(f)}function d(f){const p=o(f);if(p)return p;const g=Bk(f,n);return i(f,g),g}return function(){return s(Hk.apply(null,arguments))}}const jt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Tx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Px=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Jk=/^\d+\/\d+$/,Vk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gk=/\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$/,Kk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Va=e=>Jk.test(e),Qe=e=>!!e&&!Number.isNaN(Number(e)),Ao=e=>!!e&&Number.isInteger(Number(e)),If=e=>e.endsWith("%")&&Qe(e.slice(0,-1)),to=e=>Vk.test(e),Qk=()=>!0,Zk=e=>Gk.test(e)&&!Kk.test(e),Ox=()=>!1,jk=e=>Yk.test(e),eD=e=>Xk.test(e),tD=e=>!Ee(e)&&!Ce(e),nD=e=>gi(e,Ax,Ox),Ee=e=>Tx.test(e),sa=e=>gi(e,Ix,Zk),Nf=e=>gi(e,sD,Qe),ew=e=>gi(e,kx,Ox),rD=e=>gi(e,Dx,eD),nu=e=>gi(e,Nx,jk),Ce=e=>Px.test(e),is=e=>yi(e,Ix),oD=e=>yi(e,lD),tw=e=>yi(e,kx),aD=e=>yi(e,Ax),iD=e=>yi(e,Dx),ru=e=>yi(e,Nx,!0),gi=(e,t,n)=>{const o=Tx.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},yi=(e,t,n=!1)=>{const o=Px.exec(e);return o?o[1]?t(o[1]):n:!1},kx=e=>e==="position"||e==="percentage",Dx=e=>e==="image"||e==="url",Ax=e=>e==="length"||e==="size"||e==="bg-size",Ix=e=>e==="length",sD=e=>e==="number",lD=e=>e==="family-name",Nx=e=>e==="shadow",uD=()=>{const e=jt("color"),t=jt("font"),n=jt("text"),o=jt("font-weight"),i=jt("tracking"),s=jt("leading"),u=jt("breakpoint"),d=jt("container"),f=jt("spacing"),p=jt("radius"),g=jt("shadow"),m=jt("inset-shadow"),w=jt("text-shadow"),x=jt("drop-shadow"),R=jt("blur"),_=jt("perspective"),E=jt("aspect"),C=jt("ease"),P=jt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...A(),Ce,Ee],U=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],L=()=>[Ce,Ee,f],$=()=>[Va,"full","auto",...L()],re=()=>[Ao,"none","subgrid",Ce,Ee],le=()=>["auto",{span:["full",Ao,Ce,Ee]},Ao,Ce,Ee],se=()=>[Ao,"auto",Ce,Ee],Z=()=>["auto","min","max","fr",Ce,Ee],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",...L()],ue=()=>[Va,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],I=()=>[e,Ce,Ee],V=()=>[...A(),tw,ew,{position:[Ce,Ee]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",aD,nD,{size:[Ce,Ee]}],H=()=>[If,is,sa],B=()=>["","none","full",p,Ce,Ee],Q=()=>["",Qe,is,sa],oe=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Qe,If,tw,ew],he=()=>["","none",R,Ce,Ee],we=()=>["none",Qe,Ce,Ee],De=()=>["none",Qe,Ce,Ee],rt=()=>[Qe,Ce,Ee],$e=()=>[Va,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[to],breakpoint:[to],color:[Qk],container:[to],"drop-shadow":[to],ease:["in","out","in-out"],font:[tD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[to],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[to],shadow:[to
vendor: 5,797 bytes, line 121
121],spacing:["px",Qe],text:[to],"text-shadow":[to],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Va,Ee,Ce,E]}],container:["container"],columns:[{columns:[Qe,Ee,Ce,d]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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"],sr:["sr-only","not-sr-only"],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:q()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Ao,"auto",Ce,Ee]}],basis:[{basis:[Va,"full","auto",d,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,Va,"auto","initial","none",Ee]}],grow:[{grow:["",Qe,Ce,Ee]}],shrink:[{shrink:["",Qe,Ce,Ee]}],order:[{order:[Ao,"first","last","none",Ce,Ee]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:ue()}],w:[{w:[d,"screen",...ue()]}],"min-w":[{"min-w":[d,"screen","none",...ue()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...ue()]}],h:[{h:["screen",...ue()]}],"min-h":[{"min-h":["screen","none",...ue()]}],"max-h":[{"max-h":["screen",...ue()]}],"font-size":[{text:["base",n,is,sa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Ce,Nf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",If,Ee]}],"font-family":[{font:[oD,Ee,t]}],"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:[i,Ce,Ee]}],"line-clamp":[{"line-clamp":[Qe,"none",Ce,Nf]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",Ce,Ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,Ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",Ce,sa]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Qe,"auto",Ce,Ee]}],"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",Ce,Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ao,Ce,Ee],radial:["",Ce,Ee],conic:[Ao,Ce,Ee]},iD,rD]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:H()}
121],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}
vendor: 5,753 bytes, line 121
121],"divide-color":[{divide:I()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,Ce,Ee]}],"outline-w":[{outline:["",Qe,is,sa]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",g,ru,nu]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",m,ru,nu]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Qe,sa]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,ru,nu]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Qe,Ce,Ee]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Ce,Ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,Ee]}],filter:[{filter:["","none",Ce,Ee]}],blur:[{blur:he()}],brightness:[{brightness:[Qe,Ce,Ee]}],contrast:[{contrast:[Qe,Ce,Ee]}],"drop-shadow":[{"drop-shadow":["","none",x,ru,nu]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Qe,Ce,Ee]}],"hue-rotate":[{"hue-rotate":[Qe,Ce,Ee]}],invert:[{invert:["",Qe,Ce,Ee]}],saturate:[{saturate:[Qe,Ce,Ee]}],sepia:[{sepia:["",Qe,Ce,Ee]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,Ee]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,Ce,Ee]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,Ce,Ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,Ce,Ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,Ce,Ee]}],"backdrop-invert":[{"backdrop-invert":["",Qe,Ce,Ee]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,Ce,Ee]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,Ce,Ee]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,Ce,Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,Ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",Ce,Ee]}],ease:[{ease:["linear","initial",C,Ce,Ee]}],delay:[{delay:[Qe,Ce,Ee]}],animate:[{animate:["none",P,Ce,Ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,Ce,Ee]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:De()}],"scale-x":[{"scale-x":De()}],"scale-y":[{"scale-y":De()}],"scale-z":[{"scale-z":De()}],"scale-3d":["scale-3d"],skew:[{skew:rt()}],"skew-x":[{"skew-x":rt()}],"skew-y":[{"skew-y":rt()}],transform:[{transform:[Ce,Ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}
vendor: 14,343 bytes, line 121
121],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Ce,Ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],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"]}],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",Ce,Ee]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Qe,is,sa,Nf]}],stroke:[{stroke:["none",...I()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},cD=Wk(uD);function St(...e){return cD(_x(e))}const nw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rw=_x,Mx=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return rw(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,u=Object.keys(i).map(p=>{const g=n==null?void 0:n[p],m=s==null?void 0:s[p];if(g===null)return null;const w=nw(g)||nw(m);return i[p][w]}),d=n&&Object.entries(n).reduce((p,g)=>{let[m,w]=g;return w===void 0||(p[m]=w),p},{}),f=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((p,g)=>{let{class:m,className:w,...x}=g;return Object.entries(x).every(R=>{let[_,E]=R;return Array.isArray(E)?E.includes({...s,...d}[_]):{...s,...d}[_]===E})?[...p,m,w]:p},[]);return rw(e,u,f,n==null?void 0:n.class,n==null?void 0:n.className)};function dD(e,t=globalThis==null?void 0:globalThis.document){const n=Sr(e);v.useEffect(()=>{const o=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var fD="DismissableLayer",qp="dismissableLayer.update",pD="dismissableLayer.pointerDownOutside",hD="dismissableLayer.focusOutside",ow,Lx=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lc=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:d,...f}=e,p=v.useContext(Lx),[g,m]=v.useState(null),w=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=v.useState({}),R=tn(t,T=>m(T)),_=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=_.indexOf(E),P=g?_.indexOf(g):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,A=P>=C,q=yD(T=>{const L=T.target,$=[...p.branches].some(re=>re.contains(L));!A||$||(i==null||i(T),u==null||u(T),T.defaultPrevented||d==null||d())},w),U=vD(T=>{const L=T.target;[...p.branches].some(re=>re.contains(L))||(s==null||s(T),u==null||u(T),T.defaultPrevented||d==null||d())},w);return dD(T=>{P===p.layers.size-1&&(o==null||o(T),!T.defaultPrevented&&d&&(T.preventDefault(),d()))},w),v.useEffect(()=>{if(g)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(ow=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),aw(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=ow)}},[g,w,n,p]),v.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),aw())},[g,p]),v.useEffect(()=>{const T=()=>x({});return document.addEventListener(qp,T),()=>document.removeEventListener(qp,T)},[]),S.jsx(zt.div,{...f,ref:R,style:{pointerEvents:N?A?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,U.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,q.onPointerDownCapture)})});lc.displayName=fD;var mD="DismissableLayerBranch",gD=v.forwardRef((e,t)=>{const n=v.useContext(Lx),o=v.useRef(null),i=tn(t,o);return v.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),S.jsx(zt.div,{...e,ref:i})});gD.displayName=mD;function yD(e,t=globalThis==null?void 0:globalThis.document){const n=Sr(e),o=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const s=d=>{if(d.target&&!o.current){let f=function(){zx(pD,n,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);o.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function vD(e,t=globalThis==null?void 0:globalThis.document){const n=Sr(e),o=v.useRef(!1);return v.useEffect(()=>{const i=s=>{s.target&&!o.current&&zx(hD,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function aw(){const e=new CustomEvent(qp);document.dispatchEvent(e)}function zx(e,t,n,{discrete:o}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?xx(i,s):i.dispatchEvent(s)}var Mf="focusScope.autoFocusOnMount",Lf="focusScope.autoFocusOnUnmount",iw={bubbles:!1,cancelable:!0},wD="FocusScope",Rh=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...u}=e,[d,f]=v.useState(null),p=Sr(i),g=Sr(s),m=v.useRef(null),w=tn(t,_=>f(_)),x=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(o){let _=function(N){if(x.paused||!d)return;const A=N.target;d.contains(A)?m.current=A:Io(m.current,{select:!0})},E=function(N){if(x.paused||!d)return;const A=N.relatedTarget;A!==null&&(d.contains(A)||Io(m.current,{select:!0}))},C=function(N){if(document.activeElement===document.body)for(const q of N)q.removedNodes.length>0&&Io(d)};document.addEventListener("focusin",_),document.addEventListener("focusout",E);const P=new MutationObserver(C);return d&&P.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",E),P.disconnect()}}},[o,d,x.paused]),v.useEffect(()=>{if(d){lw.add(x);const _=document.activeElement;if(!d.contains(_)){const C=new CustomEvent(Mf,iw);d.addEventListener(Mf,p),d.dispatchEvent(C),C.defaultPrevented||(xD(ED(Fx(d)),{select:!0}),document.activeElement===_&&Io(d))}return()=>{d.removeEventListener(Mf,p),setTimeout(()=>{const C=new CustomEvent(Lf,iw);d.addEventListener(Lf,g),d.dispatchEvent(C),C.defaultPrevented||Io(_??document.body,{select:!0}),d.removeEventListener(Lf,g),lw.remove(x)},0)}}},[d,p,g,x]);const R=v.useCallback(_=>{if(!n&&!o||x.paused)return;const E=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,C=document.activeElement;if(E&&C){const P=_.currentTarget,[N,A]=SD(P);N&&A?!_.shiftKey&&C===A?(_.preventDefault(),n&&Io(N,{select:!0})):_.shiftKey&&C===N&&(_.preventDefault(),n&&Io(A,{select:!0})):C===P&&_.preventDefault()}},[n,o,x.paused]);return S.jsx(zt.div,{tabIndex:-1,...u,ref:w,onKeyDown:R})});Rh.displayName=wD;function xD(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Io(o,{select:t}),document.activeElement!==n)return}function SD(e){const t=Fx(e),n=sw(t,e),o=sw(t.reverse(),e);return[n,o]}function Fx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function sw(e,t){for(const n of e)if(!bD(n,{upTo:t}))return n}function bD(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 RD(e){return e instanceof HTMLInputElement&&"select"in e}function Io(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&RD(e)&&t&&e.select()}}var lw=_D();function _D(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=uw(e,t),e.unshift(t)},remove(t){var n;e=uw(e,t),(n=e[0])==null||n.resume()}}}function uw(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function ED(e){return e.filter(t=>t.tagName!=="A")}var CD="Portal",uc=v.forwardRef((e,t)=>{var d;const{container:n,...o}=e,[i,s]=v.useState(!1);ma(()=>s(!0),[]);const u=n||i&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return u?tx.createPortal(S.jsx(zt.div,{...o,ref:t}),u):null});uc.displayName=CD;var zf=0;function qx(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cw()),document.body.insertAdjacentElement("beforeend",e[1]??cw()),zf++,()=>{zf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zf--}},[])}function cw(){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 Nr=function(){return Nr=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Nr.apply(this,arguments)};function $x(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n}function TD(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,s;o<i;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var xu="right-scroll-bar-position",Su="width-before-scroll-bar",PD="with-scroll-bars-hidden",OD="--removed-body-scroll-bar-size";function Ff(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kD(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var i=n.value;i!==o&&(n.value=o,n.callback(o,i))}}}})[0];return n.callback=t,n.facade}var DD=typeof window<"u"?v.useLayoutEffect:v.useEffect,dw=new WeakMap;function AD(e,t){var n=kD(null,function(o){return e.forEach(function(i){return Ff(i,o)})});return DD(function(){var o=dw.get(n);if(o){var i=new Set(o),s=new Set(e),u=n.current;
vendor: 4,196 bytes, lines 121-136
121i.forEach(function(d){s.has(d)||Ff(d,null)}),s.forEach(function(d){i.has(d)||Ff(d,u)})}dw.set(n,e)},[e]),n}function ID(e){return e}function ND(e,t){t===void 0&&(t=ID);var n=[],o=!1,i={read:function(){if(o)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(s){var u=t(s,o);return n.push(u),function(){n=n.filter(function(d){return d!==u})}},assignSyncMedium:function(s){for(o=!0;n.length;){var u=n;n=[],u.forEach(s)}n={push:function(d){return s(d)},filter:function(){return n}}},assignMedium:function(s){o=!0;var u=[];if(n.length){var d=n;n=[],d.forEach(s),u=n}var f=function(){var g=u;u=[],g.forEach(s)},p=function(){return Promise.resolve().then(f)};p(),n={push:function(g){u.push(g),p()},filter:function(g){return u=u.filter(g),n}}}};return i}function MD(e){e===void 0&&(e={});var t=ND(null);return t.options=Nr({async:!0,ssr:!1},e),t}var Ux=function(e){var t=e.sideCar,n=$x(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return v.createElement(o,Nr({},n))};Ux.isSideCarExport=!0;function LD(e,t){return e.useMedium(t),Ux}var Bx=MD(),qf=function(){},cc=v.forwardRef(function(e,t){var n=v.useRef(null),o=v.useState({onScrollCapture:qf,onWheelCapture:qf,onTouchMoveCapture:qf}),i=o[0],s=o[1],u=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,g=e.enabled,m=e.shards,w=e.sideCar,x=e.noRelative,R=e.noIsolation,_=e.inert,E=e.allowPinchZoom,C=e.as,P=C===void 0?"div":C,N=e.gapMode,A=$x(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),q=w,U=AD([n,t]),T=Nr(Nr({},A),i);return v.createElement(v.Fragment,null,g&&v.createElement(q,{sideCar:Bx,removeScrollBar:p,shards:m,noRelative:x,noIsolation:R,inert:_,setCallbacks:s,allowPinchZoom:!!E,lockRef:n,gapMode:N}),u?v.cloneElement(v.Children.only(d),Nr(Nr({},T),{ref:U})):v.createElement(P,Nr({},T,{className:f,ref:U}),d))});cc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cc.classNames={fullWidth:Su,zeroRight:xu};var zD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zD();return t&&e.setAttribute("nonce",t),e}function qD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $D(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var UD=function(){var e=0,t=null;return{add:function(n){e==0&&(t=FD())&&(qD(t,n),$D(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},BD=function(){var e=UD();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Hx=function(){var e=BD(),t=function(n){var o=n.styles,i=n.dynamic;return e(o,i),null};return t},HD={left:0,top:0,right:0,gap:0},$f=function(e){return parseInt(e||"",10)||0},WD=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[$f(n),$f(o),$f(i)]},JD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return HD;var t=WD(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},VD=Hx(),li="data-scroll-locked",GD=function(e,t,n,o){var i=e.left,s=e.top,u=e.right,d=e.gap;return n===void 0&&(n="margin"),`
122  .`.concat(PD,` {
123   overflow: hidden `).concat(o,`;
124   padding-right: `).concat(d,"px ").concat(o,`;
125  }
126  body[`).concat(li,`] {
127    overflow: hidden `).concat(o,`;
128    overscroll-behavior: contain;
129    `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
130    padding-left: `.concat(i,`px;
131    padding-top: `).concat(s,`px;
132    padding-right: `).concat(u,`px;
133    margin-left:0;
134    margin-top:0;
135    margin-right: `).concat(d,"px ").concat(o,`;
136    `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(o,";
136")].filter(Boolean).join(""),`
137  }
138  
139  .`).concat(xu,` {
140    right: `).concat(d,"px ").concat(o,`;
141  }
142  
143  .`).concat(Su,` {
144    margin-right: `).concat(d,"px ").concat(o,`;
145  }
146  
147  .`).concat(xu," .").concat(xu,` {
148    right: 0 `).concat(o,`;
149  }
150  
151  .`).concat(Su," .").concat(Su,` {
152    margin-right: 0 `).concat(o,`;
153  }
154  
155  body[`).concat(li,`] {
156    `).concat(OD,": ").concat(d,`px;
157  }
158`)},fw=function(){var e=parseInt(document.body.getAttribute(li)||"0",10);return isFinite(e)?e:0},KD=function(){v.useEffect(function(){return document.body.setAttribute(li,(fw()+1).toString()),function(){var e=fw()-1;e<=0?document.body.removeAttribute(li):document.body.setAttribute(li,e.toString())}},[])},YD=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=o===void 0?"margin":o;KD();var s=v.useMemo(function(){return JD(i)},[i]);return v.createElement(VD,{styles:GD(s,!t,i,n?"":"!important")})},$p=!1;if(typeof window<"u")try{var ou=Object.defineProperty({},"passive",{get:function(){return $p=!0,!0}});window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{$p=!1}var Ga=$p?{passive:!1}:!1,XD=function(e){return e.tagName==="TEXTAREA"},Wx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!XD(e)&&n[t]==="visible")},QD=function(e){return Wx(e,"overflowY")},ZD=function(e){return Wx(e,"overflowX")},pw=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=Jx(e,o);if(i){var s=Vx(e,o),u=s[1],d=s[2];if(u>d)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},jD=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},eA=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Jx=function(e,t){return e==="v"?QD(t):ZD(t)},Vx=function(e,t){return e==="v"?jD(t):eA(t)},tA=function(e,t){return e==="h"&&t==="rtl"?-1:1},nA=function(e,t,n,o,i){var s=tA(e,window.getComputedStyle(t).direction),u=s*o,d=n.target,f=t.contains(d),p=!1,g=u>0,m=0,w=0;do{if(!d)break;var x=Vx(e,d),R=x[0],_=x[1],E=x[2],C=_-E-s*R;(R||C)&&Jx(e,d)&&(m+=C,w+=R);var P=d.parentNode;d=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(g&&Math.abs(m)<1||!g&&Math.abs(w)<1)&&(p=!0),p},au=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hw=function(e){return[e.deltaX,e.deltaY]},mw=function(e){return e&&"current"in e?e.current:e},rA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oA=function(e){return`
159  .block-interactivity-`.concat(e,` {pointer-events: none;}
160  .allow-interactivity-`).concat(e,` {pointer-events: all;}
161`)},aA=0,Ka=[];function iA(e){var t=v.useRef([]),n=v.useRef([0,0]),o=v.useRef(),i=v.useState(aA++)[0],s=v.useState(Hx)[0],u=v.useRef(e);v.useEffect(function(){u.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=TD([e.lockRef.current],(e.shards||[]).map(mw),!0).filter(Boolean);return _.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var d=v.useCallback(function(_,E){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!u.current.allowPinchZoom;var C=au(_),P=n.current,N="deltaX"in _?_.deltaX:P[0]-C[0],A="deltaY"in _?_.deltaY:P[1]-C[1],q,U=_.target,T=Math.abs(N)>Math.abs(A)?"h":"v";if("touches"in _&&T==="h"&&U.type==="range")return!1;var L=window.getSelection(),$=L&&L.anchorNode,re=$?$===U||$.contains(U):!1;if(re)return!1;var le=pw(T,U);if(!le)return!0;if(le?q=T:(q=T==="v"?"h":"v",le=pw(T,U)),!le)return!1;if(!o.current&&"changedTouches"in _&&(N||A)&&(o.current=q),!q)return!0;var se=o.current||q;return nA(se,E,_,se==="h"?N:A)},[]),f=v.useCallback(function(_){var E=_;if(!(!Ka.length||Ka[Ka.length-1]!==s)){var C="deltaY"in E?hw(E):au(E),P=t.current.filter(function(q){return q.name===E.type&&(q.target===E.target||E.target===q.shadowParent)&&rA(q.delta,C)})[0];
vendor: 3,895 bytes, line 161
161if(P&&P.should){E.cancelable&&E.preventDefault();return}if(!P){var N=(u.current.shards||[]).map(mw).filter(Boolean).filter(function(q){return q.contains(E.target)}),A=N.length>0?d(E,N[0]):!u.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),p=v.useCallback(function(_,E,C,P){var N={name:_,delta:E,target:C,should:P,shadowParent:sA(C)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(A){return A!==N})},1)},[]),g=v.useCallback(function(_){n.current=au(_),o.current=void 0},[]),m=v.useCallback(function(_){p(_.type,hw(_),_.target,d(_,e.lockRef.current))},[]),w=v.useCallback(function(_){p(_.type,au(_),_.target,d(_,e.lockRef.current))},[]);v.useEffect(function(){return Ka.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:w}),document.addEventListener("wheel",f,Ga),document.addEventListener("touchmove",f,Ga),document.addEventListener("touchstart",g,Ga),function(){Ka=Ka.filter(function(_){return _!==s}),document.removeEventListener("wheel",f,Ga),document.removeEventListener("touchmove",f,Ga),document.removeEventListener("touchstart",g,Ga)}},[]);var x=e.removeScrollBar,R=e.inert;return v.createElement(v.Fragment,null,R?v.createElement(s,{styles:oA(i)}):null,x?v.createElement(YD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function sA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lA=LD(Bx,iA);var _h=v.forwardRef(function(e,t){return v.createElement(cc,Nr({},e,{ref:t,sideCar:lA}))});_h.classNames=cc.classNames;var uA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ya=new WeakMap,iu=new WeakMap,su={},Uf=0,Gx=function(e){return e&&(e.host||Gx(e.parentNode))},cA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Gx(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dA=function(e,t,n,o){var i=cA(t,Array.isArray(e)?e:[e]);su[n]||(su[n]=new WeakMap);var s=su[n],u=[],d=new Set,f=new Set(i),p=function(m){!m||d.has(m)||(d.add(m),p(m.parentNode))};i.forEach(p);var g=function(m){!m||f.has(m)||Array.prototype.forEach.call(m.children,function(w){if(d.has(w))g(w);else try{var x=w.getAttribute(o),R=x!==null&&x!=="false",_=(Ya.get(w)||0)+1,E=(s.get(w)||0)+1;Ya.set(w,_),s.set(w,E),u.push(w),_===1&&R&&iu.set(w,!0),E===1&&w.setAttribute(n,"true"),R||w.setAttribute(o,"true")}catch(C){console.error("aria-hidden: cannot operate on ",w,C)}})};return g(t),d.clear(),Uf++,function(){u.forEach(function(m){var w=Ya.get(m)-1,x=s.get(m)-1;Ya.set(m,w),s.set(m,x),w||(iu.has(m)||m.removeAttribute(o),iu.delete(m)),x||m.removeAttribute(n)}),Uf--,Uf||(Ya=new WeakMap,Ya=new WeakMap,iu=new WeakMap,su={})}},Kx=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=uA(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),dA(o,i,n,"aria-hidden")):function(){return null}},Eh="Dialog",[Yx,c5]=xa(Eh),[fA,_r]=Yx(Eh),Xx=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:s,modal:u=!0}=e,d=v.useRef(null),f=v.useRef(null),[p=!1,g]=sc({prop:o,defaultProp:i,onChange:s});return S.jsx(fA,{scope:t,triggerRef:d,contentRef:f,contentId:pa(),titleId:pa(),descriptionId:pa(),open:p,onOpenChange:g,onOpenToggle:v.useCallback(()=>g(m=>!m),[g]),modal:u,children:n})};Xx.displayName=Eh;var Qx="DialogTrigger",Zx=v.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=_r(Qx,n),s=tn(t,i.triggerRef);return S.jsx(zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ph(i.open),...o,ref:s,onClick:Je(e.onClick,i.onOpenToggle)})});Zx.displayName=Qx;var Ch="DialogPortal",[pA,jx]=Yx(Ch,{forceMount:void 0}),eS=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:i}
vendor: 5,915 bytes, lines 161-165
161=e,s=_r(Ch,t);return S.jsx(pA,{scope:t,forceMount:n,children:v.Children.map(o,u=>S.jsx(Br,{present:n||s.open,children:S.jsx(uc,{asChild:!0,container:i,children:u})}))})};eS.displayName=Ch;var Nu="DialogOverlay",tS=v.forwardRef((e,t)=>{const n=jx(Nu,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,s=_r(Nu,e.__scopeDialog);return s.modal?S.jsx(Br,{present:o||s.open,children:S.jsx(hA,{...i,ref:t})}):null});tS.displayName=Nu;var hA=v.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=_r(Nu,n);return S.jsx(_h,{as:so,allowPinchZoom:!0,shards:[i.contentRef],children:S.jsx(zt.div,{"data-state":Ph(i.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),ga="DialogContent",nS=v.forwardRef((e,t)=>{const n=jx(ga,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,s=_r(ga,e.__scopeDialog);return S.jsx(Br,{present:o||s.open,children:s.modal?S.jsx(mA,{...i,ref:t}):S.jsx(gA,{...i,ref:t})})});nS.displayName=ga;var mA=v.forwardRef((e,t)=>{const n=_r(ga,e.__scopeDialog),o=v.useRef(null),i=tn(t,n.contentRef,o);return v.useEffect(()=>{const s=o.current;if(s)return Kx(s)},[]),S.jsx(rS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,s=>{var u;s.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,s=>{const u=s.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0;(u.button===2||d)&&s.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,s=>s.preventDefault())})}),gA=v.forwardRef((e,t)=>{const n=_r(ga,e.__scopeDialog),o=v.useRef(!1),i=v.useRef(!1);return S.jsx(rS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var u,d;(u=e.onCloseAutoFocus)==null||u.call(e,s),s.defaultPrevented||(o.current||(d=n.triggerRef.current)==null||d.focus(),s.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:s=>{var f,p;(f=e.onInteractOutside)==null||f.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const u=s.target;((p=n.triggerRef.current)==null?void 0:p.contains(u))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),rS=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...u}=e,d=_r(ga,n),f=v.useRef(null),p=tn(t,f);return qx(),S.jsxs(S.Fragment,{children:[S.jsx(Rh,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:S.jsx(lc,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Ph(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(yA,{titleId:d.titleId}),S.jsx(wA,{contentRef:f,descriptionId:d.descriptionId})]})]})}),Th="DialogTitle",oS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=_r(Th,n);return S.jsx(zt.h2,{id:i.titleId,...o,ref:t})});oS.displayName=Th;var aS="DialogDescription",iS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=_r(aS,n);return S.jsx(zt.p,{id:i.descriptionId,...o,ref:t})});iS.displayName=aS;var sS="DialogClose",lS=v.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=_r(sS,n);return S.jsx(zt.button,{type:"button",...o,ref:t,onClick:Je(e.onClick,()=>i.onOpenChange(!1))})});lS.displayName=sS;function Ph(e){return e?"open":"closed"}var uS="DialogTitleWarning",[d5,cS]=Z1(uS,{contentName:ga,titleName:Th,docsSlug:"dialog"}),yA=({titleId:e})=>{const t=cS(uS),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
162
163If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
164
165For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},vA="DialogDescriptionWarning",wA=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cS(vA).contentName}}.`;return v.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},dS=Xx,xA=Zx,fS=eS,pS=tS,hS=nS,mS=oS,gS=iS,yS=lS;const SA=Mx("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--btn-radius)] text-sm font-medium transition-all active:scale-[var(--press-scale)] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground [background-image:var(--btn-fill)] hover:opacity-90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/40",outline:"border border-input bg-input-background text-foreground hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-[var(--btn-radius)] gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-[var(--btn-radius)] px-6 has-[>svg]:px-4",icon:"size-9 rounded-[var(--btn-radius)]"}},defaultVariants:{variant:"default",size:"default"}});function ca({className:e,variant:t,size:n,asChild:o=!1,...i}){const s=o?so:"button";return S.jsx(s,{"data-slot":"button",className:St(SA({variant:t,size:n,className:e})),...i})}var bs=function(){return bs=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},bs.apply(this,arguments)};var bA=v.createContext(void 0);function RA(){var e=v.useContext(bA);
165if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}v.createContext(void 0);v.forwardRef(function(e,t){var n=RA(),o=n.classNames,i=n.styles,s=[o.button_reset,o.button];e.className&&s.push(e.className);var u=s.join(" "),d=bs(bs({},i.button_reset),i.button);return e.style&&Object.assign(d,e.style),S.jsx("button",bs({},e,{ref:t,type:"button",className:u,style:d}))});v.createContext(void 0);v.createContext(void 0);var qr;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(qr||(qr={}));qr.Selected;qr.Disabled;qr.Hidden;qr.Today;qr.RangeEnd;qr.RangeMiddle;qr.RangeStart;qr.Outside;v.createContext(void 0);v.createContext(void 0);v.createContext(void 0);v.createContext(null);const _A="https://cdn.smritea.ai";function Oh({name:e,alt:t,className:n,width:o,height:i,loading:s,fetchPriority:u,style:d}){return S.jsx("img",{src:`${_A}/${e}.webp`,alt:t,width:o,height:i,loading:s,fetchPriority:u,className:n,style:d})}const EA=["light","dark","bright"],CA=[{key:"top-left",positionClass:"left-[-7%] top-[3%]",mirror:!1},{key:"top-right",positionClass:"right-[-7%] top-[1%]",mirror:!0},{key:"bottom-left",positionClass:"left-[-8%] bottom-[5%]",mirror:!1},{key:"bottom-right",positionClass:"right-[-7%] bottom-[2%]",mirror:!0}];function TA(){return S.jsx("div",{"aria-hidden":"true",className:"pointer-events-none fixed inset-0 -z-10 hidden overflow-hidden lg:block",children:CA.map(e=>S.jsx("div",{className:`absolute w-[24vw] min-w-[170px] max-w-[360px] ${e.positionClass}`,children:EA.map(t=>S.jsx("div",{className:"archframe-asset","data-theme-variant":t,children:S.jsx(Oh,{name:`corner_doodle_${t}`,alt:"",className:`w-full select-none ${e.mirror?"-scale-x-100":""}`,loading:"lazy",width:360,height:360})},t))},e.key))})}function PA(){return S.jsxs("div",{"aria-hidden":"true",className:"archframe-aurora pointer-events-none fixed inset-0 -z-20 hidden overflow-hidden",children:[S.jsx("div",{className:"archframe-aurora-blob absolute left-[-10%] top-[-6%] h-[60vh] w-[60vh] rounded-full blur-3xl",style:{background:"radial-gradient(circle, rgba(92,140,251,0.30), transparent 70%)"}}),S.jsx("div",{className:"archframe-aurora-blob absolute right-[-8%] top-[18%] h-[52vh] w-[52vh] rounded-full blur-3xl",style:{background:"radial-gradient(circle, rgba(63,214,198,0.20), transparent 70%)",animationDelay:"-3s"}}),S.jsx("div",{className:"archframe-aurora-blob absolute left-[28%] bottom-[-12%] h-[52vh] w-[52vh] rounded-full blur-3xl",style:{background:"radial-gradient(circle, rgba(167,139,250,0.22), transparent 70%)",animationDelay:"-6s"}})]})}v.createContext(null);function OA(e){const[t,n]=v.useState(void 0);return ma(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let u,d;if("borderBoxSize"in s){const f=s.borderBoxSize,p=Array.isArray(f)?f[0]:f;u=p.inlineSize,d=p.blockSize}else u=e.offsetWidth,d=e.offsetHeight;n({width:u,height:d})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const kA=["top","right","bottom","left"],qo=Math.min,Bn=Math.max,Mu=Math.round,lu=Math.floor,zr=e=>({x:e,y:e}),DA={left:"right",right:"left",bottom:"top",top:"bottom"},AA={start:"end",end:"start"};function Up(e,t,n){return Bn(e,qo(t,n))}function lo(e,t){return typeof e=="function"?e(t):e}function uo(e){return e.split("-")[0]}function vi(e){return e.split("-")[1]}function kh(e){return e==="x"?"y":"x"}function Dh(e){return e==="y"?"height":"width"}const IA=new Set(["top","bottom"]);function Mr(e){return IA.has(uo(e))?"y":"x"}function Ah(e){return kh(Mr(e))}function NA(e,t,n){n===void 0&&(n=!1);const o=vi(e),i=Ah(e),s=Dh(i);let u=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=Lu(u)),[u,Lu(u)]}function MA(e){const t=Lu(e);return[Bp(e),t,Bp(t)]}function Bp(e){return e.replace(/start|end/g,t=>AA[t])}const gw=["left","right"],yw=["right","left"],LA=["top","bottom"],zA=["bottom","top"];function FA(e,t,n){switch(e){case"top":case"bottom":return n?t?yw:gw:t?gw:yw;case"left":case"right":return t?LA:zA;default:return[]}}function qA(e,t,n,o){const i=vi(e);let s=FA(uo(e),n==="start",o);return i&&(s=s.map(u=>u+"-"+i),t&&(s=s.concat(s.map(Bp)))),s}function Lu(e){return e.replace(/left|right|bottom|top/g,t=>DA[t])}function $A(e){return{top:0,right:0,bottom:0,left:0,...e}}
vendor: 10,904 bytes, line 165
165function vS(e){return typeof e!="number"?$A(e):{top:e,right:e,bottom:e,left:e}}function zu(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function vw(e,t,n){let{reference:o,floating:i}=e;const s=Mr(t),u=Ah(t),d=Dh(u),f=uo(t),p=s==="y",g=o.x+o.width/2-i.width/2,m=o.y+o.height/2-i.height/2,w=o[d]/2-i[d]/2;let x;switch(f){case"top":x={x:g,y:o.y-i.height};break;case"bottom":x={x:g,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-i.width,y:m};break;default:x={x:o.x,y:o.y}}switch(vi(t)){case"start":x[u]-=w*(n&&p?-1:1);break;case"end":x[u]+=w*(n&&p?-1:1);break}return x}async function UA(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:s,rects:u,elements:d,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:w=!1,padding:x=0}=lo(t,e),R=vS(x),E=d[w?m==="floating"?"reference":"floating":m],C=zu(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(E)))==null||n?E:E.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:f})),P=m==="floating"?{x:o,y:i,width:u.floating.width,height:u.floating.height}:u.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),A=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},q=zu(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:P,offsetParent:N,strategy:f}):P);return{top:(C.top-q.top+R.top)/A.y,bottom:(q.bottom-C.bottom+R.bottom)/A.y,left:(C.left-q.left+R.left)/A.x,right:(q.right-C.right+R.right)/A.x}}const BA=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:u}=n,d=s.filter(Boolean),f=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:g,y:m}=vw(p,o,f),w=o,x={},R=0;for(let E=0;E<d.length;E++){var _;const{name:C,fn:P}=d[E],{x:N,y:A,data:q,reset:U}=await P({x:g,y:m,initialPlacement:o,placement:w,strategy:i,middlewareData:x,rects:p,platform:{...u,detectOverflow:(_=u.detectOverflow)!=null?_:UA},elements:{reference:e,floating:t}});g=N??g,m=A??m,x={...x,[C]:{...x[C],...q}},U&&R<=50&&(R++,typeof U=="object"&&(U.placement&&(w=U.placement),U.rects&&(p=U.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):U.rects),{x:g,y:m}=vw(p,w,f)),E=-1)}return{x:g,y:m,placement:w,strategy:i,middlewareData:x}},HA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:s,platform:u,elements:d,middlewareData:f}=t,{element:p,padding:g=0}=lo(e,t)||{};if(p==null)return{};const m=vS(g),w={x:n,y:o},x=Ah(i),R=Dh(x),_=await u.getDimensions(p),E=x==="y",C=E?"top":"left",P=E?"bottom":"right",N=E?"clientHeight":"clientWidth",A=s.reference[R]+s.reference[x]-w[x]-s.floating[R],q=w[x]-s.reference[x],U=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let T=U?U[N]:0;(!T||!await(u.isElement==null?void 0:u.isElement(U)))&&(T=d.floating[N]||s.floating[R]);const L=A/2-q/2,$=T/2-_[R]/2-1,re=qo(m[C],$),le=qo(m[P],$),se=re,Z=T-_[R]-le,fe=T/2-_[R]/2+L,me=Up(se,fe,Z),X=!f.arrow&&vi(i)!=null&&fe!==me&&s.reference[R]/2-(fe<se?re:le)-_[R]/2<0,ue=X?fe<se?fe-se:fe-Z:0;return{[x]:w[x]+ue,data:{[x]:me,centerOffset:fe-me-ue,...X&&{alignmentOffset:ue}},reset:X}}}),WA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:u,initialPlacement:d,platform:f,elements:p}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:_=!0,...E}=lo(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=uo(i),P=Mr(d),N=uo(d)===d,A=await(f.isRTL==null?void 0:f.isRTL(p.floating)),q=w||(N||!_?[Lu(d)]:MA(d)),U=R!=="none";!w&&U&&q.push(...qA(d,_,R,A));const T=[d,...q],L=await f.detectOverflow(t,E),$=[];let re=((o=s.flip)==null?void 0:o.overflows)||[];if(g&&$.push(L[C]),m){const fe=NA(i,u,A);$.push(L[fe[0]],L[fe[1]])}if(re=[...re,{placement:i,overflows:$}],!$.every(fe=>fe<=0)){var le,se;const fe=(((le=s.flip)==null?void 0:le.index)||0)+1,me=T[fe];if(me&&(!(m==="alignment"?P!==Mr(me):!1)||re.every(I=>Mr(I.placement)===P?I.overflows[0]>0:!0)))return{data:{index:fe,overflows:re},reset:{placement:me}};let X=(se=re.filter(ue=>ue.overflows[0]<=0).sort((ue,I)=>ue.overflows[1]-I.overflows[1])[0])==null?void 0:se.placement;if(!X)switch(x){case"bestFit":{var Z;const ue=(Z=re.filter(I=>{if(U){const V=Mr(I.placement);return V===P||V==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(V=>V>0).reduce((V,j)=>V+j,0)]).sort((I,V)=>I[1]-V[1])[0])==null?void 0:Z[0];ue&&(X=ue);break}case"initialPlacement":X=d;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function ww(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xw(e){return kA.some(t=>e[t]>=0)}const JA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:i="referenceHidden",...s}=lo(e,t);switch(i){case"referenceHidden":{const u=await o.detectOverflow(t,{...s,elementContext:"reference"}),d=ww(u,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:xw(d)}}}case"escaped":{const u=await o.detectOverflow(t,{...s,altBoundary:!0}),d=ww(u,n.floating);return{data:{escapedOffsets:d,escaped:xw(d)}}}default:return{}}}}},wS=new Set(["left","top"]);async function VA(e,t){const{placement:n,platform:o,elements:i}=e,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),u=uo(n),d=vi(n),f=Mr(n)==="y",p=wS.has(u)?-1:1,g=s&&f?-1:1,m=lo(t,e);let{mainAxis:w,crossAxis:x,alignmentAxis:R}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return d&&typeof R=="number"&&(x=d==="end"?R*-1:R),f?{x:x*g,y:w*p}:{x:w*p,y:x*g}}const GA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:s,placement:u,middlewareData:d}=t,f=await VA(t,e);return u===((n=d.offset)==null?void 0:n.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:u}}}}},KA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:s}=t,{mainAxis:u=!0,crossAxis:d=!1,limiter:f={fn:C=>{let{x:P,y:N}=C;return{x:P,y:N}}},...p}=lo(e,t),g={x:n,y:o},m=await s.detectOverflow(t,p),w=Mr(uo(i)),x=kh(w);let R=g[x],_=g[w];if(u){const C=x==="y"?"top":"left",P=x==="y"?"bottom":"right",N=R+m[C],A=R-m[P];R=Up(N,R,A)}if(d){const C=w==="y"?"top":"left",P=w==="y"?"bottom":"right",N=_+m[C],A=_-m[P];_=Up(N,_,A)}const E=f.fn({...t,[x]:R,[w]:_});return{...E,data:{x:E.x-n,y:E.y-o,enabled:{[x]:u,[w]:d}}}}}},YA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:s,middlewareData:u}=t,{offset:d=0,mainAxis:f=!0,crossAxis:p=!0}=lo(e,t),g={x:n,y:o},m=Mr(i),w=kh(m);let x=g[w],R=g[m];const _=lo(d,t),E=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(f){const N=w==="y"?"height":"width",A=s.reference[w]-s.floating[N]+E.mainAxis,q=s.reference[w]+s.reference[N]-E.mainAxis;x<A?x=A:x>q&&(x=q)}if(p){var C,P;const N=w==="y"?"width":"height",A=wS.has(uo(i)),q=s.reference[m]-s.floating[N]+(A&&((C=u.offset)==null?void 0:C[m])||0)+(A?0:E.crossAxis),U=s.reference[m]+s.reference[N]+(A?0:((P=u.offset)==null?void 0:P[m])||0)-(A?E.crossAxis:0);R<q?R=q:R>U&&(R=U)}return{[w]:x,[m]:R}}}},XA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:s,platform:u,elements:d}=t,{apply:f=()=>{},...p}=lo(e,t),g=await u.detectOverflow(t,p),m=uo(i),w=vi(i),x=Mr(i)==="y",{width:R,height:_}=s.floating;let E,C;m==="top"||m==="bottom"?(E=m,C=w===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(C=m,E=w==="end"?"top":"bottom");const P=_-g.top-g.bottom,N=R-g.left-g.right,A=qo(_-g[E],P),q=qo(R-g[C],N),U=!t.middlewareData.shift;let T=A,L=q;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=N),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(T=P),U&&!w){const re=Bn(g.left,0),le=Bn(g.right,0),se=Bn(g.top,0),Z=Bn(g.bottom,0);x?L=R-2*(re!==0||le!==0?re+le:Bn(g.left,g.right)):T=_-2*(se!==0||Z!==0?se+Z:Bn(g.top,g.bottom))}await f({...t,availableWidth:L,availableHeight:T});const $=await u.getDimensions(d.floating);return R!==$.width||_!==$.height?{reset:{rects:!0}}:{}}}};function dc(){return typeof window<"u"}function wi(e){return xS(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hr(e){var t;return(t=(xS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xS(e){return dc()?e instanceof Node||e instanceof Wn(e).Node:!1}function br(e){return dc()?e instanceof Element||e instanceof Wn(e).Element:!1}function $r(e){return dc()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function Sw(e){return!dc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}const QA=new Set(["inline","contents"]);function qs(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=Rr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!QA.has(i)}const ZA=new Set(["table","td","th"]);function jA(e){return ZA.has(wi(e))}const eI=[":popover-open",":modal"];function fc(e){return eI.some(t=>{try{return e.matches(t)}catch{return!1}})}const tI=["transform","translate","scale","rotate","perspective"],nI=["transform","translate","scale","rotate","perspective","filter"],rI=["paint","layout","strict","content"];function Ih(e){const t=Nh(),n=br(e)?Rr(e):e;return tI.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||nI.some(o=>(n.willChange||"").includes(o))||rI.some(o=>(n.contain||"").includes(o))}function oI(e){let t=$o(e);for(;$r(t)&&!fi(t);){if(Ih(t))return t;if(fc(t))return null;t=$o(t)}return null}function Nh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aI=new Set(["html","body","#document"]);function fi(e){return aI.has(wi(e))}function Rr(e){return Wn(e).getComputedStyle(e)}function pc(e){return br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $o(e){if(wi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sw(e)&&e.host||Hr(e);return Sw(t)?t.host:t}function SS(e){const t=$o(e);return fi(t)?e.ownerDocument?e.ownerDocument.body:e.body:$r(t)&&qs(t)?t:SS(t)}function Os(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=SS(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),u=Wn(i);if(s){const d=Hp(u);
vendor: 35,416 bytes, lines 165-167
165return t.concat(u,u.visualViewport||[],qs(i)?i:[],d&&n?Os(d):[])}return t.concat(i,Os(i,[],n))}function Hp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bS(e){const t=Rr(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=$r(e),s=i?e.offsetWidth:n,u=i?e.offsetHeight:o,d=Mu(n)!==s||Mu(o)!==u;return d&&(n=s,o=u),{width:n,height:o,$:d}}function Mh(e){return br(e)?e:e.contextElement}function ui(e){const t=Mh(e);if(!$r(t))return zr(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:s}=bS(t);let u=(s?Mu(n.width):n.width)/o,d=(s?Mu(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const iI=zr(0);function RS(e){const t=Wn(e);return!Nh()||!t.visualViewport?iI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wn(e)?!1:t}function ya(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Mh(e);let u=zr(1);t&&(o?br(o)&&(u=ui(o)):u=ui(e));const d=sI(s,n,o)?RS(s):zr(0);let f=(i.left+d.x)/u.x,p=(i.top+d.y)/u.y,g=i.width/u.x,m=i.height/u.y;if(s){const w=Wn(s),x=o&&br(o)?Wn(o):o;let R=w,_=Hp(R);for(;_&&o&&x!==R;){const E=ui(_),C=_.getBoundingClientRect(),P=Rr(_),N=C.left+(_.clientLeft+parseFloat(P.paddingLeft))*E.x,A=C.top+(_.clientTop+parseFloat(P.paddingTop))*E.y;f*=E.x,p*=E.y,g*=E.x,m*=E.y,f+=N,p+=A,R=Wn(_),_=Hp(R)}}return zu({width:g,height:m,x:f,y:p})}function hc(e,t){const n=pc(e).scrollLeft;return t?t.left+n:ya(Hr(e)).left+n}function _S(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-hc(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function lI(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const s=i==="fixed",u=Hr(o),d=t?fc(t.floating):!1;if(o===u||d&&s)return n;let f={scrollLeft:0,scrollTop:0},p=zr(1);const g=zr(0),m=$r(o);if((m||!m&&!s)&&((wi(o)!=="body"||qs(u))&&(f=pc(o)),$r(o))){const x=ya(o);p=ui(o),g.x=x.x+o.clientLeft,g.y=x.y+o.clientTop}const w=u&&!m&&!s?_S(u,f):zr(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-f.scrollLeft*p.x+g.x+w.x,y:n.y*p.y-f.scrollTop*p.y+g.y+w.y}}function uI(e){return Array.from(e.getClientRects())}function cI(e){const t=Hr(e),n=pc(e),o=e.ownerDocument.body,i=Bn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Bn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let u=-n.scrollLeft+hc(e);const d=-n.scrollTop;return Rr(o).direction==="rtl"&&(u+=Bn(t.clientWidth,o.clientWidth)-i),{width:i,height:s,x:u,y:d}}const bw=25;function dI(e,t){const n=Wn(e),o=Hr(e),i=n.visualViewport;let s=o.clientWidth,u=o.clientHeight,d=0,f=0;if(i){s=i.width,u=i.height;const g=Nh();(!g||g&&t==="fixed")&&(d=i.offsetLeft,f=i.offsetTop)}const p=hc(o);if(p<=0){const g=o.ownerDocument,m=g.body,w=getComputedStyle(m),x=g.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,R=Math.abs(o.clientWidth-m.clientWidth-x);R<=bw&&(s-=R)}else p<=bw&&(s+=p);return{width:s,height:u,x:d,y:f}}const fI=new Set(["absolute","fixed"]);function pI(e,t){const n=ya(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,s=$r(e)?ui(e):zr(1),u=e.clientWidth*s.x,d=e.clientHeight*s.y,f=i*s.x,p=o*s.y;return{width:u,height:d,x:f,y:p}}function Rw(e,t,n){let o;if(t==="viewport")o=dI(e,n);else if(t==="document")o=cI(Hr(e));else if(br(t))o=pI(t,n);else{const i=RS(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return zu(o)}function ES(e,t){const n=$o(e);return n===t||!br(n)||fi(n)?!1:Rr(n).position==="fixed"||ES(n,t)}function hI(e,t){const n=t.get(e);if(n)return n;let o=Os(e,[],!1).filter(d=>br(d)&&wi(d)!=="body"),i=null;const s=Rr(e).position==="fixed";let u=s?$o(e):e;for(;br(u)&&!fi(u);){const d=Rr(u),f=Ih(u);!f&&d.position==="fixed"&&(i=null),(s?!f&&!i:!f&&d.position==="static"&&!!i&&fI.has(i.position)||qs(u)&&!f&&ES(e,u))?o=o.filter(g=>g!==u):i=d,u=$o(u)}return t.set(e,o),o}function mI(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const u=[...n==="clippingAncestors"?fc(t)?[]:hI(t,this._c):[].concat(n),o],d=u[0],f=u.reduce((p,g)=>{const m=Rw(t,g,i);return p.top=Bn(m.top,p.top),p.right=qo(m.right,p.right),p.bottom=qo(m.bottom,p.bottom),p.left=Bn(m.left,p.left),p},Rw(t,d,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function gI(e){const{width:t,height:n}=bS(e);return{width:t,height:n}}function yI(e,t,n){const o=$r(t),i=Hr(t),s=n==="fixed",u=ya(e,!0,s,t);let d={scrollLeft:0,scrollTop:0};const f=zr(0);function p(){f.x=hc(i)}if(o||!o&&!s)if((wi(t)!=="body"||qs(i))&&(d=pc(t)),o){const x=ya(t,!0,s,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else i&&p();s&&!o&&i&&p();const g=i&&!o&&!s?_S(i,d):zr(0),m=u.left+d.scrollLeft-f.x-g.x,w=u.top+d.scrollTop-f.y-g.y;return{x:m,y:w,width:u.width,height:u.height}}function Bf(e){return Rr(e).position==="static"}function _w(e,t){if(!$r(e)||Rr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hr(e)===n&&(n=n.ownerDocument.body),n}function CS(e,t){const n=Wn(e);if(fc(e))return n;if(!$r(e)){let i=$o(e);for(;i&&!fi(i);){if(br(i)&&!Bf(i))return i;i=$o(i)}return n}let o=_w(e,t);for(;o&&jA(o)&&Bf(o);)o=_w(o,t);return o&&fi(o)&&Bf(o)&&!Ih(o)?n:o||oI(e)||n}const vI=async function(e){const t=this.getOffsetParent||CS,n=this.getDimensions,o=await n(e.floating);return{reference:yI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wI(e){return Rr(e).direction==="rtl"}const xI={convertOffsetParentRelativeRectToViewportRelativeRect:lI,getDocumentElement:Hr,getClippingRect:mI,getOffsetParent:CS,getElementRects:vI,getClientRects:uI,getDimensions:gI,getScale:ui,isElement:br,isRTL:wI};function TS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SI(e,t){let n=null,o;const i=Hr(e);function s(){var d;clearTimeout(o),(d=n)==null||d.disconnect(),n=null}function u(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),s();const p=e.getBoundingClientRect(),{left:g,top:m,width:w,height:x}=p;if(d||t(),!w||!x)return;const R=lu(m),_=lu(i.clientWidth-(g+w)),E=lu(i.clientHeight-(m+x)),C=lu(g),N={rootMargin:-R+"px "+-_+"px "+-E+"px "+-C+"px",threshold:Bn(0,qo(1,f))||1};let A=!0;function q(U){const T=U[0].intersectionRatio;if(T!==f){if(!A)return u();T?u(!1,T):o=setTimeout(()=>{u(!1,1e-7)},1e3)}T===1&&!TS(p,e.getBoundingClientRect())&&u(),A=!1}try{n=new IntersectionObserver(q,{...N,root:i.ownerDocument})}catch{n=new IntersectionObserver(q,N)}n.observe(e)}return u(!0),s}function bI(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,p=Mh(e),g=i||s?[...p?Os(p):[],...Os(t)]:[];g.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const m=p&&d?SI(p,n):null;let w=-1,x=null;u&&(x=new ResizeObserver(C=>{let[P]=C;P&&P.target===p&&x&&(x.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var N;(N=x)==null||N.observe(t)})),n()}),p&&!f&&x.observe(p),x.observe(t));let R,_=f?ya(e):null;f&&E();function E(){const C=ya(e);_&&!TS(_,C)&&n(),_=C,R=requestAnimationFrame(E)}return n(),()=>{var C;g.forEach(P=>{i&&P.removeEventListener("scroll",n),s&&P.removeEventListener("resize",n)}),m==null||m(),(C=x)==null||C.disconnect(),x=null,f&&cancelAnimationFrame(R)}}const RI=GA,_I=KA,EI=WA,CI=XA,TI=JA,Ew=HA,PI=YA,OI=(e,t,n)=>{const o=new Map,i={platform:xI,...n},s={...i.platform,_c:o};return BA(e,t,{...i,platform:s})};var kI=typeof document<"u",DI=function(){},bu=kI?v.useLayoutEffect:DI;function Fu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Fu(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=n;o--!==0;){const s=i[o];if(!(s==="_owner"&&e.$$typeof)&&!Fu(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function PS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cw(e,t){const n=PS(e);return Math.round(t*n)/n}function Hf(e){const t=v.useRef(e);return bu(()=>{t.current=e}),t}function AI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:u}={},transform:d=!0,whileElementsMounted:f,open:p}=e,[g,m]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=v.useState(o);Fu(w,o)||x(o);const[R,_]=v.useState(null),[E,C]=v.useState(null),P=v.useCallback(I=>{I!==U.current&&(U.current=I,_(I))},[]),N=v.useCallback(I=>{I!==T.current&&(T.current=I,C(I))},[]),A=s||R,q=u||E,U=v.useRef(null),T=v.useRef(null),L=v.useRef(g),$=f!=null,re=Hf(f),le=Hf(i),se=Hf(p),Z=v.useCallback(()=>{if(!U.current||!T.current)return;const I={placement:t,strategy:n,middleware:w};le.current&&(I.platform=le.current),OI(U.current,T.current,I).then(V=>{const j={...V,isPositioned:se.current!==!1};fe.current&&!Fu(L.current,j)&&(L.current=j,gh.flushSync(()=>{m(j)}))})},[w,t,n,le,se]);bu(()=>{p===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,m(I=>({...I,isPositioned:!1})))},[p]);const fe=v.useRef(!1);bu(()=>(fe.current=!0,()=>{fe.current=!1}),[]),bu(()=>{if(A&&(U.current=A),q&&(T.current=q),A&&q){if(re.current)return re.current(A,q,Z);Z()}},[A,q,Z,re,$]);const me=v.useMemo(()=>({reference:U,floating:T,setReference:P,setFloating:N}),[P,N]),X=v.useMemo(()=>({reference:A,floating:q}),[A,q]),ue=v.useMemo(()=>{const I={position:n,left:0,top:0};if(!X.floating)return I;const V=Cw(X.floating,g.x),j=Cw(X.floating,g.y);return d?{...I,transform:"translate("+V+"px, "+j+"px)",...PS(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:j}},[n,d,X.floating,g.x,g.y]);return v.useMemo(()=>({...g,update:Z,refs:me,elements:X,floatingStyles:ue}),[g,Z,me,X,ue])}const II=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:i}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Ew({element:o.current,padding:i}).fn(n):{}:o?Ew({element:o,padding:i}).fn(n):{}}}},NI=(e,t)=>({...RI(e),options:[e,t]}),MI=(e,t)=>({..._I(e),options:[e,t]}),LI=(e,t)=>({...PI(e),options:[e,t]}),zI=(e,t)=>({...EI(e),options:[e,t]}),FI=(e,t)=>({...CI(e),options:[e,t]}),qI=(e,t)=>({...TI(e),options:[e,t]}),$I=(e,t)=>({...II(e),options:[e,t]});var UI="Arrow",OS=v.forwardRef((e,t)=>{const{children:n,width:o=10,height:i=5,...s}=e;return S.jsx(zt.svg,{...s,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});OS.displayName=UI;var BI=OS,Lh="Popper",[kS,mc]=xa(Lh),[HI,DS]=kS(Lh),AS=e=>{const{__scopePopper:t,children:n}=e,[o,i]=v.useState(null);return S.jsx(HI,{scope:t,anchor:o,onAnchorChange:i,children:n})};AS.displayName=Lh;var IS="PopperAnchor",NS=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,s=DS(IS,n),u=v.useRef(null),d=tn(t,u);return v.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||u.current)}),o?null:S.jsx(zt.div,{...i,ref:d})});NS.displayName=IS;var zh="PopperContent",[WI,JI]=kS(zh),MS=v.forwardRef((e,t)=>{var ne,he,we,De,rt,$e;const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:u=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:R,..._}=e,E=DS(zh,n),[C,P]=v.useState(null),N=tn(t,Ue=>P(Ue)),[A,q]=v.useState(null),U=OA(A),T=(U==null?void 0:U.width)??0,L=(U==null?void 0:U.height)??0,$=o+(s!=="center"?"-"+s:""),re=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},le=Array.isArray(p)?p:[p],se=le.length>0,Z={padding:re,boundary:le.filter(GI),altBoundary:se},{refs:fe,floatingStyles:me,placement:X,isPositioned:ue,middlewareData:I}=AI({strategy:"fixed",placement:$,whileElementsMounted:(...Ue)=>bI(...Ue,{animationFrame:x==="always"}),elements:{reference:E.anchor},middleware:[NI({mainAxis:i+L,alignmentAxis:u}),f&&MI({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?LI():void 0,...Z}),f&&zI({...Z}),FI({...Z,apply:({elements:Ue,rects:ae,availableWidth:Me,availableHeight:Ke})=>{const{width:at,height:Ye}=ae.reference,qe=Ue.floating.style;qe.setProperty("--radix-popper-available-width",`${Me}px`),qe.setProperty("--radix-popper-available-height",`${Ke}px`),qe.setProperty("--radix-popper-anchor-width",`${at}px`),qe.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),A&&$I({element:A,padding:d}),KI({arrowWidth:T,arrowHeight:L}),w&&qI({strategy:"referenceHidden",...Z})]}),[V,j]=FS(X),D=Sr(R);ma(()=>{ue&&(D==null||D())},[ue,D]);const H=(ne=I.arrow)==null?void 0:ne.x,B=(he=I.arrow)==null?void 0:he.y,Q=((we=I.arrow)==null?void 0:we.centerOffset)!==0,[oe,ee]=v.useState();return ma(()=>{C&&ee(window.getComputedStyle(C).zIndex)},[C]),S.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:ue?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(De=I.transformOrigin)==null?void 0:De.x,(rt=I.transformOrigin)==null?void 0:rt.y].join(" "),...(($e=I.hide)==null?void 0:$e.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(WI,{scope:n,placedSide:V,onArrowChange:q,arrowX:H,arrowY:B,shouldHideArrow:Q,children:S.jsx(zt.div,{"data-side":V,"data-align":j,..._,ref:N,style:{..._.style,animation:ue?void 0:"none"}})})})});MS.displayName=zh;var LS="PopperArrow",VI={top:"bottom",right:"left",bottom:"top",left:"right"},zS=v.forwardRef(function(t,n){const{__scopePopper:o,...i}=t,s=JI(LS,o),u=VI[s.placedSide];return S.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:S.jsx(BI,{...i,ref:n,style:{...i.style,display:"block"}})})});zS.displayName=LS;function GI(e){return e!==null}var KI=e=>({name:"transformOrigin",options:e,fn(t){var E,C,P;const{placement:n,rects:o,middlewareData:i}=t,u=((E=i.arrow)==null?void 0:E.centerOffset)!==0,d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,g]=FS(n),m={start:"0%",center:"50%",end:"100%"}[g],w=(((C=i.arrow)==null?void 0:C.x)??0)+d/2,x=(((P=i.arrow)==null?void 0:P.y)??0)+f/2;let R="",_="";return p==="bottom"?(R=u?m:`${w}px`,_=`${-f}px`):p==="top"?(R=u?m:`${w}px`,_=`${o.floating.height+f}px`):p==="right"?(R=`${-f}px`,_=u?m:`${x}px`):p==="left"&&(R=`${o.floating.width+f}px`,_=u?m:`${x}px`),{data:{x:R,y:_}}}});function FS(e){const[t,n="center"]=e.split("-");return[t,n]}var qS=AS,$S=NS,US=MS,BS=zS,Wf="rovingFocusGroup.onEntryFocus",YI={bubbles:!1,cancelable:!0},gc="RovingFocusGroup",[Wp,HS,XI]=wx(gc),[QI,WS]=xa(gc,[XI]),[ZI,jI]=QI(gc),JS=v.forwardRef((e,t)=>S.jsx(Wp.Provider,{scope:e.__scopeRovingFocusGroup,children:S.jsx(Wp.Slot,{scope:e.__scopeRovingFocusGroup,children:S.jsx(eN,{...e,ref:t})})}));JS.displayName=gc;var eN=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:i=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:g=!1,...m}=e,w=v.useRef(null),x=tn(t,w),R=Sx(s),[_=null,E]=sc({prop:u,defaultProp:d,onChange:f}),[C,P]=v.useState(!1),N=Sr(p),A=HS(n),q=v.useRef(!1),[U,T]=v.useState(0);return v.useEffect(()=>{const L=w.current;if(L)return L.addEventListener(Wf,N),()=>L.removeEventListener(Wf,N)},[N]),S.jsx(ZI,{scope:n,orientation:o,dir:R,loop:i,currentTabStopId:_,onItemFocus:v.useCallback(L=>E(L),[E]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>T(L=>L+1),[]),onFocusableItemRemove:v.useCallback(()=>T(L=>L-1),[]),children:S.jsx(zt.div,{tabIndex:C||U===0?-1:0,"data-orientation":o,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:Je(e.onMouseDown,()=>{q.current=!0}),onFocus:Je(e.onFocus,L=>{const $=!q.current;if(L.target===L.currentTarget&&$&&!C){const re=new CustomEvent(Wf,YI);if(L.currentTarget.dispatchEvent(re),!re.defaultPrevented){const le=A().filter(X=>X.focusable),se=le.find(X=>X.active),Z=le.find(X=>X.id===_),me=[se,Z,...le].filter(Boolean).map(X=>X.ref.current);KS(me,g)}}q.current=!1}),onBlur:Je(e.onBlur,()=>P(!1))})})}),VS="RovingFocusGroupItem",GS=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:i=!1,tabStopId:s,...u}=e,d=pa(),f=s||d,p=jI(VS,n),g=p.currentTabStopId===f,m=HS(n),{onFocusableItemAdd:w,onFocusableItemRemove:x}=p;return v.useEffect(()=>{if(o)return w(),()=>x()},[o,w,x]),S.jsx(Wp.ItemSlot,{scope:n,id:f,focusable:o,active:i,children:S.jsx(zt.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:Je(e.onMouseDown,R=>{o?p.onItemFocus(f):R.preventDefault()}),onFocus:Je(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:Je(e.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){p.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const _=rN(R,p.orientation,p.dir);if(_!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let C=m().filter(P=>P.focusable).map(P=>P.ref.current);if(_==="last")C.reverse();else if(_==="prev"||_==="next"){_==="prev"&&C.reverse();const P=C.indexOf(R.currentTarget);C=p.loop?oN(C,P+1):C.slice(P+1)}setTimeout(()=>KS(C))}})})})});GS.displayName=VS;var tN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nN(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rN(e,t,n){const o=nN(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return tN[o]}function KS(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function oN(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var aN=JS,iN=GS,Jp=["Enter"," "],sN=["ArrowDown","PageUp","Home"],YS=["ArrowUp","PageDown","End"],lN=[...sN,...YS],uN={ltr:[...Jp,"ArrowRight"],rtl:[...Jp,"ArrowLeft"]},cN={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$s="Menu",[ks,dN,fN]=wx($s),[Sa,XS]=xa($s,[fN,mc,WS]),yc=mc(),QS=WS(),[pN,ba]=Sa($s),[hN,Us]=Sa($s),ZS=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:s,modal:u=!0}=e,d=yc(t),[f,p]=v.useState(null),g=v.useRef(!1),m=Sr(s),w=Sx(i);return v.useEffect(()=>{const x=()=>{g.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>g.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),S.jsx(qS,{...d,children:S.jsx(pN,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:p,children:S.jsx(hN,{scope:t,onClose:v.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:g,dir:w,modal:u,children:o})})})};ZS.displayName=$s;var mN="MenuAnchor",Fh=v.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,i=yc(n);return S.jsx($S,{...i,...o,ref:t})});Fh.displayName=mN;var qh="MenuPortal",[gN,jS]=Sa(qh,{forceMount:void 0}),eb=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:i}=e,s=ba(qh,t);return S.jsx(gN,{scope:t,forceMount:n,children:S.jsx(Br,{present:n||s.open,children:S.jsx(uc,{asChild:!0,container:i,children:o})})})};eb.displayName=qh;var rr="MenuContent",[yN,$h]=Sa(rr),tb=v.forwardRef((e,t)=>{const n=jS(rr,e.__scopeMenu),{forceMount:o=n.forceMount,...i}=e,s=ba(rr,e.__scopeMenu),u=Us(rr,e.__scopeMenu);return S.jsx(ks.Provider,{scope:e.__scopeMenu,children:S.jsx(Br,{present:o||s.open,children:S.jsx(ks.Slot,{scope:e.__scopeMenu,children:u.modal?S.jsx(vN,{...i,ref:t}):S.jsx(wN,{...i,ref:t})})})})}),vN=v.forwardRef((e,t)=>{const n=ba(rr,e.__scopeMenu),o=v.useRef(null),i=tn(t,o);return v.useEffect(()=>{const s=o.current;if(s)return Kx(s)},[]),S.jsx(Uh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Je(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),wN=v.forwardRef((e,t)=>{const n=ba(rr,e.__scopeMenu);return S.jsx(Uh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Uh=v.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:w,onDismiss:x,disableOutsideScroll:R,..._}=e,E=ba(rr,n),C=Us(rr,n),P=yc(n),N=QS(n),A=dN(n),[q,U]=v.useState(null),T=v.useRef(null),L=tn(t,T,E.onContentChange),$=v.useRef(0),re=v.useRef(""),le=v.useRef(0),se=v.useRef(null),Z=v.useRef("right"),fe=v.useRef(0),me=R?_h:v.Fragment,X=R?{as:so,allowPinchZoom:!0}:void 0,ue=V=>{var ne,he;const j=re.current+V,D=A().filter(we=>!we.disabled),H=document.activeElement,B=(ne=D.find(we=>we.ref.current===H))==null?void 0:ne.textValue,Q=D.map(we=>we.textValue),oe=DN(Q,j,B),ee=(he=D.find(we=>we.textValue===oe))==null?void 0:he.ref.current;(function we(De){re.current=De,window.clearTimeout($.current),De!==""&&($.current=window.setTimeout(()=>we(""),1e3))})(j),ee&&setTimeout(()=>ee.focus())};v.useEffect(()=>()=>window.clearTimeout($.current),[]),qx();const I=v.useCallback(V=>{var D,H;return Z.current===((D=se.current)==null?void 0:D.side)&&IN(V,(H=se.current)==null?void 0:H.area)},[]);return S.jsx(yN,{scope:n,searchRef:re,onItemEnter:v.useCallback(V=>{I(V)&&V.preventDefault()},[I]),onItemLeave:v.useCallback(V=>{var j;I(V)||((j=T.current)==null||j.focus(),U(null))},[I]),onTriggerLeave:v.useCallback(V=>{I(V)&&V.preventDefault()},[I]),pointerGraceTimerRef:le,onPointerGraceIntentChange:v.useCallback(V=>{se.current=V},[]),children:S.jsx(me,{...X,children:S.jsx(Rh,{asChild:!0,trapped:i,onMountAutoFocus:Je(s,V=>{var j;V.preventDefault(),(j=T.current)==null||j.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:S.jsx(lc,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:w,onDismiss:x,children:S.jsx(aN,{asChild:!0,...N,dir:C.dir,orientation:"vertical",loop:o,currentTabStopId:q,onCurrentTabStopIdChange:U,onEntryFocus:Je(f,V=>{C.isUsingKeyboardRef.current||V.preventDefault()}),preventScrollOnEntryFocus:!0,children:S.jsx(US,{role:"menu","aria-orientation":"vertical","data-state":yb(E.open),"data-radix-menu-content":"",dir:C.dir,...P,..._,ref:L,style:{outline:"none",..._.style},onKeyDown:Je(_.onKeyDown,V=>{const D=V.target.closest("[data-radix-menu-content]")===V.currentTarget,H=V.ctrlKey||V.altKey||V.metaKey,B=V.key.length===1;D&&(V.key==="Tab"&&V.preventDefault(),!H&&B&&ue(V.key));const Q=T.current;if(V.target!==Q||!lN.includes(V.key))return;V.preventDefault();const ee=A().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);YS.includes(V.key)&&ee.reverse(),ON(ee)}),onBlur:Je(e.onBlur,V=>{V.currentTarget.contains(V.target)||(window.clearTimeout($.current),re.current="")}),onPointerMove:Je(e.onPointerMove,Ds(V=>{const j=V.target,D=fe.current!==V.clientX;if(V.currentTarget.contains(j)&&D){const H=V.clientX>fe.current?"right":"left";Z.current=H,fe.current=V.clientX}}))})})})})})})});tb.displayName=rr;var xN="MenuGroup",Bh=v.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return S.jsx(zt.div,{role:"group",...o,ref:t})});Bh.displayName=xN;var SN="MenuLabel",nb=v.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return S.jsx(zt.div,{...o,ref:t})});nb.displayName=SN;var qu="MenuItem",Tw="menu.itemSelect",vc=v.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...i}=e,s=v.useRef(null),u=Us(qu,e.__scopeMenu),d=$h(qu,e.__scopeMenu),f=tn(t,s),p=v.useRef(!1),g=()=>{const m=s.current;if(!n&&m){const w=new CustomEvent(Tw,{bubbles:!0,cancelable:!0});m.addEventListener(Tw,x=>o==null?void 0:o(x),{once:!0}),xx(m,w),w.defaultPrevented?p.current=!1:u.onClose()}};return S.jsx(rb,{...i,ref:f,disabled:n,onClick:Je(e.onClick,g),onPointerDown:m=>{var w;(w=e.onPointerDown)==null||w.call(e,m),p.current=!0},onPointerUp:Je(e.onPointerUp,m=>{var w;p.current||(w=m.currentTarget)==null||w.click()}),onKeyDown:Je(e.onKeyDown,m=>{const w=d.searchRef.current!=="";n||w&&m.key===" "||Jp.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});vc.displayName=qu;var rb=v.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:i,...s}=e,u=$h(qu,n),d=QS(n),f=v.useRef(null),p=tn(t,f),[g,m]=v.useState(!1),[w,x]=v.useState("");return v.useEffect(()=>{const R=f.current;R&&x((R.textContent??"").trim())},[s.children]),S.jsx(ks.ItemSlot,{scope:n,disabled:o,textValue:i??w,children:S.jsx(iN,{asChild:!0,...d,focusable:!o,children:S.jsx(zt.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:p,onPointerMove:Je(e.onPointerMove,Ds(R=>{o?u.onItemLeave(R):(u.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Je(e.onPointerLeave,Ds(R=>u.onItemLeave(R))),onFocus:Je(e.onFocus,()=>m(!0)),onBlur:Je(e.onBlur,()=>m(!1))})})})}),bN="MenuCheckboxItem",ob=v.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...i}=e;return S.jsx(ub,{scope:e.__scopeMenu,checked:n,children:S.jsx(vc,{role:"menuitemcheckbox","aria-checked":$u(n)?"mixed":n,...i,ref:t,"data-state":Wh(n),onSelect:Je(i.onSelect,()=>o==null?void 0:o($u(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ob.displayName=bN;var ab="MenuRadioGroup",[RN,_N]=Sa(ab,{value:void 0,onValueChange:()=>{}}),ib=v.forwardRef((e,t)=>{const{value:n,onValueChange:o,...i}=e,s=Sr(o);return S.jsx(RN,{scope:e.__scopeMenu,value:n,onValueChange:s,children:S.jsx(Bh,{...i,ref:t})})});ib.displayName=ab;var sb="MenuRadioItem",lb=v.forwardRef((e,t)=>{const{value:n,...o}=e,i=_N(sb,e.__scopeMenu),s=n===i.value;return S.jsx(ub,{scope:e.__scopeMenu,checked:s,children:S.jsx(vc,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Wh(s),onSelect:Je(o.onSelect,()=>{var u;return(u=i.onValueChange)==null?void 0:u.call(i,n)},{checkForDefaultPrevented:!1})})})});lb.displayName=sb;var Hh="MenuItemIndicator",[ub,EN]=Sa(Hh,{checked:!1}),cb=v.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...i}=e,s=EN(Hh,n);return S.jsx(Br,{present:o||$u(s.checked)||s.checked===!0,children:S.jsx(zt.span,{...i,ref:t,"data-state":Wh(s.checked)})})});cb.displayName=Hh;var CN="MenuSeparator",db=v.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return S.jsx(zt.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});db.displayName=CN;var TN="MenuArrow",fb=v.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,i=yc(n);return S.jsx(BS,{...i,...o,ref:t})});fb.displayName=TN;var PN="MenuSub",[f5,pb]=Sa(PN),gs="MenuSubTrigger",hb=v.forwardRef((e,t)=>{const n=ba(gs,e.__scopeMenu),o=Us(gs,e.__scopeMenu),i=pb(gs,e.__scopeMenu),s=$h(gs,e.__scopeMenu),u=v.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=s,p={__scopeMenu:e.__scopeMenu},g=v.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return v.useEffect(()=>g,[g]),v.useEffect(()=>{const m=d.current;return()=>{window.clearTimeout(m),f(null)}},[d,f]),S.jsx(Fh,{asChild:!0,...p,children:S.jsx(rb,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":yb(n.open),...e,ref:ic(t,i.onTriggerChange),onClick:m=>{var w;(w=e.onClick)==null||w.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Je(e.onPointerMove,Ds(m=>{s.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:Je(e.onPointerLeave,Ds(m=>{var x,R;g();const w=(x=n.content)==null?void 0:x.getBoundingClientRect();if(w){const _=(R=n.content)==null?void 0:R.dataset.side,E=_==="right",C=E?-5:5,P=w[E?"left":"right"],N=w[E?"right":"left"];s.onPointerGraceIntentChange({area:[{x:m.clientX+C,y:m.clientY},{x:P,y:w.top},{x:N,y:w.top},{x:N,y:w.bottom},{x:P,y:w.bottom}],side:_}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(m),m.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Je(e.onKeyDown,m=>{var x;const w=s.searchRef.current!=="";e.disabled||w&&m.key===" "||uN[o.dir].includes(m.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),m.preventDefault())})})})});hb.displayName=gs;var mb="MenuSubContent",gb=v.forwardRef((e,t)=>{const n=jS(rr,e.__scopeMenu),{forceMount:o=n.forceMount,...i}=e,s=ba(rr,e.__scopeMenu),u=Us(rr,e.__scopeMenu),d=pb(mb,e.__scopeMenu),f=v.useRef(null),p=tn(t,f);return S.jsx(ks.Provider,{scope:e.__scopeMenu,children:S.jsx(Br,{present:o||s.open,children:S.jsx(ks.Slot,{scope:e.__scopeMenu,children:S.jsx(Uh,{id:d.contentId,"aria-labelledby":d.triggerId,...i,ref:p,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{var m;u.isUsingKeyboardRef.current&&((m=f.current)==null||m.focus()),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:Je(e.onFocusOutside,g=>{g.target!==d.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Je(e.onEscapeKeyDown,g=>{u.onClose(),g.preventDefault()}),onKeyDown:Je(e.onKeyDown,g=>{var x;const m=g.currentTarget.contains(g.target),w=cN[u.dir].includes(g.key);m&&w&&(s.onOpenChange(!1),(x=d.trigger)==null||x.focus(),g.preventDefault())})})})})})});gb.displayName=mb;function yb(e){return e?"open":"closed"}function $u(e){return e==="indeterminate"}function Wh(e){return $u(e)?"indeterminate":e?"checked":"unchecked"}function ON(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function kN(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function DN(e,t,n){const i=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let u=kN(e,Math.max(s,0));i.length===1&&(u=u.filter(p=>p!==n));const f=u.find(p=>p.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function AN(e,t){const{x:n,y:o}=e;let i=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const d=t[s].x,f=t[s].y,p=t[u].x,g=t[u].y;f>o!=g>o&&n<(p-d)*(o-f)/(g-f)+d&&(i=!i)}return i}function IN(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return AN(n,t)}function Ds(e){return t=>t.pointerType==="mouse"?e(t):void 0}var NN=ZS,MN=Fh,LN=eb,zN=tb,FN=Bh,qN=nb,$N=vc,UN=ob,BN=ib,HN=lb,WN=cb,JN=db,VN=fb,GN=hb,KN=gb;function YN(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const vb=J.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Bs=()=>{const e=J.useContext(vb);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};YN(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
166[data-state=closed]
167){opacity:0}
167[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function XN(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function QN(){return Jh(/^Mac/)}function ZN(){return Jh(/^iPhone/)}function Pw(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function jN(){return Jh(/^iPad/)||QN()&&navigator.maxTouchPoints>1}function wb(){return ZN()||jN()}function Jh(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const eM=24,tM=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Ow(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Jf=typeof document<"u"&&window.visualViewport;function kw(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function xb(e){for(kw(e)&&(e=e.parentElement);e&&!kw(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const nM=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let uu=0,Vf;function rM(e={}){let{isDisabled:t}=e;tM(()=>
167{if(!t)return uu++,uu===1&&wb()&&(Vf=oM()),()=>{uu--,uu===0&&(Vf==null||Vf())}},[t])}function oM(){let e,t=0,n=m=>{e=xb(m.target),!(e===document.documentElement&&e===document.body)&&(t=m.changedTouches[0].pageY)},o=m=>{if(!e||e===document.documentElement||e===document.body){m.preventDefault();return}let w=m.changedTouches[0].pageY,x=e.scrollTop,R=e.scrollHeight-e.clientHeight;R!==0&&((x<=0&&w>t||x>=R&&w<t)&&m.preventDefault(),t=w)},i=m=>{let w=m.target;Vp(w)&&w!==document.activeElement&&(m.preventDefault(),w.style.transform="translateY(-2000px)",w.focus(),requestAnimationFrame(()=>{w.style.transform=""}))},s=m=>{let w=m.target;Vp(w)&&(w.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{w.style.transform="",Jf&&(Jf.height<window.innerHeight?requestAnimationFrame(()=>{Dw(w)}):Jf.addEventListener("resize",()=>Dw(w),{once:!0}))}))},u=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset,p=Ow(aM(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let g=Ow(ss(document,"touchstart",n,{passive:!1,capture:!0}),ss(document,"touchmove",o,{passive:!1,capture:!0}),ss(document,"touchend",i,{passive:!1,capture:!0}),ss(document,"focus",s,!0),ss(window,"scroll",u));return()=>{p(),g(),window.scrollTo(d,f)}}function aM(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function ss(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function Dw(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=xb(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let o=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top,s=e.getBoundingClientRect().bottom;const u=n.getBoundingClientRect().bottom+eM;s>u&&(n.scrollTop+=i-o)}e=n.parentElement}}function Vp(e){return e instanceof HTMLInputElement&&!nM.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function iM(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function sM(...e){return t=>e.forEach(n=>iM(n,t))}function Sb(...e){return v.useCallback(sM(...e),e)}const bb=new WeakMap;function en(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let o={};Object.entries(t).forEach(([i,s])=>{if(i.startsWith("--")){e.style.setProperty(i,s);return}o[i]=e.style[i],e.style[i]=s}),!n&&bb.set(e,o)}function lM(e,t){if(!e||!(e instanceof HTMLElement))return;let n=bb.get(e);n&&(e.style[t]=n[t])}const Yt=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function cu(e,t){if(!e)return null;const n=window.getComputedStyle(e),o=n.transform||n.webkitTransform||n.mozTransform;let i=o.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[Yt(t)?13:12]):(i=o.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(", ")[Yt(t)?5:4]):null)}function uM(e){return 8*(Math.log(e+1)-2)}function Gf(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function cM(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const It={DURATION:.5,EASE:[.32,.72,0,1]},Rb=.4,dM=.25,fM=100,_b=8,la=16,Gp=26,Kf="vaul-dragging";function Eb(e){const t=J.useRef(e);return J.useEffect(()=>{t.current=e}),J.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function pM({defaultProp:e,onChange:t}){const n=J.useState(e),[o]=n,i=J.useRef(o),s=Eb(t);return J.useEffect(()=>{i.current!==o&&(s(o),i.current=o)},[o,i,s]),n}function Cb({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=pM({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:o,d=Eb(n),f=J.useCallback(p=>{if(s){const m=typeof p=="function"?p(e):p;m!==e&&d(m)}else i(p)},[s,e,i,d]);return[u,f]}function hM({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:o,overlayRef:i,fadeFromIndex:s,onSnapPointChange:u,direction:d="bottom",container:f,snapToSequentialPoint:p}){const[g,m]=Cb({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[w,x]=J.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);J.useEffect(()=>{function T(){x({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[]);const R=J.useMemo(()=>g===(n==null?void 0:n[n.length-1])||null,[n,g]),_=J.useMemo(()=>{var T;return(T=n==null?void 0:n.findIndex(L=>L===g))!=null?T:null},[n,g]),E=n&&n.length>0&&(s||s===0)&&!Number.isNaN(s)&&n[s]===g||!n,C=J.useMemo(()=>{const T=f?{width:f.getBoundingClientRect().width,height:f.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var L;return(L=n==null?void 0:n.map($=>{const re=typeof $=="string";let le=0;if(re&&(le=parseInt($,10)),Yt(d)){const Z=re?le:w?$*T.height:0;return w?d==="bottom"?T.height-Z:-T.height+Z:Z}const se=re?le:w?$*T.width:0;return w?d==="right"?T.width-se:-T.width+se:se}))!=null?L:[]},[n,w,f]),P=J.useMemo(()=>_!==null?C==null?void 0:C[_]:null,[C,_]),N=J.useCallback(T=>{var L;const $=(L=C==null?void 0:C.findIndex(re=>re===T))!=null?L:null;u($),en(o.current,{transition:`transform ${It.DURATION}s cubic-bezier(${It.EASE.join(",")})`,transform:Yt(d)?`translate3d(0, ${T}px, 0)`:`translate3d(${T}px, 0, 0)`}),C&&$!==C.length-1&&s!==void 0&&$!==s&&$<s?en(i.current,{transition:`opacity ${It.DURATION}s cubic-bezier(${It.EASE.join(",")})`,opacity:"0"}):en(i.current,{transition:`opacity ${It.DURATION}s cubic-bezier(${It.EASE.join(",")})`,opacity:"1"}),m(n==null?void 0:n[Math.max($,0)])},[o.current,n,C,s,i,m]);J.useEffect(()=>{if(g||e){var T;const L=(T=n==null?void 0:n.findIndex($=>$===e||$===g))!=null?T:-1;C&&L!==-1&&typeof C[L]=="number"&&N(C[L])}},[g,e,n,C,N]);function A({draggedDistance:T,closeDrawer:L,velocity:$,dismissible:re}){if(s===void 0)return;const le=d==="bottom"||d==="right"?(P??0)-T:(P??0)+T,se=_===s-1,Z=_===0,fe=T>0;if(se&&en(i.current,{transition:`opacity ${It.DURATION}s cubic-bezier(${It.EASE.join(",")})`}),!p&&$>2&&!fe){re?L():N(C[0]);return}if(!p&&$>2&&fe&&C&&n){N(C[n.length-1]);return}const me=C==null?void 0:C.reduce((ue,I)=>typeof ue!="number"||typeof I!="number"?ue:Math.abs(I-le)<Math.abs(ue-le)?I:ue),
167X=Yt(d)?window.innerHeight:window.innerWidth;if($>Rb&&Math.abs(T)<X*.4){const ue=fe?1:-1;if(ue>0&&R&&n){N(C[n.length-1]);return}if(Z&&ue<0&&re&&L(),_===null)return;N(C[_+ue]);return}N(me)}function q({draggedDistance:T}){if(P===null)return;const L=d==="bottom"||d==="right"?P-T:P+T;(d==="bottom"||d==="right")&&L<C[C.length-1]||(d==="top"||d==="left")&&L>C[C.length-1]||en(o.current,{transform:Yt(d)?`translate3d(0, ${L}px, 0)`:`translate3d(${L}px, 0, 0)`})}function U(T,L){if(!n||typeof _!="number"||!C||s===void 0)return null;const $=_===s-1;if(_>=s&&L)return 0;if($&&!L)return 1;if(!E&&!$)return null;const le=$?_+1:_-1,se=$?C[le]-C[le-1]:C[le+1]-C[le],Z=T/Math.abs(se);return $?1-Z:Z}return{isLastSnapPoint:R,activeSnapPoint:g,shouldFade:E,getPercentageDragged:U,setActiveSnapPoint:m,activeSnapPointIndex:_,onRelease:A,onDrag:q,snapPointsOffset:C}}const mM=()=>()=>{};function gM(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:o,noBodyStyles:i}=Bs(),s=J.useRef(null),u=v.useMemo(()=>document.body.style.backgroundColor,[]);function d(){return(window.innerWidth-Gp)/window.innerWidth}J.useEffect(()=>{if(t&&n){s.current&&clearTimeout(s.current);const f=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!f)return;cM(o&&!i?Gf(document.body,{background:"black"}):mM,Gf(f,{transformOrigin:Yt(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${It.DURATION}s`,transitionTimingFunction:`cubic-bezier(${It.EASE.join(",")})`}));const p=Gf(f,{borderRadius:`${_b}px`,overflow:"hidden",...Yt(e)?{transform:`scale(${d()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${d()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{p(),s.current=window.setTimeout(()=>{u?document.body.style.background=u:document.body.style.removeProperty("background")},It.DURATION*1e3)}}},[t,n,u])}let ls=null;function yM({isOpen:e,modal:t,nested:n,hasBeenOpened:o,preventScrollRestoration:i,noBodyStyles:s}){const[u,d]=J.useState(()=>typeof window<"u"?window.location.href:""),f=J.useRef(0),p=J.useCallback(()=>{if(Pw()&&ls===null&&e&&!s){ls={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:m,innerHeight:w}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-f.current}px`,left:`${-m}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const x=w-window.innerHeight;x&&f.current>=w&&(document.body.style.top=`${-(f.current+x)}px`)}),300)}},[e]),g=J.useCallback(()=>{if(Pw()&&ls!==null&&!s){const m=-parseInt(document.body.style.top,10),w=-parseInt(document.body.style.left,10);Object.assign(document.body.style,ls),window.requestAnimationFrame(()=>{if(i&&u!==window.location.href){d(window.location.href);return}window.scrollTo(w,m)}),ls=null}},[u]);return J.useEffect(()=>{function m(){f.current=window.scrollY}return m(),window.addEventListener("scroll",m),()=>{window.removeEventListener("scroll",m)}},[]),J.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||g()}},[t,g]),J.useEffect(()=>{n||!o||(e?(!window.matchMedia("(display-mode: standalone)").matches&&p(),t||window.setTimeout(()=>{g()},500)):g())},[e,o,u,t,n,p,g]),{restorePositionSetting:g}}function vM({open:e,onOpenChange:t,children:n,onDrag:o,onRelease:i,snapPoints:s,shouldScaleBackground:u=!1,setBackgroundColorOnScale:d=!0,closeThreshold:f=dM,scrollLockTimeout:p=fM,dismissible:g=!0,handleOnly:m=!1,fadeFromIndex:w=s&&s.length-1,activeSnapPoint:x,setActiveSnapPoint:R,fixed:_,modal:E=!0,onClose:C,nested:P,noBodyStyles:N=!1,direction:A="bottom",defaultOpen:q=!1,disablePreventScroll:U=!0,snapToSequentialPoint:T=!1,preventScrollRestoration:L=!1,repositionInputs:$=!0,onAnimationEnd:re,container:le,autoFocus:se=!1}){var Z,fe;const[me=!1,X]=Cb({defaultProp:q,prop:e,onChange:Te=>{t==null||t(Te),!Te&&!P&&Xt(),setTimeout(()=>
167{re==null||re(Te)},It.DURATION*1e3),Te&&!E&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),Te||(document.body.style.pointerEvents="auto")}}),[ue,I]=J.useState(!1),[V,j]=J.useState(!1),[D,H]=J.useState(!1),B=J.useRef(null),Q=J.useRef(null),oe=J.useRef(null),ee=J.useRef(null),ne=J.useRef(null),he=J.useRef(!1),we=J.useRef(null),De=J.useRef(0),rt=J.useRef(!1),$e=J.useRef(!q),Ue=J.useRef(0),ae=J.useRef(null),Me=J.useRef(((Z=ae.current)==null?void 0:Z.getBoundingClientRect().height)||0),Ke=J.useRef(((fe=ae.current)==null?void 0:fe.getBoundingClientRect().width)||0),at=J.useRef(0),Ye=J.useCallback(Te=>{s&&Te===bt.length-1&&(Q.current=new Date)},[]),{activeSnapPoint:qe,activeSnapPointIndex:ut,setActiveSnapPoint:Tt,onRelease:nt,snapPointsOffset:bt,onDrag:Pt,shouldFade:Nt,getPercentageDragged:Ft}=hM({snapPoints:s,activeSnapPointProp:x,setActiveSnapPointProp:R,drawerRef:ae,fadeFromIndex:w,overlayRef:B,onSnapPointChange:Ye,direction:A,container:le,snapToSequentialPoint:T});rM({isDisabled:!me||V||!E||D||!ue||!$||!U});const{restorePositionSetting:Xt}=yM({isOpen:me,modal:E,nested:P??!1,hasBeenOpened:ue,preventScrollRestoration:L,noBodyStyles:N});function _t(){return(window.innerWidth-Gp)/window.innerWidth}function qt(Te){var Ge,je;!g&&!s||ae.current&&!ae.current.contains(Te.target)||(Me.current=((Ge=ae.current)==null?void 0:Ge.getBoundingClientRect().height)||0,Ke.current=((je=ae.current)==null?void 0:je.getBoundingClientRect().width)||0,j(!0),oe.current=new Date,wb()&&window.addEventListener("touchend",()=>he.current=!1,{once:!0}),Te.target.setPointerCapture(Te.pointerId),De.current=Yt(A)?Te.pageY:Te.pageX)}function Wt(Te,Ge){var je;let He=Te;const mt=(je=window.getSelection())==null?void 0:je.toString(),ke=ae.current?cu(ae.current,A):null,Xe=new Date;if(He.tagName==="SELECT"||He.hasAttribute("data-vaul-no-drag")||He.closest("[data-vaul-no-drag]"))return!1;if(A==="right"||A==="left")return!0;if(Q.current&&Xe.getTime()-Q.current.getTime()<500)return!1;if(ke!==null&&(A==="bottom"?ke>0:ke<0))return!0;if(mt&&mt.length>0)return!1;if(ne.current&&Xe.getTime()-ne.current.getTime()<p&&ke===0||Ge)return ne.current=Xe,!1;for(;He;){if(He.scrollHeight>He.clientHeight){if(He.scrollTop!==0)return ne.current=new Date,!1;if(He.getAttribute("role")==="dialog")return!0}He=He.parentNode}return!0}function Rn(Te){if(ae.current&&V){const Ge=A==="bottom"||A==="right"?1:-1,je=(De.current-(Yt(A)?Te.pageY:Te.pageX))*Ge,He=je>0,mt=s&&!g&&!He;if(mt&&ut===0)return;const ke=Math.abs(je),Xe=document.querySelector("[data-vaul-drawer-wrapper]"),ft=A==="bottom"||A==="top"?Me.current:Ke.current;let it=ke/ft;const $t=Ft(ke,He);if($t!==null&&(it=$t),mt&&it>=1||!he.current&&!Wt(Te.target,He))return;if(ae.current.classList.add(Kf),he.current=!0,en(ae.current,{transition:"none"}),en(B.current,{transition:"none"}),s&&Pt({draggedDistance:je}),He&&!s){const pt=uM(je),yn=Math.min(pt*-1,0)*Ge;en(ae.current,{transform:Yt(A)?`translate3d(0, ${yn}px, 0)`:`translate3d(${yn}px, 0, 0)`});return}const ct=1-it;if((Nt||w&&ut===w-1)&&(o==null||o(Te,it),en(B.current,{opacity:`${ct}`,transition:"none"},!0)),Xe&&B.current&&u){const pt=Math.min(_t()+it*(1-_t()),1),yn=8-it*8,k=Math.max(0,14-it*14);en(Xe,{borderRadius:`${yn}px`,transform:Yt(A)?`scale(${pt}) translate3d(0, ${k}px, 0)`:`scale(${pt}) translate3d(${k}px, 0, 0)`,transition:"none"},!0)}if(!s){const pt=ke*Ge;en(ae.current,{transform:Yt(A)?`translate3d(0, ${pt}px, 0)`:`translate3d(${pt}px, 0, 0)`})}}}J.useEffect(()=>{window.requestAnimationFrame(()=>{$e.current=!0})},[]),J.useEffect(()=>{var Te;function Ge(){if(!ae.current||!$)return;const je=document.activeElement;if(Vp(je)||rt.current){var He;const mt=((He=window.visualViewport)==null?void 0:He.height)||0,ke=window.innerHeight;let Xe=ke-mt;const ft=ae.current.getBoundingClientRect().height||0,it=ft>ke*.8;at.current||(at.current=ft);const $t=ae.current.getBoundingClientRect().top;if(Math.abs(Ue.current-Xe)>60&&(rt.current=!rt.current),s&&s.length>0&&bt&&ut){const ct=bt[ut]||0;Xe+=ct}if(Ue.current=Xe,ft>mt||rt.current){const ct=ae.current.getBoundingClientRect().height;let pt=ct;ct>mt&&(pt=mt-(it?$t:Gp)),_?ae.current.style.height=`${ct-Math.max(Xe,0)}px`:ae.current.style.height=`${Math.max(pt,mt-$t)}px`}else XN()||(ae.current.style.height=`${at.current}px`);s&&s.length>0&&!rt.current?ae.current.style.bottom="0px":ae.current.style.bottom=`${Math.max(Xe,0)}px`}}
167return(Te=window.visualViewport)==null||Te.addEventListener("resize",Ge),()=>{var je;return(je=window.visualViewport)==null?void 0:je.removeEventListener("resize",Ge)}},[ut,s,bt]);function Jt(Te){Vt(),C==null||C(),Te||X(!1),setTimeout(()=>{s&&Tt(s[0])},It.DURATION*1e3)}function sn(){if(!ae.current)return;const Te=document.querySelector("[data-vaul-drawer-wrapper]"),Ge=cu(ae.current,A);en(ae.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${It.DURATION}s cubic-bezier(${It.EASE.join(",")})`}),en(B.current,{transition:`opacity ${It.DURATION}s cubic-bezier(${It.EASE.join(",")})`,opacity:"1"}),u&&Ge&&Ge>0&&me&&en(Te,{borderRadius:`${_b}px`,overflow:"hidden",...Yt(A)?{transform:`scale(${_t()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${_t()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${It.DURATION}s`,transitionTimingFunction:`cubic-bezier(${It.EASE.join(",")})`},!0)}function Vt(){!V||!ae.current||(ae.current.classList.remove(Kf),he.current=!1,j(!1),ee.current=new Date)}function ar(Te){if(!V||!ae.current)return;ae.current.classList.remove(Kf),he.current=!1,j(!1),ee.current=new Date;const Ge=cu(ae.current,A);
167if(!Te||!Wt(Te.target,!1)||!Ge||Number.isNaN(Ge)||oe.current===null)return;const je=ee.current.getTime()-oe.current.getTime(),He=De.current-(Yt(A)?Te.pageY:Te.pageX),mt=Math.abs(He)/je;if(mt>.05&&(H(!0),setTimeout(()=>{H(!1)},200)),s){nt({draggedDistance:He*(A==="bottom"||A==="right"?1:-1),closeDrawer:Jt,velocity:mt,dismissible:g}),i==null||i(Te,!0);return}if(A==="bottom"||A==="right"?He>0:He<0){sn(),i==null||i(Te,!0);return}if(mt>Rb){Jt(),i==null||i(Te,!1);return}var ke;const Xe=Math.min((ke=ae.current.getBoundingClientRect().height)!=null?ke:0,window.innerHeight);var ft;const it=Math.min((ft=ae.current.getBoundingClientRect().width)!=null?ft:0,window.innerWidth),$t=A==="left"||A==="right";if(Math.abs(Ge)>=($t?it:Xe)*f){Jt(),i==null||i(Te,!1);return}i==null||i(Te,!0),sn()}J.useEffect(()=>(me&&(en(document.documentElement,{scrollBehavior:"auto"}),Q.current=new Date),()=>{lM(document.documentElement,"scrollBehavior")}),[me]);function ir(Te){const Ge=Te?(window.innerWidth-la)/window.innerWidth:1,je=Te?-la:0;we.current&&window.clearTimeout(we.current),en(ae.current,{transition:`transform ${It.DURATION}s cubic-bezier(${It.EASE.join(",")})`,transform:Yt(A)?`scale(${Ge}) translate3d(0, ${je}px, 0)`:`scale(${Ge}) translate3d(${je}px, 0, 0)`}),!Te&&ae.current&&(we.current=setTimeout(()=>{const He=cu(ae.current,A);en(ae.current,{transition:"none",transform:Yt(A)?`translate3d(0, ${He}px, 0)`:`translate3d(${He}px, 0, 0)`})},500))}function Cr(Te,Ge){if(Ge<0)return;const je=(window.innerWidth-la)/window.innerWidth,He=je+Ge*(1-je),mt=-la+Ge*la;en(ae.current,{transform:Yt(A)?`scale(${He}) translate3d(0, ${mt}px, 0)`:`scale(${He}) translate3d(${mt}px, 0, 0)`,transition:"none"})}function sr(Te,Ge){const je=Yt(A)?window.innerHeight:window.innerWidth,He=Ge?(je-la)/je:1,mt=Ge?-la:0;Ge&&en(ae.current,{transition:`transform ${It.DURATION}s cubic-bezier(${It.EASE.join(",")})`,transform:Yt(A)?`scale(${He}) translate3d(0, ${mt}px, 0)`:`scale(${He}) translate3d(${mt}px, 0, 0)`})}return J.useEffect(()=>{E||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[E]),J.createElement(dS,{defaultOpen:q,onOpenChange:Te=>{!g&&!Te||(Te?I(!0):Jt(!0),X(Te))},open:me},J.createElement(vb.Provider,{value:{activeSnapPoint:qe,snapPoints:s,setActiveSnapPoint:Tt,drawerRef:ae,overlayRef:B,onOpenChange:t,onPress:qt,onRelease:ar,onDrag:Rn,dismissible:g,shouldAnimate:$e,handleOnly:m,isOpen:me,isDragging:V,shouldFade:Nt,closeDrawer:Jt,onNestedDrag:Cr,onNestedOpenChange:ir,onNestedRelease:sr,keyboardIsOpen:rt,modal:E,snapPointsOffset:bt,activeSnapPointIndex:ut,direction:A,shouldScaleBackground:u,setBackgroundColorOnScale:d,noBodyStyles:N,container:le,autoFocus:se}},n))}const Tb=J.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:o,onRelease:i,shouldFade:s,isOpen:u,modal:d,shouldAnimate:f}=Bs(),p=Sb(t,n),g=o&&o.length>0;if(!d)return null;const m=J.useCallback(w=>i(w),[i]);return J.createElement(pS,{onMouseUp:m,ref:p,"data-vaul-overlay":"","data-vaul-snap-points":u&&g?"true":"false","data-vaul-snap-points-overlay":u&&s?"true":"false","data-vaul-animate":f!=null&&f.current?"true":"false",...e})});Tb.displayName="Drawer.Overlay";const Pb=J.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...o},i){const{drawerRef:s,onPress:u,onRelease:d,onDrag:f,keyboardIsOpen:p,snapPointsOffset:g,activeSnapPointIndex:m,modal:w,isOpen:x,direction:R,snapPoints:_,container:E,handleOnly:C,shouldAnimate:P,autoFocus:N}=Bs(),[A,q]=J.useState(!1),U=Sb(i,s),T=J.useRef(null),L=J.useRef(null),$=J.useRef(!1),re=_&&_.length>0;gM();const le=(Z,fe,me=0)=>{if($.current)return!0;const X=Math.abs(Z.y),ue=Math.abs(Z.x),I=ue>X,V=["bottom","right"].includes(fe)?1:-1;if(fe==="left"||fe==="right"){if(!(Z.x*V<0)&&ue>=0&&ue<=me)return I}else if(!(Z.y*V<0)&&X>=0&&X<=me)return!I;return $.current=!0,!0};J.useEffect(()=>{re&&window.requestAnimationFrame(()=>{q(!0)})},[]);function se(Z){T.current=null,$.current=!1,d(Z)}return J.createElement(hS,{"data-vaul-drawer-direction":R,"data-vaul-drawer":"","data-vaul-delayed-snap-points":A?"true":"false","data-vaul-snap-points":x&&re?"true":"false","data-vaul-custom-container":E?"true":"false","data-vaul-animate":P!=null&&P.current?"true":"false",...o,ref:U,style:g&&g.length>0?{"--snap-point-height":`${g[m??0]}px`,...t}:t,onPointerDown:Z=>{C||(o.onPointerDown==null||o.onPointerDown.call(o,Z),T.current={x:Z.pageX,y:Z.pageY},u(Z))},onOpenAutoFocus:Z=>{n==null||n(Z),N||Z.preventDefault()},onPointerDownOutside:Z=>
167{if(e==null||e(Z),!w||Z.defaultPrevented){Z.preventDefault();return}p.current&&(p.current=!1)},onFocusOutside:Z=>{if(!w){Z.preventDefault();return}},onPointerMove:Z=>{if(L.current=Z,C||(o.onPointerMove==null||o.onPointerMove.call(o,Z),!T.current))return;const fe=Z.pageY-T.current.y,me=Z.pageX-T.current.x,X=Z.pointerType==="touch"?10:2;le({x:me,y:fe},R,X)?f(Z):(Math.abs(me)>X||Math.abs(fe)>X)&&(T.current=null)},onPointerUp:Z=>{o.onPointerUp==null||o.onPointerUp.call(o,Z),T.current=null,$.current=!1,d(Z)},onPointerOut:Z=>{o.onPointerOut==null||o.onPointerOut.call(o,Z),se(L.current)},onContextMenu:Z=>{o.onContextMenu==null||o.onContextMenu.call(o,Z),L.current&&se(L.current)}})});Pb.displayName="Drawer.Content";const wM=250,xM=120,SM=J.forwardRef(function({preventCycle:e=!1,children:t,...n},o){const{closeDrawer:i,isDragging:s,snapPoints:u,activeSnapPoint:d,setActiveSnapPoint:f,dismissible:p,handleOnly:g,isOpen:m,onPress:w,onDrag:x}=Bs(),R=J.useRef(null),_=J.useRef(!1);function E(){if(_.current){N();return}window.setTimeout(()=>{C()},xM)}function C(){if(s||e||_.current){N();return}if(N(),!u||u.length===0){p||i();return}if(d===u[u.length-1]&&p){i();return}const q=u.findIndex(T=>T===d);if(q===-1)return;const U=u[q+1];f(U)}function P(){R.current=window.setTimeout(()=>{_.current=!0},wM)}function N(){R.current&&window.clearTimeout(R.current),_.current=!1}return J.createElement("div",{onClick:E,onPointerCancel:N,onPointerDown:A=>{g&&w(A),P()},onPointerMove:A=>{g&&x(A)},ref:o,"data-vaul-drawer-visible":m?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},J.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});SM.displayName="Drawer.Handle";function bM(e){const t=Bs(),{container:n=t.container,...o}=e;return J.createElement(fS,{container:n,...o})}const p5={Root:vM,Content:Pb,Overlay:Tb,Portal:bM,Title:mS,Description:gS};var Vh="DropdownMenu",[RM]=xa(Vh,[XS]),bn=XS(),[_M,Ob]=RM(Vh),kb=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:s,onOpenChange:u,modal:d=!0}=e,f=bn(t),p=v.useRef(null),[g=!1,m]=sc({prop:i,defaultProp:s,onChange:u});return S.jsx(_M,{scope:t,triggerId:pa(),triggerRef:p,contentId:pa(),open:g,onOpenChange:m,onOpenToggle:v.useCallback(()=>m(w=>!w),[m]),modal:d,children:S.jsx(NN,{...f,open:g,onOpenChange:m,dir:o,modal:d,children:n})})};kb.displayName=Vh;var Db="DropdownMenuTrigger",Ab=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...i}=e,s=Ob(Db,n),u=bn(n);return S.jsx(MN,{asChild:!0,...u,children:S.jsx(zt.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...i,ref:ic(t,s.triggerRef),onPointerDown:Je(e.onPointerDown,d=>{!o&&d.button===0&&d.ctrlKey===!1&&(s.onOpenToggle(),s.open||d.preventDefault())}),onKeyDown:Je(e.onKeyDown,d=>{o||(["Enter"," "].includes(d.key)&&s.onOpenToggle(),d.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});Ab.displayName=Db;var EM="DropdownMenuPortal",Ib=e=>{const{__scopeDropdownMenu:t,...n}=e,o=bn(t);return S.jsx(LN,{...o,...n})};Ib.displayName=EM;var Nb="DropdownMenuContent",Mb=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=Ob(Nb,n),s=bn(n),u=v.useRef(!1);return S.jsx(zN,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...o,ref:t,onCloseAutoFocus:Je(e.onCloseAutoFocus,d=>{var f;u.current||(f=i.triggerRef.current)==null||f.focus(),u.current=!1,d.preventDefault()}),onInteractOutside:Je(e.onInteractOutside,d=>{const f=d.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,g=f.button===2||p;(!i.modal||g)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Mb.displayName=Nb;var CM="DropdownMenuGroup",TM=v.forwardRef((e,t)=>
vendor: 4,934 bytes, line 167
167{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(FN,{...i,...o,ref:t})});TM.displayName=CM;var PM="DropdownMenuLabel",OM=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(qN,{...i,...o,ref:t})});OM.displayName=PM;var kM="DropdownMenuItem",Lb=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx($N,{...i,...o,ref:t})});Lb.displayName=kM;var DM="DropdownMenuCheckboxItem",AM=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(UN,{...i,...o,ref:t})});AM.displayName=DM;var IM="DropdownMenuRadioGroup",NM=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(BN,{...i,...o,ref:t})});NM.displayName=IM;var MM="DropdownMenuRadioItem",LM=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(HN,{...i,...o,ref:t})});LM.displayName=MM;var zM="DropdownMenuItemIndicator",FM=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(WN,{...i,...o,ref:t})});FM.displayName=zM;var qM="DropdownMenuSeparator",zb=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(JN,{...i,...o,ref:t})});zb.displayName=qM;var $M="DropdownMenuArrow",UM=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(VN,{...i,...o,ref:t})});UM.displayName=$M;var BM="DropdownMenuSubTrigger",HM=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(GN,{...i,...o,ref:t})});HM.displayName=BM;var WM="DropdownMenuSubContent",JM=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,i=bn(n);return S.jsx(KN,{...i,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});JM.displayName=WM;var VM=kb,GM=Ab,KM=Ib,YM=Mb,XM=Lb,QM=zb;function ZM({...e}){return S.jsx(VM,{"data-slot":"dropdown-menu",...e})}function jM({...e}){return S.jsx(GM,{"data-slot":"dropdown-menu-trigger",...e})}function eL({className:e,sideOffset:t=4,...n}){return S.jsx(KM,{children:S.jsx(YM,{"data-slot":"dropdown-menu-content",sideOffset:t,className:St("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function tL({className:e,inset:t,variant:n="default",...o}){return S.jsx(XM,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:St("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function h5({className:e,...t}){return S.jsx(QM,{"data-slot":"dropdown-menu-separator",className:St("bg-border -mx-1 my-1 h-px",e),...t})}v.createContext({});v.createContext({});const nL=v.forwardRef(({className:e,type:t,...n},o)=>S.jsx("input",{type:t,"data-slot":"input",ref:o,className:St("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n}));nL.displayName="Input";var rL=Object.defineProperty,oL=Object.defineProperties,aL=Object.getOwnPropertyDescriptors,Uu=Object.getOwnPropertySymbols,Fb=Object.prototype.hasOwnProperty,qb=Object.prototype.propertyIsEnumerable,Aw=(e,t,n)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iL=(e,t)=>{for(var n in t||(t={}
167))Fb.call(t,n)&&Aw(e,n,t[n]);if(Uu)for(var n of Uu(t))qb.call(t,n)&&Aw(e,n,t[n]);return e},sL=(e,t)=>oL(e,aL(t)),lL=(e,t)=>{var n={};for(var o in e)Fb.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Uu)for(var o of Uu(e))t.indexOf(o)<0&&qb.call(e,o)&&(n[o]=e[o]);return n};function uL(e){let t=setTimeout(e,0),n=setTimeout(e,10),o=setTimeout(e,50);return[t,n,o]}function cL(e){let t=v.useRef();return v.useEffect(()=>{t.current=e}),t.current}var dL=18,$b=40,fL=`${$b}px`,pL=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function hL({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:o}){let[i,s]=v.useState(!1),[u,d]=v.useState(!1),[f,p]=v.useState(!1),g=v.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&i&&u,[i,u,n]),m=v.useCallback(()=>{let w=e.current,x=t.current;if(!w||!x||f||n==="none")return;let R=w,_=R.getBoundingClientRect().left+R.offsetWidth,E=R.getBoundingClientRect().top+R.offsetHeight/2,C=_-dL,P=E;document.querySelectorAll(pL).length===0&&document.elementFromPoint(C,P)===w||(s(!0),p(!0))},[e,t,f,n]);return v.useEffect(()=>{let w=e.current;if(!w||n==="none")return;function x(){let _=window.innerWidth-w.getBoundingClientRect().right;d(_>=$b)}x();let R=setInterval(x,1e3);return()=>{clearInterval(R)}},[e,n]),v.useEffect(()=>{let w=o||document.activeElement===t.current;if(n==="none"||!w)return;let x=setTimeout(m,0),R=setTimeout(m,2e3),_=setTimeout(m,5e3),E=setTimeout(()=>{p(!0)},6e3);return()=>{clearTimeout(x),clearTimeout(R),clearTimeout(_),clearTimeout(E)}},[t,o,n,m]),{hasPWMBadge:i,willPushPWMBadge:g,PWM_BADGE_SPACE_WIDTH:fL}}var mL=v.createContext({}),gL=v.forwardRef((e,t)=>{var n=e,{value:o,onChange:i,maxLength:s,textAlign:u="left",pattern:d,placeholder:f,inputMode:p="numeric",onComplete:g,pushPasswordManagerStrategy:m="increase-width",pasteTransformer:w,containerClassName:x,noScriptCSSFallback:R=yL,render:_,children:E}=n,C=lL(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),P,N,A,q,U;let[T,L]=v.useState(typeof C.defaultValue=="string"?C.defaultValue:""),$=o??T,re=cL($),le=v.useCallback(ae=>{i==null||i(ae),L(ae)},[i]),se=v.useMemo(()=>d?typeof d=="string"?new RegExp(d):d:null,[d]),Z=v.useRef(null),fe=v.useRef(null),me=v.useRef({value:$,onChange:le,isIOS:typeof window<"u"&&((N=(P=window==null?void 0:window.CSS)==null?void 0:P.supports)==null?void 0:N.call(P,"-webkit-touch-callout","none"))}),X=v.useRef({prev:[(A=Z.current)==null?void 0:A.selectionStart,(q=Z.current)==null?void 0:q.selectionEnd,(U=Z.current)==null?void 0:U.selectionDirection]});v.useImperativeHandle(t,()=>Z.current,[]),v.useEffect(()=>{let ae=Z.current,Me=fe.current;if(!ae||!Me)return;me.current.value!==ae.value&&me.current.onChange(ae.value),X.current.prev=[ae.selectionStart,ae.selectionEnd,ae.selectionDirection];function Ke(){if(document.activeElement!==ae){H(null),Q(null);return}let qe=ae.selectionStart,ut=ae.selectionEnd,Tt=ae.selectionDirection,nt=ae.maxLength,bt=ae.value,Pt=X.current.prev,Nt=-1,Ft=-1,Xt;if(bt.length!==0&&qe!==null&&ut!==null){let Rn=qe===ut,Jt=qe===bt.length&&bt.length<nt;if(Rn&&!Jt){let sn=qe;if(sn===0)Nt=0,Ft=1,Xt="forward";else if(sn===nt)Nt=sn-1,Ft=sn,Xt="backward";else if(nt>1&&bt.length>1){let Vt=0;if(Pt[0]!==null&&Pt[1]!==null){Xt=sn<Pt[1]?"backward":"forward";let ar=Pt[0]===Pt[1]&&Pt[0]<nt;Xt==="backward"&&!ar&&(Vt=-1)}Nt=Vt+sn,Ft=Vt+sn+1}}Nt!==-1&&Ft!==-1&&Nt!==Ft&&Z.current.setSelectionRange(Nt,Ft,Xt)}let _t=Nt!==-1?Nt:qe,qt=Ft!==-1?Ft:ut,Wt=Xt??Tt;H(_t),Q(qt),X.current.prev=[_t,qt,Wt]}if(document.addEventListener("selectionchange",Ke,{capture:!0}),Ke(),document.activeElement===ae&&j(!0),!document.getElementById("input-otp-style")){let qe=document.createElement("style");if(qe.id="input-otp-style",document.head.appendChild(qe),qe.sheet){let ut="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";us(qe.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),us(qe.sheet,`[data-input-otp]:autofill { ${ut} }`),us(qe.sheet,`[data-input-otp]:-webkit-autofill { ${ut} }
167`),us(qe.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),us(qe.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let at=()=>{Me&&Me.style.setProperty("--root-height",`${ae.clientHeight}px`)};at();let Ye=new ResizeObserver(at);return Ye.observe(ae),()=>{document.removeEventListener("selectionchange",Ke,{capture:!0}),Ye.disconnect()}},[]);let[ue,I]=v.useState(!1),[V,j]=v.useState(!1),[D,H]=v.useState(null),[B,Q]=v.useState(null);v.useEffect(()=>{uL(()=>{var ae,Me,Ke,at;(ae=Z.current)==null||ae.dispatchEvent(new Event("input"));let Ye=(Me=Z.current)==null?void 0:Me.selectionStart,qe=(Ke=Z.current)==null?void 0:Ke.selectionEnd,ut=(at=Z.current)==null?void 0:at.selectionDirection;Ye!==null&&qe!==null&&(H(Ye),Q(qe),X.current.prev=[Ye,qe,ut])})},[$,V]),v.useEffect(()=>{re!==void 0&&$!==re&&re.length<s&&$.length===s&&(g==null||g($))},[s,g,re,$]);let oe=hL({containerRef:fe,inputRef:Z,pushPasswordManagerStrategy:m,isFocused:V}),ee=v.useCallback(ae=>{let Me=ae.currentTarget.value.slice(0,s);if(Me.length>0&&se&&!se.test(Me)){ae.preventDefault();return}typeof re=="string"&&Me.length<re.length&&document.dispatchEvent(new Event("selectionchange")),le(Me)},[s,le,re,se]),ne=v.useCallback(()=>{var ae;if(Z.current){let Me=Math.min(Z.current.value.length,s-1),Ke=Z.current.value.length;(ae=Z.current)==null||ae.setSelectionRange(Me,Ke),H(Me),Q(Ke)}j(!0)},[s]),he=v.useCallback(ae=>{var Me,Ke;let at=Z.current;if(!w&&(!me.current.isIOS||!ae.clipboardData||!at))return;let Ye=ae.clipboardData.getData("text/plain"),qe=w?w(Ye):Ye;ae.preventDefault();let ut=(Me=Z.current)==null?void 0:Me.selectionStart,Tt=(Ke=Z.current)==null?void 0:Ke.selectionEnd,nt=(ut!==Tt?$.slice(0,ut)+qe+$.slice(Tt):$.slice(0,ut)+qe+$.slice(ut)).slice(0,s);if(nt.length>0&&se&&!se.test(nt))return;at.value=nt,le(nt);let bt=Math.min(nt.length,s-1),Pt=nt.length;at.setSelectionRange(bt,Pt),H(bt),Q(Pt)},[s,le,se,$]),we=v.useMemo(()=>({position:"relative",cursor:C.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[C.disabled]),De=v.useMemo(()=>({position:"absolute",inset:0,width:oe.willPushPWMBadge?`calc(100% + ${oe.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:oe.willPushPWMBadge?`inset(0 ${oe.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:u,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[oe.PWM_BADGE_SPACE_WIDTH,oe.willPushPWMBadge,u]),rt=v.useMemo(()=>v.createElement("input",sL(iL({autoComplete:C.autoComplete||"one-time-code"},C),{"data-input-otp":!0,"data-input-otp-placeholder-shown":$.length===0||void 0,"data-input-otp-mss":D,"data-input-otp-mse":B,inputMode:p,pattern:se==null?void 0:se.source,"aria-placeholder":f,style:De,maxLength:s,value:$,ref:Z,onPaste:ae=>{var Me;he(ae),(Me=C.onPaste)==null||Me.call(C,ae)},onChange:ee,onMouseOver:ae=>{var Me;I(!0),(Me=C.onMouseOver)==null||Me.call(C,ae)},onMouseLeave:ae=>{var Me;I(!1),(Me=C.onMouseLeave)==null||Me.call(C,ae)},onFocus:ae=>{var Me;ne(),(Me=C.onFocus)==null||Me.call(C,ae)},onBlur:ae=>{var Me;j(!1),(Me=C.onBlur)==null||Me.call(C,ae)}})),[ee,ne,he,p,De,s,B,D,C,se==null?void 0:se.source,$]),$e=v.useMemo(()=>({slots:Array.from({length:s}).map((ae,Me)=>{var Ke;let at=V&&D!==null&&B!==null&&(D===B&&Me===D||Me>=D&&Me<B),Ye=$[Me]!==void 0?$[Me]:null,qe=$[0]!==void 0?null:(Ke=f==null?void 0:f[Me])!=null?Ke:null;return{char:Ye,placeholderChar:qe,isActive:at,hasFakeCaret:at&&Ye===null}}),isFocused:V,isHovering:!C.disabled&&ue}),[V,ue,s,B,D,C.disabled,$]),Ue=v.useMemo(()=>_?_($e):v.createElement(mL.Provider,{value:$e},E),[E,$e,_]);return v.createElement(v.Fragment,null,R!==null&&v.createElement("noscript",null,v.createElement("style",null,R)),v.createElement("div",{ref:fe,"data-input-otp-container":!0,style:we,className:x},Ue,v.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},rt)))});gL.displayName="Input";function us(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var yL=`
168[data-input-otp] {
169  --nojs-bg: white !important;
170  --nojs-fg: black !important;
171
172  background-color: var(--nojs-bg) !important;
173  color: var(--nojs-fg) !important;
174  caret-color: var(--nojs-fg) !important;
175  letter-spacing: .25em !important;
176  text-align: center !important;
177  border: 1px solid var(--nojs-fg) !important;
178  border-radius: 4px !important;
179  width: 100% !important;
180}
181@media (prefers-color-scheme: dark) {
182  [data-input-otp] {
183    --nojs-bg: black !important;
184    --nojs-fg: white !important;
185  }
186}`,vL="VisuallyHidden",Ub=v.forwardRef((e,t)=>
186S.jsx(zt.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}}));Ub.displayName=vL;var wL=Ub;const{createElement:As,createContext:xL,forwardRef:Bb,useCallback:Dn,useContext:SL,useEffect:Kp,useImperativeHandle:Hb,useLayoutEffect:bL,useMemo:RL,useRef:mr,useState:Yp}=Gu,Iw=Gu[`useId${Math.random()}`.slice(0,5)],_L=bL,Gh=xL(null);Gh.displayName="PanelGroupContext";const ci=_L,EL=typeof Iw=="function"?Iw:()=>null;let CL=0;function Wb(e=null){const t=EL(),n=mr(e||t||null);return n.current===null&&(n.current=""+CL++),e??n.current}function Jb({children:e,className:t="",collapsedSize:n,collapsible:o,defaultSize:i,forwardedRef:s,id:u,maxSize:d,minSize:f,onCollapse:p,onExpand:g,onResize:m,order:w,style:x,tagName:R="div",..._}){const E=SL(Gh);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:P,getPanelSize:N,getPanelStyle:A,groupId:q,isPanelCollapsed:U,reevaluatePanelConstraints:T,registerPanel:L,resizePanel:$,unregisterPanel:re}=E,le=Wb(u),se=mr({callbacks:{onCollapse:p,onExpand:g,onResize:m},constraints:{collapsedSize:n,collapsible:o,defaultSize:i,maxSize:d,minSize:f},id:le,idIsFromProps:u!==void 0,order:w});mr({didLogMissingDefaultSizeWarning:!1}),ci(()=>{const{callbacks:fe,constraints:me}=se.current,X={...me};se.current.id=le,se.current.idIsFromProps=u!==void 0,se.current.order=w,fe.onCollapse=p,fe.onExpand=g,fe.onResize=m,me.collapsedSize=n,me.collapsible=o,me.defaultSize=i,me.maxSize=d,me.minSize=f,(X.collapsedSize!==me.collapsedSize||X.collapsible!==me.collapsible||X.maxSize!==me.maxSize||X.minSize!==me.minSize)&&T(se.current,X)}),ci(()=>{const fe=se.current;return L(fe),()=>{re(fe)}},[w,le,L,re]),Hb(s,()=>({collapse:()=>{C(se.current)},expand:fe=>{P(se.current,fe)},getId(){return le},getSize(){return N(se.current)},isCollapsed(){return U(se.current)},isExpanded(){return!U(se.current)},resize:fe=>{$(se.current,fe)}}),[C,P,N,U,le,$]);const Z=A(se.current,i);return As(R,{..._,children:e,className:t,id:u,style:{...Z,...x},"data-panel":"","data-panel-collapsible":o||void 0,"data-panel-group-id":q,"data-panel-id":le,"data-panel-size":parseFloat(""+Z.flexGrow).toFixed(1)})}const TL=Bb((e,t)=>As(Jb,{...e,forwardedRef:t}));Jb.displayName="Panel";TL.displayName="forwardRef(Panel)";function Vb(e){return e.type==="keydown"}function Gb(e){return e.type.startsWith("pointer")}function Kb(e){return e.type.startsWith("mouse")}function PL(e){if(Gb(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Kb(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function OL(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const kL=1,DL=2,AL=4,IL=8;OL();let NL=new Map;function Yf(e,t){NL.set(e,t)}function ML(){const[e,t]=Yp(0);return Dn(()=>t(n=>n+1),[])}function lt(e,t){if(!e)throw console.error(t),Error(t)}const Kh=10;function va(e,t,n=Kh){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function ao(e,t,n=Kh){return va(e,t,n)===0}function $n(e,t,n){return va(e,t,n)===0}function LL(e,t,n){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const i=e[o],s=t[o];if(!$n(i,s,n))return!1}return!0}function ri({panelConstraints:e,panelIndex:t,size:n}){const o=e[t];lt(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:s,maxSize:u=100,minSize:d=0}=o;if(va(n,d)<0)if(s){const f=(i+d)/2;va(n,f)<0?n=i:n=d}else n=d;return n=Math.min(u,n),n=parseFloat(n.toFixed(Kh)),n}function ys({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:i,trigger:s}){if($n(e,0))return t;const u=[...t],[d,f]=o;lt(d!=null,"Invalid first pivot index"),lt(f!=null,"Invalid second pivot index");let p=0;if(s==="keyboard"){{const m=e<0?f:d,w=n[m];lt(w,`Panel constraints not found for index ${m}`);const{collapsedSize:x=0,collapsible:R,minSize:_=0}=w;
186if(R){const E=t[m];if(lt(E!=null,`Previous layout not found for panel index ${m}`),$n(E,x)){const C=_-E;va(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}{const m=e<0?d:f,w=n[m];lt(w,`No panel constraints found for index ${m}`);const{collapsedSize:x=0,collapsible:R,minSize:_=0}=w;if(R){const E=t[m];if(lt(E!=null,`Previous layout not found for panel index ${m}`),$n(E,_)){const C=E-x;va(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const m=e<0?1:-1;let w=e<0?f:d,x=0;for(;;){const _=t[w];lt(_!=null,`Previous layout not found for panel index ${w}`);const C=ri({panelConstraints:n,panelIndex:w,size:100})-_;if(x+=C,w+=m,w<0||w>=n.length)break}const R=Math.min(Math.abs(e),Math.abs(x));e=e<0?0-R:R}{let w=e<0?d:f;for(;w>=0&&w<n.length;){const x=Math.abs(e)-Math.abs(p),R=t[w];lt(R!=null,`Previous layout not found for panel index ${w}`);const _=R-x,E=ri({panelConstraints:n,panelIndex:w,size:_});if(!$n(R,E)&&(p+=R-E,u[w]=E,p.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?w--:w++}}if(LL(i,u))return i;{const m=e<0?f:d,w=t[m];lt(w!=null,`Previous layout not found for panel index ${m}`);const x=w+p,R=ri({panelConstraints:n,panelIndex:m,size:x});if(u[m]=R,!$n(R,x)){let _=x-R,C=e<0?f:d;for(;C>=0&&C<n.length;){const P=u[C];lt(P!=null,`Previous layout not found for panel index ${C}`);const N=P+_,A=ri({panelConstraints:n,panelIndex:C,size:N});if($n(P,A)||(_-=A-P,u[C]=A),$n(_,0))break;e>0?C--:C++}}}const g=u.reduce((m,w)=>w+m,0);return $n(g,100)?u:i}function zL({layout:e,panelsArray:t,pivotIndices:n}){let o=0,i=100,s=0,u=0;const d=n[0];lt(d!=null,"No pivot index found"),t.forEach((m,w)=>{const{constraints:x}=m,{maxSize:R=100,minSize:_=0}=x;w===d?(o=_,i=R):(s+=_,u+=R)});const f=Math.min(i,100-s),p=Math.max(o,100-u),g=e[d];return{valueMax:f,valueMin:p,valueNow:g}}function Bu(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function FL(e,t,n=document){const i=Bu(e,n).findIndex(s=>s.getAttribute("data-panel-resize-handle-id")===t);return i??null}function Yb(e,t,n){const o=FL(e,t,n);return o!=null?[o,o+1]:[-1,-1]}function Xb(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;
186const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}function Yh(e,t=document){const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function qL(e,t,n,o=document){var i,s,u,d;const f=Yh(t,o),p=Bu(e,o),g=f?p.indexOf(f):-1,m=(i=(s=n[g])===null||s===void 0?void 0:s.id)!==null&&i!==void 0?i:null,w=(u=(d=n[g+1])===null||d===void 0?void 0:d.id)!==null&&u!==void 0?u:null;return[m,w]}function $L({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:o,panelDataArray:i,panelGroupElement:s,setLayout:u}){mr({didWarnAboutMissingResizeHandle:!1}),ci(()=>{if(!s)return;const d=Bu(n,s);for(let f=0;f<i.length-1;f++){const{valueMax:p,valueMin:g,valueNow:m}=zL({layout:o,panelsArray:i,pivotIndices:[f,f+1]}),w=d[f];if(w!=null){const x=i[f];lt(x,`No panel data found for index "${f}"`),w.setAttribute("aria-controls",x.id),w.setAttribute("aria-valuemax",""+Math.round(p)),w.setAttribute("aria-valuemin",""+Math.round(g)),w.setAttribute("aria-valuenow",m!=null?""+Math.round(m):"")}}return()=>{d.forEach((f,p)=>{f.removeAttribute("aria-controls"),f.removeAttribute("aria-valuemax"),f.removeAttribute("aria-valuemin"),f.removeAttribute("aria-valuenow")})}},[n,o,i,s]),Kp(()=>{if(!s)return;const d=t.current;lt(d,"Eager values not found");const{panelDataArray:f}=d,p=Xb(n,s);lt(p!=null,`No group found for id "${n}"`);const g=Bu(n,s);lt(g,`No resize handles found for group id "${n}"`);const m=g.map(w=>{const x=w.getAttribute("data-panel-resize-handle-id");lt(x,"Resize handle element has no handle id attribute");const[R,_]=qL(n,x,f,s);if(R==null||_==null)return()=>{};const E=C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const P=f.findIndex(N=>N.id===R);if(P>=0){const N=f[P];lt(N,`No panel data found for index ${P}`);const A=o[P],{collapsedSize:q=0,collapsible:U,minSize:T=0}=N.constraints;if(A!=null&&U){const L=ys({delta:$n(A,q)?T-q:q-A,initialLayout:o,panelConstraints:f.map($=>$.constraints),pivotIndices:Yb(n,x,s),prevLayout:o,trigger:"keyboard"});o!==L&&u(L)}}break}}};return w.addEventListener("keydown",E),()=>{w.removeEventListener("keydown",E)}});return()=>{m.forEach(w=>w())}},[s,e,t,n,o,i,u])}function Nw(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Qb(e,t){const n=e==="horizontal",{x:o,y:i}=PL(t);return n?o:i}function UL(e,t,n,o,i){const s=n==="horizontal",u=Yh(t,i);lt(u,`No resize handle element found for id "${t}"`);const d=u.getAttribute("data-panel-group-id");lt(d,"Resize handle element has no group id attribute");let{initialCursorPosition:f}=o;const p=Qb(n,e),g=Xb(d,i);lt(g,`No group element found for id "${d}"`);const m=g.getBoundingClientRect(),w=s?m.width:m.height;return(p-f)/w*100}function BL(e,t,n,o,i,s){if(Vb(e)){const u=n==="horizontal";let d=0;e.shiftKey?d=100:i!=null?d=i:d=10;let f=0;switch(e.key){case"ArrowDown":f=u?0:d;break;case"ArrowLeft":f=u?-d:0;break;case"ArrowRight":f=u?d:0;break;case"ArrowUp":f=u?0:-d;break;case"End":f=100;break;case"Home":f=-100;break}return f}else return o==null?0:UL(e,t,n,o,s)}function HL({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let o=0,i=100;for(let s=0;s<e.length;s++){const u=n[s];lt(u,`Panel constraints not found for index ${s}`);const{defaultSize:d}=u;d!=null&&(o++,t[s]=d,i-=d)}for(let s=0;s<e.length;s++){const u=n[s];lt(u,`Panel constraints not found for index ${s}`);const{defaultSize:d}=u;if(d!=null)continue;const f=e.length-o,p=i/f;o++,t[s]=p,i-=p}return t}function Xa(e,t,n){t.forEach((o,i)=>{const s=e[i];lt(s,`Panel data not found for index ${i}`);const{callbacks:u,constraints:d,id:f}=s,{collapsedSize:p=0,collapsible:g}=d,m=n[f];if(m==null||o!==m){n[f]=o;const{onCollapse:w,onExpand:x,onResize:R}=u;R&&R(o,m),g&&(w||x)&&(x&&(m==null||ao(m,p))&&!ao(o,p)&&x(),w&&(m==null||!ao(m,p))&&ao(o,p)&&w())}})}function du(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function WL({defaultSize:e,dragState:t,layout:n,panelData:o,panelIndex:i,precision:s=3}){const u=n[i];let d;return u==null?d=e!=null?e.toPrecision(s):"1":o.length===1?d="1":d=u.toPrecision(s),{flexBasis:0,flexGrow:d,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function JL(e,t=10){let n=null;return(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...i)},t)}}function Mw(e){try{if(typeof localStorage<"u")e.getItem=t=>
186localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Zb(e){return`react-resizable-panels:${e}`}function jb(e){return e.map(t=>{const{constraints:n,id:o,idIsFromProps:i,order:s}=t;return i?o:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function eR(e,t){try{const n=Zb(e),o=t.getItem(n);if(o){const i=JSON.parse(o);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function VL(e,t,n){var o,i;const s=(o=eR(e,n))!==null&&o!==void 0?o:{},u=jb(t);return(i=s[u])!==null&&i!==void 0?i:null}function GL(e,t,n,o,i){var s;const u=Zb(e),d=jb(t),f=(s=eR(e,i))!==null&&s!==void 0?s:{};f[d]={expandToSizes:Object.fromEntries(n.entries()),layout:o};try{i.setItem(u,JSON.stringify(f))}catch(p){console.error(p)}}function Lw({layout:e,panelConstraints:t}){const n=[...e],o=n.reduce((s,u)=>s+u,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!$n(o,100)&&n.length>0)for(let s=0;s<t.length;s++){const u=n[s];lt(u!=null,`No layout data found for index ${s}`);const d=100/o*u;n[s]=d}let i=0;for(let s=0;s<t.length;s++){const u=n[s];lt(u!=null,`No layout data found for index ${s}`);const d=ri({panelConstraints:t,panelIndex:s,size:u});u!=d&&(i+=u-d,n[s]=d)}if(!$n(i,0))for(let s=0;s<t.length;s++){const u=n[s];lt(u!=null,`No layout data found for index ${s}`);const d=u+i,f=ri({panelConstraints:t,panelIndex:s,size:d});if(u!==f&&(i-=f-u,n[s]=f,$n(i,0)))break}return n}const KL=100,vs={getItem:e=>(Mw(vs),vs.getItem(e)),setItem:(e,t)=>{Mw(vs),vs.setItem(e,t)}},zw={};function tR({autoSaveId:e=null,children:t,className:n="",direction:o,forwardedRef:i,id:s=null,onLayout:u=null,keyboardResizeBy:d=null,storage:f=vs,style:p,tagName:g="div",...m}){const w=Wb(s),x=mr(null),[R,_]=Yp(null),[E,C]=Yp([]),P=ML(),N=mr({}),A=mr(new Map),q=mr(0),U=mr({autoSaveId:e,direction:o,dragState:R,id:w,keyboardResizeBy:d,onLayout:u,storage:f}),T=mr({layout:E,panelDataArray:[],panelDataArrayChanged:!1});mr({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),Hb(i,()=>({getId:()=>U.current.id,getLayout:()=>{const{layout:B}=T.current;return B},setLayout:B=>{const{onLayout:Q}=U.current,{layout:oe,panelDataArray:ee}=T.current,ne=Lw({layout:B,panelConstraints:ee.map(he=>he.constraints)});Nw(oe,ne)||(C(ne),T.current.layout=ne,Q&&Q(ne),Xa(ee,ne,N.current))}}),[]),ci(()=>{U.current.autoSaveId=e,U.current.direction=o,U.current.dragState=R,U.current.id=w,U.current.onLayout=u,U.current.storage=f}),$L({committedValuesRef:U,eagerValuesRef:T,groupId:w,layout:E,panelDataArray:T.current.panelDataArray,setLayout:C,panelGroupElement:x.current}),Kp(()=>{const{panelDataArray:B}=T.current;if(e){if(E.length===0||E.length!==B.length)return;let Q=zw[e];Q==null&&(Q=JL(GL,KL),zw[e]=Q);const oe=[...B],ee=new Map(A.current);Q(e,oe,ee,E,f)}},[e,E,f]),Kp(()=>{});const L=Dn(B=>{const{onLayout:Q}=U.current,{layout:oe,panelDataArray:ee}=T.current;if(B.constraints.collapsible){const ne=ee.map(rt=>rt.constraints),{collapsedSize:he=0,panelSize:we,pivotIndices:De}=ua(ee,B,oe);if(lt(we!=null,`Panel size not found for panel "${B.id}"`),!ao(we,he)){A.current.set(B.id,we);const $e=ti(ee,B)===ee.length-1?we-he:he-we,Ue=ys({delta:$e,initialLayout:oe,panelConstraints:ne,pivotIndices:De,prevLayout:oe,trigger:"imperative-api"});du(oe,Ue)||(C(Ue),T.current.layout=Ue,Q&&Q(Ue),Xa(ee,Ue,N.current))}}},[]),$=Dn((B,Q)=>{const{onLayout:oe}=U.current,{layout:ee,panelDataArray:ne}=T.current;if(B.constraints.collapsible){const he=ne.map(ae=>ae.constraints),{collapsedSize:we=0,panelSize:De=0,minSize:rt=0,pivotIndices:$e}=ua(ne,B,ee),Ue=Q??rt;if(ao(De,we)){const ae=A.current.get(B.id),Me=ae!=null&&ae>=Ue?ae:Ue,at=ti(ne,B)===ne.length-1?De-Me:Me-De,Ye=ys({delta:at,initialLayout:ee,panelConstraints:he,pivotIndices:$e,prevLayout:ee,trigger:"imperative-api"});du(ee,Ye)||(C(Ye),T.current.layout=Ye,oe&&oe(Ye),Xa(ne,Ye,N.current))}}},[]),re=Dn(B=>{const{layout:Q,panelDataArray:oe}=T.current,{panelSize:ee}=ua(oe,B,Q);return lt(ee!=null,`Panel size not found for panel "${B.id}"`),ee},[]),le=Dn((B,Q)=>{const{panelDataArray:oe}=T.current,ee=ti(oe,B);return WL({defaultSize:Q,dragState:R,layout:E,panelData:oe,panelIndex:ee})},[R,E]),se=Dn(B=>{const{layout:Q,panelDataArray:oe}=T.current,{collapsedSize:ee=0,collapsible:ne,panelSize:he}=ua(oe,B,Q);return lt(he!=null,`Panel size not found for panel "${B.id}"`),ne===!0&&ao(he,ee)},[]),Z=Dn(B=>{const{layout:Q,panelDataArray:oe}=T.current,{collapsedSize:ee=0,collapsible:ne,panelSize:he}=ua(oe,B,Q);return lt(he!=null,`Panel size not found for panel "${B.id}"`),!ne||va(he,ee)>0},[]),fe=Dn(B=>{const{panelDataArray:Q}=T.current;Q.push(B),Q.sort((oe,ee)=>{const ne=oe.order,he=ee.order;return ne==null&&he==null?0:ne==null?-1:he==null?1:ne-he}),T.current.panelDataArrayChanged=!0,P()},[P]);ci(()=>
186{if(T.current.panelDataArrayChanged){T.current.panelDataArrayChanged=!1;const{autoSaveId:B,onLayout:Q,storage:oe}=U.current,{layout:ee,panelDataArray:ne}=T.current;let he=null;if(B){const De=VL(B,ne,oe);De&&(A.current=new Map(Object.entries(De.expandToSizes)),he=De.layout)}he==null&&(he=HL({panelDataArray:ne}));const we=Lw({layout:he,panelConstraints:ne.map(De=>De.constraints)});Nw(ee,we)||(C(we),T.current.layout=we,Q&&Q(we),Xa(ne,we,N.current))}}),ci(()=>{const B=T.current;return()=>{B.layout=[]}},[]);const me=Dn(B=>{let Q=!1;const oe=x.current;return oe&&window.getComputedStyle(oe,null).getPropertyValue("direction")==="rtl"&&(Q=!0),function(ne){ne.preventDefault();const he=x.current;if(!he)return()=>null;const{direction:we,dragState:De,id:rt,keyboardResizeBy:$e,onLayout:Ue}=U.current,{layout:ae,panelDataArray:Me}=T.current,{initialLayout:Ke}=De??{},at=Yb(rt,B,he);let Ye=BL(ne,B,we,De,$e,he);const qe=we==="horizontal";qe&&Q&&(Ye=-Ye);const ut=Me.map(bt=>bt.constraints),Tt=ys({delta:Ye,initialLayout:Ke??ae,panelConstraints:ut,pivotIndices:at,prevLayout:ae,trigger:Vb(ne)?"keyboard":"mouse-or-touch"}),nt=!du(ae,Tt);(Gb(ne)||Kb(ne))&&q.current!=Ye&&(q.current=Ye,!nt&&Ye!==0?qe?Yf(B,Ye<0?kL:DL):Yf(B,Ye<0?AL:IL):Yf(B,0)),nt&&(C(Tt),T.current.layout=Tt,Ue&&Ue(Tt),Xa(Me,Tt,N.current))}},[]),X=Dn((B,Q)=>{const{onLayout:oe}=U.current,{layout:ee,panelDataArray:ne}=T.current,he=ne.map(ae=>ae.constraints),{panelSize:we,pivotIndices:De}=ua(ne,B,ee);lt(we!=null,`Panel size not found for panel "${B.id}"`);const $e=ti(ne,B)===ne.length-1?we-Q:Q-we,Ue=ys({delta:$e,initialLayout:ee,panelConstraints:he,pivotIndices:De,prevLayout:ee,trigger:"imperative-api"});du(ee,Ue)||(C(Ue),T.current.layout=Ue,oe&&oe(Ue),Xa(ne,Ue,N.current))},[]),ue=Dn((B,Q)=>{const{layout:oe,panelDataArray:ee}=T.current,{collapsedSize:ne=0,collapsible:he}=Q,{collapsedSize:we=0,collapsible:De,maxSize:rt=100,minSize:$e=0}=B.constraints,{panelSize:Ue}=ua(ee,B,oe);Ue!=null&&(he&&De&&ao(Ue,ne)?ao(ne,we)||X(B,we):Ue<$e?X(B,$e):Ue>rt&&X(B,rt))},[X]),I=Dn((B,Q)=>{const{direction:oe}=U.current,{layout:ee}=T.current;if(!x.current)return;const ne=Yh(B,x.current);lt(ne,`Drag handle element not found for id "${B}"`);const he=Qb(oe,Q);_({dragHandleId:B,dragHandleRect:ne.getBoundingClientRect(),initialCursorPosition:he,initialLayout:ee})},[]),V=Dn(()=>{_(null)},[]),j=Dn(B=>{const{panelDataArray:Q}=T.current,oe=ti(Q,B);oe>=0&&(Q.splice(oe,1),delete N.current[B.id],T.current.panelDataArrayChanged=!0,P())},[P]),D=RL(()=>({collapsePanel:L,direction:o,dragState:R,expandPanel:$,getPanelSize:re,getPanelStyle:le,groupId:w,isPanelCollapsed:se,isPanelExpanded:Z,reevaluatePanelConstraints:ue,registerPanel:fe,registerResizeHandle:me,resizePanel:X,startDragging:I,stopDragging:V,unregisterPanel:j,panelGroupElement:x.current}),[L,R,o,$,re,le,w,se,Z,ue,fe,me,X,I,V,j]),H={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return As(Gh.Provider,{value:D},As(g,{...m,children:t,className:n,id:s,ref:x,style:{...H,...p},"data-panel-group":"","data-panel-group-direction":o,"data-panel-group-id":w}))}const YL=Bb((e,t)=>As(tR,{...e,forwardedRef:t}));tR.displayName="PanelGroup";YL.displayName="forwardRef(PanelGroup)";function ti(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function ua(e,t,n){const o=ti(e,t),s=o===e.length-1?[o-1,o]:[o,o+1],u=n[o];return{...t.constraints,panelSize:u,pivotIndices:s}}function nR({...e}){return S.jsx(dS,{"data-slot":"sheet",...e})}function XL({...e}){return S.jsx(xA,{"data-slot":"sheet-trigger",...e})}function Qa({...e}){return S.jsx(yS,{"data-slot":"sheet-close",...e})}function QL({...e}){return S.jsx(fS,{"data-slot":"sheet-portal",...e})}function ZL({className:e,...t}){return S.jsx(pS,{"data-slot":"sheet-overlay",className:St("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function rR({className:e,children:t,side:n="right",...o}){return S.jsxs(QL,{children:[S.jsx(ZL,{}),S.jsxs(hS,{"data-slot":"sheet-content",className:St("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[t,S.jsxs(yS,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[S.jsx(kk,{className:"size-4"}),S.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function oR({className:e,...t}){return S.jsx("div",{"data-slot":"sheet-header",className:St("flex flex-col gap-1.5 p-4",e),...t})}function aR({className:e,...t}){return S.jsx(mS,{"data-slot":"sheet-title",className:St("text-foreground font-semibold",e),...t})}function jL({className:e,...t}
vendor: 13,799 bytes, line 186
186){return S.jsx(gS,{"data-slot":"sheet-description",className:St("text-muted-foreground text-sm",e),...t})}const Xf=768;function ez(){const[e,t]=v.useState(void 0);return v.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Xf-1}px)`),o=()=>{t(window.innerWidth<Xf)};return n.addEventListener("change",o),t(window.innerWidth<Xf),()=>n.removeEventListener("change",o)},[]),!!e}var[wc]=xa("Tooltip",[mc]),xc=mc(),iR="TooltipProvider",tz=700,Xp="tooltip.open",[nz,Xh]=wc(iR),sR=e=>{const{__scopeTooltip:t,delayDuration:n=tz,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:s}=e,[u,d]=v.useState(!0),f=v.useRef(!1),p=v.useRef(0);return v.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),S.jsx(nz,{scope:t,isOpenDelayed:u,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(p.current),d(!1)},[]),onClose:v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d(!0),o)},[o]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(g=>{f.current=g},[]),disableHoverableContent:i,children:s})};sR.displayName=iR;var Sc="Tooltip",[rz,Hs]=wc(Sc),lR=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:u,delayDuration:d}=e,f=Xh(Sc,e.__scopeTooltip),p=xc(t),[g,m]=v.useState(null),w=pa(),x=v.useRef(0),R=u??f.disableHoverableContent,_=d??f.delayDuration,E=v.useRef(!1),[C=!1,P]=sc({prop:o,defaultProp:i,onChange:T=>{T?(f.onOpen(),document.dispatchEvent(new CustomEvent(Xp))):f.onClose(),s==null||s(T)}}),N=v.useMemo(()=>C?E.current?"delayed-open":"instant-open":"closed",[C]),A=v.useCallback(()=>{window.clearTimeout(x.current),x.current=0,E.current=!1,P(!0)},[P]),q=v.useCallback(()=>{window.clearTimeout(x.current),x.current=0,P(!1)},[P]),U=v.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{E.current=!0,P(!0),x.current=0},_)},[_,P]);return v.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),S.jsx(qS,{...p,children:S.jsx(rz,{scope:t,contentId:w,open:C,stateAttribute:N,trigger:g,onTriggerChange:m,onTriggerEnter:v.useCallback(()=>{f.isOpenDelayed?U():A()},[f.isOpenDelayed,U,A]),onTriggerLeave:v.useCallback(()=>{R?q():(window.clearTimeout(x.current),x.current=0)},[q,R]),onOpen:A,onClose:q,disableHoverableContent:R,children:n})})};lR.displayName=Sc;var Qp="TooltipTrigger",uR=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=Hs(Qp,n),s=Xh(Qp,n),u=xc(n),d=v.useRef(null),f=tn(t,d,i.onTriggerChange),p=v.useRef(!1),g=v.useRef(!1),m=v.useCallback(()=>p.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),S.jsx($S,{asChild:!0,...u,children:S.jsx(zt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:f,onPointerMove:Je(e.onPointerMove,w=>{w.pointerType!=="touch"&&!g.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),g.current=!0)}),onPointerLeave:Je(e.onPointerLeave,()=>{i.onTriggerLeave(),g.current=!1}),onPointerDown:Je(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Je(e.onFocus,()=>{p.current||i.onOpen()}),onBlur:Je(e.onBlur,i.onClose),onClick:Je(e.onClick,i.onClose)})})});uR.displayName=Qp;var Qh="TooltipPortal",[oz,az]=wc(Qh,{forceMount:void 0}),cR=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:i}=e,s=Hs(Qh,t);return S.jsx(oz,{scope:t,forceMount:n,children:S.jsx(Br,{present:n||s.open,children:S.jsx(uc,{asChild:!0,container:i,children:o})})})};cR.displayName=Qh;var pi="TooltipContent",dR=v.forwardRef((e,t)=>{const n=az(pi,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...s}=e,u=Hs(pi,e.__scopeTooltip);return S.jsx(Br,{present:o||u.open,children:u.disableHoverableContent?S.jsx(fR,{side:i,...s,ref:t}):S.jsx(iz,{side:i,...s,ref:t})})}),iz=v.forwardRef((e,t)=>{const n=Hs(pi,e.__scopeTooltip),o=Xh(pi,e.__scopeTooltip),i=v.useRef(null),s=tn(t,i),[u,d]=v.useState(null),{trigger:f,onClose:p}=n,g=i.current,{onPointerInTransitChange:m}=o,w=v.useCallback(()=>{d(null),m(!1)},[m]),x=v.useCallback((R,_)=>{const E=R.currentTarget,C={x:R.clientX,y:R.clientY},P=uz(C,E.getBoundingClientRect()),N=cz(C,P),A=dz(_.getBoundingClientRect()),q=pz([...N,...A]);d(q),m(!0)},[m]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(f&&g){const R=E=>x(E,g),_=E=>x(E,f);return f.addEventListener("pointerleave",R),g.addEventListener("pointerleave",_),()=>{f.removeEventListener("pointerleave",R),g.removeEventListener("pointerleave",_)}}},[f,g,x,w]),v.useEffect(()=>{if(u){const R=_=>{const E=_.target,C={x:_.clientX,y:_.clientY},P=(f==null?void 0:f.contains(E))||(g==null?void 0:g.contains(E)),N=!fz(C,u);P?w():N&&(w(),p())};return document.addEventListener("pointermove",R),()=>document.removeEventListener("pointermove",R)}},[f,g,u,p,w]),S.jsx(fR,{...e,ref:s})}),[sz,lz]=wc(Sc,{isInside:!1}),fR=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:u,...d}=e,f=Hs(pi,n),p=xc(n),{onClose:g}=f;return v.useEffect(()=>(document.addEventListener(Xp,g),()=>document.removeEventListener(Xp,g)),[g]),v.useEffect(()=>{if(f.trigger){const m=w=>{const x=w.target;x!=null&&x.contains(f.trigger)&&g()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[f.trigger,g]),S.jsx(lc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:m=>m.preventDefault(),onDismiss:g,children:S.jsxs(US,{"data-state":f.stateAttribute,...p,...d,ref:t,style:{...d.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:[S.jsx(vx,{children:o}),S.jsx(sz,{scope:n,isInside:!0,children:S.jsx(wL,{id:f.contentId,role:"tooltip",children:i||o})})]})})});dR.displayName=pi;var pR="TooltipArrow",hR=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=xc(n);return lz(pR,n).isInside?null:S.jsx(BS,{...i,...o,ref:t})});hR.displayName=pR;function uz(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,i,s)){case s:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function cz(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function dz(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function fz(e,t){const{x:n,y:o}=e;let i=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const d=t[s].x,f=t[s].y,p=t[u].x,g=t[u].y;f>o!=g>o&&n<(p-d)*(o-f)/(g-f)+d&&(i=!i)}return i}function pz(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),hz(t)}function hz(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const s=t[t.length-1],u=t[t.length-2];if((s.x-u.x)*(i.y-u.y)>=(s.y-u.y)*(i.x-u.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const s=n[n.length-1],u=n[n.length-2];if((s.x-u.x)*(i.y-u.y)>=(s.y-u.y)*(i.x-u.x))n.pop();else break}n.push(i)}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 mz=sR,gz=lR,yz=uR,vz=cR,wz=dR,xz=hR;function mR({delayDuration:e=0,...t}){return S.jsx(mz,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Sz({...e}){return S.jsx(mR,{children:S.jsx(gz,{"data-slot":"tooltip",...e})})}function bz({...e}){return S.jsx(yz,{"data-slot":"tooltip-trigger",...e})}function Rz({className:e,sideOffset:t=0,children:n,...o}){return S.jsx(vz,{children:S.jsxs(wz,{"data-slot":"tooltip-content",sideOffset:t,className:St("bg-primary text-primary-foreground 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...o,children:[n,S.jsx(xz,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const _z="sidebar_state",Ez=3600*24*7,Cz="16rem",Tz="18rem",Pz="3rem",Oz="b",gR=v.createContext(null);function Zh(){const e=v.useContext(gR);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function m5({defaultOpen:e=!0,open:t,onOpenChange:n,className:o,style:i,children:s,...u}){const d=ez(),[f,p]=v.useState(!1),[g,m]=v.useState(e),w=t??g,x=v.useCallback(C=>{const P=typeof C=="function"?C(w):C;n?n(P):m(P),document.cookie=`${_z}=${P}; path=/; max-age=${Ez}`},[n,w]),R=v.useCallback(()=>d?p(C=>!C):x(C=>!C),[d,x,p]);v.useEffect(()=>{const C=P=>{P.key===Oz&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),R())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[R]);const _=w?"expanded":"collapsed",E=v.useMemo(()=>({state:_,open:w,setOpen:x,isMobile:d,openMobile:f,setOpenMobile:p,toggleSidebar:R}),[_,w,x,d,f,p,R]);return S.jsx(gR.Provider,{value:E,children:S.jsx(mR,{delayDuration:0,children:S.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Cz,"--sidebar-width-icon":Pz,...i},className:St("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",o),...u,children:s})})})}function g5({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:o,children:i,...s}){const{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=Zh();return n==="none"?S.jsx("div",{"data-slot":"sidebar",className:St("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),...s,children:i}):u?S.jsx(nR,{open:f,onOpenChange:p,...s,children:S.jsxs(rR,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Tz},side:e,children:[S.jsxs(oR,{className:"sr-only",children:[S.jsx(aR,{children:"Sidebar"}),S.jsx(jL,{children:"Displays the mobile sidebar."})]}),S.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):S.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":d,"data-collapsible":d==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[S.jsx("div",{"data-slot":"sidebar-gap",className:St("relative w-(--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)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),S.jsx("div",{"data-slot":"sidebar-container",className:St("fixed inset-y-0 z-10 hidden h-svh w-(--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)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:S.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:i})})]})}function y5({className:e,onClick:t,...n}){const{toggleSidebar:o}=Zh();return S.jsxs(ca,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:St("size-7",e),onClick:i=>{t==null||t(i),o()},...n,children:[S.jsx(Ck,{}),S.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function v5({className:e,...t}){return S.jsx("main",{"data-slot":"sidebar-inset",className:St("relative flex w-full flex-1 flex-col bg-transparent","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 w5({className:e,...t}){return S.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:St("flex flex-col gap-2 p-2",e),...t})}function x5({className:e,...t}){return S.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:St("flex flex-col gap-2 p-2",e),...t})}function S5({className:e,...t}){return S.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:St("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function b5({className:e,...t}){return S.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:St("relative flex w-full min-w-0 flex-col p-2",e),...t})}function R5({className:e,asChild:t=!1,...n}){const o=t?so:"div";return S.jsx(o,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:St("text-sidebar-foreground
186/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]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})}function _5({className:e,...t}){return S.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:St("w-full text-sm",e),...t})}function E5({className:e,...t}){return S.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:St("flex w-full min-w-0 flex-col gap-1",e),...t})}function C5({className:e,...t}){return S.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:St("group/menu-item relative",e),...t})}const kz=Mx("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]:size-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 T5({asChild:e=!1,isActive:t=!1,variant:n="default",size:o="default",tooltip:i,className:s,...u}){const d=e?so:"button",{isMobile:f,state:p}=Zh(),g=S.jsx(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":o,"data-active":t,className:St(kz({variant:n,size:o}),s),...u});return i?(typeof i=="string"&&(i={children:i}),S.jsxs(Sz,{children:[S.jsx(bz,{asChild:!0,children:g}),S.jsx(Rz,{side:"right",align:"center",hidden:p!=="collapsed"||f,...i})]})):g}const Dz=v.forwardRef(({className:e,...t},n)=>S.jsx("textarea",{"data-slot":"textarea",ref:n,className:St("resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-input-background px-3 py-2 text-base transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t}));Dz.displayName="Textarea";v.createContext({size:"default",variant:"default"});const tr=({title:e,description:t,variant:n="default",duration:o,action:i,onDismiss:s})=>{const u=e||t||"",d=t||o!==void 0||i||s?{description:t,duration:o,action:i,onDismiss:s}:void 0;return n==="destructive"?Iv.error(u,d):Iv(u,d)};function yR(){v.useEffect(()=>{let e=0;const t=n=>{var s;const o=n.target,i=(s=o==null?void 0:o.closest)==null?void 0:s.call(o,".archframe-card");i&&(e||(e=requestAnimationFrame(()=>{e=0;const u=i.getBoundingClientRect();i.style.setProperty("--mx",`${n.clientX-u.left}px`),i.style.setProperty("--my",`${n.clientY-u.top}px`)})))};return window.addEventListener("pointermove",t,{passive:!0}),()=>{window.removeEventListener("pointermove",t),e&&cancelAnimationFrame(e)}},[])}const Az={sm:"h-12 w-12",md:"h-24 w-24",lg:"h-36 w-36",xl:"h-48 w-48"};function jh({size:e="md",className:t="",showText:n=!0,name:o="smritea-logo-monk-blue"}){return S.jsxs("div",{className:`flex items-center gap-1 ${t}`,children:[S.jsx(Oh,{name:o,alt:"Smritea",width:96,height:96,loading:"eager",fetchPriority:"high",className:`${Az[e]} object-contain bg-transparent`}),n&&S.jsx("span",{className:`font-semibold ${e==="sm"?"text-sm":e==="lg"?"text-xl":e==="xl"?"text-2xl":"text-base"}`,children:"Smritea"})]})}function Iz({logoName:e}={}){return yR(),S.jsxs("div",{className:"marketing flex h-screen w-full flex-col overflow-hidden bg-card text-card-foreground lg:flex-row",children:[S.jsx("div",{className:"flex w-full flex-col justify-center overflow-y-auto px-6 py-6 sm:px-10 lg:w-[40%] lg:border-r lg:border-(--color-border) lg:px-16",children:S.jsxs("div",{className:"mx-auto w-full max-w-sm",children:[S.jsx("div",{className:"text-center mb-6",children:S.jsx(vr,{to:"/",className:"inline-flex items-center gap-2 mb-2",children:S.jsx(jh,{size:"xl",name:e})})}),S.jsx(ph,{})]})}),S.jsxs("div",{className:"relative hidden lg:block lg:h-full lg:w-[60%]",children:[S.jsx(Oh,{name:"auth_memory_team_photo",alt:"",className:"h-full w-full object-cover",loading:"eager",fetchPriority:"high"}),S.jsxs("div",{"aria-hidden":"true",className:"absolute bottom-6 left-6 rounded-xl bg-white/95 px-4 py-3 shadow-lg backdrop-blur-sm",children:[S.jsx("div",{className:"text-xs font-medium text-[#6B7280]",children:"Remembered"}),S.jsx("div",{className:"text-sm font-semibold text-[#18181B]",children:"Prefers async updates"})]})]})]})}const Nz="http://studio.smritea.ai/api/v1".replace(/\/+$/,"");class em{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Nz}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||vR}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const Mz=new em,Ju=class Ju{constructor(t=Mz){this.configuration=t,this.fetchApi=async(n,o)=>{let i={url:n,init:o};for(const u of this.middleware)u.pre&&(i=await u.pre({fetch:this.fetchApi,...i})||i);let s;try{s=await(this.configuration.fetchApi||fetch)(i.url,i.init)}catch(u){for(const d of this.middleware)d.onError&&(s=await d.onError({fetch:this.fetchApi,url:i.url,init:i.init,error:u,response:s?s.clone():void 0})||s);if(s===void 0)throw u instanceof Error?new qz(u,"The request failed and the interceptors did not return an alternative response"):u}for(const u of this.middleware)u.post&&(s=await u.post({fetch:this.fetchApi,url:i.url,init:i.init,response:s.clone()})||s);return s},this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(o=>({pre:o}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(o=>({post:o}));return this.withMiddleware(...n)}isJsonMime(t){return t?Ju.jsonRegex.test(t):!1}async request(t,n){const{url:o,init:i}=await this.createFetchParams(t,n),s=await this.fetchApi(o,i);if(s&&s.status>=200&&s.status<300)return s;throw new Fz(s,"Response returned an error code")}async createFetchParams(t,n){let o=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(o+="?"+this.configuration.queryParamsStringify(t.query));const i=Object.assign({},this.configuration.headers,t.headers);
186Object.keys(i).forEach(g=>i[g]===void 0?delete i[g]:{});const s=typeof n=="function"?n:async()=>n,u={method:t.method,headers:i,body:t.body,credentials:this.configuration.credentials},d={...u,...await s({init:u,context:t})};let f;zz(d.body)||d.body instanceof URLSearchParams||Lz(d.body)?f=d.body:this.isJsonMime(i["Content-Type"])?f=JSON.stringify(d.body):f=d.body;const p={...d,body:f};return{url:o,init:p}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}};Ju.jsonRegex=new RegExp("^(:?application/json|[^;/ 	]+/[^;/ 	]+[+]json)[ 	]*(:?;.*)?$","i");let hi=Ju;function Lz(e){return typeof Blob<"u"&&e instanceof Blob}function zz(e){return typeof FormData<"u"&&e instanceof FormData}class Fz extends Error{constructor(t,n){super(n),this.response=t,this.name="ResponseError"}}class qz extends Error{constructor(t,n){super(n),this.cause=t,this.name="FetchError"}}class te extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}function vR(e,t=""){return Object.keys(e).map(n=>wR(n,e[n],t)).filter(n=>n.length>0).join("&")}function wR(e,t,n=""){const o=n+(n.length?`[${e}]`:e);if(t instanceof Array){const i=t.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(o)}=`);return`${encodeURIComponent(o)}=${i}`}if(t instanceof Set){const i=Array.from(t);return wR(e,i,n)}return t instanceof Date?`${encodeURIComponent(o)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?vR(t,o):`${encodeURIComponent(o)}=${encodeURIComponent(String(t))}`}function $z(e,t){const n={};for(const o of Object.keys(e))n[o]=t(e[o]);return n}class ve{constructor(t,n=o=>o){this.raw=t,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class An{constructor(t){this.raw=t}async value(){}}function xR(e){return Uz(e)}function Uz(e,t){return e==null?e:{appId:e.app_id==null?void 0:e.app_id,appName:e.app_name==null?void 0:e.app_name,createdAt:e.created_at==null?void 0:e.created_at,createdBy:e.created_by==null?void 0:e.created_by,expiresAt:e.expires_at==null?void 0:e.expires_at,id:e.id==null?void 0:e.id,keyPrefix:e.key_prefix==null?void 0:e.key_prefix,lastUsed:e.last_used==null?void 0:e.last_used,name:e.name==null?void 0:e.name,organizationId:e.organization_id==null?void 0:e.organization_id,scopes:e.scopes==null?void 0:e.scopes,status:e.status==null?void 0:e.status}}const P5={Admin:"admin",Member:"member"};function Bz(e){return Hz(e,!1)}function Hz(e,t=!1){return e==null?e:{email:e.email,role:e.role}}const O5={TeamRoleAdmin:"admin",TeamRoleMember:"member",TeamRoleViewer:"viewer"};function Wz(e){return Jz(e)}function Jz(e,t){return e}function Vz(e){return Gz(e,!1)}function Gz(e,t=!1){return e==null?e:{role:e.role,user_id:e.userId}}function Kz(e){return Yz(e,!1)}function Yz(e,t=!1){return e==null?e:{api_key:e.apiKey,base_url:e.baseUrl,model:e.model,provider:e.provider}}function Xz(e){return Qz(e,!1)}function Qz(e,t=!1){return e==null?e:{api_key:e.apiKey,base_url:e.baseUrl,model:e.model,provider:e.provider}}function Zz(e){return jz(e,!1)}function jz(e,t=!1){return e==null?e:{api_key:e.apiKey,base_url:e.baseUrl,dimensions:e.dimensions,model:e.model,provider:e.provider}}function eF(e){return tF(e,!1)}function tF(e,t=!1){return e==null?e:{embedding:Zz(e.embedding),llm:Xz(e.llm),reranker:Kz(e.reranker)}}function Qf(e){return nF(e)}function nF(e,t){return e==null?e:{dimensions:e.dimensions==null?void 0:e.dimensions,model:e.model==null?void 0:e.model,provider:e.provider==null?void 0:e.provider}}function Fw(e){return rF(e)}function rF(e,t){return e==null?e:{configured:e.configured==null?void 0:e.configured,embedding:e.embedding==null?void 0:Qf(e.embedding),llm:e.llm==null?void 0:Qf(e.llm),reranker:e.reranker==null?void 0:Qf(e.reranker)}}function oF(e){return aF(e)}function aF(e,t){return e}function iF(e){return sF(e)}function sF(e,t){return e}function lF(e){return uF(e)}function uF(e,t){return e==null?e:{description:e.description==null?void 0:e.description,isDefault:e.is_default==null?void 0:e.is_default,name:e.name,traits:e.traits==null?void 0:e.traits}}function cF(e){return dF(e,!1)}function dF(e,t=!1){return e==null?e:{description:e.description,is_default:e.isDefault,name:e.name,traits:e.traits}}function fF(e){return pF(e)}function pF(e,t){return e==null?e:{actorTypes:e.actor_types==null?void 0:e.actor_types,domains:e.domains==null?void 0:e.domains.map(lF),enabled:e.enabled==null?void 0:e.enabled,model:e.model==null?void 0:e.model}}function SR(e){return hF(e,!1)}function hF(e,t=!1){return e==null?e:{actor_types:e.actorTypes,domains:e.domains==null?void 0:e.domains.map(cF),enabled:e.enabled,model:e.model}}function mF(e){return gF(e)}function gF(e,t){return e==null?e:{minImportance:e.min_importance==null?void 0:e.min_importance,model:e.model==null?void 0:e.model,reflectionPasses:e.reflection_passes==null?void 0:e.reflection_passes,strategy:e.strategy==null?void 0:e.strategy}}function yF(e){return vF(e,!1)}function vF(e,t=!1){return e==null?e:{min_importance:e.minImportance,model:e.model,reflection_passes:e.reflectionPasses,strategy:e.strategy}}function bR(e){return wF(e)}function wF(e,t){return e==null?e:{contextWindow:e.context_window==null?void 0:e.context_window,enableContext:e.enable_context==null?void 0:e.enable_context,entityTypes:e.entity_types==null?void 0:e.entity_types,fallbackMessages:e.fallback_messages==null?void 0:e.fallback_messages,minConfidence:e.min_confidence==null?void 0:e.min_confidence,model:e.model==null?void 0:e.model,reflectionPasses:e.reflection_passes==null?void 0:e.reflection_passes}}function RR(e){return xF(e,!1)}function xF(e,t=!1){return e==null?e:{context_window:e.contextWindow,enable_context:e.enableContext,entity_types:e.entityTypes,fallback_messages:e.fallbackMessages,min_confidence:e.minConfidence,model:e.model,reflection_passes:e.reflectionPasses}}function _R(e){return SF(e)}function SF(e,t){return e==null?e:{entity:e.entity==null?void 0:bR(e.entity),fact:e.fact==null?void 0:mF(e.fact),persona:e.persona==null?void 0:fF(e.persona)}}function ER(e){return bF(e,!1)}function bF(e,t=!1){return e==null?e:{entity:RR(e.entity),fact:yF(e.fact),persona:SR(e.persona)}}function RF(e){return _F(e)}function _F(e,t){return e==null?e:{fromTime:e.from_time==null?void 0:e.from_time,toTime:e.to_time==null?void 0:e.to_time,validAt:e.valid_at==null?void 0:e.valid_at}}function EF(e){return CF(e,!1)}function CF(e,t=!1){return e==null?e:{from_time:e.fromTime,to_time:e.toTime,valid_at:e.validAt}}function TF(e){return PF(e)}function PF(e,t){return e==null?e:{enabled:e.enabled==null?void 0:e.enabled,lambda:e.lambda==null?void 0:e.lambda,maxAgeDays:e.max_age_days==null?void 0:e.max_age_days}}function OF(e){return kF(e,!1)}function kF(e,t=!1){return e==null?e:{enabled:e.enabled,lambda:e.lambda,max_age_days:e.maxAgeDays}}function DF(e){return AF(e)}function AF(e,t){return e==null?e:{entitySeedWeight:e.entity_seed_weight==null?void 0:e.entity_seed_weight,graphExpandedWeight:e.graph_expanded_weight==null?void 0:e.graph_expanded_weight,llmSeedWeight:e.llm_seed_weight==null?void 0:e.llm_seed_weight,relationshipSeedWeight:e.relationship_seed_weight==null?void 0:e.relationship_seed_weight}}function IF(e){return NF(e,!1)}function NF(e,t=!1){return e==null?e:{entity_seed_weight:e.entitySeedWeight,graph_expanded_weight:e.graphExpandedWeight,llm_seed_weight:e.llmSeedWeight,relationship_seed_weight:e.relationshipSeedWeight}}function MF(e){return LF(e)}function LF(e,t){return e==null?e:{direction:e.direction==null?void 0:e.direction,entityBoostFactor:e.entity_boost_factor==null?void 0:e.entity_boost_factor,hopDecayFactor:e.hop_decay_factor==null?void 0:e.hop_decay_factor,maxHops:e.max_hops==null?void 0:e.max_hops,relationshipTypes:e.relationship_types==null?void 0:e.relationship_types}}function zF(e){return FF(e,!1)}function FF(e,t=!1){return e==null?e:{direction:e.direction,entity_boost_factor:e.entityBoostFactor,hop_decay_factor:e.hopDecayFactor,max_hops:e.maxHops,relationship_types:e.relationshipTypes}}function qF(e){return $F(e)}function $F(e,t){return e==null?e:{bm25:e.bm25==null?void 0:e.bm25,graph:e.graph==null?void 0:e.graph,vector:e.vector==null?void 0:e.vector}}function UF(e){return BF(e,!1)}function BF(e,t=!1){return e==null?e:{bm25:e.bm25,graph:e.graph,vector:e.vector}}function HF(e){return WF(e)}function WF(e,t){return e==null?e:{mmrLambda:e.mmr_lambda==null?void 0:e.mmr_lambda,rrfK:e.rrf_k==null?void 0:e.rrf_k,type:e.type==null?void 0:e.type}}function JF(e){return VF(e,!1)}function VF(e,t=!1){return e==null?e:{mmr_lambda:e.mmrLambda,rrf_k:e.rrfK,type:e.type}}const k5={QuickSearch:"quick_search",DeepSearch:"deep_search"};function CR(e){return GF(e)}function GF(e,t){return e==null?e:{enableAutoSelect:e.enable_auto_
186select==null?void 0:e.enable_auto_select,entityExtraction:e.entity_extraction==null?void 0:bR(e.entity_extraction),graphOptions:e.graph_options==null?void 0:MF(e.graph_options),memoryStorageEngine:e.memory_storage_engine==null?void 0:e.memory_storage_engine,methodWeights:e.method_weights==null?void 0:qF(e.method_weights),reranker:e.reranker==null?void 0:HF(e.reranker),sourceWeights:e.source_weights==null?void 0:DF(e.source_weights),temporalDecay:e.temporal_decay==null?void 0:TF(e.temporal_decay),temporalFilter:e.temporal_filter==null?void 0:RF(e.temporal_filter),topN:e.top_n==null?void 0:e.top_n,version:e.version==null?void 0:e.version}}function TR(e){return KF(e,!1)}function KF(e,t=!1){return e==null?e:{enable_auto_select:e.enableAutoSelect,entity_extraction:RR(e.entityExtraction),graph_options:zF(e.graphOptions),memory_storage_engine:e.memoryStorageEngine,method_weights:UF(e.methodWeights),reranker:JF(e.reranker),source_weights:IF(e.sourceWeights),temporal_decay:OF(e.temporalDecay),temporal_filter:EF(e.temporalFilter),top_n:e.topN,version:e.version}}function PR(e){return YF(e)}function YF(e,t){return e==null?e:{description:e.description==null?void 0:e.description,from:e.from==null?void 0:e.from,generateReverse:e.generate_reverse==null?void 0:e.generate_reverse,generateSynonyms:e.generate_synonyms==null?void 0:e.generate_synonyms,queryExpansion:e.query_expansion==null?void 0:e.query_expansion,reverseType:e.reverse_type==null?void 0:e.reverse_type,to:e.to==null?void 0:e.to,type:e.type}}function XF(e){return QF(e,!1)}function QF(e,t=!1){return e==null?e:{description:e.description,from:e.from,generate_reverse:e.generateReverse,generate_synonyms:e.generateSynonyms,query_expansion:e.queryExpansion,reverse_type:e.reverseType,to:e.to,type:e.type}}function OR(e){return ZF(e)}function ZF(e,t){return e==null?e:{description:e.description,key:e.key}}function jF(e){return eq(e,!1)}
186function eq(e,t=!1){return e==null?e:{description:e.description,key:e.key}}function tm(e){return tq(e)}function tq(e,t){return e==null?e:{description:e.description==null?void 0:e.description,type:e.type}}function nq(e){return rq(e,!1)}function rq(e,t=!1){return e==null?e:{description:e.description,type:e.type}}function kR(e){return oq(e)}function oq(e,t){return e==null?e:{affirmativeDirective:e.affirmative_directive==null?void 0:e.affirmative_directive,classificationSchema:e.classification_schema==null?void 0:e.classification_schema.map(tm),extractionDirective:e.extraction_directive==null?void 0:e.extraction_directive,negativeDirective:e.negative_directive==null?void 0:e.negative_directive,relationshipSchema:e.relationship_schema==null?void 0:e.relationship_schema.map(PR),tagSchema:e.tag_schema==null?void 0:e.tag_schema.map(OR)}}function DR(e){return aq(e,!1)}function aq(e,t=!1){return e==null?e:{affirmative_directive:e.affirmativeDirective,classification_schema:e.classificationSchema==null?void 0:e.classificationSchema.map(nq),extraction_directive:e.extractionDirective,negative_directive:e.negativeDirective,relationship_schema:e.relationshipSchema==null?void 0:e.relationshipSchema.map(XF),tag_schema:e.tagSchema==null?void 0:e.tagSchema.map(jF)}}function iq(e){return sq(e)}function sq(e,t){return e==null?e:{config:e.config==null?void 0:oF(e.config),error:e.error==null?void 0:e.error}}function lq(e){return uq(e)}function uq(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,description:e.description==null?void 0:e.description,directiveConfig:e.directive_config==null?void 0:kR(e.directive_config),extractionConfig:e.extraction_config==null?void 0:_R(e.extraction_config),id:e.id==null?void 0:e.id,invalidConfigs:e.invalid_configs==null?void 0:e.invalid_configs.map(iq),memoryCount:e.memory_count==null?void 0:e.memory_count,name:e.name==null?void 0:e.name,searchConfig:e.search_config==null?void 0:CR(e.search_config),status:e.status==null?void 0:iF(e.status),updatedAt:e.updated_at==null?void 0:e.updated_at}}function cq(e){return dq(e,!1)}function dq(e,t=!1){return e==null?e:{new_password:e.newPassword,old_password:e.oldPassword}}function fq(e){return pq(e,!1)}function pq(e,t=!1){return e==null?e:{new_password:e.newPassword}}function hq(e){return mq(e)}function mq(e,t){return e==null?e:{error:e.error==null?void 0:e.error,errorCode:e.error_code==null?void 0:e.error_code,index:e.index==null?void 0:e.index,itemId:e.item_id==null?void 0:e.item_id}}function gq(e){return yq(e)}function yq(e,t){return e==null?e:{redirectUrl:e.redirect_url==null?void 0:e.redirect_url}}function vq(e){return wq(e,!1)}function wq(e,t=!1){return e==null?e:{client_id:e.clientId,grant_type:e.grantType,refresh_token:e.refreshToken}}function xq(e){return Sq(e,!1)}function Sq(e,t=!1){return e==null?e:{client_id:e.clientId,code:e.code,code_verifier:e.codeVerifier,grant_type:e.grantType,redirect_uri:e.redirectUri}}function qw(e){return bq(e)}function bq(e,t){return e==null?e:{accessToken:e.access_token==null?void 0:e.access_token,email:e.email==null?void 0:e.email,expiresIn:e.expires_in==null?void 0:e.expires_in,organizationId:e.organization_id==null?void 0:e.organization_id,refreshToken:e.refresh_token==null?void 0:e.refresh_token,tokenType:e.token_type==null?void 0:e.token_type,userId:e.user_id==null?void 0:e.user_id}}function xi(e){return Rq(e)}function Rq(e,t){return e==null?e:{page:e.page==null?void 0:e.page,pageSize:e.page_size==null?void 0:e.page_size,totalItems:e.total_items==null?void 0:e.total_items,totalPages:e.total_pages==null?void 0:e.total_pages}}function $w(e){return _q(e)}function _q(e,t){return e==null?e:{data:e.data==null?void 0:e.data.map(xR),meta:e.meta==null?void 0:xi(e.meta)}}function Eq(e){return Cq(e)}function Cq(e,t){return e==null?e:{decayFactor:e.decay_factor==null?void 0:e.decay_factor,decayFunction:e.decay_function==null?void 0:e.decay_function,importance:e.importance==null?void 0:e.importance}}function Tq(e){return Pq(e,!1)}function Pq(e,t=!1){return e==null?e:{decay_factor:e.decayFactor,decay_function:e.decayFunction,importance:e.importance}}const D5={User:"user",Agent:"agent",System:"system"};function AR(e){return Oq(e)}function Oq(e,t){return e==null?e:{actorId:e.actor_id==null?void 0:e.actor_id,actorName:e.actor_name==null?void 0:e.actor_name,actorType:e.actor_type==null?void 0:e.actor_type,conversationId:e.conversation_id==null?void 0:e.conversation_id,participantIds:e.participant_ids==null?void 0:e.participant_ids,sourceType:e.source_type==null?void 0:e.source_type}}function IR(e){return kq(e,!1)}function kq(e,t=!1){return e==null?e:{actor_id:e.actorId,actor_name:e.actorName,actor_type:e.actorType,conversation_id:e.conversationId,participant_ids:e.participantIds,source_type:e.sourceType}}function nm(e){return Dq(e)}function Dq(e,t){return e==null?e:{activeFrom:e.active_from==null?void 0:e.active_from,activeTo:e.active_to==null?void 0:e.active_to,appI
186d:e.app_id==null?void 0:e.app_id,content:e.content==null?void 0:e.content,createdAt:e.created_at==null?void 0:e.created_at,id:e.id==null?void 0:e.id,metadata:e.metadata==null?void 0:e.metadata,relativeStanding:e.relative_standing==null?void 0:Eq(e.relative_standing),scope:e.scope==null?void 0:AR(e.scope),updatedAt:e.updated_at==null?void 0:e.updated_at}}function Aq(e){return Iq(e)}function Iq(e,t){return e==null?e:{data:e.data==null?void 0:e.data.map(nm),meta:e.meta==null?void 0:xi(e.meta)}}function Nq(e){return Mq(e)}function Mq(e,t){return e==null?e:{color:e.color==null?void 0:e.color,id:e.id==null?void 0:e.id,memberCount:e.member_count==null?void 0:e.member_count,name:e.name==null?void 0:e.name,plan:e.plan==null?void 0:e.plan,role:e.role==null?void 0:e.role,slug:e.slug==null?void 0:e.slug,status:e.status==null?void 0:e.status}}function Lq(e){return zq(e)}function zq(e,t){return e==null?e:{data:e.data==null?void 0:e.data.map(Nq),meta:e.meta==null?void 0:xi(e.meta)}}function Fq(e){return qq(e)}function qq(e,t){return e==null?e:{llmConnection:e.llm_connection==null?void 0:e.llm_connection}}function $q(e){return Uq(e)}function Uq(e,t){return e==null?e:{contextAwareSearch:e.context_aware_search==null?void 0:e.context_aware_search,deepSearch:e.deep_search==null?void 0:e.deep_search,memoryCreate:e.memory_create==null?void 0:e.memory_create,quickSearch:e.quick_search==null?void 0:e.quick_search}}function NR(e){return Bq(e)}function Bq(e,t){return e==null?e:{memoryCreatePerDay:e.memory_create_per_day==null?void 0:e.memory_create_per_day,memoryCreatePerMinute:e.memory_create_per_minute==null?void 0:e.memory_create_per_minute,memoryCreatePerSecond:e.memory_create_per_second==null?void 0:e.memory_create_per_second,searchPerDay:e.search_per_day==null?void 0:e.search_per_day,searchPerMinute:e.search_per_minute==null?void 0:e.search_per_minute,searchPerSecond:e.search_per_second==null?void 0:e.search_per_second}}function Hq(e){return Wq(e)}function Wq(e,t){return e==null?e:{advancedRerankers:e.advanced_rerankers==null?void 0:e.advanced_rerankers,customExtractionConfig:e.custom_extraction_config==null?void 0:e.custom_extraction_config,graphSearch:e.graph_search==null?void 0:e.graph_search,prioritySupport:e.priority_support==null?void 0:e.priority_support}}function Uw(e){return Jq(e)}function Jq(e,t){return e==null?e:{countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:e.currency,monthlyPricePerMonth:e.monthly_price_per_month==null?void 0:e.monthly_price_per_month,yearlyPricePerMonth:e.yearly_price_per_month==null?void 0:e.yearly_price_per_month}}function MR(e){return Vq(e)}function Vq(e,t){return e==null?e:{maxApiKeys:e.max_api_keys==null?void 0:e.max_api_keys,maxApps:e.max_apps==null?void 0:e.max_apps,maxMembers:e.max_members==null?void 0:e.max_members,maxTeams:e.max_teams==null?void 0:e.max_teams,memoryCredits:e.memory_credits==null?void 0:e.memory_credits,searchCredits:e.search_credits==null?void 0:e.search_credits}}function Hu(e){return Gq(e)}function Gq(e,t){return e==null?e:{amountMinor:e.amount_minor==null?void 0:e.amount_minor,countryPricing:e.country_pricing==null?void 0:$z(e.country_pricing,Uw),createdAt:e.created_at==null?void 0:e.created_at,creditCosts:e.credit_costs==null?void 0:$q(e.credit_costs),currency:e.currency==null?void 0:e.currency,description:e.description==null?void 0:e.description,directives:e.directives==null?void 0:Fq(e.directives),features:e.features==null?void 0:Hq(e.features),id:e.id==null?void 0:e.id,interval:e.interval==null?void 0:e.interval,intervalType:e.interval_type==null?void 0:e.interval_type,isCurrent:e.is_current==null?void 0:e.is_current,isDefault:e.is_default==null?void 0:e.is_default,maxAmountMinor:e.max_amount_minor==null?void 0:e.max_amount_minor,maxCycles:e.max_cycles==null?void 0:e.max_cycles,name:e.name==null?void 0:e.name,planType:e.plan_type==null?void 0:e.plan_type,pricing:e.pricing==null?void 0:Uw(e.pricing),quotas:e.quotas==null?void 0:MR(e.quotas),rateLimits:e.rate_limits==null?void 0:NR(e.rate_limits),slug:e.slug==null?void 0:e.slug,sortOrder:e.sort_order==null?void 0:e.sort_order,updatedAt:e.updated_at==null?void 0:e.updated_at,version:e.version==null?void 0:e.version}}function LR(e){return Kq(e)}function Kq(e,t){return e==null?e:{data:e.data==null?void 0:e.data.map(Hu),meta:e.meta==null?void 0:xi(e.meta)}}function Ru(e){return Yq(e)}function Yq(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,id:e.id==null?void 0:e.id,memberCount:e.member_count==null?void 0:e.member_count,name:e.name==null?void 0:e.name,organizationId:e.organization_id==null?void 0:e.organization_id,updatedAt:e.updated_at==null?void 0:e.updated_at}}function Xq(e){return Qq(e)}function Qq(e,t){return e==null?e:{data:e.data==null?void 0:e.data.map(Ru),meta:e.meta==null?void 0:xi(e.meta)}}function Zq(e){return jq(e)}function jq(e,t){return e}function Zp(e){return e2(e)}function e2(e,t){return e==null?e:{acceptedAt:e.accepted_at==null?void 0:e.accepted_at,cancelledAt:e.cancelled_at==null?void 0:e.cancelled_at,cancelledBy:e.cancelled_by==null?void 0:e.cancelled_by,createdAt:e.created_at==null?void 0:e.created_at,email:e.email==null?void 0:e.email,expiresAt:e.expires_at==null?void 0:e.expires_at,i
186d:e.id==null?void 0:e.id,inviterId:e.inviter_id==null?void 0:e.inviter_id,inviterName:e.inviter_name==null?void 0:e.inviter_name,orgName:e.org_name==null?void 0:e.org_name,organizationId:e.organization_id==null?void 0:e.organization_id,rejectedAt:e.rejected_at==null?void 0:e.rejected_at,role:e.role==null?void 0:Wz(e.role),status:e.status==null?void 0:Zq(e.status),teamId:e.team_id==null?void 0:e.team_id,teamName:e.team_name==null?void 0:e.team_name,token:e.token==null?void 0:e.token}}function t2(e){return n2(e)}function n2(e,t){return e==null?e:{data:e.data==null?void 0:e.data.map(Zp),meta:e.meta==null?void 0:xi(e.meta)}}function r2(e){return o2(e,!1)}function o2(e,t=!1){return e==null?e:{app_id:e.appId,expires_at:e.expiresAt,name:e.name,scopes:e.scopes}}function a2(e){return i2(e)}function i2(e,t){return e==null?e:{apiKey:e.api_key==null?void 0:e.api_key,details:e.details==null?void 0:xR(e.details)}}function s2(e){return l2(e,!1)}function l2(e,t=!1){return e==null?e:{description:e.description,directive_config:DR(e.directiveConfig),extraction_config:ER(e.extractionConfig),id:e.id,name:e.name,search_config:TR(e.searchConfig)}}function Bw(e){return u2(e,!1)}function u2(e,t=!1){return e==null?e:{app_id:e.appId,data_plane_id:e.dataPlaneId}}function c2(e){return d2(e,!1)}function d2(e,t=!1){return e==null?e:{email:e.email,role:e.role,team_id:e.teamId}}function f2(e){return p2(e,!1)}function p2(e,t=!1){return e==null?e:{context_window:e.contextWindow,enable_context:e.enableContext,entity_types:e.entityTypes,fallback_messages:e.fallbackMessages,min_confidence:e.minConfidence,model:e.model}}function h2(e){return m2(e,!1)}function m2(e,t=!1){return e==null?e:{min_importance:e.minImportance,model:e.model,strategy:e.strategy}}function zR(e){return g2(e,!1)}function g2(e,t=!1){return e==null?e:{app_id:e.appId,content:e.content,entity_extraction_overrides:f2(e.entityExtractionOverrides),event_occurred_at:e.eventOccurredAt,fact_extraction_overrides:h2(e.factExtractionOverrides),metadata:e.metadata,persona_extraction_overrides:SR(e.personaExtractionOverrides),relative_standing:Tq(e.relativeStanding),scope:IR(e.scope)}}function Hw(e){return y2(e)}function y2(e,t){return e==null?e:{explicitSkip:e.explicit_skip==null?void 0:e.explicit_skip,factsExtracted:e.facts_extracted==null?void 0:e.facts_extracted,memories:e.memories==null?void 0:e.memories.map(nm),skippedCount:e.skipped_count==null?void 0:e.skipped_count,updatedCount:e.updated_count==null?void 0:e.updated_count}}function v2(e){return w2(e,!1)}function w2(e,t=!1){return e==null?e:{country_code:e.countryCode,name:e.name,slug:e.slug}}function x2(e){return S2(e,!1)}function S2(e,t=!1){return e==null?e:{name:e.name}}function b2(e){return R2(e)}function R2(e,t){return e==null?e:{creditType:e.credit_type==null?void 0:e.credit_type,expiresAt:e.expires_at==null?void 0:e.expires_at,granted:e.granted==null?void 0:e.granted,period:e.period==null?void 0:e.period,remaining:e.remaining==null?void 0:e.remaining,used:e.used==null?void 0:e.used}}function _2(e){return E2(e)}function E2(e,t){return e==null?e:{balances:e.balances==null?void 0:e.balances.map(b2)}}function C2(e){return T2(e)}function T2(e,t){return e==null?e:{granted:e.granted==null?void 0:e.granted,percentage:e.percentage==null?void 0:e.percentage,remaining:e.remaining==null?void 0:e.remaining,type:e.type==null?void 0:e.type,used:e.used==null?void 0:e.used}}function P2(e){return O2(e)}function O2(e,t){return e==null?e:{usages:e.usages==null?void 0:e.usages.map(C2)}}function k2(e){return D2(e)}function D2(e,t){return e==null?e:{cloud:e.cloud==null?void 0:e.cloud,id:e.id==null?void 0:e.id,region:e.region==null?void 0:e.region}}function A2(e){return I2(e)}function I2(e,t){return e==null?e:{name:e.name==null?void 0:e.name,usagePercent:e.usage_percent==null?void 0:e.usage_percent}}function N2(e){return M2(e)}function M2(e,t){return e==null?e:{appsCount:e.apps_count==null?void 0:e.apps_count,keysCount:e.keys_count==null?void 0:e.keys_count,memoriesCount:e.memories_count==null?void 0:e.memories_count,plan:e.plan==null?void 0:A2(e.plan),recentActivity:e.recent_activity==null?void 0:e.recent_activity,searchesCount:e.searches_count==null?void 0:e.searches_count}}function cs(e){return L2(e)}function L2(e,t){return e==null?e:{dataPlaneCloud:e.data_plane_cloud==null?void 0:e.data_plane_cloud,dataPlaneId:e.data_plane_id==null?void 0:e.data_plane_id,dataPlaneRegion:e.data_plane_region==null?void 0:e.data_plane_region,hasPendingDraft:e.has_pending_draft==null?void 0:e.has_pending_draft,response:e.response==null?void 0:lq(e.response),syncStatus:e.sync_status==null?void 0:e.sync_status}}function z2(e){return F2(e,!1)}function F2(e,t=!1){return e==null?e:{data_plane_id:e.dataPlaneId,request:s2(e.request)}}function q2(e){return $2(e)}function $2(e,t){return e==null?e:{affirmativeDirective:e.affirmative_directive==null?void 0:e.affirmative_directive,extractionDirective:e.extraction_directive==null?void 0:e.extraction_directive,negativeDirective:e.negative_directive==null?void 0:e.negative_directive,tagSchema:e.tag_schema==null?void 0:e.tag_schema.map(OR)}}function U2(e){return B2(e)}function B2(e,t){return e==null?e:{description:e.description==null?void 0:e.description,directiveConfig:e.directive_config==null?void 0:kR(e.directive_config),extractionConfig:e.extraction_config==null?void 0:_R(e.extraction_config),name:e.name==null?void 0:e.name,searchConfig:e.search_config==null?void 0:CR(e.search_config)}}function FR(e){return H2(e,!1)}function H2(e,t=!1){return e==null?e:{description:e.description,directive_config:DR(e.directiveConfig),extraction_config:ER(e.extractionConfig),name:e.name,search_config:TR(e.searchConfig)}
186}function ds(e){return W2(e)}function W2(e,t){return e==null?e:{appId:e.app_id==null?void 0:e.app_id,config:e.config==null?void 0:U2(e.config),createdAt:e.created_at==null?void 0:e.created_at,dataPlaneId:e.data_plane_id==null?void 0:e.data_plane_id,id:e.id==null?void 0:e.id,isNewApp:e.is_new_app==null?void 0:e.is_new_app,organizationId:e.organization_id==null?void 0:e.organization_id,updatedAt:e.updated_at==null?void 0:e.updated_at,updatedBy:e.updated_by==null?void 0:e.updated_by,updatedByName:e.updated_by_name==null?void 0:e.updated_by_name,version:e.version==null?void 0:e.version}}function qR(e){return J2(e,!1)}function J2(e,t=!1){return e==null?e:{check_quota:e.checkQuota,check_rate_limit:e.checkRateLimit,track_usage:e.trackUsage}}function $R(e){return V2(e)}function V2(e,t){return e==null?e:{actorId:e.actor_id==null?void 0:e.actor_id,aliases:e.aliases==null?void 0:e.aliases,appId:e.app_id==null?void 0:e.app_id,attributes:e.attributes==null?void 0:e.attributes,createdAt:e.created_at==null?void 0:e.created_at,customType:e.custom_type==null?void 0:e.custom_type,id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,sourceMemoryIds:e.source_memory_ids==null?void 0:e.source_memory_ids,type:e.type==null?void 0:e.type,updatedAt:e.updated_at==null?void 0:e.updated_at}}function G2(e){return K2(e)}function K2(e,t){return e==null?e:{created:e.created==null?void 0:e.created,id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,type:e.type==null?void 0:e.type}}function Y2(e){return X2(e,!1)}function X2(e,t=!1){return e==null?e:{app_description:e.appDescription}}function Q2(e){return Z2(e,!1)}function Z2(e,t=!1){return e==null?e:{app_description:e.appDescription}}function j2(e){return e$(e,!1)}function e$(e,t=!1){return e==null?e:{app_description:e.appDescription}}function t$(e){return n$(e,!1)}function n$(e,t=!1){return e==null?e:{app_id:e.appId,memory_ids:e.memoryIds}}function r$(e){return o$(e)}function o$(e,t){return e==null?e:{created:e.created==null?void 0:e.created,id:e.id==null?void 0:e.id,sourceEntityId:e.source_entity_id==null?void 0:e.source_entity_id,targetEntityId:e.target_entity_id==null?void 0:e.target_entity_id,type:e.type==null?void 0:e.type}}function a$(e){return i$(e)}function i$(e,t){return e==null?e:{entities:e.entities==null?void 0:e.entities.map(G2),memoryId:e.memory_id==null?void 0:e.memory_id,relationships:e.relationships==null?void 0:e.relationships.map(r$)}}function s$(e){return l$(e)}function l$(e,t){return e==null?e:{failedCount:e.failed_count==null?void 0:e.failed_count,newEntities:e.new_entities==null?void 0:e.new_entities,newRelationships:e.new_relationships==null?void 0:e.new_relationships,successfulCount:e.successful_count==null?void 0:e.successful_count,totalEntities:e.total_entities==null?void 0:e.total_entities,totalMemories:e.total_memories==null?void 0:e.total_memories,totalRelationships:e.total_relationships==null?void 0:e.total_relationships}}function u$(e){return c$(e)}function c$(e,t){return e==null?e:{errors:e.errors==null?void 0:e.errors.map(hq),results:e.results==null?void 0:e.results.map(a$),summary:e.summary==null?void 0:s$(e.summary)}}function d$(e){return f$(e)}function f$(e,t){return e==null?e:{count:e.count==null?void 0:e.count,creditsConsumed:e.credits_consumed==null?void 0:e.credits_consumed,operationSubtype:e.operation_subtype==null?void 0:e.operation_subtype,operationType:e.operation_type==null?void 0:e.operation_type,periodHour:e.period_hour==null?void 0:e.period_hour}}function p$(e){return h$(e)}function h$(e,t){return e==null?e:{entries:e.entries==null?void 0:e.entries.map(d$)}}function m$(e){return g$(e,!1)}function g$(e,t=!1){return e==null?e:{enforcement:qR(e.enforcement),request:zR(e.request)}}function y$(e){return v$(e,!1)}function v$(e,t=!1){return e==null?e:{app_id:e.appId,from_time:e.fromTime,graph_depth:e.graphDepth,limit:e.limit,metadata_filter:e.metadataFilter,method:e.method,query:e.query,reranker_type:e.rerankerType,scope:IR(e.scope),speaker_actor_id:e.speakerActorId,to_time:e.toTime,valid_at:e.validAt}}function w$(e){return x$(e,!1)}function x$(e,t=!1){return e==null?e:{enforcement:qR(e.enforcement),request:y$(e.request)}}function S$(e){return b$(e)}function b$(e,t){return e==null?e:{amount:e.amount==null?void 0:e.amount,balanceAfter:e.balance_after==null?void 0:e.balance_after,createdAt:e.created_at==null?void 0:e.created_at,creditType:e.credit_type==null?void 0:e.credit_type,id:e.id==null?void 0:e.id,period:e.period==null?void 0:e.period,reason:e.reason==null?void 0:e.reason,referenceId:e.reference_id==null?void 0:e.reference_id,referenceType:e.reference_type==null?void 0:e.reference_type,source:e.source==null?void 0:e.source}}function R$(e){return _$(e)}function _$(e,t){return e==null?e:{entities:e.entities==null?void 0:e.entities.map($R),limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,totalCount:e.total_count==null?void 0:e.total_count}}function UR(e){return E$(e)}function E$(e,t){return e==null?e:{color:e.color==null?void 0:e.color,name:e.name==null?void 0:e.name,organizationId:e.organization_id==null?void 0:e.organization_id,role:e.role==null?void 0:e.role}}function C$(e){return T$(e)}function T$(e,t){return e==null?e:{orgs:e.orgs==null?void 0:e.orgs.map(UR),selectionToken:e.selection_token==null?void 0:e.selection_token}}function P$(e){return O$(e,!1)}function O$(e,t=!1){return e==null?e:{email:e.email,password:e.password}}function k$(e){return D$(e,!1)}function D$(e,t=!1){return e==null?e:{refresh_token:e.refreshToken}}function BR(e){return A$(e)}function A$(e,t){return e==null?e:{accessToken:e.access_token==null?void 0:e.access_token,email:e.email==null?void 0:e.email,expires
186In:e.expires_in==null?void 0:e.expires_in,isNewUser:e.is_new_user==null?void 0:e.is_new_user,name:e.name==null?void 0:e.name,organizationId:e.organization_id==null?void 0:e.organization_id,orgs:e.orgs==null?void 0:e.orgs.map(UR),refreshToken:e.refresh_token==null?void 0:e.refresh_token,selectionToken:e.selection_token==null?void 0:e.selection_token,tokenType:e.token_type==null?void 0:e.token_type,userId:e.user_id==null?void 0:e.user_id}}function I$(e){return N$(e)}function N$(e,t){return e==null?e:{current:e.current==null?void 0:e.current,limit:e.limit==null?void 0:e.limit,window:e.window==null?void 0:e.window}}function M$(e){return L$(e)}function L$(e,t){return e==null?e:{operation:e.operation==null?void 0:e.operation,windows:e.windows==null?void 0:e.windows.map(I$)}}function Zf(e){return z$(e)}function z$(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,email:e.email==null?void 0:e.email,id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,role:e.role==null?void 0:e.role,userId:e.user_id==null?void 0:e.user_id}}const A5={Owner:"owner",Admin:"admin",Member:"member"};function F$(e){return q$(e,!1)}function q$(e,t=!1){return e==null?e:{role:e.role}}function $$(e){return U$(e)}function U$(e,t){return e==null?e:{description:e.description==null?void 0:e.description,id:e.id==null?void 0:e.id,isExternal:e.is_external==null?void 0:e.is_external,name:e.name==null?void 0:e.name,quotas:e.quotas==null?void 0:MR(e.quotas),rateLimits:e.rate_limits==null?void 0:NR(e.rate_limits),slug:e.slug==null?void 0:e.slug}}function jf(e){return B$(e)}function B$(e,t){return e==null?e:{color:e.color==null?void 0:e.color,createdAt:e.created_at==null?void 0:e.created_at,id:e.id==null?void 0:e.id,logoUrl:e.logo_url==null?void 0:e.logo_url,memberQuota:e.member_quota==null?void 0:e.member_quota,memoryCredits:e.memory_credits==null?void 0:e.memory_credits,name:e.name==null?void 0:e.name,plan:e.plan==null?void 0:$$(e.plan),planId:e.plan_id==null?void 0:e.plan_id,searchCredits:e.search_credits==null?void 0:e.search_credits,slug:e.slug==null?void 0:e.slug,status:e.status==null?void 0:e.status,updatedAt:e.updated_at==null?void 0:e.updated_at}}function H$(e){return W$(e)}function W$(e,t){return e==null?e:{entries:e.entries==null?void 0:e.entries.map(S$),limit:e.limit==null?void 0:e.limit,offset:e.offset==null?void 0:e.offset,total:e.total==null?void 0:e.total}}function J$(e){return V$(e)}function V$(e,t){return e==null?e:{description:e.description,isDefault:e.is_default,name:e.name,traits:e.traits}}function G$(e){return K$(e)}function K$(e,t){return e==null?e:{domains:e.domains==null?void 0:e.domains.map(J$)}}function Y$(e){return X$(e)}function X$(e,t){return e==null?e:{description:e.description==null?void 0:e.description,from:e.from==null?void 0:e.from,queryExpansion:e.query_expansion==null?void 0:e.query_expansion,to:e.to==null?void 0:e.to,type:e.type==null?void 0:e.type}}function Q$(e){return Z$(e)}function Z$(e,t){return e==null?e:{classificationSchema:e.classification_schema==null?void 0:e.classification_schema.map(tm),relationshipSchema:e.relationship_schema==null?void 0:e.relationship_schema.map(Y$)}}function j$(e){return eU(e)}function eU(e,t){return e==null?e:{expiresAt:e.expires_at==null?void 0:e.expires_at,invalidReason:e.invalid_reason==null?void 0:e.invalid_reason,inviterEmail:e.inviter_email==null?void 0:e.inviter_email,inviterName:e.inviter_name==null?void 0:e.inviter_name,orgName:e.org_name==null?void 0:e.org_name,role:e.role==null?void 0:e.role,teamName:e.team_name==null?void 0:e.team_name,valid:e.valid==null?void 0:e.valid}}function tU(e){return nU(e)}function nU(e,t){return e==null?e:{appId:e.app_id==null?void 0:e.app_id,defaultApiKey:e.default_api_key==null?void 0:e.default_api_key}}function rU(e){return oU(e)}function oU(e,t){return e==null?e:{operations:e.operations==null?void 0:e.operations.map(M$)}}function aU(e){return iU(e,!1)}function iU(e,t=!1){return e==null?e:{refresh_token:e.refreshToken}}function sU(e){return lU(e)}function lU(e,t){return e==null?e:{accessToken:e.access_token==null?void 0:e.access_token,expiresIn:e.expires_in==null?void 0:e.expires_in,refreshToken:e.refresh_token==null?void 0:e.refresh_token,tokenType:e.token_type==null?void 0:e.token_type}}function uU(e){return cU(e,!1)}function cU(e,t=!1){return e==null?e:{email:e.email,name:e.name,password:e.password,phone:e.phone}}function dU(e){return fU(e)}function fU(e,t){return e==null?e:{email:e.email==null?void 0:e.email,message:e.message==null?void 0:e.message,name:e.name==null?void 0:e.name,userId:e.user_id==null?void 0:e.user_id}}function pU(e){return hU(e,!1)}function hU(e,t=!1){return e==null?e:{email:e.email}}function mU(e){return gU(e,!1)}function gU(e,t=!1){return e==null?e:{new_password:e.newPassword,token:e.token}}function yU(e){return vU(e,!1)}function vU(e,t=!1){return e==null?e:{email:e.email}}function wU(e){return xU(e,!1)}function xU(e,t=!1){return e==null?e:{config:FR(e.config),data_plane_id:e.dataPlaneId,version:e.version}}function SU(e){return bU(e)}function bU(e,t){return e==null?e:{entityTypes:e.entity_types==null?void 0:e.entity_types.map(tm),relationshipTypes:e.relationship_types==null?void 0:e.relationship_types.map(PR)}}function RU(e){return _U(e)}function _U(e,t){return e==null?e:{durationMs:e.duration_ms==null?void 0:e.duration_ms,error:e.error==null?void 0:e.error,input:e.input==null?void 0:e.input,output:e.output==null?void 0:e.output,resultCount:e.result_count==null?void 0:e.result_count,stepName:e.step_name==null?void 0:e.step_name}}function EU(e){return CU(e)}function CU(e,t){return e==null?e:{durationMs:e.duration_ms==null?void 0:e.duration_ms,error:e.error==null?void 0:e.error,input:e.input==null?void 0:e.input,output:e.output==null?void 0:e.output,resultCount:e.result_count==null?void 0:e.result_count,stageName:e.stage_name==null?void 0:e.stage_name,steps:e.steps==null?void 0:e.steps.map(RU)}}function TU(e){return PU(e)}function PU(e,t){return e==null?e:{stages:e.stages==null?void 0:e.stages.map(EU),totalMs:e.total_ms==null?void 0:e.total_ms}}function OU(e){return kU(e)}function kU(e,t){return e==null?e:{topNDefault:e.top_n_default==null?void 0:e.top_n_default,topNMax:e.top_n_max==null?void 0:e.top_n_max,topNMin:e.top_n_min==null?void 0:e.top_n_min}}function DU(e){return AU(e)}function AU(e,t){return e==null?e:{activeFrom:e.active_from==null?void 0:e.active_from,activeTo:e.active_to==null?void 0:e.active_to,content:e.content==null?void 0:e.content,id:e.id==null?void 0:e.id,metadata:e.metadata==null?void 0:e.metadata,scope:e.scope==null?void 0:AR(e.scope)}}function IU(e){return NU(e)}function NU(e,t){return e==null?e:{memory:e.memory==null?void 0:DU(e.memory),score:e.score==null?void 0:e.score}}function MU(e){return LU(e)}function LU(e,t){return e==null?e:{explainTrace:e.explain_trace==null?void 0:TU(e.explain_trace),memories:e.memories==null?void 0:e.memories.map(IU)}}function zU(e){return FU(e,!1)}function FU(e,t=!1){return e==null?e:{organization_id:e.organizationId,selection_token:e.selectionToken}}function qU(e){return $U(e,!1)}function $U(e,t=!1){return e==null?e:{organization_id:e.organizationId}}function Ww(e){return UU(e)}function UU(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,email:e.email==null?void 0:e.email,id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,organizationId:e.organization_id==null?void 0:e.organization_id,role:e.role==null?void 0:e.role,teamId:e.team_id==null?void 0:e.team_id,userId:e.user_id==null?void 0:e.user_id}}const I5={Owner:"owner",Admin:"admin",Member:"member",Viewer:"viewer"};function BU(e){return HU(e,!1)}function HU(e,t=!1){return e==null?e:{role:e.role}}function Jw(e){return WU(e)}function WU(e,t){return e==null?e:{accessToken:e.access_token==null?void 0:e.access_token,email:e.email==null?void 0:e.email,expires
186In:e.expires_in==null?void 0:e.expires_in,name:e.name==null?void 0:e.name,organizationId:e.organization_id==null?void 0:e.organization_id,refreshToken:e.refresh_token==null?void 0:e.refresh_token,tokenType:e.token_type==null?void 0:e.token_type,userId:e.user_id==null?void 0:e.user_id}}function JU(e){return VU(e)}function VU(e,t){return e==null?e:{canUnlink:e.can_unlink==null?void 0:e.can_unlink,reason:e.reason==null?void 0:e.reason}}function GU(e){return KU(e,!1)}function KU(e,t=!1){return e==null?e:{logo_url:e.logoUrl,name:e.name}}function YU(e){return XU(e,!1)}function XU(e,t=!1){return e==null?e:{avatar_url:e.avatarUrl,name:e.name}}function QU(e){return ZU(e,!1)}function ZU(e,t=!1){return e==null?e:{name:e.name}}function ep(e){return jU(e)}function jU(e,t){return e==null?e:{avatarUrl:e.avatar_url==null?void 0:e.avatar_url,createdAt:e.created_at==null?void 0:e.created_at,email:e.email==null?void 0:e.email,id:e.id==null?void 0:e.id,isOnboarded:e.is_onboarded==null?void 0:e.is_onboarded,name:e.name==null?void 0:e.name,phone:e.phone==null?void 0:e.phone,status:e.status==null?void 0:e.status,verified:e.verified==null?void 0:e.verified}}class e3 extends hi{async adminOAuthCallbackRequestOpts(t){if(t.code==null)throw new te("code",'Required parameter "code" was null or undefined when calling adminOAuthCallback().');if(t.state==null)throw new te("state",'Required parameter "state" was null or undefined when calling adminOAuthCallback().');const n={};return t.code!=null&&(n.code=t.code),t.state!=null&&(n.state=t.state),{path:"/api/v1/admin/auth/oauth/google/callback",method:"GET",headers:{},query:n}}async adminOAuthCallbackRaw(t,n){const o=await this.adminOAuthCallbackRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>BR(s))}async adminOAuthCallback(t,n){return await(await this.adminOAuthCallbackRaw(t,n)).value()}async adminOAuthLoginRequestOpts(t){if(t.state==null)throw new te("state",'Required parameter "state" was null or undefined when calling adminOAuthLogin().');const n={};return t.state!=null&&(n.state=t.state),{path:"/api/v1/admin/auth/oauth/google/login",method:"GET",headers:{},query:n}}async adminOAuthLoginRaw(t,n){const o=await this.adminOAuthLoginRequestOpts(t),i=await this.request(o,n);return new An(i)}async adminOAuthLogin(t,n){await this.adminOAuthLoginRaw(t,n)}}class gn extends hi{async changePasswordRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling changePassword().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/password/change",method:"POST",headers:o,query:n,body:cq(t.request)}}async changePasswordRaw(t,n){const o=await this.changePasswordRequestOpts(t),i=await this.request(o,n);return new ve(i)}async changePassword(t,n){return await(await this.changePasswordRaw(t,n)).value()}async cliAuthorizeRequestOpts(t){if(t.clientId==null)throw new te("clientId",'Required parameter "clientId" was null or undefined when calling cliAuthorize().');if(t.redirectUri==null)throw new te("redirectUri",'Required parameter "redirectUri" was null or undefined when calling cliAuthorize().');if(t.responseType==null)throw new te("responseType",'Required parameter "responseType" was null or undefined when calling cliAuthorize().');if(t.state==null)throw new te("state",'Required parameter "state" was null or undefined when calling cliAuthorize().');if(t.codeChallenge==null)throw new te("codeChallenge",'Required parameter "codeChallenge" was null or undefined when calling cliAuthorize().');if(t.codeChallengeMethod==null)throw new te("codeChallengeMethod",'Required parameter "codeChallengeMethod" was null or undefined when calling cliAuthorize().');const n={};return t.clientId!=null&&(n.client_id=t.clientId),t.redirectUri!=null&&(n.redirect_uri=t.redirectUri),t.responseType!=null&&(n.response_type=t.responseType),t.state!=null&&(n.state=t.state),t.codeChallenge!=null&&(n.code_challenge=t.codeChallenge),t.codeChallengeMethod!=null&&(n.code_challenge_method=t.codeChallengeMethod),{path:"/api/v1/cli/authorize",method:"GET",headers:{},query:n}}async cliAuthorizeRaw(t,n){const o=await this.cliAuthorizeRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>gq(s))}async cliAuthorize(t,n){return await(await this.cliAuthorizeRaw(t,n)).value(
186)}async cliTokenExchangeRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling cliTokenExchange().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/cli/token",method:"POST",headers:o,query:n,body:xq(t.request)}}async cliTokenExchangeRaw(t,n){const o=await this.cliTokenExchangeRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>qw(s))}async cliTokenExchange(t,n){return await(await this.cliTokenExchangeRaw(t,n)).value()}async cliTokenRefreshRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling cliTokenRefresh().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/cli/token/refresh",method:"POST",headers:o,query:n,body:vq(t.request)}}async cliTokenRefreshRaw(t,n){const o=await this.cliTokenRefreshRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>qw(s))}async cliTokenRefresh(t,n){return await(await this.cliTokenRefreshRaw(t,n)).value()}async loginUserRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling loginUser().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/login",method:"POST",headers:o,query:n,body:P$(t.request)}}async loginUserRaw(t,n){const o=await this.loginUserRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>C$(s))}async loginUser(t,n){return await(await this.loginUserRaw(t,n)).value()}async logoutUserRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling logoutUser().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/logout",method:"POST",headers:o,query:n,body:k$(t.request)}}async logoutUserRaw(t,n){const o=await this.logoutUserRequestOpts(t),i=await this.request(o,n);return new An(i)}async logoutUser(t,n){await this.logoutUserRaw(t,n)}async oauthCallbackRequestOpts(t){if(t.provider==null)throw new te("provider",'Required parameter "provider" was null or undefined when calling oauthCallback().');if(t.code==null)throw new te("code",'Required parameter "code" was null or undefined when calling oauthCallback().');if(t.state==null)throw new te("state",'Required parameter "state" was null or undefined when calling oauthCallback().');const n={};t.code!=null&&(n.code=t.code),t.state!=null&&(n.state=t.state);const o={};let i="/api/v1/auth/oauth/{provider}/callback";return i=i.replace("{provider}",encodeURIComponent(String(t.provider))),{path:i,method:"GET",headers:o,query:n}}async oauthCallbackRaw(t,n){const o=await this.oauthCallbackRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>BR(s))}async oauthCallback(t,n){return await(await this.oauthCallbackRaw(t,n)).value()}async oauthLinkRequestOpts(t){if(t.provider==null)throw new te("provider",'Required parameter "provider" was null or undefined when calling oauthLink().');if(t.code==null)throw new te("code",'Required parameter "code" was null or undefined when calling oauthLink().');if(t.state==null)throw new te("state",'Required parameter "state" was null or undefined when calling oauthLink().');const n={};t.code!=null&&(n.code=t.code),t.state!=null&&(n.state=t.state);const o={};let i="/api/v1/auth/oauth/{provider}/link";return i=i.replace("{provider}",encodeURIComponent(String(t.provider))),{path:i,method:"POST",headers:o,query:n}}async oauthLinkRaw(t,n){const o=await this.oauthLinkRequestOpts(t),i=await this.request(o,n);return new ve(i)}async oauthLink(t,n){return await(await this.oauthLinkRaw(t,n)).value()}async oauthLoginRequestOpts(t){if(t.provider==null)throw new te("provider",'Required parameter "provider" was null or undefined when calling oauthLogin().');if(t.state==null)throw new te("state",'Required parameter "state" was null or undefined when calling oauthLogin().');const n={};t.state!=null&&(n.state=t.state);const o={};let i="/api/v1/auth/oauth/{provider}/login";return i=i.replace("{provider}",encodeURIComponent(String(t.provider))),{path:i,method:"GET",headers:o,query:n}}async oauthLoginRaw(t,n){const o=await this.oauthLoginRequestOpts(t),i=await this.request(o,n);return new An(i)}async oauthLogin(t,n){await this.oauthLoginRaw(t,n)}async oauthUnlinkRequestOpts(t){if(t.provider==null)throw new te("provider",'Required parameter "provider" was null or undefined when calling oauthUnlink().');const n={},o={};let i="/api/v1/auth/oauth/{provider}/unlink";return i=i.replace("{provider}",encodeURIComponent(String(t.provider))),{path:i,method:"DELETE",headers:o,query:n}}async oauthUnlinkRaw(t,n){const o=await this.oauthUnlinkRequestOpts(t),i=await this.request(o,n);return new ve(i)}async oauthUnlink(t,n){return await(await this.oauthUnlinkRaw(t,n)).value(
186)}async oauthValidateUnlinkRequestOpts(t){if(t.provider==null)throw new te("provider",'Required parameter "provider" was null or undefined when calling oauthValidateUnlink().');const n={},o={};let i="/api/v1/auth/oauth/{provider}/validate-unlink";return i=i.replace("{provider}",encodeURIComponent(String(t.provider))),{path:i,method:"GET",headers:o,query:n}}async oauthValidateUnlinkRaw(t,n){const o=await this.oauthValidateUnlinkRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>JU(s))}async oauthValidateUnlink(t,n){return await(await this.oauthValidateUnlinkRaw(t,n)).value()}async refreshTokenRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling refreshToken().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/refresh",method:"POST",headers:o,query:n,body:aU(t.request)}}async refreshTokenRaw(t,n){const o=await this.refreshTokenRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>sU(s))}async refreshToken(t,n){return await(await this.refreshTokenRaw(t,n)).value()}async registerUserRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling registerUser().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/register",method:"POST",headers:o,query:n,body:uU(t.request)}}async registerUserRaw(t,n){const o=await this.registerUserRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>dU(s))}async registerUser(t,n){return await(await this.registerUserRaw(t,n)).value()}async requestPasswordResetRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling requestPasswordReset().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/password/reset-request",method:"POST",headers:o,query:n,body:yU(t.request)}}async requestPasswordResetRaw(t,n){const o=await this.requestPasswordResetRequestOpts(t),i=await this.request(o,n);return new ve(i)}async requestPasswordReset(t,n){return await(await this.requestPasswordResetRaw(t,n)).value()}async resendVerificationRequestOpts(){return{path:"/api/v1/auth/resend-verification-authenticated",method:"POST",headers:{},query:{}}}async resendVerificationRaw(t){const n=await this.resendVerificationRequestOpts(),o=await this.request(n,t);return new ve(o)}async resendVerification(t){return await(await this.resendVerificationRaw(t)).value()}async resendVerificationByEmailRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling resendVerificationByEmail().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/resend-verification",method:"POST",headers:o,query:n,body:pU(t.request)}}async resendVerificationByEmailRaw(t,n){const o=await this.resendVerificationByEmailRequestOpts(t),i=await this.request(o,n);return new ve(i)}async resendVerificationByEmail(t,n){return await(await this.resendVerificationByEmailRaw(t,n)).value()}async resetPasswordRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling resetPassword().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/password/reset",method:"POST",headers:o,query:n,body:mU(t.request)}}async resetPasswordRaw(t,n){const o=await this.resetPasswordRequestOpts(t),i=await this.request(o,n);return new ve(i)}async resetPassword(t,n){return await(await this.resetPasswordRaw(t,n)).value()}async selectOrgRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling selectOrg().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/login/select-org",method:"POST",headers:o,query:n,body:zU(t.request)}}async selectOrgRaw(t,n){const o=await this.selectOrgRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Jw(s))}async selectOrg(t,n){return await(await this.selectOrgRaw(t,n)).value()}async setPasswordRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling setPassword().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/password/set",method:"POST",headers:o,query:n,body:fq(t.request)}}async setPasswordRaw(t,n){const o=await this.setPasswordRequestOpts(t),i=await this.request(o,n);return new ve(i)}async setPassword(t,n){return await(await this.setPasswordRaw(t,n)).value(
186)}async switchOrgRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling switchOrg().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/auth/switch-org",method:"POST",headers:o,query:n,body:qU(t.request)}}async switchOrgRaw(t,n){const o=await this.switchOrgRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Jw(s))}async switchOrg(t,n){return await(await this.switchOrgRaw(t,n)).value()}async verifyEmailRequestOpts(t){if(t.token==null)throw new te("token",'Required parameter "token" was null or undefined when calling verifyEmail().');const n={};return t.token!=null&&(n.token=t.token),{path:"/api/v1/auth/verify-email",method:"GET",headers:{},query:n}}async verifyEmailRaw(t,n){const o=await this.verifyEmailRequestOpts(t),i=await this.request(o,n);return new ve(i)}async verifyEmail(t,n){return await(await this.verifyEmailRaw(t,n)).value()}}class Si extends hi{async acceptInvitationRequestOpts(t){if(t.token==null)throw new te("token",'Required parameter "token" was null or undefined when calling acceptInvitation().');const n={},o={};let i="/api/v1/dashboard/invitations/{token}/accept";return i=i.replace("{token}",encodeURIComponent(String(t.token))),{path:i,method:"POST",headers:o,query:n}}async acceptInvitationRaw(t,n){const o=await this.acceptInvitationRequestOpts(t),i=await this.request(o,n);return new ve(i)}async acceptInvitation(t,n){return await(await this.acceptInvitationRaw(t,n)).value()}async addOrganizationMemberRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling addOrganizationMember().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling addOrganizationMember().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/organizations/{id}/members";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"POST",headers:o,query:n,body:Bz(t.request)}}async addOrganizationMemberRaw(t,n){const o=await this.addOrganizationMemberRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Zf(s))}async addOrganizationMember(t,n){return await(await this.addOrganizationMemberRaw(t,n)).value()}async addTeamMemberRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling addTeamMember().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling addTeamMember().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/teams/{id}/members";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"POST",headers:o,query:n,body:Vz(t.request)}}async addTeamMemberRaw(t,n){const o=await this.addTeamMemberRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Ww(s))}async addTeamMember(t,n){return await(await this.addTeamMemberRaw(t,n)).value()}async backfillMemoriesRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling backfillMemories().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/dashboard/graph/backfill/memories",method:"POST",headers:o,query:n,body:t$(t.request)}}async backfillMemoriesRaw(t,n){const o=await this.backfillMemoriesRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>u$(s))}async backfillMemories(t,n){return await(await this.backfillMemoriesRaw(t,n)).value()}async cancelInvitationRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling cancelInvitation().');const n={},o={};let i="/api/v1/dashboard/invitations/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"DELETE",headers:o,query:n}}async cancelInvitationRaw(t,n){const o=await this.cancelInvitationRequestOpts(t),i=await this.request(o,n);return new ve(i)}async cancelInvitation(t,n){return await(await this.cancelInvitationRaw(t,n)).value()}async createApiKeyRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling createApiKey().');
186if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling createApiKey().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/organizations/{orgId}/api-keys";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"POST",headers:o,query:n,body:r2(t.request)}}async createApiKeyRaw(t,n){const o=await this.createApiKeyRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>a2(s))}async createApiKey(t,n){return await(await this.createApiKeyRaw(t,n)).value()}async createAppConfigDraftRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling createAppConfigDraft().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/dashboard/app-config-drafts",method:"POST",headers:o,query:n,body:Bw(t.request)}}async createAppConfigDraftRaw(t,n){const o=await this.createAppConfigDraftRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>ds(s))}async createAppConfigDraft(t,n){return await(await this.createAppConfigDraftRaw(t,n)).value()}async createAppConfigDraftForAppRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling createAppConfigDraftForApp().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling createAppConfigDraftForApp().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/apps/{app_id}/config-draft";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"POST",headers:o,query:n,body:Bw(t.request)}}async createAppConfigDraftForAppRaw(t,n){const o=await this.createAppConfigDraftForAppRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>ds(s))}async createAppConfigDraftForApp(t,n){return await(await this.createAppConfigDraftForAppRaw(t,n)).value()}async createDashboardAppRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling createDashboardApp().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/dashboard/apps",method:"POST",headers:o,query:n,body:z2(t.request)}}async createDashboardAppRaw(t,n){const o=await this.createDashboardAppRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>cs(s))}async createDashboardApp(t,n){return await(await this.createDashboardAppRaw(t,n)).value()}async createInvitationRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling createInvitation().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling createInvitation().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/teams/{id}/invitations";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"POST",headers:o,query:n,body:c2(t.request)}}async createInvitationRaw(t,n){const o=await this.createInvitationRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Zp(s))}async createInvitation(t,n){return await(await this.createInvitationRaw(t,n)).value()}async createOrganizationRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling createOrganization().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/dashboard/organizations",method:"POST",headers:o,query:n,body:v2(t.request)}}async createOrganizationRaw(t,n){const o=await this.createOrganizationRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>jf(s))}async createOrganization(t,n){return await(await this.createOrganizationRaw(t,n)).value()}async createTeamRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling createTeam().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling createTeam().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/organizations/{orgId}/teams";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"POST",headers:o,query:n,body:x2(t.request)}}async createTeamRaw(t,n){const o=await this.createTeamRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Ru(s))}async createTeam(t,n){return await(await this.createTeamRaw(t,n)).value(
186)}async dashboardCreateMemoryRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling dashboardCreateMemory().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/dashboard/memories",method:"POST",headers:o,query:n,body:zR(t.request)}}async dashboardCreateMemoryRaw(t,n){const o=await this.dashboardCreateMemoryRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Hw(s))}async dashboardCreateMemory(t,n){return await(await this.dashboardCreateMemoryRaw(t,n)).value()}async dashboardDeleteMemoryRequestOpts(t){if(t.memoryId==null)throw new te("memoryId",'Required parameter "memoryId" was null or undefined when calling dashboardDeleteMemory().');if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling dashboardDeleteMemory().');const n={},o={};let i="/api/v1/dashboard/apps/{app_id}/memories/{memory_id}";return i=i.replace("{memory_id}",encodeURIComponent(String(t.memoryId))),i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"DELETE",headers:o,query:n}}async dashboardDeleteMemoryRaw(t,n){const o=await this.dashboardDeleteMemoryRequestOpts(t),i=await this.request(o,n);return new An(i)}async dashboardDeleteMemory(t,n){await this.dashboardDeleteMemoryRaw(t,n)}async dashboardGetEntityRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling dashboardGetEntity().');if(t.entityId==null)throw new te("entityId",'Required parameter "entityId" was null or undefined when calling dashboardGetEntity().');const n={},o={};let i="/api/v1/dashboard/apps/{app_id}/graph/entities/{entity_id}";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),i=i.replace("{entity_id}",encodeURIComponent(String(t.entityId))),{path:i,method:"GET",headers:o,query:n}}async dashboardGetEntityRaw(t,n){const o=await this.dashboardGetEntityRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>$R(s))}async dashboardGetEntity(t,n){return await(await this.dashboardGetEntityRaw(t,n)).value()}async dashboardGetMemoryRequestOpts(t){if(t.memoryId==null)throw new te("memoryId",'Required parameter "memoryId" was null or undefined when calling dashboardGetMemory().');if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling dashboardGetMemory().');const n={},o={};let i="/api/v1/dashboard/apps/{app_id}/memories/{memory_id}";return i=i.replace("{memory_id}",encodeURIComponent(String(t.memoryId))),i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"GET",headers:o,query:n}}async dashboardGetMemoryRaw(t,n){const o=await this.dashboardGetMemoryRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>nm(s))}async dashboardGetMemory(t,n){return await(await this.dashboardGetMemoryRaw(t,n)).value()}async dashboardListEntitiesRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling dashboardListEntities().');const n={};t.type!=null&&(n.type=t.type),t.limit!=null&&(n.limit=t.limit),t.offset!=null&&(n.offset=t.offset);const o={};let i="/api/v1/dashboard/apps/{app_id}/graph/entities";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"GET",headers:o,query:n}}async dashboardListEntitiesRaw(t,n){const o=await this.dashboardListEntitiesRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>R$(s))}async dashboardListEntities(t,n){return await(await this.dashboardListEntitiesRaw(t,n)).value()}async dashboardListMemoriesRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling dashboardListMemories().');const n={};t.page!=null&&(n.page=t.page),t.pageSize!=null&&(n.page_size=t.pageSize),t.actorId!=null&&(n.actor_id=t.actorId);const o={};let i="/api/v1/dashboard/apps/{app_id}/memories";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"GET",headers:o,query:n}}async dashboardListMemoriesRaw(t,n){const o=await this.dashboardListMemoriesRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Aq(s))}async dashboardListMemories(t,n){return await(await this.dashboardListMemoriesRaw(t,n)).value(
186)}async dashboardProxyCreateMemoryRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling dashboardProxyCreateMemory().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/dashboard/sdk/memories",method:"POST",headers:o,query:n,body:m$(t.request)}}async dashboardProxyCreateMemoryRaw(t,n){const o=await this.dashboardProxyCreateMemoryRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Hw(s))}async dashboardProxyCreateMemory(t,n){return await(await this.dashboardProxyCreateMemoryRaw(t,n)).value()}async dashboardProxySearchMemoriesRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling dashboardProxySearchMemories().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/dashboard/sdk/memories/search",method:"POST",headers:o,query:n,body:w$(t.request)}}async dashboardProxySearchMemoriesRaw(t,n){const o=await this.dashboardProxySearchMemoriesRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>MU(s))}async dashboardProxySearchMemories(t,n){return await(await this.dashboardProxySearchMemoriesRaw(t,n)).value()}async deleteAppRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling deleteApp().');const n={},o={};let i="/api/v1/dashboard/apps/{app_id}";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"DELETE",headers:o,query:n}}async deleteAppRaw(t,n){const o=await this.deleteAppRequestOpts(t),i=await this.request(o,n);return new An(i)}async deleteApp(t,n){await this.deleteAppRaw(t,n)}async deleteAppAIConfigRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling deleteAppAIConfig().');const n={},o={};let i="/api/v1/dashboard/apps/{app_id}/ai-config";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"DELETE",headers:o,query:n}}async deleteAppAIConfigRaw(t,n){const o=await this.deleteAppAIConfigRequestOpts(t),i=await this.request(o,n);return new An(i)}async deleteAppAIConfig(t,n){await this.deleteAppAIConfigRaw(t,n)}async deleteOrganizationRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling deleteOrganization().');const n={},o={};let i="/api/v1/dashboard/organizations/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"DELETE",headers:o,query:n}}async deleteOrganizationRaw(t,n){const o=await this.deleteOrganizationRequestOpts(t),i=await this.request(o,n);return new An(i)}async deleteOrganization(t,n){await this.deleteOrganizationRaw(t,n)}async deleteTeamRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling deleteTeam().');const n={},o={};let i="/api/v1/dashboard/teams/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"DELETE",headers:o,query:n}}async deleteTeamRaw(t,n){const o=await this.deleteTeamRequestOpts(t),i=await this.request(o,n);return new An(i)}async deleteTeam(t,n){await this.deleteTeamRaw(t,n)}async disableOrganizationRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling disableOrganization().');const n={},o={};let i="/api/v1/dashboard/organizations/{id}/disable";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"POST",headers:o,query:n}}async disableOrganizationRaw(t,n){const o=await this.disableOrganizationRequestOpts(t),i=await this.request(o,n);return new An(i)}async disableOrganization(t,n){await this.disableOrganizationRaw(t,n)}async discardAppConfigDraftRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling discardAppConfigDraft().');const n={},o={};let i="/api/v1/dashboard/app-config-drafts/{app_id}";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"DELETE",headers:o,query:n}}async discardAppConfigDraftRaw(t,n){const o=await this.discardAppConfigDraftRequestOpts(t),i=await this.request(o,n);return new An(i)}async discardAppConfigDraft(t,n){await this.discardAppConfigDraftRaw(t,n)}async enableOrganizationRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling enableOrganization().');const n={},o={};let i="/api/v1/dashboard/organizations/{id}
186/enable";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"POST",headers:o,query:n}}async enableOrganizationRaw(t,n){const o=await this.enableOrganizationRequestOpts(t),i=await this.request(o,n);return new An(i)}async enableOrganization(t,n){await this.enableOrganizationRaw(t,n)}async generateDirectivesRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling generateDirectives().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling generateDirectives().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/apps/{app_id}/config-gen/directives";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"POST",headers:o,query:n,body:Y2(t.request)}}async generateDirectivesRaw(t,n){const o=await this.generateDirectivesRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>q2(s))}async generateDirectives(t,n){return await(await this.generateDirectivesRaw(t,n)).value()}async generateDomainSchemaRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling generateDomainSchema().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling generateDomainSchema().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/apps/{app_id}/config-gen/domain-schema";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"POST",headers:o,query:n,body:Q2(t.request)}}async generateDomainSchemaRaw(t,n){const o=await this.generateDomainSchemaRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Q$(s))}async generateDomainSchema(t,n){return await(await this.generateDomainSchemaRaw(t,n)).value()}async generatePersonaSchemaRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling generatePersonaSchema().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling generatePersonaSchema().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/apps/{app_id}/config-gen/persona-schema";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"POST",headers:o,query:n,body:j2(t.request)}}async generatePersonaSchemaRaw(t,n){const o=await this.generatePersonaSchemaRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>G$(s))}async generatePersonaSchema(t,n){return await(await this.generatePersonaSchemaRaw(t,n)).value()}async getAppRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling getApp().');const n={},o={};let i="/api/v1/dashboard/apps/{app_id}";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"GET",headers:o,query:n}}async getAppRaw(t,n){const o=await this.getAppRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>cs(s))}async getApp(t,n){return await(await this.getAppRaw(t,n)).value()}async getAppAIConfigRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling getAppAIConfig().');const n={},o={};let i="/api/v1/dashboard/apps/{app_id}/ai-config";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"GET",headers:o,query:n}}async getAppAIConfigRaw(t,n){const o=await this.getAppAIConfigRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Fw(s))}async getAppAIConfig(t,n){return await(await this.getAppAIConfigRaw(t,n)).value()}async getAppConfigDraftRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling getAppConfigDraft().');const n={},o={};let i="/api/v1/dashboard/app-config-drafts/{app_id}";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"GET",headers:o,query:n}}async getAppConfigDraftRaw(t,n){const o=await this.getAppConfigDraftRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>ds(s))}async getAppConfigDraft(t,n){return await(await this.getAppConfigDraftRaw(t,n)).value(
186)}async getCreditBalancesRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling getCreditBalances().');const n={},o={};let i="/api/v1/dashboard/credit-balances";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"GET",headers:o,query:n}}async getCreditBalancesRaw(t,n){const o=await this.getCreditBalancesRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>_2(s))}async getCreditBalances(t,n){return await(await this.getCreditBalancesRaw(t,n)).value()}async getCreditLedgerRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling getCreditLedger().');const n={};t.limit!=null&&(n.limit=t.limit),t.offset!=null&&(n.offset=t.offset);const o={};let i="/api/v1/dashboard/credit-ledger";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"GET",headers:o,query:n}}async getCreditLedgerRaw(t,n){const o=await this.getCreditLedgerRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>H$(s))}async getCreditLedger(t,n){return await(await this.getCreditLedgerRaw(t,n)).value()}async getCurrentUsageRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling getCurrentUsage().');const n={},o={};let i="/api/v1/dashboard/organizations/{orgId}/usage/current";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"GET",headers:o,query:n}}async getCurrentUsageRaw(t,n){const o=await this.getCurrentUsageRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>P2(s))}async getCurrentUsage(t,n){return await(await this.getCurrentUsageRaw(t,n)).value()}async getDashboardSummaryRequestOpts(){return{path:"/api/v1/dashboard/summary",method:"GET",headers:{},query:{}}}async getDashboardSummaryRaw(t){const n=await this.getDashboardSummaryRequestOpts(),o=await this.request(n,t);return new ve(o,i=>N2(i))}async getDashboardSummary(t){return await(await this.getDashboardSummaryRaw(t)).value()}async getDefaultPlanRequestOpts(){return{path:"/api/v1/dashboard/plans/default",method:"GET",headers:{},query:{}}}async getDefaultPlanRaw(t){const n=await this.getDefaultPlanRequestOpts(),o=await this.request(n,t);return new ve(o,i=>Hu(i))}async getDefaultPlan(t){return await(await this.getDefaultPlanRaw(t)).value()}async getHourlyUsageRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling getHourlyUsage().');if(t.from==null)throw new te("from",'Required parameter "from" was null or undefined when calling getHourlyUsage().');if(t.to==null)throw new te("to",'Required parameter "to" was null or undefined when calling getHourlyUsage().');const n={};t.from!=null&&(n.from=t.from),t.to!=null&&(n.to=t.to);const o={};let i="/api/v1/dashboard/hourly-usage";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"GET",headers:o,query:n}}async getHourlyUsageRaw(t,n){const o=await this.getHourlyUsageRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>p$(s))}async getHourlyUsage(t,n){return await(await this.getHourlyUsageRaw(t,n)).value()}async getOrganizationRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling getOrganization().');const n={},o={};let i="/api/v1/dashboard/organizations/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"GET",headers:o,query:n}}async getOrganizationRaw(t,n){const o=await this.getOrganizationRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>jf(s))}async getOrganization(t,n){return await(await this.getOrganizationRaw(t,n)).value()}async getPlanRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling getPlan().');const n={},o={};let i="/api/v1/dashboard/plans/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"GET",headers:o,query:n}}async getPlanRaw(t,n){const o=await this.getPlanRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Hu(s))}async getPlan(t,n){return await(await this.getPlanRaw(t,n)).value(
186)}async getProfileRequestOpts(){return{path:"/api/v1/dashboard/users/me",method:"GET",headers:{},query:{}}}async getProfileRaw(t){const n=await this.getProfileRequestOpts(),o=await this.request(n,t);return new ve(o,i=>ep(i))}async getProfile(t){return await(await this.getProfileRaw(t)).value()}async getPublicInfoRequestOpts(t){if(t.token==null)throw new te("token",'Required parameter "token" was null or undefined when calling getPublicInfo().');const n={},o={};let i="/api/v1/dashboard/invitations/{token}/info";return i=i.replace("{token}",encodeURIComponent(String(t.token))),{path:i,method:"GET",headers:o,query:n}}async getPublicInfoRaw(t,n){const o=await this.getPublicInfoRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>j$(s))}async getPublicInfo(t,n){return await(await this.getPublicInfoRaw(t,n)).value()}async getRateLimitStatusRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling getRateLimitStatus().');const n={},o={};let i="/api/v1/dashboard/organizations/{orgId}/usage/rate-limits";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"GET",headers:o,query:n}}async getRateLimitStatusRaw(t,n){const o=await this.getRateLimitStatusRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>rU(s))}async getRateLimitStatus(t,n){return await(await this.getRateLimitStatusRaw(t,n)).value()}async getSchemaDefaultsRequestOpts(){return{path:"/api/v1/dashboard/defaults/schema",method:"GET",headers:{},query:{}}}
186async getSchemaDefaultsRaw(t){const n=await this.getSchemaDefaultsRequestOpts(),o=await this.request(n,t);return new ve(o,i=>SU(i))}async getSchemaDefaults(t){return await(await this.getSchemaDefaultsRaw(t)).value()}async getSearchLimitsRequestOpts(){return{path:"/api/v1/dashboard/defaults/search-limits",method:"GET",headers:{},query:{}}}async getSearchLimitsRaw(t){const n=await this.getSearchLimitsRequestOpts(),o=await this.request(n,t);return new ve(o,i=>OU(i))}async getSearchLimits(t){return await(await this.getSearchLimitsRaw(t)).value()}async getTeamRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling getTeam().');const n={},o={};let i="/api/v1/dashboard/teams/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"GET",headers:o,query:n}}async getTeamRaw(t,n){const o=await this.getTeamRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Ru(s))}async getTeam(t,n){return await(await this.getTeamRaw(t,n)).value()}async listActiveDataPlanesForDashboardRequestOpts(){return{path:"/api/v1/dashboard/data-planes",method:"GET",headers:{},query:{}}}async listActiveDataPlanesForDashboardRaw(t){const n=await this.listActiveDataPlanesForDashboardRequestOpts(),o=await this.request(n,t);return new ve(o,i=>i.map(k2))}async listActiveDataPlanesForDashboard(t){return await(await this.listActiveDataPlanesForDashboardRaw(t)).value()}async listApiKeysRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling listApiKeys().');const n={};t.page!=null&&(n.page=t.page),t.pageSize!=null&&(n.page_size=t.pageSize);const o={};let i="/api/v1/dashboard/organizations/{orgId}/api-keys";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"GET",headers:o,query:n}}async listApiKeysRaw(t,n){const o=await this.listApiKeysRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>$w(s))}async listApiKeys(t,n){return await(await this.listApiKeysRaw(t,n)).value()}async listApiKeysByAppRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling listApiKeysByApp().');const n={};t.page!=null&&(n.page=t.page),t.pageSize!=null&&(n.page_size=t.pageSize);const o={};let i="/api/v1/dashboard/apps/{appId}/api-keys";return i=i.replace("{appId}",encodeURIComponent(String(t.appId))),{path:i,method:"GET",headers:o,query:n}}async listApiKeysByAppRaw(t,n){const o=await this.listApiKeysByAppRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>$w(s))}async listApiKeysByApp(t,n){return await(await this.listApiKeysByAppRaw(t,n)).value()}async listAppConfigDraftsRequestOpts(){return{path:"/api/v1/dashboard/app-config-drafts",method:"GET",headers:{},query:{}}}async listAppConfigDraftsRaw(t){const n=await this.listAppConfigDraftsRequestOpts(),o=await this.request(n,t);return new ve(o,i=>i.map(ds))}async listAppConfigDrafts(t){return await(await this.listAppConfigDraftsRaw(t)).value()}async listAppsRequestOpts(){return{path:"/api/v1/dashboard/apps",method:"GET",headers:{},query:{}}}async listAppsRaw(t){const n=await this.listAppsRequestOpts(),o=await this.request(n,t);return new ve(o,i=>i.map(cs))}async listApps(t){return await(await this.listAppsRaw(t)).value()}async listOrganizationMembersRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling listOrganizationMembers().');const n={},o={};let i="/api/v1/dashboard/organizations/{id}/members";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"GET",headers:o,query:n}}async listOrganizationMembersRaw(t,n){const o=await this.listOrganizationMembersRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>s.map(Zf))}async listOrganizationMembers(t,n){return await(await this.listOrganizationMembersRaw(t,n)).value()}async listOrganizationsRequestOpts(t){const n={};return t.page!=null&&(n.page=t.page),t.pageSize!=null&&(n.page_size=t.pageSize),{path:"/api/v1/dashboard/organizations",method:"GET",headers:{},query:n}}async listOrganizationsRaw(t,n){const o=await this.listOrganizationsRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Lq(s))}async listOrganizations(t={}
186,n){return await(await this.listOrganizationsRaw(t,n)).value()}async listPlansRequestOpts(t){const n={};return t.page!=null&&(n.page=t.page),t.pageSize!=null&&(n.page_size=t.pageSize),{path:"/api/v1/dashboard/plans",method:"GET",headers:{},query:n}}async listPlansRaw(t,n){const o=await this.listPlansRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>LR(s))}async listPlans(t={},n){return await(await this.listPlansRaw(t,n)).value()}async listTeamInvitationsRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling listTeamInvitations().');const n={};t.page!=null&&(n.page=t.page),t.pageSize!=null&&(n.page_size=t.pageSize);const o={};let i="/api/v1/dashboard/teams/{id}/invitations";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"GET",headers:o,query:n}}async listTeamInvitationsRaw(t,n){const o=await this.listTeamInvitationsRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>t2(s))}async listTeamInvitations(t,n){return await(await this.listTeamInvitationsRaw(t,n)).value()}async listTeamsRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling listTeams().');const n={};t.page!=null&&(n.page=t.page),t.pageSize!=null&&(n.page_size=t.pageSize);const o={};let i="/api/v1/dashboard/organizations/{orgId}/teams";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),{path:i,method:"GET",headers:o,query:n}}async listTeamsRaw(t,n){const o=await this.listTeamsRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Xq(s))}async listTeams(t,n){return await(await this.listTeamsRaw(t,n)).value()}async markOnboardedRequestOpts(){return{path:"/api/v1/dashboard/users/me/onboarded",method:"POST",headers:{},query:{}}}async markOnboardedRaw(t){const n=await this.markOnboardedRequestOpts(),o=await this.request(n,t);return new ve(o,i=>ep(i))}async markOnboarded(t){return await(await this.markOnboardedRaw(t)).value()}async publishAppRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling publishApp().');const n={},o={};let i="/api/v1/dashboard/apps/{app_id}/publish";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"POST",headers:o,query:n}}async publishAppRaw(t,n){const o=await this.publishAppRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>cs(s))}async publishApp(t,n){return await(await this.publishAppRaw(t,n)).value()}async publishAppConfigDraftRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling publishAppConfigDraft().');const n={},o={};let i="/api/v1/dashboard/app-config-drafts/{app_id}/publish";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"POST",headers:o,query:n}}async publishAppConfigDraftRaw(t,n){const o=await this.publishAppConfigDraftRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>tU(s))}async publishAppConfigDraft(t,n){return await(await this.publishAppConfigDraftRaw(t,n)).value()}async removeOrganizationMemberRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling removeOrganizationMember().');if(t.userId==null)throw new te("userId",'Required parameter "userId" was null or undefined when calling removeOrganizationMember().');const n={},o={};let i="/api/v1/dashboard/organizations/{id}/members/{userId}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),i=i.replace("{userId}",encodeURIComponent(String(t.userId))),{path:i,method:"DELETE",headers:o,query:n}}async removeOrganizationMemberRaw(t,n){const o=await this.removeOrganizationMemberRequestOpts(t),i=await this.request(o,n);return new An(i)}async removeOrganizationMember(t,n){await this.removeOrganizationMemberRaw(t,n)}async removeTeamMemberRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling removeTeamMember().');if(t.userId==null)throw new te("userId",'Required parameter "userId" was null or undefined when calling removeTeamMember().');const n={},o={};let i="/api/v1/dashboard/teams/{id}/members/{userId}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),i=i.replace("{userId}
186",encodeURIComponent(String(t.userId))),{path:i,method:"DELETE",headers:o,query:n}}async removeTeamMemberRaw(t,n){const o=await this.removeTeamMemberRequestOpts(t),i=await this.request(o,n);return new An(i)}async removeTeamMember(t,n){await this.removeTeamMemberRaw(t,n)}async resendInvitationRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling resendInvitation().');const n={},o={};let i="/api/v1/dashboard/invitations/{id}/resend";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"POST",headers:o,query:n}}async resendInvitationRaw(t,n){const o=await this.resendInvitationRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Zp(s))}async resendInvitation(t,n){return await(await this.resendInvitationRaw(t,n)).value()}async revokeApiKeyRequestOpts(t){if(t.orgId==null)throw new te("orgId",'Required parameter "orgId" was null or undefined when calling revokeApiKey().');if(t.keyId==null)throw new te("keyId",'Required parameter "keyId" was null or undefined when calling revokeApiKey().');const n={},o={};let i="/api/v1/dashboard/organizations/{orgId}/api-keys/{keyId}";return i=i.replace("{orgId}",encodeURIComponent(String(t.orgId))),i=i.replace("{keyId}",encodeURIComponent(String(t.keyId))),{path:i,method:"DELETE",headers:o,query:n}}async revokeApiKeyRaw(t,n){const o=await this.revokeApiKeyRequestOpts(t),i=await this.request(o,n);return new An(i)}async revokeApiKey(t,n){await this.revokeApiKeyRaw(t,n)}async saveAppConfigDraftRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling saveAppConfigDraft().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling saveAppConfigDraft().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/app-config-drafts/{app_id}";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"PUT",headers:o,query:n,body:wU(t.request)}}async saveAppConfigDraftRaw(t,n){const o=await this.saveAppConfigDraftRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>ds(s))}async saveAppConfigDraft(t,n){return await(await this.saveAppConfigDraftRaw(t,n)).value()}async setAppAIConfigRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling setAppAIConfig().');if(t.config==null)throw new te("config",'Required parameter "config" was null or undefined when calling setAppAIConfig().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/apps/{app_id}/ai-config";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"PUT",headers:o,query:n,body:eF(t.config)}}async setAppAIConfigRaw(t,n){const o=await this.setAppAIConfigRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Fw(s))}async setAppAIConfig(t,n){return await(await this.setAppAIConfigRaw(t,n)).value()}async updateAppRequestOpts(t){if(t.appId==null)throw new te("appId",'Required parameter "appId" was null or undefined when calling updateApp().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling updateApp().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/apps/{app_id}";return i=i.replace("{app_id}",encodeURIComponent(String(t.appId))),{path:i,method:"PUT",headers:o,query:n,body:FR(t.request)}}async updateAppRaw(t,n){const o=await this.updateAppRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>cs(s))}async updateApp(t,n){return await(await this.updateAppRaw(t,n)).value()}async updateOrganizationRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling updateOrganization().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling updateOrganization().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/organizations/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"PATCH",headers:o,query:n,body:GU(t.request)}}async updateOrganizationRaw(t,n){const o=await this.updateOrganizationRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>jf(s))}async updateOrganization(t,n){return await(await this.updateOrganizationRaw(t,n)).value(
186)}async updateOrganizationMemberRoleRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling updateOrganizationMemberRole().');if(t.userId==null)throw new te("userId",'Required parameter "userId" was null or undefined when calling updateOrganizationMemberRole().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling updateOrganizationMemberRole().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/organizations/{id}/members/{userId}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),i=i.replace("{userId}",encodeURIComponent(String(t.userId))),{path:i,method:"PATCH",headers:o,query:n,body:F$(t.request)}}async updateOrganizationMemberRoleRaw(t,n){const o=await this.updateOrganizationMemberRoleRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Zf(s))}async updateOrganizationMemberRole(t,n){return await(await this.updateOrganizationMemberRoleRaw(t,n)).value()}async updateProfileRequestOpts(t){if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling updateProfile().');const n={},o={};return o["Content-Type"]="application/json",{path:"/api/v1/dashboard/users/me",method:"PATCH",headers:o,query:n,body:YU(t.request)}}async updateProfileRaw(t,n){const o=await this.updateProfileRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>ep(s))}async updateProfile(t,n){return await(await this.updateProfileRaw(t,n)).value()}async updateTeamRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling updateTeam().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling updateTeam().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/teams/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"PATCH",headers:o,query:n,body:QU(t.request)}}async updateTeamRaw(t,n){const o=await this.updateTeamRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Ru(s))}async updateTeam(t,n){return await(await this.updateTeamRaw(t,n)).value()}async updateTeamMemberRoleRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling updateTeamMemberRole().');if(t.userId==null)throw new te("userId",'Required parameter "userId" was null or undefined when calling updateTeamMemberRole().');if(t.request==null)throw new te("request",'Required parameter "request" was null or undefined when calling updateTeamMemberRole().');const n={},o={};o["Content-Type"]="application/json";let i="/api/v1/dashboard/teams/{id}/members/{userId}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),i=i.replace("{userId}",encodeURIComponent(String(t.userId))),{path:i,method:"PATCH",headers:o,query:n,body:BU(t.request)}}async updateTeamMemberRoleRaw(t,n){const o=await this.updateTeamMemberRoleRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Ww(s))}async updateTeamMemberRole(t,n){return await(await this.updateTeamMemberRoleRaw(t,n)).value()}}class t3 extends hi{async getPublicPlanRequestOpts(t){if(t.id==null)throw new te("id",'Required parameter "id" was null or undefined when calling getPublicPlan().');const n={},o={};let i="/api/v1/landing/plans/{id}";return i=i.replace("{id}",encodeURIComponent(String(t.id))),{path:i,method:"GET",headers:o,query:n}}async getPublicPlanRaw(t,n){const o=await this.getPublicPlanRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>Hu(s))}async getPublicPlan(t,n){return await(await this.getPublicPlanRaw(t,n)).value()}async listPublicPlansRequestOpts(t){const n={};return t.page!=null&&(n.page=t.page),t.pageSize!=null&&(n.page_size=t.pageSize),{path:"/api/v1/landing/plans",method:"GET",headers:{},query:n}}async listPublicPlansRaw(t,n){const o=await this.listPublicPlansRequestOpts(t),i=await this.request(o,n);return new ve(i,s=>LR(s))}async listPublicPlans(t={},n){return await(await this.listPublicPlansRaw(t,n)).value()}}function n3(e){const t={400:"bad_request",401:"unauthorized",402:"payment_required",403:"forbidden",404:"not_found",409:"conflict",422:"unprocessable",429:"too_many_requests"};return t[e]?t[e]:e>=500?"internal":"unknown"}function r3(e,t){const n=n3(e);if(typeof t=="object"&&t!==null&&!Array.isArray(t)){const o=t,i=typeof o.code=="string"?o.code:"INTERNAL_ERROR",s=typeof o.message=="string"?o.message:"Unexpected error",u=typeof o.retryable=="boolean"?o.retryable:e===429,{c
186ause:d,...f}=o,p={code:i,message:s,status:e,category:n,retryable:u};return Object.keys(f).length>0&&(p.body=f),p}return{code:"INTERNAL_ERROR",message:"Unexpected error",status:e,category:n,retryable:e===429}}async function HR(e){let t;try{t=await e.json()}catch{t=void 0}return r3(e.status,t)}function o3(){const e=["bad_request","unauthorized","payment_required","forbidden","not_found","conflict","unprocessable","too_many_requests","internal","unknown"],t={};for(const n of e)t[n]=o=>{throw new Error(`errkit: unhandled ${n} error: ${o.code}`)};return t}var a3=class{constructor(e){this.handlers=e.handlers,this.codeOverrides=e.codeOverrides??{}}dispatch(e,t){if(t!=null&&t.suppress)return;(this.codeOverrides[e.code]??this.handlers[e.category]??this.handlers.unknown)(e)}override(e,t){const n=this.handlers[e];return this.handlers[e]=t,()=>{this.handlers[e]=n}}overrideCode(e,t){const n=this.codeOverrides[e];return this.codeOverrides[e]=t,()=>{n===void 0?delete this.codeOverrides[e]:this.codeOverrides[e]=n}}},bc=class extends Error{constructor(e){super(`${e.code}: ${e.message}`),this.errkit=e,this.name="ErrkitResponseError"}},WR=Symbol("errkitSuppressGlobal");function N5(e){return{...e,[WR]:!0}}function i3(e){return{async post(t){const{response:n,init:o}=t;if(n.status>=200&&n.status<300)return n;const i=typeof n.clone=="function"?n.clone():n,s=await HR(i),u=!!(o!=null&&o[WR]);throw e.dispatch(s,{suppress:u}),new bc(s)}}}function s3(){return{async post(e){const{response:t}=e;if(t.status>=200&&t.status<300)return t;const n=typeof t.clone=="function"?t.clone():t,o=await HR(n);throw new bc(o)}}}var Vw=Symbol("errkitAuthRetry");function l3(e){let t=null;function n(){return t===null&&(t=e.refresh().catch(()=>null).finally(()=>{t=null})),t}return{async post(o){const{response:i,url:s,init:u,fetch:d}=o;if(i.status!==401||u[Vw])return i;const f=await n();if(f===null)return e.onTerminalFailure(),i;const p=e.applyToken({...u},f);return p[Vw]=!0,await d(s,p)}}}const rm="smritea_token",om="smritea_refresh_token";function zo(){return localStorage.getItem(rm)}function Rc(e){localStorage.setItem(rm,e)}function _c(){localStorage.removeItem(rm),localStorage.removeItem(om)}function JR(){return localStorage.getItem(om)}function am(e){localStorage.setItem(om,e)}function VR(e){try{const t=e.split(".");if(t.length!==3)return null;const n=t[1],o=atob(n.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(o)}catch{return null}}function M5(){const e=zo();if(!e)return null;const t=VR(e);return(t==null?void 0:t.organization_id)??null}function u3(){const e=zo();if(!e)return!0;const t=VR(e);return!t||typeof t.exp!="number"?!0:Math.floor(Date.now()/1e3)>=t.exp-60}let tp=null;function c3(){return tp||(tp=new a3({handlers:{...o3(),bad_request:e=>tr({title:"Invalid request",description:e.message,variant:"destructive"}),not_found:e=>tr({title:"Not found",description:e.message,variant:"destructive"}),conflict:e=>tr({title:"Conflict",description:e.message,variant:"destructive"}),unprocessable:e=>tr({title:"Cannot process",description:e.message,variant:"destructive"}),payment_required:e=>tr({title:"Plan limit",description:e.message,variant:"destructive"}),forbidden:e=>tr({title:"No access",description:e.message,variant:"destructive"}),too_many_requests:e=>tr({title:"Slow down",description:e.message,variant:"destructive"}),internal:()=>tr({title:"Something went wrong",description:"Please try again.",variant:"destructive"}),unknown:()=>tr({title:"Something went wrong",description:"Please try again.",variant:"destructive"}),unauthorized:()=>{_c(),window.location.href="/auth/login"}}})),tp}function d3(e,t){return e instanceof bc?e.errkit.message:e instanceof Error?e.message:t}const im="https://api.smritea.ai",f3=l3({refresh:async()=>{const e=JR();if(!e)return null;try{const n=await new gn(Er()).refreshToken({request:{refreshToken:e}});return n.accessToken&&Rc(n.accessToken),n.refreshToken&&am(n.refreshToken),n.accessToken??null}catch{return null}},applyToken:(e,t)=>{const n=new Headers(e.headers);return n.set("Authorization",`Bearer ${t}`),{...e,headers:n}},onTerminalFailure:()=>{_c()}});function Vn(){const e=zo();return new em({basePath:im,headers:{Accept:"application/json","Content-Type":"application/json",...e?{Authorization:`Bearer ${e}`}:{}},credentials:"omit",middleware:[f3,i3(c3())]})}function Er(){return new em({basePath:im,headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"omit",middleware:[s3()]})}function L5(e){return`${im}/api/v1/landing/docs/${e}`}const p3=["client_id","redirect_uri","response_type","state","code_challenge","code_challenge_method"];function GR(e){const t=crypto.randomUUID();return sessionStorage.setItem(`oauth_state_${e}`,t),t}function h3(){return"https://api.smritea.ai"}function m3(e){const t=new URLSearchParams(window.location.search);t.get("response_type")==="code"&&p3.forEach(n=>{if(e.has(n))return;const o=t.get(n);o&&e.append(n,o)})}async function g3(e,t){return new gn(Er()).loginUser({request:{email:e,password:t}})}async function KR(e,t){return new gn(Er()).selectOrg({request:{selectionToken:e,organizationId:t}}
186)}async function y3(e){return new gn(Vn()).switchOrg({request:{organizationId:e}})}async function v3(e){await new gn(Vn()).logoutUser({request:{refreshToken:e}})}async function w3(e){return new gn(Er()).registerUser({request:e})}function YR(e,t,n){const o=`${h3()}/api/v1/auth/oauth/${e}/login`,i=new URLSearchParams;return i.append("state",t),n&&i.append("mode",n),m3(i),`${o}?${i.toString()}`}function z5(e){const t=GR(e);window.location.href=YR(e,t)}function F5(e){const t=GR(e);window.location.href=YR(e,t,"link")}async function x3(e,t,n){return new gn(Er()).oauthCallback({provider:e,code:t,state:n})}async function q5(e){return new gn(Vn()).oauthUnlink({provider:e})}async function $5(e){return new gn(Vn()).oauthValidateUnlink({provider:e})}async function S3(e){return new gn(Vn()).changePassword({request:e})}async function b3(e){return new gn(Vn()).setPassword({request:e})}async function R3(e){return new gn(Er()).requestPasswordReset({request:{email:e}})}async function _3(e,t){return new gn(Er()).resetPassword({request:{token:e,newPassword:t}})}async function E3(e){return new gn(Er()).verifyEmail({token:e})}async function C3(){return new gn(Vn()).resendVerification()}async function T3(e){return new gn(Er()).resendVerificationByEmail({request:{email:e}})}async function P3(e,t){return new e3(Er()).adminOAuthCallback({code:e,state:t})}const U5=u0.withTypes(),B5=c0.withTypes(),O3=1e5,k3=32;async function sm(e,t){const n=new TextEncoder,o=n.encode(e),i=n.encode(t.toLowerCase()),s=await crypto.subtle.importKey("raw",o,"PBKDF2",!1,["deriveBits"]),u=await crypto.subtle.deriveBits({name:"PBKDF2",salt:i,iterations:O3,hash:"SHA-256"},s,k3*8);return Array.from(new Uint8Array(u)).map(f=>f.toString(16).padStart(2,"0")).join("")}function H5(e){return e.length<8?{valid:!1,error:"Password must be at least 8 characters"}:e.length>128?{valid:!1,error:"Password must be at most 128 characters"}:/[A-Z]/.test(e)?/[a-z]/.test(e)?/[0-9]/.test(e)?/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(e)?{valid:!0}:{valid:!1,error:"Password must contain at least one special character"}:{valid:!1,error:"Password must contain at least one digit"}:{valid:!1,error:"Password must contain at least one lowercase letter"}:{valid:!1,error:"Password must contain at least one uppercase letter"}}function bi(e){return e instanceof bc?{message:e.errkit.message||"Request failed",code:e.errkit.code||null}:e instanceof Error?{message:e.message,code:null}:{message:"Request failed",code:null}}function lm(e){e.accessToken&&Rc(e.accessToken),e.refreshToken&&am(e.refreshToken)}const um=zo(),jp=um!==null&&!u3();um!==null&&!jp&&_c();const D3={token:jp?um:null,isAuthenticated:jp,loading:!1,error:null,errorCode:null,orgChallenge:null},np=Ht("auth/loginUser",async({email:e,password:t},{rejectWithValue:n})=>{var o;try{const i=await sm(t,e),s=await g3(e,i),u=s.orgs??[];if(u.length===1&&s.selectionToken&&((o=u[0])!=null&&o.organizationId)){const d=await KR(s.selectionToken,u[0].organizationId);return lm(d),{completed:!0,organizationId:d.organizationId??null}}return u.length===0||!s.selectionToken?n({message:"No organizations available for this account",code:null}):{completed:!1,selectionToken:s.selectionToken,orgs:u}}catch(i){const s=bi(i);return n(s)}}),Gw=Ht("auth/selectOrg",async({selectionToken:e,organizationId:t},{rejectWithValue:n})=>{try{const o=await KR(e,t);return lm(o),o}catch(o){return n(bi(o))}}),Kw=Ht("auth/switchOrg",async({organizationId:e},{rejectWithValue:t})=>{try{const n=await y3(e);return lm(n),n}catch(n){return t(bi(n))}}),rp=Ht("auth/registerUser",async({name:e,email:t,password:n,phone:o},{rejectWithValue:i})=>{try{const s=await sm(n,t);return await w3({name:e,email:t,password:s,phone:o})}catch(s){const u=bi(s);return i(u)}}),op=Ht("auth/requestPasswordReset",async e=>R3(e)),W5=Ht("auth/resetPassword",async({token:e,password:t,email:n})=>{const o=await sm(t,n);return _3(e,o)}),J5=Ht("auth/verifyEmail",async e=>E3(e)),V5=Ht("auth/resendVerification",async()=>C3()),ap=Ht("auth/resendVerificationByEmail",async e=>T3(e)),ip=Ht("auth/oauthCallback",async({provider:e,code:t,state:n},{rejectWithValue:o})=>{try{const i=await x3(e,t,n);return i.accessToken?(Rc(i.accessToken),i.refreshToken&&am(i.refreshToken),{completed:!0,organizationId:i.organizationId??null}):!i.orgs||i.orgs.length===0||!i.selectionToken?o({message:"No organizations available for this account",code:null}):{completed:!1,selectionToken:i.selectionToken,orgs:i.orgs}}catch(i){const s=bi(i);return o(s)}}),sp=Ht("auth/adminOAuthCallback",async({code:e,state:t},{rejectWithValue:n})=>{try{const o=await P3(e,t);return o.accessToken&&Rc(o.accessToken),o}catch(o){const i=bi(o);return n(i)}}),XR=ac({name:"auth",initialState:D3,reducers:{logout(e){e.token=null,e.isAuthenticated=!1,e.error=null,e.errorCode=null,e.orgChallenge=null,_c()},clearAuthError(e){e.error=null,e.errorCode=null}},extraReducers:e=>{e.addCase(np.pending,t=>{t.loading=!0,t.error=null}).addCase(np.fulfilled,(t,n)=>{t.loading=!1,n.payload.completed?(t.token=zo(),t.isAuthenticated=!0,t.orgChallenge=null):t.orgChallenge={selectionToken:n.payload.selectionToken,orgs:n.payload.orgs}}).addCase(np.rejected,(t,n)=>{t.loading=!1;const o=n.payload;t.error=(o==null?void 0:o.message)??n.error.message??"Login failed",t.errorCode=(o==null?void 0:o.code)??null}).addCase(Gw.fulfilled,t=>{t.loading=!1,t.token=zo(),t.isAuthenticated=!0,t.orgChallenge=null}).addCase(Gw.rejected,(t,n)=>{t.loading=!1;const o=n.payload;t.error=(o==null?void 0:o.message)??n.error.message??"Select org failed",t.errorCode=(o==null?void 0:o.code)??null}).addCase(Kw.fulfilled,t=>{t.loading=!1,t.token=zo(),t.isAuthenticated=!0,t.orgChallenge=null}).addCase(Kw.rejected,(t,n)=>{t.loading=!1;const o=n.payload;t.error=(o==null?void 0:o.message)??n.error.message??"Switch org failed",t.errorCode=(o==null?void 0:o.code)??null}).addCase(rp.pending,t=>{t.loading=!0,t.error=null}).addCase(rp.fulfilled,t=>{t.loading=!1}).addCase(rp.rejected,(t,n)=>{t.loading=!1;const o=n.payload;t.error=(o==null?void 0:o.message)??n.error.message??"Registration failed",t.errorCode=(o==null?void 0:o.code)??null}).addCase(op.pending,t=>{t.loading=!0,t.error=null}).addCase(op.fulfilled,t=>{t.loading=!1}).addCase(op.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message??"Password reset request failed"}).addCase(ip.pending,t=>{t.loading=!0,t.error=null}).addCase(ip.fulfilled,(t,n)=>{t.loading=!1,n.payload.completed?(t.token=zo(),t.isAuthenticated=!0,t.orgChallenge=null):t.orgChallenge={selectionToken:n.payload.selectionToken,orgs:n.payload.orgs}}).addCase(ip.rejected,(t,n)=>{t.loading=!1;const o=n.payload;t.error=(o==null?void 0:o.message)??n.error.message??"OAuth authentication failed",t.errorCode=(o==null?void 0:o.code)??null}).addCase(sp.pending,t=>{t.loading=!0,t.error=null}).addCase(sp.fulfilled,(t,n)=>{t.loading=!1,t.token=n.payload.accessToken??null,t.isAuthenticated=!0}).addCase(sp.rejected,(t,n)=>{t.loading=!1;const o=n.payload;t.error=(o==null?void 0:o.message)??n.error.message??"Admin OAuth authentication failed",t.errorCode=(o==null?void 0:o.code)??null}).addCase(ap.pending,t=>{t.loading=!0,t.error=null}).addCase(ap.fulfilled,t=>{t.loading=!1}).addCase(ap.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message??"Failed to resend verification email"})}}),{logout:A3,clearAuthError:G5}=XR.actions,K5=Ht("auth/logoutUser",async(e,{dispatch:t})=>{const n=JR();if(n)try{await v3(n)}catch{}t(A3())}),I3=XR.reducer,QR=e=>e.auth.isAuthenticated,Y5=e=>e.auth.loading,X5=e=>e.auth.error,Q5=e=>e.auth.orgChallenge,eh="smritea_post_login_redirect",N3="/dashboard";function Z5(e,t){return e.completed?!1:(t("/auth/select-org"),!0)}function ZR(e){return typeof e=="string"&&e.startsWith("/")&&!e.startsWith("//")&&!e.includes("://")}function M3(e){ZR(e)&&sessionStorage.setItem(eh,e)}const Yw="smritea_cli_authorize_context";function L3(e=N3){const t=sessionStorage.getItem(Yw);if(t)return sessionStorage.removeItem(Yw),`/auth/cli-authorize?${t}`;const n=sessionStorage.getItem(eh);return sessionStorage.removeItem(eh),n&&ZR(n)?n:e}function j5(e,t){const n=L3(),o=n.startsWith("/auth/cli-authorize")?{orgConfirmed:!0}:void 0;e(n,{...t,state:o})}async function z3(){return new Si(Vn()).getProfile()}async function F3(e){return new Si(Vn()).updateProfile({request:e})}async function q3(){return new Si(Vn()).markOnboarded()}async function $3(e){return new t3(Er()).listPublicPlans({})}async function U3(e){return new Si(Vn()).listPlans(e??{})}async function B3(){return new Si(Vn()).getDefaultPlan()}async function H3(e){return new Si(Vn()).getPlan({id:e})}const W3={profile:null,loading:!1,error:null,passwordLoading:!1,passwordError:null},lp=Ht("user/fetchProfile",async()=>z3()),J3=Ht("user/updateProfile",async e=>F3(e)),up=Ht("user/changePassword",async(e,{rejectWithValue:t})=>{try{return await S3(e)}catch(n){return t(n instanceof Error?n.message:"Failed to change password")}}),cp=Ht("user/setPassword",async(e,{rejectWithValue:t})=>{try{return await b3(e)}catch(n){return t(n instanceof Error?n.message:"Failed to set password")}}),V3=Ht("user/markOnboarded",async()=>q3()),jR=ac({name:"user",initialState:W3,reducers:{clearUser(e){e.profile=null},clearPasswordError(e){e.passwordError=null}},extraReducers:e=>{e.addCase(lp.pending,t=>{t.loading=!0,t.error=null}).addCase(lp.fulfilled,(t,n)=>{t.loading=!1,t.profile=n.payload}).addCase(lp.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message??"Failed to load profile"}).addCase(J3.fulfilled,(t,n)=>{t.profile=n.payload}).addCase(up.pending,t=>{t.passwordLoading=!0,t.passwordError=null}).addCase(up.fulfilled,t=>{t.passwordLoading=!1}).addCase(up.rejected,(t,n)=>{t.passwordLoading=!1,t.passwordError=n.payload??n.error.message??"Failed to change password"}).addCase(cp.pending,t=>{t.passwordLoading=!0,t.passwordError=null}).addCase(cp.fulfilled,t=>{t.passwordLoading=!1}).addCase(cp.rejected,(t,n)=>{t.passwordLoading=!1,t.passwordError=n.payload??n.error.message??"Failed to set password"}).addCase(V3.fulfilled,(t,n)=>{t.profile=n.payload})}}),{clearUser:eB,clearPasswordError:tB}=jR.actions,G3=jR.reducer,nB=e=>e.user.profile,rB=e=>e.user.loading,oB=e=>e.user.passwordLoading,K3={features:[{id:"persistent-context",title:"Persistent Context",description:"Your chatbot asks the same questions every session. Store what matters and retrieve it when needed.",icon:"Brain"},{id:"semantic-search",title:"Semantic Search",description:"Search memories with natural language, not keywords. Get ranked results with relevance scores.",icon:"Search"},{id:"knowledge-graph",title:"Automatic Knowledge Graph",description:"Entities mentioned in memories are extracted and linked automatically. No manual tagging.",icon:"Database"},{id:"search-strategies",title:"Multiple Search Strategies",description:"Fast hybrid search for real-time use, graph-aware search for deeper recall, or LLM-powered search for precision.",icon:"Timer"},{id:"sdks",title:"Two Lines to Integrate",description:"pip install smritea-sdk or npm install smritea-sdk. Initialize with your API key and app ID. Call client.add() and client.search().",icon:"Code"},{id:"multi-user",title:"Built for Multi-user Apps",description:"Memories scoped per user, per conversation, per app. Teams, orgs, and API keys built in.",icon:"GitBranch"}],howItWorks:[{step:"1",title:"Create an App",description:"Sign up, create an app in the dashboard, and copy your API key. Takes about a minute."},{step:"2",title:"Store Context",description:"Call client.add() with any text — conversation turns, user preferences, meeting notes. Entities are extracted and indexed automatically."},{step:"3",title:"Retrieve & Use",description:"Call client.search() with a natural language query. Feed the results into your LLM prompt as context."}],useCases:[{id:"chatbots",title:"Support Chatbots That Remember",description:"Store past interactions per user and g
186ive your bot the context it needs.",icon:"MessageSquare"},{id:"agents",title:"AI Assistants That Learn",description:"Persist preferences and decisions so users never have to repeat themselves.",icon:"Bot"},{id:"knowledge",title:"Team Knowledge That's Searchable",description:"Store notes and decisions as memories. Query everything in natural language.",icon:"Users"},{id:"documents",title:"Document Q&A Without Re-processing",description:"Chunk and store documents once. Semantic search finds the relevant sections on every query.",icon:"FileText"}]},Y3=ac({name:"content",initialState:K3,reducers:{}}),X3=Y3.reducer,Q3={plans:[],currentPlan:null,defaultPlan:null,loading:!1,error:null},dp=Ht("plans/fetchPublicPlans",async(e,{rejectWithValue:t})=>{try{return(await $3()).data??[]}catch(n){const o=d3(n,"Failed to fetch plans");return t(o)}}),Z3=Ht("plans/fetchDashboardPlans",async e=>(await U3(e)).data??[]),j3=Ht("plans/fetchDefaultPlan",async()=>B3()),e4=Ht("plans/fetchPlan",async e=>H3(e)),t4=ac({name:"plans",initialState:Q3,reducers:{},extraReducers:e=>{e.addCase(dp.pending,t=>{t.loading=!0,t.error=null}).addCase(dp.fulfilled,(t,n)=>{t.loading=!1;const o=n.payload;t.plans=o.sort((i,s)=>(i.sortOrder??0)-(s.sortOrder??0)),t.defaultPlan=o.find(i=>i.isDefault)??null}).addCase(dp.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message??"Failed to load plans"}).addCase(Z3.fulfilled,(t,n)=>{const o=n.payload;t.plans=o.sort((i,s)=>(i.sortOrder??0)-(s.sortOrder??0))}).addCase(j3.fulfilled,(t,n)=>{t.defaultPlan=n.payload}).addCase(e4.fulfilled,(t,n)=>{t.currentPlan=n.payload})}}),n4=t4.reducer,aB=e=>e.plans.plans,iB=e=>e.plans.loading,sB=e=>e.plans.error,r4=Q1({content:X3,auth:I3,user:G3,plans:n4}).withLazyLoadedSlices(),o4=_1({reducer:r4}),a4="modulepreload",i4=function(e){return"/"+e},Xw={},wt=function(t,n,o){let i=Promise.resolve();if(n&&n.length>0){let u=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));i=u(n.map(p=>{if(p=i4(p),p in Xw)return;Xw[p]=!0;const g=p.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const w=document.createElement("link");if(w.rel=g?"stylesheet":a4,g||(w.as="script"),w.crossOrigin="",w.href=p,f&&w.setAttribute("nonce",f),document.head.appendChild(w),g)return new Promise((x,R)=>{w.addEventListener("load",x),w.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return i.then(u=>{for(const d of u||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})},lB=()=>u0(),e_=e=>c0(e),t_={mode:"system",label:"System",icon:bk},Qw=[t_,{mode:"light",label:"Light",icon:vk},{mode:"dark",label:"Dark",icon:_k},{mode:"bright",label:"Bright",icon:Pk}];function s4({mode:e,setMode:t}){const n=Qw.find(i=>i.mode===e)??t_,o=n.icon;return S.jsxs(ZM,{children:[S.jsx(jM,{"aria-label":`Theme: ${n.label}`,className:"inline-flex items-center justify-center rounded-xl border border-border bg-muted p-2.5 text-foreground transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:S.jsx(o,{className:"h-5 w-5"})}),S.jsx(eL,{align:"end",sideOffset:8,className:"w-56 rounded-2xl p-1",children:Qw.map(({mode:i,label:s,icon:u})=>{const d=i===e;return S.jsxs(tL,{onClick:()=>t(i),className:St("flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm",d&&"bg-accent text-accent-foreground"),children:[S.jsx(u,{className:"h-4 w-4 shrink-0"}),S.jsx("span",{className:"flex-1 font-medium",children:s}),d&&S.jsx(gk,{className:"h-4 w-4 shrink-0"})]},i)})})]})}function l4(){const e=e_(QR),{mode:t,setMode:n}=ex();return S.jsx("header",{className:"sticky top-0 z-50 w-full",children:S.jsx("div",{className:"w-full bg-[var(--nav-bar-bg)] shadow-[var(--nav-bar-shadow)] [backdrop-filter:var(--nav-bar-blur)]",children:S.jsxs("div",{className:"container mx-auto my-[var(--nav-inset)] flex h-16 items-center justify-between rounded-[var(--nav-radius)] bg-[var(--nav-pill-bg)] px-4 shadow-[var(--nav-pill-shadow)] [backdrop-filter:var(--nav-pill-blur)]",children:[S.jsx(vr,{to:"/",className:"flex items-center",children:S.jsx(jh,{size:"md"})}),S.jsxs("nav",{className:"hidden lg:flex items-center gap-6",children:[S.jsx(ro,{to:"/",end:!0,className:({isActive:o})=>o?"rounded-full px-[15px] py-2 text-sm font-medium transition-colors bg-accent text-accent-foreground shadow-sm font-semibold":"rounded-full px-[15px] py-2 text-sm font-medium transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",children:"Why use Smritea?"}),S.jsx(ro,{to:"/product",className:({isActive:o})=>o?"rounded-full px-[15px] py-2 text-sm font-medium transition-colors bg-accent text-accent-foreground shadow-sm font-semibold":"rounded-full px-[15px] py-2 text-sm font-medium transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",children:"What can it do?"}),S.jsx(ro,{to:"/examples",className:({isActive:o})=>o?"rounded-full px-[15px] py-2 text-sm font-medium transition-colors bg-accent text-accent-foreground shadow-sm font-semibold":"rounded-full px-[15px] py-2 text-sm font-medium transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",children:"How to use it?"}),S.jsx(ro,{to:"/pricing",className:({isActive:o})=>o?"rounded-full px-[15px] py-2 text-sm font-medium transition-colors bg-accent text-accent-foreground shadow-sm font-semibold":"rounded-full px-[15px] py-2 text-sm font-medium transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",children:"Pricing"})]}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(s4,{mode:t,setMode:n}),S.jsx(ca,{variant:"secondary",className:"bg-[#0f766e] text-white hover:bg-[#0f766e]/90",asChild:!0,children:S.jsx("a",{href:"https://demo.smritea.ai",children:"Book a demo"})}),e?S.jsx(ca,{asChild:!0,children:S.jsx(vr,{to:"/dashboard",children:"Dashboard"})}):S.jsx(ca,{asChild:!0,children:S.jsx(vr,{to:"/auth/login",children:"Sign In"})}),S.jsxs(nR,{children:[S.jsx(XL,{asChild:!0,children:S.jsx(ca,{variant:"ghost",size:"icon",className:"lg:hidden","aria-label":"Open navigation menu",children:S.jsx(xk,{className:"h-5 w-5"})})}),S.jsxs(rR,{side:"right",className:"w-[280px]",children:[S.jsx(oR,{children:S.jsx(aR,{
186children:"Menu"})}),S.jsxs("nav",{className:"mt-6 flex flex-col gap-1 px-2",children:[S.jsx(Qa,{asChild:!0,children:S.jsx(ro,{to:"/",end:!0,className:"rounded-md px-3 py-2.5 text-sm font-medium text-foreground hover:bg-muted",children:"Why use Smritea?"})}),S.jsx(Qa,{asChild:!0,children:S.jsx(ro,{to:"/product",className:"rounded-md px-3 py-2.5 text-sm font-medium text-foreground hover:bg-muted",children:"What can it do?"})}),S.jsx(Qa,{asChild:!0,children:S.jsx(ro,{to:"/examples",className:"rounded-md px-3 py-2.5 text-sm font-medium text-foreground hover:bg-muted",children:"How to use it?"})}),S.jsx(Qa,{asChild:!0,children:S.jsx(ro,{to:"/pricing",className:"rounded-md px-3 py-2.5 text-sm font-medium text-foreground hover:bg-muted",children:"Pricing"})}),S.jsx(Qa,{asChild:!0,children:S.jsx(ca,{variant:"secondary",asChild:!0,className:"mt-3 bg-[#0f766e] text-white hover:bg-[#0f766e]/90",children:S.jsx("a",{href:"https://demo.smritea.ai",children:"Book a demo"})})}),S.jsx(Qa,{asChild:!0,children:S.jsx(ca,{asChild:!0,className:"mt-3",children:S.jsx(vr,{to:e?"/dashboard":"/auth/login",children:e?"Dashboard":"Sign In"})})})]})]})]})]})]})})})}function u4(){return S.jsx("footer",{className:"border-t bg-background py-12",children:S.jsxs("div",{className:"mx-auto w-full max-w-[1200px] px-4 sm:px-6 lg:px-8",children:[S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[S.jsxs("div",{children:[S.jsx(vr,{to:"/",className:"inline-flex mb-4",children:S.jsx(jh,{size:"sm"})}),S.jsx("p",{className:"text-sm text-muted-foreground",children:"Memory storage and semantic search for LLM apps."})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold mb-3",children:"Product"}),S.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[S.jsx("li",{children:S.jsx(vr,{to:"/product",className:"hover:text-foreground",children:"Product"})}),S.jsx("li",{children:S.jsx(vr,{to:"/examples",className:"hover:text-foreground",children:"Examples"})}),S.jsx("li",{children:S.jsx(vr,{to:"/pricing",className:"hover:text-foreground",children:"Pricing"})})]})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold mb-3",children:"Company"}),S.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:S.jsx("li",{children:S.jsx("a",{href:"mailto:[email protected]",className:"hover:text-foreground",children:"Contact"})})})]})]}),S.jsxs("div",{className:"border-t mt-8 pt-8 text-center text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Smritea. All rights reserved."]})]})})}const c4={"@context":"https://schema.org","@type":"Organization",name:"Smritea",url:"https://smritea.ai",logo:"https://smritea.ai/og-default.png",description:"Memory storage and semantic search API for LLM applications.",sameAs:["https://github.com/SmrutAI","https://pypi.org/project/smritea-sdk/","https://www.npmjs.com/package/smritea-sdk"],contactPoint:{"@type":"ContactPoint",email:"[email protected]",contactType:"customer support"}},d4={"@context":"https://schema.org","@type":"WebSite",name:"Smritea",url:"https://smritea.ai"},f4={"@context":"https://schema.org","@type":"SoftwareApplication",name:"Smritea",applicationCategory:"DeveloperApplication",operatingSystem:"Any",url:"https://smritea.ai",description:"Memory storage and semantic search for LLM applications. Store context, search with natural language, and feed results into your AI prompts.",offers:{"@type":"Offer",price:"0",priceCurrency:"USD",description:"Free tier included"}};function p4(){return yR(),S.jsxs("div",{className:"relative overflow-hidden min-h-screen flex flex-col marketing",children:[S.jsxs(JC,{children:[S.jsx("script",{type:"application/ld+json",children:JSON.stringify(c4)}),S.jsx("script",{type:"application/ld+json",children:JSON.stringify(d4)}),S.jsx("script",{type:"application/ld+json",children:JSON.stringify(f4)})]}),S.jsx(PA,{}),S.jsx(TA,{}),S.jsx(l4,{}),S.jsx("main",{className:"flex-1",children:S.jsx(ph,{})}),S.jsx(u4,{})]})}function h4(){const e=e_(QR),t=Ur();return e?S.jsx(ph,{}):(M3(t.pathname+t.search+t.hash),S.jsx(IP,{to:"/auth/login",replace:!0}))}const m4=v.lazy(()=>wt(()=>import("./DashboardLayout-10QDJMud.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])).then(e=>({default:e.DashboardLayout}))),g4=v.lazy(()=>wt(()=>import("./HomePage-D0j-d5te.js"),__vite__mapDeps([27,28,29,30,31,32,33,34,35,4,36,37,38]))),y4=v.lazy(()=>wt(()=>import("./NotFoundPage-BdafFsFx.js"),__vite__mapDeps([39,28,40])).then(e=>({default:e.NotFoundPage}
186))),v4=v.lazy(()=>wt(()=>import("./ProductPage-DFLY3vqX.js"),__vite__mapDeps([41,28,29,30,31,32]))),w4=v.lazy(()=>wt(()=>import("./PricingPage-CUGwBlZK.js"),__vite__mapDeps([42,28,34,35,4,36,37,38,29])).then(e=>({default:e.PricingPage}))),x4=v.lazy(()=>wt(()=>import("./ExamplesPage-BYgnBvgI.js"),__vite__mapDeps([43,28,29,30,31,33]))),S4=v.lazy(()=>wt(()=>import("./InvitationAcceptPage-BP3Gm5Wx.js"),__vite__mapDeps([44,35,4,36,1,37,45,13,11,46,47,48])).then(e=>({default:e.InvitationAcceptPage}))),b4=v.lazy(()=>wt(()=>import("./LoginPage-B9D4EafN.js"),__vite__mapDeps([49,50,35,36,9,1,51,52])).then(e=>({default:e.LoginPage}))),R4=v.lazy(()=>wt(()=>import("./ForgotPasswordPage-CWcSCUTX.js"),__vite__mapDeps([53,36,9,50,54,40])).then(e=>({default:e.ForgotPasswordPage}))),_4=v.lazy(()=>wt(()=>import("./ResetPasswordPage-CtUSTGnM.js"),__vite__mapDeps([55,35,36,9,50])).then(e=>({default:e.ResetPasswordPage}))),E4=v.lazy(()=>wt(()=>import("./VerifyEmailPage-CkIpvWr7.js"),__vite__mapDeps([56,36,54,48])).then(e=>({default:e.VerifyEmailPage}))),C4=v.lazy(()=>wt(()=>import("./OAuthCallbackPage-CmVr4pEs.js"),__vite__mapDeps([57,35,36,46])).then(e=>({default:e.OAuthCallbackPage}))),T4=v.lazy(()=>wt(()=>import("./CLIAuthorizePage-7ikt6BFk.js"),__vite__mapDeps([58,35,52,50,36,9,1,59,26,6])).then(e=>({default:e.CLIAuthorizePage}))),P4=v.lazy(()=>wt(()=>import("./SelectOrgPage-rBGzRK0I.js"),__vite__mapDeps([60,59,36,26])).then(e=>({default:e.SelectOrgPage}))),O4=v.lazy(()=>wt(()=>import("./DashboardHomePage-Da3WKkdQ.js"),__vite__mapDeps([61,35,4,36,37,62,63,23,20,6,5,10,12,11,14,64])).then(e=>({default:e.DashboardHomePage}))),k4=v.lazy(()=>wt(()=>import("./AppsListPage-33TtgeON.js"),__vite__mapDeps([65,66,37,67,4,36,10,68,15,25,5,3,69])).then(e=>({default:e.AppsListPage}))),D4=v.lazy(()=>wt(()=>import("./AppDetailPage-Dq3_HvML.js").then(e=>e.A),__vite__mapDeps([70,37,35,4,36,51,31,67,45,71,26,15,72,9,2,3,1,64,73,46,69,8,74,17,6,5,12,75,18,68,11,40])).then(e=>({default:e.AppDetailPage}))),Zw=v.lazy(()=>wt(()=>import("./AppWizardPage-DZn2aLYr.js").then(e=>e.A),__vite__mapDeps([76,35,37,24,25,15,22,72,63,64,36,31,4,47,46,9,2,3,14,77,78,73,69,5,75])).then(e=>({default:e.AppWizardPage}))),A4=v.lazy(()=>wt(()=>import("./AllApiKeysPage-CB0J3pEr.js"),__vite__mapDeps([79,4,36,37,74,31,69,67,17,15,6,12])).then(e=>({default:e.AllApiKeysPage}))),I4=v.lazy(()=>wt(()=>import("./MemoryExplorerPage-c8rwuYvG.js"),__vite__mapDeps([80,4,36,9,2,3,37,51,15,17,18,75,8,67,14,45,71,26,11])).then(e=>({default:e.MemoryExplorerPage}))),N4=v.lazy(()=>wt(()=>import("./UsageBillingPage-C_MO31sY.js"),__vite__mapDeps([81,4,36,63,37,82,51,62,45,38,6,20,21])).then(e=>({default:e.UsageBillingPage}))),M4=v.lazy(()=>wt(()=>import("./BillingPage-B1ok5CXF.js"),__vite__mapDeps([83,72,4,36,8,1,37,82,38,45,84,9,21,46,66,73,85,34,35])).then(e=>({default:e.BillingPage}))),L4=v.lazy(()=>wt(()=>import("./PlanChangePage-Djt3rz5T.js"),__vite__mapDeps([86,21,85,34,35,4,36,37,38,84,9,45,46])).then(e=>({default:e.PlanChangePage}))),z4=v.lazy(()=>wt(()=>import("./TeamsPage-Chcdp1rY.js"),__vite__mapDeps([87,72,36,8,9,2,3,37,51,50,67,4,88,7,69,6,19,13,75,5,54])).then(e=>({default:e.TeamsPage}))),F4=v.lazy(()=>wt(()=>import("./OrgSettingsPage-C8Vgan6e.js"),__vite__mapDeps([89,35,72,36,8,9,2,3,37,50,88,7,4,69,6])).then(e=>({default:e.OrgSettingsPage}))),q4=v.lazy(()=>wt(()=>import("./UserProfilePage-B4YaS1gA.js"),__vite__mapDeps([90,35,72,4,36,9,37,50,16,77])).then(e=>({default:e.UserProfilePage}))),$4=v.lazy(()=>wt(()=>import("./SubscribePage-DdwwH-ED.js"),__vite__mapDeps([91,84,9,38,21,45,46])).then(e=>({default:e.SubscribePage}))),U4=v.lazy(()=>wt(()=>import("./ResultPage-c_F9vSOL.js"),[]).then(e=>({default:e.ResultPage})));function vt(){return S.jsx("div",{className:"flex items-center justify-center min-h-[50vh]"})}const B4=aO([{Component:p4,children:[{index:!0,element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(g4,{})})},{path:"product",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(v4,{})})},{path:"pricing",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(w4,{})})},{path:"examples",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(x4,{})})},{path:"payment/result",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(U4,{})})}]},{path:"invitations/:token",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(S4,{})})},{path:"auth",Component:Iz,children:[{path:"login",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(b4,{})})},{path:"forgot-password",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(R4,{})})},{path:"reset-password",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(_4,{})})},{path:"verify-email",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(E4,{})})},{path:"cli-authorize",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(T4,{})})},{path:"select-org",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(P4,{})})}]},{path:"auth/oauth/callback/:provider",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(C4,{})})},{Component:h4,children:[{path:"dashboard",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(m4,{})}),children:[{index:!0,element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(O4,{})})},{path:"apps",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(k4,{})})},{path:"apps/new/configure",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(Zw,{})})},{path:"apps/:appId",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(D4,{})})},{path:"apps/:appId/configure",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(Zw,{})})},{path:"api-keys",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(A4,{})})},{path:"memories",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(I4,{})})},{path:"usage",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(N4,{})})},{path:"billing",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(M4,{})})},{path:"billing/plans",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(L4,{})})},{path:"teams",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(z4,{})})},{path:"settings/org",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(F4,{})})},{path:"settings/profile",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(q4,{})})},{path:"subscribe",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx($4,{})})}]}]},{path:"*",element:S.jsx(v.Suspense,{fallback:S.jsx(vt,{}),children:S.jsx(y4,{})})}]);function H4(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:o,onOfflineReady:i,onRegistered:s,onRegisteredSW:u,onRegisterError:d}=e;let f,p;const g=async(w=!0)=>{await p};
186async function m(){if("serviceWorker"in navigator){if(f=await wt(async()=>{const{Workbox:w}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:w}},[]).then(({Workbox:w})=>new w("/sw.js",{scope:"/",type:"classic"})).catch(w=>{d==null||d(w)}),!f)return;f.addEventListener("activated",w=>{(w.isUpdate||w.isExternal)&&(n?n():window.location.reload())}),f.addEventListener("installed",w=>{w.isUpdate||i==null||i()}),f.register({immediate:t}).then(w=>{u?u("/sw.js",w):s==null||s(w)}).catch(w=>{d==null||d(w)})}}return p=m(),g}function W4(e={}){const{immediate:t=!0,onNeedReload:n,onNeedRefresh:o,onOfflineReady:i,onRegistered:s,onRegisteredSW:u,onRegisterError:d}=e,[f,p]=v.useState(!1),[g,m]=v.useState(!1),[w]=v.useState(()=>H4({immediate:t,onNeedReload:n,onOfflineReady(){m(!0),i==null||i()},onNeedRefresh(){p(!0),o==null||o()},onRegistered:s,onRegisteredSW:u,onRegisterError:d}));return{needRefresh:[f,p],offlineReady:[g,m],updateServiceWorker:w}}const J4=6e4;function V4(){const{needRefresh:[e],offlineReady:[t],updateServiceWorker:n}=W4({onRegisteredSW(o,i){i&&setInterval(()=>void i.update(),J4)}});return v.useEffect(()=>{e&&tr({title:"New version available",description:"Reload to get the latest Smritea.",duration:1/0,action:{label:"Reload",onClick:()=>void n(!0)}})},[e,n]),v.useEffect(()=>{t&&tr({title:"Ready to work offline"})},[t]),null}const fp="smritea-ios-install-dismissed";function G4(){return v.useEffect(()=>{if(typeof window>"u"||typeof navigator>"u")return;const e=/iphone|ipad|ipod/i.test(navigator.userAgent),t="standalone"in navigator&&navigator.standalone===!0||window.matchMedia("(display-mode: standalone)").matches;!e||t||localStorage.getItem(fp)!=="1"&&tr({title:"Install Smritea",description:'Tap the Share button, then "Add to Home Screen".',duration:1/0,onDismiss:()=>localStorage.setItem(fp,"1"),action:{label:"Got it",onClick:()=>localStorage.setItem(fp,"1")}})},[]),null}function jw(){const e=typeof window<"u"&&window.__PRERENDER__;return S.jsx(xO,{children:S.jsx(y0,{children:S.jsxs(hC,{store:o4,children:[S.jsx(kP,{router:B4}),!e&&S.jsx(V4,{}),!e&&S.jsx(G4,{}),S.jsx(KO,{position:"bottom-right"})]})})})}var th,n_=-1,Ws=function(e){addEventListener("pageshow",(function(t){t.persisted&&(n_=t.timeStamp,e(t))}),!0)},r_=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},cm=function(){var e=r_();return e&&e.activationStart||0},Uo=function(e,t){var n=r_(),o="navigate";return n_>=0?o="back-forward-cache":n&&(document.prerendering||cm()>0?o="prerender":document.wasDiscarded?o="restore":n.type&&(o=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:o}},Js=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var o=new PerformanceObserver((function(i){Promise.resolve().then((function(){t(i.getEntries())}))}));return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch{}},Bo=function(e,t,n,o){var i,s;return function(u){t.value>=0&&(u||o)&&((s=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=s,t.rating=(function(d,f){return d>f[1]?"poor":d>f[0]?"needs-improvement":"good"})(t.value,n),e(t))}},dm=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Ec=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},fm=function(e){var t=!1;return function(){t||(e(),t=!0)}},oi=-1,e0=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Wu=function(e){document.visibilityState==="hidden"&&oi>-1&&(oi=e.type==="visibilitychange"?e.timeStamp:0,K4())},t0=function(){addEventListener("visibilitychange",Wu,!0),addEventListener("prerenderingchange",Wu,!0)},K4=function(){removeEventListener("visibilitychange",Wu,!0),removeEventListener("prerenderingchange",Wu,!0)},o_=function(){return oi<0&&(oi=e0(),t0(),Ws((function(){setTimeout((function(){oi=e0(),t0()}),0)}))),{get firstHiddenTime(){return oi}}},pm=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},n0=[1800,3e3],Y4=function(e,t){t=t||{},pm((function(){var n,o=o_(),i=Uo("FCP"),s=Js("paint",(function(u){u.forEach((function(d){d.name==="first-contentful-paint"&&(s.disconnect(),d.startTime<o.firstHiddenTime&&(i.value=Math.max(d.startTime-cm(),0),i.entries.push(d),n(!0)))}))}));s&&(n=Bo(e,i,n0,t.reportAllChanges),Ws((function(u){i=Uo("FCP"),n=Bo(e,i,n0,t.reportAllChanges),dm((function(){i.value=performance.now()-u.timeStamp,n(!0)}))})))}))},r0=[.1,.25],X4=function(e,t){t=t||{},Y4(fm((function(){var n,o=Uo("CLS",0),i=0,s=[],u=function(f){f.forEach((function(p){if(!p.hadRecentInput){var g=s[0],m=s[s.length-1];i&&p.startTime-m.startTime<1e3&&p.startTime-g.startTime<5e3?(i+=p.value,s.push(p)):(i=p.value,s=[p])}})),i>o.value&&(o.value=i,o.entries=s,n())},d=Js("layout-shift",u);d&&(n=Bo(e,o,r0,t.reportAllChanges),Ec((function(){u(d.takeRecords()),n(!0)})),Ws((function(){i=0,o=Uo("CLS",0),n=Bo(e,o,r0,t.reportAllChanges),dm((function(){return n()}))})),setTimeout(n,0))}
vendor: 4,297 bytes, line 186
186)))},a_=0,pp=1/0,fu=0,Q4=function(e){e.forEach((function(t){t.interactionId&&(pp=Math.min(pp,t.interactionId),fu=Math.max(fu,t.interactionId),a_=fu?(fu-pp)/7+1:0)}))},i_=function(){return th?a_:performance.interactionCount||0},Z4=function(){"interactionCount"in performance||th||(th=Js("event",Q4,{type:"event",buffered:!0,durationThreshold:0}))},Ir=[],_u=new Map,s_=0,j4=function(){var e=Math.min(Ir.length-1,Math.floor((i_()-s_)/50));return Ir[e]},e5=[],t5=function(e){if(e5.forEach((function(i){return i(e)})),e.interactionId||e.entryType==="first-input"){var t=Ir[Ir.length-1],n=_u.get(e.interactionId);if(n||Ir.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var o={id:e.interactionId,latency:e.duration,entries:[e]};_u.set(o.id,o),Ir.push(o)}Ir.sort((function(i,s){return s.latency-i.latency})),Ir.length>10&&Ir.splice(10).forEach((function(i){return _u.delete(i.id)}))}}},l_=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=fm(e),document.visibilityState==="hidden"?e():(n=t(e),Ec(e)),n},o0=[200,500],n5=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},pm((function(){var n;Z4();var o,i=Uo("INP"),s=function(d){l_((function(){d.forEach(t5);var f=j4();f&&f.latency!==i.value&&(i.value=f.latency,i.entries=f.entries,o())}))},u=Js("event",s,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});o=Bo(e,i,o0,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),Ec((function(){s(u.takeRecords()),o(!0)})),Ws((function(){s_=i_(),Ir.length=0,_u.clear(),i=Uo("INP"),o=Bo(e,i,o0,t.reportAllChanges)})))})))},a0=[2500,4e3],hp={},r5=function(e,t){t=t||{},pm((function(){var n,o=o_(),i=Uo("LCP"),s=function(f){t.reportAllChanges||(f=f.slice(-1)),f.forEach((function(p){p.startTime<o.firstHiddenTime&&(i.value=Math.max(p.startTime-cm(),0),i.entries=[p],n())}))},u=Js("largest-contentful-paint",s);if(u){n=Bo(e,i,a0,t.reportAllChanges);var d=fm((function(){hp[i.id]||(s(u.takeRecords()),u.disconnect(),hp[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(f){addEventListener(f,(function(){return l_(d)}),{once:!0,capture:!0})})),Ec(d),Ws((function(f){i=Uo("LCP"),n=Bo(e,i,a0,t.reportAllChanges),dm((function(){i.value=performance.now()-f.timeStamp,hp[i.id]=!0,n(!0)}))}))}}))};function mp(e){window.gtag&&window.gtag("event",e.name,{value:Math.round(e.name==="CLS"?e.delta*1e3:e.delta),event_label:e.id,non_interaction:!0})}function o5(){X4(mp),n5(mp),r5(mp)}const a5=new Set(["/","/product","/examples","/pricing"]),pu=document.getElementById("root");pu.hasChildNodes()&&a5.has(window.location.pathname)?Vy.hydrateRoot(pu,S.jsx(jw,{})):(pu.replaceChildren(),Vy.createRoot(pu).render(S.jsx(jw,{})));o5();export{JC as $,C5 as A,ca as B,hS as C,ZM as D,T5 as E,R5 as F,x5 as G,nB as H,nL as I,r4 as J,o4 as K,vr as L,yR as M,ro as N,pS as O,zt as P,lp as Q,dS as R,g5 as S,s4 as T,PA as U,TA as V,m5 as W,v5 as X,y5 as Y,ph as Z,Oh as _,fS as a,D5 as a$,gk as a0,Is as a1,Si as a2,Er as a3,s5 as a4,d3 as a5,QR as a6,M3 as a7,H5 as a8,G5 as a9,Je as aA,Br as aB,OA as aC,xa as aD,wt as aE,qS as aF,$S as aG,uc as aH,mc as aI,lc as aJ,US as aK,BS as aL,Sz as aM,bz as aN,Rz as aO,k5 as aP,Dz as aQ,nR as aR,rR as aS,oR as aT,aR as aU,Pk as aV,l5 as aW,Sx as aX,aN as aY,iN as aZ,WS as a_,Z5 as aa,j5 as ab,X5 as ac,Y5 as ad,rp as ae,op as af,u5 as ag,W5 as ah,J5 as ai,ap as aj,V5 as ak,ip as al,bc as am,gn as an,Vn as ao,N5 as ap,z5 as aq,U5 as ar,B5 as as,np as at,Q5 as au,Gw as av,Ht as aw,ac as ax,tn as ay,sc as az,ic as b,mR as b0,aB as b1,iB as b2,Z3 as b3,kk as b4,ma as b5,dp as b6,L5 as b7,sB as b8,O5 as b9,Mx as bA,J as bB,d5 as bC,vx as bD,c5 as bE,xA as bF,SA as bG,hi as bH,te as bI,ve as bJ,An as bK,Vu as bL,I5 as ba,P5 as bb,A5 as bc,Sr as bd,gh as be,wx as bf,Ub as bg,Kx as bh,qx as bi,_h as bj,so as bk,Rh as bl,M5 as bm,mS as bn,yS as bo,gS as bp,p5 as bq,rB as br,J3 as bs,F5 as bt,oB as bu,sm as bv,up as bw,cp as bx,$5 as by,q5 as bz,Wo as c,St as d,lB as e,jM as f,eL as g,h5 as h,tL as i,S as j,ez as k,K5 as l,ch as m,Ur as n,e_ as o,ex as p,w5 as q,v as r,jh as s,tr as t,pa as u,Kw as v,S5 as w,b5 as x,_5 as y,E5 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.