vendor: 6,392 bytes, lines 1-17
1function RD(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function t2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Um={exports:{}},ml={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Xb;function OD(){if(Xb)return ml;Xb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,s,l){var u=null;if(l!==void 0&&(u=""+l),s.key!==void 0&&(u=""+s.key),"key"in s){l={};for(var f in s)f!=="key"&&(l[f]=s[f])}else l=s;return s=l.ref,{$$typeof:e,type:a,key:u,ref:s!==void 0?s:null,props:l}}return ml.Fragment=t,ml.jsx=n,ml.jsxs=n,ml}var Kb;function _D(){return Kb||(Kb=1,Um.exports=OD()),Um.exports}var c=_D(),Im={exports:{}},Ie={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Zb;function PD(){if(Zb)return Ie;Zb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function b(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function j(P,te,Y){this.props=P,this.context=te,this.refs=S,this.updater=Y||w}j.prototype.isReactComponent={},j.prototype.setState=function(P,te){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,te,"setState")},j.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function N(){}N.prototype=j.prototype;function A(P,te,Y){this.props=P,this.context=te,this.refs=S,this.updater=Y||w}var k=A.prototype=new N;k.constructor=A,E(k,j.prototype),k.isPureReactComponent=!0;var T=Array.isArray,M={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function O(P,te,Y,G,X,ne){return Y=ne.ref,{$$typeof:e,type:P,key:te,ref:Y!==void 0?Y:null,props:ne}}function D(P,te){return O(P.type,te,void 0,void 0,void 0,P.props)}function L(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function I(P){var te={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(Y){return te[Y]})}var Z=/\/+/g;function ce(P,te){return typeof P=="object"&&P!==null&&P.key!=null?I(""+P.key):te.toString(36)}function U(){}function Q(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(U,U):(P.status="pending",P.then(function(te){P.status==="pending"&&(P.status="fulfilled",P.value=te)},function(te){P.status==="pending"&&(P.status="rejected",P.reason=te)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function le(P,te,Y,G,X){var ne=typeof P;(ne==="undefined"||ne==="boolean")&&(P=null);var se=!1;if(P===null)se=!0;else switch(ne){case"bigint":case"string":case"number":se=!0;break;case"object":switch(P.$$typeof){case e:case t:se=!0;break;case v:return se=P._init,le(se(P._payload),te,Y,G,X)}}if(se)return X=X(P),se=G===""?"."+ce(P,0):G,T(X)?(Y="",se!=null&&(Y=se.replace(Z,"$&/")+"/"),le(X,te,Y,"",function(pe){return pe})):X!=null&&(L(X)&&(X=D(X,Y+(X.key==null||P&&P.key===X.key?"":(""+X.key).replace(Z,"$&/")+"/")+se)),te.push(X)),1;se=0;var re=G===""?".":G+":";if(T(P))for(var ie=0;ie<P.length;ie++)G=P[ie],ne=re+ce(G,ie),se+=le(G,te,Y,ne,X);else if(ie=b(P),typeof ie=="function")for(P=ie.call(P),ie=0;!(G=P.next()).done;)G=G.value,ne=re+ce(G,ie++),se+=le(G,te,Y,ne,X);else if(ne==="object"){if(typeof P.then=="function")return le(Q(P),te,Y,G,X);throw te=String(P),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return se}function F(P,te,Y){if(P==null)return P;var G=[],X=0;return le(P,G,"","",function(ne){return te.call(Y,ne,X++)}),G}function H(P){if(P._status===-1){var te=P._result;te=te(),te.then(function(Y){(P._status===0||P._status===-1)&&(P._status=1,P._result=Y)},function(Y){(P._status===0||P._status===-1)&&(P._status=2,P._result=Y)}),P._status===-1&&(P._status=0,P._result=te)}if(P._status===1)return P._result.default;throw P._result}var V=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function J(){}
17return Ie.Children={map:F,forEach:function(P,te,Y){F(P,function(){te.apply(this,arguments)},Y)},count:function(P){var te=0;return F(P,function(){te++}),te},toArray:function(P){return F(P,function(te){return te})||[]},only:function(P){if(!L(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ie.Component=j,Ie.Fragment=n,Ie.Profiler=s,Ie.PureComponent=A,Ie.StrictMode=a,Ie.Suspense=h,Ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ie.act=function(){throw Error("act(...) is not supported in production builds of React.")},Ie.cache=function(P){return function(){return P.apply(null,arguments)}},Ie.cloneElement=function(P,te,Y){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var G=E({},P.props),X=P.key,ne=void 0;if(te!=null)for(se in te.ref!==void 0&&(ne=void 0),te.key!==void 0&&(X=""+te.key),te)!_.call(te,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&te.ref===void 0||(G[se]=te[se]);var se=arguments.length-2;if(se===1)G.children=Y;else if(1<se){for(var re=Array(se),ie=0;ie<se;ie++)re[ie]=arguments[ie+2];G.children=re}return O(P.type,X,void 0,void 0,ne,G)},Ie.createContext=function(P){return P={$$typeof:u,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:l,_context:P},P},Ie.createElement=function(P,te,Y){var G,X={},ne=null;if(te!=null)for(G in te.key!==void 0&&(ne=""+te.key),te)_.call(te,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(X[G]=te[G]);var se=arguments.length-2;if(se===1)X.children=Y;else if(1<se){for(var re=Array(se),ie=0;ie<se;ie++)re[ie]=arguments[ie+2];X.children=re}if(P&&P.defaultProps)for(G in se=P.defaultProps,se)X[G]===void 0&&(X[G]=se[G]);return O(P,ne,void 0,void 0,null,X)},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(P){return{$$typeof:f,render:P}},Ie.isValidElement=L,Ie.lazy=function(P){return{$$typeof:v,_payload:{_status:-1,_result:P},_init:H}},Ie.memo=function(P,te){return{$$typeof:m,type:P,compare:te===void 0?null:te}},Ie.startTransition=function(P){var te=M.T,Y={};M.T=Y;try{var G=P(),X=M.S;X!==null&&X(Y,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(J,V)}catch(ne){V(ne)}finally{M.T=te}},Ie.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ie.use=function(P){return M.H.use(P)},Ie.useActionState=function(P,te,Y){return M.H.useActionState(P,te,Y)},Ie.useCallback=function(P,te){return M.H.useCallback(P,te)},Ie.useContext=function(P){return M.H.useContext(P)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(P,te){return M.H.useDeferredValue(P,te)},Ie.useEffect=function(P,te){return M.H.useEffect(P,te)},Ie.useId=function(){return M.H.useId()},Ie.useImperativeHandle=function(P,te,Y){return M.H.useImperativeHandle(P,te,Y)},Ie.useInsertionEffect=function(P,te){return M.H.useInsertionEffect(P,te)},Ie.useLayoutEffect=function(P,te){return M.H.useLayoutEffect(P,te)},Ie.useMemo=function(P,te){return M.H.useMemo(P,te)},Ie.useOptimistic=function(P,te){return M.H.useOptimistic(P,te)},Ie.useReducer=function(P,te,Y){return M.H.useReducer(P,te,Y)},Ie.useRef=function(P){return M.H.useRef(P)},Ie.useState=function(P){return M.H.useState(P)},Ie.useSyncExternalStore=function(P,te,Y){return M.H.useSyncExternalStore(P,te,Y)},Ie.useTransition=function(){return M.H.useTransition()},Ie.version="19.0.0",Ie}var Qb;function zg(){return Qb||(Qb=1,Im.exports=PD()),Im.exports}var x=zg();const z=t2(x),n2=RD({__proto__:null,default:z},[x]),Bg=x.createContext({});function $d(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yd=x.createContext(null),Bl=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class LD extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const a=n.offsetParent,s=a instanceof HTMLElement&&a.offsetWidth||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=s-l.width-l.left}return null}componentDidUpdate(){}render(){return this.props.children}}function zD({children:e,isPresent:t,anchorX:n}){const a=x.useId(),s=x.useRef(null),l=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=x.useContext(Bl);return x.useInsertionEffect(()=>{const{width:f,height:h,top:m,left:v,right:g}=l.current;if(t||!s.current||!f||!h)return;
vendor: 3,043 bytes, lines 17-25
17const b=n==="left"?`left: ${v}`:`right: ${g}`;s.current.dataset.motionPopId=a;const w=document.createElement("style");return u&&(w.nonce=u),document.head.appendChild(w),w.sheet&&w.sheet.insertRule(` 18 [data-motion-pop-id="${a}"] { 19 position: absolute !important; 20 width: ${f}px !important; 21 height: ${h}px !important; 22 ${b}px !important; 23 top: ${m}px !important; 24 } 25 `),()=>{document.head.removeChild(w)}},[t]),c.jsx(LD,{isPresent:t,childRef:s,sizeRef:l,children:x.cloneElement(e,{ref:s})})}const BD=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:s,presenceAffectsLayout:l,mode:u,anchorX:f})=>{const h=$d(FD),m=x.useId(),v=x.useCallback(b=>{h.set(b,!0);for(const w of h.values())if(!w)return;a&&a()},[h,a]),g=x.useMemo(()=>({id:m,initial:t,isPresent:n,custom:s,onExitComplete:v,register:b=>(h.set(b,!1),()=>h.delete(b))}),l?[Math.random(),v]:[n,v]);return x.useMemo(()=>{h.forEach((b,w)=>h.set(w,!1))},[n]),x.useEffect(()=>{!n&&!h.size&&a&&a()},[n]),u==="popLayout"&&(e=c.jsx(zD,{isPresent:n,anchorX:f,children:e})),c.jsx(Yd.Provider,{value:g,children:e})};function FD(){return new Map}function r2(e=!0){const t=x.useContext(Yd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:a,register:s}=t,l=x.useId();x.useEffect(()=>{if(e)return s(l)},[e]);const u=x.useCallback(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}const Bu=e=>e.key||"";function Jb(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const Fg=typeof window<"u",a2=Fg?x.useLayoutEffect:x.useEffect,va=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:s=!0,mode:l="sync",propagate:u=!1,anchorX:f="left"})=>{const[h,m]=r2(u),v=x.useMemo(()=>Jb(e),[e]),g=u&&!h?[]:v.map(Bu),b=x.useRef(!0),w=x.useRef(v),E=$d(()=>new Map),[S,j]=x.useState(v),[N,A]=x.useState(v);a2(()=>{b.current=!1,w.current=v;for(let M=0;M<N.length;M++){const _=Bu(N[M]);g.includes(_)?E.delete(_):E.get(_)!==!0&&E.set(_,!1)}},[N,g.length,g.join("-")]);const k=[];if(v!==S){let M=[...v];for(let _=0;_<N.length;_++){const O=N[_],D=Bu(O);g.includes(D)||(M.splice(_,0,O),k.push(O))}return l==="wait"&&k.length&&(M=k),A(Jb(M)),j(v),null}const{forceRender:T}=x.useContext(Bg);return c.jsx(c.Fragment,{children:N.map(M=>{const _=Bu(M),O=u&&!h?!1:v===N||g.includes(_),D=()=>{if(E.has(_))E.set(_,!0);else return;let L=!0;E.forEach(I=>{I||(L=!1)}),L&&(T==null||T(),A(w.current),u&&(m==null||m()),a&&a())};return c.jsx(BD,{isPresent:O,initial:!b.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:l,onExitComplete:O?void 0:D,anchorX:f,children:M},_)})})},Wn=e=>e;let o2=Wn;function Vg(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xs=(e,t,n)=>{const a=t-e;return a===0?1:(n-e)/a},pa=e=>e*1e3,ga=e=>e/1e3,Ug={skipAnimations:!1,useManualTiming:!1},Fu=["read","resolveKeyframes","update","preRender","render","postRender"],e1={value:null};function VD(e,t){let n=new Set,a=new Set,s=!1,l=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1},h=0;
vendor: 15,138 bytes, line 25
25function m(g){u.has(g)&&(v.schedule(g),e()),h++,g(f)}const v={schedule:(g,b=!1,w=!1)=>{const S=w&&s?n:a;return b&&u.add(g),S.has(g)||S.add(g),g},cancel:g=>{a.delete(g),u.delete(g)},process:g=>{if(f=g,s){l=!0;return}s=!0,[n,a]=[a,n],n.forEach(m),t&&e1.value&&e1.value.frameloop[t].push(h),h=0,n.clear(),s=!1,l&&(l=!1,v.process(g))}};return v}const UD=40;function s2(e,t){let n=!1,a=!0;const s={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Fu.reduce((N,A)=>(N[A]=VD(l,t?A:void 0),N),{}),{read:f,resolveKeyframes:h,update:m,preRender:v,render:g,postRender:b}=u,w=()=>{const N=performance.now();n=!1,s.delta=a?1e3/60:Math.max(Math.min(N-s.timestamp,UD),1),s.timestamp=N,s.isProcessing=!0,f.process(s),h.process(s),m.process(s),v.process(s),g.process(s),b.process(s),s.isProcessing=!1,n&&t&&(a=!1,e(w))},E=()=>{n=!0,a=!0,s.isProcessing||e(w)};return{schedule:Fu.reduce((N,A)=>{const k=u[A];return N[A]=(T,M=!1,_=!1)=>(n||E(),k.schedule(T,M,_)),N},{}),cancel:N=>{for(let A=0;A<Fu.length;A++)u[Fu[A]].cancel(N)},state:s,steps:u}}const{schedule:mt,cancel:Za,state:cn,steps:Hm}=s2(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wn,!0),i2=x.createContext({strict:!1}),t1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ks={};for(const e in t1)Ks[e]={isEnabled:t=>t1[e].some(n=>!!t[n])};function ID(e){for(const t in e)Ks[t]={...Ks[t],...e[t]}}const HD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function hd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HD.has(e)}let l2=e=>!hd(e);function c2(e){e&&(l2=t=>t.startsWith("on")?!hd(t):e(t))}try{c2(require("@emotion/is-prop-valid").default)}catch{}function $D(e,t,n){const a={};for(const s in e)s==="values"&&typeof e.values=="object"||(l2(s)||n===!0&&hd(s)||!t&&!hd(s)||e.draggable&&s.startsWith("onDrag"))&&(a[s]=e[s]);return a}function YD({children:e,isValidProp:t,...n}){t&&c2(t),n={...x.useContext(Bl),...n},n.isStatic=$d(()=>n.isStatic);const a=x.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return c.jsx(Bl.Provider,{value:a,children:e})}function WD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...a)=>e(...a);return new Proxy(n,{get:(a,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Wd=x.createContext({});function Gd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Fl(e){return typeof e=="string"||Array.isArray(e)}const Ig=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hg=["initial",...Ig];function qd(e){return Gd(e.animate)||Hg.some(t=>Fl(e[t]))}function u2(e){return!!(qd(e)||e.variants)}function GD(e,t){if(qd(e)){const{initial:n,animate:a}=e;return{initial:n===!1||Fl(n)?n:void 0,animate:Fl(a)?a:void 0}}return e.inherit!==!1?t:{}}function qD(e){const{initial:t,animate:n}=GD(e,x.useContext(Wd));return x.useMemo(()=>({initial:t,animate:n}),[n1(t),n1(n)])}function n1(e){return Array.isArray(e)?e.join(" "):e}const XD=Symbol.for("motionComponentSymbol");function Fs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function KD(e,t,n){return x.useCallback(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),n&&(typeof n=="function"?n(a):Fs(n)&&(n.current=a))},[t])}const $g=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ZD="framerAppearId",d2="data-"+$g(ZD),{schedule:Yg}=s2(queueMicrotask,!1),f2=x.createContext({});function QD(e,t,n,a,s){var l,u;const{visualElement:f}=x.useContext(Wd),h=x.useContext(i2),m=x.useContext(Yd),v=x.useContext(Bl).reducedMotion,g=x.useRef(null);a=a||h.renderer,!g.current&&a&&(g.current=a(e,{visualState:t,parent:f,props:n,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:v}));const b=g.current,w=x.useContext(f2);b&&!b.projection&&s&&(b.type==="html"||b.type==="svg")&&JD(g.current,n,s,w);const E=x.useRef(!1);x.useInsertionEffect(()=>{b&&E.current&&b.update(n,m)});const S=n[d2],j=x.useRef(!!S&&!(!((l=window.MotionHandoffIsComplete)===null||l===void 0)&&l.call(window,S))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,S)));return a2(()=>{b&&(E.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),Yg.render(b.render),j.current&&b.animationState&&b.animationState.animateChanges())}),x.useEffect(()=>{b&&(!j.current&&b.animationState&&b.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var N;(N=window.MotionHandoffMarkAsComplete)===null||N===void 0||N.call(window,S)}),j.current=!1))}),b}function JD(e,t,n,a){const{layoutId:s,layout:l,drag:u,dragConstraints:f,layoutScroll:h,layoutRoot:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:h2(e.parent)),e.projection.setOptions({layoutId:s,layout:l,alwaysMeasureLayout:!!u||f&&Fs(f),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:a,layoutScroll:h,layoutRoot:m})}function h2(e){if(e)return e.options.allowProjection!==!1?e.projection:h2(e.parent)}function eR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:a,Component:s}){var l,u;e&&ID(e);function f(m,v){let g;const b={...x.useContext(Bl),...m,layoutId:tR(m)},{isStatic:w}=b,E=qD(m),S=a(m,w);if(!w&&Fg){nR();const j=rR(b);g=j.MeasureLayout,E.visualElement=QD(s,S,b,t,j.ProjectionNode)}return c.jsxs(Wd.Provider,{value:E,children:[g&&E.visualElement?c.jsx(g,{visualElement:E.visualElement,...b}):null,n(s,m,KD(S,E.visualElement,v),S,w,E.visualElement)]})}f.displayName=`motion.${typeof s=="string"?s:`create(${(u=(l=s.displayName)!==null&&l!==void 0?l:s.name)!==null&&u!==void 0?u:""})`}`;const h=x.forwardRef(f);return h[XD]=s,h}function tR({layoutId:e}){const t=x.useContext(Bg).id;return t&&e!==void 0?t+"-"+e:e}function nR(e,t){x.useContext(i2).strict}function rR(e){const{drag:t,layout:n}=Ks;if(!t&&!n)return{};const a={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const m2=e=>t=>typeof t=="string"&&t.startsWith(e),Wg=m2("--"),aR=m2("var(--"),Gg=e=>aR(e)?oR.test(e.split("/*")[0].trim()):!1,oR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vl={};function sR(e){for(const t in e)Vl[t]=e[t],Wg(t)&&(Vl[t].isCSSVariable=!0)}const ai=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wo=new Set(ai);function p2(e,{layout:t,layoutId:n}){return Wo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vl[e]||e==="opacity")}const bn=e=>!!(e&&e.getVelocity),g2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,xa=(e,t,n)=>n>t?t:n<e?e:n,oi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ul={...oi,transform:e=>xa(0,1,e)},Vu={...oi,default:1},ac=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qa=ac("deg"),Br=ac("%"),Pe=ac("px"),iR=ac("vh"),lR=ac("vw"),r1={...Br,parse:e=>Br.parse(e)/100,transform:e=>Br.transform(e*100)},cR={borderWidth:Pe,borderTopWidth:Pe,borderRightWidth:Pe,borderBottomWidth:Pe,borderLeftWidth:Pe,borderRadius:Pe,radius:Pe,borderTopLeftRadius:Pe,borderTopRightRadius:Pe,borderBottomRightRadius:Pe,borderBottomLeftRadius:Pe,width:Pe,maxWidth:Pe,height:Pe,maxHeight:Pe,top:Pe,right:Pe,bottom:Pe,left:Pe,padding:Pe,paddingTop:Pe,paddingRight:Pe,paddingBottom:Pe,paddingLeft:Pe,margin:Pe,marginTop:Pe,marginRight:Pe,marginBottom:Pe,marginLeft:Pe,backgroundPositionX:Pe,backgroundPositionY:Pe},uR={rotate:qa,rotateX:qa,rotateY:qa,rotateZ:qa,scale:Vu,scaleX:Vu,scaleY:Vu,scaleZ:Vu,skew:qa,skewX:qa,skewY:qa,distance:Pe,translateX:Pe,translateY:Pe,translateZ:Pe,x:Pe,y:Pe,z:Pe,perspective:Pe,transformPerspective:Pe,opacity:Ul,originX:r1,originY:r1,originZ:Pe},a1={...oi,transform:Math.round},qg={...cR,...uR,zIndex:a1,size:Pe,fillOpacity:Ul,strokeOpacity:Ul,numOctaves:a1},dR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fR=ai.length;function hR(e,t,n){let a="",s=!0;for(let l=0;l<fR;l++){const u=ai[l],f=e[u];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(u.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||n){const m=g2(f,qg[u]);if(!h){s=!1;const v=dR[u]||u;a+=`${v}(${m}) `}n&&(t[u]=m)}}return a=a.trim(),n?a=n(t,s?"":a):s&&(a="none"),a}function Xg(e,t,n){const{style:a,vars:s,transformOrigin:l}=e;let u=!1,f=!1;for(const h in t){const m=t[h];if(Wo.has(h)){u=!0;continue}else if(Wg(h)){s[h]=m;continue}else{const v=g2(m,qg[h]);h.startsWith("origin")?(f=!0,l[h]=v):a[h]=v}}if(t.transform||(u||n?a.transform=hR(t,e.transform,n):a.transform&&(a.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:v=0}=l;a.transformOrigin=`${h} ${m} ${v}`}}const Kg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function v2(e,t,n){for(const a in t)!bn(t[a])&&!p2(a,n)&&(e[a]=t[a])}function mR({transformTemplate:e},t){return x.useMemo(()=>{const n=Kg();return Xg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function pR(e,t){const n=e.style||{},a={};return v2(a,n,e),Object.assign(a,mR(e,t)),a}function gR(e,t){const n={},a=pR(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const vR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Zg(e){return typeof e!="string"||e.includes("-")?!1:!!(vR.indexOf(e)>-1||/[A-Z]/u.test(e))}const xR={offset:"stroke-dashoffset",array:"stroke-dasharray"},yR={offset:"strokeDashoffset",array:"strokeDasharray"};function bR(e,t,n=1,a=0,s=!0){e.pathLength=1;const l=s?xR:yR;e[l.offset]=Pe.transform(-a);const u=Pe.transform(t),f=Pe.transform(n);e[l.array]=`${u} ${f}`}function o1(e,t,n){return typeof e=="string"?e:Pe.transform(t+n*e)}function wR(e,t,n){const a=o1(t,e.x,e.width),s=o1(n,e.y,e.height);return`${a} ${s}`}function Qg(e,{attrX:t,attrY:n,attrScale:a,originX:s,originY:l,pathLength:u,pathSpacing:f=1,pathOffset:h=0,...m},v,g){if(Xg(e,m,g),v){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:w,dimensions:E}=e;b.transform&&(E&&(w.transform=b.transform),delete b.transform),E&&(s!==void 0||l!==void 0||w.transform)&&(w.transformOrigin=wR(E,s!==void 0?s:.5,l!==void 0?l:.5)),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),a!==void 0&&(b.scale=a),u!==void 0&&bR(b,u,f,h,!1)}const x2=()=>({...Kg(),attrs:{}}),Jg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function SR(e,t,n,a){const s=x.useMemo(()=>{const l=x2();return Qg(l,t,Jg(a),e.transformTemplate),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};v2(l,e.style,e),s.style={...l,...s.style}}return s}function ER(e=!1){return(n,a,s,{latestValues:l},u)=>{const h=(Zg(n)?SR:gR)(a,l,u,n),m=$D(a,typeof n=="string",e),v=n!==x.Fragment?{...m,...h,ref:s}:{},{children:g}=a,b=x.useMemo(()=>bn(g)?g.get():g,[g]);return x.createElement(n,{...v,children:b})}}function s1(e){const t=[{},{}];return e==null||e.values.forEach((n,a)=>{t[0][a]=n.get(),t[1][a]=n.getVelocity()}),t}function ev(e,t,n,a){if(typeof t=="function"){const[s,l]=s1(a);t=t(n!==void 0?n:e.custom,s,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,l]=s1(a);t=t(n!==void 0?n:e.custom,s,l)}return t}const Ip=e=>Array.isArray(e),CR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),jR=e=>Ip(e)?e[e.length-1]||0:e;function od(e){const t=bn(e)?e.get():e;return CR(t)?t.toValue():t}function NR({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},a,s,l){const u={latestValues:TR(a,s,l,e),renderState:t()};return n&&(u.onMount=f=>n({props:a,current:f,...u}),u.onUpdate=f=>n(f)),u}const y2=e=>(t,n)=>{const a=x.useContext(Wd),s=x.useContext(Yd),l=()=>NR(e,t,a,s);return n?l():$d(l)};function TR(e,t,n,a){const s={},l=a(e,{});for(const b in l)s[b]=od(l[b]);let{initial:u,animate:f}=e;const h=qd(e),m=u2(e);t&&m&&!h&&e.inherit!==!1&&(u===void 0&&(u=t.initial),f===void 0&&(f=t.animate));let v=n?n.initial===!1:!1;v=v||u===!1;const g=v?f:u;if(g&&typeof g!="boolean"&&!Gd(g)){const b=Array.isArray(g)?g:[g];for(let w=0;w<b.length;w++){const E=ev(e,b[w]);if(E){const{transitionEnd:S,transition:j,...N}=E;for(const A in N){let k=N[A];if(Array.isArray(k)){const T=v?k.length-1:0;k=k[T]}k!==null&&(s[A]=k)}for(const A in S)s[A]=S[A]}}}return s}function tv(e,t,n){var a;const{style:s}=e,l={};for(const u in s)(bn(s[u])||t.style&&bn(t.style[u])||p2(u,e)||((a=n==null?void 0:n.getValue(u))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(l[u]=s[u]);return l}const AR={useVisualState:y2({scrapeMotionValuesFromProps:tv,createRenderState:Kg})};function b2(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function w2(e,{style:t,vars:n},a,s){Object.assign(e.style,t,s&&s.getProjectionStyles(a));for(const l in n)e.style.setProperty(l,n[l])}const S2=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function E2(e,t,n,a){w2(e,t,void 0,a);for(const s in t.attrs)e.setAttribute(S2.has(s)?s:$g(s),t.attrs[s])}function C2(e,t,n){const a=tv(e,t,n);for(const s in e)if(bn(e[s])||bn(t[s])){const l=ai.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;a[l]=e[s]}return a}const i1=["x","y","width","height","cx","cy","r"],MR={useVisualState:y2({scrapeMotionValuesFromProps:C2,createRenderState:x2,onUpdate:({props:e,prevProps:t,current:n,renderState:a,latestValues:s})=>{if(!n)return;let l=!!e.drag;if(!l){for(const f in s)if(Wo.has(f)){l=!0;break}}if(!l)return;let u=!t;if(t)for(let f=0;f<i1.length;f++){const h=i1[f];e[h]!==t[h]&&(u=!0)}u&&mt.read(()=>{b2(n,a),mt.render(()=>{Qg(a,s,Jg(n.tagName),e.transformTemplate),E2(n,a)})})}})};function kR(e,t){return function(a,{forwardMotionProps:s}={forwardMotionProps:!1}
vendor: 14,331 bytes, line 25
25){const u={...Zg(a)?MR:AR,preloadedFeatures:e,useRender:ER(s),createVisualElement:t,Component:a};return eR(u)}}function Il(e,t,n){const a=e.getProps();return ev(a,t,n!==void 0?n:a.custom,e)}const DR=Vg(()=>window.ScrollTimeline!==void 0);class RR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let a=0;a<this.animations.length;a++)this.animations[a][t]=n}attachTimeline(t,n){const a=this.animations.map(s=>{if(DR()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{a.forEach((s,l)=>{s&&s(),this.animations[l].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class OR extends RR{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function nv(e,t){return e?e[t]||e.default||e:void 0}const Hp=2e4;function j2(e){let t=0;const n=50;let a=e.next(t);for(;!a.done&&t<Hp;)t+=n,a=e.next(t);return t>=Hp?1/0:t}function rv(e){return typeof e=="function"}function l1(e,t){e.timeline=t,e.onfinish=null}const av=e=>Array.isArray(e)&&typeof e[0]=="number",_R={linearEasing:void 0};function PR(e,t){const n=Vg(e);return()=>{var a;return(a=_R[t])!==null&&a!==void 0?a:n()}}const md=PR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),N2=(e,t,n=10)=>{let a="";const s=Math.max(Math.round(t/n),2);for(let l=0;l<s;l++)a+=e(Xs(0,s-1,l))+", ";return`linear(${a.substring(0,a.length-2)})`};function T2(e){return!!(typeof e=="function"&&md()||!e||typeof e=="string"&&(e in $p||md())||av(e)||Array.isArray(e)&&e.every(T2))}const Nl=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`,$p={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nl([0,.65,.55,1]),circOut:Nl([.55,0,1,.45]),backIn:Nl([.31,.01,.66,-.59]),backOut:Nl([.33,1.53,.69,.99])};function A2(e,t){if(e)return typeof e=="function"&&md()?N2(e,t):av(e)?Nl(e):Array.isArray(e)?e.map(n=>A2(n,t)||$p.easeOut):$p[e]}const xr={x:!1,y:!1};function M2(){return xr.x||xr.y}function LR(e,t,n){var a;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const l=(a=void 0)!==null&&a!==void 0?a:s.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}function k2(e,t){const n=LR(e),a=new AbortController,s={passive:!0,...t,signal:a.signal};return[n,s,()=>a.abort()]}function c1(e){return!(e.pointerType==="touch"||M2())}function zR(e,t,n={}){const[a,s,l]=k2(e,n),u=f=>{if(!c1(f))return;const{target:h}=f,m=t(h,f);if(typeof m!="function"||!h)return;const v=g=>{c1(g)&&(m(g),h.removeEventListener("pointerleave",v))};h.addEventListener("pointerleave",v,s)};return a.forEach(f=>{f.addEventListener("pointerenter",u,s)}),l}function Dl(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}const D2=(e,t)=>t?e===t?!0:D2(e,t.parentElement):!1,ov=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,BR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function FR(e){return BR.has(e.tagName)||e.tabIndex!==-1}const Tl=new WeakSet;function u1(e){return t=>{t.key==="Enter"&&e(t)}}function $m(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const VR=(e,t)=>{const n=e.currentTarget;if(!n)return;const a=u1(()=>{if(Tl.has(n))return;$m(n,"down");const s=u1(()=>{$m(n,"up")}),l=()=>$m(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)};function d1(e){return ov(e)&&!M2()}function UR(e,t,n={}){const[a,s,l]=k2(e,n),u=f=>{const h=f.currentTarget;if(!h||!d1(f)||Tl.has(h))return;Tl.add(h),Dl(f,"set");const m=t(h,f),v=(w,E)=>{h.removeEventListener("pointerup",g),h.removeEventListener("pointercancel",b),Dl(w,"release"),!(!d1(w)||!Tl.has(h))&&(Tl.delete(h),typeof m=="function"&&m(w,{success:E}))},g=w=>{(w.isTrusted?IR(w,h instanceof Element?h.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?v(w,!1):v(w,!(h instanceof Element)||D2(h,w.target))},b=w=>{v(w,!1)};h.addEventListener("pointerup",g,s),h.addEventListener("pointercancel",b,s),h.addEventListener("lostpointercapture",b,s)};return a.forEach(f=>{f=n.useGlobalTarget?window:f;let h=!1;f instanceof HTMLElement&&(h=!0,!FR(f)&&f.getAttribute("tabindex")===null&&(f.tabIndex=0)),f.addEventListener("pointerdown",u,s),h&&f.addEventListener("focus",m=>VR(m,s),s)}),l}function IR(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}function HR(e){return e==="x"||e==="y"?xr[e]?null:(xr[e]=!0,()=>{xr[e]=!1}):xr.x||xr.y?null:(xr.x=xr.y=!0,()=>{xr.x=xr.y=!1})}const R2=new Set(["width","height","top","left","right","bottom",...ai]);let sd;function $R(){sd=void 0}const Fr={now:()=>(sd===void 0&&Fr.set(cn.isProcessing||Ug.useManualTiming?cn.timestamp:performance.now()),sd),set:e=>{sd=e,queueMicrotask($R)}};function sv(e,t){e.indexOf(t)===-1&&e.push(t)}function iv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class lv{constructor(){this.subscriptions=[]}add(t){return sv(this.subscriptions,t),()=>iv(this.subscriptions,t)}notify(t,n,a){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,a);else for(let l=0;l<s;l++){const u=this.subscriptions[l];u&&u(t,n,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function O2(e,t){return t?e*(1e3/t):0}const f1=30,YR=e=>!isNaN(parseFloat(e));class WR{constructor(t,n={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,s=!0)=>{const l=Fr.now();this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Fr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=YR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lv);const a=this.events[t].add(n);return t==="change"?()=>{a(),mt.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,a){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Fr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>f1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,f1);return O2(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Hl(e,t){return new WR(e,t)}function GR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hl(n))}function qR(e,t){const n=Il(e,t);let{transitionEnd:a={},transition:s={},...l}=n||{};l={...l,...a};for(const u in l){const f=jR(l[u]);GR(e,u,f)}}function XR(e){return!!(bn(e)&&e.add)}function Yp(e,t){const n=e.getValue("willChange");if(XR(n))return n.add(t)}function _2(e){return e.props[d2]}const P2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,KR=1e-7,ZR=12;function QR(e,t,n,a,s){let l,u,f=0;do u=t+(n-t)/2,l=P2(u,a,s)-e,l>0?n=u:t=u;while(Math.abs(l)>KR&&++f<ZR);return u}function oc(e,t,n,a){if(e===t&&n===a)return Wn;const s=l=>QR(l,0,1,e,n);return l=>l===0||l===1?l:P2(s(l),t,a)}const L2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,z2=e=>t=>1-e(1-t),B2=oc(.33,1.53,.69,.99),cv=z2(B2),F2=L2(cv),V2=e=>(e*=2)<1?.5*cv(e):.5*(2-Math.pow(2,-10*(e-1))),uv=e=>1-Math.sin(Math.acos(e)),U2=z2(uv),I2=L2(uv),H2=e=>/^0[^.\s]+$/u.test(e);function JR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||H2(e):!0}const Rl=e=>Math.round(e*1e5)/1e5,dv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function eO(e){return e==null}const tO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fv=(e,t)=>n=>!!(typeof n=="string"&&tO.test(n)&&n.startsWith(e)||t&&!eO(n)&&Object.prototype.hasOwnProperty.call(n,t)),$2=(e,t,n)=>a=>{if(typeof a!="string")return a;const[s,l,u,f]=a.match(dv);return{[e]:parseFloat(s),[t]:parseFloat(l),[n]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},nO=e=>xa(0,255,e),Ym={...oi,transform:e=>Math.round(nO(e))},zo={test:fv("rgb","red"),parse:$2("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+Ym.transform(e)+", "+Ym.transform(t)+", "+Ym.transform(n)+", "+Rl(Ul.transform(a))+")"};function rO(e){let t="",n="",a="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,a+=a,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:s?parseInt(s,16)/255:1}}const Wp={test:fv("#"),parse:rO,transform:zo.transform},Vs={test:fv("hsl","hue"),parse:$2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+Br.transform(Rl(t))+", "+Br.transform(Rl(n))+", "+Rl(Ul.transform(a))+")"},xn={test:e=>zo.test(e)||Wp.test(e)||Vs.test(e),parse:e=>zo.test(e)?zo.parse(e):Vs.test(e)?Vs.parse(e):Wp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?zo.transform(e):Vs.transform(e)},aO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function oO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(dv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(aO))===null||n===void 0?void 0:n.length)||0)>0}const Y2="number",W2="color",sO="var",iO="var(",h1="${}",lO=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function $l(e){const t=e.toString(),n=[],a={color:[],number:[],var:[]},s=[];let l=0;const f=t.replace(lO,h=>(xn.test(h)?(a.color.push(l),s.push(W2),n.push(xn.parse(h))):h.startsWith(iO)?(a.var.push(l),s.push(sO),n.push(h)):(a.number.push(l),s.push(Y2),n.push(parseFloat(h))),++l,h1)).split(h1);return{values:n,split:f,indexes:a,types:s}}function G2(e){return $l(e).values}function q2(e){const{split:t,types:n}=$l(e),a=t.length;return s=>{let l="";for(let u=0;u<a;u++)if(l+=t[u],s[u]!==void 0){const f=n[u];f===Y2?l+=Rl(s[u]):f===W2?l+=xn.transform(s[u]):l+=s[u]}return l}}const cO=e=>typeof e=="number"?0:e;function uO(e){const t=G2(e);return q2(e)(t.map(cO))}const Qa={test:oO,parse:G2,createTransformer:q2,getAnimatableNone:uO},dO=new Set(["brightness","contrast","saturate","opacity"]);function fO(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=n.match(dv)||[];if(!a)return e;const s=n.replace(a,"");let l=dO.has(t)?1:0;return a!==n&&(l*=100),t+"("+l+s+")"}const hO=/\b([a-z-]*)\(.*?\)/gu,Gp={...Qa,getAnimatableNone:e=>{const t=e.match(hO);return t?t.map(fO).join(" "):e}},mO={...qg,color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:Gp,WebkitFilter:Gp},hv=e=>mO[e];function X2(e,t){let n=hv(e);return n!==Gp&&(n=Qa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pO=new Set(["auto","none","0"]);function gO(e,t,n){let a=0,s;for(;a<e.length&&!s;){const l=e[a];typeof l=="string"&&!pO.has(l)&&$l(l).values.length&&(s=e[a]),a++}if(s&&n)for(const l of t)e[l]=X2(n,s)}const m1=e=>e===oi||e===Pe,p1=(e,t)=>parseFloat(e.split(", ")[t]),g1=(e,t)=>(n,{transform:a})=>{if(a==="none"||!a)return 0;const s=a.match(/^matrix3d\((.+)\)$/u);if(s)return p1(s[1],t);{const l=a.match(/^matrix\((.+)\)$/u);return l?p1(l[1],e):0}},vO=new Set(["x","y","z"]),xO=ai.filter(e=>!vO.has(e));function yO(e){const t=[];return xO.forEach(n=>{const a=e.getValue(n);a!==void 0&&(t.push([n,a.get()]),a.set(n.startsWith("scale")?1:0))}),t}const Zs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:g1(4,13),y:g1(5,14)};Zs.translateX=Zs.x;Zs.translateY=Zs.y;const Fo=new Set;let qp=!1,Xp=!1;function K2(){if(Xp){const e=Array.from(Fo).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),n=new Map;t.forEach(a=>{const s=yO(a);s.length&&(n.set(a,s),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const s=n.get(a);
vendor: 15,155 bytes, line 25
25s&&s.forEach(([l,u])=>{var f;(f=a.getValue(l))===null||f===void 0||f.set(u)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Xp=!1,qp=!1,Fo.forEach(e=>e.complete()),Fo.clear()}function Z2(){Fo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xp=!0)})}function bO(){Z2(),K2()}class mv{constructor(t,n,a,s,l,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=a,this.motionValue=s,this.element=l,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fo.add(this),qp||(qp=!0,mt.read(Z2),mt.resolveKeyframes(K2))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:a,motionValue:s}=this;for(let l=0;l<t.length;l++)if(t[l]===null)if(l===0){const u=s==null?void 0:s.get(),f=t[t.length-1];if(u!==void 0)t[0]=u;else if(a&&n){const h=a.readValue(n,f);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=f),s&&u===void 0&&s.set(t[0])}else t[l]=t[l-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Q2=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),wO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SO(e){const t=wO.exec(e);if(!t)return[,];const[,n,a,s]=t;return[`--${n??a}`,s]}function J2(e,t,n=1){const[a,s]=SO(e);if(!a)return;const l=window.getComputedStyle(t).getPropertyValue(a);if(l){const u=l.trim();return Q2(u)?parseFloat(u):u}return Gg(s)?J2(s,t,n+1):s}const eE=e=>t=>t.test(e),EO={test:e=>e==="auto",parse:e=>e},tE=[oi,Pe,Br,qa,lR,iR,EO],v1=e=>tE.find(eE(e));class nE extends mv{constructor(t,n,a,s,l){super(t,n,a,s,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let m=t[h];if(typeof m=="string"&&(m=m.trim(),Gg(m))){const v=J2(m,n.current);v!==void 0&&(t[h]=v),h===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!R2.has(a)||t.length!==2)return;const[s,l]=t,u=v1(s),f=v1(l);if(u!==f)if(m1(u)&&m1(f))for(let h=0;h<t.length;h++){const m=t[h];typeof m=="string"&&(t[h]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,a=[];for(let s=0;s<t.length;s++)JR(t[s])&&a.push(s);a.length&&gO(t,a,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zs[a](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(a,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:a,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const l=n.getValue(a);l&&l.jump(this.measuredOrigin,!1);const u=s.length-1,f=s[u];s[u]=Zs[a](n.measureViewportBox(),window.getComputedStyle(n.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([h,m])=>{n.getValue(h).set(m)}),this.resolveNoneKeyframes()}}const x1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qa.test(e)||e==="0")&&!e.startsWith("url("));function CO(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function jO(e,t,n,a){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],u=x1(s,t),f=x1(l,t);return!u||!f?!1:CO(e)||(n==="spring"||rv(n))&&a}const NO=e=>e!==null;function Xd(e,{repeat:t,repeatType:n="loop"},a){const s=e.filter(NO),l=t&&n!=="loop"&&t%2===1?0:s.length-1;return!l||a===void 0?s[l]:a}const TO=40;class rE{constructor({autoplay:t=!0,delay:n=0,type:a="keyframes",repeat:s=0,repeatDelay:l=0,repeatType:u="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Fr.now(),this.options={autoplay:t,delay:n,type:a,repeat:s,repeatDelay:l,repeatType:u,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>TO?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bO(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Fr.now(),this.hasAttemptedResolve=!0;const{name:a,type:s,velocity:l,delay:u,onComplete:f,onUpdate:h,isGenerator:m}=this.options;if(!m&&!jO(t,a,s,l))if(u)this.options.duration=0;else{h&&h(Xd(t,this.options,n)),f&&f(),this.resolveFinishedPromise();return}const v=this.initPlayback(t,n);v!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...v},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ct=(e,t,n)=>e+(t-e)*n;function Wm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AO({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,t/=100,n/=100;let s=0,l=0,u=0;if(!t)s=l=u=n;else{const f=n<.5?n*(1+t):n+t-n*t,h=2*n-f;s=Wm(h,f,e+1/3),l=Wm(h,f,e),u=Wm(h,f,e-1/3)}return{red:Math.round(s*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:a}}function pd(e,t){return n=>n>0?t:e}const Gm=(e,t,n)=>{const a=e*e,s=n*(t*t-a)+a;return s<0?0:Math.sqrt(s)},MO=[Wp,zo,Vs],kO=e=>MO.find(t=>t.test(e));function y1(e){const t=kO(e);if(!t)return!1;let n=t.parse(e);return t===Vs&&(n=AO(n)),n}const b1=(e,t)=>{const n=y1(e),a=y1(t);if(!n||!a)return pd(e,t);const s={...n};return l=>(s.red=Gm(n.red,a.red,l),s.green=Gm(n.green,a.green,l),s.blue=Gm(n.blue,a.blue,l),s.alpha=Ct(n.alpha,a.alpha,l),zo.transform(s))},DO=(e,t)=>n=>t(e(n)),sc=(...e)=>e.reduce(DO),Kp=new Set(["none","hidden"]);function RO(e,t){return Kp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function OO(e,t){return n=>Ct(e,t,n)}function pv(e){return typeof e=="number"?OO:typeof e=="string"?Gg(e)?pd:xn.test(e)?b1:LO:Array.isArray(e)?aE:typeof e=="object"?xn.test(e)?b1:_O:pd}function aE(e,t){const n=[...e],a=n.length,s=e.map((l,u)=>pv(l)(l,t[u]));return l=>{for(let u=0;u<a;u++)n[u]=s[u](l);return n}}function _O(e,t){const n={...e,...t},a={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(a[s]=pv(e[s])(e[s],t[s]));return s=>{for(const l in a)n[l]=a[l](s);return n}}function PO(e,t){var n;const a=[],s={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const u=t.types[l],f=e.indexes[u][s[u]],h=(n=e.values[f])!==null&&n!==void 0?n:0;a[l]=h,s[u]++}return a}const LO=(e,t)=>{const n=Qa.createTransformer(t),a=$l(e),s=$l(t);return a.indexes.var.length===s.indexes.var.length&&a.indexes.color.length===s.indexes.color.length&&a.indexes.number.length>=s.indexes.number.length?Kp.has(e)&&!s.values.length||Kp.has(t)&&!a.values.length?RO(e,t):sc(aE(PO(a,s),s.values),n):pd(e,t)};function oE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ct(e,t,n):pv(e)(e,t)}const zO=5;function sE(e,t,n){const a=Math.max(t-zO,0);return O2(n-e(a),t-a)}const At={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},w1=.001;function BO({duration:e=At.duration,bounce:t=At.bounce,velocity:n=At.velocity,mass:a=At.mass}){let s,l,u=1-t;u=xa(At.minDamping,At.maxDamping,u),e=xa(At.minDuration,At.maxDuration,ga(e)),u<1?(s=m=>{const v=m*u,g=v*e,b=v-n,w=Zp(m,u),E=Math.exp(-g);return w1-b/w*E},l=m=>{const g=m*u*e,b=g*n+n,w=Math.pow(u,2)*Math.pow(m,2)*e,E=Math.exp(-g),S=Zp(Math.pow(m,2),u);return(-s(m)+w1>0?-1:1)*((b-w)*E)/S}):(s=m=>{const v=Math.exp(-m*e),g=(m-n)*e+1;return-.001+v*g},l=m=>{const v=Math.exp(-m*e),g=(n-m)*(e*e);return v*g});const f=5/e,h=VO(s,l,f);if(e=pa(e),isNaN(h))return{stiffness:At.stiffness,damping:At.damping,duration:e};{const m=Math.pow(h,2)*a;return{stiffness:m,damping:u*2*Math.sqrt(a*m),duration:e}}}const FO=12;function VO(e,t,n){let a=n;for(let s=1;s<FO;s++)a=a-e(a)/t(a);return a}function Zp(e,t){return e*Math.sqrt(1-t*t)}const UO=["duration","bounce"],IO=["stiffness","damping","mass"];function S1(e,t){return t.some(n=>e[n]!==void 0)}function HO(e){let t={velocity:At.velocity,stiffness:At.stiffness,damping:At.damping,mass:At.mass,isResolvedFromDuration:!1,...e};if(!S1(e,IO)&&S1(e,UO))if(e.visualDuration){const n=e.visualDuration,a=2*Math.PI/(n*1.2),s=a*a,l=2*xa(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:At.mass,stiffness:s,damping:l}}else{const n=BO(e);t={...t,...n,mass:At.mass},t.isResolvedFromDuration=!0}return t}function iE(e=At.visualDuration,t=At.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:s}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],f={done:!1,value:l},{stiffness:h,damping:m,mass:v,duration:g,velocity:b,isResolvedFromDuration:w}=HO({...n,velocity:-ga(n.velocity||0)}),E=b||0,S=m/(2*Math.sqrt(h*v)),j=u-l,N=ga(Math.sqrt(h/v)),A=Math.abs(j)<5;a||(a=A?At.restSpeed.granular:At.restSpeed.default),s||(s=A?At.restDelta.granular:At.restDelta.default);let k;if(S<1){const M=Zp(N,S);k=_=>{const O=Math.exp(-S*N*_);return u-O*((E+S*N*j)/M*Math.sin(M*_)+j*Math.cos(M*_))}}else if(S===1)k=M=>u-Math.exp(-N*M)*(j+(E+N*j)*M);else{const M=N*Math.sqrt(S*S-1);k=_=>{const O=Math.exp(-S*N*_),D=Math.min(M*_,300);return u-O*((E+S*N*j)*Math.sinh(D)+M*j*Math.cosh(D))/M}}const T={calculatedDuration:w&&g||null,next:M=>{const _=k(M);if(w)f.done=M>=g;else{let O=0;S<1&&(O=M===0?pa(E):sE(k,M,_));const D=Math.abs(O)<=a,L=Math.abs(u-_)<=s;f.done=D&&L}return f.value=f.done?u:_,f},toString:()=>{const M=Math.min(j2(T),Hp),_=N2(O=>T.next(M*O).value,M,30);return M+"ms "+_}};return T}function E1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:s=10,bounceStiffness:l=500,modifyTarget:u,min:f,max:h,restDelta:m=.5,restSpeed:v}){const g=e[0],b={done:!1,value:g},w=D=>f!==void 0&&D<f||h!==void 0&&D>h,E=D=>f===void 0?h:h===void 0||Math.abs(f-D)<Math.abs(h-D)?f:h;let S=n*t;const j=g+S,N=u===void 0?j:u(j);N!==j&&(S=N-g);const A=D=>-S*Math.exp(-D/a),k=D=>N+A(D),T=D=>{const L=A(D),I=k(D);b.done=Math.abs(L)<=m,b.value=b.done?N:I};let M,_;const O=D=>{w(b.value)&&(M=D,_=iE({keyframes:[b.value,E(b.value)],velocity:sE(k,D,b.value),damping:s,stiffness:l,restDelta:m,restSpeed:v}))};return O(0),{calculatedDuration:null,next:D=>{let L=!1;return!_&&M===void 0&&(L=!0,T(D),O(D)),M!==void 0&&D>=M?_.next(D-M):(!L&&T(D),b)}}}const $O=oc(.42,0,1,1),YO=oc(0,0,.58,1),lE=oc(.42,0,.58,1),WO=e=>Array.isArray(e)&&typeof e[0]!="number",GO={linear:Wn,easeIn:$O,easeInOut:lE,easeOut:YO,circIn:uv,circInOut:I2,circOut:U2,backIn:cv,backInOut:F2,backOut:B2,anticipate:V2},C1=e=>{if(av(e)){o2(e.length===4);const[t,n,a,s]=e;return oc(t,n,a,s)}else if(typeof e=="string")return GO[e];return e};function qO(e,t,n){const a=[],s=n||oE,l=e.length-1;for(let u=0;u<l;u++){let f=s(e[u],e[u+1]);if(t){const h=Array.isArray(t)?t[u]||Wn:t;f=sc(h,f)}a.push(f)}return a}function XO(e,t,{clamp:n=!0,ease:a,mixer:s}={}){const l=e.length;if(o2(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=qO(t,a,s),h=f.length,m=v=>{if(u&&v<e[0])return t[0];let g=0;if(h>1)for(;g<e.length-2&&!(v<e[g+1]);g++);const b=Xs(e[g],e[g+1],v);return f[g](b)};return n?v=>m(xa(e[0],e[l-1],v)):m}function KO(e,t){const n=e[e.length-1];for(let a=1;a<=t;a++){const s=Xs(0,t,a);e.push(Ct(n,1,s))}}function ZO(e){const t=[0];return KO(t,e.length-1),t}function QO(e,t){return e.map(n=>n*t)}function JO(e,t){return e.map(()=>t||lE).splice(0,e.length-1)}function gd({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){const s=WO(a)?a.map(C1):C1(a),l={done:!1,value:t[0]},u=QO(n&&n.length===t.length?n:ZO(t),e),f=XO(u,t,{ease:Array.isArray(s)?s:JO(t,s)});return{calculatedDuration:e,next:h=>(l.value=f(h),l.done=h>=e,l)}}const e4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>mt.update(t,!0),stop:()=>Za(t),now:()=>cn.isProcessing?cn.timestamp:Fr.now()}},t4={decay:E1,inertia:E1,tween:gd,keyframes:gd,spring:iE},n4=e=>e/100;class gv extends rE{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:a,element:s,keyframes:l}=this.options,u=(s==null?void 0:s.KeyframeResolver)||mv,f=(h,m)=>this.onKeyframesResolved(h,m);this.resolver=new u(l,f,n,a,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l,velocity:u=0}=this.options,f=rv(n)?n:t4[n]||gd;let h,m;f!==gd&&typeof t[0]!="number"&&(h=sc(n4,oE(t[0],t[1])),t=[0,100]);const v=f({...this.options,keyframes:t});l==="mirror"&&(m=f({...this.options,keyframes:[...t].reverse(),velocity:-u})),v.calculatedDuration===null&&(v.calculatedDuration=j2(v));const{calculatedDuration:g}=v,b=g+s,w=b*(a+1)-s;return{generator:v,mirroredGenerator:m,mapPercentToKeyframes:h,calculatedDuration:g,resolvedDuration:b,totalDuration:w}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:a}=this;if(!a){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:s,generator:l,mirroredGenerator:u,mapPercentToKeyframes:f,keyframes:h,calculatedDuration:m,totalDuration:v,resolvedDuration:g}=a;if(this.startTime===null)return l.next(0);const{delay:b,repeat:w,repeatType:E,repeatDelay:S,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-v/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const N=this.currentTime-b*(this.speed>=0?1:-1),A=this.speed>=0?N<0:N>v;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let k=this.currentTime,T=l;if(w){const D=Math.min(this.currentTime,v)/g;let L=Math.floor(D),I=D%1;!I&&D>=1&&(I=1),I===1&&L--,L=Math.min(L,w+1),!!(L%2)&&(E==="reverse"?(I=1-I,S&&(I-=S/g)):E==="mirror"&&(T=u)),k=xa(0,1,I)*g}const M=A?{done:!1,value:h[0]}:T.next(k);f&&(M.value=f(M.value));let{done:_}=M;!A&&m!==null&&(_=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return O&&s!==void 0&&(M.value=Xd(h,this.options,s)),j&&j(M.value),O&&this.finish(),M}get duration(){const{resolved:t}=this;return t?ga(t.calculatedDuration):0}
vendor: 4,353 bytes, line 25
25get time(){return ga(this.currentTime)}set time(t){t=pa(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ga(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=e4,onPlay:n,startTime:a}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const r4=new Set(["opacity","clipPath","filter","transform"]);function a4(e,t,n,{delay:a=0,duration:s=300,repeat:l=0,repeatType:u="loop",ease:f="easeInOut",times:h}={}){const m={[t]:n};h&&(m.offset=h);const v=A2(f,s);return Array.isArray(v)&&(m.easing=v),e.animate(m,{delay:a,duration:s,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"})}const o4=Vg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),vd=10,s4=2e4;function i4(e){return rv(e.type)||e.type==="spring"||!T2(e.ease)}function l4(e,t){const n=new gv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:e[0]};const s=[];let l=0;for(;!a.done&&l<s4;)a=n.sample(l),s.push(a.value),l+=vd;return{times:void 0,keyframes:s,duration:l-vd,ease:"linear"}}const cE={anticipate:V2,backInOut:F2,circInOut:I2};function c4(e){return e in cE}class j1 extends rE{constructor(t){super(t);const{name:n,motionValue:a,element:s,keyframes:l}=this.options;this.resolver=new nE(l,(u,f)=>this.onKeyframesResolved(u,f),n,a,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:a=300,times:s,ease:l,type:u,motionValue:f,name:h,startTime:m}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof l=="string"&&md()&&c4(l)&&(l=cE[l]),i4(this.options)){const{onComplete:g,onUpdate:b,motionValue:w,element:E,...S}=this.options,j=l4(t,S);t=j.keyframes,t.length===1&&(t[1]=t[0]),a=j.duration,s=j.times,l=j.ease,u="keyframes"}const v=a4(f.owner.current,h,t,{...this.options,duration:a,times:s,ease:l});return v.startTime=m??this.calcStartTime(),this.pendingTimeline?(l1(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:g}=this.options;f.set(Xd(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:a,times:s,type:u,ease:l,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ga(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ga(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:a}=n;a.currentTime=pa(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:a}=n;a.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Wn;const{animation:a}=n;l1(a,t)}return Wn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;
vendor: 14,764 bytes, line 25
25n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:a,duration:s,type:l,ease:u,times:f}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:v,onComplete:g,element:b,...w}=this.options,E=new gv({...w,keyframes:a,duration:s,type:l,ease:u,times:f,isGenerator:!0}),S=pa(this.time);m.setWithVelocity(E.sample(S-vd).value,E.sample(S).value,vd)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:a,repeatDelay:s,repeatType:l,damping:u,type:f}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=n.owner.getProps();return o4()&&a&&r4.has(a)&&!h&&!m&&!s&&l!=="mirror"&&u!==0&&f!=="inertia"}}const u4={type:"spring",stiffness:500,damping:25,restSpeed:10},d4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),f4={type:"keyframes",duration:.8},h4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},m4=(e,{keyframes:t})=>t.length>2?f4:Wo.has(e)?e.startsWith("scale")?d4(t[1]):u4:h4;function p4({when:e,delay:t,delayChildren:n,staggerChildren:a,staggerDirection:s,repeat:l,repeatType:u,repeatDelay:f,from:h,elapsed:m,...v}){return!!Object.keys(v).length}const vv=(e,t,n,a={},s,l)=>u=>{const f=nv(a,e)||{},h=f.delay||a.delay||0;let{elapsed:m=0}=a;m=m-pa(h);let v={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-m,onUpdate:b=>{t.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:l?void 0:s};p4(f)||(v={...v,...m4(e,v)}),v.duration&&(v.duration=pa(v.duration)),v.repeatDelay&&(v.repeatDelay=pa(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let g=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(g=!0)),Ug.skipAnimations&&(g=!0,v.duration=0,v.delay=0),g&&!l&&t.get()!==void 0){const b=Xd(v.keyframes,f);if(b!==void 0)return mt.update(()=>{v.onUpdate(b),v.onComplete()}),new OR([])}return!l&&j1.supports(v)?new j1(v):new gv(v)};function g4({protectedKeys:e,needsAnimating:t},n){const a=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,a}function uE(e,t,{delay:n=0,transitionOverride:a,type:s}={}){var l;let{transition:u=e.getDefaultTransition(),transitionEnd:f,...h}=t;a&&(u=a);const m=[],v=s&&e.animationState&&e.animationState.getState()[s];for(const g in h){const b=e.getValue(g,(l=e.latestValues[g])!==null&&l!==void 0?l:null),w=h[g];if(w===void 0||v&&g4(v,g))continue;const E={delay:n,...nv(u||{},g)};let S=!1;if(window.MotionHandoffAnimation){const N=_2(e);if(N){const A=window.MotionHandoffAnimation(N,g,mt);A!==null&&(E.startTime=A,S=!0)}}Yp(e,g),b.start(vv(g,b,w,e.shouldReduceMotion&&R2.has(g)?{type:!1}:E,e,S));const j=b.animation;j&&m.push(j)}return f&&Promise.all(m).then(()=>{mt.update(()=>{f&&qR(e,f)})}),m}function Qp(e,t,n={}){var a;const s=Il(e,t,n.type==="exit"?(a=e.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(l=n.transitionOverride);const u=s?()=>Promise.all(uE(e,s,n)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:v=0,staggerChildren:g,staggerDirection:b}=l;return v4(e,t,v+m,g,b,n)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,v]=h==="beforeChildren"?[u,f]:[f,u];return m().then(()=>v())}else return Promise.all([u(),f(n.delay)])}function v4(e,t,n=0,a=0,s=1,l){const u=[],f=(e.variantChildren.size-1)*a,h=s===1?(m=0)=>m*a:(m=0)=>f-m*a;return Array.from(e.variantChildren).sort(x4).forEach((m,v)=>{m.notify("AnimationStart",t),u.push(Qp(m,t,{...l,delay:n+h(v)}).then(()=>m.notify("AnimationComplete",t)))}),Promise.all(u)}function x4(e,t){return e.sortNodePosition(t)}function y4(e,t,n={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const s=t.map(l=>Qp(e,l,n));a=Promise.all(s)}else if(typeof t=="string")a=Qp(e,t,n);else{const s=typeof t=="function"?Il(e,t,n.custom):t;a=Promise.all(uE(e,s,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}function dE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let a=0;a<n;a++)if(t[a]!==e[a])return!1;return!0}const b4=Hg.length;function fE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?fE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<b4;n++){const a=Hg[n],s=e.props[a];(Fl(s)||s===!1)&&(t[a]=s)}return t}const w4=[...Ig].reverse(),S4=Ig.length;function E4(e){return t=>Promise.all(t.map(({animation:n,options:a})=>y4(e,n,a)))}function C4(e){let t=E4(e),n=N1(),a=!0;const s=h=>(m,v)=>{var g;const b=Il(e,v,h==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(b){const{transition:w,transitionEnd:E,...S}=b;m={...m,...S,...E}}return m};function l(h){t=h(e)}function u(h){const{props:m}=e,v=fE(e.parent)||{},g=[],b=new Set;let w={},E=1/0;for(let j=0;j<S4;j++){const N=w4[j],A=n[N],k=m[N]!==void 0?m[N]:v[N],T=Fl(k),M=N===h?A.isActive:null;M===!1&&(E=j);let _=k===v[N]&&k!==m[N]&&T;if(_&&a&&e.manuallyAnimateOnMount&&(_=!1),A.protectedKeys={...w},!A.isActive&&M===null||!k&&!A.prevProp||Gd(k)||typeof k=="boolean")continue;const O=j4(A.prevProp,k);let D=O||N===h&&A.isActive&&!_&&T||j>E&&T,L=!1;const I=Array.isArray(k)?k:[k];let Z=I.reduce(s(N),{});M===!1&&(Z={});const{prevResolvedValues:ce={}}=A,U={...ce,...Z},Q=H=>{D=!0,b.has(H)&&(L=!0,b.delete(H)),A.needsAnimating[H]=!0;const V=e.getValue(H);V&&(V.liveStyle=!1)};for(const H in U){const V=Z[H],J=ce[H];if(w.hasOwnProperty(H))continue;let P=!1;Ip(V)&&Ip(J)?P=!dE(V,J):P=V!==J,P?V!=null?Q(H):b.add(H):V!==void 0&&b.has(H)?Q(H):A.protectedKeys[H]=!0}A.prevProp=k,A.prevResolvedValues=Z,A.isActive&&(w={...w,...Z}),a&&e.blockInitialAnimation&&(D=!1),D&&(!(_&&O)||L)&&g.push(...I.map(H=>({animation:H,options:{type:N}})))}if(b.size){const j={};if(typeof m.initial!="boolean"){const N=Il(e,Array.isArray(m.initial)?m.initial[0]:m.initial);N&&N.transition&&(j.transition=N.transition)}b.forEach(N=>{const A=e.getBaseTarget(N),k=e.getValue(N);k&&(k.liveStyle=!0),j[N]=A??null}),g.push({animation:j})}let S=!!g.length;return a&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(S=!1),a=!1,S?t(g):Promise.resolve()}function f(h,m){var v;if(n[h].isActive===m)return Promise.resolve();(v=e.variantChildren)===null||v===void 0||v.forEach(b=>{var w;return(w=b.animationState)===null||w===void 0?void 0:w.setActive(h,m)}),n[h].isActive=m;const g=u(h);for(const b in n)n[b].protectedKeys={};return g}return{animateChanges:u,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=N1(),a=!0}}}function j4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!dE(t,e):!1}function Oo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function N1(){return{animate:Oo(!0),whileInView:Oo(),whileHover:Oo(),whileTap:Oo(),whileDrag:Oo(),whileFocus:Oo(),exit:Oo()}}class ao{constructor(t){this.isMounted=!1,this.node=t}update(){}}class N4 extends ao{constructor(t){super(t),t.animationState||(t.animationState=C4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Gd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let T4=0;class A4 extends ao{constructor(){super(...arguments),this.id=T4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const M4={animation:{Feature:N4},exit:{Feature:A4}};function Yl(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n)}function ic(e){return{point:{x:e.pageX,y:e.pageY}}}const k4=e=>t=>ov(t)&&e(t,ic(t));function Us(e,t,n,a){return Yl(e,t,k4(n),a)}function hE({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function D4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function R4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:a.y,right:a.x}}const mE=1e-4,O4=1-mE,_4=1+mE,pE=.01,P4=0-pE,L4=0+pE;function Tn(e){return e.max-e.min}function z4(e,t,n){return Math.abs(e-t)<=n}function T1(e,t,n,a=.5){e.origin=a,e.originPoint=Ct(t.min,t.max,e.origin),e.scale=Tn(n)/Tn(t),e.translate=Ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=O4&&e.scale<=_4||isNaN(e.scale))&&(e.scale=1),(e.translate>=P4&&e.translate<=L4||isNaN(e.translate))&&(e.translate=0)}function Ol(e,t,n,a){T1(e.x,t.x,n.x,a?a.originX:void 0),T1(e.y,t.y,n.y,a?a.originY:void 0)}function A1(e,t,n){e.min=n.min+t.min,e.max=e.min+Tn(t)}function B4(e,t,n){A1(e.x,t.x,n.x),A1(e.y,t.y,n.y)}function M1(e,t,n){e.min=t.min-n.min,e.max=e.min+Tn(t)}function _l(e,t,n){M1(e.x,t.x,n.x),M1(e.y,t.y,n.y)}const k1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Is=()=>({x:k1(),y:k1()}),D1=()=>({min:0,max:0}),Pt=()=>({x:D1(),y:D1()});function lr(e){return[e("x"),e("y")]}function qm(e){return e===void 0||e===1}function Jp({scale:e,scaleX:t,scaleY:n}){return!qm(e)||!qm(t)||!qm(n)}function Po(e){return Jp(e)||gE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gE(e){return R1(e.x)||R1(e.y)}function R1(e){return e&&e!=="0%"}function xd(e,t,n){const a=e-n,s=t*a;return n+s}function O1(e,t,n,a,s){return s!==void 0&&(e=xd(e,s,a)),xd(e,n,a)+t}function eg(e,t=0,n=1,a,s){e.min=O1(e.min,t,n,a,s),e.max=O1(e.max,t,n,a,s)}function vE(e,{x:t,y:n}){eg(e.x,t.translate,t.scale,t.originPoint),eg(e.y,n.translate,n.scale,n.originPoint)}const _1=.999999999999,P1=1.0000000000001;function F4(e,t,n,a=!1){const s=n.length;if(!s)return;t.x=t.y=1;let l,u;for(let f=0;f<s;f++){l=n[f],u=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&$s(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,vE(e,u)),a&&Po(l.latestValues)&&$s(e,l.latestValues))}t.x<P1&&t.x>_1&&(t.x=1),t.y<P1&&t.y>_1&&(t.y=1)}function Hs(e,t){e.min=e.min+t,e.max=e.max+t}function L1(e,t,n,a,s=.5){const l=Ct(e.min,e.max,s);eg(e,t,n,l,a)}function $s(e,t){L1(e.x,t.x,t.scaleX,t.scale,t.originX),L1(e.y,t.y,t.scaleY,t.scale,t.originY)}function xE(e,t){return hE(R4(e.getBoundingClientRect(),t))}function V4(e,t,n){const a=xE(e,n),{scroll:s}=t;return s&&(Hs(a.x,s.offset.x),Hs(a.y,s.offset.y)),a}const z1=(e,t)=>Math.abs(e-t);function U4(e,t){const n=z1(e.x,t.x),a=z1(e.y,t.y);return Math.sqrt(n**2+a**2)}class yE{constructor(t,n,{transformPagePoint:a,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Km(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=U4(v.offset,{x:0,y:0})>=3;if(!g&&!b)return;const{point:w}=v,{timestamp:E}=cn;this.history.push({...w,timestamp:E});const{onStart:S,onMove:j}=this.handlers;g||(S&&S(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,v)},this.handlePointerMove=(v,g)=>{if(this.index=F1(v.currentTarget),v.target instanceof Element&&v.target.hasPointerCapture&&v.pointerId!==void 0)try{if(!v.target.hasPointerCapture(v.pointerId))return}catch{}this.lastMoveEvent=v,this.lastMoveEventInfo=Xm(g,this.transformPagePoint),mt.update(this.updatePoint,!0)},this.handlePointerUp=(v,g)=>{Dl(v,"release"),this.end();const{onEnd:b,onSessionEnd:w,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Km(v.type==="pointercancel"||v.type==="lostpointercapture"?this.lastMoveEventInfo:Xm(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,S),w&&w(v,S)},!ov(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=a;const l=ic(t),u=Xm(l,this.transformPagePoint),{point:f}=u,{timestamp:h}=cn;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,Km(u,this.history)),Dl(t,"set"),this.removeListeners=sc(Us(t.currentTarget,"pointermove",this.handlePointerMove),Us(t.currentTarget,"pointerup",this.handlePointerUp),Us(t.currentTarget,"pointercancel",this.handlePointerUp),Us(t.currentTarget,"lostpointercapture",(v,g)=>{F1(v.currentTarget)!==this.index?Dl(v,"set"):this.handlePointerUp(v,g)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Za(this.updatePoint)}}function Xm(e,t){return t?{point:t(e.point)}:e}function B1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Km({point:e},t){return{point:e,delta:B1(e,bE(t)),offset:B1(e,I4(t)),velocity:H4(t,.1)}}function I4(e){return e[0]}function bE(e){return e[e.length-1]}function H4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const s=bE(e);for(;n>=0&&(a=e[n],!(s.timestamp-a.timestamp>pa(t)));)n--;if(!a)return{x:0,y:0};const l=ga(s.timestamp-a.timestamp);if(l===0)return{x:0,y:0};const u={x:(s.x-a.x)/l,y:(s.y-a.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function F1(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function $4(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?Ct(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?Ct(n,e,a.max):Math.min(e,n)),e}function V1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Y4(e,{top:t,left:n,bottom:a,right:s}){return{x:V1(e.x,n,s),y:V1(e.y,t,a)}}function U1(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}function W4(e,t){return{x:U1(e.x,t.x),y:U1(e.y,t.y)}}function G4(e,t){let n=.5;const a=Tn(e),s=Tn(t);return s>a?n=Xs(t.min,t.max-a,e.min):a>s&&(n=Xs(e.min,e.max-s,t.min)),xa(0,1,n)}function q4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tg=.35;function X4(e=tg){return e===!1?e=0:e===!0&&(e=tg),{x:I1(e,"left","right"),y:I1(e,"to
25p","bottom")}}function I1(e,t,n){return{min:H1(e,t),max:H1(e,n)}}function H1(e,t){return typeof e=="number"?e:e[t]||0}const K4=new WeakMap;class Z4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=v=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ic(v).point)},l=(v,g)=>{const{drag:b,dragPropagation:w,onDragStart:E}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=HR(b),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lr(j=>{let N=this.getAxisMotionValue(j).get()||0;if(Br.test(N)){const{projection:A}=this.visualElement;if(A&&A.layout){const k=A.layout.layoutBox[j];k&&(N=Tn(k)*(parseFloat(N)/100))}}this.originPoint[j]=N}),E&&mt.postRender(()=>E(v,g)),Yp(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(v,g)=>{const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:E,onDrag:S}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:j}=g;if(w&&this.currentDirection===null){this.currentDirection=Q4(j),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),S&&S(v,g)},f=(v,g)=>this.stop(v,g),h=()=>lr(v=>{var g;return this.getAnimationState(v)==="paused"&&((g=this.getAxisMotionValue(v).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new yE(t,{onSessionStart:s,onStart:l,onMove:u,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m})}stop(t,n){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:l}=this.getProps();l&&mt.postRender(()=>l(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,a){const{drag:s}=this.getProps();if(!a||!Uu(t,s,this.currentDirection))return;const l=this.getAxisMotionValue(t);let u=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(u=$4(u,this.constraints[t],this.elastic[t])),l.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:a}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,l=this.constraints;n&&Fs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Y4(s.layoutBox,n):this.constraints=!1,this.elastic=X4(a),l!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&lr(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=q4(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Fs(t))return!1;const a=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const l=V4(a,s.root,this.visualElement.getTransformPagePoint());let u=W4(s.layout.layoutBox,l);if(n){const f=n(D4(u));this.hasMutatedConstraints=!!f,f&&(u=hE(f))}return u}startAnimation(t){const{drag:n,dragMomentum:a,dragElastic:s,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=lr(v=>{if(!Uu(v,n,this.currentDirection))return;let g=h&&h[v]||{};u&&(g={min:0,max:0});const b=s?200:1e6,w=s?40:1e7,E={type:"inertia",velocity:a?t[v]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...l,...g};return this.startAxisValueAnimation(v,E)});return Promise.all(m).then(f)}startAxisValueAnimation(t,n){const a=this.getAxisMotionValue(t);return Yp(this.visualElement,t),a.start(vv(t,a,0,n,this.visualElement,!1))}stopAnimation(){lr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){lr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),s=a[n];return s||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){lr(n=>{const{drag:a}=this.getProps();if(!Uu(n,a,this.currentDirection))return;const{projection:s}=this.visualElement,l=this.getAxisMotionValue(n);if(s&&s.layout){const{min:u,max:f}=s.layout.layoutBox[n];l.set(t[n]-Ct(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!Fs(n)||!a||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};lr(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const h=f.get();s[u]=G4({min:h,max:h},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),lr(u=>{if(!Uu(u,t,null))return;const f=this.getAxisMotionValue(u),{min:h,max:m}=this.constraints[u];f.set(Ct(h,m,s[u]))})}addListeners(){if(!this.visualElement.current)return;K4.set(this.visualElement,this);const t=this.visualElement.current,n=Us(t,"pointerdown",h=>{const{drag:m,dragListener:v=!0}=this.getProps();m&&v&&this.start(h)}),a=()=>{const{dragConstraints:h}=this.getProps();Fs(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,l=s.addEventListener("measure",a);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),mt.read(a);const u=Yl(window,"resize",()=>this.scalePositionWithinConstraints()),f=s.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(lr(v=>{const g=this.getAxisMotionValue(v);g&&(this.originPoint[v]+=h[v].translate,g.set(g.get()+h[v].translate))}),this.visualElement.render())});return()=>{u(),n(),l(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:s=!1,dragConstraints:l=!1,dragElastic:u=tg,dragMomentum:f=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:s,dragConstraints:l,dragElastic:u,dragMomentum:f}}}function Uu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}
vendor: 4,355 bytes, line 25
25function Q4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class J4 extends ao{constructor(t){super(t),this.removeGroupControls=Wn,this.removeListeners=Wn,this.controls=new Z4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wn}unmount(){this.removeGroupControls(),this.removeListeners()}}const $1=e=>(t,n)=>{e&&mt.postRender(()=>e(t,n))};class e5 extends ao{constructor(){super(...arguments),this.removePointerDownListener=Wn}onPointerDown(t){this.session=new yE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:s}=this.node.getProps();return{onSessionStart:$1(t),onStart:$1(n),onMove:a,onEnd:(l,u)=>{delete this.session,s&&mt.postRender(()=>s(l,u))}}}mount(){this.removePointerDownListener=Us(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const id={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Y1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Pe.test(e))e=parseFloat(e);else return e;const n=Y1(e,t.target.x),a=Y1(e,t.target.y);return`${n}% ${a}%`}},t5={correct:(e,{treeScale:t,projectionDelta:n})=>{const a=e,s=Qa.parse(e);if(s.length>5)return a;const l=Qa.createTransformer(e),u=typeof s[0]!="number"?1:0,f=n.x.scale*t.x,h=n.y.scale*t.y;s[0+u]/=f,s[1+u]/=h;const m=Ct(f,h,.5);return typeof s[2+u]=="number"&&(s[2+u]/=m),typeof s[3+u]=="number"&&(s[3+u]/=m),l(s)}};class n5 extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:s}=this.props,{projection:l}=t;sR(r5),l&&(n.group&&n.group.add(l),a&&a.register&&s&&a.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),id.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:a,drag:s,isPresent:l}=this.props,u=a.projection;return u&&(u.isPresent=l,s||t.layoutDependency!==n||n===void 0||t.isPresent!==l?u.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?u.promote():u.relegate()||mt.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Yg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),a&&a.deregister&&a.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function wE(e){const[t,n]=r2(),a=x.useContext(Bg);return c.jsx(n5,{...e,layoutGroup:a,switchLayoutGroup:x.useContext(f2),isPresent:t,safeToRemove:n})}const r5={borderRadius:{...pl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pl,borderTopRightRadius:pl,borderBottomLeftRadius:pl,borderBottomRightRadius:pl,boxShadow:t5};function a5(e,t,n){const a=bn(e)?e:Hl(e);return a.start(vv("",a,t,n)),a.animation}function o5(e){return e instanceof SVGElement&&e.tagName!=="svg"}const s5=(e,t)=>e.depth-t.depth;class i5{constructor(){this.children=[],this.isDirty=!1}add(t){sv(this.children,t),this.isDirty=!0}remove(t){iv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s5),this.isDirty=!1,this.children.forEach(t)}}function l5(e,t){const n=Fr.now(),a=({timestamp:s})=>{const l=s-n;l>=t&&(Za(a),e(l-t))};return mt.read(a,!0),()=>Za(a)}const SE=["TopLeft","TopRight","BottomLeft","BottomRight"],c5=SE.length,W1=e=>typeof e=="string"?parseFloat(e):e,G1=e=>typeof e=="number"||Pe.test(e);function u5(e,t,n,a,s,l){s?(e.opacity=Ct(0,n.opacity!==void 0?n.opacity:1,d5(a)),e.opacityExit=Ct(t.opacity!==void 0?t.opacity:1,0,f5(a))):l&&(e.opacity=Ct(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,a));for(let u=0;u<c5;u++){const f=`border${SE[u]}Radius`;let h=q1(t,f),m=q1(n,f);
vendor: 8,678 bytes, line 25
25if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||G1(h)===G1(m)?(e[f]=Math.max(Ct(W1(h),W1(m),a),0),(Br.test(m)||Br.test(h))&&(e[f]+="%")):e[f]=m}(t.rotate||n.rotate)&&(e.rotate=Ct(t.rotate||0,n.rotate||0,a))}function q1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const d5=EE(0,.5,U2),f5=EE(.5,.95,Wn);function EE(e,t,n){return a=>a<e?0:a>t?1:n(Xs(e,t,a))}function X1(e,t){e.min=t.min,e.max=t.max}function ir(e,t){X1(e.x,t.x),X1(e.y,t.y)}function K1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Z1(e,t,n,a,s){return e-=t,e=xd(e,1/n,a),s!==void 0&&(e=xd(e,1/s,a)),e}function h5(e,t=0,n=1,a=.5,s,l=e,u=e){if(Br.test(t)&&(t=parseFloat(t),t=Ct(u.min,u.max,t/100)-u.min),typeof t!="number")return;let f=Ct(l.min,l.max,a);e===l&&(f-=t),e.min=Z1(e.min,t,n,f,s),e.max=Z1(e.max,t,n,f,s)}function Q1(e,t,[n,a,s],l,u){h5(e,t[n],t[a],t[s],t.scale,l,u)}const m5=["x","scaleX","originX"],p5=["y","scaleY","originY"];function J1(e,t,n,a){Q1(e.x,t,m5,n?n.x:void 0,a?a.x:void 0),Q1(e.y,t,p5,n?n.y:void 0,a?a.y:void 0)}function ew(e){return e.translate===0&&e.scale===1}function CE(e){return ew(e.x)&&ew(e.y)}function tw(e,t){return e.min===t.min&&e.max===t.max}function g5(e,t){return tw(e.x,t.x)&&tw(e.y,t.y)}function nw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jE(e,t){return nw(e.x,t.x)&&nw(e.y,t.y)}function rw(e){return Tn(e.x)/Tn(e.y)}function aw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class v5{constructor(){this.members=[]}add(t){sv(this.members,t),t.scheduleRender()}remove(t){if(iv(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let a;for(let s=n;s>=0;s--){const l=this.members[s];if(l.isPresent!==!1){a=l;break}}return a?(this.promote(a),!0):!1}promote(t,n){const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.instance&&a.scheduleRender(),t.scheduleRender(),t.resumeFrom=a,n&&(t.resumeFrom.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:a}=t;n.onExitComplete&&n.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function x5(e,t,n){let a="";const s=e.x.translate/t.x,l=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((s||l||u)&&(a=`translate3d(${s}px, ${l}px, ${u}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:m,rotate:v,rotateX:g,rotateY:b,skewX:w,skewY:E}=n;m&&(a=`perspective(${m}px) ${a}`),v&&(a+=`rotate(${v}deg) `),g&&(a+=`rotateX(${g}deg) `),b&&(a+=`rotateY(${b}deg) `),w&&(a+=`skewX(${w}deg) `),E&&(a+=`skewY(${E}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(a+=`scale(${f}, ${h})`),a||"none"}const Zm=["","X","Y","Z"],y5={visibility:"hidden"},ow=1e3;let b5=0;function Qm(e,t,n,a){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),a&&(a[e]=0))}function NE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_2(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",mt,!(s||l))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&NE(a)}function TE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:s}){return class{constructor(u={},f=t==null?void 0:t()){this.id=b5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(E5),this.nodes.forEach(A5),this.nodes.forEach(M5),this.nodes.forEach(C5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new i5)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new lv),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const h=this.eventHandlers.get(u);h&&h.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=o5(u),this.instance=u;const{layoutId:h,layout:m,visualElement:v}=this.options;if(v&&!v.current&&v.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(m||h)&&(this.isLayoutDirty=!0),e){let g;const b=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=l5(b,250),id.hasAnimatedSinceResize&&(id.hasAnimatedSinceResize=!1,this.nodes.forEach(iw))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&v&&(h||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:b,hasRelativeLayoutChanged:w,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||v.getDefaultTransition()||_5,{onLayoutAnimationStart:j,onLayoutAnimationComplete:N}=v.getProps(),A=!this.targetLayout||!jE(this.targetLayout,E),k=!b&&w;if(this.options.layoutRoot||this.resumeFrom||k||b&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,k);const T={...nv(S,"layout"),onPlay:j,onComplete:N};(v.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else b||iw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Za(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(k5),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&NE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const g=this.path[v];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sw);return}this.isUpdating||this.nodes.forEach(N5),this.isUpdating=!1,this.nodes.forEach(T5),this.nodes.forEach(w5),this.nodes.forEach(S5),this.clearAllSnapshots();const f=Fr.now();cn.delta=xa(0,1e3/60,f-cn.timestamp),cn.timestamp=f,cn.isProcessing=!0,Hm.update.process(cn),Hm.preRender.process(cn),Hm.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yg.read(this.scheduleUpdate))}
vendor: 15,785 bytes, line 25
25clearAllSnapshots(){this.nodes.forEach(j5),this.sharedNodes.forEach(D5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Tn(this.snapshot.measuredBox.x)&&!Tn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f){const h=a(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!s)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!CE(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;u&&(f||Po(this.latestValues)||v)&&(s(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return u&&(h=this.removeTransform(h)),P5(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:f}=this.options;if(!f)return Pt();const h=f.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(L5))){const{scroll:v}=this.root;v&&(Hs(h.x,v.offset.x),Hs(h.y,v.offset.y))}return h}removeElementScroll(u){var f;const h=Pt();if(ir(h,u),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return h;for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:g,options:b}=v;v!==this.root&&g&&b.layoutScroll&&(g.wasRoot&&ir(h,u),Hs(h.x,g.offset.x),Hs(h.y,g.offset.y))}return h}applyTransform(u,f=!1){const h=Pt();ir(h,u);for(let m=0;m<this.path.length;m++){const v=this.path[m];!f&&v.options.layoutScroll&&v.scroll&&v!==v.root&&$s(h,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Po(v.latestValues)&&$s(h,v.latestValues)}return Po(this.latestValues)&&$s(h,this.latestValues),h}removeTransform(u){const f=Pt();ir(f,u);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Po(m.latestValues))continue;Jp(m.latestValues)&&m.updateSnapshot();const v=Pt(),g=m.measurePageBox();ir(v,g),J1(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return Po(this.latestValues)&&J1(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==cn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var f;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(u||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:b}=this.options;if(!(!this.layout||!(g||b))){if(this.resolvedRelativeTargetAt=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),_l(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pt(),this.targetWithTransforms=Pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ir(this.target,this.layout.layoutBox),vE(this.target,this.targetDelta)):ir(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),_l(this.relativeTargetOrigin,this.target,w.target),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Jp(this.parent.latestValues)||gE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===cn.timestamp&&(m=!1),m)return;const{layout:v,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||g))return;ir(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,w=this.treeScale.y;F4(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Pt());const{target:E}=f;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(K1(this.prevProjectionDelta.x,this.projectionDelta.x),K1(this.prevProjectionDelta.y,this.projectionDelta.y)),Ol(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==w||!aw(this.projectionDelta.x,this.prevProjectionDelta.x)||!aw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Is(),this.projectionDelta=Is(),this.projectionDeltaWithTransform=Is()}setAnimationOrigin(u,f=!1){const h=this.snapshot,m=h?h.latestValues:{},v={...this.latestValues},g=Is();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=Pt(),w=h?h.source:void 0,E=this.layout?this.layout.source:void 0,S=w!==E,j=this.getStack(),N=!j||j.members.length<=1,A=!!(S&&!N&&this.options.crossfade===!0&&!this.path.some(O5));this.animationProgress=0;let k;this.mixTargetDelta=T=>{const M=T/1e3;lw(g.x,u.x,M),lw(g.y,u.y,M),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_l(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),R5(this.relativeTarget,this.relativeTargetOrigin,b,M),k&&g5(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=Pt()),ir(k,this.relativeTarget)),S&&(this.animationValues=v,u5(v,m,this.latestValues,M,A,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Za(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mt.update(()=>{id.hasAnimatedSinceResize=!0,this.currentAnimation=a5(0,ow,{...u,onUpdate:f=>{this.mixTargetDelta(f),u.onUpdate&&u.onUpdate(f)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ow),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:v}=u;if(!(!f||!h||!m)){if(this!==u&&this.layout&&m&&AE(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||Pt();const g=Tn(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+g;const b=Tn(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+b}ir(f,h),$s(f,v),Ol(this.projectionDeltaWithTransform,this.layoutCorrected,f,v)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new v5),this.sharedNodes.get(u).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:f}=this.options;return f?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:f}=this.options;return f?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const m={};h.z&&Qm("z",u,m,this.animationValues);for(let v=0;v<Zm.length;v++)Qm(`rotate${Zm[v]}`,u,m,this.animationValues),Qm(`skew${Zm[v]}`,u,m,this.animationValues);u.render();for(const v in m)u.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);u.scheduleRender()}getProjectionStyles(u){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return y5;const m={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=od(u==null?void 0:u.pointerEvents)||"",m.transform=v?v(this.latestValues,""):"none",m;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const S={};return this.options.layoutId&&(S.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,S.pointerEvents=od(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!Po(this.latestValues)&&(S.transform=v?v({},""):"none",this.hasProjected=!1),S}const b=g.animationValues||g.latestValues;this.applyTransformsToTarget(),m.transform=x5(this.projectionDeltaWithTransform,this.treeScale,b),v&&(m.transform=v(b,m.transform));const{x:w,y:E}=this.projectionDelta;m.transformOrigin=`${w.origin*100}% ${E.origin*100}% 0`,g.animationValues?m.opacity=g===this?(h=(f=b.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:m.opacity=g===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const S in Vl){if(b[S]===void 0)continue;const{correct:j,applyTo:N,isCSSVariable:A}=Vl[S],k=m.transform==="none"?b[S]:j(b[S],g);if(N){const T=N.length;for(let M=0;M<T;M++)m[N[M]]=k}else A?this.options.visualElement.renderState.vars[S]=k:m[S]=k}return this.options.layoutId&&(m.pointerEvents=g===this?od(u==null?void 0:u.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var f;return(f=u.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(sw),this.root.sharedNodes.clear()}}}function w5(e){e.updateLayout()}function S5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:s}=e.layout,{animationType:l}=e.options,u=n.source!==e.layout.source;l==="size"?lr(g=>{const b=u?n.measuredBox[g]:n.layoutBox[g],w=Tn(b);b.min=a[g].min,b.max=b.min+w}):AE(l,n.layoutBox,a)&&lr(g=>{const b=u?n.measuredBox[g]:n.layoutBox[g],w=Tn(a[g]);b.max=b.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+w)});const f=Is();Ol(f,a,n.layoutBox);const h=Is();u?Ol(h,e.applyTransform(s,!0),n.measuredBox):Ol(h,a,n.layoutBox);const m=!CE(f);let v=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:b,layout:w}=g;if(b&&w){const E=Pt();_l(E,n.layoutBox,b.layoutBox);const S=Pt();_l(S,a,w.layoutBox),jE(E,S)||(v=!0),g.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:n,delta:h,layoutDelta:f,hasLayoutChanged:m,hasRelativeLayoutChanged:v})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function E5(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function C5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function j5(e){e.clearSnapshot()}function sw(e){e.clearMeasurements()}function N5(e){e.isLayoutDirty=!1}function T5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function A5(e){e.resolveTargetDelta()}function M5(e){e.calcProjection()}
vendor: 13,042 bytes, line 25
25function k5(e){e.resetSkewAndRotation()}function D5(e){e.removeLeadSnapshot()}function lw(e,t,n){e.translate=Ct(t.translate,0,n),e.scale=Ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cw(e,t,n,a){e.min=Ct(t.min,n.min,a),e.max=Ct(t.max,n.max,a)}function R5(e,t,n,a){cw(e.x,t.x,n.x,a),cw(e.y,t.y,n.y,a)}function O5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const _5={duration:.45,ease:[.4,0,.1,1]},uw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dw=uw("applewebkit/")&&!uw("chrome/")?Math.round:Wn;function fw(e){e.min=dw(e.min),e.max=dw(e.max)}function P5(e){fw(e.x),fw(e.y)}function AE(e,t,n){return e==="position"||e==="preserve-aspect"&&!z4(rw(t),rw(n),.2)}function L5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const z5=TE({attachResizeListener:(e,t)=>Yl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Jm={current:void 0},ME=TE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jm.current){const e=new z5({});e.mount(window),e.setOptions({layoutScroll:!0}),Jm.current=e}return Jm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),B5={pan:{Feature:e5},drag:{Feature:J4,ProjectionNode:ME,MeasureLayout:wE}};function hw(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,l=a[s];l&&mt.postRender(()=>l(t,ic(t)))}class F5 extends ao{mount(){const{current:t}=this.node;t&&(this.unmount=zR(t,(n,a)=>(hw(this.node,a,"Start"),s=>hw(this.node,s,"End"))))}unmount(){}}class V5 extends ao{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sc(Yl(this.node.current,"focus",()=>this.onFocus()),Yl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mw(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),l=a[s];l&&mt.postRender(()=>l(t,ic(t)))}class U5 extends ao{mount(){const{current:t}=this.node;t&&(this.unmount=UR(t,(n,a)=>(mw(this.node,a,"Start"),(s,{success:l})=>mw(this.node,s,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ng=new WeakMap,ep=new WeakMap,I5=e=>{const t=ng.get(e.target);t&&t(e)},H5=e=>{e.forEach(I5)};function $5({root:e,...t}){const n=e||document;ep.has(n)||ep.set(n,{});const a=ep.get(n),s=JSON.stringify(t);return a[s]||(a[s]=new IntersectionObserver(H5,{root:e,...t})),a[s]}function Y5(e,t,n){const a=$5(t);return ng.set(e,n),a.observe(e),()=>{ng.delete(e),a.unobserve(e)}}const W5={some:0,all:1};class G5 extends ao{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:s="some",once:l}=t,u={root:n?n.current:void 0,rootMargin:a,threshold:typeof s=="number"?s:W5[s]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:g}=this.node.getProps(),b=m?v:g;b&&b(h)};return Y5(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(q5(t,n))&&this.startObserver()}unmount(){}}function q5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const X5={inView:{Feature:G5},tap:{Feature:U5},focus:{Feature:V5},hover:{Feature:F5}},K5={layout:{ProjectionNode:ME,MeasureLayout:wE}},yd={current:null},xv={current:!1};function kE(){if(xv.current=!0,!!Fg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yd.current=e.matches;e.addListener(t),t()}else yd.current=!1}const Z5=[...tE,xn,Qa],Q5=e=>Z5.find(eE(e)),J5=new WeakMap;function e_(e,t,n){for(const a in t){const s=t[a],l=n[a];if(bn(s))e.addValue(a,s);else if(bn(l))e.addValue(a,Hl(s,{owner:e}));else if(l!==s)if(e.hasValue(a)){const u=e.getValue(a);u.liveStyle===!0?u.jump(s):u.hasAnimated||u.set(s)}else{const u=e.getStaticValue(a);e.addValue(a,Hl(u!==void 0?u:s,{owner:e}))}}for(const a in n)t[a]===void 0&&e.removeValue(a);return t}const pw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class t_{scrapeMotionValuesFromProps(t,n,a){return{}}constructor({parent:t,props:n,presenceContext:a,reducedMotionConfig:s,blockInitialAnimation:l,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=mv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Fr.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,mt.render(this.render,!1,!0))};const{latestValues:h,renderState:m,onUpdate:v}=u;this.onUpdate=v,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=qd(n),this.isVariantNode=u2(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...b}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in b){const E=b[w];h[w]!==void 0&&bn(E)&&E.set(h[w],!1)}}mount(t){this.current=t,J5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,a)=>this.bindToMotionValue(a,n)),xv.current||kE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Za(this.notifyUpdate),Za(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const a=Wo.has(t);a&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&mt.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),l=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),l(),u&&u(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ks){const n=Ks[t];if(!n)continue;const{isEnabled:a,Feature:s}=n;if(!this.features[t]&&s&&a(this.props)&&(this.features[t]=new s(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let a=0;a<pw.length;a++){const s=pw[a];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const l="on"+s,u=t[l];u&&(this.propEventSubscriptions[s]=this.on(s,u))}this.prevMotionValues=e_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const a=this.values.get(t);n!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&n!==void 0&&(a=Hl(n===null?void 0:n,{owner:this}),this.addValue(t,a)),a}readValue(t,n){var a;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(a=this.getBaseTargetFromProps(this.props,t))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Q2(s)||H2(s))?s=parseFloat(s):!Q5(s)&&Qa.test(n)&&(s=X2(t,n)),this.setBaseTarget(t,bn(s)?s.get():s)),bn(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:a}=this.props;let s;if(typeof a=="string"||typeof a=="object"){const u=ev(this.props,a,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(s=u[t])}if(a&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!bn(l)?l:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class DE extends t_{constructor(){super(...arguments),this.KeyframeResolver=nE}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:a}){delete n[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;bn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function n_(e){return window.getComputedStyle(e)}class r_ extends DE{constructor(){super(...arguments),this.type="html",this.renderInstance=w2}readValueFromInstance(t,n){if(Wo.has(n)){const a=hv(n);return a&&a.default||0}else{const a=n_(t),s=(Wg(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xE(t,n)}build(t,n,a){Xg(t,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,n,a){return tv(t,n,a)}}class a_ extends DE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&b2(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wo.has(n)){const a=hv(n);return a&&a.default||0}return n=S2.has(n)?n:$g(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,a){return C2(t,n,a)}onBindTransform(){this.current&&!this.renderState.dimensions&&mt.postRender(this.updateDimensions)}build(t,n,a){Qg(t,n,this.isSVGTag,a.transformTemplate)}renderInstance(t,n,a,s){E2(t,n,a,s)}mount(t){this.isSVGTag=Jg(t.tagName),super.mount(t)}}const o_=(e,t)=>Zg(e)?new a_(t):new r_(t,{allowProjection:e!==x.Fragment}),s_=kR({...M4,...X5,...B5,...K5},o_),st=WD(s_);function yv(){!xv.current&&kE();const[e]=x.useState(yd.current);return e}var tp={exports:{}},gl={}
vendor: 4,273 bytes, lines 25-41
25,np={exports:{}},rp={};/** 26 * @license React 27 * scheduler.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var gw;function i_(){return gw||(gw=1,function(e){function t(F,H){var V=F.length;F.push(H);e:for(;0<V;){var J=V-1>>>1,P=F[J];if(0<s(P,H))F[J]=H,F[V]=P,V=J;else break e}}function n(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var H=F[0],V=F.pop();if(V!==H){F[0]=V;e:for(var J=0,P=F.length,te=P>>>1;J<te;){var Y=2*(J+1)-1,G=F[Y],X=Y+1,ne=F[X];if(0>s(G,V))X<P&&0>s(ne,G)?(F[J]=ne,F[X]=V,J=X):(F[J]=G,F[Y]=V,J=Y);else if(X<P&&0>s(ne,V))F[J]=ne,F[X]=V,J=X;else break e}}return H}function s(F,H){var V=F.sortIndex-H.sortIndex;return V!==0?V:F.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],m=[],v=1,g=null,b=3,w=!1,E=!1,S=!1,j=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function k(F){for(var H=n(m);H!==null;){if(H.callback===null)a(m);else if(H.startTime<=F)a(m),H.sortIndex=H.expirationTime,t(h,H);else break;H=n(m)}}function T(F){if(S=!1,k(F),!E)if(n(h)!==null)E=!0,Q();else{var H=n(m);H!==null&&le(T,H.startTime-F)}}var M=!1,_=-1,O=5,D=-1;function L(){return!(e.unstable_now()-D<O)}function I(){if(M){var F=e.unstable_now();D=F;var H=!0;try{e:{E=!1,S&&(S=!1,N(_),_=-1),w=!0;var V=b;try{t:{for(k(F),g=n(h);g!==null&&!(g.expirationTime>F&&L());){var J=g.callback;if(typeof J=="function"){g.callback=null,b=g.priorityLevel;var P=J(g.expirationTime<=F);if(F=e.unstable_now(),typeof P=="function"){g.callback=P,k(F),H=!0;break t}g===n(h)&&a(h),k(F)}else a(h);g=n(h)}if(g!==null)H=!0;else{var te=n(m);te!==null&&le(T,te.startTime-F),H=!1}}break e}finally{g=null,b=V,w=!1}H=void 0}}finally{H?Z():M=!1}}}var Z;if(typeof A=="function")Z=function(){A(I)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,U=ce.port2;ce.port1.onmessage=I,Z=function(){U.postMessage(null)}}else Z=function(){j(I,0)};function Q(){M||(M=!0,Z())}function le(F,H){_=j(function(){F(e.unstable_now())},H)}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(F){F.callback=null},e.unstable_continueExecution=function(){E||w||(E=!0,Q())},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(F){switch(b){case 1:case 2:case 3:var H=3;break;default:H=b}var V=b;b=H;try{return F()}finally{b=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,H){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var V=b;b=F;try{return H()}finally{b=V}},e.unstable_scheduleCallback=function(F,H,V){var J=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?J+V:J):V=J,F){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=V+P,F={id:v++,callback:H,priorityLevel:F,startTime:V,expirationTime:P,sortIndex:-1},V>J?(F.sortIndex=V,t(m,F),n(h)===null&&F===n(m)&&(S?(N(_),_=-1):S=!0,le(T,V-J))):(F.sortIndex=P,t(h,F),E||w||(E=!0,Q())),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var H=b;return function(){var V=b;b=H;try{return F.apply(this,arguments)}finally{b=V}}}}(rp)),rp}var vw;function l_(){return vw||(vw=1,np.exports=i_()),np.exports}var ap={exports:{}},gn={};/** 34 * @license React 35 * react-dom.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var xw;
vendor: 4,949 bytes, lines 41-49
41function c_(){if(xw)return gn;xw=1;var e=zg();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(h,m,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:h,containerInfo:m,implementation:v}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,gn.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return l(h,m,null,v)},gn.flushSync=function(h){var m=u.T,v=a.p;try{if(u.T=null,a.p=2,h)return h()}finally{u.T=m,a.p=v,a.d.f()}},gn.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,a.d.C(h,m))},gn.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},gn.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,g=f(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?a.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:w}):v==="script"&&a.d.X(h,{crossOrigin:g,integrity:b,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},gn.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=f(m.as,m.crossOrigin);a.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&a.d.M(h)},gn.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,g=f(v,m.crossOrigin);a.d.L(h,v,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},gn.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=f(m.as,m.crossOrigin);a.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else a.d.m(h)},gn.requestFormReset=function(h){a.d.r(h)},gn.unstable_batchedUpdates=function(h,m){return h(m)},gn.useFormState=function(h,m,v){return u.H.useFormState(h,m,v)},gn.useFormStatus=function(){return u.H.useHostTransitionStatus()},gn.version="19.0.0",gn}var yw;function RE(){if(yw)return ap.exports;yw=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(),ap.exports=c_(),ap.exports}/** 42 * @license React 43 * react-dom-client.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 bw;function u_(){if(bw)return gl;bw=1;var e=l_(),t=zg(),n=RE();function a(r){var o="https://react.dev/errors/"+r;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)o+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}var l=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),T=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function _(r){return r===null||typeof r!="object"?null:(r=M&&r[M
vendor: 7,814 bytes, lines 49-56
49]||r["@@iterator"],typeof r=="function"?r:null)}var O=Symbol.for("react.client.reference");function D(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===O?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case h:return"Fragment";case f:return"Portal";case v:return"Profiler";case m:return"StrictMode";case S:return"Suspense";case j:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case w:return(r.displayName||"Context")+".Provider";case b:return(r._context.displayName||"Context")+".Consumer";case E:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case N:return o=r.displayName||null,o!==null?o:D(r.type)||"Memo";case A:o=r._payload,r=r._init;try{return D(r(o))}catch{}}return null}var L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.assign,Z,ce;function U(r){if(Z===void 0)try{throw Error()}catch(i){var o=i.stack.trim().match(/\n( *(at )?)/);Z=o&&o[1]||"",ce=-1<i.stack.indexOf(` 50 at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return` 51`+Z+r+ce}var Q=!1;function le(r,o){if(!r||Q)return"";Q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(o){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ae){var ee=ae}Reflect.construct(r,[],he)}else{try{he.call()}catch(ae){ee=ae}r.call(he.prototype)}}else{try{throw Error()}catch(ae){ee=ae}(he=r())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ae){if(ae&&ee&&typeof ae.stack=="string")return[ae.stack,ee.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),C=y[0],R=y[1];if(C&&R){var B=C.split(` 52`),W=R.split(` 53`);for(p=d=0;d<B.length&&!B[d].includes("DetermineComponentFrameRoot");)d++;for(;p<W.length&&!W[p].includes("DetermineComponentFrameRoot");)p++;if(d===B.length||p===W.length)for(d=B.length-1,p=W.length-1;1<=d&&0<=p&&B[d]!==W[p];)p--;for(;1<=d&&0<=p;d--,p--)if(B[d]!==W[p]){if(d!==1||p!==1)do if(d--,p--,0>p||B[d]!==W[p]){var oe=` 54`+B[d].replace(" at new "," at ");return r.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",r.displayName)),oe}while(1<=d&&0<=p);break}}}finally{Q=!1,Error.prepareStackTrace=i}return(i=r?r.displayName||r.name:"")?U(i):""}function F(r){switch(r.tag){case 26:case 27:case 5:return U(r.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 15:return r=le(r.type,!1),r;case 11:return r=le(r.type.render,!1),r;case 1:return r=le(r.type,!0),r;default:return""}}function H(r){try{var o="";do o+=F(r),r=r.return;while(r);return o}catch(i){return` 55Error generating stack: `+i.message+` 56`+i.stack}}function V(r){var o=r,i=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(i=o.return),r=o.return;while(r)}return o.tag===3?i:null}function J(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function P(r){if(V(r)!==r)throw Error(a(188))}function te(r){var o=r.alternate;if(!o){if(o=V(r),o===null)throw Error(a(188));return o!==r?null:r}for(var i=r,d=o;;){var p=i.return;if(p===null)break;var y=p.alternate;if(y===null){if(d=p.return,d!==null){i=d;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===i)return P(p),r;if(y===d)return P(p),o;y=y.sibling}throw Error(a(188))}if(i.return!==d.return)i=p,d=y;else{for(var C=!1,R=p.child;R;){if(R===i){C=!0,i=p,d=y;break}if(R===d){C=!0,d=p,i=y;break}R=R.sibling}if(!C){for(R=y.child;R;){if(R===i){C=!0,i=y,d=p;break}if(R===d){C=!0,d=y,i=p;break}R=R.sibling}if(!C)throw Error(a(189))}}if(i.alternate!==d)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?r:o}function Y(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r;for(r=r.child;r!==null;){if(o=Y(r),o!==null)return o;r=r.sibling}return null}var G=Array.isArray,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},se=[],re=-1;function ie(r){return{current:r}}function pe(r){0>re||(r.current=se[re],se[re]=null,re--)}function fe(r,o){re++,se[re]=r.current,r.current=o}var je=ie(null),Ne=ie(null),qe=ie(null),ye=ie(null);function gt(r,o){switch(fe(qe,o),fe(Ne,r),fe(je,null),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)&&(o=o.namespaceURI)?Cb(o):0;break;default:if(r=r===8?o.parentNode:o,o=r.tagName,r=r.namespaceURI)r=Cb(r),o=jb(r,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}pe(je),fe(je,o)}function ct(){pe(je),pe(Ne),pe(qe)}function vt(r){r.memoizedState!==null&&fe(ye,r);var o=je.current,i=jb(o,r.type);o!==i&&(fe(Ne,r),fe(je,i))}function hn(r){Ne.current===r&&(pe(je),pe(Ne)),ye.current===r&&(pe(ye),cl._currentValue=ne)}var dt=Object.prototype.hasOwnProperty,yt=e.unstable_scheduleCallback,Sn=e.unstable_cancelCallback,pt=e.unstable_shouldYield,Mt=e.unstable_requestPaint,kt=e.unstable_now,Nr=e.unstable_getCurrentPriorityLevel,Ln=e.unstable_ImmediatePriority,En=e.unstable_UserBlockingPriority,Dt=e.unstable_NormalPriority,Cn=e.unstable_LowPriority,rn=e.unstable_IdlePriority,an=e.log,It=e.unstable_setDisableYieldValue,kn=null,Rt=null;function qn(r){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(kn,r,void 0,(r.current.flags&128)===128)}catch{}}function Ht(r){if(typeof an=="function"&&It(r),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(kn,r)}catch{}}var Ot=Math.clz32?Math.clz32:Te,zn=Math.log,me=Math.LN2;function Te(r){return r>>>=0,r===0?32:31-(zn(r)/me|0)|0}var xe=128,ve=4194304;function Ae(r){var o=r&42;if(o!==0)return o;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:return 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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function de(r,o){var i=r.pendingLanes;if(i===0)return 0;var d=0,p=r.suspendedLanes,y=r.pingedLanes,C=r.warmLanes;r=r.finishedLanes!==0;var R=i&134217727;return R!==0?(i=R&~p,i!==0?d=Ae(i):(y&=R,y!==0?d=Ae(y):r||(C=R&~C,C!==0&&(d=Ae(C))))):(R=i&~p,R!==0?d=Ae(R):y!==0?d=Ae(y):r||(C=i&~C,C!==0&&(d=Ae(C)))),d===0?0:o!==0&&o!==d&&(o&p)===0&&(p=d&-d,C=o&-o,p>=C||p===32&&(C&4194176)!==0)?o:d}function Oe(r,o){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&o)===0}function Ve(r,o){switch(r){case 1:case 2:case 4:case 8:return o+250;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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ze(){var r=xe;return xe<<=1,(xe&4194176)===0&&(xe=128),r}function et(){var r=ve;return ve<<=1,(ve&62914560)===0&&(ve=4194304),r}function Ue(r){for(var o=[],i=0;31>i;i++)o.push(r);return o}function Le(r,o){r.pendingLanes|=o,o!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}
vendor: 2,625 bytes, line 56
56function Lt(r,o,i,d,p,y){var C=r.pendingLanes;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=i,r.entangledLanes&=i,r.errorRecoveryDisabledLanes&=i,r.shellSuspendCounter=0;var R=r.entanglements,B=r.expirationTimes,W=r.hiddenUpdates;for(i=C&~i;0<i;){var oe=31-Ot(i),he=1<<oe;R[oe]=0,B[oe]=-1;var ee=W[oe];if(ee!==null)for(W[oe]=null,oe=0;oe<ee.length;oe++){var ae=ee[oe];ae!==null&&(ae.lane&=-536870913)}i&=~he}d!==0&&rt(r,d,0),y!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=y&~(C&~o))}function rt(r,o,i){r.pendingLanes|=o,r.suspendedLanes&=~o;var d=31-Ot(o);r.entangledLanes|=o,r.entanglements[d]=r.entanglements[d]|1073741824|i&4194218}function xt(r,o){var i=r.entangledLanes|=o;for(r=r.entanglements;i;){var d=31-Ot(i),p=1<<d;p&o|r[d]&o&&(r[d]|=o),i&=~p}}function fr(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function mn(){var r=X.p;return r!==0?r:(r=window.event,r===void 0?32:Hb(r.type))}function hr(r,o){var i=X.p;try{return X.p=r,o()}finally{X.p=i}}var Dn=Math.random().toString(36).slice(2),zt="__reactFiber$"+Dn,Rn="__reactProps$"+Dn,Zo="__reactContainer$"+Dn,zf="__reactEvents$"+Dn,EM="__reactListeners$"+Dn,CM="__reactHandles$"+Dn,Sx="__reactResources$"+Dn,wi="__reactMarker$"+Dn;function Bf(r){delete r[zt],delete r[Rn],delete r[zf],delete r[EM],delete r[CM]}function fo(r){var o=r[zt];if(o)return o;for(var i=r.parentNode;i;){if(o=i[Zo]||i[zt]){if(i=o.alternate,o.child!==null||i!==null&&i.child!==null)for(r=Ab(r);r!==null;){if(i=r[zt])return i;r=Ab(r)}return o}r=i,i=r.parentNode}return null}function Qo(r){if(r=r[zt]||r[Zo]){var o=r.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return r}return null}function Si(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r.stateNode;throw Error(a(33))}function Jo(r){var o=r[Sx];return o||(o=r[Sx]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Kt(r){r[wi]=!0}var Ex=new Set,Cx={};function ho(r,o){es(r,o),es(r+"Capture",o)}function es(r,o){for(Cx[r]=o,r=0;r<o.length;r++)Ex.add(o[r])}var Xr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jM=RegExp("^[: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]*$"),jx={},Nx={};function NM(r){return dt.call(Nx,r)?!0:dt.call(jx,r)?!1:jM.test(r)?Nx[r]=!0:(jx[r]=!0,!1)}
vendor: 9,631 bytes, line 56
56function Dc(r,o,i){if(NM(o))if(i===null)r.removeAttribute(o);else{switch(typeof i){case"undefined":case"function":case"symbol":r.removeAttribute(o);return;case"boolean":var d=o.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(o);return}}r.setAttribute(o,""+i)}}function Rc(r,o,i){if(i===null)r.removeAttribute(o);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttribute(o,""+i)}}function Kr(r,o,i,d){if(d===null)r.removeAttribute(i);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttributeNS(o,i,""+d)}}function Xn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Tx(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function TM(r){var o=Tx(r)?"checked":"value",i=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),d=""+r[o];if(!r.hasOwnProperty(o)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var p=i.get,y=i.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return p.call(this)},set:function(C){d=""+C,y.call(this,C)}}),Object.defineProperty(r,o,{enumerable:i.enumerable}),{getValue:function(){return d},setValue:function(C){d=""+C},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Oc(r){r._valueTracker||(r._valueTracker=TM(r))}function Ax(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var i=o.getValue(),d="";return r&&(d=Tx(r)?r.checked?"true":"false":r.value),r=d,r!==i?(o.setValue(r),!0):!1}function _c(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}}var AM=/[\n"\\]/g;function Kn(r){return r.replace(AM,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Ff(r,o,i,d,p,y,C,R){r.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?r.type=C:r.removeAttribute("type"),o!=null?C==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+Xn(o)):r.value!==""+Xn(o)&&(r.value=""+Xn(o)):C!=="submit"&&C!=="reset"||r.removeAttribute("value"),o!=null?Vf(r,C,Xn(o)):i!=null?Vf(r,C,Xn(i)):d!=null&&r.removeAttribute("value"),p==null&&y!=null&&(r.defaultChecked=!!y),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?r.name=""+Xn(R):r.removeAttribute("name")}function Mx(r,o,i,d,p,y,C,R){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),o!=null||i!=null){if(!(y!=="submit"&&y!=="reset"||o!=null))return;i=i!=null?""+Xn(i):"",o=o!=null?""+Xn(o):i,R||o===r.value||(r.value=o),r.defaultValue=o}d=d??p,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=R?r.checked:!!d,r.defaultChecked=!!d,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(r.name=C)}function Vf(r,o,i){o==="number"&&_c(r.ownerDocument)===r||r.defaultValue===""+i||(r.defaultValue=""+i)}function ts(r,o,i,d){if(r=r.options,o){o={};for(var p=0;p<i.length;p++)o["$"+i[p]]=!0;for(i=0;i<r.length;i++)p=o.hasOwnProperty("$"+r[i].value),r[i].selected!==p&&(r[i].selected=p),p&&d&&(r[i].defaultSelected=!0)}else{for(i=""+Xn(i),o=null,p=0;p<r.length;p++){if(r[p].value===i){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}o!==null||r[p].disabled||(o=r[p])}o!==null&&(o.selected=!0)}}function kx(r,o,i){if(o!=null&&(o=""+Xn(o),o!==r.value&&(r.value=o),i==null)){r.defaultValue!==o&&(r.defaultValue=o);return}r.defaultValue=i!=null?""+Xn(i):""}function Dx(r,o,i,d){if(o==null){if(d!=null){if(i!=null)throw Error(a(92));if(G(d)){if(1<d.length)throw Error(a(93));d=d[0]}i=d}i==null&&(i=""),o=i}i=Xn(o),r.defaultValue=i,d=r.textContent,d===i&&d!==""&&d!==null&&(r.value=d)}function ns(r,o){if(o){var i=r.firstChild;if(i&&i===r.lastChild&&i.nodeType===3){i.nodeValue=o;return}}r.textContent=o}var MM=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Rx(r,o,i){var d=o.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?d?r.setProperty(o,""):o==="float"?r.cssFloat="":r[o]="":d?r.setProperty(o,i):typeof i!="number"||i===0||MM.has(o)?o==="float"?r.cssFloat=i:r[o]=(""+i).trim():r[o]=i+"px"}function Ox(r,o,i){if(o!=null&&typeof o!="object")throw Error(a(62));if(r=r.style,i!=null){for(var d in i)!i.hasOwnProperty(d)||o!=null&&o.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var p in o)d=o[p],o.hasOwnProperty(p)&&i[p]!==d&&Rx(r,p,d)}else for(var y in o)o.hasOwnProperty(y)&&Rx(r,y,o[y])}function Uf(r){if(r.indexOf("-")===-1)return!1;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 kM=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),DM=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pc(r){return DM.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}var If=null;function Hf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var rs=null,as=null;function _x(r){var o=Qo(r);if(o&&(r=o.stateNode)){var i=r[Rn]||null;e:switch(r=o.stateNode,o.type){case"input":if(Ff(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),o=i.name,i.type==="radio"&&o!=null){for(i=r;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Kn(""+o)+'"][type="radio"]'),o=0;o<i.length;o++){var d=i[o];if(d!==r&&d.form===r.form){var p=d[Rn]||null;if(!p)throw Error(a(90));Ff(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(o=0;o<i.length;o++)d=i[o],d.form===r.form&&Ax(d)}break e;case"textarea":kx(r,i.value,i.defaultValue);break e;case"select":o=i.value,o!=null&&ts(r,!!i.multiple,o,!1)}}}var $f=!1;
vendor: 4,111 bytes, line 56
56function Px(r,o,i){if($f)return r(o,i);$f=!0;try{var d=r(o);return d}finally{if($f=!1,(rs!==null||as!==null)&&(xu(),rs&&(o=rs,r=as,as=rs=null,_x(o),r)))for(o=0;o<r.length;o++)_x(r[o])}}function Ei(r,o){var i=r.stateNode;if(i===null)return null;var d=i[Rn]||null;if(d===null)return null;i=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(i&&typeof i!="function")throw Error(a(231,o,typeof i));return i}var Yf=!1;if(Xr)try{var Ci={};Object.defineProperty(Ci,"passive",{get:function(){Yf=!0}}),window.addEventListener("test",Ci,Ci),window.removeEventListener("test",Ci,Ci)}catch{Yf=!1}var Ca=null,Wf=null,Lc=null;function Lx(){if(Lc)return Lc;var r,o=Wf,i=o.length,d,p="value"in Ca?Ca.value:Ca.textContent,y=p.length;for(r=0;r<i&&o[r]===p[r];r++);var C=i-r;for(d=1;d<=C&&o[i-d]===p[y-d];d++);return Lc=p.slice(r,1<d?1-d:void 0)}function zc(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Bc(){return!0}function zx(){return!1}function On(r){function o(i,d,p,y,C){this._reactName=i,this._targetInst=p,this.type=d,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var R in r)r.hasOwnProperty(R)&&(i=r[R],this[R]=i?i(y):y[R]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Bc:zx,this.isPropagationStopped=zx,this}return I(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Bc)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Bc)},persist:function(){},isPersistent:Bc}),o}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fc=On(mo),ji=I({},mo,{view:0,detail:0}),RM=On(ji),Gf,qf,Ni,Vc=I({},ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kf,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!==Ni&&(Ni&&r.type==="mousemove"?(Gf=r.screenX-Ni.screenX,qf=r.screenY-Ni.screenY):qf=Gf=0,Ni=r),Gf)},movementY:function(r){return"movementY"in r?r.movementY:qf}}),Bx=On(Vc),OM=I({},Vc,{dataTransfer:0}),_M=On(OM),PM=I({},ji,{relatedTarget:0}),Xf=On(PM),LM=I({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),zM=On(LM),BM=I({},mo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),FM=On(BM),VM=I({},mo,{data:0}),Fx=On(VM),UM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IM={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"},HM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $M(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=HM[r])?!!o[r]:!1}function Kf(){return $M}var YM=I({},ji,{key:function(r){if(r.key){var o=UM[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=zc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="
56keyup"?IM[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kf,charCode:function(r){return r.type==="keypress"?zc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?zc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),WM=On(YM),GM=I({},Vc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vx=On(GM),qM=I({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kf}),XM=On(qM),KM=I({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZM=On(KM),QM=I({},Vc,{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}),JM=On(QM),ek=I({},mo,{newState:0,oldState:0}),tk=On(ek),nk=[9,13,27,32],Zf=Xr&&"CompositionEvent"in window,Ti=null;Xr&&"documentMode"in document&&(Ti=document.documentMode);var rk=Xr&&"TextEvent"in window&&!Ti,Ux=Xr&&(!Zf||Ti&&8<Ti&&11>=Ti),Ix=" ",Hx=!1;function $x(r,o){switch(r){case"keyup":return nk.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yx(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var os=!1;function ak(r,o){switch(r){case"compositionend":return Yx(o);case"keypress":return o.which!==32?null:(Hx=!0,Ix);case"textInput":return r=o.data,r===Ix&&Hx?null:r;default:return null}}function ok(r,o){if(os)return r==="compositionend"||!Zf&&$x(r,o)?(r=Lx(),Lc=Wf=Ca=null,os=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Ux&&o.locale!=="ko"?null:o.data;default:return null}}var sk={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 Wx(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!sk[r.type]:o==="textarea"}function Gx(r,o,i,d){rs?as?as.push(d):as=[d]:rs=d,o=Eu(o,"onChange"),0<o.length&&(i=new Fc("onChange","change",null,i,d),r.push({event:i,listeners:o}))}var Ai=null,Mi=null;function ik(r){yb(r,0)}function Uc(r){var o=Si(r);if(Ax(o))return r}function qx(r,o){if(r==="change")return o}var Xx=!1;if(Xr){var Qf;if(Xr){var Jf="oninput"in document;if(!Jf){var Kx=document.createElement("div");Kx.setAttribute("oninput","return;"),Jf=typeof Kx.oninput=="function"}Qf=Jf}else Qf=!1;Xx=Qf&&(!document.documentMode||9<document.documentMode)}function Zx(){Ai&&(Ai.detachEvent("onpropertychange",Qx),Mi=Ai=null)}function Qx(r){if(r.propertyName==="value"&&Uc(Mi)){var o=[];Gx(o,Mi,r,Hf(r)),Px(ik,o)}}function lk(r,o,i){r==="focusin"?(Zx(),Ai=o,Mi=i,Ai.attachEvent("onpropertychange",Qx)):r==="focusout"&&Zx()}function ck(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Uc(Mi)}function uk(r,o){if(r==="click")return Uc(o)}function dk(r,o){if(r==="input"||r==="change")return Uc(o)}function fk(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Bn=typeof Object.is=="function"?Object.is:fk;function ki(r,o){if(Bn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var i=Object.keys(r),d=Object.keys(o);if(i.length!==d.length)return!1;for(d=0;d<i.length;d++){var p=i[d];if(!dt.call(o,p)||!Bn(r[p],o[p]))return!1}return!0}function Jx(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function e0(r,o){var i=Jx(r);r=0;for(var d;i;){if(i.nodeType===3){if(d=r+i.textContent.length,r<=o&&d>=o)return{node:i,offset:o-r};r=d}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Jx(i)}}function t0(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?t0(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function n0(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var o=_c(r.document);o instanceof r.HTMLIFrameElement;){try{var i=typeof o.contentWindow.location.href=="string"}catch{i=!1}if(i)r=o.contentWindow;else break;o=_c(r.document)}return o}function eh(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function hk(r,o){var i=n0(o);o=r.focusedElem;var d=r.selectionRange;if(i!==o&&o&&o.ownerDocument&&t0(o.ownerDocument.documentElement,o)){if(d!==null&&eh(o)){if(r=d.start,i=d.end,i===void 0&&(i=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(i,o.value.length);else if(i=(r=o.ownerDocument||document)&&r.defaultView||window,i.getSelection){i=i.getSelection();var p=o.textContent.length,y=Math.min(d.start,p);d=d.end===void 0?y:Math.min(d.end,p),!i.extend&&y>d&&(p=d,d=y,y=p),p=e0(o,y);var C=e0(o,d);p&&C&&(i.rangeCount!==1||i.anchorNode!==p.node||i.anchorOffset!==p.offset||i.focusNode!==C.node||i.focusOffset!==C.offset)&&(r=r.createRange(),r.setStart(p.node,p.offset),i.removeAllRanges(),y>d?(i.addRange(r),i.extend(C.node,C.offset)):(r.setEnd(C.node,C.offset),i.addRange(r)))}}for(r=[],i=o;i=i.parentNode;)i.nodeType===1&&r.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<r.length;o++)i=r[o],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var mk=Xr&&"documentMode"in document&&11>=document.documentMode,ss=null,th=null,Di=null,nh=!1;function r0(r,o,i){var d=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;nh||ss==null||ss!==_c(d)||(d=ss,"selectionStart"in d&&eh(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focu
vendor: 15,797 bytes, line 56
56sNode:d.focusNode,focusOffset:d.focusOffset}),Di&&ki(Di,d)||(Di=d,d=Eu(th,"onSelect"),0<d.length&&(o=new Fc("onSelect","select",null,o,i),r.push({event:o,listeners:d}),o.target=ss)))}function po(r,o){var i={};return i[r.toLowerCase()]=o.toLowerCase(),i["Webkit"+r]="webkit"+o,i["Moz"+r]="moz"+o,i}var is={animationend:po("Animation","AnimationEnd"),animationiteration:po("Animation","AnimationIteration"),animationstart:po("Animation","AnimationStart"),transitionrun:po("Transition","TransitionRun"),transitionstart:po("Transition","TransitionStart"),transitioncancel:po("Transition","TransitionCancel"),transitionend:po("Transition","TransitionEnd")},rh={},a0={};Xr&&(a0=document.createElement("div").style,"AnimationEvent"in window||(delete is.animationend.animation,delete is.animationiteration.animation,delete is.animationstart.animation),"TransitionEvent"in window||delete is.transitionend.transition);function go(r){if(rh[r])return rh[r];if(!is[r])return r;var o=is[r],i;for(i in o)if(o.hasOwnProperty(i)&&i in a0)return rh[r]=o[i];return r}var o0=go("animationend"),s0=go("animationiteration"),i0=go("animationstart"),pk=go("transitionrun"),gk=go("transitionstart"),vk=go("transitioncancel"),l0=go("transitionend"),c0=new Map,u0="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function mr(r,o){c0.set(r,o),ho(o,[r])}var Zn=[],ls=0,ah=0;function Ic(){for(var r=ls,o=ah=ls=0;o<r;){var i=Zn[o];Zn[o++]=null;var d=Zn[o];Zn[o++]=null;var p=Zn[o];Zn[o++]=null;var y=Zn[o];if(Zn[o++]=null,d!==null&&p!==null){var C=d.pending;C===null?p.next=p:(p.next=C.next,C.next=p),d.pending=p}y!==0&&d0(i,p,y)}}function Hc(r,o,i,d){Zn[ls++]=r,Zn[ls++]=o,Zn[ls++]=i,Zn[ls++]=d,ah|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function oh(r,o,i,d){return Hc(r,o,i,d),$c(r)}function ja(r,o){return Hc(r,null,null,o),$c(r)}function d0(r,o,i){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i);for(var p=!1,y=r.return;y!==null;)y.childLanes|=i,d=y.alternate,d!==null&&(d.childLanes|=i),y.tag===22&&(r=y.stateNode,r===null||r._visibility&1||(p=!0)),r=y,y=y.return;p&&o!==null&&r.tag===3&&(y=r.stateNode,p=31-Ot(i),y=y.hiddenUpdates,r=y[p],r===null?y[p]=[o]:r.push(o),o.lane=i|536870912)}function $c(r){if(50<nl)throw nl=0,dm=null,Error(a(185));for(var o=r.return;o!==null;)r=o,o=r.return;return r.tag===3?r.stateNode:null}var cs={},f0=new WeakMap;function Qn(r,o){if(typeof r=="object"&&r!==null){var i=f0.get(r);return i!==void 0?i:(o={value:r,source:o,stack:H(o)},f0.set(r,o),o)}return{value:r,source:o,stack:H(o)}}var us=[],ds=0,Yc=null,Wc=0,Jn=[],er=0,vo=null,Zr=1,Qr="";function xo(r,o){us[ds++]=Wc,us[ds++]=Yc,Yc=r,Wc=o}function h0(r,o,i){Jn[er++]=Zr,Jn[er++]=Qr,Jn[er++]=vo,vo=r;var d=Zr;r=Qr;var p=32-Ot(d)-1;d&=~(1<<p),i+=1;var y=32-Ot(o)+p;if(30<y){var C=p-p%5;y=(d&(1<<C)-1).toString(32),d>>=C,p-=C,Zr=1<<32-Ot(o)+p|i<<p|d,Qr=y+r}else Zr=1<<y|i<<p|d,Qr=r}function sh(r){r.return!==null&&(xo(r,1),h0(r,1,0))}function ih(r){for(;r===Yc;)Yc=us[--ds],us[ds]=null,Wc=us[--ds],us[ds]=null;for(;r===vo;)vo=Jn[--er],Jn[er]=null,Qr=Jn[--er],Jn[er]=null,Zr=Jn[--er],Jn[er]=null}var jn=null,on=null,Qe=!1,pr=null,Tr=!1,lh=Error(a(519));function yo(r){var o=Error(a(418,""));throw _i(Qn(o,r)),lh}function m0(r){var o=r.stateNode,i=r.type,d=r.memoizedProps;switch(o[zt]=r,o[Rn]=d,i){case"dialog":Xe("cancel",o),Xe("close",o);break;case"iframe":case"object":case"embed":Xe("load",o);break;case"video":case"audio":for(i=0;i<al.length;i++)Xe(al[i],o);break;case"source":Xe("error",o);break;case"img":case"image":case"link":Xe("error",o),Xe("load",o);break;case"details":Xe("toggle",o);break;case"input":Xe("invalid",o),Mx(o,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0),Oc(o);break;case"select":Xe("invalid",o);break;case"textarea":Xe("invalid",o),Dx(o,d.value,d.defaultValue,d.children),Oc(o)}i=d.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||o.textContent===""+i||d.suppressHydrationWarning===!0||Eb(o.textContent,i)?(d.popover!=null&&(Xe("beforetoggle",o),Xe("toggle",o)),d.onScroll!=null&&Xe("scroll",o),d.onScrollEnd!=null&&Xe("scrollend",o),d.onClick!=null&&(o.onclick=Cu),o=!0):o=!1,o||yo(r)}function p0(r){for(jn=r.return;jn;)switch(jn.tag){case 3:case 27:Tr=!0;return;case 5:case 13:Tr=!1;return;default:jn=jn.return}}function Ri(r){if(r!==jn)return!1;if(!Qe)return p0(r),Qe=!0,!1;var o=!1,i;if((i=r.tag!==3&&r.tag!==27)&&((i=r.tag===5)&&(i=r.type,i=!(i!=="form"&&i!=="button")||Am(r.type,r.memoizedProps)),i=!i),i&&(o=!0),o&&on&&yo(r),p0(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8)if(i=r.data,i==="/$"){if(o===0){on=vr(r.nextSibling);break e}o--}else i!=="$"&&i!=="$!"&&i!=="$?"||o++;r=r.nextSibling}on=null}}else on=jn?vr(r.stateNode.nextSibling):null;return!0}function Oi(){on=jn=null,Qe=!1}function _i(r){pr===null?pr=[r]:pr.push(r)}var Pi=Error(a(460)),g0=Error(a(474)),ch={then:function(){}};function v0(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Gc(){}function x0(r,o,i){switch(i=r[i],i===void 0?r.push(o):i!==o&&(o.then(Gc,Gc),o=i),o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,r===Pi?Error(a(483)):r;default:if(typeof o.status=="string")o.then(Gc,Gc);else{if(r=ft,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=o,r.status="pending",r.then(function(d){if(o.status==="pending"){var p=o;p.status="fulfilled",p.value=d}},function(d){if(o.status==="pending"){var p=o;p.status="rejected",p.reason=d}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,r===Pi?Error(a(483)):r}throw Li=o,Pi}}var Li=null;function y0(){if(Li===null)throw Error(a(459));var r=Li;return Li=null,r}var fs=null,zi=0;function qc(r){var o=zi;return zi+=1,fs===null&&(fs=[]),x0(fs,r,o)}function Bi(r,o){o=o.props.ref,r.ref=o!==void 0?o:null}function Xc(r,o){throw o.$$typeof===l?Error(a(525)):(r=Object.prototype.toString.call(o),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r)))}function b0(r){var o=r._init;return o(r._payload)}function w0(r){function o(q,$){if(r){var K=q.deletions;K===null?(q.deletions=[$],q.flags|=16):K.push($)}}function i(q,$){if(!r)return null;for(;$!==null;)o(q,$),$=$.sibling;return null}function d(q){for(var $=new Map;q!==null;)q.key!==null?$.set(q.key,q):$.set(q.index,q),q=q.sibling;return $}function p(q,$){return q=za(q,$),q.index=0,q.sibling=null,q}function y(q,$,K){return q.index=K,r?(K=q.alternate,K!==null?(K=K.index,K<$?(q.flags|=33554434,$):K):(q.flags|=33554434,$)):(q.flags|=1048576,$)}function C(q){return r&&q.alternate===null&&(q.flags|=33554434),q}function R(q,$,K,ue){return $===null||$.tag!==6?($=rm(K,q.mode,ue),$.return=q,$):($=p($,K),$.return=q,$)}function B(q,$,K,ue){var we=K.type;return we===h?oe(q,$,K.props.children,ue,K.key):$!==null&&($.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===A&&b0(we)===$.type)?($=p($,K.props),Bi($,K),$.return=q,$):($=hu(K.type,K.key,K.props,null,q.mode,ue),Bi($,K),$.return=q,$)}function W(q,$,K,ue){return $===null||$.tag!==4||$.stateNode.containerInfo!==K.containerInfo||$.stateNode.implementation!==K.implementation?($=am(K,q.mode,ue),$.return=q,$):($=p($,K.children||[]),$.return=q,$)}function oe(q,$,K,ue,we){return $===null||$.tag!==7?($=Mo(K,q.mode,ue,we),$.return=q,$):($=p($,K),$.return=q,$)}function he(q,$,K){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=rm(""+$,q.mode,K),$.return=q,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case u:return K=hu($.type,$.key,$.props,null,q.mode,K),Bi(K,$),K.return=q,K;case f:return $=am($,q.mode,K),$.return=q,$;case A:var ue=$._init;return $=ue($._payload),he(q,$,K)}if(G($)||_($))return $=Mo($,q.mode,K,null),$.return=q,$;if(typeof $.then=="function")return he(q,qc($),K);if($.$$typeof===w)return he(q,uu(q,$),K);Xc(q,$)}return null}function ee(q,$,K,ue){var we=$!==null?$.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return we!==null?null:R(q,$,""+K,ue);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case u:return K.key===we?B(q,$,K,ue):null;case f:return K.key===we?W(q,$,K,ue):null;case A:return we=K._init,K=we(K._payload),ee(q,$,K,ue)}if(G(K)||_(K))return we!==null?null:oe(q,$,K,ue,null);if(typeof K.then=="function")return ee(q,$,qc(K),ue);if(K.$$typeof===w)return ee(q,$,uu(q,K),ue);Xc(q,K)}return null}function ae(q,$,K,ue,we){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return q=q.get(K)||null,R($,q,""+ue,we);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case u:return q=q.get(ue.key===null?K:ue.key)||null,B($,q,ue,we);case f:return q=q.get(ue.key===null?K:ue.key)||null,W($,q,ue,we);case A:var Ye=ue._init;return ue=Ye(ue._payload),ae(q,$,K,ue,we)}if(G(ue)||_(ue))return q=q.get(K)||null,oe($,q,ue,we,null);if(typeof ue.then=="function")return ae(q,$,K,qc(ue),we);if(ue.$$typeof===w)return ae(q,$,K,uu($,ue),we);Xc($,ue)}return null}function Me(q,$,K,ue){for(var we=null,Ye=null,ke=$,_e=$=0,Jt=null;ke!==null&&_e<K.length;_e++){ke.index>_e?(Jt=ke,ke=null):Jt=ke.sibling;var Je=ee(q,ke,K[_e],ue);if(Je===null){ke===null&&(ke=Jt);break}r&&ke&&Je.alternate===null&&o(q,ke),$=y(Je,$,_e),Ye===null?we=Je:Ye.sibling=Je,Ye=Je,ke=Jt}if(_e===K.length)return i(q,ke),Qe&&xo(q,_e),we;if(ke===null){for(;_e<K.length;_e++)ke=he(q,K[_e],ue),ke!==null&&($=y(ke,$,_e),Ye===null?we=ke:Ye.sibling=ke,Ye=ke);return Qe&&xo(q,_e),we}for(ke=d(ke);_e<K.length;_e++)Jt=ae(ke,q,_e,K[_e],ue),Jt!==null&&(r&&Jt.alternate!==null&&ke.delete(Jt.key===null?_e:Jt.key),$=y(Jt,$,_e),Ye===null?we=Jt:Ye.sibling=Jt,Ye=Jt);return r&&ke.forEach(function($a){return o(q,$a)}),Qe&&xo(q,_e),we}function Be(q,$,K,ue){if(K==null)throw Error(a(151));for(var we=null,Ye=null,ke=$,_e=$=0,Jt=null,Je=K.next();ke!==null&&!Je.done;_e++,Je=K.next()){ke.index>_e?(Jt=ke,ke=null):Jt=ke.sibling;var $a=ee(q,ke,Je.value,ue);if($a===null){ke===null&&(ke=Jt);break}r&&ke&&$a.alternate===null&&o(q,ke),$=y($a,$,_e),Ye===null?we=$a:Ye.sibling=$a,Ye=$a,ke=Jt}if(Je.done)return i(q,ke),Qe&&xo(q,_e),we;if(ke===null){for(;!Je.done;_e++,Je=K.next())Je=he(q,Je.value,ue),Je!==null&&($=y(Je,$,_e),Ye===null?we=Je:Ye.sibling=Je,Ye=Je);return Qe&&xo(q,_e),we}for(ke=d(ke);!Je.done;_e++,Je=K.next())Je=ae(ke,q,_e,Je.value,ue),Je!==null&&(r&&Je.alternate!==null&&ke.delete(Je.key===null?_e:Je.key),$=y(Je,$,_e),Ye===null?we=Je:Ye.sibling=Je,Ye=Je);return r&&ke.forEach(function(DD){return o(q,DD)}),Qe&&xo(q,_e),we}function Tt(q,$,K,ue){if(typeof K=="object"&&K!==null&&K.type===h&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case u:e:{for(var we=K.key;$!==null;){if($.key===we){if(we=K.type,we===h){if($.tag===7){i(q,$.sibling),ue=p($,K.props.children),ue.return=q,q=ue;break e}}else if($.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===A&&b0(we)===$.type){i(q,$.sibling),ue=p($,K.props),Bi(ue,K),ue.return=q,q=ue;break e}i(q,$);break}else o(q,$);$=$.sibling}K.type===h?(ue=Mo(K.props.children,q.mode,ue,K.key),ue.return=q,q=ue):(ue=hu(K.type,K.key,K.props,null,q.mode,ue),Bi(ue,K),ue.return=q,q=ue)}return C(q);case f:e:{for(we=K.key;$!==null;){if($.key===we)if($.tag===4&&$.stateNode.containerInfo===K.containerInfo&&$.stateNode.implementation===K.implementation){i(q,$.sibling),ue=p($,K.children||[]),ue.return=q,q=ue;break e}else{i(q,$);break}else o(q,$);$=$.sibling}ue=am(K,q.mode,ue),ue.return=q,q=ue}return C(q);case A:return we=K._init,K=we(K._payload),Tt(q,$,K,ue)}if(G(K))return Me(q,$,K,ue);if(_(K)){if(we=_(K),typeof we!="function")throw Error(a(150));return K=we.call(K),Be(q,$,K,ue)}if(typeof K.then=="function")return Tt(q,$,qc(K),ue);if(K.$$typeof===w)return Tt(q,$,uu(q,K),ue);Xc(q,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,$!==null&&$.tag===6?(i(q,$.sibling),ue=p($,K),ue.return=q,q=ue):(i(q,$),ue=rm(K,q.mode,ue),ue.return=q,q=ue),C(q)):i(q,$)}return function(q,$,K,ue){try{zi=0;var we=Tt(q,$,K,ue);return fs=null,we}catch(ke){if(ke===Pi)throw ke;var Ye=ar(29,ke,null,q.mode);return Ye.lanes=ue,Ye.return=q,Ye}finally{}}}var bo=w0(!0),S0=w0(!1),hs=ie(null),Kc=ie(0);function E0(r,o){r=ca,fe(Kc,r),fe(hs,o),ca=r|o.baseLanes}function uh(){fe(Kc,ca),fe(hs,hs.current)}function dh(){ca=Kc.current,pe(hs),pe(Kc)}var tr=ie(null),Ar=null;function Na(r){var o=r.alternate;fe($t,$t.current&1),fe(tr,r),Ar===null&&(o===null||hs.current!==null||o.memoizedState!==null)&&(Ar=r)}function C0(r){if(r.tag===22){if(fe($t,$t.current),fe(tr,r),Ar===null){var o=r.alternate;o!==null&&o.memoizedState!==null&&(Ar=r)}}else Ta()}function Ta(){fe($t,$t.current),fe(tr,tr.current)}function Jr(r){pe(tr),Ar===r&&(Ar=null),pe($t)}var $t=ie(0);function Zc(r){for(var o=r;o!==null;){if(o.tag===13){var i=o.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var xk=typeof AbortController<"u"?AbortController:function(){var r=[],o=this.signal={aborted:!1,addEventListener:function(i,d){r.push(d)}};this.abort=function(){o.aborted=!0,r.forEach(function(i){return i()})}},yk=e.unstable_scheduleCallback,bk=e.unstable_NormalPriority,Yt={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fh(){return{controller:new xk,data:new Map,refCount:0}}function Fi(r){r.refCount--,r.refCount===0&&yk(bk,function(){r.controller.abort()})}var Vi=null,hh=0,ms=0,ps=null;function wk(r,o){if(Vi===null){var i=Vi=[];hh=0,ms=ym(),ps={status:"pending",value:void 0,then:function(d){i.push(d)}}}return hh++,o.then(j0,j0),o}function j0(){if(--hh===0&&Vi!==null){ps!==null&&(ps.status="fulfilled");var r=Vi;Vi=null,ms=0,ps=null;for(var o=0;o<r.length;o++)(0,r[o])()}}function Sk(r,o){var i=[],d={status:"pending",value:null,reason:null,then:function(p){i.push(p)}};return r.then(function(){d.status="fulfilled",d.value=o;for(var p=0;p<i.length;p++)(0,i[p])(o)},function(p){for(d.status="rejected",d.reason=p,p=0;p<i.length;p++)(0,i[p])(void 0)}),d}var N0=L.S;L.S=function(r,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&wk(r,o),N0!==null&&N0(r,o)};var wo=ie(null);function mh(){var r=wo.current;return r!==null?r:ft.pooledCache}function Qc(r,o){o===null?fe(wo,wo.current):fe(wo,o.pool)}function T0(){var r=mh();return r===null?null:{parent:Yt._currentValue,pool:r}}var Aa=0,He=null,at=null,Bt=null,Jc=!1,gs=!1,So=!1,eu=0,Ui=0,vs=null,Ek=0;function _t(){throw Error(a(321))}function ph(r,o){if(o===null)return!1;for(var i=0;i<o.length&&i<r.length;i++)if(!Bn(r[i],o[i]))return!1;return!0}function gh(r,o,i,d,p,y){return Aa=y,He=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,L.H=r===null||r.memoizedState===null?Eo:Ma,So=!1,y=i(d,p),So=!1,gs&&(y=M0(o,i,d,p)),A0(r),y}function A0(r){L.H=Mr;var o=at!==null&&at.next!==null;if(Aa=0,Bt=at=He=null,Jc=!1,Ui=0,vs=null,o)throw Error(a(300));r===null||Zt||(r=r.dependencies,r!==null&&cu(r)&&(Zt=!0))}function M0(r,o,i,d){He=r;var p=0;
vendor: 10,828 bytes, line 56
56do{if(gs&&(vs=null),Ui=0,gs=!1,25<=p)throw Error(a(301));if(p+=1,Bt=at=null,r.updateQueue!=null){var y=r.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}L.H=Co,y=o(i,d)}while(gs);return y}function Ck(){var r=L.H,o=r.useState()[0];return o=typeof o.then=="function"?Ii(o):o,r=r.useState()[0],(at!==null?at.memoizedState:null)!==r&&(He.flags|=1024),o}function vh(){var r=eu!==0;return eu=0,r}function xh(r,o,i){o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~i}function yh(r){if(Jc){for(r=r.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Jc=!1}Aa=0,Bt=at=He=null,gs=!1,Ui=eu=0,vs=null}function _n(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?He.memoizedState=Bt=r:Bt=Bt.next=r,Bt}function Ft(){if(at===null){var r=He.alternate;r=r!==null?r.memoizedState:null}else r=at.next;var o=Bt===null?He.memoizedState:Bt.next;if(o!==null)Bt=o,at=r;else{if(r===null)throw He.alternate===null?Error(a(467)):Error(a(310));at=r,r={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Bt===null?He.memoizedState=Bt=r:Bt=Bt.next=r}return Bt}var tu;tu=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Ii(r){var o=Ui;return Ui+=1,vs===null&&(vs=[]),r=x0(vs,r,o),o=He,(Bt===null?o.memoizedState:Bt.next)===null&&(o=o.alternate,L.H=o===null||o.memoizedState===null?Eo:Ma),r}function nu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Ii(r);if(r.$$typeof===w)return pn(r)}throw Error(a(438,String(r)))}function bh(r){var o=null,i=He.updateQueue;if(i!==null&&(o=i.memoCache),o==null){var d=He.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(o={data:d.data.map(function(p){return p.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),i===null&&(i=tu(),He.updateQueue=i),i.memoCache=o,i=o.data[o.index],i===void 0)for(i=o.data[o.index]=Array(r),d=0;d<r;d++)i[d]=T;return o.index++,i}function ea(r,o){return typeof o=="function"?o(r):o}function ru(r){var o=Ft();return wh(o,at,r)}function wh(r,o,i){var d=r.queue;if(d===null)throw Error(a(311));d.lastRenderedReducer=i;var p=r.baseQueue,y=d.pending;if(y!==null){if(p!==null){var C=p.next;p.next=y.next,y.next=C}o.baseQueue=p=y,d.pending=null}if(y=r.baseState,p===null)r.memoizedState=y;else{o=p.next;var R=C=null,B=null,W=o,oe=!1;do{var he=W.lane&-536870913;if(he!==W.lane?(Ze&he)===he:(Aa&he)===he){var ee=W.revertLane;if(ee===0)B!==null&&(B=B.next={lane:0,revertLane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),he===ms&&(oe=!0);else if((Aa&ee)===ee){W=W.next,ee===ms&&(oe=!0);continue}else he={lane:0,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},B===null?(R=B=he,C=y):B=B.next=he,He.lanes|=ee,Ba|=ee;he=W.action,So&&i(y,he),y=W.hasEagerState?W.eagerState:i(y,he)}else ee={lane:he,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},B===null?(R=B=ee,C=y):B=B.next=ee,He.lanes|=he,Ba|=he;W=W.next}while(W!==null&&W!==o);if(B===null?C=y:B.next=R,!Bn(y,r.memoizedState)&&(Zt=!0,oe&&(i=ps,i!==null)))throw i;r.memoizedState=y,r.baseState=C,r.baseQueue=B,d.lastRenderedState=y}return p===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function Sh(r){var o=Ft(),i=o.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=r;var d=i.dispatch,p=i.pending,y=o.memoizedState;if(p!==null){i.pending=null;var C=p=p.next;do y=r(y,C.action),C=C.next;while(C!==p);Bn(y,o.memoizedState)||(Zt=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),i.lastRenderedState=y}return[y,d]}function k0(r,o,i){var d=He,p=Ft(),y=Qe;if(y){if(i===void 0)throw Error(a(407));i=i()}else i=o();var C=!Bn((at||p).memoizedState,i);if(C&&(p.memoizedState=i,Zt=!0),p=p.queue,jh(O0.bind(null,d,p,r),[r]),p.getSnapshot!==o||C||Bt!==null&&Bt.memoizedState.tag&1){if(d.flags|=2048,xs(9,R0.bind(null,d,p,i,o),{destroy:void 0},null),ft===null)throw Error(a(349));y||(Aa&60)!==0||D0(d,o,i)}return i}function D0(r,o,i){r.flags|=16384,r={getSnapshot:o,value:i},o=He.updateQueue,o===null?(o=tu(),He.updateQueue=o,o.stores=[r]):(i=o.stores,i===null?o.stores=[r]:i.push(r))}function R0(r,o,i,d){o.value=i,o.getSnapshot=d,_0(o)&&P0(r)}function O0(r,o,i){return i(function(){_0(o)&&P0(r)})}function _0(r){var o=r.getSnapshot;r=r.value;try{var i=o();return!Bn(r,i)}catch{return!0}}function P0(r){var o=ja(r,2);o!==null&&Nn(o,r,2)}function Eh(r){var o=_n();if(typeof r=="function"){var i=r;if(r=i(),So){Ht(!0);try{i()}finally{Ht(!1)}}}return o.memoizedState=o.baseState=r,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:r},o}function L0(r,o,i,d){return r.baseState=i,wh(r,at,typeof d=="function"?d:ea)}function jk(r,o,i,d,p){if(su(r))throw Error(a(485));if(r=o.action,r!==null){var y={payload:p,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){y.listeners.push(C)}};L.T!==null?i(!0):y.isTransition=!1,d(y),i=o.pending,i===null?(y.next=o.pending=y,z0(o,y)):(y.next=i.next,o.pending=i.next=y)}}function z0(r,o){var i=o.action,d=o.payload,p=r.state;if(o.isTransition){var y=L.T,C={};L.T=C;try{var R=i(p,d),B=L.S;B!==null&&B(C,R),B0(r,o,R)}catch(W){Ch(r,o,W)}finally{L.T=y}}else try{y=i(p,d),B0(r,o,y)}catch(W){Ch(r,o,W)}}function B0(r,o,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(d){F0(r,o,d)},function(d){return Ch(r,o,d)}):F0(r,o,i)}function F0(r,o,i){o.status="fulfilled",o.value=i,V0(o),r.state=i,o=r.pending,o!==null&&(i=o.next,i===o?r.pending=null:(i=i.next,o.next=i,z0(r,i)))}function Ch(r,o,i){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do o.status="rejected",o.reason=i,V0(o),o=o.next;while(o!==d)}r.action=null}function V0(r){r=r.listeners;for(var o=0;o<r.length;o++)(0,r[o])()}function U0(r,o){return o}function I0(r,o){if(Qe){var i=ft.formState;if(i!==null){e:{var d=He;if(Qe){if(on){t:{for(var p=on,y=Tr;p.nodeType!==8;){if(!y){p=null;break t}if(p=vr(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){on=vr(p.nextSibling),d=p.data==="F!";break e}}yo(d)}d=!1}d&&(o=i[0])}}return i=_n(),i.memoizedState=i.baseState=o,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:U0,lastRenderedState:o},i.queue=d,i=sy.bind(null,He,d),d.dispatch=i,d=Eh(!1),y=kh.bind(null,He,!1,d.queue),d=_n(),p={state:o,dispatch:null,action:r,pending:null},d.queue=p,i=jk.bind(null,He,p,y,i),p.dispatch=i,d.memoizedState=r,[o,i,!1]}function H0(r){var o=Ft();return $0(o,at,r)}function $0(r,o,i){o=wh(r,o,U0)[0],r=ru(ea)[0],o=typeof o=="object"&&o!==null&&typeof o.then=="function"?Ii(o):o;var d=Ft(),p=d.queue,y=p.dispatch;return i!==d.memoizedState&&(He.flags|=2048,xs(9,Nk.bind(null,p,i),{destroy:void 0},null)),[o,y,r]}function Nk(r,o){r.action=o}function Y0(r){var o=Ft(),i=at;if(i!==null)return $0(o,i,r);Ft(),o=o.memoizedState,i=Ft();var d=i.queue.dispatch;return i.memoizedState=r,[o,d,!1]}function xs(r,o,i,d){return r={tag:r,create:o,inst:i,deps:d,next:null},o=He.updateQueue,o===null&&(o=tu(),He.updateQueue=o),i=o.lastEffect,i===null?o.lastEffect=r.next=r:(d=i.next,i.next=r,r.next=d,o.lastEffect=r),r}function W0(){return Ft().memoizedState}function au(r,o,i,d){var p=_n();He.flags|=r,p.memoizedState=xs(1|o,i,{destroy:void 0},d===void 0?null:d)}function ou(r,o,i,d){var p=Ft();d=d===void 0?null:d;var y=p.memoizedState.inst;at!==null&&d!==null&&ph(d,at.memoizedState.deps)?p.memoizedState=xs(o,i,y,d):(He.flags|=r,p.memoizedState=xs(1|o,i,y,d))}function G0(r,o){au(8390656,8,r,o)}function jh(r,o){ou(2048,8,r,o)}function q0(r,o){return ou(4,2,r,o)}function X0(r,o){return ou(4,4,r,o)}function K0(r,o){if(typeof o=="function"){r=r();var i=o(r);return function(){typeof i=="function"?i():o(null)}}if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Z0(r,o,i){i=i!=null?i.concat([r]):null,ou(4,4,K0.bind(null,o,r),i)}function Nh(){}function Q0(r,o){var i=Ft();o=o===void 0?null:o;var d=i.memoizedState;return o!==null&&ph(o,d[1])?d[0]:(i.memoizedState=[r,o],r)}function J0(r,o){var i=Ft();o=o===void 0?null:o;var d=i.memoizedState;if(o!==null&&ph(o,d[1]))return d[0];if(d=r(),So){Ht(!0);try{r()}finally{Ht(!1)}}return i.memoizedState=[d,o],d}function Th(r,o,i){return i===void 0||(Aa&1073741824)!==0?r.memoizedState=o:(r.memoizedState=i,r=tb(),He.lanes|=r,Ba|=r,i)}function ey(r,o,i,d){return Bn(i,o)?i:hs.current!==null?(r=Th(r,i,d),Bn(r,o)||(Zt=!0),r):(Aa&42)===0?(Zt=!0,r.memoizedState=i):(r=tb(),He.lanes|=r,Ba|=r,o)}function ty(r,o,i,d,p){var y=X.p;X.p=y!==0&&8>y?y:8;var C=L.T,R={};L.T=R,kh(r,!1,o,i);try{var B=p(),W=L.S;if(W!==null&&W(R,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var oe=Sk(B,d);Hi(r,o,oe,In(r))}else Hi(r,o,d,In(r))}catch(he){Hi(r,o,{then:function(){},status:"rejected",reason:he},In())}finally{X.p=y,L.T=C}}function Tk(){}function Ah(r,o,i,d){if(r.tag!==5)throw Error(a(476));var p=ny(r).queue;ty(r,p,o,ne,i===null?Tk:function(){return ry(r),i(d)})}function ny(r){var o=r.memoizedState;if(o!==null)return o;o={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:ne},next:null};var i={};return o.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:i},next:null},r.memoizedState=o,r=r.alternate,r!==null&&(r.memoizedState=o),o}function ry(r){var o=ny(r).next.queue;Hi(r,o,{},In())}function Mh(){return pn(cl)}function ay(){return Ft().memoizedState}function oy(){return Ft().memoizedState}function Ak(r){for(var o=r.return;o!==null;){switch(o.tag){case 24:case 3:var i=In();r=Ra(i);var d=Oa(o,r,i);d!==null&&(Nn(d,o,i),Wi(d,o,i)),o={cache:fh()},r.payload=o;return}o=o.return}}function Mk(r,o,i){var d=In();i={lane:d,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},su(r)?iy(o,i):(i=oh(r,o,i,d),i!==null&&(Nn(i,r,d),ly(i,o,d)))}function sy(r,o,i){var d=In();Hi(r,o,i,d)}function Hi(r,o,i,d){var p={lane:d,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(su(r))iy(o,p);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var C=o.lastRenderedState,R=y(C,i);if(p.hasEagerState=!0,p.eagerState=R,Bn(R,C))return Hc(r,o,p,0),ft===null&&Ic(),!1}catch{}finally{}if(i=oh(r,o,p,d),i!==null)return Nn(i,r,d),ly(i,o,d),!0}return!1}function kh(r,o,i,d){if(d={lane:2,revertLane:ym(),action:d,hasEagerState:!1,eagerState:null,next:null},su(r)){if(o)throw Error(a(479))}else o=oh(r,i,d,2),o!==null&&Nn(o,r,2)}function su(r){var o=r.alternate;return r===He||o!==null&&o===He}function iy(r,o){gs=Jc=!0;var i=r.pending;i===null?o.next=o:(o.next=i.next,i.next=o),r.pending=o}
vendor: 37,597 bytes, line 56
56function ly(r,o,i){if((i&4194176)!==0){var d=o.lanes;d&=r.pendingLanes,i|=d,o.lanes=i,xt(r,i)}}var Mr={readContext:pn,use:nu,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t};Mr.useCacheRefresh=_t,Mr.useMemoCache=_t,Mr.useHostTransitionStatus=_t,Mr.useFormState=_t,Mr.useActionState=_t,Mr.useOptimistic=_t;var Eo={readContext:pn,use:nu,useCallback:function(r,o){return _n().memoizedState=[r,o===void 0?null:o],r},useContext:pn,useEffect:G0,useImperativeHandle:function(r,o,i){i=i!=null?i.concat([r]):null,au(4194308,4,K0.bind(null,o,r),i)},useLayoutEffect:function(r,o){return au(4194308,4,r,o)},useInsertionEffect:function(r,o){au(4,2,r,o)},useMemo:function(r,o){var i=_n();o=o===void 0?null:o;var d=r();if(So){Ht(!0);try{r()}finally{Ht(!1)}}return i.memoizedState=[d,o],d},useReducer:function(r,o,i){var d=_n();if(i!==void 0){var p=i(o);if(So){Ht(!0);try{i(o)}finally{Ht(!1)}}}else p=o;return d.memoizedState=d.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},d.queue=r,r=r.dispatch=Mk.bind(null,He,r),[d.memoizedState,r]},useRef:function(r){var o=_n();return r={current:r},o.memoizedState=r},useState:function(r){r=Eh(r);var o=r.queue,i=sy.bind(null,He,o);return o.dispatch=i,[r.memoizedState,i]},useDebugValue:Nh,useDeferredValue:function(r,o){var i=_n();return Th(i,r,o)},useTransition:function(){var r=Eh(!1);return r=ty.bind(null,He,r.queue,!0,!1),_n().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,o,i){var d=He,p=_n();if(Qe){if(i===void 0)throw Error(a(407));i=i()}else{if(i=o(),ft===null)throw Error(a(349));(Ze&60)!==0||D0(d,o,i)}p.memoizedState=i;var y={value:i,getSnapshot:o};return p.queue=y,G0(O0.bind(null,d,y,r),[r]),d.flags|=2048,xs(9,R0.bind(null,d,y,i,o),{destroy:void 0},null),i},useId:function(){var r=_n(),o=ft.identifierPrefix;if(Qe){var i=Qr,d=Zr;i=(d&~(1<<32-Ot(d)-1)).toString(32)+i,o=":"+o+"R"+i,i=eu++,0<i&&(o+="H"+i.toString(32)),o+=":"}else i=Ek++,o=":"+o+"r"+i.toString(32)+":";return r.memoizedState=o},useCacheRefresh:function(){return _n().memoizedState=Ak.bind(null,He)}};Eo.useMemoCache=bh,Eo.useHostTransitionStatus=Mh,Eo.useFormState=I0,Eo.useActionState=I0,Eo.useOptimistic=function(r){var o=_n();o.memoizedState=o.baseState=r;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=i,o=kh.bind(null,He,!0,i),i.dispatch=o,[r,o]};var Ma={readContext:pn,use:nu,useCallback:Q0,useContext:pn,useEffect:jh,useImperativeHandle:Z0,useInsertionEffect:q0,useLayoutEffect:X0,useMemo:J0,useReducer:ru,useRef:W0,useState:function(){return ru(ea)},useDebugValue:Nh,useDeferredValue:function(r,o){var i=Ft();return ey(i,at.memoizedState,r,o)},useTransition:function(){var r=ru(ea)[0],o=Ft().memoizedState;return[typeof r=="boolean"?r:Ii(r),o]},useSyncExternalStore:k0,useId:ay};Ma.useCacheRefresh=oy,Ma.useMemoCache=bh,Ma.useHostTransitionStatus=Mh,Ma.useFormState=H0,Ma.useActionState=H0,Ma.useOptimistic=function(r,o){var i=Ft();return L0(i,at,r,o)};var Co={readContext:pn,use:nu,useCallback:Q0,useContext:pn,useEffect:jh,useImperativeHandle:Z0,useInsertionEffect:q0,useLayoutEffect:X0,useMemo:J0,useReducer:Sh,useRef:W0,useState:function(){return Sh(ea)},useDebugValue:Nh,useDeferredValue:function(r,o){var i=Ft();return at===null?Th(i,r,o):ey(i,at.memoizedState,r,o)},useTransition:function(){var r=Sh(ea)[0],o=Ft().memoizedState;return[typeof r=="boolean"?r:Ii(r),o]},useSyncExternalStore:k0,useId:ay};Co.useCacheRefresh=oy,Co.useMemoCache=bh,Co.useHostTransitionStatus=Mh,Co.useFormState=Y0,Co.useActionState=Y0,Co.useOptimistic=function(r,o){var i=Ft();return at!==null?L0(i,at,r,o):(i.baseState=r,[r,i.queue.dispatch])};function Dh(r,o,i,d){o=r.memoizedState,i=i(d,o),i=i==null?o:I({},o,i),r.memoizedState=i,r.lanes===0&&(r.updateQueue.baseState=i)}var Rh={isMounted:function(r){return(r=r._reactInternals)?V(r)===r:!1},enqueueSetState:function(r,o,i){r=r._reactInternals;var d=In(),p=Ra(d);p.payload=o,i!=null&&(p.callback=i),o=Oa(r,p,d),o!==null&&(Nn(o,r,d),Wi(o,r,d))},enqueueReplaceState:function(r,o,i){r=r._reactInternals;var d=In(),p=Ra(d);p.tag=1,p.payload=o,i!=null&&(p.callback=i),o=Oa(r,p,d),o!==null&&(Nn(o,r,d),Wi(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var i=In(),d=Ra(i);d.tag=2,o!=null&&(d.callback=o),o=Oa(r,d,i),o!==null&&(Nn(o,r,i),Wi(o,r,i))}};function cy(r,o,i,d,p,y,C){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,C):o.prototype&&o.prototype.isPureReactComponent?!ki(i,d)||!ki(p,y):!0}function uy(r,o,i,d){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(i,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(i,d),o.state!==r&&Rh.enqueueReplaceState(o,o.state,null)}function jo(r,o){var i=o;if("ref"in o){i={};for(var d in o)d!=="ref"&&(i[d]=o[d])}if(r=r.defaultProps){i===o&&(i=I({},i));for(var p in r)i[p]===void 0&&(i[p]=r[p])}return i}var iu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function dy(r){iu(r)}function fy(r){console.error(r)}function hy(r){iu(r)}function lu(r,o){try{var i=r.onUncaughtError;i(o.value,{componentStack:o.stack})}catch(d){setTimeout(function(){throw d})}}function my(r,o,i){try{var d=r.onCaughtError;d(i.value,{componentStack:i.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Oh(r,o,i){return i=Ra(i),i.tag=3,i.payload={element:null},i.callback=function(){lu(r,o)},i}function py(r){return r=Ra(r),r.tag=3,r}function gy(r,o,i,d){var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var y=d.value;r.payload=function(){return p(y)},r.callback=function(){my(o,i,d)}}var C=i.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(r.callback=function(){my(o,i,d),typeof p!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var R=d.stack;this.componentDidCatch(d.value,{componentStack:R!==null?R:""})})}function kk(r,o,i,d,p){if(i.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(o=i.alternate,o!==null&&Yi(o,i,p,!0),i=tr.current,i!==null){switch(i.tag){case 13:return Ar===null?mm():i.alternate===null&&Nt===0&&(Nt=3),i.flags&=-257,i.flags|=65536,i.lanes=p,d===ch?i.flags|=16384:(o=i.updateQueue,o===null?i.updateQueue=new Set([d]):o.add(d),gm(r,d,p)),!1;case 22:return i.flags|=65536,d===ch?i.flags|=16384:(o=i.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([d])},i.updateQueue=o):(i=o.retryQueue,i===null?o.retryQueue=new Set([d]):i.add(d)),gm(r,d,p)),!1}throw Error(a(435,i.tag))}return gm(r,d,p),mm(),!1}if(Qe)return o=tr.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=p,d!==lh&&(r=Error(a(422),{cause:d}),_i(Qn(r,i)))):(d!==lh&&(o=Error(a(423),{cause:d}),_i(Qn(o,i))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,d=Qn(d,i),p=Oh(r.stateNode,d,p),qh(r,p),Nt!==4&&(Nt=2)),!1;var y=Error(a(520),{cause:d});if(y=Qn(y,i),el===null?el=[y]:el.push(y),Nt!==4&&(Nt=2),o===null)return!0;d=Qn(d,i),i=o;do{switch(i.tag){case 3:return i.flags|=65536,r=p&-p,i.lanes|=r,r=Oh(i.stateNode,d,r),qh(i,r),!1;case 1:if(o=i.type,y=i.stateNode,(i.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Fa===null||!Fa.has(y))))return i.flags|=65536,p&=-p,i.lanes|=p,p=py(p),gy(p,r,i,d),qh(i,p),!1}i=i.return}while(i!==null);return!1}var vy=Error(a(461)),Zt=!1;function sn(r,o,i,d){o.child=r===null?S0(o,null,i,d):bo(o,r.child,i,d)}function xy(r,o,i,d,p){i=i.render;var y=o.ref;if("ref"in d){var C={};for(var R in d)R!=="ref"&&(C[R]=d[R])}else C=d;return To(o),d=gh(r,o,i,C,y,p),R=vh(),r!==null&&!Zt?(xh(r,o,p),ta(r,o,p)):(Qe&&R&&sh(o),o.flags|=1,sn(r,o,d,p),o.child)}function yy(r,o,i,d,p){if(r===null){var y=i.type;return typeof y=="function"&&!nm(y)&&y.defaultProps===void 0&&i.compare===null?(o.tag=15,o.type=y,by(r,o,y,d,p)):(r=hu(i.type,null,d,o,o.mode,p),r.ref=o.ref,r.return=o,o.child=r)}if(y=r.child,!Ih(r,p)){var C=y.memoizedProps;if(i=i.compare,i=i!==null?i:ki,i(C,d)&&r.ref===o.ref)return ta(r,o,p)}return o.flags|=1,r=za(y,d),r.ref=o.ref,r.return=o,o.child=r}function by(r,o,i,d,p){if(r!==null){var y=r.memoizedProps;if(ki(y,d)&&r.ref===o.ref)if(Zt=!1,o.pendingProps=d=y,Ih(r,p))(r.flags&131072)!==0&&(Zt=!0);else return o.lanes=r.lanes,ta(r,o,p)}return _h(r,o,i,d,p)}function wy(r,o,i){var d=o.pendingProps,p=d.children,y=(o.stateNode._pendingVisibility&2)!==0,C=r!==null?r.memoizedState:null;if($i(r,o),d.mode==="hidden"||y){if((o.flags&128)!==0){if(d=C!==null?C.baseLanes|i:i,r!==null){for(p=o.child=r.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;o.childLanes=y&~d}else o.childLanes=0,o.child=null;return Sy(r,o,d,i)}if((i&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},r!==null&&Qc(o,C!==null?C.cachePool:null),C!==null?E0(o,C):uh(),C0(o);else return o.lanes=o.childLanes=536870912,Sy(r,o,C!==null?C.baseLanes|i:i,i)}else C!==null?(Qc(o,C.cachePool),E0(o,C),Ta(),o.memoizedState=null):(r!==null&&Qc(o,null),uh(),Ta());return sn(r,o,p,i),o.child}function Sy(r,o,i,d){var p=mh();return p=p===null?null:{parent:Yt._currentValue,pool:p},o.memoizedState={baseLanes:i,cachePool:p},r!==null&&Qc(o,null),uh(),C0(o),r!==null&&Yi(r,o,d,!0),null}function $i(r,o){var i=o.ref;if(i===null)r!==null&&r.ref!==null&&(o.flags|=2097664);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(r===null||r.ref!==i)&&(o.flags|=2097664)}}function _h(r,o,i,d,p){return To(o),i=gh(r,o,i,d,void 0,p),d=vh(),r!==null&&!Zt?(xh(r,o,p),ta(r,o,p)):(Qe&&d&&sh(o),o.flags|=1,sn(r,o,i,p),o.child)}function Ey(r,o,i,d,p,y){return To(o),o.updateQueue=null,i=M0(o,d,i,p),A0(r),d=vh(),r!==null&&!Zt?(xh(r,o,y),ta(r,o,y)):(Qe&&d&&sh(o),o.flags|=1,sn(r,o,i,y),o.child)}function Cy(r,o,i,d,p){if(To(o),o.stateNode===null){var y=cs,C=i.contextType;typeof C=="object"&&C!==null&&(y=pn(C)),y=new i(d,y),o.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Rh,o.stateNode=y,y._reactInternals=o,y=o.stateNode,y.props=d,y.state=o.memoizedState,y.refs={},Wh(o),C=i.contextType,y.context=typeof C=="object"&&C!==null?pn(C):cs,y.state=o.memoizedState,C=i.getDerivedStateFromProps,typeof C=="function"&&(Dh(o,i,C,d),y.state=o.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(C=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),C!==y.state&&Rh.enqueueReplaceState(y,y.state,null),qi(o,d,y,p),Gi(),y.state=o.memoizedState),typeof y.componentDidMount=="function"&&(o.flags|=4194308),d=!0}else if(r===null){y=o.stateNode;var R=o.memoizedProps,B=jo(i,R);y.props=B;var W=y.context,oe=i.contextType;C=cs,typeof oe=="object"&&oe!==null&&(C=pn(oe));var he=i.getDerivedStateFromProps;oe=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function",R=o.pendingProps!==R,oe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R||W!==C)&&uy(o,y,d,C),Da=!1;var ee=o.memoizedState;y.state=ee,qi(o,d,y,p),Gi(),W=o.memoizedState,R||ee!==W||Da?(typeof he=="function"&&(Dh(o,i,he,d),W=o.memoizedState),(B=Da||cy(o,i,B,d,ee,W,C))?(oe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(o.flags|=4194308)):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=W),y.props=d,y.state=W,y.context=C,d=B):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{y=o.stateNode,Gh(r,o),C=o.memoizedProps,oe=jo(i,C),y.props=oe,he=o.pendingProps,ee=y.context,W=i.contextType,B=cs,typeof W=="object"&&W!==null&&(B=pn(W)),R=i.getDerivedStateFromProps,(W=typeof R=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==he||ee!==B)&&uy(o,y,d,B),Da=!1,ee=o.memoizedState,y.state=ee,qi(o,d,y,p),Gi();var ae=o.memoizedState;C!==he||ee!==ae||Da||r!==null&&r.dependencies!==null&&cu(r.dependencies)?(typeof R=="function"&&(Dh(o,i,R,d),ae=o.memoizedState),(oe=Da||cy(o,i,oe,d,ee,ae,B)||r!==null&&r.dependencies!==null&&cu(r.dependencies))?(W||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(d,ae,B),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(d,ae,B)),typeof y.componentDidUpdate=="function"&&(o.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===r.memoizedProps&&ee===r.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&ee===r.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=ae),y.props=d,y.state=ae,y.context=B,d=oe):(typeof y.componentDidUpdate!="function"||C===r.memoizedProps&&ee===r.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&ee===r.memoizedState||(o.flags|=1024),d=!1)}return y=d,$i(r,o),d=(o.flags&128)!==0,y||d?(y=o.stateNode,i=d&&typeof i.getDerivedStateFromError!="function"?null:y.render(),o.flags|=1,r!==null&&d?(o.child=bo(o,r.child,null,p),o.child=bo(o,null,i,p)):sn(r,o,i,p),o.memoizedState=y.state,r=o.child):r=ta(r,o,p),r}function jy(r,o,i,d){return Oi(),o.flags|=256,sn(r,o,i,d),o.child}var Ph={dehydrated:null,treeContext:null,retryLane:0};function Lh(r){return{baseLanes:r,cachePool:T0()}}function zh(r,o,i){return r=r!==null?r.childLanes&~i:0,o&&(r|=or),r}function Ny(r,o,i){var d=o.pendingProps,p=!1,y=(o.flags&128)!==0,C;if((C=y)||(C=r!==null&&r.memoizedState===null?!1:($t.current&2)!==0),C&&(p=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,r===null){if(Qe){if(p?Na(o):Ta(),Qe){var R=on,B;if(B=R){e:{for(B=R,R=Tr;B.nodeType!==8;){if(!R){R=null;break e}if(B=vr(B.nextSibling),B===null){R=null;break e}}R=B}R!==null?(o.memoizedState={dehydrated:R,treeContext:vo!==null?{id:Zr,overflow:Qr}:null,retryLane:536870912},B=ar(18,null,null,0),B.stateNode=R,B.return=o,o.child=B,jn=o,on=null,B=!0):B=!1}B||yo(o)}if(R=o.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return R.data==="$!"?o.lanes=16:o.lanes=536870912,null;Jr(o)}return R=d.children,d=d.fallback,p?(Ta(),p=o.mode,R=Fh({mode:"hidden",children:R},p),d=Mo(d,p,i,null),R.return=o,d.return=o,R.sibling=d,o.child=R,p=o.child,p.memoizedState=Lh(i),p.childLanes=zh(r,C,i),o.memoizedState=Ph,d):(Na(o),Bh(o,R))}if(B=r.memoizedState,B!==null&&(R=B.dehydrated,R!==null)){if(y)o.flags&256?(Na(o),o.flags&=-257,o=Vh(r,o,i)):o.memoizedState!==null?(Ta(),o.child=r.child,o.flags|=128,o=null):(Ta(),p=d.fallback,R=o.mode,d=Fh({mode:"visible",children:d.children},R),p=Mo(p,R,i,null),p.flags|=2,d.return=o,p.return=o,d.sibling=p,o.child=d,bo(o,r.child,null,i),d=o.child,d.memoizedState=Lh(i),d.childLanes=zh(r,C,i),o.memoizedState=Ph,o=p);else if(Na(o),R.data==="$!"){if(C=R.nextSibling&&R.nextSibling.dataset,C)var W=C.dgst;C=W,d=Error(a(419)),d.stack="",d.digest=C,_i({value:d,source:null,stack:null}),o=Vh(r,o,i)}else if(Zt||Yi(r,o,i,!1),C=(i&r.childLanes)!==0,Zt||C){if(C=ft,C!==null){if(d=i&-i,(d&42)!==0)d=1;else switch(d){case 2:d=1;break;case 8:d=4;break;case 32:d=16;break;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:d=64;break;case 268435456:d=134217728;break;default:d=0}if(d=(d&(C.suspendedLanes|i))!==0?0:d,d!==0&&d!==B.retryLane)throw B.retryLane=d,ja(r,d),Nn(C,r,d),vy}R.data==="$?"||mm(),o=Vh(r,o,i)}else R.data==="$?"?(o.flags|=128,o.child=r.child,o=Yk.bind(null,r),R._reactRetry=o,o=null):(r=B.treeContext,on=vr(R.nextSibling),jn=o,Qe=!0,pr=null,Tr=!1,r!==null&&(Jn[er++]=Zr,Jn[er++]=Qr,Jn[er++]=vo,Zr=r.id,Qr=r.overflow,vo=o),o=Bh(o,d.children),o.flags|=4096);return o}return p?(Ta(),p=d.fallback,R=o.mode,B=r.child,W=B.sibling,d=za(B,{mode:"hidden",children:d.children}),d.subtreeFlags=B.subtreeFlags&31457280,W!==null?p=za(W,p):(p=Mo(p,R,i,null),p.flags|=2),p.return=o,d.return=o,d.sibling=p,o.child=d,d=p,p=o.child,R=r.child.memoizedState,R===null?R=Lh(i):(B=R.cachePool,B!==null?(W=Yt._currentValue,B=B.parent!==W?{parent:W,pool:W}:B):B=T0(),R={baseLanes:R.baseLanes|i,cachePool:B}),p.memoizedState=R,p.childLanes=zh(r,C,i),o.memoizedState=Ph,d):(Na(o),i=r.child,r=i.sibling,i=za(i,{mode:"visible",children:d.children}),i.return=o,i.sibling=null,r!==null&&(C=o.deletions,C===null?(o.deletions=[r],o.flags|=16):C.push(r)),o.child=i,o.memoizedState=null,i)}function Bh(r,o){return o=Fh({mode:"visible",children:o},r.mode),o.return=r,r.child=o}function Fh(r,o){return Qy(r,o,0,null)}function Vh(r,o,i){return bo(o,r.child,null,i),r=Bh(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function Ty(r,o,i){r.lanes|=o;var d=r.alternate;d!==null&&(d.lanes|=o),$h(r.return,o,i)}function Uh(r,o,i,d,p){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:i,tailMode:p}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=i,y.tailMode=p)}function Ay(r,o,i){var d=o.pendingProps,p=d.revealOrder,y=d.tail;if(sn(r,o,d.children,i),d=$t.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Ty(r,i,o);else if(r.tag===19)Ty(r,i,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}switch(fe($t,d),p){case"forwards":for(i=o.child,p=null;i!==null;)r=i.alternate,r!==null&&Zc(r)===null&&(p=i),i=i.sibling;i=p,i===null?(p=o.child,o.child=null):(p=i.sibling,i.sibling=null),Uh(o,!1,p,i,y);break;case"backwards":for(i=null,p=o.child,o.child=null;p!==null;){if(r=p.alternate,r!==null&&Zc(r)===null){o.child=p;break}r=p.sibling,p.sibling=i,i=p,p=r}Uh(o,!0,i,null,y);break;case"together":Uh(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ta(r,o,i){if(r!==null&&(o.dependencies=r.dependencies),Ba|=o.lanes,(i&o.childLanes)===0)if(r!==null){if(Yi(r,o,i,!1),(i&o.childLanes)===0)return null}else return null;if(r!==null&&o.child!==r.child)throw Error(a(153));if(o.child!==null){for(r=o.child,i=za(r,r.pendingProps),o.child=i,i.return=o;r.sibling!==null;)r=r.sibling,i=i.sibling=za(r,r.pendingProps),i.return=o;i.sibling=null}return o.child}function Ih(r,o){return(r.lanes&o)!==0?!0:(r=r.dependencies,!!(r!==null&&cu(r)))}function Dk(r,o,i){switch(o.tag){case 3:gt(o,o.stateNode.containerInfo),ka(o,Yt,r.memoizedState.cache),Oi();break;case 27:case 5:vt(o);break;case 4:gt(o,o.stateNode.containerInfo);break;case 10:ka(o,o.type,o.memoizedProps.value);break;case 13:var d=o.memoizedState;if(d!==null)return d.dehydrated!==null?(Na(o),o.flags|=128,null):(i&o.child.childLanes)!==0?Ny(r,o,i):(Na(o),r=ta(r,o,i),r!==null?r.sibling:null);Na(o);break;case 19:var p=(r.flags&128)!==0;if(d=(i&o.childLanes)!==0,d||(Yi(r,o,i,!1),d=(i&o.childLanes)!==0),p){if(d)return Ay(r,o,i);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),fe($t,$t.current),d)break;return null;case 22:case 23:return o.lanes=0,wy(r,o,i);case 24:ka(o,Yt,r.memoizedState.cache)}return ta(r,o,i)}function My(r,o,i){if(r!==null)if(r.memoizedProps!==o.pendingProps)Zt=!0;else{if(!Ih(r,i)&&(o.flags&128)===0)return Zt=!1,Dk(r,o,i);Zt=(r.flags&131072)!==0}else Zt=!1,Qe&&(o.flags&1048576)!==0&&h0(o,Wc,o.index);switch(o.lanes=0,o.tag){case 16:e:{r=o.pendingProps;var d=o.elementType,p=d._init;if(d=p(d._payload),o.type=d,typeof d=="function")nm(d)?(r=jo(d,r),o.tag=1,o=Cy(null,o,d,r,i)):(o.tag=0,o=_h(null,o,d,r,i));else{if(d!=null){if(p=d.$$typeof,p===E){o.tag=11,o=xy(null,o,d,r,i);break e}else if(p===N){o.tag=14,o=yy(null,o,d,r,i);break e}}throw o=D(d)||d,Error(a(306,o,""))}}return o;case 0:return _h(r,o,o.type,o.pendingProps,i);case 1:return d=o.type,p=jo(d,o.pendingProps),Cy(r,o,d,p,i);case 3:e:{if(gt(o,o.stateNode.containerInfo),r===null)throw Error(a(387));var y=o.pendingProps;p=o.memoizedState,d=p.element,Gh(r,o),qi(o,y,null,i);var C=o.memoizedState;if(y=C.cache,ka(o,Yt,y),y!==p.cache&&Yh(o,[Yt],i,!0),Gi(),y=C.element,p.isDehydrated)if(p={element:y,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=p,o.memoizedState=p,o.flags&256){o=jy(r,o,y,i);break e}else if(y!==d){d=Qn(Error(a(424)),o),_i(d),o=jy(r,o,y,i);break e}else for(on=vr(o.stateNode.containerInfo.firstChild),jn=o,Qe=!0,pr=null,Tr=!0,i=S0(o,null,y,i),o.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Oi(),y===d){o=ta(r,o,i);break e}sn(r,o,y,i)}o=o.child}return o;case 26:return $i(r,o),r===null?(i=Rb(o.type,null,o.pendingProps,null))?o.memoizedState=i:Qe||(i=o.type,r=o.pendingProps,d=ju(qe.current).createElement(i),d[zt]=o,d[Rn]=r,ln(d,i,r),Kt(d),o.stateNode=d):o.memoizedState=Rb(o.type,r.memoizedProps,o.pendingProps,r.memoizedState),null;case 27:return vt(o),r===null&&Qe&&(d=o.stateNode=Mb(o.type,o.pendingProps,qe.current),jn=o,Tr=!0,on=vr(d.firstChild)),d=o.pendingProps.children,r!==null||Qe?sn(r,o,d,i):o.child=bo(o,null,d,i),$i(r,o),o.child;case 5:return r===null&&Qe&&((p=d=on)&&(d=iD(d,o.type,o.pendingProps,Tr),d!==null?(o.stateNode=d,jn=o,on=vr(d.firstChild),Tr=!1,p=!0):p=!1),p||yo(o)),vt(o),p=o.type,y=o.pendingProps,C=r!==null?r.memoizedProps:null,d=y.children,Am(p,y)?d=null:C!==null&&Am(p,C)&&(o.flags|=32),o.memoizedState!==null&&(p=gh(r,o,Ck,null,null,i),cl._currentValue=p),$i(r,o),sn(r,o,d,i),o.child;case 6:return r===null&&Qe&&((r=i=on)&&(i=lD(i,o.pendingProps,Tr),i!==null?(o.stateNode=i,jn=o,on=null,r=!0):r=!1),r||yo(o)),null;case 13:return Ny(r,o,i);case 4:return gt(o,o.stateNode.containerInfo),d=o.pendingProps,r===null?o.child=bo(o,null,d,i):sn(r,o,d,i),o.child;case 11:return xy(r,o,o.type,o.pendingProps,i);case 7:return sn(r,o,o.pendingProps,i),o.child;case 8:return sn(r,o,o.pendingProps.children,i),o.child;case 12:return sn(r,o,o.pendingProps.children,i),o.child;case 10:return d=o.pendingProps,ka(o,o.type,d.value),sn(r,o,d.children,i),o.child;case 9:return p=o.type._context,d=o.pendingProps.children,To(o),p=pn(p),d=d(p),o.flags|=1,sn(r,o,d,i),o.child;case 14:return yy(r,o,o.type,o.pendingProps,i);case 15:return by(r,o,o.type,o.pendingProps,i);case 19:return Ay(r,o,i);case 22:return wy(r,o,i);case 24:return To(o),d=pn(Yt),r===null?(p=mh(),p===null&&(p=ft,y=fh(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=i),p=y),o.memoizedState={parent:d,cache:p},Wh(o),ka(o,Yt,p)):((r.lanes&i)!==0&&(Gh(r,o),qi(o,null,null,i),Gi()),p=r.memoizedState,y=o.memoizedState,p.parent!==d?(p={parent:d,cache:d},o.memoizedState=p,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=p),ka(o,Yt,d)):(d=y.cache,ka(o,Yt,d),d!==p.cache&&Yh(o,[Yt],i,!0))),sn(r,o,o.pendingProps.children,i),o.child;case 29:throw o.pendingProps}throw Error(a(156,o.tag))}var Hh=ie(null),No=null,na=null;function ka(r,o,i){fe(Hh,o._currentValue),o._currentValue=i}function ra(r){r._currentValue=Hh.current,pe(Hh)}function $h(r,o,i){for(;r!==null;){var d=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),r===i)break;r=r.return}}function Yh(r,o,i,d){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var y=p.dependencies;if(y!==null){var C=p.child;y=y.firstContext;e:for(;y!==null;){var R=y;y=p;for(var B=0;B<o.length;B++)if(R.context===o[B]){y.lanes|=i,R=y.alternate,R!==null&&(R.lanes|=i),$h(y.return,i,r),d||(C=null);break e}y=R.next}}else if(p.tag===18){if(C=p.return,C===null)throw Error(a(341));C.lanes|=i,y=C.alternate,y!==null&&(y.lanes|=i),$h(C,i,r),C=null}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===r){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}}function Yi(r,o,i,d){r=null;for(var p=o,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var C=p.alternate;if(C===null)throw Error(a(387));if(C=C.memoizedProps,C!==null){var R=p.type;Bn(p.pendingProps.value,C.value)||(r!==null?r.push(R):r=[R])}}else if(p===ye.current){if(C=p.alternate,C===null)throw Error(a(387));C.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(cl):r=[cl])}p=p.return}r!==null&&Yh(o,r,i,d),o.flags|=262144}function cu(r){for(r=r.firstContext;r!==null;){if(!Bn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function To(r){No=r,na=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function pn(r){return ky(No,r)}function uu(r,o){return No===null&&To(r),ky(r,o)}function ky(r,o){var i=o._currentValue;if(o={context:o,memoizedValue:i,next:null},na===null){if(r===null)throw Error(a(308));na=o,r.dependencies={lanes:0,firstContext:o},r.flags|=524288}else na=na.next=o;return i}var Da=!1;function Wh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gh(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ra(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Oa(r,o,i){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(wt&2)!==0){var p=d.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),d.pending=o,o=$c(r),d0(r,null,i),o}return Hc(r,d,o,i),$c(r)}function Wi(r,o,i){if(o=o.updateQueue,o!==null&&(o=o.shared,(i&4194176)!==0)){var d=o.lanes;d&=r.pendingLanes,i|=d,o.lanes=i,xt(r,i)}}function qh(r,o){var i=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,i===d)){var p=null,y=null;if(i=i.firstBaseUpdate,i!==null){do{var C={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};y===null?p=y=C:y=y.next=C,i=i.next}while(i!==null);y===null?p=y=o:y=y.next=o}else p=y=o;i={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},r.updateQueue=i;return}r=i.lastBaseUpdate,r===null?i.firstBaseUpdate=o:r.next=o,i.lastBaseUpdate=o}var Xh=!1;function Gi(){if(Xh){var r=ps;if(r!==null)throw r}}function qi(r,o,i,d){Xh=!1;var p=r.updateQueue;Da=!1;var y=p.firstBaseUpdate,C=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var B=R,W=B.next;B.next=null,C===null?y=W:C.next=W,C=B;var oe=r.alternate;oe!==null&&(oe=oe.updateQueue,R=oe.lastBaseUpdate,R!==C&&(R===null?oe.firstBaseUpdate=W:R.next=W,oe.lastBaseUpdate=B))}if(y!==null){var he=p.baseState;C=0,oe=W=B=null,R=y;do{var ee=R.lane&-536870913,ae=ee!==R.lane;if(ae?(Ze&ee)===ee:(d&ee)===ee){ee!==0&&ee===ms&&(Xh=!0),oe!==null&&(oe=oe.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Me=r,Be=R;ee=o;var Tt=i;switch(Be.tag){case 1:if(Me=Be.payload,typeof Me=="function"){he=Me.call(Tt,he,ee);break e}he=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Be.payload,ee=typeof Me=="function"?Me.call(Tt,he,ee):Me,ee==null)break e;he=I({},he,ee);break e;case 2:Da=!0}}ee=R.callback,ee!==null&&(r.flags|=64,ae&&(r.flags|=8192),ae=p.callbacks,ae===null?p.callbacks=[ee]:ae.push(ee))}else ae={lane:ee,tag:R.tag,payload:R.payload,callback:R.callback,next:null},oe===null?(W=oe=ae,B=he):oe=oe.next=ae,C|=ee;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;ae=R,R=ae.next,ae.next=null,p.lastBaseUpdate=ae,p.shared.pending=null}}while(!0);oe===null&&(B=he),p.baseState=B,p.firstBaseUpdate=W,p.lastBaseUpdate=oe,y===null&&(p.shared.lanes=0),Ba|=C,r.lanes=C,r.memoizedState=he}}function Dy(r,o){if(typeof r!="function")throw Error(a(191,r));r.call(o)}function Ry(r,o){var i=r.callbacks;if(i!==null)for(r.callbacks=null,r=0;r<i.length;r++)Dy(i[r],o)}function Xi(r,o){try{var i=o.updateQueue,d=i!==null?i.lastEffect:null;if(d!==null){var p=d.next;i=p;do{if((i.tag&r)===r){d=void 0;var y=i.create,C=i.inst;d=y(),C.destroy=d}i=i.next}while(i!==p)}}catch(R){ut(o,o.return,R)}}function _a(r,o,i){try{var d=o.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var y=p.next;d=y;do{if((d.tag&r)===r){var C=d.inst,R=C.destroy;if(R!==void 0){C.destroy=void 0,p=o;var B=i;try{R()}catch(W){ut(p,B,W)}}}d=d.next}while(d!==y)}}catch(W){ut(o,o.return,W)}}function Oy(r){var o=r.updateQueue;if(o!==null){var i=r.stateNode;try{Ry(o,i)}catch(d){ut(r,r.return,d)}}}function _y(r,o,i){i.props=jo(r.type,r.memoizedProps),i.state=r.memoizedState;try{i.componentWillUnmount()}catch(d){ut(r,o,d)}}function Ao(r,o){try{var i=r.ref;if(i!==null){var d=r.stateNode;switch(r.tag){case 26:case 27:case 5:var p=d;break;default:p=d}typeof i=="function"?r.refCleanup=i(p):i.current=p}}catch(y){ut(r,o,y)}}function Fn(r,o){var i=r.ref,d=r.refCleanup;if(i!==null)if(typeof d=="function")try{d()}catch(p){ut(r,o,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(p){ut(r,o,p)}else i.current=null}function Py(r){var o=r.type,i=r.memoizedProps,d=r.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":i.autoFocus&&d.focus();break e;case"img":i.src?d.src=i.src:i.srcSet&&(d.srcset=i.srcSet)}}catch(p){ut(r,r.return,p)}}function Ly(r,o,i){try{var d=r.stateNode;nD(d,r.type,i,o),d[Rn]=o}catch(p){ut(r,r.return,p)}}function zy(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27||r.tag===4}function Kh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||zy(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==27&&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 Zh(r,o,i){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?i.nodeType===8?i.parentNode.insertBefore(r,o):i.insertBefore(r,o):(i.nodeType===8?(o=i.parentNode,o.insertBefore(r,i)):(o=i,o.appendChild(r)),i=i._reactRootContainer,i!=null||o.onclick!==null||(o.onclick=Cu));else if(d!==4&&d!==27&&(r=r.child,r!==null))for(Zh(r,o,i),r=r.sibling;r!==null;)Zh(r,o,i),r=r.sibling}function du(r,o,i){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?i.insertBefore(r,o):i.appendChild(r);else if(d!==4&&d!==27&&(r=r.child,r!==null))for(du(r,o,i),r=r.sibling;r!==null;)du(r,o,i),r=r.sibling}var aa=!1,jt=!1,Qh=!1,By=typeof WeakSet=="function"?WeakSet:Set,Qt=null,Fy=!1;function Rk(r,o){if(r=r.containerInfo,Nm=Du,r=n0(r),eh(r)){if("selectionStart"in r)var i={start:r.selectionStart,end:r.selectionEnd};else e:{i=(i=r.ownerDocument)&&i.defaultView||window;var d=i.getSelection&&i.getSelection();if(d&&d.rangeCount!==0){i=d.anchorNode;var p=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{i.nodeType,y.nodeType}catch{i=null;break e}var C=0,R=-1,B=-1,W=0,oe=0,he=r,ee=null;t:for(;;){for(var ae;he!==i||p!==0&&he.nodeType!==3||(R=C+p),he!==y||d!==0&&he.nodeType!==3||(B=C+d),he.nodeType===3&&(C+=he.nodeValue.length),(ae=he.firstChild)!==null;)ee=he,he=ae;for(;;){if(he===r)break t;if(ee===i&&++W===p&&(R=C),ee===y&&++oe===d&&(B=C),(ae=he.nextSibling)!==null)break;he=ee,ee=he.parentNode}he=ae}i=R===-1||B===-1?null:{start:R,end:B}}else i=null}i=i||{start:0,end:0}}else i=null;for(Tm={focusedElem:r,selectionRange:i},Du=!1,Qt=o;Qt!==null;)if(o=Qt,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,Qt=r;else for(;Qt!==null;){switch(o=Qt,y=o.alternate,r=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((r&1024)!==0&&y!==null){r=void 0,i=o,p=y.memoizedProps,y=y.memoizedState,d=i.stateNode;try{var Me=jo(i.type,p,i.elementType===i.type);r=d.getSnapshotBeforeUpdate(Me,y),d.__reactInternalSnapshotBeforeUpdate=r}catch(Be){ut(i,i.return,Be)}}break;case 3:if((r&1024)!==0){if(r=o.stateNode.containerInfo,i=r.nodeType,i===9)Dm(r);else if(i===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Dm(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=o.sibling,r!==null){r.return=o.return,Qt=r;break}Qt=o.return}return Me=Fy,Fy=!1,Me}function Vy(r,o,i){var d=i.flags;switch(i.tag){case 0:case 11:case 15:sa(r,i),d&4&&Xi(5,i);break;case 1:if(sa(r,i),d&4)if(r=i.stateNode,o===null)try{r.componentDidMount()}catch(R){ut(i,i.return,R)}else{var p=jo(i.type,o.memoizedProps);o=o.memoizedState;try{r.componentDidUpdate(p,o,r.__reactInternalSnapshotBeforeUpdate)}catch(R){ut(i,i.return,R)}}d&64&&Oy(i),d&512&&Ao(i,i.return);break;case 3:if(sa(r,i),d&64&&(d=i.updateQueue,d!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{Ry(d,r)}catch(R){ut(i,i.return,R)}}break;case 26:sa(r,i),d&512&&Ao(i,i.return);break;case 27:case 5:sa(r,i),o===null&&d&4&&Py(i),d&512&&Ao(i,i.return);break;case 12:sa(r,i);break;case 13:sa(r,i),d&4&&Hy(r,i);break;case 22:if(p=i.memoizedState!==null||aa,!p){o=o!==null&&o.memoizedState!==null||jt;var y=aa,C=jt;aa=p,(jt=o)&&!C?Pa(r,i,(i.subtreeFlags&8772)!==0):sa(r,i),aa=y,jt=C}d&512&&(i.memoizedProps.mode==="manual"?Ao(i,i.return):Fn(i,i.return));break;default:sa(r,i)}}function Uy(r){var o=r.alternate;o!==null&&(r.alternate=null,Uy(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&Bf(o)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Vt=null,Vn=!1;function oa(r,o,i){for(i=i.child;i!==null;)Iy(r,o,i),i=i.sibling}function Iy(r,o,i){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(kn,i)}catch{}switch(i.tag){case 26:jt||Fn(i,o),oa(r,o,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:jt||Fn(i,o);var d=Vt,p=Vn;for(Vt=i.stateNode,oa(r,o,i),i=i.stateNode,o=i.attributes;o.length;)i.removeAttributeNode(o[0]);Bf(i),Vt=d,Vn=p;break;case 5:jt||Fn(i,o);case 6:p=Vt;var y=Vn;if(Vt=null,oa(r,o,i),Vt=p,Vn=y,Vt!==null)if(Vn)try{r=Vt,d=i.stateNode,r.nodeType===8?r.parentNode.removeChild(d):r.removeChild(d)}catch(C){ut(i,o,C)}else try{Vt.removeChild(i.stateNode)}catch(C){ut(i,o,C)}break;case 18:Vt!==null&&(Vn?(o=Vt,i=i.stateNode,o.nodeType===8?km(o.parentNode,i):o.nodeType===1&&km(o,i),hl(o)):km(Vt,i.stateNode));break;case 4:d=Vt,p=Vn,Vt=i.stateNode.containerInfo,Vn=!0,oa(r,o,i),Vt=d,Vn=p;break;case 0:case 11:case 14:case 15:jt||_a(2,i,o),jt||_a(4,i,o),oa(r,o,i);break;case 1:jt||(Fn(i,o),d=i.stateNode,typeof d.componentWillUnmount=="function"&&_y(i,o,d)),oa(r,o,i);break;case 21:oa(r,o,i);break;case 22:jt||Fn(i,o),jt=(d=jt)||i.memoizedState!==null,oa(r,o,i),jt=d;break;default:oa(r,o,i)}}function Hy(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{hl(r)}catch(i){ut(o,o.return,i)}}function Ok(r){switch(r.tag){case 13:case 19:var o=r.stateNode;return o===null&&(o=r.stateNode=new By),o;case 22:return r=r.stateNode,o=r._retryCache,o===null&&(o=r._retryCache=new By),o;default:throw Error(a(435,r.tag))}}function Jh(r,o){var i=Ok(r);o.forEach(function(d){var p=Wk.bind(null,r,d);i.has(d)||(i.add(d),d.then(p,p))})}function nr(r,o){var i=o.deletions;if(i!==null)for(var d=0;d<i.length;d++){var p=i[d],y=r,C=o,R=C;e:for(;R!==null;){switch(R.tag){case 27:case 5:Vt=R.stateNode,Vn=!1;break e;case 3:Vt=R.stateNode.containerInfo,Vn=!0;break e;case 4:Vt=R.stateNode.containerInfo,Vn=!0;break e}R=R.return}if(Vt===null)throw Error(a(160));Iy(y,C,p),Vt=null,Vn=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)$y(o,r),o=o.sibling}var gr=null;function $y(r,o){var i=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:nr(o,r),rr(r),d&4&&(_a(3,r,r.return),Xi(3,r),_a(5,r,r.return));break;case 1:nr(o,r),rr(r),d&512&&(jt||i===null||Fn(i,i.return)),d&64&&aa&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(i=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=i===null?d:i.concat(d))));break;case 26:var p=gr;if(nr(o,r),rr(r),d&512&&(jt||i===null||Fn(i,i.return)),d&4){var y=i!==null?i.memoizedState:null;if(d=r.memoizedState,i===null)if(d===null)if(r.stateNode===null){e:{d=r.type,i=r.memoizedProps,p=p.ownerDocument||p;t:switch(d){case"title":y=p.getElementsByTagName("title")[0],(!y||y[wi]||y[zt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(d),p.head.insertBefore(y,p.querySelector("head > title"))),ln(y,d,i),y[zt]=r,Kt(y),d=y;break e;case"link":var C=Pb("link","href",p).get(d+(i.href||""));if(C){for(var R=0;R<C.length;R++)if(y=C[R],y.getAttribute("href")===(i.href==null?null:i.href)&&y.getAttribute("rel")===(i.rel==null?null:i.rel)&&y.getAttribute("title")===(i.title==null?null:i.title)&&y.getAttribute("crossorigin")===(i.
vendor: 5,086 bytes, line 56
56crossOrigin==null?null:i.crossOrigin)){C.splice(R,1);break t}}y=p.createElement(d),ln(y,d,i),p.head.appendChild(y);break;case"meta":if(C=Pb("meta","content",p).get(d+(i.content||""))){for(R=0;R<C.length;R++)if(y=C[R],y.getAttribute("content")===(i.content==null?null:""+i.content)&&y.getAttribute("name")===(i.name==null?null:i.name)&&y.getAttribute("property")===(i.property==null?null:i.property)&&y.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&y.getAttribute("charset")===(i.charSet==null?null:i.charSet)){C.splice(R,1);break t}}y=p.createElement(d),ln(y,d,i),p.head.appendChild(y);break;default:throw Error(a(468,d))}y[zt]=r,Kt(y),d=y}r.stateNode=d}else Lb(p,r.type,r.stateNode);else r.stateNode=_b(p,d,r.memoizedProps);else y!==d?(y===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):y.count--,d===null?Lb(p,r.type,r.stateNode):_b(p,d,r.memoizedProps)):d===null&&r.stateNode!==null&&Ly(r,r.memoizedProps,i.memoizedProps)}break;case 27:if(d&4&&r.alternate===null){p=r.stateNode,y=r.memoizedProps;try{for(var B=p.firstChild;B;){var W=B.nextSibling,oe=B.nodeName;B[wi]||oe==="HEAD"||oe==="BODY"||oe==="SCRIPT"||oe==="STYLE"||oe==="LINK"&&B.rel.toLowerCase()==="stylesheet"||p.removeChild(B),B=W}for(var he=r.type,ee=p.attributes;ee.length;)p.removeAttributeNode(ee[0]);ln(p,he,y),p[zt]=r,p[Rn]=y}catch(Me){ut(r,r.return,Me)}}case 5:if(nr(o,r),rr(r),d&512&&(jt||i===null||Fn(i,i.return)),r.flags&32){p=r.stateNode;try{ns(p,"")}catch(Me){ut(r,r.return,Me)}}d&4&&r.stateNode!=null&&(p=r.memoizedProps,Ly(r,p,i!==null?i.memoizedProps:p)),d&1024&&(Qh=!0);break;case 6:if(nr(o,r),rr(r),d&4){if(r.stateNode===null)throw Error(a(162));d=r.memoizedProps,i=r.stateNode;try{i.nodeValue=d}catch(Me){ut(r,r.return,Me)}}break;case 3:if(Au=null,p=gr,gr=Nu(o.containerInfo),nr(o,r),gr=p,rr(r),d&4&&i!==null&&i.memoizedState.isDehydrated)try{hl(o.containerInfo)}catch(Me){ut(r,r.return,Me)}Qh&&(Qh=!1,Yy(r));break;case 4:d=gr,gr=Nu(r.stateNode.containerInfo),nr(o,r),rr(r),gr=d;break;case 12:nr(o,r),rr(r);break;case 13:nr(o,r),rr(r),r.child.flags&8192&&r.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(lm=kt()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Jh(r,d)));break;case 22:if(d&512&&(jt||i===null||Fn(i,i.return)),B=r.memoizedState!==null,W=i!==null&&i.memoizedState!==null,oe=aa,he=jt,aa=oe||B,jt=he||W,nr(o,r),jt=he,aa=oe,rr(r),o=r.stateNode,o._current=r,o._visibility&=-3,o._visibility|=o._pendingVisibility&2,d&8192&&(o._visibility=B?o._visibility&-2:o._visibility|1,B&&(o=aa||jt,i===null||W||o||ys(r)),r.memoizedProps===null||r.memoizedProps.mode!=="manual"))e:for(i=null,o=r;;){if(o.tag===5||o.tag===26||o.tag===27){if(i===null){W=i=o;try{if(p=W.stateNode,B)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{C=W.stateNode,R=W.memoizedProps.style;var ae=R!=null&&R.hasOwnProperty("display")?R.display:null;C.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(Me){ut(W,W.return,Me)}}}else if(o.tag===6){if(i===null){W=o;try{W.stateNode.nodeValue=B?"":W.memoizedProps}catch(Me){ut(W,W.return,Me)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===r)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break e;for(;o.sibling===null;){if(o.return===null||o.return===r)break e;i===o&&(i=null),o=o.return}i===o&&(i=null),o.sibling.return=o.return,o=o.sibling}d&4&&(d=r.updateQueue,d!==null&&(i=d.retryQueue,i!==null&&(d.retryQueue=null,Jh(r,i))));break;case 19:nr(o,r),rr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Jh(r,d)));break;case 21:break;default:nr(o,r),rr(r)}}function rr(r){var o=r.flags;if(o&2){try{if(r.tag!==27){e:{for(var i=r.return;i!==null;){if(zy(i)){var d=i;break e}i=i.return}throw Error(a(160))}switch(d.tag){case 27:var p=d.stateNode,y=Kh(r);du(r,y,p);break;case 5:var C=d.stateNode;d.flags&32&&(ns(C,""),d.flags&=-33);var R=Kh(r);du(r,R,C);break;case 3:case 4:var B=d.stateNode.containerInfo,W=Kh(r);Zh(r,W,B);break;default:throw Error(a(161))}}}catch(oe){ut(r,r.return,oe)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function Yy(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var o=r;Yy(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),r=r.sibling}}function sa(r,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)Vy(r,o.alternate,o),o=o.sibling}function ys(r){for(r=r.child;r!==null;){var o=r;switch(o.tag){case 0:case 11:case 14:case 15:_a(4,o,o.return),ys(o);break;case 1:Fn(o,o.return);var i=o.stateNode;typeof i.componentWillUnmount=="function"&&_y(o,o.return,i),ys(o);break;case 26:case 27:case 5:Fn(o,o.return),ys(o);break;case 22:Fn(o,o.return),o.memoizedState===null&&ys(o);break;default:ys(o)}r=r.sibling}}function Pa(r,o,i){for(i=i&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var d=o.alternate,p=r,y=o,C=y.flags;switch(y.tag){case 0:case 11:case 15:Pa(p,y,i),Xi(4,y);break;case 1:if(Pa(p,y,i),d=y,p=d.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(W){ut(d,d.return,W)}if(d=y,p=d.updateQueue,p!==null){var R=d.stateNode;try{var B=p.shared.hiddenCallbacks;
vendor: 21,665 bytes, line 56
56if(B!==null)for(p.shared.hiddenCallbacks=null,p=0;p<B.length;p++)Dy(B[p],R)}catch(W){ut(d,d.return,W)}}i&&C&64&&Oy(y),Ao(y,y.return);break;case 26:case 27:case 5:Pa(p,y,i),i&&d===null&&C&4&&Py(y),Ao(y,y.return);break;case 12:Pa(p,y,i);break;case 13:Pa(p,y,i),i&&C&4&&Hy(p,y);break;case 22:y.memoizedState===null&&Pa(p,y,i),Ao(y,y.return);break;default:Pa(p,y,i)}o=o.sibling}}function em(r,o){var i=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==i&&(r!=null&&r.refCount++,i!=null&&Fi(i))}function tm(r,o){r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&Fi(r))}function La(r,o,i,d){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Wy(r,o,i,d),o=o.sibling}function Wy(r,o,i,d){var p=o.flags;switch(o.tag){case 0:case 11:case 15:La(r,o,i,d),p&2048&&Xi(9,o);break;case 3:La(r,o,i,d),p&2048&&(r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&Fi(r)));break;case 12:if(p&2048){La(r,o,i,d),r=o.stateNode;try{var y=o.memoizedProps,C=y.id,R=y.onPostCommit;typeof R=="function"&&R(C,o.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(B){ut(o,o.return,B)}}else La(r,o,i,d);break;case 23:break;case 22:y=o.stateNode,o.memoizedState!==null?y._visibility&4?La(r,o,i,d):Ki(r,o):y._visibility&4?La(r,o,i,d):(y._visibility|=4,bs(r,o,i,d,(o.subtreeFlags&10256)!==0)),p&2048&&em(o.alternate,o);break;case 24:La(r,o,i,d),p&2048&&tm(o.alternate,o);break;default:La(r,o,i,d)}}function bs(r,o,i,d,p){for(p=p&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var y=r,C=o,R=i,B=d,W=C.flags;switch(C.tag){case 0:case 11:case 15:bs(y,C,R,B,p),Xi(8,C);break;case 23:break;case 22:var oe=C.stateNode;C.memoizedState!==null?oe._visibility&4?bs(y,C,R,B,p):Ki(y,C):(oe._visibility|=4,bs(y,C,R,B,p)),p&&W&2048&&em(C.alternate,C);break;case 24:bs(y,C,R,B,p),p&&W&2048&&tm(C.alternate,C);break;default:bs(y,C,R,B,p)}o=o.sibling}}function Ki(r,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var i=r,d=o,p=d.flags;switch(d.tag){case 22:Ki(i,d),p&2048&&em(d.alternate,d);break;case 24:Ki(i,d),p&2048&&tm(d.alternate,d);break;default:Ki(i,d)}o=o.sibling}}var Zi=8192;function ws(r){if(r.subtreeFlags&Zi)for(r=r.child;r!==null;)Gy(r),r=r.sibling}function Gy(r){switch(r.tag){case 26:ws(r),r.flags&Zi&&r.memoizedState!==null&&wD(gr,r.memoizedState,r.memoizedProps);break;case 5:ws(r);break;case 3:case 4:var o=gr;gr=Nu(r.stateNode.containerInfo),ws(r),gr=o;break;case 22:r.memoizedState===null&&(o=r.alternate,o!==null&&o.memoizedState!==null?(o=Zi,Zi=16777216,ws(r),Zi=o):ws(r));break;default:ws(r)}}function qy(r){var o=r.alternate;if(o!==null&&(r=o.child,r!==null)){o.child=null;do o=r.sibling,r.sibling=null,r=o;while(r!==null)}}function Qi(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var i=0;i<o.length;i++){var d=o[i];Qt=d,Ky(d,r)}qy(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Xy(r),r=r.sibling}function Xy(r){switch(r.tag){case 0:case 11:case 15:Qi(r),r.flags&2048&&_a(9,r,r.return);break;case 3:Qi(r);break;case 12:Qi(r);break;case 22:var o=r.stateNode;r.memoizedState!==null&&o._visibility&4&&(r.return===null||r.return.tag!==13)?(o._visibility&=-5,fu(r)):Qi(r);break;default:Qi(r)}}function fu(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var i=0;i<o.length;i++){var d=o[i];Qt=d,Ky(d,r)}qy(r)}for(r=r.child;r!==null;){switch(o=r,o.tag){case 0:case 11:case 15:_a(8,o,o.return),fu(o);break;case 22:i=o.stateNode,i._visibility&4&&(i._visibility&=-5,fu(o));break;default:fu(o)}r=r.sibling}}function Ky(r,o){for(;Qt!==null;){var i=Qt;switch(i.tag){case 0:case 11:case 15:_a(8,i,o);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var d=i.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Fi(i.memoizedState.cache)}if(d=i.child,d!==null)d.return=i,Qt=d;else e:for(i=r;Qt!==null;){d=Qt;var p=d.sibling,y=d.return;if(Uy(d),d===i){Qt=null;break e}if(p!==null){p.return=y,Qt=p;break e}Qt=y}}}function _k(r,o,i,d){this.tag=r,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(r,o,i,d){return new _k(r,o,i,d)}function nm(r){return r=r.prototype,!(!r||!r.isReactComponent)}function za(r,o){var i=r.alternate;return i===null?(i=ar(r.tag,o,r.key,r.mode),i.elementType=r.elementType,i.type=r.type,i.stateNode=r.stateNode,i.alternate=r,r.alternate=i):(i.pendingProps=o,i.type=r.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=r.flags&31457280,i.childLanes=r.childLanes,i.lanes=r.lanes,i.child=r.child,i.memoizedProps=r.memoizedProps,i.memoizedState=r.memoizedState,i.updateQueue=r.updateQueue,o=r.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},i.sibling=r.sibling,i.index=r.index,i.ref=r.ref,i.refCleanup=r.refCleanup,i}function Zy(r,o){r.flags&=31457282;var i=r.alternate;return i===null?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=i.childLanes,r.lanes=i.lanes,r.child=i.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=i.memoizedProps,r.memoizedState=i.memoizedState,r.updateQueue=i.updateQueue,r.type=i.type,o=i.dependencies,r.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),r}function hu(r,o,i,d,p,y){var C=0;if(d=r,typeof r=="function")nm(r)&&(C=1);else if(typeof r=="string")C=yD(r,i,je.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case h:return Mo(i.children,p,y,o);case m:C=8,p|=24;break;case v:return r=ar(12,i,o,p|2),r.elementType=v,r.lanes=y,r;case S:return r=ar(13,i,o,p),r.elementType=S,r.lanes=y,r;case j:return r=ar(19,i,o,p),r.elementType=j,r.lanes=y,r;case k:return Qy(i,p,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case g:case w:C=10;break e;case b:C=9;break e;case E:C=11;break e;case N:C=14;break e;case A:C=16,d=null;break e}C=29,i=Error(a(130,r===null?"null":typeof r,"")),d=null}return o=ar(C,i,o,p),o.elementType=r,o.type=d,o.lanes=y,o}function Mo(r,o,i,d){return r=ar(7,r,d,o),r.lanes=i,r}function Qy(r,o,i,d){r=ar(22,r,d,o),r.elementType=k,r.lanes=i;var p={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var y=p._current;if(y===null)throw Error(a(456));if((p._pendingVisibility&2)===0){var C=ja(y,2);C!==null&&(p._pendingVisibility|=2,Nn(C,y,2))}},attach:function(){var y=p._current;if(y===null)throw Error(a(456));if((p._pendingVisibility&2)!==0){var C=ja(y,2);C!==null&&(p._pendingVisibility&=-3,Nn(C,y,2))}}};return r.stateNode=p,r}function rm(r,o,i){return r=ar(6,r,null,o),r.lanes=i,r}function am(r,o,i){return o=ar(4,r.children!==null?r.children:[],r.key,o),o.lanes=i,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function ia(r){r.flags|=4}function Jy(r,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!zb(o)){if(o=tr.current,o!==null&&((Ze&4194176)===Ze?Ar!==null:(Ze&62914560)!==Ze&&(Ze&536870912)===0||o!==Ar))throw Li=ch,g0;r.flags|=8192}}function mu(r,o){o!==null&&(r.flags|=4),r.flags&16384&&(o=r.tag!==22?et():536870912,r.lanes|=o,Es|=o)}function Ji(r,o){if(!Qe)switch(r.tailMode){case"hidden":o=r.tail;for(var i=null;o!==null;)o.alternate!==null&&(i=o),o=o.sibling;i===null?r.tail=null:i.sibling=null;break;case"collapsed":i=r.tail;for(var d=null;i!==null;)i.alternate!==null&&(d=i),i=i.sibling;d===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function bt(r){var o=r.alternate!==null&&r.alternate.child===r.child,i=0,d=0;if(o)for(var p=r.child;p!==null;)i|=p.lanes|p.childLanes,d|=p.subtreeFlags&31457280,d|=p.flags&31457280,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)i|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=i,o}function Pk(r,o,i){var d=o.pendingProps;switch(ih(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(o),null;case 1:return bt(o),null;case 3:return i=o.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),o.memoizedState.cache!==d&&(o.flags|=2048),ra(Yt),ct(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(r===null||r.child===null)&&(Ri(o)?ia(o):r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,pr!==null&&(fm(pr),pr=null))),bt(o),null;case 26:return i=o.memoizedState,r===null?(ia(o),i!==null?(bt(o),Jy(o,i)):(bt(o),o.flags&=-16777217)):i?i!==r.memoizedState?(ia(o),bt(o),Jy(o,i)):(bt(o),o.flags&=-16777217):(r.memoizedProps!==d&&ia(o),bt(o),o.flags&=-16777217),null;case 27:hn(o),i=qe.current;var p=o.type;if(r!==null&&o.stateNode!=null)r.memoizedProps!==d&&ia(o);else{if(!d){if(o.stateNode===null)throw Error(a(166));return bt(o),null}r=je.current,Ri(o)?m0(o):(r=Mb(p,d,i),o.stateNode=r,ia(o))}return bt(o),null;case 5:if(hn(o),i=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==d&&ia(o);else{if(!d){if(o.stateNode===null)throw Error(a(166));return bt(o),null}if(r=je.current,Ri(o))m0(o);else{switch(p=ju(qe.current),r){case 1:r=p.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=p.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=p.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof d.is=="string"?p.createElement("select",{is:d.is}):p.createElement("select"),d.multiple?r.multiple=!0:d.size&&(r.size=d.size);break;default:r=typeof d.is=="string"?p.createElement(i,{is:d.is}):p.createElement(i)}}r[zt]=o,r[Rn]=d;e:for(p=o.child;p!==null;){if(p.tag===5||p.tag===6)r.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===o)break e;for(;p.sibling===null;){if(p.return===null||p.return===o)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}o.stateNode=r;e:switch(ln(r,i,d),i){case"button":case"input":case"select":case"textarea":r=!!d.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ia(o)}}return bt(o),o.flags&=-16777217,null;case 6:if(r&&o.stateNode!=null)r.memoizedProps!==d&&ia(o);else{if(typeof d!="string"&&o.stateNode===null)throw Error(a(166));if(r=qe.current,Ri(o)){if(r=o.stateNode,i=o.memoizedProps,d=null,p=jn,p!==null)switch(p.tag){case 27:case 5:d=p.memoizedProps}r[zt]=o,r=!!(r.nodeValue===i||d!==null&&d.suppressHydrationWarning===!0||Eb(r.nodeValue,i)),r||yo(o)}else r=ju(r).createTextNode(d),r[zt]=o,o.stateNode=r}return bt(o),null;case 13:if(d=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=Ri(o),d!==null&&d.dehydrated!==null){if(r===null){if(!p)throw Error(a(318));if(p=o.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(a(317));p[zt]=o}else Oi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;bt(o),p=!1}else pr!==null&&(fm(pr),pr=null),p=!0;if(!p)return o.flags&256?(Jr(o),o):(Jr(o),null)}if(Jr(o),(o.flags&128)!==0)return o.lanes=i,o;if(i=d!==null,r=r!==null&&r.memoizedState!==null,i){d=o.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool);var y=null;d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==p&&(d.flags|=2048)}return i!==r&&i&&(o.child.flags|=8192),mu(o,o.updateQueue),bt(o),null;case 4:return ct(),r===null&&Em(o.stateNode.containerInfo),bt(o),null;case 10:return ra(o.type),bt(o),null;case 19:if(pe($t),p=o.memoizedState,p===null)return bt(o),null;if(d=(o.flags&128)!==0,y=p.rendering,y===null)if(d)Ji(p,!1);else{if(Nt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(y=Zc(r),y!==null){for(o.flags|=128,Ji(p,!1),r=y.updateQueue,o.updateQueue=r,mu(o,r),o.subtreeFlags=0,r=i,i=o.child;i!==null;)Zy(i,r),i=i.sibling;return fe($t,$t.current&1|2),o.child}r=r.sibling}p.tail!==null&&kt()>pu&&(o.flags|=128,d=!0,Ji(p,!1),o.lanes=4194304)}else{if(!d)if(r=Zc(y),r!==null){if(o.flags|=128,d=!0,r=r.updateQueue,o.updateQueue=r,mu(o,r),Ji(p,!0),p.tail===null&&p.tailMode==="hidden"&&!y.alternate&&!Qe)return bt(o),null}else 2*kt()-p.renderingStartTime>pu&&i!==536870912&&(o.flags|=128,d=!0,Ji(p,!1),o.lanes=4194304);p.isBackwards?(y.sibling=o.child,o.child=y):(r=p.last,r!==null?r.sibling=y:o.child=y,p.last=y)}return p.tail!==null?(o=p.tail,p.rendering=o,p.tail=o.sibling,p.renderingStartTime=kt(),o.sibling=null,r=$t.current,fe($t,d?r&1|2:r&1),o):(bt(o),null);case 22:case 23:return Jr(o),dh(),d=o.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(o.flags|=8192):d&&(o.flags|=8192),d?(i&536870912)!==0&&(o.flags&128)===0&&(bt(o),o.subtreeFlags&6&&(o.flags|=8192)):bt(o),i=o.updateQueue,i!==null&&mu(o,i.retryQueue),i=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==i&&(o.flags|=2048),r!==null&&pe(wo),null;case 24:return i=null,r!==null&&(i=r.memoizedState.cache),o.memoizedState.cache!==i&&(o.flags|=2048),ra(Yt),bt(o),null;case 25:return null}throw Error(a(156,o.tag))}function Lk(r,o){switch(ih(o),o.tag){case 1:return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return ra(Yt),ct(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 26:case 27:case 5:return hn(o),null;case 13:if(Jr(o),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(a(340));Oi()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return pe($t),null;case 4:return ct(),null;case 10:return ra(o.type),null;case 22:case 23:return Jr(o),dh(),r!==null&&pe(wo),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 24:return ra(Yt),null;case 25:return null;default:return null}}function eb(r,o){switch(ih(o),o.tag){case 3:ra(Yt),ct();break;case 26:case 27:case 5:hn(o);break;case 4:ct();break;case 13:Jr(o);break;case 19:pe($t);break;case 10:ra(o.type);break;case 22:case 23:Jr(o),dh(),r!==null&&pe(wo);break;case 24:ra(Yt)}}var zk={getCacheForType:function(r){var o=pn(Yt),i=o.data.get(r);return i===void 0&&(i=r(),o.data.set(r,i)),i}},Bk=typeof WeakMap=="function"?WeakMap:Map,wt=0,ft=null,Ge=null,Ze=0,ht=0,Un=null,la=!1,Ss=!1,om=!1,ca=0,Nt=0,Ba=0,ko=0,sm=0,or=0,Es=0,el=null,kr=null,im=!1,lm=0,pu=1/0,gu=null,Fa=null,vu=!1,Do=null,tl=0,cm=0,um=null,nl=0,dm=null;function In(){if((wt&2)!==0&&Ze!==0)return Ze&-Ze;if(L.T!==null){var r=ms;return r!==0?r:ym()}return mn()}function tb(){or===0&&(or=(Ze&536870912)===0||Qe?ze():536870912);var r=tr.current;return r!==null&&(r.flags|=32),or}function Nn(r,o,i){(r===ft&&ht===2||r.cancelPendingCommit!==null)&&(Cs(r,0),ua(r,Ze,or,!1)),Le(r,i),((wt&2)===0||r!==ft)&&(r===ft&&((wt&2)===0&&(ko|=i),Nt===4&&ua(r,Ze,or,!1)),Dr(r))}function nb(r,o,i){if((wt&6)!==0)throw Error(a(327));var d=!i&&(o&60)===0&&(o&r.expiredLanes)===0||Oe(r,o),p=d?Uk(r,o):pm(r,o,!0),y=d;do{if(p===0){Ss&&!d&&ua(r,o,0,!1);break}else if(p===6)ua(r,o,0,!la);else{if(i=r.current.alternate,y&&!Fk(i)){p=pm(r,o,!1),y=!1;continue}if(p===2){if(y=o,r.errorRecoveryDisabledLanes&y)var C=0;else C=r.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var R=r;p=el;var B=R.current.memoizedState.isDehydrated;if(B&&(Cs(R,C).flags|=256),C=pm(R,C,!1),C!==2){if(om&&!B){R.errorRecoveryDisabledLanes|=y,ko|=y,p=4;break e}y=kr,kr=p,y!==null&&fm(y)}p=C}if(y=!1,p!==2)continue}}if(p===1){Cs(r,0),ua(r,o,0,!0);break}e:{switch(d=r,p){case 0:case 1:throw Error(a(345));case 4:if((o&4194176)===o){ua(d,o,or,!la);break e}break;case 2:kr=null;break;case 3:case 5:break;default:throw Error(a(329))}if(d.finishedWork=i,d.finishedLanes=o,(o&62914560)===o&&(y=lm+300-kt(),10<y)){if(ua(d,o,or,!la),de(d,0)!==0)break e;d.timeoutHandle=Nb(rb.bind(null,d,i,kr,gu,im,o,or,ko,Es,la,2,-0,0),y);break e}rb(d,i,kr,gu,im,o,or,ko,Es,la,0,-0,0)}}break}while(!0);Dr(r)}function fm(r){kr===null?kr=r:kr.push.apply(kr,r)}function rb(r,o,i,d,p,y,C,R,B,W,oe,he,ee){var ae=o.subtreeFlags;if((ae&8192||(ae&16785408)===16785408)&&(ll={stylesheets:null,count:0,unsuspend:bD},Gy(o),o=SD(),o!==null)){r.cancelPendingCommit=o(ub.bind(null,r,i,d,p,C,R,B,1,he,ee)),ua(r,y,C,!W);return}ub(r,i,d,p,C,R,B,oe,he,ee)}function Fk(r){for(var o=r;;){var i=o.tag;if((i===0||i===11||i===15)&&o.flags&16384&&(i=o.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var d=0;d<i.length;d++){var p=i[d],y=p.getSnapshot;p=p.value;try{if(!Bn(y(),p))return!1}catch{return!1}}if(i=o.child,o.subtreeFlags&16384&&i!==null)i.return=o,o=i;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ua(r,o,i,d){o&=~sm,o&=~ko,r.suspendedLanes|=o,r.pingedLanes&=~o,d&&(r.warmLanes|=o),d=r.expirationTimes;for(var p=o;0<p;){var y=31-Ot(p),C=1<<y;d[y]=-1,p&=~C}i!==0&&rt(r,i,o)}function xu(){return(wt&6)===0?(rl(0),!1):!0}function hm(){if(Ge!==null){if(ht===0)var r=Ge.return;else r=Ge,na=No=null,yh(r),fs=null,zi=0,r=Ge;for(;r!==null;)eb(r.alternate,r),r=r.return;Ge=null}}function Cs(r,o){r.finishedWork=null,r.finishedLanes=0;var i=r.timeoutHandle;i!==-1&&(r.timeoutHandle=-1,aD(i)),i=r.cancelPendingCommit,i!==null&&(r.cancelPendingCommit=null,i()),hm(),ft=r,Ge=i=za(r.current,null),Ze=o,ht=0,Un=null,la=!1,Ss=Oe(r,o),om=!1,Es=or=sm=ko=Ba=Nt=0,kr=el=null,im=!1,(o&8)!==0&&(o|=o&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=o;0<d;){var p=31-Ot(d),y=1<<p;o|=r[p],d&=~y}return ca=o,Ic(),i}function ab(r,o){He=null,L.H=Mr,o===Pi?(o=y0(),ht=3):o===g0?(o=y0(),ht=4):ht=o===vy?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Un=o,Ge===null&&(Nt=1,lu(r,Qn(o,r.current)))}function ob(){var r=L.H;return L.H=Mr,r===null?Mr:r}function sb(){var r=L.A;return L.A=zk,r}function mm(){Nt=4,la||(Ze&4194176)!==Ze&&tr.current!==null||(Ss=!0),(Ba&134217727)===0&&(ko&134217727)===0||ft===null||ua(ft,Ze,or,!1)}function pm(r,o,i){var d=wt;wt|=2;var p=ob(),y=sb();(ft!==r||Ze!==o)&&(gu=null,Cs(r,o)),o=!1;var C=Nt;e:do try{if(ht!==0&&Ge!==null){var R=Ge,B=Un;switch(ht){case 8:hm(),C=6;break e;case 3:case 2:case 6:tr.current===null&&(o=!0);var W=ht;if(ht=0,Un=null,js(r,R,B,W),i&&Ss){C=0;break e}break;default:W=ht,ht=0,Un=null,js(r,R,B,W)}}Vk(),C=Nt;break}catch(oe){ab(r,oe)}while(!0);return o&&r.shellSuspendCounter++,na=No=null,wt=d,L.H=p,L.A=y,Ge===null&&(ft=null,Ze=0,Ic()),C}function Vk(){for(;Ge!==null;)ib(Ge)}function Uk(r,o){var i=wt;wt|=2;var d=ob(),p=sb();ft!==r||Ze!==o?(gu=null,pu=kt()+500,Cs(r,o)):Ss=Oe(r,o);e:do try{if(ht!==0&&Ge!==null){o=Ge;var y=Un;t:switch(ht){case 1:ht=0,Un=null,js(r,o,y,1);break;case 2:if(v0(y)){ht=0,Un=null,lb(o);break}o=function(){ht===2&&ft===r&&(ht=7),Dr(r)},y.then(o,o);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:v0(y)?(ht=0,Un=null,lb(o)):(ht=0,Un=null,js(r,o,y,7));break;case 5:var C=null;switch(Ge.tag){case 26:C=Ge.memoizedState;case 5:case 27:var R=Ge;if(!C||zb(C)){ht=0,Un=null;var B=R.sibling;if(B!==null)Ge=B;else{var W=R.return;W!==null?(Ge=W,yu(W)):Ge=null}break t}}ht=0,Un=null,js(r,o,y,5);break;case 6:ht=0,Un=null,js(r,o,y,6);break;case 8:hm(),Nt=6;break e;default:throw Error(a(462))}}Ik();break}catch(oe){ab(r,oe)}while(!0);return na=No=null,L.H=d,L.A=p,wt=i,Ge!==null?0:(ft=null,Ze=0,Ic(),Nt)}function Ik(){for(;Ge!==null&&!pt();)ib(Ge)}function ib(r){var o=My(r.alternate,r,ca);r.memoizedProps=r.pendingProps,o===null?yu(r):Ge=o}function lb(r){var o=r,i=o.alternate;switch(o.tag){case 15:case 0:o=Ey(i,o,o.pendingProps,o.type,void 0,Ze);break;case 11:o=Ey(i,o,o.pendingProps,o.type.render,o.ref,Ze);break;case 5:yh(o);default:eb(i,o),o=Ge=Zy(o,ca),o=My(i,o,ca)}r.memoizedProps=r.pendingProps,o===null?yu(r):Ge=o}function js(r,o,i,d){na=No=null,yh(o),fs=null,zi=0;var p=o.return;try{if(kk(r,p,o,i,Ze)){Nt=1,lu(r,Qn(i,r.current)),Ge=null;return}}catch(y){if(p!==null)throw Ge=p,y;Nt=1,lu(r,Qn(i,r.current)),Ge=null;return}o.flags&32768?(Qe||d===1?r=!0:Ss||(Ze&536870912)!==0?r=!1:(la=r=!0,(d===2||d===3||d===6)&&(d=tr.current,d!==null&&d.tag===13&&(d.flags|=16384))),cb(o,r)):yu(o)}function yu(r){var o=r;do{if((o.flags&32768)!==0){cb(o,la);return}r=o.return;var i=Pk(o.alternate,o,ca);if(i!==null){Ge=i;return}if(o=o.sibling,o!==null){Ge=o;return}Ge=o=r}while(o!==null);Nt===0&&(Nt=5)}function cb(r,o){do{var i=Lk(r.alternate,r);if(i!==null){i.flags&=32767,Ge=i;return}if(i=r.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!o&&(r=r.sibling,r!==null)){Ge=r;return}Ge=r=i}while(r!==null);Nt=6,Ge=null}function ub(r,o,i,d,p,y,C,R,B,W){var oe=L.T,he=X.p;try{X.p=2,L.T=null,Hk(r,o,i,d,he,p,y,C,R,B,W)}finally{L.T=oe,X.p=he}}function Hk(r,o,i,d,p,y,C,R){do Ns();while(Do!==null);if((wt&6)!==0)throw Error(a(327));var B=r.finishedWork;if(d=r.finishedLanes,B===null)return null;if(r.finishedWork=null,r.finishedLanes=0,B===r.current)throw Error(a(177));r.callbackNode=null,r.callbackPriority=0,r.cancelPendingCommit=null;var W=B.lanes|B.childLanes;if(W|=ah,Lt(r,d,W,y,C,R),r===ft&&(Ge=ft=null,Ze=0),(B.subtreeFlags&10256)===0&&(B.flags&10256)===0||vu||(vu=!0,
56cm=W,um=i,Gk(Dt,function(){return Ns(),null})),i=(B.flags&15990)!==0,(B.subtreeFlags&15990)!==0||i?(i=L.T,L.T=null,y=X.p,X.p=2,C=wt,wt|=4,Rk(r,B),$y(B,r),hk(Tm,r.containerInfo),Du=!!Nm,Tm=Nm=null,r.current=B,Vy(r,B.alternate,B),Mt(),wt=C,X.p=y,L.T=i):r.current=B,vu?(vu=!1,Do=r,tl=d):db(r,W),W=r.pendingLanes,W===0&&(Fa=null),qn(B.stateNode),Dr(r),o!==null)for(p=r.onRecoverableError,B=0;B<o.length;B++)W=o[B],p(W.value,{componentStack:W.stack});return(tl&3)!==0&&Ns(),W=r.pendingLanes,(d&4194218)!==0&&(W&42)!==0?r===dm?nl++:(nl=0,dm=r):nl=0,rl(0),null}function db(r,o){(r.pooledCacheLanes&=o)===0&&(o=r.pooledCache,o!=null&&(r.pooledCache=null,Fi(o)))}function Ns(){if(Do!==null){var r=Do,o=cm;cm=0;var i=fr(tl),d=L.T,p=X.p;try{if(X.p=32>i?32:i,L.T=null,Do===null)var y=!1;else{i=um,um=null;var C=Do,R=tl;if(Do=null,tl=0,(wt&6)!==0)throw Error(a(331));var B=wt;if(wt|=4,Xy(C.current),Wy(C,C.current,R,i),wt=B,rl(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(kn,C)}catch{}y=!0}return y}finally{X.p=p,L.T=d,db(r,o)}}return!1}function fb(r,o,i){o=Qn(i,o),o=Oh(r.stateNode,o,2),r=Oa(r,o,2),r!==null&&(Le(r,2),Dr(r))}function ut(r,o,i){if(r.tag===3)fb(r,r,i);else for(;o!==null;){if(o.tag===3){fb(o,r,i);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Fa===null||!Fa.has(d))){r=Qn(i,r),i=py(2),d=Oa(o,i,2),d!==null&&(gy(i,d,o,r),Le(d,2),Dr(d));break}}o=o.return}}function gm(r,o,i){var d=r.pingCache;if(d===null){d=r.pingCache=new Bk;var p=new Set;d.set(o,p)}else p=d.get(o),p===void 0&&(p=new Set,d.set(o,p));p.has(i)||(om=!0,p.add(i),r=$k.bind(null,r,o,i),o.then(r,r))}function $k(r,o,i){var d=r.pingCache;d!==null&&d.delete(o),r.pingedLanes|=r.suspendedLanes&i,r.warmLanes&=~i,ft===r&&(Ze&i)===i&&(Nt===4||Nt===3&&(Ze&62914560)===Ze&&300>kt()-lm?(wt&2)===0&&Cs(r,0):sm|=i,Es===Ze&&(Es=0)),Dr(r)}function hb(r,o){o===0&&(o=et()),r=ja(r,o),r!==null&&(Le(r,o),Dr(r))}function Yk(r){var o=r.memoizedState,i=0;o!==null&&(i=o.retryLane),hb(r,i)}function Wk(r,o){var i=0;switch(r.tag){case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(i=p.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(a(314))}d!==null&&d.delete(o),hb(r,i)}function Gk(r,o){return yt(r,o)}var bu=null,Ts=null,vm=!1,wu=!1,xm=!1,Ro=0;function Dr(r){r!==Ts&&r.next===null&&(Ts===null?bu=Ts=r:Ts=Ts.next=r),wu=!0,vm||(vm=!0,Xk(qk))}function rl(r,o){if(!xm&&wu){xm=!0;do for(var i=!1,d=bu;d!==null;){if(r!==0){var p=d.pendingLanes;if(p===0)var y=0;else{var C=d.suspendedLanes,R=d.pingedLanes;y=(1<<31-Ot(42|r)+1)-1,y&=p&~(C&~R),y=y&201326677?y&201326677|1:y?y|2:0}y!==0&&(i=!0,gb(d,y))}else y=Ze,y=de(d,d===ft?y:0),(y&3)===0||Oe(d,y)||(i=!0,gb(d,y));d=d.next}while(i);xm=!1}}function qk(){wu=vm=!1;var r=0;Ro!==0&&(rD()&&(r=Ro),Ro=0);for(var o=kt(),i=null,d=bu;d!==null;){var p=d.next,y=mb(d,o);y===0?(d.next=null,i===null?bu=p:i.next=p,p===null&&(Ts=i)):(i=d,(r!==0||(y&3)!==0)&&(wu=!0)),d=p}rl(r)}function mb(r,o){for(var i=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;
vendor: 12,786 bytes, lines 56-57
56){var C=31-Ot(y),R=1<<C,B=p[C];B===-1?((R&i)===0||(R&d)!==0)&&(p[C]=Ve(R,o)):B<=o&&(r.expiredLanes|=R),y&=~R}if(o=ft,i=Ze,i=de(r,r===o?i:0),d=r.callbackNode,i===0||r===o&&ht===2||r.cancelPendingCommit!==null)return d!==null&&d!==null&&Sn(d),r.callbackNode=null,r.callbackPriority=0;if((i&3)===0||Oe(r,i)){if(o=i&-i,o===r.callbackPriority)return o;switch(d!==null&&Sn(d),fr(i)){case 2:case 8:i=En;break;case 32:i=Dt;break;case 268435456:i=rn;break;default:i=Dt}return d=pb.bind(null,r),i=yt(i,d),r.callbackPriority=o,r.callbackNode=i,o}return d!==null&&d!==null&&Sn(d),r.callbackPriority=2,r.callbackNode=null,2}function pb(r,o){var i=r.callbackNode;if(Ns()&&r.callbackNode!==i)return null;var d=Ze;return d=de(r,r===ft?d:0),d===0?null:(nb(r,d,o),mb(r,kt()),r.callbackNode!=null&&r.callbackNode===i?pb.bind(null,r):null)}function gb(r,o){if(Ns())return null;nb(r,o,!0)}function Xk(r){oD(function(){(wt&6)!==0?yt(Ln,r):r()})}function ym(){return Ro===0&&(Ro=ze()),Ro}function vb(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Pc(""+r)}function xb(r,o){var i=o.ownerDocument.createElement("input");return i.name=o.name,i.value=o.value,r.id&&i.setAttribute("form",r.id),o.parentNode.insertBefore(i,o),r=new FormData(r),i.parentNode.removeChild(i),r}function Kk(r,o,i,d,p){if(o==="submit"&&i&&i.stateNode===p){var y=vb((p[Rn]||null).action),C=d.submitter;C&&(o=(o=C[Rn]||null)?vb(o.formAction):C.getAttribute("formAction"),o!==null&&(y=o,C=null));var R=new Fc("action","action",null,d,p);r.push({event:R,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ro!==0){var B=C?xb(p,C):new FormData(p);Ah(i,{pending:!0,data:B,method:p.method,action:y},null,B)}}else typeof y=="function"&&(R.preventDefault(),B=C?xb(p,C):new FormData(p),Ah(i,{pending:!0,data:B,method:p.method,action:y},y,B))},currentTarget:p}]})}}for(var bm=0;bm<u0.length;bm++){var wm=u0[bm],Zk=wm.toLowerCase(),Qk=wm[0].toUpperCase()+wm.slice(1);mr(Zk,"on"+Qk)}mr(o0,"onAnimationEnd"),mr(s0,"onAnimationIteration"),mr(i0,"onAnimationStart"),mr("dblclick","onDoubleClick"),mr("focusin","onFocus"),mr("focusout","onBlur"),mr(pk,"onTransitionRun"),mr(gk,"onTransitionStart"),mr(vk,"onTransitionCancel"),mr(l0,"onTransitionEnd"),es("onMouseEnter",["mouseout","mouseover"]),es("onMouseLeave",["mouseout","mouseover"]),es("onPointerEnter",["pointerout","pointerover"]),es("onPointerLeave",["pointerout","pointerover"]),ho("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ho("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ho("onBeforeInput",["compositionend","keypress","textInput","paste"]),ho("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ho("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ho("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var al="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(" "),Jk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(al));function yb(r,o){o=(o&4)!==0;for(var i=0;i<r.length;i++){var d=r[i],p=d.event;d=d.listeners;e:{var y=void 0;if(o)for(var C=d.length-1;0<=C;C--){var R=d[C],B=R.instance,W=R.currentTarget;if(R=R.listener,B!==y&&p.isPropagationStopped())break e;y=R,p.currentTarget=W;try{y(p)}catch(oe){iu(oe)}p.currentTarget=null,y=B}else for(C=0;C<d.length;C++){if(R=d[C],B=R.instance,W=R.currentTarget,R=R.listener,B!==y&&p.isPropagationStopped())break e;y=R,p.currentTarget=W;try{y(p)}catch(oe){iu(oe)}p.currentTarget=null,y=B}}}}function Xe(r,o){var i=o[zf];i===void 0&&(i=o[zf]=new Set);var d=r+"__bubble";i.has(d)||(bb(o,r,2,!1),i.add(d))}function Sm(r,o,i){var d=0;o&&(d|=4),bb(i,r,d,o)}var Su="_reactListening"+Math.random().toString(36).slice(2);function Em(r){if(!r[Su]){r[Su]=!0,Ex.forEach(function(i){i!=="selectionchange"&&(Jk.has(i)||Sm(i,!1,r),Sm(i,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Su]||(o[Su]=!0,Sm("selectionchange",!1,o))}}function bb(r,o,i,d){switch(Hb(o)){case 2:var p=jD;break;case 8:p=ND;break;default:p=Lm}i=p.bind(null,o,i,r),p=void 0,!Yf||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),d?p!==void 0?r.addEventListener(o,i,{capture:!0,passive:p}):r.addEventListener(o,i,!0):p!==void 0?r.addEventListener(o,i,{passive:p}):r.addEventListener(o,i,!1)}function Cm(r,o,i,d,p){var y=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var C=d.tag;if(C===3||C===4){var R=d.stateNode.containerInfo;if(R===p||R.nodeType===8&&R.parentNode===p)break;if(C===4)for(C=d.return;C!==null;){var B=C.tag;if((B===3||B===4)&&(B=C.stateNode.containerInfo,B===p||B.nodeType===8&&B.parentNode===p))return;C=C.return}for(;R!==null;){if(C=fo(R),C===null)return;if(B=C.tag,B===5||B===6||B===26||B===27){d=y=C;continue e}R=R.parentNode}}d=d.return}Px(function(){var W=y,oe=Hf(i),he=[];e:{var ee=c0.get(r);if(ee!==void 0){var ae=Fc,Me=r;switch(r){case"keypress":if(zc(i)===0)break e;case"keydown":case"keyup":ae=WM;break;case"focusin":Me="focus",ae=Xf;break;case"focusout":Me="blur",ae=Xf;break;case"beforeblur":case"afterblur":ae=Xf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=Bx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=_M;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=XM;break;case o0:case s0:case i0:ae=zM;break;case l0:ae=ZM;break;case"scroll":case"scrollend":ae=RM;break;case"wheel":ae=JM;break;case"copy":case"cut":case"paste":ae=FM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=Vx;break;case"toggle":case"beforetoggle":ae=tk}var Be=(o&4)!==0,Tt=!Be&&(r==="scroll"||r==="scrollend"),q=Be?ee!==null?ee+"Capture":null:ee;Be=[];for(var $=W,K;$!==null;){var ue=$;if(K=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||K===null||q===null||(ue=Ei($,q),ue!=null&&Be.push(ol($,ue,K))),Tt)break;$=$.return}0<Be.length&&(ee=new ae(ee,Me,null,i,oe),he.push({event:ee,listeners:Be}))}}if((o&7)===0){e:{if(ee=r==="mouseover"||r==="pointerover",ae=r==="mouseout"||r==="pointerout",ee&&i!==If&&(Me=i.relatedTarget||i.fromElement)&&(fo(Me)||Me[Zo]))break e;if((ae||ee)&&(ee=oe.window===oe?oe:(ee=oe.ownerDocument)?ee.defaultView||ee.parentWindow:window,ae?(Me=i.relatedTarget||i.toElement,ae=W,Me=Me?fo(Me):null,Me!==null&&(Tt=V(Me),Be=Me.tag,Me!==Tt||Be!==5&&Be!==27&&Be!==6)&&(Me=null)):(ae=null,Me=W),ae!==Me)){if(Be=Bx,ue="onMouseLeave",q="onMouseEnter",$="mouse",(r==="pointerout"||r==="pointerover")&&(Be=Vx,ue="onPointerLeave",q="onPointerEnter",$="pointer"),Tt=ae==null?ee:Si(ae),K=Me==null?ee:Si(Me),ee=new Be(ue,$+"leave",ae,i,oe),ee.target=Tt,ee.relatedTarget=K,ue=null,fo(oe)===W&&(Be=new Be(q,$+"enter",Me,i,oe),Be.target=K,Be.relatedTarget=Tt,ue=Be),Tt=ue,ae&&Me)t:{for(Be=ae,q=Me,$=0,K=Be;K;K=As(K))$++;for(K=0,ue=q;ue;ue=As(ue))K++;for(;0<$-K;)Be=As(Be),$--;for(;0<K-$;)q=As(q),K--;for(;$--;){if(Be===q||q!==null&&Be===q.alternate)break t;Be=As(Be),q=As(q)}Be=null}else Be=null;ae!==null&&wb(he,ee,ae,Be,!1),Me!==null&&Tt!==null&&wb(he,Tt,Me,Be,!0)}}e:{if(ee=W?Si(W):window,ae=ee.nodeName&&ee.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ee.type==="file")var we=qx;else if(Wx(ee))if(Xx)we=dk;else{we=ck;var Ye=lk}else ae=ee.nodeName,!ae||ae.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?W&&Uf(W.elementType)&&(we=qx):we=uk;if(we&&(we=we(r,W))){Gx(he,we,i,oe);break e}Ye&&Ye(r,ee,W),r==="focusout"&&W&&ee.type==="number"&&W.memoizedProps.value!=null&&Vf(ee,"number",ee.value)}switch(Ye=W?Si(W):window,r){case"focusin":(Wx(Ye)||Ye.contentEditable==="true")&&(ss=Ye,th=W,Di=null);break;case"focusout":Di=th=ss=null;break;case"mousedown":nh=!0;break;case"contextmenu":case"mouseup":case"dragend":nh=!1,r0(he,i,oe);break;case"selectionchange":if(mk)break;case"keydown":case"keyup":r0(he,i,oe)}var ke;if(Zf)e:{switch(r){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else os?$x(r,i)&&(_e="onCompositionEnd"):r==="keydown"&&i.keyCode===229&&(_e="onCompositionStart");_e&&(Ux&&i.locale!=="ko"&&(os||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&os&&(ke=Lx()):(Ca=oe,Wf="value"in Ca?Ca.value:Ca.textContent,os=!0)),Ye=Eu(W,_e),0<Ye.length&&(_e=new Fx(_e,r,null,i,oe),he.push({event:_e,listeners:Ye}),ke?_e.data=ke:(ke=Yx(i),ke!==null&&(_e.data=ke)))),(ke=rk?ak(r,i):ok(r,i))&&(_e=Eu(W,"onBeforeInput"),0<_e.length&&(Ye=new Fx("onBeforeInput","beforeinput",null,i,oe),he.push({event:Ye,listeners:_e}),Ye.data=ke)),Kk(he,r,W,i,oe)}yb(he,o)})}function ol(r,o,i){return{instance:r,listener:o,currentTarget:i}}function Eu(r,o){for(var i=o+"Capture",d=[];r!==null;){var p=r,y=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=Ei(r,i),p!=null&&d.unshift(ol(r,p,y)),p=Ei(r,o),p!=null&&d.push(ol(r,p,y))),r=r.return}return d}function As(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function wb(r,o,i,d,p){for(var y=o._reactName,C=[];i!==null&&i!==d;){var R=i,B=R.alternate,W=R.stateNode;if(R=R.tag,B!==null&&B===d)break;R!==5&&R!==26&&R!==27||W===null||(B=W,p?(W=Ei(i,y),W!=null&&C.unshift(ol(i,W,B))):p||(W=Ei(i,y),W!=null&&C.push(ol(i,W,B)))),i=i.return}C.length!==0&&r.push({event:o,listeners:C})}var eD=/\r\n?/g,tD=/\u0000|\uFFFD/g;function Sb(r){return(typeof r=="string"?r:""+r).replace(eD,` 57`).replace(tD,"")}function Eb(r,o){return o=Sb(o),Sb(r)===o}function Cu(){}function ot(r,o,i,d,p,y){switch(i){case"children":typeof d=="string"?o==="body"||o==="textarea"&&d===""||ns(r,d):(typeof d=="number"||typeof d=="bigint")&&o!=="body"&&ns(r,""+d);break;case"className":Rc(r,"class",d);break;case"tabIndex":Rc(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Rc(r,i,d);break;case"style":Ox(r,d,y);break;case"data":if(o!=="object"){Rc(r,"data",d);break}case"src":case"href":if(d===""&&(o!=="a"||i!=="href")){r.removeAttribute(i);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(i);break}d=Pc(""+d),r.setAttribute(i,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(i==="formAction"?(o!=="input"&&ot(r,o,"name",p.name,p,null),ot(r,o,"formEncType",p.formEncType,p,null),ot(r,o,"formMethod",p.formMethod,p,null),ot(r,o,"formTarget",p.formTarget,p,null)):(ot(r,o,"encType",p.encType,p,null),ot(r,o,"method",p.method,p,null),ot(r,o,"target",p.target,p,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(i);break}d=Pc(""+d),r.setAttribute(i,d);break;case"onClick":d!=null&&(r.onclick=Cu);break;case"onScroll":d!=null&&Xe("scroll",r);break;case"onScrollEnd":d!=null&&Xe("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(i=d.__html,i!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=i}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}i=Pc(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(i,""+d):r.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
57ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(i,""):r.removeAttribute(i);break;case"capture":case"download":d===!0?r.setAttribute(i,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(i,d):r.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(i,d):r.removeAttribute(i);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(i):r.setAttribute(i,d);break;case"popover":Xe("beforetoggle",r),Xe("toggle",r),Dc(r,"popover",d);break;case"xlinkActuate":Kr(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Kr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Kr(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Kr(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Kr(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Kr(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Kr(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Kr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Kr(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Dc(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=kM.get(i)||i,Dc(r,i,d))}}function jm(r,o,i,d,p,y){switch(i){case"style":Ox(r,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(i=d.__html,i!=null){if(p.children!=null)throw Error(a(60));r.innerHTML=i}}break;case"children":typeof d=="string"?ns(r,d):(typeof d=="number"||typeof d=="bigint")&&ns(r,""+d);break;case"onScroll":d!=null&&Xe("scroll",r);break;case"onScrollEnd":d!=null&&Xe("scrollend",r);break;case"onClick":d!=null&&(r.onclick=Cu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cx.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(p=i.endsWith("Capture"),o=i.slice(2,p?i.length-7:void 0),y=r[Rn]||null,y=y!=null?y[i]:null,typeof y=="function"&&r.removeEventListener(o,y,p),typeof d=="function")){typeof y!="function"&&y!==null&&(i in r?r[i]=null:r.hasAttribute(i)&&r.removeAttribute(i)),r.addEventListener(o,d,p);break e}i in r?r[i]=d:d===!0?r.setAttribute(i,""):Dc(r,i,d)}}}function ln(r,o,i){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",r),Xe("load",r);var d=!1,p=!1,y;for(y in i)if(i.hasOwnProperty(y)){var C=i[y];if(C!=null)switch(y){case"src":d=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,o));default:ot(r,o,y,C,i,null)}}p&&ot(r,o,"srcSet",i.srcSet,i,null),d&&ot(r,o,"src",i.src,i,null);return;case"input":Xe("invalid",r);var R=y=C=p=null,B=null,W=null;for(d in i)if(i.hasOwnProperty(d)){var oe=i[d];if(oe!=null)switch(d){case"name":p=oe;break;case"type":C=oe;break;case"checked":B=oe;break;case"defaultChecked":W=oe;break;case"value":y=oe;break;case"defaultValue":R=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(a(137,o));break;default:ot(r,o,d,oe,i,null)}}Mx(r,y,R,B,W,C,p,!1),Oc(r);return;case"select":Xe("invalid",r),d=C=y=null;for(p in i)if(i.hasOwnProperty(p)&&(R=i[p],R!=null))switch(p){case"value":y=R;break;case"defaultValue":C=R;break;case"multiple":d=R;default:ot(r,o,p,R,i,null)}o=y,i=C,r.multiple=!!d,o!=null?ts(r,!!d,o,!1):i!=null&&ts(r,!!d,i,!0);return;case"textarea":Xe("invalid",r),y=p=d=null;for(C in i)if(i.hasOwnProperty(C)&&(R=i[C],R!=null))switch(C){case"value":d=R;break;case"defaultValue":p=R;break;case"children":y=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(a(91));break;default:ot(r,o,C,R,i,null)}Dx(r,d,p,y),Oc(r);return;case"option":for(B in i)if(i.hasOwnProperty(B)&&(d=i[B],d!=null))switch(B){case"selected":r.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ot(r,o,B,d,i,null)}return;case"dialog":Xe("cancel",r),Xe("close",r);break;case"iframe":case"object":Xe("load",r);break;case"video":case"audio":for(d=0;d<al.length;d++)Xe(al[d],r);break;case"image":Xe("error",r),Xe("load",r);break;case"details":Xe("toggle",r);break;case"embed":case"source":case"link":Xe("error",r),Xe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in i)if(i.hasOwnProperty(W)&&(d=i[W],d!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,o));default:ot(r,o,W,d,i,null)}return;default:if(Uf(o)){for(oe in i)i.hasOwnProperty(oe)&&(d=i[oe],d!==void 0&&jm(r,o,oe,d,i,void 0));return}}for(R in i)i.hasOwnProperty(R)&&(d=i[R],d!=null&&ot(r,o,R,d,i,null))}function nD(r,o,i,d){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,C=null,R=null,B=null,W=null,oe=null;for(ae in i){var he=i[ae];if(i.hasOwnProperty(ae)&&he!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":B=he;default:d.hasOwnProperty(ae)||ot(r,o,ae,null,d,he)}}for(var ee in d){var ae=d[ee];if(he=i[ee],d.hasOwnProperty(ee)&&(ae!=null||he!=null))switch(ee){case"type":y=ae;break;case"name":p=ae;break;case"checked":W=ae;break;
vendor: 5,051 bytes, line 57
57case"defaultChecked":oe=ae;break;case"value":C=ae;break;case"defaultValue":R=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(a(137,o));break;default:ae!==he&&ot(r,o,ee,ae,d,he)}}Ff(r,C,R,B,W,oe,y,p);return;case"select":ae=C=R=ee=null;for(y in i)if(B=i[y],i.hasOwnProperty(y)&&B!=null)switch(y){case"value":break;case"multiple":ae=B;default:d.hasOwnProperty(y)||ot(r,o,y,null,d,B)}for(p in d)if(y=d[p],B=i[p],d.hasOwnProperty(p)&&(y!=null||B!=null))switch(p){case"value":ee=y;break;case"defaultValue":R=y;break;case"multiple":C=y;default:y!==B&&ot(r,o,p,y,d,B)}o=R,i=C,d=ae,ee!=null?ts(r,!!i,ee,!1):!!d!=!!i&&(o!=null?ts(r,!!i,o,!0):ts(r,!!i,i?[]:"",!1));return;case"textarea":ae=ee=null;for(R in i)if(p=i[R],i.hasOwnProperty(R)&&p!=null&&!d.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:ot(r,o,R,null,d,p)}for(C in d)if(p=d[C],y=i[C],d.hasOwnProperty(C)&&(p!=null||y!=null))switch(C){case"value":ee=p;break;case"defaultValue":ae=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(a(91));break;default:p!==y&&ot(r,o,C,p,d,y)}kx(r,ee,ae);return;case"option":for(var Me in i)if(ee=i[Me],i.hasOwnProperty(Me)&&ee!=null&&!d.hasOwnProperty(Me))switch(Me){case"selected":r.selected=!1;break;default:ot(r,o,Me,null,d,ee)}for(B in d)if(ee=d[B],ae=i[B],d.hasOwnProperty(B)&&ee!==ae&&(ee!=null||ae!=null))switch(B){case"selected":r.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:ot(r,o,B,ee,d,ae)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Be in i)ee=i[Be],i.hasOwnProperty(Be)&&ee!=null&&!d.hasOwnProperty(Be)&&ot(r,o,Be,null,d,ee);for(W in d)if(ee=d[W],ae=i[W],d.hasOwnProperty(W)&&ee!==ae&&(ee!=null||ae!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(a(137,o));break;default:ot(r,o,W,ee,d,ae)}return;default:if(Uf(o)){for(var Tt in i)ee=i[Tt],i.hasOwnProperty(Tt)&&ee!==void 0&&!d.hasOwnProperty(Tt)&&jm(r,o,Tt,void 0,d,ee);for(oe in d)ee=d[oe],ae=i[oe],!d.hasOwnProperty(oe)||ee===ae||ee===void 0&&ae===void 0||jm(r,o,oe,ee,d,ae);return}}for(var q in i)ee=i[q],i.hasOwnProperty(q)&&ee!=null&&!d.hasOwnProperty(q)&&ot(r,o,q,null,d,ee);for(he in d)ee=d[he],ae=i[he],!d.hasOwnProperty(he)||ee===ae||ee==null&&ae==null||ot(r,o,he,ee,d,ae)}var Nm=null,Tm=null;function ju(r){return r.nodeType===9?r:r.ownerDocument}function Cb(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jb(r,o){if(r===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&o==="foreignObject"?0:r}function Am(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Mm=null;function rD(){var r=window.event;return r&&r.type==="popstate"?r===Mm?!1:(Mm=r,!0):(Mm=null,!1)}var Nb=typeof setTimeout=="function"?setTimeout:void 0,aD=typeof clearTimeout=="function"?clearTimeout:void 0,Tb=typeof Promise=="function"?Promise:void 0,oD=typeof queueMicrotask=="function"?queueMicrotask:typeof Tb<"u"?function(r){return Tb.resolve(null).then(r).catch(sD)}:Nb;function sD(r){setTimeout(function(){throw r})}function km(r,o){var i=o,d=0;do{var p=i.nextSibling;if(r.removeChild(i),p&&p.nodeType===8)if(i=p.data,i==="/$"){if(d===0){r.removeChild(p),hl(o);return}d--}else i!=="$"&&i!=="$?"&&i!=="$!"||d++;i=p}while(i);hl(o)}function Dm(r){var o=r.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var i=o;switch(o=o.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Dm(i),Bf(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}r.removeChild(i)}}function iD(r,o,i,d){for(;r.nodeType===1;){var p=i;if(r.nodeName.toLowerCase()!==o.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[wi])switch(o){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(y=r.getAttribute("rel"),y==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(y!==p.rel||r.getAttribute("href")!==(p.href==null?null:p.href)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||r.getAttribute("title")!==(p.title==null?null:p.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(y=r.getAttribute("src"),(y!==(p.src==null?null:p.src)||r.getAttribute("type")!==(p.type==null?null:p.type)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(o==="input"&&r.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&r.getAttribute("name")===y)return r}else return r;if(r=vr(r.nextSibling),r===null)break}return null}
vendor: 19,005 bytes, line 57
57function lD(r,o,i){if(o==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=vr(r.nextSibling),r===null))return null;return r}function vr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return r}function Ab(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var i=r.data;if(i==="$"||i==="$!"||i==="$?"){if(o===0)return r;o--}else i==="/$"&&o++}r=r.previousSibling}return null}function Mb(r,o,i){switch(o=ju(i),r){case"html":if(r=o.documentElement,!r)throw Error(a(452));return r;case"head":if(r=o.head,!r)throw Error(a(453));return r;case"body":if(r=o.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}var sr=new Map,kb=new Set;function Nu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.ownerDocument}var da=X.d;X.d={f:cD,r:uD,D:dD,C:fD,L:hD,m:mD,X:gD,S:pD,M:vD};function cD(){var r=da.f(),o=xu();return r||o}function uD(r){var o=Qo(r);o!==null&&o.tag===5&&o.type==="form"?ry(o):da.r(r)}var Ms=typeof document>"u"?null:document;function Db(r,o,i){var d=Ms;if(d&&typeof o=="string"&&o){var p=Kn(o);p='link[rel="'+r+'"][href="'+p+'"]',typeof i=="string"&&(p+='[crossorigin="'+i+'"]'),kb.has(p)||(kb.add(p),r={rel:r,crossOrigin:i,href:o},d.querySelector(p)===null&&(o=d.createElement("link"),ln(o,"link",r),Kt(o),d.head.appendChild(o)))}}function dD(r){da.D(r),Db("dns-prefetch",r,null)}function fD(r,o){da.C(r,o),Db("preconnect",r,o)}function hD(r,o,i){da.L(r,o,i);var d=Ms;if(d&&r&&o){var p='link[rel="preload"][as="'+Kn(o)+'"]';o==="image"&&i&&i.imageSrcSet?(p+='[imagesrcset="'+Kn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(p+='[imagesizes="'+Kn(i.imageSizes)+'"]')):p+='[href="'+Kn(r)+'"]';var y=p;switch(o){case"style":y=ks(r);break;case"script":y=Ds(r)}sr.has(y)||(r=I({rel:"preload",href:o==="image"&&i&&i.imageSrcSet?void 0:r,as:o},i),sr.set(y,r),d.querySelector(p)!==null||o==="style"&&d.querySelector(sl(y))||o==="script"&&d.querySelector(il(y))||(o=d.createElement("link"),ln(o,"link",r),Kt(o),d.head.appendChild(o)))}}function mD(r,o){da.m(r,o);var i=Ms;if(i&&r){var d=o&&typeof o.as=="string"?o.as:"script",p='link[rel="modulepreload"][as="'+Kn(d)+'"][href="'+Kn(r)+'"]',y=p;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ds(r)}if(!sr.has(y)&&(r=I({rel:"modulepreload",href:r},o),sr.set(y,r),i.querySelector(p)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(il(y)))return}d=i.createElement("link"),ln(d,"link",r),Kt(d),i.head.appendChild(d)}}}function pD(r,o,i){da.S(r,o,i);var d=Ms;if(d&&r){var p=Jo(d).hoistableStyles,y=ks(r);o=o||"default";var C=p.get(y);if(!C){var R={loading:0,preload:null};if(C=d.querySelector(sl(y)))R.loading=5;else{r=I({rel:"stylesheet",href:r,"data-precedence":o},i),(i=sr.get(y))&&Rm(r,i);var B=C=d.createElement("link");Kt(B),ln(B,"link",r),B._p=new Promise(function(W,oe){B.onload=W,B.onerror=oe}),B.addEventListener("load",function(){R.loading|=1}),B.addEventListener("error",function(){R.loading|=2}),R.loading|=4,Tu(C,o,d)}C={type:"stylesheet",instance:C,count:1,state:R},p.set(y,C)}}}function gD(r,o){da.X(r,o);var i=Ms;if(i&&r){var d=Jo(i).hoistableScripts,p=Ds(r),y=d.get(p);y||(y=i.querySelector(il(p)),y||(r=I({src:r,async:!0},o),(o=sr.get(p))&&Om(r,o),y=i.createElement("script"),Kt(y),ln(y,"link",r),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(p,y))}}function vD(r,o){da.M(r,o);var i=Ms;if(i&&r){var d=Jo(i).hoistableScripts,p=Ds(r),y=d.get(p);y||(y=i.querySelector(il(p)),y||(r=I({src:r,async:!0,type:"module"},o),(o=sr.get(p))&&Om(r,o),y=i.createElement("script"),Kt(y),ln(y,"link",r),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(p,y))}}function Rb(r,o,i,d){var p=(p=qe.current)?Nu(p):null;if(!p)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(o=ks(i.href),i=Jo(p).hoistableStyles,d=i.get(o),d||(d={type:"style",instance:null,count:0,state:null},i.set(o,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){r=ks(i.href);var y=Jo(p).hoistableStyles,C=y.get(r);if(C||(p=p.ownerDocument||p,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,C),(y=p.querySelector(sl(r)))&&!y._p&&(C.instance=y,C.state.loading=5),sr.has(r)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},sr.set(r,i),y||xD(p,r,i,C.state))),o&&d===null)throw Error(a(528,""));return C}if(o&&d!==null)throw Error(a(529,""));return null;case"script":return o=i.async,i=i.src,typeof i=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Ds(i),i=Jo(p).hoistableScripts,d=i.get(o),d||(d={type:"script",instance:null,count:0,state:null},i.set(o,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function ks(r){return'href="'+Kn(r)+'"'}function sl(r){return'link[rel="stylesheet"]['+r+"]"}function Ob(r){return I({},r,{"data-precedence":r.precedence,precedence:null})}function xD(r,o,i,d){r.querySelector('link[rel="preload"][as="style"]['+o+"]")?d.loading=1:(o=r.createElement("link"),d.preload=o,o.addEventListener("load",function(){return d.loading|=1}),o.addEventListener("error",function(){return d.loading|=2}),ln(o,"link",i),Kt(o),r.head.appendChild(o))}function Ds(r){return'[src="'+Kn(r)+'"]'}function il(r){return"script[async]"+r}function _b(r,o,i){if(o.count++,o.instance===null)switch(o.type){case"style":var d=r.querySelector('style[data-href~="'+Kn(i.href)+'"]');if(d)return o.instance=d,Kt(d),d;var p=I({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),Kt(d),ln(d,"style",p),Tu(d,i.precedence,r),o.instance=d;case"stylesheet":p=ks(i.href);var y=r.querySelector(sl(p));if(y)return o.state.loading|=4,o.instance=y,Kt(y),y;d=Ob(i),(p=sr.get(p))&&Rm(d,p),y=(r.ownerDocument||r).createElement("link"),Kt(y);var C=y;return C._p=new Promise(function(R,B){C.onload=R,C.onerror=B}),ln(y,"link",d),o.state.loading|=4,Tu(y,i.precedence,r),o.instance=y;case"script":return y=Ds(i.src),(p=r.querySelector(il(y)))?(o.instance=p,Kt(p),p):(d=i,(p=sr.get(y))&&(d=I({},i),Om(d,p)),r=r.ownerDocument||r,p=r.createElement("script"),Kt(p),ln(p,"link",d),r.head.appendChild(p),o.instance=p);case"void":return null;default:throw Error(a(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(d=o.instance,o.state.loading|=4,Tu(d,i.precedence,r));return o.instance}function Tu(r,o,i){for(var d=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,y=p,C=0;C<d.length;C++){var R=d[C];if(R.dataset.precedence===o)y=R;else if(y!==p)break}y?y.parentNode.insertBefore(r,y.nextSibling):(o=i.nodeType===9?i.head:i,o.insertBefore(r,o.firstChild))}function Rm(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.title==null&&(r.title=o.title)}function Om(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.integrity==null&&(r.integrity=o.integrity)}var Au=null;function Pb(r,o,i){if(Au===null){var d=new Map,p=Au=new Map;p.set(i,d)}else p=Au,d=p.get(i),d||(d=new Map,p.set(i,d));if(d.has(r))return d;for(d.set(r,null),i=i.getElementsByTagName(r),p=0;p<i.length;p++){var y=i[p];if(!(y[wi]||y[zt]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var C=y.getAttribute(o)||"";C=r+C;var R=d.get(C);R?R.push(y):d.set(C,[y])}}return d}function Lb(r,o,i){r=r.ownerDocument||r,r.head.insertBefore(i,o==="title"?r.querySelector("head > title"):null)}function yD(r,o,i){if(i===1||o.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return r=o.disabled,typeof o.precedence=="string"&&r==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function zb(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}var ll=null;function bD(){}function wD(r,o,i){if(ll===null)throw Error(a(475));var d=ll;if(o.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=ks(i.href),y=r.querySelector(sl(p));if(y){r=y._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(d.count++,d=Mu.bind(d),r.then(d,d)),o.state.loading|=4,o.instance=y,Kt(y);return}y=r.ownerDocument||r,i=Ob(i),(p=sr.get(p))&&Rm(i,p),y=y.createElement("link"),Kt(y);var C=y;C._p=new Promise(function(R,B){C.onload=R,C.onerror=B}),ln(y,"link",i),o.instance=y}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(d.count++,o=Mu.bind(d),r.addEventListener("load",o),r.addEventListener("error",o))}}function SD(){if(ll===null)throw Error(a(475));var r=ll;return r.stylesheets&&r.count===0&&_m(r,r.stylesheets),0<r.count?function(o){var i=setTimeout(function(){if(r.stylesheets&&_m(r,r.stylesheets),r.unsuspend){var d=r.unsuspend;r.unsuspend=null,d()}},6e4);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(i)}}:null}function Mu(){if(this.count--,this.count===0){if(this.stylesheets)_m(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var ku=null;function _m(r,o){r.stylesheets=null,r.unsuspend!==null&&(r.count++,ku=new Map,o.forEach(ED,r),ku=null,Mu.call(r))}function ED(r,o){if(!(o.state.loading&4)){var i=ku.get(r);if(i)var d=i.get(null);else{i=new Map,ku.set(r,i);for(var p=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var C=p[y];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(i.set(C.dataset.precedence,C),d=C)}d&&i.set(null,d)}p=o.instance,C=p.getAttribute("data-precedence"),y=i.get(C)||d,y===d&&i.set(null,p),i.set(C,p),this.count++,d=Mu.bind(this),p.addEventListener("load",d),p.addEventListener("error",d),y?y.parentNode.insertBefore(p,y.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(p,r.firstChild)),o.state.loading|=4}}var cl={$$typeof:w,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function CD(r,o,i,d,p,y,C,R){this.tag=1,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ue(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ue(0),this.hiddenUpdates=Ue(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Bb(r,o,i,d,p,y,C,R,B,W,oe,he){return r=new CD(r,o,i,C,R,B,W,he),o=1,y===!0&&(o|=24),y=ar(3,null,null,o),r.current=y,y.stateNode=r,o=fh(),o.refCount++,r.pooledCache=o,o.refCount++,y.memoizedState={element:d,isDehydrated:i,cache:o},Wh(y),r}function Fb(r){return r?(r=cs,r):cs}function Vb(r,o,i,d,p,y){p=Fb(p),d.context===null?d.context=p:d.pendingContext=p,d=Ra(o),d.payload={element:i},y=y===void 0?null:y,y!==null&&(d.callback=y),i=Oa(r,d,o),i!==null&&(Nn(i,r,o),Wi(i,r,o))}function Ub(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var i=r.retryLane;r.retryLane=i!==0&&i<o?i:o}}function Pm(r,o){Ub(r,o),(r=r.alternate)&&Ub(r,o)}function Ib(r){if(r.tag===13){var o=ja(r,67108864);o!==null&&Nn(o,r,67108864),Pm(r,67108864)}}var Du=!0;function jD(r,o,i,d){var p=L.T;L.T=null;var y=X.p;try{X.p=2,Lm(r,o,i,d)}finally{X.p=y,L.T=p}}function ND(r,o,i,d){var p=L.T;L.T=null;var y=X.p;try{X.p=8,Lm(r,o,i,d)}finally{X.p=y,L.T=p}}function Lm(r,o,i,d){if(Du){var p=zm(d);if(p===null)Cm(r,o,d,Ru,i),$b(r,d);else if(AD(p,r,o,i,d))d.stopPropagation();else if($b(r,d),o&4&&-1<TD.indexOf(r)){for(;p!==null;){var y=Qo(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var C=Ae(y.pendingLanes);if(C!==0){var R=y;for(R.pendingLanes|=2,R.entangledLanes|=2;C;){var B=1<<31-Ot(C);R.entanglements[1]|=B,C&=~B}Dr(y),(wt&6)===0&&(pu=kt()+500,rl(0))}}break;case 13:R=ja(y,2),R!==null&&Nn(R,y,2),xu(),Pm(y,2)}if(y=zm(d),y===null&&Cm(r,o,d,Ru,i),y===p)break;p=y}p!==null&&d.stopPropagation()}else Cm(r,o,d,null,i)}}function zm(r){return r=Hf(r),Bm(r)}var Ru=null;function Bm(r){if(Ru=null,r=fo(r),r!==null){var o=V(r);if(o===null)r=null;else{var i=o.tag;if(i===13){if(r=J(o),r!==null)return r;r=null}else if(i===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}return Ru=r,null}function Hb(r){switch(r){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Nr()){case Ln:return 2;case En:return 8;case Dt:case Cn:return 32;case rn:return 268435456;default:return 32}default:return 32}}var Fm=!1,Va=null,Ua=null,Ia=null,ul=new Map,dl=new Map,Ha=[],TD="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".split(" ");function $b(r,o){switch(r){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":ul.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(o.pointerId)}}function fl(r,o,i,d,p,y){return r===null||r.nativeEvent!==y?(r={blockedOn:o,domEventName:i,eventSystemFlags:d,nativeEvent:y,targetContainers:[p]},o!==null&&(o=Qo(o),o!==null&&Ib(o)),r):(r.eventSystemFlags|=d,o=r.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),r)}function AD(r,o,i,d,p){switch(o){case"focusin":return Va=fl(Va,r,o,i,d,p),!0;case"dragenter":return Ua=fl(Ua,r,o,i,d,p),!0;case"mouseover":return Ia=fl(Ia,r,o,i,d,p),!0;case"pointerover":var y=p.pointerId;return ul.set(y,fl(ul.get(y)||null,r,o,i,d,p)),!0;case"gotpointercapture":return y=p.pointerId,dl.set(y,fl(dl.get(y)||null,r,o,i,d,p)),!0}return!1}function Yb(r){var o=fo(r.target);if(o!==null){var i=V(o);if(i!==null){if(o=i.tag,o===13){if(o=J(i),o!==null){r.blockedOn=o,hr(r.priority,function(){if(i.tag===13){var d=In(),p=ja(i,d);p!==null&&Nn(p,i,d),Pm(i,d)}});return}}else if(o===3&&i.stateNode.current.memoizedState.isDehydrated){r.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ou(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var i=zm(r.nativeEvent);if(i===null){i=r.nativeEvent;var d=new i.constructor(i.type,i);If=d,i.target.dispatchEvent(d),If=null}else return o=Qo(i),o!==null&&Ib(o),r.blockedOn=i,!1;o.shift()}return!0}function Wb(r,o,i){Ou(r)&&i.delete(o)}function MD(){Fm=!1,Va!==null&&Ou(Va)&&(Va=null),Ua!==null&&Ou(Ua)&&(Ua=null),Ia!==null&&Ou(Ia)&&(Ia=null),ul.forEach(Wb),dl.forEach(Wb)}function _u(r,o){r.blockedOn===o&&(r.blockedOn=null,Fm||(Fm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,MD)))}var Pu=null;function Gb(r){Pu!==r&&(Pu=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pu===r&&(Pu=null);for(var o=0;o<r.length;o+=3){var i=r[o],d=r[o+1],p=r[o+2];if(typeof d!="function"){if(Bm(d||i)===null)continue;break}var y=Qo(i);y!==null&&(r.splice(o,3),o-=3,Ah(y,{pending:!0,data:p,method:i.method,action:d},d,p))}}))}function hl(r){function o(B){return _u(B,r)}Va!==null&&_u(Va,r),Ua!==null&&_u(Ua,r),Ia!==null&&_u(Ia,r),ul.forEach(o),dl.forEach(o);for(var i=0;i<Ha.length;i++){var d=Ha[i];d.blockedOn===r&&(d.blockedOn=null)}for(;0<Ha.length&&(i=Ha[0],i.blockedOn===null);)Yb(i),i.blockedOn===null&&Ha.shift();if(i=(r.ownerDocument||r).$$reactFormReplay,i!=null)for(d=0;d<i.length;d+=3){var p=i[d],y=i[d+1],C=p[Rn]||null;if(typeof y=="function")C||Gb(i);else if(C){var R=null;if(y&&y.hasAttribute("formAction")){if(p=y,C=y[Rn]||null)R=C.formAction;else if(Bm(p)!==null)continue}else R=C.action;typeof R=="function"?i[d+1]=R:(i.splice(d,3),d-=3),Gb(i)}}}function Vm(r){this._internalRoot=r}Lu.prototype.render=Vm.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(a(409));var i=o.current,d=In();Vb(i,d,r,o,null,null)},Lu.prototype.unmount=Vm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;r.tag===0&&Ns(),Vb(r.current,2,null,r,null,null),xu(),o[Zo]=null}};function Lu(r){this._internalRoot=r}Lu.prototype.unstable_scheduleHydration=function(r){if(r){var o=mn();r={blockedOn:null,target:r,priority:o};for(var i=0;i<Ha.length&&o!==0&&o<Ha[i].priority;i++);Ha.splice(i,0,r),i===0&&Yb(r)}};var qb=t.version;if(qb!=="19.0.0")throw Error(a(527,qb,"19.0.0"));X.findDOMNode=function(r){var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=te(o),r=r!==null?Y(r):null,r=r===null?null:r.stateNode,r};var kD={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:L,findFiberByHostInstance:fo,reconcilerVersion:"19.0.0"};
vendor: 8,256 bytes, line 57
57if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{kn=zu.inject(kD),Rt=zu}catch{}}return gl.createRoot=function(r,o){if(!s(r))throw Error(a(299));var i=!1,d="",p=dy,y=fy,C=hy,R=null;return o!=null&&(o.unstable_strictMode===!0&&(i=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=o.onUncaughtError),o.onCaughtError!==void 0&&(y=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(R=o.unstable_transitionCallbacks)),o=Bb(r,1,!1,null,null,i,d,p,y,C,R,null),r[Zo]=o.current,Em(r.nodeType===8?r.parentNode:r),new Vm(o)},gl.hydrateRoot=function(r,o,i){if(!s(r))throw Error(a(299));var d=!1,p="",y=dy,C=fy,R=hy,B=null,W=null;return i!=null&&(i.unstable_strictMode===!0&&(d=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(y=i.onUncaughtError),i.onCaughtError!==void 0&&(C=i.onCaughtError),i.onRecoverableError!==void 0&&(R=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(B=i.unstable_transitionCallbacks),i.formState!==void 0&&(W=i.formState)),o=Bb(r,1,!0,o,i??null,d,p,y,C,R,B,W),o.context=Fb(null),i=o.current,d=In(),p=Ra(d),p.callback=null,Oa(i,p,d),o.current.lanes=d,Le(o,d),Dr(o),r[Zo]=o.current,Em(r),new Lu(o)},gl.version="19.0.0",gl}var ww;function d_(){if(ww)return tp.exports;ww=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(),tp.exports=u_(),tp.exports}var f_=d_(),Pr=RE();const OE=t2(Pr);function h_(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 m_=e=>{switch(e){case"success":return v_;case"info":return y_;case"warning":return x_;case"error":return b_;default:return null}},p_=Array(12).fill(0),g_=({visible:e,className:t})=>z.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},z.createElement("div",{className:"sonner-spinner"},p_.map((n,a)=>z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),v_=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),x_=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},z.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"})),y_=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),b_=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),w_=z.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"},z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),S_=()=>{const[e,t]=z.useState(document.hidden);return z.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let rg=1;class E_{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:a,...s}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:rg++,u=this.toasts.find(h=>h.id===l),f=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),u?this.toasts=this.toasts.map(h=>h.id===l?(this.publish({...h,...t,id:l,title:a}),{...h,...t,id:l,dismissible:f,title:a}):h):this.addToast({title:a,...s,dismissible:f,id:l}),l},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(a=>a({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 a;n.loading!==void 0&&(a=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let l=a!==void 0,u;const f=s.then(async m=>{if(u=["resolve",m],z.isValidElement(m))l=!1,this.create({id:a,type:"default",message:m});else if(j_(m)&&!m.ok){l=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${m.status}`):n.error,b=typeof n.description=="function"?await n.description(`HTTP error! status: ${m.status}`):n.description,E=typeof g=="object"&&!z.isValidElement(g)?g:{message:g};this.create({id:a,type:"error",description:b,...E})}else if(m instanceof Error){l=!1;const g=typeof n.error=="function"?await n.error(m):n.error,b=typeof n.description=="function"?await n.description(m):n.description,E=typeof g=="object"&&!z.isValidElement(g)?g:{message:g};this.create({id:a,type:"error",description:b,...E})}else if(n.success!==void 0){l=!1;const g=typeof n.success=="function"?await n.success(m):n.success,b=typeof n.description=="function"?await n.description(m):n.description,E=typeof g=="object"&&!z.isValidElement(g)?g:{message:g};this.create({id:a,type:"success",description:b,...E})}}).catch(async m=>{if(u=["reject",m],n.error!==void 0){l=!1;const v=typeof n.error=="function"?await n.error(m):n.error,g=typeof n.description=="function"?await n.description(m):n.description,w=typeof v=="object"&&!z.isValidElement(v)?v:{message:v};this.create({id:a,type:"error",description:g,...w})}}).finally(()=>{l&&(this.dismiss(a),a=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((m,v)=>f.then(()=>u[0]==="reject"?v(u[1]):m(u[1])).catch(v));return typeof a!="string"&&typeof a!="number"?{unwrap:h}:Object.assign(a,{unwrap:h})},this.custom=(t,n)=>{const a=(n==null?void 0:n.id)||rg++;return this.create({jsx:t(a),id:a,...n}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Pn=new E_,C_=(e,t)=>{const n=(t==null?void 0:t.id)||rg++;return Pn.addToast({title:e,...t,id:n}),n},j_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",N_=C_,T_=()=>Pn.toasts,A_=()=>Pn.getActiveToasts(),We=Object.assign(N_,{success:Pn.success,info:Pn.info,warning:Pn.warning,error:Pn.error,custom:Pn.custom,message:Pn.message,promise:Pn.promise,dismiss:Pn.dismiss,loading:Pn.loading},{getHistory:T_,getToasts:A_});h_
vendor: 4,787 bytes, line 57
57("[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;--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}@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;
vendor: 10,086 bytes, line 57
57left: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: 971 bytes, line 57
57Iu(e){return e.label!==void 0}const M_=3,k_="24px",D_="16px",Sw=4e3,R_=356,O_=14,__=45,P_=200;function Rr(...e){return e.filter(Boolean).join(" ")}function L_(e){const[t,n]=e.split("-"),a=[];return t&&a.push(t),n&&a.push(n),a}const z_=e=>{var t,n,a,s,l,u,f,h,m;const{invert:v,toast:g,unstyled:b,interacting:w,setHeights:E,visibleToasts:S,heights:j,index:N,toasts:A,expanded:k,removeToast:T,defaultRichColors:M,closeButton:_,style:O,cancelButtonStyle:D,actionButtonStyle:L,className:I="",descriptionClassName:Z="",duration:ce,position:U,gap:Q,expandByDefault:le,classNames:F,icons:H,closeButtonAriaLabel:V="Close toast"}=e,[J,P]=z.useState(null),[te,Y]=z.useState(null),[G,X]=z.useState(!1),[ne,se]=z.useState(!1),[re,ie]=z.useState(!1),[pe,fe]=z.useState(!1),[je,Ne]=z.useState(!1),[qe,ye]=z.useState(0),[gt,ct]=z.useState(0),vt=z.useRef(g.duration||ce||Sw),hn=z.useRef(null),dt=z.useRef(null),yt=N===0,Sn=N+1<=S,pt=g.type,Mt=g.dismissible!==!1,kt=g.className||"",Nr=g.de
vendor: 10,194 bytes, line 57
57scriptionClassName||"",Ln=z.useMemo(()=>j.findIndex(de=>de.toastId===g.id)||0,[j,g.id]),En=z.useMemo(()=>{var de;return(de=g.closeButton)!=null?de:_},[g.closeButton,_]),Dt=z.useMemo(()=>g.duration||ce||Sw,[g.duration,ce]),Cn=z.useRef(0),rn=z.useRef(0),an=z.useRef(0),It=z.useRef(null),[kn,Rt]=U.split("-"),qn=z.useMemo(()=>j.reduce((de,Oe,Ve)=>Ve>=Ln?de:de+Oe.height,0),[j,Ln]),Ht=S_(),Ot=g.invert||v,zn=pt==="loading";rn.current=z.useMemo(()=>Ln*Q+qn,[Ln,qn]),z.useEffect(()=>{vt.current=Dt},[Dt]),z.useEffect(()=>{X(!0)},[]),z.useEffect(()=>{const de=dt.current;if(de){const Oe=de.getBoundingClientRect().height;return ct(Oe),E(Ve=>[{toastId:g.id,height:Oe,position:g.position},...Ve]),()=>E(Ve=>Ve.filter(ze=>ze.toastId!==g.id))}},[E,g.id]),z.useLayoutEffect(()=>{if(!G)return;const de=dt.current,Oe=de.style.height;de.style.height="auto";const Ve=de.getBoundingClientRect().height;de.style.height=Oe,ct(Ve),E(ze=>ze.find(Ue=>Ue.toastId===g.id)?ze.map(Ue=>Ue.toastId===g.id?{...Ue,height:Ve}:Ue):[{toastId:g.id,height:Ve,position:g.position},...ze])},[G,g.title,g.description,E,g.id,g.jsx,g.action,g.cancel]);const me=z.useCallback(()=>{se(!0),ye(rn.current),E(de=>de.filter(Oe=>Oe.toastId!==g.id)),setTimeout(()=>{T(g)},P_)},[g,T,E,rn]);z.useEffect(()=>{if(g.promise&&pt==="loading"||g.duration===1/0||g.type==="loading")return;let de;return k||w||Ht?(()=>{if(an.current<Cn.current){const ze=new Date().getTime()-Cn.current;vt.current=vt.current-ze}an.current=new Date().getTime()})():(()=>{vt.current!==1/0&&(Cn.current=new Date().getTime(),de=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),me()},vt.current))})(),()=>clearTimeout(de)},[k,w,g,pt,Ht,me]),z.useEffect(()=>{g.delete&&(me(),g.onDismiss==null||g.onDismiss.call(g,g))},[me,g.delete]);function Te(){var de;if(H!=null&&H.loading){var Oe;return z.createElement("div",{className:Rr(F==null?void 0:F.loader,g==null||(Oe=g.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":pt==="loading"},H.loading)}return z.createElement(g_,{className:Rr(F==null?void 0:F.loader,g==null||(de=g.classNames)==null?void 0:de.loader),visible:pt==="loading"})}const xe=g.icon||(H==null?void 0:H[pt])||m_(pt);var ve,Ae;return z.createElement("li",{tabIndex:0,ref:dt,className:Rr(I,kt,F==null?void 0:F.toast,g==null||(t=g.classNames)==null?void 0:t.toast,F==null?void 0:F.default,F==null?void 0:F[pt],g==null||(n=g.classNames)==null?void 0:n[pt]),"data-sonner-toast":"","data-rich-colors":(ve=g.richColors)!=null?ve:M,"data-styled":!(g.jsx||g.unstyled||b),"data-mounted":G,"data-promise":!!g.promise,"data-swiped":je,"data-removed":ne,"data-visible":Sn,"data-y-position":kn,"data-x-position":Rt,"data-index":N,"data-front":yt,"data-swiping":re,"data-dismissible":Mt,"data-type":pt,"data-invert":Ot,"data-swipe-out":pe,"data-swipe-direction":te,"data-expanded":!!(k||le&&G),"data-testid":g.testId,style:{"--index":N,"--toasts-before":N,"--z-index":A.length-N,"--offset":`${ne?qe:rn.current}px`,"--initial-height":le?"auto":`${gt}px`,...O,...g.style},onDragEnd:()=>{ie(!1),P(null),It.current=null},onPointerDown:de=>{de.button!==2&&(zn||!Mt||(hn.current=new Date,ye(rn.current),de.target.setPointerCapture(de.pointerId),de.target.tagName!=="BUTTON"&&(ie(!0),It.current={x:de.clientX,y:de.clientY})))},onPointerUp:()=>{var de,Oe,Ve;if(pe||!Mt)return;It.current=null;const ze=Number(((de=dt.current)==null?void 0:de.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),et=Number(((Oe=dt.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ue=new Date().getTime()-((Ve=hn.current)==null?void 0:Ve.getTime()),Le=J==="x"?ze:et,Lt=Math.abs(Le)/Ue;if(Math.abs(Le)>=__||Lt>.11){ye(rn.current),g.onDismiss==null||g.onDismiss.call(g,g),Y(J==="x"?ze>0?"right":"left":et>0?"down":"up"),me(),fe(!0);return}else{var rt,xt;(rt=dt.current)==null||rt.style.setProperty("--swipe-amount-x","0px"),(xt=dt.current)==null||xt.style.setProperty("--swipe-amount-y","0px")}Ne(!1),ie(!1),P(null)},onPointerMove:de=>{var Oe,Ve,ze;if(!It.current||!Mt||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;const Ue=de.clientY-It.current.y,Le=de.clientX-It.current.x;var Lt;const rt=(Lt=e.swipeDirections)!=null?Lt:L_(U);!J&&(Math.abs(Le)>1||Math.abs(Ue)>1)&&P(Math.abs(Le)>Math.abs(Ue)?"x":"y");let xt={x:0,y:0};const fr=mn=>1/(1.5+Math.abs(mn)/20);if(J==="y"){if(rt.includes("top")||rt.includes("bottom"))if(rt.includes("top")&&Ue<0||rt.includes("bottom")&&Ue>0)xt.y=Ue;else{const mn=Ue*fr(Ue);xt.y=Math.abs(mn)<Math.abs(Ue)?mn:Ue}}else if(J==="x"&&(rt.includes("left")||rt.includes("right")))if(rt.includes("left")&&Le<0||rt.includes("right")&&Le>0)xt.x=Le;else{const mn=Le*fr(Le);xt.x=Math.abs(mn)<Math.abs(Le)?mn:Le}(Math.abs(xt.x)>0||Math.abs(xt.y)>0)&&Ne(!0),(Ve=dt.current)==null||Ve.style.setProperty("--swipe-amount-x",`${xt.x}px`),(ze=dt.current)==null||ze.style.setProperty("--swipe-amount-y",`${xt.y}px`)}},En&&!g.jsx&&pt!=="loading"?z.createElement("button",{"aria-label":V,"data-disabled":zn,"data-close-button":!0,onClick:zn||!Mt?()=>{}:()=>{me(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Rr(F==null?void 0:F.closeButton,g==null||(a=g.classNames)==null?void 0:a.closeButton)},(Ae=H==null?void 0:H.close)!=null?Ae:w_):null,(pt||g.icon||g.promise)&&g.icon!==null&&((H==null?void 0:H[pt])!==null||g.icon)?z.createElement("div",{"data-icon":"",className:Rr(F==null?void 0:F.icon,g==null||(s=g.classNames)==null?void 0:s.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Te():null,g.type!=="loading"?xe:null):null,z.createElement("div",{"data-content":"",className:Rr(F==null?void 0:F.content,g==null||(l=g.classNames)==null?void 0:l.content)},z.createElement("div",{"data-title":"",className:Rr(F==null?void 0:F.title,g==null||(u=g.classNames)==null?void 0:u.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?z.createElement("div",{"data-description":"",className:Rr(Z,Nr,F==null?void 0:F.description,g==null||(f=g.classNames)==null?void 0:f.description)},typeof g.description=="function"?g.description():g.description):null),z.isValidElement(g.cancel)?g.cancel:g.cancel&&Iu(g.cancel)?z.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||D,onClick:de=>{Iu(g.cancel)&&Mt&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,de),me())},className:Rr(F==null?void 0:F.cancelButton,g==null||(h=g.classNames)==null?void 0:h.cancelButton)},g.cancel.label):null,z.isValidElement(g.action)?g.action:g.action&&Iu(g.action)?z.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||L,onClick:de=>{Iu(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,de),!de.defaultPrevented&&me())},className:Rr(F==null?void 0:F.actionButton,g==null||(m=g.classNames)==null?void 0:m.actionButton)},g.action.label):null)};function Ew(){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 B_(e,t){const n={};return[e,t].forEach((a,s)=>{const l=s===1,u=l?"--mobile-offset":"--offset",f=l?D_:k_;function h(m){["top","right","bottom","left"].forEach(v=>{n[`${u}-${v}`]=typeof m=="number"?`${m}px`:m})}typeof a=="number"||typeof a=="string"?h(a):typeof a=="object"?["top","right","bottom","left"].forEach(m=>{a[m]===void 0?n[`${u}-${m}`]=f:n[`${u}-${m}`]=typeof a[m]=="number"?`${a[m]}px`:a[m]}):h(f)}),n}const F_=z.forwardRef(function(t,n){const{id:a,invert:s,position:l="bottom-right",hotkey:u=["altKey","KeyT"],expand:f,closeButton:h,className:m,offset:v,mobileOffset:g,theme:b="light",richColors:w,duration:E,style:S,visibleToasts:j=M_,toastOptions:N,dir:A=Ew(),gap:k=O_,icons:T,containerAriaLabel:M="Notifications"}=t,[_,O]=z.useState([]),D=z.useMemo(()=>a?_.filter(G=>G.toasterId===a):_.filter(G=>!G.toasterId),[_,a]),L=z.useMemo(()=>Array.from(new Set([l].concat(D.filter(G=>G.position).map(G=>G.position)))),[D,l]),[I,Z]=z.useState([]),[ce,U]=z.useState(!1),[Q,le]=z.useState(!1),[F,H]=z.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=z.useRef(null),J=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=z.useRef(null),te=z.useRef(!1),Y=z.useCallback(G=>{O(X=>{var ne;return(ne=X.find(se=>se.id===G.id))!=null&&ne.delete||Pn.dismiss(G.id),X.filter(({id:se})=>se!==G.id)})},[]);return z.useEffect(()=>Pn.subscribe(G=>{if(G.dismiss){requestAnimationFrame(()=>{O(X=>X.map(ne=>ne.id===G.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{OE.flushSync(()=>{O(X=>{const ne=X.findIndex(se=>se.id===G.id);return ne!==-1?[...X.slice(0,ne),{...X[ne],...G},...X.slice(ne+1)]:[G,...X]})})})}),[_]),z.useEffect(()=>{if(b!=="system"){H(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;const G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:X})=>{H(X?"dark":"light")})}catch{G.addListener(({matches:ne})=>{try{H(ne?"dark":"light")}catch(se){console.error(se)}})}},[b]),z.useEffect(()=>{_.length<=1&&U(!1)},[_]),z.useEffect(()=>{const G=X=>{var ne;if(u.every(ie=>X[ie]||X.code===ie)){var re;U(!0),(re=V.current)==null||re.focus()}X.code==="Escape"&&(document.activeElement===V.current||(ne=V.current)!=null&&ne.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[u]),z.useEffect(()=>{if(V.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,te.current=!1)}},[V.current]),z.createElement("section",{ref:n,"aria-label":`${M} ${J}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((G,X)=>{var ne;const[se,re]=G.split("-");return D.length?z.createElement("ol",{key:G,dir:A==="auto"?Ew():A,tabIndex:-1,ref:V,className:m,"data-sonner-toaster":!0,"data-sonner-theme":F,"data-y-position":se,"data-x-position":re,style:{"--front-toast-height":`${((ne=I[0])==null?void 0:ne.height)||0}px`,"--width":`${R_}px`,"--gap":`${k}
57px`,...S,...B_(v,g)},onBlur:ie=>{te.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(te.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||te.current||(te.current=!0,P.current=ie.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{Q||U(!1)},onDragEnd:()=>U(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||le(!0)},onPointerUp:()=>le(!1)},D.filter(ie=>!ie.position&&X===0||ie.position===G).map((ie,pe)=>{var fe,je;return z.createElement(z_,{key:ie.id,icons:T,index:pe,toast:ie,defaultRichColors:w,duration:(fe=N==null?void 0:N.duration)!=null?fe:E,className:N==null?void 0:N.className,descriptionClassName:N==null?void 0:N.descriptionClassName,invert:s,visibleToasts:j,closeButton:(je=N==null?void 0:N.closeButton)!=null?je:h,interacting:Q,position:G,style:N==null?void 0:N.style,unstyled:N==null?void 0:N.unstyled,classNames:N==null?void 0:N.classNames,cancelButtonStyle:N==null?void 0:N.cancelButtonStyle,actionButtonStyle:N==null?void 0:N.actionButtonStyle,closeButtonAriaLabel:N==null?void 0:N.closeButtonAriaLabel,removeToast:Y,toasts:D.filter(Ne=>Ne.position==ie.position),heights:I.filter(Ne=>Ne.position==ie.position),setHeights:Z,expandByDefault:f,gap:k,expanded:ce,swipeDirections:t.swipeDirections})})):null}))});/** 58 * @license lucide-react v0.542.0 - ISC 59 * 60 * This source code is licensed under the ISC license. 61 * See the LICENSE file in the root directory of this source tree. 62 */const V_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),U_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase()),Cw=e=>{const t=U_(e);return t.charAt(0).toUpperCase()+t.slice(1)},_E=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim(),I_=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** 63 * @license lucide-react v0.542.0 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */var H_={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"};/** 68 * @license lucide-react v0.542.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const $_=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:u,...f},h)=>x.createElement("svg",{ref:h,...H_,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:_E("lucide",s),...!l&&!I_(f)&&{"aria-hidden":"true"},...f},[...u.map(([m,v])=>x.createElement(m,v)),...Array.isArray(l)?l:[l]]));/** 73 * @license lucide-react v0.542.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const Re=(e,t)=>{const n=x.forwardRef(({className:a,...s},l)=>x.createElement($_,{ref:l,iconNode:t,className:_E(`lucide-${V_(Cw(e))}`,`lucide-${e}`,a),...s}));return n.displayName=Cw(e),n};/** 78 * @license lucide-react v0.542.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const Y_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],bv=Re("arrow-left",Y_);/** 83 * @license lucide-react v0.542.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const W_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],si=Re("arrow-right",W_);/** 88 * @license lucide-react v0.542.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const G_=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],q_=Re("bell",G_);/** 93 * @license lucide-react v0.542.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const X_=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Kd=Re("camera",X_);/** 98 * @license lucide-react v0.542.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const K_=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],$r=Re("calendar",K_);/** 103 * @license lucide-react v0.542.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const Z_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],PE=Re("check",Z_);/** 108 * @license lucide-react v0.542.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const Q_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wv=Re("chevron-down",Q_);/** 113 * @license lucide-react v0.542.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const J_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}
117]],oo=Re("chevron-left",J_);/** 118 * @license lucide-react v0.542.0 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const e3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ur=Re("chevron-right",e3);/** 123 * @license lucide-react v0.542.0 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const t3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],n3=Re("chevron-up",t3);/** 128 * @license lucide-react v0.542.0 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const r3=[["path",{d:"M10 9h4",key:"u4k05v"}],["path",{d:"M12 7v5",key:"ma6bk"}],["path",{d:"M14 22v-4a2 2 0 0 0-4 0v4",key:"1pdhuj"}],["path",{d:"M18 22V5.618a1 1 0 0 0-.553-.894l-4.553-2.277a2 2 0 0 0-1.788 0L6.553 4.724A1 1 0 0 0 6 5.618V22",key:"1rkokr"}],["path",{d:"m18 7 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.618a1 1 0 0 1 .553-.894L6 7",key:"1w6esw"}]],a3=Re("church",r3);/** 133 * @license lucide-react v0.542.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const o3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],so=Re("circle-check",o3);/** 138 * @license lucide-react v0.542.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const s3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],LE=Re("circle-x",s3);/** 143 * @license lucide-react v0.542.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const i3=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l3=Re("clock",i3);/** 148 * @license lucide-react v0.542.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const c3=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],u3=Re("command",c3);/** 153 * @license lucide-react v0.542.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const d3=[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"u0tga0"}],["path",{d:"m4 8 16-4",key:"16g0ng"}],["path",{d:"m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8",key:"12cejc"}]],f3=Re("cooking-pot",d3);/** 158 * @license lucide-react v0.542.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const h3=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],jw=Re("crown",h3);/** 163 * @license lucide-react v0.542.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const m3=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],p3=Re("ellipsis",m3);/** 168 * @license lucide-react v0.542.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const g3=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],zE=Re("external-link",g3);/** 173 * @license lucide-react v0.542.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const v3=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],x3=Re("eye-off",v3);/** 178 * @license lucide-react v0.542.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const y3=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],b3=Re("eye",y3);/** 183 * @license lucide-react v0.542.0 - ISC 184 * 185 * This source code is licensed under the ISC license. 186 * See the LICENSE file in the root directory of this source tree. 187 */const w3=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],S3=Re("facebook",w3);/** 188 * @license lucide-react v0.542.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 */const E3=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],C3=Re("grip-vertical",E3);/** 193 * @license lucide-react v0.542.0 - ISC 194 * 195 * This source code is licensed under the ISC license. 196 * See the LICENSE file in the root directory of this source tree. 197 */const j3=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2
1970 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],N3=Re("heart-handshake",j3);/** 198 * @license lucide-react v0.542.0 - ISC 199 * 200 * This source code is licensed under the ISC license. 201 * See the LICENSE file in the root directory of this source tree. 202 */const T3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Vo=Re("image",T3);/** 203 * @license lucide-react v0.542.0 - ISC 204 * 205 * This source code is licensed under the ISC license. 206 * See the LICENSE file in the root directory of this source tree. 207 */const A3=[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]],BE=Re("images",A3);/** 208 * @license lucide-react v0.542.0 - ISC 209 * 210 * This source code is licensed under the ISC license. 211 * See the LICENSE file in the root directory of this source tree. 212 */const M3=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Wl=Re("inbox",M3);/** 213 * @license lucide-react v0.542.0 - ISC 214 * 215 * This source code is licensed under the ISC license. 216 * See the LICENSE file in the root directory of this source tree. 217 */const k3=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],D3=Re("instagram",k3);/** 218 * @license lucide-react v0.542.0 - ISC 219 * 220 * This source code is licensed under the ISC license. 221 * See the LICENSE file in the root directory of this source tree. 222 */const R3=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Sv=Re("layout-dashboard",R3);/** 223 * @license lucide-react v0.542.0 - ISC 224 * 225 * This source code is licensed under the ISC license. 226 * See the LICENSE file in the root directory of this source tree. 227 */const O3=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],FE=Re("log-out",O3);/** 228 * @license lucide-react v0.542.0 - ISC 229 * 230 * This source code is licensed under the ISC license. 231 * See the LICENSE file in the root directory of this source tree. 232 */const _3=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],VE=Re("mail",_3);/** 233 * @license lucide-react v0.542.0 - ISC 234 * 235 * This source code is licensed under the ISC license. 236 * See the LICENSE file in the root directory of this source tree. 237 */const P3=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ag=Re("map-pin",P3);/** 238 * @license lucide-react v0.542.0 - ISC 239 * 240 * This source code is licensed under the ISC license. 241 * See the LICENSE file in the root directory of this source tree. 242 */const L3=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],UE=Re("menu",L3);/** 243 * @license lucide-react v0.542.0 - ISC 244 * 245 * This source code is licensed under the ISC license. 246 * See the LICENSE file in the root directory of this source tree. 247 */const z3=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],B3=Re("mic-vocal",z3);/** 248 * @license lucide-react v0.542.0 - ISC 249 * 250 * This source code is licensed under the ISC license. 251 * See the LICENSE file in the root directory of this source tree. 252 */const F3=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],V3=Re("party-popper",F3);/** 253 * @license lucide-react v0.542.0 - ISC 254 * 255 * This source code is licensed under the ISC license. 256 * See the LICENSE file in the root directory of this source tree. 257 */const U3=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],I3=Re("pen-line",U3);/** 258 * @license lucide-react v0.542.0 - ISC 259 * 260 * This source code is licensed under the ISC license. 261 * See the LICENSE file in the root directory of this source tree. 262 */const H3=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],$3=Re("pencil",H3);/** 263 * @license lucide-react v0.542.0 - ISC 264 * 265 * This source code is licensed under the ISC license. 266 * See the LICENSE file in the root directory of this source tree. 267 */const Y3=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
2670 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],bd=Re("phone",Y3);/** 268 * @license lucide-react v0.542.0 - ISC 269 * 270 * This source code is licensed under the ISC license. 271 * See the LICENSE file in the root directory of this source tree. 272 */const W3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Gl=Re("plus",W3);/** 273 * @license lucide-react v0.542.0 - ISC 274 * 275 * This source code is licensed under the ISC license. 276 * See the LICENSE file in the root directory of this source tree. 277 */const G3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lc=Re("search",G3);/** 278 * @license lucide-react v0.542.0 - ISC 279 * 280 * This source code is licensed under the ISC license. 281 * See the LICENSE file in the root directory of this source tree. 282 */const q3=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
282],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],IE=Re("sparkles",q3);/** 283 * @license lucide-react v0.542.0 - ISC 284 * 285 * This source code is licensed under the ISC license. 286 * See the LICENSE file in the root directory of this source tree. 287 */const X3=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],K3=Re("square-check-big",X3);/** 288 * @license lucide-react v0.542.0 - ISC 289 * 290 * This source code is licensed under the ISC license. 291 * See the LICENSE file in the root directory of this source tree. 292 */const Z3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Q3=Re("square",Z3);/** 293 * @license lucide-react v0.542.0 - ISC 294 * 295 * This source code is licensed under the ISC license. 296 * See the LICENSE file in the root directory of this source tree. 297 */const J3=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],e6=Re("star",J3);/** 298 * @license lucide-react v0.542.0 - ISC 299 * 300 * This source code is licensed under the ISC license. 301 * See the LICENSE file in the root directory of this source tree. 302 */const t6=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],n6=Re("sun",t6);/** 303 * @license lucide-react v0.542.0 - ISC 304 * 305 * This source code is licensed under the ISC license. 306 * See the LICENSE file in the root directory of this source tree. 307 */const r6=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],wd=Re("trash-2",r6);/** 308 * @license lucide-react v0.542.0 - ISC 309 * 310 * This source code is licensed under the ISC license. 311 * See the LICENSE file in the root directory of this source tree. 312 */const a6=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],o6=Re("triangle-alert",a6);/** 313 * @license lucide-react v0.542.0 - ISC 314 * 315 * This source code is licensed under the ISC license. 316 * See the LICENSE file in the root directory of this source tree. 317 */const s6=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Zd=Re("upload",s6);/** 318 * @license lucide-react v0.542.0 - ISC 319 * 320 * This source code is licensed under the ISC license. 321 * See the LICENSE file in the root directory of this source tree. 322 */const i6=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],HE=Re("user",i6);/** 323 * @license lucide-react v0.542.0 - ISC 324 * 325 * This source code is licensed under the ISC license. 326 * See the LICENSE file in the root directory of this source tree. 327 */const l6=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Qd=Re("users",l6);/** 328 * @license lucide-react v0.542.0 - ISC 329 * 330 * This source code is licensed under the ISC license. 331 * See the LICENSE file in the root directory of this source tree. 332 */const c6=[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]],$E=Re("utensils-crossed",c6);/** 333 * @license lucide-react v0.542.0 - ISC 334 * 335 * This source code is licensed under the ISC license. 336 * See the LICENSE file in the root directory of this source tree. 337 */const u6=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
337],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yr=Re("x",u6),YE=({onComplete:e})=>{const[t,n]=x.useState("draw");return x.useEffect(()=>{const a=setTimeout(()=>n("text"),900),s=setTimeout(()=>n("exit"),2300),l=setTimeout(()=>e(),3e3);return()=>{clearTimeout(a),clearTimeout(s),clearTimeout(l)}},[e]),c.jsx(va,{children:t!=="exit"?c.jsxs(st.div,{initial:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:"easeInOut"},onClick:e,className:"fixed inset-0 z-[999] flex flex-col items-center justify-center cursor-pointer",style:{background:"#FAF6F0"},"aria-label":"Loading â tap to skip",children:[c.jsx(st.div,{initial:{opacity:0,scale:.6},animate:{opacity:[0,.18,.14],scale:[.6,1.15,1.1]},transition:{duration:1.4,delay:.3,ease:"easeOut"},style:{position:"absolute",width:120,height:120,borderRadius:"50%",border:"1px solid rgba(107,78,48,0.25)",pointerEvents:"none"}}),c.jsx(st.div,{initial:{opacity:0,scale:.7},animate:{opacity:[0,.28,.22],scale:[.7,1,.96]},transition:{duration:1.1,delay:.5,ease:"easeOut"},style:{position:"absolute",width:80,height:80,borderRadius:"50%",border:"1px solid rgba(107,78,48,0.35)",pointerEvents:"none"}}),c.jsx("div",{style:{position:"relative",width:48,height:56,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsxs("svg",{width:"48",height:"56",viewBox:"0 0 48 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx(st.line,{x1:"24",y1:"2",x2:"24",y2:"54",stroke:"#6B4E30",strokeWidth:"2",strokeLinecap:"round",initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{duration:.55,ease:"easeOut",delay:.1}}),c.jsx(st.line,{x1:"6",y1:"18",x2:"42",y2:"18",stroke:"#6B4E30",strokeWidth:"2",strokeLinecap:"round",initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{duration:.38,ease:"easeOut",delay:.58}})]})}),c.jsxs(st.div,{initial:{opacity:0,y:10},animate:{opacity:t==="text"?1:0,y:t==="text"?0:10},transition:{duration:.5,ease:"easeOut"},className:"mt-7 flex flex-col items-center gap-1.5",children:[c.jsx("span",{style:{color:"#2C2218",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:800,fontSize:"0.75rem",letterSpacing:"0.28em",textTransform:"uppercase"},children:"St. Mary's"}),c.jsx("span",{style:{color:"#6B4E30",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:400,fontSize:"0.6rem",letterSpacing:"0.3em",textTransform:"uppercase",opacity:.7},children:"Ukrainian Catholic Church"})]}),c.jsx(st.div,{style:{position:"absolute",bottom:0,left:0,height:2,background:"rgba(107,78,48,0.25)"},initial:{width:"0%"},animate:{width:"100%"},transition:{duration:2.3,ease:"linear",delay:.1}})]},"preloader"):null})},Nw=[{name:"Services",href:"#services"},{name:"Our History",href:"#history"},{name:"Stay Connected",href:"#subscribe",primary:!0}],WE="https://vgbujcuwptvheqijyjbe.supabase.co/storage/v1/object/public/hmac-uploads/uploads/83497b2d-d5b9-4034-8d52-fa61911a1fa8/1774628789288-dc1f3db6/churchinsideimg.jpg",GE="https://vgbujcuwptvheqijyjbe.supabase.co/storage/v1/object/public/hmac-uploads/uploads/83497b2d-d5b9-4034-8d52-fa61911a1fa8/1774629652711-89e14447/churchoutsideimg.jpg",d6="https://vgbujcuwptvheqijyjbe.supabase.co/storage/v1/object/public/hmac-uploads/uploads/83497b2d-d5b9-4034-8d52-fa61911a1fa8/1774630310849-19a02951/churchinsideimg2.jpg",qE="https://vgbujcuwptvheqijyjbe.supabase.co/storage/v1/object/public/hmac-uploads/uploads/83497b2d-d5b9-4034-8d52-fa61911a1fa8/1774630310053-dcfdce09/churchinsideimg3.jpg",ld=[{id:"p1",src:GE,alt:"The wooden Hutsul-style church exterior, built without nails"},{id:"p2",src:WE,alt:"Sanctuary interior with the hand-carved golden iconostas"},{id:"p3",src:d6,alt:"Gilded candelabra beneath the painted inscription on the sanctuary wall"},{id:"p4",src:qE,alt:"Icon of the Resurrection painted inside the church"}],f6=({src:e,onClose:t,closeRef:n,reduceMotion:a})=>(x.useEffect(()=>{var l;(l=n.current)==null||l.focus();const s=u=>{var f;u.key==="Escape"&&t(),u.key==="Tab"&&(u.preventDefault(),(f=n.current)==null||f.focus())};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[t,n]),c.jsxs(st.div,{initial:{opacity:0}
337,animate:{opacity:1},exit:{opacity:0},role:"dialog","aria-modal":"true","aria-label":"Photo viewer",className:"fixed inset-0 z-[200] bg-black/95 flex items-center justify-center p-4",onClick:t,children:[c.jsx("button",{ref:n,onClick:t,"aria-label":"Close photo",className:"fixed top-6 right-6 w-10 h-10 rounded-full bg-white/10 flex items-center justify-center text-white/70 hover:text-white hover:bg-white/20 focus-visible:outline-2 focus-visible:outline-white/80 transition-colors z-10",children:c.jsx(Yr,{size:20})}),c.jsx(st.img,{initial:{scale:a?1:.88,opacity:0},animate:{scale:1,opacity:1},exit:{scale:a?1:.88,opacity:0},transition:a?{duration:.15}:{type:"spring",stiffness:300,damping:28},src:e,alt:"Gallery photo enlarged",className:"max-w-full max-h-[90vh] object-contain rounded-xl shadow-2xl",onClick:s=>s.stopPropagation()})]})),h6=e=>Math.max(1,Math.min(2,Math.floor((e-1)/2))),m6=()=>{const e=ld.length,t=h6(e),[n,a]=x.useState(0),[s,l]=x.useState(!1),[u,f]=x.useState(null),[h,m]=x.useState(!1),v=yv(),g=x.useRef(null),b=x.useRef(null),w=x.useRef(0),E=x.useRef(0),[S,j]=x.useState(560),N=Math.round(S*.643);x.useEffect(()=>{const F=()=>{const H=window.innerWidth;j(H<480?H-48:H<768?H-80:560)};return F(),window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)},[]);const A=(F,H)=>(F%H+H)%H,k=x.useCallback(()=>a(F=>A(F-1,e)),[e]),T=x.useCallback(()=>a(F=>A(F+1,e)),[e]),[M,_]=x.useState(0),O=!v&&!h&&!u;x.useEffect(()=>{if(!O)return;const F=setInterval(T,4500);return()=>clearInterval(F)},[T,O,M]);const D=()=>_(F=>F+1),L=()=>{k(),D()},I=()=>{T(),D()},Z=F=>{a(F),D()},ce=F=>{F.pointerType==="touch"&&m(!0),l(!0),w.current=F.clientX,E.current=0,F.currentTarget.setPointerCapture(F.pointerId)},U=F=>{s&&(E.current=F.clientX-w.current)},Q=()=>{s&&(l(!1),E.current<-50?I():E.current>50&&L(),E.current=0)},le=F=>{let H=F-n;H>e/2&&(H-=e),H<-e/2&&(H+=e);const V=Math.abs(H),J=V>t,P=H*(S*.57),te=-V*120,Y=1-V*.12,G=J?0:1-V*.2,X=Math.max(0,t-V+1);return{tx:P,tz:te,scale:Y,opacity:G,zIndex:X,isActive:H===0,parked:J}};return c.jsxs("div",{className:"relative w-full select-none",style:{height:N+100,overflow:"clip"},onPointerDown:ce,onPointerMove:U,onPointerUp:Q,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onFocusCapture:()=>m(!0),onBlurCapture:()=>m(!1),children:[c.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{perspective:"1400px",perspectiveOrigin:"50% 45%"},children:c.jsx("div",{style:{position:"relative",width:S,height:N},children:ld.map((F,H)=>{const V=le(H);if(!V)return null;const J=P=>{V.isActive?(b.current=P.currentTarget,f(F.src)):(a(H),D())};return c.jsx(st.div,{role:"button",tabIndex:V.isActive?0:-1,"aria-hidden":V.parked||void 0,"aria-label":V.isActive?`${F.alt||"Church photo"} â open larger view`:`Show photo ${H+1}`,onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),J(P))},animate:{x:V.tx,z:V.tz,scale:V.scale,opacity:V.opacity},transition:v?{duration:0}:{type:"spring",stiffness:260,damping:32},className:"focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#6B4E30] rounded-2xl",style:{position:"absolute",top:0,left:0,width:S,height:N,zIndex:V.zIndex,pointerEvents:V.parked?"none":"auto",cursor:V.isActive?"zoom-in":"pointer"},onClick:J,children:c.jsxs("div",{className:"w-full h-full rounded-2xl overflow-hidden",style:{boxShadow:V.isActive?"0 12px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(107,78,48,0.15)":"0 8px 24px rgba(0,0,0,0.12)"},children:[c.jsx("img",{src:F.src,alt:F.alt,className:"w-full h-full object-cover",style:{filter:V.isActive?"none":"brightness(0.75) saturate(0.7)"},draggable:!1}),V.isActive&&c.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-5 flex items-end justify-between rounded-b-2xl",style:{background:"linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%)"},children:[c.jsx("p",{className:"text-white/80 text-sm font-light tracking-wide",children:F.alt}),c.jsxs("span",{className:"text-white/90 text-xs font-medium tracking-widest uppercase flex items-center gap-1.5 shrink-0 ml-4",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M15 3h6v6"}),c.jsx("path",{d:"M9 21H3v-6"}),c.jsx("path",{d:"M21 3l-7 7"}),c.jsx("path",{d:"M3 21l7-7"})]}),c.jsx("span",{children:"Expand"})]})]})]})},F.id)})})}),c.jsx("button",{onClick:L,className:"absolute left-4 md:left-10 top-1/2 -translate-y-1/2 w-11 h-11 rounded-full bg-[#FAF6F0]/80 border border-black/7 flex items-center justify-center text-[#2C2218] hover:border-[#6
337B4E30]/50 hover:text-[#6B4E30] transition-all backdrop-blur-sm z-20","aria-label":"Previous photo",children:c.jsx(oo,{size:20})}),c.jsx("button",{onClick:I,className:"absolute right-4 md:right-10 top-1/2 -translate-y-1/2 w-11 h-11 rounded-full bg-[#FAF6F0]/80 border border-black/7 flex items-center justify-center text-[#2C2218] hover:border-[#6B4E30]/50 hover:text-[#6B4E30] transition-all backdrop-blur-sm z-20","aria-label":"Next photo",children:c.jsx(Ur,{size:20})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 flex justify-center z-20",children:ld.map((F,H)=>c.jsx("button",{onClick:()=>Z(H),"aria-label":`Go to photo ${H+1}`,"aria-current":n===H,className:"flex items-center justify-center p-2 min-w-6 min-h-6",children:c.jsx("span",{className:"transition-all duration-300 rounded-full block",style:{width:n===H?24:8,height:8,background:n===H?"#6B4E30":"rgba(0,0,0,0.15)"}})},F.id))}),c.jsx(va,{children:u&&c.jsx(f6,{onClose:()=>{var F;f(null),(F=b.current)==null||F.focus()},closeRef:g,reduceMotion:!!v,src:u})})]})},p6=()=>{const[e,t]=x.useState(!1),[n,a]=x.useState(!1),s=yv(),[l,u]=x.useState(()=>{try{return sessionStorage.getItem("stm-preloader-seen")==="1"}catch{return!1}}),f=x.useCallback(()=>{try{sessionStorage.setItem("stm-preloader-seen","1")}catch{}u(!0)},[]);return x.useEffect(()=>{const h=()=>t(window.scrollY>50);return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[]),c.jsxs("div",{className:"min-h-screen bg-[#FAF6F0] text-[#2C2218] font-sans selection:bg-[#6B4E30]/30",children:[c.jsx(va,{children:!l&&!s&&c.jsx(YE,{onComplete:f})}),c.jsxs("div",{children:[c.jsxs("header",{className:`fixed top-0 w-full z-50 transition-all duration-300 ${e?"bg-[#FAF6F0]/90 backdrop-blur-md py-4 shadow-lg shadow-black/6 border-b border-black/5":"bg-transparent py-6"}`,children:[c.jsxs("div",{className:"container mx-auto px-6 flex items-center justify-between",children:[c.jsxs("a",{href:"#",className:"flex items-center gap-3 group",children:[c.jsx("div",{className:"w-10 h-10 bg-[#6B4E30] rounded flex items-center justify-center text-[#FAF6F0] group-hover:bg-[#553C22] transition-colors",children:c.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"20"}),c.jsx("line",{x1:"4",y1:"7",x2:"18",y2:"7"})]})}),c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"font-bold tracking-wider text-sm",children:"ST. MARY'S"}),c.jsx("span",{className:"text-[0.65rem] text-[#2C2218]/70 tracking-widest uppercase font-medium",children:"Ukrainian Catholic Church"})]})]}),c.jsx("nav",{className:"hidden md:flex items-center gap-8",children:Nw.map(h=>h.primary?c.jsx("a",{href:h.href,className:"bg-[#6B4E30] text-[#FAF6F0] px-6 py-2.5 text-sm font-bold tracking-wide rounded hover:bg-[#553C22] transition-colors",children:h.name},h.name):c.jsx("a",{href:h.href,className:"text-sm font-semibold text-[#2C2218]/75 hover:text-[#6B4E30] transition-colors",children:h.name},h.name))}),c.jsx("button",{className:"md:hidden text-[#5A4E40] hover:text-[#2C2218]","aria-label":"Menu","aria-expanded":n,onClick:()=>a(!n),children:n?c.jsx(Yr,{size:24}):c.jsx(UE,{size:24})})]}),c.jsx(va,{children:n&&c.jsx(st.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"absolute top-full left-0 w-full bg-[#FFFFFF] border-b border-black/7 md:hidden",children:c.jsx("nav",{className:"flex flex-col py-4 px-6 gap-4",children:Nw.map(h=>h.primary?c.jsx("a",{href:h.href,onClick:()=>a(!1),className:"bg-[#6B4E30] text-[#FAF6F0] px-6 py-3 text-sm font-bold tracking-wide rounded mt-2 text-center hover:bg-[#553C22] transition-colors",children:h.name},h.name):c.jsx("a",{href:h.href,onClick:()=>a(!1),className:"text-lg font-medium text-[#5A4E40] hover:text-[#6B4E30] transition-colors",children:h.name},h.name))})})})]}),c.jsxs("section",{className:"relative min-h-[70svh] md:min-h-[60vh] flex items-center justify-center overflow-hidden pt-32 pb-16 md:pt-36 md:pb-20",children:[c.jsxs("div",{className:"absolute inset-0",children:[c.jsx("img",{src:WE,alt:"Church interior with golden iconostasis",className:"w-full h-full object-cover opacity-45 scale-105"}),c.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, rgba(250,246,240,0.45) 0%, rgba(250,246,240,0.3) 50%, #FAF6F0 100%)"}})]}),c.jsx("div",{className:"relative z-10 container mx-auto px-6 text-center",children:c.jsxs(st.div,{initial:{opacity:0,y:s?0:30}
337,animate:{opacity:1,y:0},transition:{duration:.8},className:"flex flex-col items-center",children:[c.jsx("div",{className:"text-[#6B4E30] mb-6",children:c.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M12 2v20"}),c.jsx("path",{d:"M5 8h14"})]})}),c.jsx("p",{className:"text-[#6B4E30] font-semibold tracking-[0.2em] text-sm md:text-base uppercase mb-4",style:{textShadow:"0 1px 8px rgba(250,246,240,0.8)"},children:"Nativity of the Holy Mother of God"}),c.jsxs("h1",{className:"text-4xl md:text-6xl lg:text-7xl font-bold text-[#2C2218] mb-6 tracking-tight max-w-5xl",style:{textShadow:"0 2px 16px rgba(250,246,240,0.6)",textWrap:"balance"},children:["ST. MARY'S ",c.jsx("br",{className:"hidden md:block"}),c.jsx("span",{className:"text-[#5A4E40]",children:"UKRAINIAN CATHOLIC CHURCH"})]}),c.jsx("p",{className:"text-lg md:text-xl text-[#2C2218]/80 max-w-2xl mx-auto mb-10 font-medium",style:{textShadow:"0 1px 10px rgba(250,246,240,0.9)"},children:"A sanctuary of faith, tradition, and community in the heart of Niagara Falls."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 w-full sm:w-auto",children:[c.jsx("a",{href:"#services",className:"bg-[#6B4E30] text-[#FAF6F0] px-8 py-4 text-sm font-bold tracking-widest uppercase rounded hover:bg-[#553C22] transition-colors",children:"Mass Schedule"}),c.jsx("a",{href:"#history",className:"bg-[#FAF6F0]/60 backdrop-blur-sm border border-[#2C2218]/20 text-[#2C2218] px-8 py-4 text-sm font-bold tracking-widest uppercase rounded hover:bg-[#F5ECE0] transition-colors",children:"Our History"})]})]})})]}),c.jsx("section",{id:"services",className:"py-24 bg-[#FAF6F0] relative",children:c.jsxs("div",{className:"container mx-auto px-6",children:[c.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-end mb-16 gap-8",children:[c.jsxs("div",{className:"max-w-xl",children:[c.jsx("p",{className:"text-[#6B4E30] font-medium tracking-widest text-sm uppercase mb-3",children:"Services & visit"}),c.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-[#2C2218] tracking-tight",children:"FAITH & COMMUNITY"})]}),c.jsx("p",{className:"text-[#5A4E40] max-w-md text-sm md:text-base leading-relaxed",children:"Join our community for spiritual growth and authentic Ukrainian traditions."})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-px bg-white/5 border border-black/5 rounded-xl overflow-hidden",children:[c.jsxs("div",{className:"bg-[#FFFFFF] p-8 hover:bg-[#F5ECE0] transition-colors group",children:[c.jsx(n6,{className:"text-[#6B4E30] mb-6 group-hover:scale-110 transition-transform",size:32}),c.jsx("h3",{className:"text-xl font-bold text-[#2C2218] mb-2",children:"Sunday"}),c.jsx("p",{className:"text-[#6B4E30] font-medium mb-1",children:"Divine Liturgy 11:00 AM"}),c.jsx("p",{className:"text-[#5A4E40] text-sm tracking-wide mt-4",children:"Mixed Ukrainian & English"})]}),c.jsxs("div",{className:"bg-[#FFFFFF] p-8 hover:bg-[#F5ECE0] transition-colors group",children:[c.jsx(ag,{className:"text-[#6B4E30] mb-6 group-hover:scale-110 transition-transform",size:32}),c.jsx("h3",{className:"text-xl font-bold text-[#2C2218] mb-2",children:"Location"}),c.jsxs("address",{className:"text-[#5A4E40] not-italic mb-4",children:["6248 Main St",c.jsx("br",{}),"Niagara Falls, ON",c.jsx("br",{}),"L2G 6A4"]}),c.jsxs("a",{href:"https://www.google.com/maps/dir//6248+Main+St,+Niagara+Falls,+ON+L2G+6A4/",target:"_blank",rel:"noreferrer",className:"text-[#6B4E30] text-sm font-bold tracking-widest uppercase flex items-center gap-2 hover:text-[#553C22]",children:[c.jsx("span",{children:"Directions"}),c.jsx(Ur,{size:16})]})]}),c.jsxs("div",{className:"bg-[#6B4E30] p-8 text-[#FAF6F0] group",children:[c.jsx(f3,{className:"text-[#FAF6F0] mb-6 group-hover:scale-110 transition-transform",size:32}),c.jsx("h3",{className:"text-xl font-bold mb-2",children:"Parish Hall"}),c.jsx("p",{className:"text-sm mb-4 font-bold",style:{color:"#FAF6F0"},children:"Perogies & Cabbage Rolls"}),c.jsx("p",{className:"text-sm",style:{color:"#FAF6F0"},children:"Hand-crafted traditional Ukrainian delicacies available for purchase at the parish hall."}),c.jsxs("a",{href:"tel:9053547876",className:"inline-flex items-center gap-2 mt-4 px-4 py-2 rounded-lg text-sm font-bold transition-colors",style:{color:"#FAF6F0",background:"rgba(42,34,16,0.1)",border:"1px solid rgba(42,34,16,0.2)"},children:[c.jsx(bd,{size:14}),c.jsx("span",{children:"(905) 354-7876 to order"})]})]})]})]})}),!1,c.jsxs("section",{id:"history",className:"relative overflow-hidden bg-[#FAF6F0]",children:[c.jsxs("div",{className:"relative h-[80vh] min-h-[560px] overflow-hidden",children:[c.jsx("img",{src:GE,alt:"St. Mary's Ukrainian Catholic Church â Carpathian Hutsul architecture in Niagara Falls",className:"w-full h-full object-cover object-center"}),c.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, rgba(250,246,240,0.55) 0%, rgba(250,246,240,0.05) 30%, rgba(250,246,240,0.4) 70%, #FAF6F0 100%)"}}),c.jsxs("div",{className:"absolute top-8 left-8 md:left-16 flex items-center gap-4",children:[c.jsxs("div",{className:"border border-[#6
337B4E30]/60 rounded px-4 py-3 backdrop-blur-sm bg-[#FAF6F0]/40",children:[c.jsx("p",{className:"text-[#6B4E30] font-black text-xs tracking-[0.25em] uppercase leading-none mb-1",children:"Est."}),c.jsx("p",{className:"text-[#2C2218] font-black text-2xl tracking-tight leading-none",children:"1951"})]}),c.jsx("div",{className:"hidden md:block h-[1px] w-16 bg-[#6B4E30]/40"})]}),c.jsxs("div",{className:"hidden md:block absolute bottom-0 right-8 md:right-20 w-28 md:w-40 overflow-hidden rounded-t-xl shadow-2xl border border-black/7",style:{height:"60%"},children:[c.jsx("img",{src:qE,alt:"St. Mary's church steeple and cross reaching skyward",className:"w-full h-full object-cover object-top"}),c.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, transparent 55%, rgba(250,246,240,0.8) 100%)"}})]})]}),c.jsx("div",{className:"bg-[#FAF6F0] pt-2 pb-28",children:c.jsx("div",{className:"container mx-auto px-6",children:c.jsxs("div",{className:"max-w-5xl mx-auto",children:[c.jsx("p",{className:"text-[#5A4E40] text-sm mb-6",children:"Our parish story · Since 1951"}),c.jsxs("div",{className:"flex flex-col lg:flex-row gap-12 lg:gap-20 items-start",children:[c.jsxs("div",{className:"lg:w-5/12",children:[c.jsxs("h2",{className:"text-4xl md:text-5xl font-black text-[#2C2218] tracking-tight leading-[1.05] mb-8",children:["BUILT WITHOUT NAILS.",c.jsx("br",{}),c.jsx("span",{className:"text-[#6B4E30]",children:"ROOTED IN FAITH."})]}),c.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[c.jsx("div",{className:"h-[1px] w-12 bg-[#6B4E30]/50"}),c.jsx("div",{className:"w-2 h-2 rounded-full bg-[#6B4E30]"}),c.jsx("div",{className:"h-[1px] flex-1 bg-white/8"})]}),c.jsx("div",{className:"border-l-2 border-[#6B4E30]/60 pl-6",children:c.jsx("p",{className:"text-[#5A4E40] italic text-lg leading-relaxed font-light",children:'"Anyone can come to the church not only to pray, but also to think about eternity and enjoy the aroma of the wooden frames of which the Church is made."'})})]}),c.jsxs("div",{className:"lg:w-7/12 space-y-6 text-[#5A4E40] leading-relaxed",children:[c.jsx("p",{children:"Founded in 1951 by Ukrainians who came to Canada during the pre and post war years, St. Mary's parish has grown from humble beginnings into one of Niagara's most recognisable spiritual landmarks. The first priest, Father G. Boyko, led services in the old hall before the current church was built in 1988."}),c.jsx("p",{children:"The building was designed in the Hutsul (Carpathian) style, a living link to Western Ukraine cherished by so many parishioners. It was constructed without nails, a feat made possible through the extraordinary dedication of architect Stetsura from Toronto and builders from western Canada. Vitaly Litvin hand-carved the iconostas and painted the icons that still adorn our sanctuary today."}),c.jsx("p",{children:"Its unique architecture makes an unforgettable impression on all who visit, drawing not only Ukrainians, but believers of every background who discover it while exploring Niagara Falls."}),c.jsxs("div",{className:"pt-6 border-t border-black/7 mt-8",children:[c.jsx("p",{className:"text-[#6B4E30] text-xs font-bold tracking-widest uppercase mb-0.5",children:"Lead Pastor"}),c.jsx("p",{className:"text-[#2C2218] font-bold text-lg",children:"Fr. Victor Nazartchyk"}),c.jsx("p",{className:"text-[#5A4E40] text-sm",children:"Celebrating 25+ years with this parish community"})]})]})]})]})})})]}),c.jsxs("section",{id:"gallery",className:"py-24 bg-[#FAF6F0] overflow-hidden",children:[c.jsx("div",{className:"container mx-auto px-6 mb-14",children:c.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-end gap-6",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-[#5A4E40] text-sm mb-3",children:"Four views of our church, inside and out"}),c.jsx("h2",{className:"text-4xl md:text-5xl font-black text-[#2C2218] tracking-tight mb-2",children:"PHOTO GALLERY"})]}),c.jsxs("div",{className:"text-[#5A4E40] text-xs uppercase tracking-widest text-right hidden md:block",children:[c.jsxs("p",{className:"font-medium tnums",children:[ld.length," Photos"]}),c.jsx("p",{children:"St. Mary's, Niagara Falls"})]})]})}),c.jsx(m6,{})]}),c.jsx("section",{className:"bg-[#6B4E30] py-20",children:c.jsx("div",{className:"container mx-auto px-6 text-center",children:c.jsxs("div",{className:"max-w-xl mx-auto",children:[c.jsx("div",{className:"w-14 h-14 roun
337ded-2xl bg-[#FAF6F0]/15 border border-[#FAF6F0]/30 flex items-center justify-center mx-auto mb-6",children:c.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",stroke:"#FAF6F0",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}),c.jsx("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]})}),c.jsx("h2",{className:"text-3xl md:text-4xl font-black text-[#FAF6F0] tracking-tight mb-2",children:"STAY CONNECTED"}),c.jsx("p",{className:"text-[#FAF6F0]/70 text-sm tracking-widest uppercase font-medium mb-6",children:"Subscribe to Parish Updates"}),c.jsx("p",{className:"leading-relaxed mb-10",style:{color:"#FAF6F0"},children:"Be the first to know when fresh perogies and cabbage rolls are available, when zabavas and bazaars are coming up, and when special services are scheduled."}),c.jsxs("a",{href:"#subscribe",className:"inline-flex items-center gap-3 bg-[#FAF6F0] text-[#6B4E30] px-10 py-4 text-sm font-black tracking-widest uppercase rounded-xl hover:bg-[#FFFFFF] transition-colors shadow-lg shadow-black/8",children:[c.jsx("span",{children:"Subscribe"}),c.jsx(Ur,{size:18})]})]})})}),c.jsx("footer",{className:"bg-[#FAF6F0] pt-20 pb-10 border-t border-black/5",children:c.jsxs("div",{className:"container mx-auto px-6",children:[c.jsx("h2",{className:"text-3xl font-black text-[#2C2218] mb-10",children:"CONTACT US"}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8 mb-20",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(ag,{className:"text-[#6B4E30] mt-1 shrink-0",size:20}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-bold text-[#2C2218] uppercase text-sm tracking-widest mb-2",children:"Location"}),c.jsxs("p",{className:"text-[#5A4E40] text-sm leading-relaxed",children:["6248 Main St",c.jsx("br",{}),"Niagara Falls, ON L2G 6A4"]})]})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(bd,{className:"text-[#6B4E30] mt-1 shrink-0",size:20}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-bold text-[#2C2218] uppercase text-sm tracking-widest mb-2",children:"Phone"}),c.jsx("a",{href:"tel:9053547876",className:"text-[#5A4E40] text-sm hover:text-[#6B4E30] transition-colors",children:"(905) 354-7876"})]})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(VE,{className:"text-[#6B4E30] mt-1 shrink-0",size:20}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-bold text-[#2C2218] uppercase text-sm tracking-widest mb-2",children:"Email"}),c.jsx("a",{href:"mailto:[email protected]",className:"text-[#5A4E40] text-sm hover:text-[#6B4E30] transition-colors",children:"[email protected]"})]})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(HE,{className:"text-[#6B4E30] mt-1 shrink-0",size:20}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-bold text-[#2C2218] uppercase text-sm tracking-widest mb-2",children:"Pastor"}),c.jsx("p",{className:"text-[#5A4E40] text-sm",children:"Fr. Victor Nazartchyk"}),c.jsxs("div",{className:"flex gap-3 mt-4",children:[c.jsx("a",{href:"https://www.facebook.com/stmarysukrainianchurch/",target:"_blank",rel:"noreferrer",className:"w-9 h-9 rounded border border-black/7 flex items-center justify-center text-[#9A8E80] hover:text-[#6B4E30] hover:border-[#6B4E30] transition-colors",children:c.jsx(S3,{size:16})}),c.jsx("a",{href:"https://www.instagram.com/st.marysukrainian.church",target:"_blank",rel:"noreferrer",className:"w-9 h-9 rounded border border-black/7 flex items-center justify-center text-[#9A8E80] hover:text-[#6B4E30] hover:border-[#6B4E30] transition-colors",children:c.jsx(D3,{size:16})})]})]})]})]}),c.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between pt-8 border-t border-black/7 text-xs text-[#9A8E80] gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-6 h-6 bg-[#6B4E30] rounded flex items-center justify-center text-[#FAF6F0]",children:c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 22 22",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"20"}),c.jsx("line",{x1:"4",y1:"7",x2:"18",y2:"7"})]})}),c.jsxs("span",{children:["© ",new Date().getFullYear()," St. Mary's Ukrainian Catholic Church. All rights reserved."]})]}),c.jsxs("a",{href:"https://pxellabs.io",target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 group",children:[c.jsx("span",{children:"Website by Yurij Nazartchyk ·"}),c.jsxs("svg",{className:"w-3.5 h-3 text-[#9A8E80] group-hover:text-[#6B4E30] transition-colors",viewBox:"0 0 355.67 304.07",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M57.5,57l-.51,247c-1.72.31-2.91-.41-4.35-1.15-16.97-8.73-35.84-27.12-52.65-37.35V1.5c0-.11,1.39-1.5,1.5-1.5h188c3.62,0,52.2,36.85,59.28,41.72l-.28,124.29-169.5,88.5v-60c0-.84,1.66-3.71,2.61-4.39,12.52-8.01,109.36-54.09,111.87-60.13,1.04-2.51,1.21-51.15.3-54.26-.58-1.99-22.75-18.72-24.28-18.72H57.5Z"}),c.jsx("path",{d:"M164,239l105.68-61.31V54h67.94c4.74,0,14.76,8.57,16.1,14.06,2.74,11.23,2.41,136.37.18,150.61-1.47,9.4-7.34,20.33-18.44,20.33h-171.46Z"}),c.jsx("path",{d:"M79.17,165.91v-89.08h87.94c.79,0,7.18,4.14,7.73,5.97,1.1,3.66.79,30.64-.77,32.96l
337-94.89,50.14Z"}),c.jsx("rect",{x:"253.91",y:"262.55",width:"30.21",height:"32.22"})]}),c.jsx("span",{className:"text-[#6B4E30] group-hover:text-[#553C22] transition-colors",children:"Pxel Labs"})]})]}),c.jsx("div",{className:"mt-12 overflow-hidden select-none pointer-events-none",children:c.jsx("p",{className:"text-center font-black tracking-tight leading-none text-[#2C2218]/[0.04] text-6xl sm:text-8xl md:text-9xl lg:text-[10rem] whitespace-nowrap",children:"ST. MARY'S"})})]})})]})]})},Sd=[{id:"events",label:"Parish Events",labelUk:"ÐаÑаÑÑÑлÑÐ½Ñ Ð¿Ð¾Ð´ÑÑ",sublabel:"Zabavas, Concerts & Celebrations",sublabelUk:"Ðабави, конÑеÑÑи Ñа ÑвÑÑа",icon:c.jsx($r,{size:22}),examples:"Malanka, Praznyk, bazaars, holiday gatheringsâ¦",examplesUk:"Ðаланка, ÐÑазник, базаÑи, ÑвÑÑÐºÐ¾Ð²Ñ Ð·ÑбÑаннÑâ¦"},{id:"food",label:"Kitchen & Food Sales",labelUk:"ÐÑÑ
Ð½Ñ Ñа пÑодаж ÑжÑ",sublabel:"Fresh Perogies, Cabbage Rolls & More",sublabelUk:"СвÑÐ¶Ñ Ð²Ð°Ñеники, голÑбÑÑ Ñа ÑнÑе",icon:c.jsx($E,{size:22}),examples:"When fresh perogies are ready, pre-order windows, seasonal baked goodsâ¦",examplesUk:"Ðоли ваÑеники гоÑовÑ, попеÑÐµÐ´Ð½Ñ Ð·Ð°Ð¼Ð¾Ð²Ð»ÐµÐ½Ð½Ñ, Ñезонна випÑÑкаâ¦"},{id:"services",label:"Liturgical Services",labelUk:"ÐогоÑлÑжÑннÑ",sublabel:"Divine Liturgy, Holy Week & Feasts",sublabelUk:"ÐожеÑÑвенна ÐÑÑÑÑгÑÑ, СÑÑаÑний ÑÐ¸Ð¶Ð´ÐµÐ½Ñ Ñа ÑвÑÑа",icon:c.jsx(a3,{size:22}),examples:"Easter schedule, Panakhyda services, feast day announcementsâ¦",examplesUk:"Розклад ÐеликоднÑ, ÐанаÑ
иди, оголоÑÐµÐ½Ð½Ñ ÑвÑÑковиÑ
днÑвâ¦"},{id:"news",label:"Parish News",labelUk:"Ðовини паÑаÑÑÑ",sublabel:"General Announcements & Updates",sublabelUk:"ÐагалÑÐ½Ñ Ð¾Ð³Ð¾Ð»Ð¾ÑÐµÐ½Ð½Ñ Ñа оновленнÑ",icon:c.jsx(q_,{size:22}),examples:"Community updates, fundraising, pastor messagesâ¦",examplesUk:"Ðовини гÑомади, збÑÑ ÐºÐ¾ÑÑÑв, поÑÐ»Ð°Ð½Ð½Ñ Ð¿Ð°ÑÑоÑаâ¦"}],g6=[{id:"english",label:"English"},{id:"ukrainian",label:"УкÑаÑнÑÑка"}],v6=3,Tw=1,Aw=4,x6=({current:e,total:t})=>c.jsx("div",{className:"flex items-center gap-2 justify-center",children:Array.from({length:t}).map((n,a)=>c.jsx("div",{className:"rounded-full transition-all duration-300",style:{width:e===a?24:8,height:8,background:a<=e?"#6B4E30":"rgba(0,0,0,0.1)"}},`step-dot-${a}`))}),y6={enter:e=>({x:e>0?60:-60,opacity:0}),center:{x:0,opacity:1},exit:e=>({x:e>0?-60:60,opacity:0})},b6=({form:e,onChange:t,onNext:n})=>c.jsxs("div",{className:"flex flex-col items-center text-center px-2",children:[c.jsx("div",{className:"w-16 h-16 bg-[#6B4E30] rounded-2xl flex items-center justify-center mb-6 shadow-lg shadow-[#6B4E30]/10",children:c.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 22 22",fill:"none",stroke:"#FAF6F0",strokeWidth:"2.4",strokeLinecap:"round",children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"20"}),c.jsx("line",{x1:"4",y1:"7",x2:"18",y2:"7"})]})}),c.jsxs("h1",{className:"text-3xl font-black text-[#2C2218] tracking-tight mb-2 leading-tight",children:["Welcome",c.jsx("br",{}),c.jsx("span",{className:"text-[#6B4E30]",children:"ÐаÑкаво пÑоÑимо"})]}),c.jsx("p",{className:"text-[#5A4E40] text-base mb-8",children:"Choose your language to continue."}),c.jsx("div",{className:"w-full max-w-xs space-y-3 mb-8",children:g6.map(a=>{const s=e.language===a.id;return c.jsxs("button",{onClick:()=>t("language",a.id),className:`w-full text-left rounded-xl border px-5 py-4 transition-all duration-200 flex items-center justify-between ${s?"bg-[#6B4E30]/10 border-[#6B4E30]/50 text-[#2C2218]":"bg-[#FFFFFF] border-black/7 text-[#5A4E40] hover:border-black/10"}`,children:[c.jsx("span",{className:"font-bold text-base",children:a.label}),c.jsx("div",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center transition-all ${s?"bg-[#6B4E30] border-[#6B4E30]":"border-black/10"}`,children:s&&c.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:c.jsx("path",{d:"M1 4l3 3 5-6",stroke:"#FAF6F0",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})})]},a.id)})}),c.jsxs("button",{onClick:n,className:"w-full max-w-xs bg-[#6B4E30] text-[#FAF6F0] font-black tracking-widest uppercase text-sm py-4 rounded-xl hover:bg-[#553C22] transition-colors flex items-center justify-center gap-2 shadow-lg shadow-[#6B4E30]/10",children:[c.jsx("span",{children:"Continue"}),c.jsx(Ur,{size:18})]})]}),w6=({onNext:e,isUkrainian:t})=>c.jsxs("div",{className:"flex flex-col items-center text-center px-2",children:[c.jsx("div",{className:"w-16 h-16 bg-[#6B4E30] rounded-2xl flex items-center justify-center mb-6 shadow-lg shadow-[#6B4E30]/10",children:c.jsxs("svg",{width:"30",height:"30",viewBox:"0 0 22 22",fill:"none",stroke:"#FAF6F0",strokeWidth:"2.4",strokeLinecap:"round",children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"20"}),c.jsx("line",{x1:"4",y1:"7",x2:"18",y2:"7"})]})}),c.jsx("p",{className:"text-[#6B4E30] text-xs font-bold tracking-widest uppercase mb-4",children:t?"ÐÑок 1 Ñз 3":"Step 1 of 3"}),c.jsx("h1",{className:"text-3xl font-black text-[#2C2218] tracking-tight mb-3 leading-tight",children:t?c.jsxs(c.Fragment,{children:["ÐалиÑайÑеÑÑ Ð½Ð° зв'ÑзкÑ",c.jsx("br",{}),c.jsx("span",{className:"text-[#6B4E30]",children:"з ÑеÑÐºÐ²Ð¾Ñ Ð¡Ð². ÐаÑÑÑ"})]}):c.jsxs(c.Fragment,{children:["Stay Connected",c.jsx("br",{}),c.jsx("span",{className:"text-[#6B4E30]",children:"with St. Mary's"})]})}),c.jsx("p",{className:"text-[#5A4E40] text-base leading-relaxed max-w-xs mb-10",children:t?"ÐÑÑимÑйÑе новини пÑо ÑвÑÐ¶Ñ Ð²Ð°Ñеники, майбÑÑÐ½Ñ Ð·Ð°Ð±Ð°Ð²Ð¸, богоÑлÑжÑÐ½Ð½Ñ Ñа вÑе, Ñо вÑдбÑваÑÑÑÑÑ Ñ Ð½Ð°ÑÑй паÑаÑÑÑ.":"Get updates on fresh perogies, upcoming zabavas, holy day services, and everything happening at our parish."}),c.jsxs("button",{onClick:e,className:"w-full max-w-xs bg-[#6B4E30] text-[#FAF6F0] font-black tracking-widest uppercase text-sm py-4 rounded-xl hover:bg-[#553C22] transition-colors flex items-center justify-center gap-2 shadow-lg shadow-[#6B4E30]/10",children:[c.jsx("span",{children:t?"ÐоÑаÑи":"Get Started"}),c.jsx(Ur,{size:18})]}),c.jsx("p",{className:"text-[#5A4E40] text-xs mt-4 tracking-wide",children:t?"ÐÐ°Ð¹Ð¼Ð°Ñ Ð¼ÐµÐ½Ñе Ñ
вилини":"Takes less than a minute"})]}
337),S6=({form:e,onChange:t,onNext:n,onBack:a,isUkrainian:s})=>{const l=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email);return c.jsxs("div",{className:"flex flex-col px-2",children:[c.jsxs("div",{className:"mb-8",children:[c.jsxs("p",{className:"text-[#6B4E30] text-xs font-bold tracking-widest uppercase mb-2 flex items-center gap-2",children:[c.jsx(VE,{size:13}),c.jsx("span",{children:s?"ÐÑок 2 Ñз 3":"Step 2 of 3"})]}),c.jsx("h2",{className:"text-2xl font-black text-[#2C2218] tracking-tight",children:s?"Як з вами зв'ÑзаÑиÑÑ?":"How can we reach you?"}),c.jsx("p",{className:"text-[#5A4E40] text-sm mt-1",children:s?"ÐиÑе елекÑÑонна поÑÑа Ñ Ð¾Ð±Ð¾Ð²'ÑзковоÑ.":"Only your email is required."})]}),c.jsxs("div",{className:"space-y-4 mb-8",children:[c.jsxs("div",{children:[c.jsxs("label",{className:"text-[#5A4E40] text-xs uppercase tracking-widest font-bold mb-2 block",children:[s?"Ðм'Ñ":"Name"," ",c.jsxs("span",{className:"normal-case tracking-normal font-medium",children:["(",s?"необов'Ñзково":"optional",")"]})]}),c.jsx("input",{type:"text",value:e.firstName,onChange:u=>t("firstName",u.target.value),placeholder:s?"напÑ. Ðлена":"e.g. Olena",className:"w-full bg-[#FFFFFF] border border-black/7 rounded-xl px-4 py-3.5 text-[#2C2218] placeholder:text-[#7A6E5E] focus:outline-none focus:border-[#6B4E30]/60 transition-colors text-base"})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"text-[#5A4E40] text-xs uppercase tracking-widest font-bold mb-2 block",children:[s?"ÐлекÑÑонна поÑÑа":"Email Address"," ",c.jsx("span",{className:"text-[#6B4E30]",children:"*"})]}),c.jsx("input",{type:"email",value:e.email,onChange:u=>t("email",u.target.value),placeholder:"[email protected]",className:"w-full bg-[#FFFFFF] border border-black/7 rounded-xl px-4 py-3.5 text-[#2C2218] placeholder:text-[#7A6E5E] focus:outline-none focus:border-[#6B4E30]/60 transition-colors text-base"})]})]}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("button",{onClick:a,className:"w-12 h-14 rounded-xl border border-black/7 flex items-center justify-center text-[#5A4E40] hover:text-[#2C2218] hover:border-black/10 transition-colors shrink-0","aria-label":"Go back",children:c.jsx(oo,{size:20})}),c.jsxs("button",{onClick:n,disabled:!l,className:"flex-1 bg-[#6B4E30] text-[#FAF6F0] font-black tracking-widest uppercase text-sm py-4 rounded-xl hover:bg-[#553C22] transition-colors flex items-center justify-center gap-2 disabled:opacity-35 disabled:cursor-not-allowed",children:[c.jsx("span",{children:s?"ÐÑодовжиÑи":"Continue"}),c.jsx(Ur,{size:18})]})]})]})},E6=({form:e,onToggle:t,onSelectAll:n,onSubmit:a,onBack:s,isUkrainian:l,submitting:u})=>{const f=e.interests.length>0,h=e.interests.length===Sd.length;return c.jsxs("div",{className:"flex flex-col px-2",children:[c.jsxs("div",{className:"mb-6",children:[c.jsxs("p",{className:"text-[#6B4E30] text-xs font-bold tracking-widest uppercase mb-2 flex items-center gap-2",children:[c.jsx(IE,{size:13}),c.jsx("span",{children:l?"ÐÑок 3 Ñз 3":"Step 3 of 3"})]}),c.jsxs("div",{className:"flex items-end justify-between gap-4",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-black text-[#2C2218] tracking-tight",children:l?"Що Ð²Ð°Ñ ÑÑкавиÑÑ?":"What matters to you?"}),c.jsx("p",{className:"text-[#5A4E40] text-sm mt-1",children:l?"ÐбеÑÑÑÑ Ð²Ñе, пÑо Ñо Ñ
оÑеÑе дÑзнаваÑиÑÑ.":"Select everything you'd like to hear about."})]}),c.jsx("button",{onClick:n,className:"text-[#6B4E30] text-xs font-bold tracking-wide uppercase whitespace-nowrap hover:text-[#553C22] transition-colors shrink-0 pb-0.5",children:h?l?"ÐнÑÑи вÑе":"Deselect All":l?"ÐбÑаÑи вÑе":"Select All"})]})]}),c.jsx("div",{className:"space-y-3 mb-8",children:Sd.map(m=>{const v=e.interests.includes(m.id),g=l?m.labelUk:m.label,b=l?m.sublabelUk:m.sublabel,w=l?m.examplesUk:m.examples;return c.jsxs("button",{onClick:()=>t(m.id),className:`w-full text-left rounded-xl border p-4 transition-all duration-200 flex items-start gap-4 ${v?"bg-[#6B4E30]/10 border-[#6
337B4E30]/50":"bg-[#FFFFFF] border-black/7 hover:border-black/10"}`,children:[c.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center shrink-0 transition-colors ${v?"bg-[#6B4E30] text-[#FAF6F0]":"bg-[#F5ECE0] text-[#9A8E80]"}`,children:m.icon}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:`font-bold text-sm ${v?"text-[#2C2218]":"text-[#5A4E40]"}`,children:g}),c.jsx("p",{className:`text-xs mt-0.5 ${v?"text-[#6B4E30]":"text-[#5A4E40]"}`,children:b}),v&&c.jsx("p",{className:"text-[#5A4E40] text-xs mt-1.5 leading-relaxed",children:w})]}),c.jsx("div",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0 mt-0.5 transition-all ${v?"bg-[#6B4E30] border-[#6B4E30]":"border-black/10"}`,children:v&&c.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:c.jsx("path",{d:"M1 4l3 3 5-6",stroke:"#FAF6F0",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})})]},m.id)})}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("button",{onClick:s,className:"w-12 h-14 rounded-xl border border-black/7 flex items-center justify-center text-[#5A4E40] hover:text-[#2C2218] hover:border-black/10 transition-colors shrink-0","aria-label":"Go back",children:c.jsx(oo,{size:20})}),c.jsx("button",{onClick:a,disabled:!f||u,className:"flex-1 bg-[#6B4E30] text-[#FAF6F0] font-black tracking-widest uppercase text-sm py-4 rounded-xl hover:bg-[#553C22] transition-colors flex items-center justify-center gap-2 disabled:opacity-35 disabled:cursor-not-allowed",children:u?c.jsx("span",{children:l?"ÐÑдпиÑкаâ¦":"Subscribingâ¦"}):c.jsxs(c.Fragment,{children:[c.jsx("span",{children:l?"ÐÑдпиÑаÑиÑÑ":"Subscribe"}),c.jsx(Ur,{size:18})]})})]})]})},C6={events:"Parish Events",food:"Kitchen & Food Sales",services:"Liturgical Services",news:"Parish News"},j6={events:"ÐаÑаÑÑÑлÑÐ½Ñ Ð¿Ð¾Ð´ÑÑ",food:"ÐÑÑ
Ð½Ñ Ñа пÑодаж ÑжÑ",services:"ÐогоÑлÑжÑннÑ",news:"Ðовини паÑаÑÑÑ"},N6=({form:e})=>{const t=e.language==="ukrainian",n=t?j6:C6;return c.jsxs("div",{className:"flex flex-col items-center text-center px-2 py-4",children:[c.jsx(st.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:300,damping:22,delay:.1},className:"w-20 h-20 bg-[#6B4E30]/15 rounded-full flex items-center justify-center mb-6",children:c.jsx(so,{className:"text-[#6B4E30]",size:42,strokeWidth:1.5})}),c.jsx("h2",{className:"text-3xl font-black text-[#2C2218] tracking-tight mb-4",children:t?"Ðи пÑдпиÑанÑ!":"You're subscribed!"}),c.jsx("p",{className:"text-[#5A4E40] text-sm leading-relaxed max-w-xs mb-8",children:t?"СлÑдкÑйÑе за оновленнÑми вÑд ÑеÑкви Св. ÐаÑÑÑ Ñ Ð²Ð°ÑÑй поÑÑовÑй ÑкÑинÑÑÑ.":"Keep an eye on your inbox for updates from St. Mary's."}),c.jsxs("div",{className:"w-full max-w-xs bg-[#FFFFFF] border border-black/7 rounded-2xl p-5 text-left mb-8",children:[c.jsx("p",{className:"text-[#5A4E40] text-xs uppercase tracking-widest font-bold mb-3",children:t?"Ðи дÑзнаÑÑеÑÑ Ð¿Ñо":"You'll hear about"}),c.jsx("div",{className:"space-y-2",children:e.interests.map(a=>c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-[#6B4E30] flex items-center justify-center shrink-0",children:c.jsx("svg",{width:"8",height:"6",viewBox:"0 0 10 8",fill:"none",children:c.jsx("path",{d:"M1 4l3 3 5-6",stroke:"#FAF6F0",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),c.jsx("span",{className:"text-[#5A4E40] text-sm font-medium",children:n[a]})]},a))})]}),c.jsxs("a",{href:"/",className:"text-[#5A4E40] text-sm hover:text-[#2C2218] transition-colors flex items-center gap-1.5",children:[c.jsx(oo,{size:14}),c.jsx("span",{children:t?"Ðазад на ÑÐ°Ð¹Ñ Ð¡Ð². ÐаÑÑÑ":"Back to St. Mary's website"})]})]})},T6=()=>{const e=yv(),[t,n]=x.useState(()=>{try{return sessionStorage.getItem("stm-preloader-seen")==="1"}catch{return!1}}),a=()=>{try{sessionStorage.setItem("stm-preloader-seen","1")}catch{}n(!0)}
337,[s,l]=x.useState(0),[u,f]=x.useState(1),[h,m]=x.useState(!1),[v,g]=x.useState({firstName:"",email:"",interests:[],language:"english"}),b=v.language==="ukrainian",w=k=>{f(k>s?1:-1),l(k)},E=(k,T)=>{g(M=>({...M,[k]:T}))},S=k=>{g(T=>({...T,interests:T.interests.includes(k)?T.interests.filter(M=>M!==k):[...T.interests,k]}))},j=()=>{g(k=>({...k,interests:k.interests.length===Sd.length?[]:Sd.map(T=>T.id)}))},N=async()=>{m(!0);try{if(!(await fetch("/api/subscribe.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({firstName:v.firstName,email:v.email,interests:v.interests,language:v.language})})).ok)throw new Error("Request failed");w(4)}catch{alert(b?"ЩоÑÑ Ð¿ÑÑло не Ñак. СпÑобÑйÑе Ñе Ñаз.":"Something went wrong. Please try again.")}finally{m(!1)}},A=[c.jsx(b6,{form:v,onChange:E,onNext:()=>w(1)},"lang"),c.jsx(w6,{onNext:()=>w(2),isUkrainian:b},"welcome"),c.jsx(S6,{form:v,onChange:E,onNext:()=>w(3),onBack:()=>w(1),isUkrainian:b},"contact"),c.jsx(E6,{form:v,onToggle:S,onSelectAll:j,onSubmit:N,onBack:()=>w(2),isUkrainian:b,submitting:h},"interests"),c.jsx(N6,{form:v},"success")];return c.jsxs("div",{className:"min-h-screen bg-[#FAF6F0] flex flex-col",children:[c.jsx(va,{children:!t&&!e&&c.jsx(YE,{onComplete:a})}),c.jsxs("div",{className:"flex flex-col flex-1",children:[c.jsx("header",{className:"flex items-center justify-center pt-10 pb-6 px-6",children:c.jsxs("a",{href:"/",className:"flex items-center gap-3 group","aria-label":b?"Ðа Ð³Ð¾Ð»Ð¾Ð²Ð½Ñ ÑÑоÑÑÐ½ÐºÑ ÑеÑкви Св. ÐаÑÑÑ":"Go to the St. Mary's home page",children:[c.jsx("div",{className:"w-9 h-9 bg-[#6B4E30] rounded-lg flex items-center justify-center",children:c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 22 22",fill:"none",stroke:"#FAF6F0",strokeWidth:"2.4",strokeLinecap:"round",children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"20"}),c.jsx("line",{x1:"4",y1:"7",x2:"18",y2:"7"})]})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[#2C2218] font-black text-xs tracking-widest uppercase leading-none",children:"St. Mary's"}),c.jsx("p",{className:"text-[#9A8E80] text-[0.6rem] tracking-widest uppercase leading-none mt-0.5",children:"Ukrainian Catholic Church"})]})]})}),s>=Tw&&s<Aw&&c.jsx("div",{className:"pb-6 px-6",children:c.jsx(x6,{current:s-Tw,total:v6})}),c.jsx("main",{className:"flex-1 flex flex-col items-center justify-start overflow-y-auto px-6 pb-12",children:c.jsx("div",{className:"w-full max-w-sm",children:c.jsx(va,{mode:"wait",custom:u,children:c.jsx(st.div,{custom:u,variants:y6,initial:"enter",animate:"center",exit:"exit",transition:{type:"spring",stiffness:320,damping:32},children:A[s]},s)})})}),s<Aw&&c.jsx("div",{className:"pb-2 text-center",children:c.jsxs("a",{href:"/",className:"inline-flex items-center gap-1.5 text-[#5A4E40] hover:text-[#2C2218] transition-colors text-sm",children:[c.jsx(oo,{size:14,"aria-hidden":!0}),c.jsx("span",{children:b?"Ðазад на ÑÐ°Ð¹Ñ Ð¡Ð². ÐаÑÑÑ":"Back to St. Mary's website"})]})}),c.jsx("div",{className:"py-3 text-center",children:c.jsxs("a",{href:"https://pxellabs.io",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-[#9A8E80]/40 hover:text-[#9A8E80]/70 transition-colors text-[0.55rem] tracking-wide",children:[c.jsx("span",{children:"Website by Yurij Nazartchyk ·"}),c.jsxs("svg",{className:"w-2.5 h-2",viewBox:"0 0 355.67 304.07",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M57.5,57l-.51,247c-1.72.31-2.91-.41-4.35-1.15-16.97-8.73-35.84-27.12-52.65-37.35V1.5c0-.11,1.39-1.5,1.5-1.5h188c3.62,0,52.2,36.85,59.28,41.72l-.28,124.29-169.5,88.5v-60c0-.84,1.66-3.71,2.61-4.39,12.52-8.01,109.36-54.09,111.87-60.13,1.04-2.51,1.21-51.15.3-54.26-.58-1.99-22.75-18.72-24.28-18.72H57.5Z"}),c.jsx("path",{d:"M164,239l105.68-61.31V54h67.94c4.74,0,14.76,8.57,16.1,14.06,2.74,11.23,2.41,136.37.18,150.61-1.47,9.4-7.34,20.33-18.44,20.33h-171.46Z"}),c.jsx("path",{d:"M79.17,165.91v-89.08h87.94c.79,0,7.18,4.14,7.73,5.97,1.1,3.66.79,30.64-.77,32.96l
337-94.89,50.14Z"}),c.jsx("rect",{x:"253.91",y:"262.55",width:"30.21",height:"32.22"})]}),c.jsx("span",{children:"Pxel Labs"})]})})]})]})},og="/api";async function vn(e,t){const n=await fetch(`${og}${e}`,{credentials:"include",headers:{Accept:"application/json",...(t==null?void 0:t.headers)??{}},...t});let a={};try{a=await n.json()}catch{}if(!n.ok||a!=null&&a.error)throw new Error((a==null?void 0:a.error)||`Request failed (${n.status})`);return a}const it={events:{list:(e={})=>{const t=new URLSearchParams;return e.status&&t.set("status",e.status),e.type&&t.set("type",e.type),vn(`/events/list.php?${t}`)},get:e=>vn(`/events/get.php?id=${e}`),photos:(e,t=60,n=0)=>vn(`/events/photos.php?event_id=${e}&limit=${t}&offset=${n}`)},photos:{all:(e="all",t=60)=>vn(`/photos/all.php?type=${encodeURIComponent(e)}&per_event=${t}`),upload:(e,t)=>Mw(`${og}/photos/upload.php`,e,t)},admin:{me:()=>vn("/admin/me.php"),login:(e,t)=>vn("/admin/login.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t})}),logout:()=>vn("/admin/logout.php",{method:"POST"}),events:{list:()=>vn("/admin/events/list.php"),save:e=>vn("/admin/events/save.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),delete:e=>vn("/admin/events/delete.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})})},stats:()=>vn("/admin/stats.php"),recent:(e=15)=>vn(`/admin/recent.php?limit=${e}`),photos:{list:(e,t="approved")=>vn(`/admin/photos/list.php?event_id=${e}&status=${t}`),pending:e=>{const t=new URLSearchParams;return e&&t.set("event_id",String(e)),vn(`/admin/photos/pending.php?${t}`)},moderate:(e,t)=>vn("/admin/photos/moderate.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})}),bulkUpload:(e,t,n)=>{const a=new FormData;return a.set("event_id",String(e)),t.forEach(s=>a.append("photos[]",s)),Mw(`${og}/admin/photos/bulk-upload.php`,a,n)},bulkUploadChunked:async(e,t,n,a=8)=>{const s={uploaded:0,failed:0,errors:[]};if(t.length===0)return s;const l=Math.max(1,Math.ceil(t.length/a));for(let u=0;u<l;u++){const f=t.slice(u*a,(u+1)*a);try{const h=await it.admin.photos.bulkUpload(e,f,m=>{if(n){const v=Math.round((u+m/100)/l*100);n(v)}});s.uploaded+=h.uploaded??0,s.failed+=h.failed??0,Array.isArray(h.errors)&&s.errors.push(...h.errors)}catch(h){s.failed+=f.length;const m=h instanceof Error?h.message:"Upload chunk failed";s.errors.push(`Batch ${u+1}/${l}: ${m}`)}}return n&&n(100),s},update:e=>vn("/admin/photos/update.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}};function Mw(e,t,n){return new Promise((a,s)=>{const l=new XMLHttpRequest;l.open("POST",e,!0),l.withCredentials=!0,l.responseType="json",l.upload.onprogress=u=>{u.lengthComputable&&n&&n(Math.round(u.loaded/u.total*100))},l.onload=()=>{const u=l.status>=200&&l.status<300,f=l.response??null;if(u&&f&&!f.error){a(f);return}let h;
337f!=null&&f.error?h=String(f.error):!u&&l.status===413?h="Upload too large â the server rejected the request body (413). Try fewer photos at once.":u?h="Server returned an empty response â the batch likely exceeded the PHP post_max_size or max_file_uploads limit. Try fewer photos at once.":h=`Upload failed (${l.status}${l.statusText?" "+l.statusText:""})`,s(new Error(h))},l.onerror=()=>s(new Error("Network error â check that the API server is reachable.")),l.send(t)})}function kw(e,t){const[n,a]=x.useState(()=>typeof window>"u"?t:new URL(window.location.href).searchParams.get(e)??t),s=x.useCallback(l=>{if(a(l),typeof window>"u")return;const u=new URL(window.location.href);l===""||l===t?u.searchParams.delete(e):u.searchParams.set(e,l),window.history.replaceState({},"",u.toString())},[e,t]);return x.useEffect(()=>{const l=()=>{const u=new URL(window.location.href);a(u.searchParams.get(e)??t)};return window.addEventListener("popstate",l),()=>window.removeEventListener("popstate",l)},[e,t]),[n,s]}const A6=({photos:e,index:t,onClose:n,onIndex:a,eventTitle:s})=>{const l=x.useRef(null),u=x.useRef(null),f=x.useCallback(()=>a((t-1+e.length)%e.length),[t,e.length,a]),h=x.useCallback(()=>a((t+1)%e.length),[t,e.length,a]);x.useEffect(()=>{var b;const v=document.activeElement instanceof HTMLElement?document.activeElement:null;(b=l.current)==null||b.focus();const g=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=g,v==null||v.focus()}},[]),x.useEffect(()=>{const v=g=>{if(g.key==="Escape")n();else if(g.key==="ArrowLeft")f();else if(g.key==="ArrowRight")h();else if(g.key==="Tab"){const b=u.current;if(!b)return;const w=Array.from(b.querySelectorAll("button"));if(!w.length)return;const E=w[0],S=w[w.length-1],j=document.activeElement,N=j?b.contains(j):!1;g.shiftKey&&(!N||j===E)?(g.preventDefault(),S.focus()):!g.shiftKey&&(!N||j===S)&&(g.preventDefault(),E.focus())}};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[n,f,h]);const m=e[t];return m?c.jsxs(st.div,{ref:u,role:"dialog","aria-modal":"true","aria-label":"Photo viewer",initial:{opacity:0}
337,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] bg-black/95 flex items-center justify-center p-4",onClick:n,children:[c.jsx("div",{className:"fixed top-4 right-4 z-10",onClick:v=>v.stopPropagation(),children:c.jsx("button",{ref:l,onClick:n,"aria-label":"Close lightbox",className:"text-[#FAF6F0]/80 hover:text-[#FAF6F0] bg-black/40 hover:bg-black/60 rounded-full p-2 backdrop-blur-sm transition-colors",children:c.jsx(Yr,{size:20})})}),e.length>1&&c.jsxs("div",{className:"fixed top-4 left-4 z-10 text-[#FAF6F0]/70 text-sm bg-black/40 backdrop-blur-sm rounded-full px-3 py-1.5",children:[t+1," / ",e.length]}),e.length>1&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:v=>{v.stopPropagation(),f()},"aria-label":"Previous photo",className:"fixed left-4 top-1/2 -translate-y-1/2 text-[#FAF6F0]/80 hover:text-[#FAF6F0] z-10 bg-black/40 hover:bg-black/60 rounded-full p-2 backdrop-blur-sm transition-colors",children:c.jsx(oo,{size:28})}),c.jsx("button",{onClick:v=>{v.stopPropagation(),h()},"aria-label":"Next photo",className:"fixed right-4 top-1/2 -translate-y-1/2 text-[#FAF6F0]/80 hover:text-[#FAF6F0] z-10 bg-black/40 hover:bg-black/60 rounded-full p-2 backdrop-blur-sm transition-colors",children:c.jsx(Ur,{size:28})})]}),c.jsx(st.img,{initial:{scale:.88,opacity:0}
vendor: 18,236 bytes, line 337
337,animate:{scale:1,opacity:1},exit:{scale:.88,opacity:0},transition:{type:"spring",stiffness:280,damping:30},src:m.full_url,alt:m.caption??"Gallery photo",className:"max-w-full max-h-[90vh] object-contain rounded-xl shadow-2xl select-none",onClick:v=>v.stopPropagation(),draggable:!1},m.id),(m.caption||m.submitter_name)&&c.jsxs("div",{className:"fixed bottom-6 left-1/2 -translate-x-1/2 bg-black/60 backdrop-blur-sm text-[#FAF6F0] text-sm px-5 py-3 rounded-xl max-w-lg text-center",onClick:v=>v.stopPropagation(),children:[m.caption&&c.jsx("p",{children:m.caption}),m.submitter_name&&c.jsxs("p",{className:"text-[#FAF6F0]/60 text-xs mt-1",children:["â ",m.submitter_name]})]})]}):null};function ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Dw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ya(...e){return t=>{let n=!1;const a=e.map(s=>{const l=Dw(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<a.length;s++){const l=a[s];typeof l=="function"?l():Dw(e[s],null)}}}}function Fe(...e){return x.useCallback(ya(...e),e)}function M6(e,t){const n=x.createContext(t),a=l=>{const{children:u,...f}=l,h=x.useMemo(()=>f,Object.values(f));return c.jsx(n.Provider,{value:h,children:u})};a.displayName=e+"Provider";function s(l){const u=x.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[a,s]}function wn(e,t=[]){let n=[];function a(l,u){const f=x.createContext(u),h=n.length;n=[...n,u];const m=g=>{var N;const{scope:b,children:w,...E}=g,S=((N=b==null?void 0:b[e])==null?void 0:N[h])||f,j=x.useMemo(()=>E,Object.values(E));return c.jsx(S.Provider,{value:j,children:w})};m.displayName=l+"Provider";function v(g,b){var S;const w=((S=b==null?void 0:b[e])==null?void 0:S[h])||f,E=x.useContext(w);if(E)return E;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[m,v]}const s=()=>{const l=n.map(u=>x.createContext(u));return function(f){const h=(f==null?void 0:f[e])||l;return x.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return s.scopeName=e,[a,k6(s,...t)]}function k6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const u=a.reduce((f,{useScope:h,scopeName:m})=>{const g=h(l)[`__scope${m}`];return{...f,...g}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}var fn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},D6=n2[" useId ".trim().toString()]||(()=>{}),R6=0;function tn(e){const[t,n]=x.useState(D6());return fn(()=>{n(a=>a??String(R6++))},[e]),e||(t?`radix-${t}`:"")}var O6=n2[" useInsertionEffect ".trim().toString()]||fn;function Ir({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[s,l,u]=_6({defaultProp:t,onChange:n}),f=e!==void 0,h=f?e:s;{const v=x.useRef(e!==void 0);x.useEffect(()=>{const g=v.current;g!==f&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=f},[f,a])}const m=x.useCallback(v=>{var g;if(f){const b=P6(v)?v(e):v;b!==e&&((g=u.current)==null||g.call(u,b))}else l(v)},[f,e,l,u]);return[h,m]}function _6({defaultProp:e,onChange:t}){const[n,a]=x.useState(e),s=x.useRef(n),l=x.useRef(t);return O6(()=>{l.current=t},[t]),x.useEffect(()=>{var u;s.current!==n&&((u=l.current)==null||u.call(l,n),s.current=n)},[n,s]),[n,a,l]}function P6(e){return typeof e=="function"}function Ja(e){const t=L6(e),n=x.forwardRef((a,s)=>{const{children:l,...u}=a,f=x.Children.toArray(l),h=f.find(z6);if(h){const m=h.props.children,v=f.map(g=>g===h?x.Children.count(m)>1?x.Children.only(null):x.isValidElement(m)?m.props.children:null:g);return c.jsx(t,{...u,ref:s,children:x.isValidElement(m)?x.cloneElement(m,void 0,v):null})}return c.jsx(t,{...u,ref:s,children:l})});return n.displayName=`${e}.Slot`,n}var XE=Ja("Slot");function L6(e){const t=x.forwardRef((n,a)=>{const{children:s,...l}=n;if(x.isValidElement(s)){const u=F6(s),f=B6(l,s.props);return s.type!==x.Fragment&&(f.ref=a?ya(a,u):u),x.cloneElement(s,f)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KE=Symbol("radix.slottable");function ZE(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=KE,t}function z6(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KE}function B6(e,t){const n={...t};for(const a in t){const s=e[a],l=t[a];/^on[A-Z]/.test(a)?s&&l?n[a]=(...f)=>{const h=l(...f);return s(...f),h}:s&&(n[a]=s):a==="style"?n[a]={...s,...l}:a==="className"&&(n[a]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}function F6(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var V6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=V6.reduce((e,t)=>{const n=Ja(`Primitive.${t}`),a=x.forwardRef((s,l)=>{const{asChild:u,...f}=s,h=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(h,{...f,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function QE(e,t){e&&Pr.flushSync(()=>e.dispatchEvent(t))}function un(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function U6(e,t=globalThis==null?void 0:globalThis.document){const n=un(e);x.useEffect(()=>{const a=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[n,t])}var I6="DismissableLayer",sg="dismissableLayer.update",H6="dismissableLayer.pointerDownOutside",$6="dismissableLayer.focusOutside",Rw,JE=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ii=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:u,onDismiss:f,...h}=e,m=x.useContext(JE),[v,g]=x.useState(null),b=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=x.useState({}),E=Fe(t,O=>g(O)),S=Array.from(m.layers),[j]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),N=S.indexOf(j),A=v?S.indexOf(v):-1,k=m.layersWithOutsidePointerEventsDisabled.size>0,T=A>=N,M=G6(O=>{const D=O.target,L=[...m.branches].some(I=>I.contains(D));!T||L||(s==null||s(O),u==null||u(O),O.defaultPrevented||f==null||f())},b),_=q6(O=>{const D=O.target;[...m.branches].some(I=>I.contains(D))||(l==null||l(O),u==null||u(O),O.defaultPrevented||f==null||f())},b);return U6(O=>{A===m.layers.size-1&&(a==null||a(O),!O.defaultPrevented&&f&&(O.preventDefault(),f()))},b),x.useEffect(()=>{if(v)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Rw=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),Ow(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Rw)}},[v,b,n,m]),x.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),Ow())},[v,m]),x.useEffect(()=>{const O=()=>w({});return document.addEventListener(sg,O),()=>document.removeEventListener(sg,O)},[]),c.jsx(Ce.div,{...h,ref:E,style:{pointerEvents:k?T?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,_.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,M.onPointerDownCapture)})});ii.displayName=I6;var Y6="DismissableLayerBranch",W6=x.forwardRef((e,t)=>{const n=x.useContext(JE),a=x.useRef(null),s=Fe(t,a);return x.useEffect(()=>{const l=a.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),c.jsx(Ce.div,{...e,ref:s})});W6.displayName=Y6;function G6(e,t=globalThis==null?void 0:globalThis.document){const n=un(e),a=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const l=f=>{if(f.target&&!a.current){let h=function(){eC(H6,n,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=h,t.addEventListener("click",s.current,{once:!0})):h()}else t.removeEventListener("click",s.current);a.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function q6(e,t=globalThis==null?void 0:globalThis.document){const n=un(e),a=x.useRef(!1);return x.useEffect(()=>{const s=l=>{l.target&&!a.current&&eC($6,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Ow(){const e=new CustomEvent(sg);document.dispatchEvent(e)}function eC(e,t,n,{discrete:a}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),a?QE(s,l):s.dispatchEvent(l)}var op="focusScope.autoFocusOnMount",sp="focusScope.autoFocusOnUnmount",_w={bubbles:!1,cancelable:!0},X6="FocusScope",cc=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:l,...u}=e,[f,h]=x.useState(null),m=un(s),v=un(l),g=x.useRef(null),b=Fe(t,S=>h(S)),w=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(a){let S=function(k){if(w.paused||!f)return;const T=k.target;f.contains(T)?g.current=T:Xa(g.current,{select:!0})},j=function(k){if(w.paused||!f)return;const T=k.relatedTarget;T!==null&&(f.contains(T)||Xa(g.current,{select:!0}))},N=function(k){if(document.activeElement===document.body)for(const M of k)M.removedNodes.length>0&&Xa(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",j);const A=new MutationObserver(N);return f&&A.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",j),A.disconnect()}}},[a,f,w.paused]),x.useEffect(()=>{if(f){Lw.add(w);const S=document.activeElement;if(!f.contains(S)){const N=new CustomEvent(op,_w);f.addEventListener(op,m),f.dispatchEvent(N),N.defaultPrevented||(K6(tP(tC(f)),{select:!0}),document.activeElement===S&&Xa(f))}return()=>{f.removeEventListener(op,m),setTimeout(()=>{const N=new CustomEvent(sp,_w);f.addEventListener(sp,v),f.dispatchEvent(N),N.defaultPrevented||Xa(S??document.body,{select:!0}),f.removeEventListener(sp,v),Lw.remove(w)},0)}}},[f,m,v,w]);const E=x.useCallback(S=>{if(!n&&!a||w.paused)return;const j=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,N=document.activeElement;if(j&&N){const A=S.currentTarget,[k,T]=Z6(A);k&&T?!S.shiftKey&&N===T?(S.preventDefault(),n&&Xa(k,{select:!0})):S.shiftKey&&N===k&&(S.preventDefault(),n&&Xa(T,{select:!0})):N===A&&S.preventDefault()}},[n,a,w.paused]);return c.jsx(Ce.div,{tabIndex:-1,...u,ref:b,onKeyDown:E})});cc.displayName=X6;function K6(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(Xa(a,{select:t}),document.activeElement!==n)return}function Z6(e){const t=tC(e),n=Pw(t,e),a=Pw(t.reverse(),e);return[n,a]}function tC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Pw(e,t){for(const n of e)if(!Q6(n,{upTo:t}))return n}function Q6(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 J6(e){return e instanceof HTMLInputElement&&"select"in e}function Xa(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&J6(e)&&t&&e.select()}}var Lw=eP();function eP(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=zw(e,t),e.unshift(t)},remove(t){var n;e=zw(e,t),(n=e[0])==null||n.resume()}}}function zw(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function tP(e){return e.filter(t=>t.tagName!=="A")}var nP="Portal",li=x.forwardRef((e,t)=>{var f;const{container:n,...a}=e,[s,l]=x.useState(!1);fn(()=>l(!0),[]);const u=n||s&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?OE.createPortal(c.jsx(Ce.div,{...a,ref:t}),u):null});li.displayName=nP;function rP(e,t){return x.useReducer((n,a)=>t[n][a]??n,e)}var nn=e=>{const{present:t,children:n}=e,a=aP(t),s=typeof n=="function"?n({present:a.isPresent}):x.Children.only(n),l=Fe(a.ref,oP(s));return typeof n=="function"||a.isPresent?x.cloneElement(s,{ref:l}):null};nn.displayName="Presence";function aP(e){const[t,n]=x.useState(),a=x.useRef(null),s=x.useRef(e),l=x.useRef("none"),u=e?"mounted":"unmounted",[f,h]=rP(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const m=Hu(a.current);l.current=f==="mounted"?m:"none"},[f]),fn(()=>{const m=a.current,v=s.current;if(v!==e){const b=l.current,w=Hu(m);e?h("MOUNT"):w==="none"||(m==null?void 0:m.display)==="none"?h("UNMOUNT"):h(v&&b!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),fn(()=>{if(t){let m;const v=t.ownerDocument.defaultView??window,g=w=>{const S=Hu(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&S&&(h("ANIMATION_END"),!s.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",m=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},b=w=>{w.target===t&&(l.current=Hu(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{v.clearTimeout(m),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:x.useCallback(m=>{a.current=m?getComputedStyle(m):null,n(m)},[])}}function Hu(e){return(e==null?void 0:e.animationName)||"none"}function oP(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ip=0;function Jd(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Bw()),document.body.insertAdjacentElement("beforeend",e[1]??Bw()),ip++,()=>{ip===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ip--}},[])}function Bw(){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 _r=function(){return _r=Object.assign||function(t){for(var n,a=1,s=arguments.length;a<s;a++){n=arguments[a];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},_r.apply(this,arguments)};function nC(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]]);return n}function sP(e,t,n){if(n||arguments.length===2)for(var a=0,s=t.length,l;a<s;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}var cd="right-scroll-bar-position",ud="width-before-scroll-bar",iP="with-scroll-bars-hidden",lP="--removed-body-scroll-bar-size";function lp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cP(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var s=n.value;s!==a&&(n.value=a,n.callback(a,s))}}}})[0];return n.callback=t,n.facade}var uP=typeof window<"u"?x.useLayoutEffect:x.useEffect,Fw=new WeakMap;function dP(e,t){var n=cP(null,function(a){return e.forEach(function(s){return lp(s,a)})});return uP(function(){var a=Fw.get(n);if(a){var s=new Set(a),l=new Set(e),u=n.current;s.forEach(function(f){l.has(f)||lp(f,null)}),l.forEach(function(f){s.has(f)||lp(f,u)})}Fw.set(n,e)},[e]),n}function fP(e){return e}function hP(e,t){t===void 0&&(t=fP);var n=[],a=!1,s={read:function(){if(a)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(l){var u=t(l,a);return n.push(u),function(){n=n.filter(function(f){return f!==u})}},assignSyncMedium:function(l){for(a=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){a=!0;var u=[];if(n.length){var f=n;n=[],f.forEach(l),u=n}var h=function(){var v=u;u=[],v.forEach(l)},m=function(){return Promise.resolve().then(h)};m(),n={push:function(v){u.push(v),m()},filter:function(v){return u=u.filter(v),n}}}};return s}function mP(e){e===void 0&&(e={});var t=hP(null);return t.options=_r({async:!0,ssr:!1},e),t}var rC=function(e){var t=e.sideCar,n=nC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return x.createElement(a,_r({},n))};
vendor: 4,422 bytes, lines 337-374
337rC.isSideCarExport=!0;function pP(e,t){return e.useMedium(t),rC}var aC=mP(),cp=function(){},ef=x.forwardRef(function(e,t){var n=x.useRef(null),a=x.useState({onScrollCapture:cp,onWheelCapture:cp,onTouchMoveCapture:cp}),s=a[0],l=a[1],u=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,v=e.enabled,g=e.shards,b=e.sideCar,w=e.noIsolation,E=e.inert,S=e.allowPinchZoom,j=e.as,N=j===void 0?"div":j,A=e.gapMode,k=nC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=b,M=dP([n,t]),_=_r(_r({},k),s);return x.createElement(x.Fragment,null,v&&x.createElement(T,{sideCar:aC,removeScrollBar:m,shards:g,noIsolation:w,inert:E,setCallbacks:l,allowPinchZoom:!!S,lockRef:n,gapMode:A}),u?x.cloneElement(x.Children.only(f),_r(_r({},_),{ref:M})):x.createElement(N,_r({},_,{className:h,ref:M}),f))});ef.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ef.classNames={fullWidth:ud,zeroRight:cd};var gP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gP();return t&&e.setAttribute("nonce",t),e}function xP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vP())&&(xP(t,n),yP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wP=function(){var e=bP();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},oC=function(){var e=wP(),t=function(n){var a=n.styles,s=n.dynamic;return e(a,s),null};return t},SP={left:0,top:0,right:0,gap:0},up=function(e){return parseInt(e||"",10)||0},EP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[up(n),up(a),up(s)]},CP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SP;var t=EP(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},jP=oC(),Ys="data-scroll-locked",NP=function(e,t,n,a){var s=e.left,l=e.top,u=e.right,f=e.gap;return n===void 0&&(n="margin"),` 338 .`.concat(iP,` { 339 overflow: hidden `).concat(a,`; 340 padding-right: `).concat(f,"px ").concat(a,`; 341 } 342 body[`).concat(Ys,`] { 343 overflow: hidden `).concat(a,`; 344 overscroll-behavior: contain; 345 `).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&` 346 padding-left: `.concat(s,`px; 347 padding-top: `).concat(l,`px; 348 padding-right: `).concat(u,`px; 349 margin-left:0; 350 margin-top:0; 351 margin-right: `).concat(f,"px ").concat(a,`; 352 `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(a,";")].filter(Boolean).join(""),` 353 } 354 355 .`).concat(cd,` { 356 right: `).concat(f,"px ").concat(a,`; 357 } 358 359 .`).concat(ud,` { 360 margin-right: `).concat(f,"px ").concat(a,`; 361 } 362 363 .`).concat(cd," .").concat(cd,` { 364 right: 0 `).concat(a,`; 365 } 366 367 .`).concat(ud," .").concat(ud,` { 368 margin-right: 0 `).concat(a,`; 369 } 370 371 body[`).concat(Ys,`] { 372 `).concat(lP,": ").concat(f,`px; 373 } 374`)},Vw=function(){var e=parseInt(document.body.getAttribute(Ys)||"0",10);return isFinite(e)?e:0},TP=function(){x.useEffect(function(){return document.body.setAttribute(Ys,(Vw()+1).toString()),function(){var e=Vw()-1;e<=0?document.body.removeAttribute(Ys):document.body.setAttribute(Ys,e.toString())}},[])},AP=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;TP();var l=x.useMemo(function(){return CP(s)},[s]);return x.createElement(jP,{styles:NP(l,!t,s,n?"":"!important")})},ig=!1;if(typeof window<"u")try{var $u=Object.defineProperty({},"passive",{get:function(){return ig=!0,!0}});window.addEventListener("test",$u,$u),window.removeEventListener("test",$u,$u)}catch{ig=!1}var Rs=ig?{passive:!1}:!1,MP=function(e){return e.tagName==="TEXTAREA"},sC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!MP(e)&&n[t]==="visible")},kP=function(e){return sC(e,"overflowY")},DP=function(e){return sC(e,"overflowX")},Uw=function(e,t){var n=t.ownerDocument,a=t;
vendor: 9,301 bytes, lines 374-377
374do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=iC(e,a);if(s){var l=lC(e,a),u=l[1],f=l[2];if(u>f)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},RP=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},OP=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},iC=function(e,t){return e==="v"?kP(t):DP(t)},lC=function(e,t){return e==="v"?RP(t):OP(t)},_P=function(e,t){return e==="h"&&t==="rtl"?-1:1},PP=function(e,t,n,a,s){var l=_P(e,window.getComputedStyle(t).direction),u=l*a,f=n.target,h=t.contains(f),m=!1,v=u>0,g=0,b=0;do{var w=lC(e,f),E=w[0],S=w[1],j=w[2],N=S-j-l*E;(E||N)&&iC(e,f)&&(g+=N,b+=E),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(v&&Math.abs(g)<1||!v&&Math.abs(b)<1)&&(m=!0),m},Yu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Iw=function(e){return[e.deltaX,e.deltaY]},Hw=function(e){return e&&"current"in e?e.current:e},LP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zP=function(e){return` 375 .block-interactivity-`.concat(e,` {pointer-events: none;} 376 .allow-interactivity-`).concat(e,` {pointer-events: all;} 377`)},BP=0,Os=[];function FP(e){var t=x.useRef([]),n=x.useRef([0,0]),a=x.useRef(),s=x.useState(BP++)[0],l=x.useState(oC)[0],u=x.useRef(e);x.useEffect(function(){u.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=sP([e.lockRef.current],(e.shards||[]).map(Hw),!0).filter(Boolean);return S.forEach(function(j){return j.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=x.useCallback(function(S,j){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var N=Yu(S),A=n.current,k="deltaX"in S?S.deltaX:A[0]-N[0],T="deltaY"in S?S.deltaY:A[1]-N[1],M,_=S.target,O=Math.abs(k)>Math.abs(T)?"h":"v";if("touches"in S&&O==="h"&&_.type==="range")return!1;var D=Uw(O,_);if(!D)return!0;if(D?M=O:(M=O==="v"?"h":"v",D=Uw(O,_)),!D)return!1;if(!a.current&&"changedTouches"in S&&(k||T)&&(a.current=M),!M)return!0;var L=a.current||M;return PP(L,j,S,L==="h"?k:T)},[]),h=x.useCallback(function(S){var j=S;if(!(!Os.length||Os[Os.length-1]!==l)){var N="deltaY"in j?Iw(j):Yu(j),A=t.current.filter(function(M){return M.name===j.type&&(M.target===j.target||j.target===M.shadowParent)&&LP(M.delta,N)})[0];if(A&&A.should){j.cancelable&&j.preventDefault();return}if(!A){var k=(u.current.shards||[]).map(Hw).filter(Boolean).filter(function(M){return M.contains(j.target)}),T=k.length>0?f(j,k[0]):!u.current.noIsolation;T&&j.cancelable&&j.preventDefault()}}},[]),m=x.useCallback(function(S,j,N,A){var k={name:S,delta:j,target:N,should:A,shadowParent:VP(N)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(T){return T!==k})},1)},[]),v=x.useCallback(function(S){n.current=Yu(S),a.current=void 0},[]),g=x.useCallback(function(S){m(S.type,Iw(S),S.target,f(S,e.lockRef.current))},[]),b=x.useCallback(function(S){m(S.type,Yu(S),S.target,f(S,e.lockRef.current))},[]);x.useEffect(function(){return Os.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",h,Rs),document.addEventListener("touchmove",h,Rs),document.addEventListener("touchstart",v,Rs),function(){Os=Os.filter(function(S){return S!==l}),document.removeEventListener("wheel",h,Rs),document.removeEventListener("touchmove",h,Rs),document.removeEventListener("touchstart",v,Rs)}},[]);var w=e.removeScrollBar,E=e.inert;return x.createElement(x.Fragment,null,E?x.createElement(l,{styles:zP(s)}):null,w?x.createElement(AP,{gapMode:e.gapMode}):null)}function VP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const UP=pP(aC,FP);var uc=x.forwardRef(function(e,t){return x.createElement(ef,_r({},e,{ref:t,sideCar:UP}))});uc.classNames=ef.classNames;var IP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_s=new WeakMap,Wu=new WeakMap,Gu={},dp=0,cC=function(e){return e&&(e.host||cC(e.parentNode))},HP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=cC(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$P=function(e,t,n,a){var s=HP(t,Array.isArray(e)?e:[e]);Gu[n]||(Gu[n]=new WeakMap);var l=Gu[n],u=[],f=new Set,h=new Set(s),m=function(g){!g||f.has(g)||(f.add(g),m(g.parentNode))};s.forEach(m);var v=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(b){if(f.has(b))v(b);else try{var w=b.getAttribute(a),E=w!==null&&w!=="false",S=(_s.get(b)||0)+1,j=(l.get(b)||0)+1;_s.set(b,S),l.set(b,j),u.push(b),S===1&&E&&Wu.set(b,!0),j===1&&b.setAttribute(n,"true"),E||b.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return v(t),f.clear(),dp++,function(){u.forEach(function(g){var b=_s.get(g)-1,w=l.get(g)-1;_s.set(g,b),l.set(g,w),b||(Wu.has(g)||g.removeAttribute(a),Wu.delete(g)),w||g.removeAttribute(n)}),dp--,dp||(_s=new WeakMap,_s=new WeakMap,Wu=new WeakMap,Gu={})}},tf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=IP(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live]"))),$P(a,s,n,"aria-hidden")):function(){return null}},nf="Dialog",[uC,dC]=wn(nf),[YP,jr]=uC(nf),fC=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:s,onOpenChange:l,modal:u=!0}=e,f=x.useRef(null),h=x.useRef(null),[m,v]=Ir({prop:a,defaultProp:s??!1,onChange:l,caller:nf});return c.jsx(YP,{scope:t,triggerRef:f,contentRef:h,contentId:tn(),titleId:tn(),descriptionId:tn(),open:m,onOpenChange:v,onOpenToggle:x.useCallback(()=>v(g=>!g),[v]),modal:u,children:n})};fC.displayName=nf;var hC="DialogTrigger",mC=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=jr(hC,n),l=Fe(t,s.triggerRef);return c.jsx(Ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":jv(s.open),...a,ref:l,onClick:ge(e.onClick,s.onOpenToggle)})});mC.displayName=hC;var Ev="DialogPortal",[WP,pC]=uC(Ev,{forceMount:void 0}),gC=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:s}=e,l=jr(Ev,t);return c.jsx(WP,{scope:t,forceMount:n,children:x.Children.map(a,u=>c.jsx(nn,{present:n||l.open,children:c.jsx(li,{asChild:!0,container:s,children:u})}))})};gC.displayName=Ev;var Ed="DialogOverlay",vC=x.forwardRef((e,t)=>{const n=pC(Ed,e.__scopeDialog),{forceMount:a=n.forceMount,...s}=e,l=jr(Ed,e.__scopeDialog);return l.modal?c.jsx(nn,{present:a||l.open,children:c.jsx(qP,{...s,ref:t})}):null});vC.displayName=Ed;var GP=Ja("DialogOverlay.RemoveScroll"),qP=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=jr(Ed,n);return c.jsx(uc,{as:GP,allowPinchZoom:!0,shards:[s.contentRef],children:c.jsx(Ce.div,{"data-state":jv(s.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),Uo="DialogContent",xC=x.forwardRef((e,t)=>{const n=pC(Uo,e.__scopeDialog),{forceMount:a=n.forceMount,...s}=e,l=jr(Uo,e.__scopeDialog);return c.jsx(nn,{present:a||l.open,children:l.modal?c.jsx(XP,{...s,ref:t}):c.jsx(KP,{...s,ref:t})})});xC.displayName=Uo;var XP=x.forwardRef((e,t)=>{const n=jr(Uo,e.__scopeDialog),a=x.useRef(null),s=Fe(t,n.contentRef,a);return x.useEffect(()=>{const l=a.current;if(l)return tf(l)},[]),c.jsx(yC,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&l.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,l=>l.preventDefault())})}),KP=x.forwardRef((e,t)=>{const n=jr(Uo,e.__scopeDialog),a=x.useRef(!1),s=x.useRef(!1);return c.jsx(yC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(a.current||(f=n.triggerRef.current)==null||f.focus(),l.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:l=>{var h,m;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(a.current=!0,l.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=l.target;((m=n.triggerRef.current)==null?void 0:m.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&s.current&&l.preventDefault()}})}),yC=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=jr(Uo,n),h=x.useRef(null),m=Fe(t,h);return Jd(),c.jsxs(c.Fragment,{children:[c.jsx(cc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:l,children:c.jsx(ii,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":jv(f.open),...u,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(QP,{titleId:f.titleId}),c.jsx(e8,{contentRef:h,descriptionId:f.descriptionId})]})]})}),Cv="DialogTitle",bC=x.forwardRef((e,t)=>
377{const{__scopeDialog:n,...a}=e,s=jr(Cv,n);return c.jsx(Ce.h2,{id:s.titleId,...a,ref:t})});bC.displayName=Cv;var wC="DialogDescription",SC=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=jr(wC,n);return c.jsx(Ce.p,{id:s.descriptionId,...a,ref:t})});SC.displayName=wC;var EC="DialogClose",CC=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=jr(EC,n);return c.jsx(Ce.button,{type:"button",...a,ref:t,onClick:ge(e.onClick,()=>s.onOpenChange(!1))})});CC.displayName=EC;function jv(e){return e?"open":"closed"}var jC="DialogTitleWarning",[ZP,NC]=M6(jC,{contentName:Uo,titleName:Cv,docsSlug:"dialog"}),QP=({titleId:e})=>{const t=NC(jC),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 378 379If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 380 381For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},JP="DialogDescriptionWarning",e8=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${NC(JP).contentName}}.`;return x.useEffect(()=>{var l;const s=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},dc=fC,t8=mC,fc=gC,hc=vC,ci=xC,rf=bC,TC=SC,af=CC;function n8(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 AC=z.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}),mc=()=>{const e=z.useContext(AC);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};n8(`[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( 382[data-state=closed] 383){opacity:0}
383[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 r8(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function a8(){return Nv(/^Mac/)}function o8(){return Nv(/^iPhone/)}function $w(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function s8(){return Nv(/^iPad/)||a8()&&navigator.maxTouchPoints>1}function MC(){return o8()||s8()}function Nv(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const i8=24,l8=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Yw(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const fp=typeof document<"u"&&window.visualViewport;function Ww(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function kC(e){for(Ww(e)&&(e=e.parentElement);e&&!Ww(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const c8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let qu=0,hp;function u8(e={}){let{isDisabled:t}=e;l8(()=>{if(!t)return qu++,qu===1&&MC()&&(hp=d8()),()=>{qu--,qu===0&&(hp==null||hp())}},[t])}function d8(){let e,t=0,n=g=>{e=kC(g.target),!(e===document.documentElement&&e===document.body)&&(t=g.changedTouches[0].pageY)},a=g=>{if(!e||e===document.documentElement||e===document.body){g.preventDefault();return}let b=g.changedTouches[0].pageY,w=e.scrollTop,E=e.scrollHeight-e.clientHeight;E!==0&&((w<=0&&b>t||w>=E&&b<t)&&g.preventDefault(),t=b)},s=g=>{let b=g.target;lg(b)&&b!==document.activeElement&&(g.preventDefault(),b.style.transform="translateY(-2000px)",b.focus(),requestAnimationFrame(()=>{b.style.transform=""}))},l=g=>{let b=g.target;lg(b)&&(b.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{b.style.transform="",fp&&(fp.height<window.innerHeight?requestAnimationFrame(()=>{Gw(b)}):fp.addEventListener("resize",()=>Gw(b),{once:!0}))}))},u=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset,m=Yw(f8(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let v=Yw(vl(document,"touchstart",n,{passive:!1,capture:!0}),vl(document,"touchmove",a,{passive:!1,capture:!0}),vl(document,"touchend",s,{passive:!1,capture:!0}),vl(document,"focus",l,!0),vl(window,"scroll",u));return()=>{m(),v(),window.scrollTo(f,h)}}function f8(e,t,n){let a=e.style[t];return e.style[t]=n,()=>{e.style[t]=a}}function vl(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}function Gw(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=kC(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let a=n.getBoundingClientRect().top,s=e.getBoundingClientRect().top,l=e.getBoundingClientRect().bottom;const u=n.getBoundingClientRect().bottom+i8;l>u&&(n.scrollTop+=s-a)}e=n.parentElement}}function lg(e){return e instanceof HTMLInputElement&&!c8.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function h8(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function m8(...e){return t=>e.forEach(n=>h8(n,t))}function DC(...e){return x.useCallback(m8(...e),e)}const RC=new WeakMap;function Gt(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let a={};Object.entries(t).forEach(([s,l])=>{if(s.startsWith("--")){e.style.setProperty(s,l);return}a[s]=e.style[s],e.style[s]=l}),!n&&RC.set(e,a)}function p8(e,t){if(!e||!(e instanceof HTMLElement))return;let n=RC.get(e);n&&(e.style[t]=n[t])}const Ut=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Xu(e,t){if(!e)return null;const n=window.getComputedStyle(e),a=n.transform||n.webkitTransform||n.mozTransform;let s=a.match(/^matrix3d\((.+)\)$/);return s?parseFloat(s[1].split(", ")[Ut(t)?13:12]):(s=a.match(/^matrix\((.+)\)$/),s?parseFloat(s[1].split(", ")[Ut(t)?5:4]):null)}function g8(e){return 8*(Math.log(e+1)-2)}function mp(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function v8(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const St={DURATION:.5,EASE:[.32,.72,0,1]}
383,OC=.4,x8=.25,y8=100,_C=8,Ku=16,cg=26,pp="vaul-dragging";function PC(e){const t=z.useRef(e);return z.useEffect(()=>{t.current=e}),z.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function b8({defaultProp:e,onChange:t}){const n=z.useState(e),[a]=n,s=z.useRef(a),l=PC(t);return z.useEffect(()=>{s.current!==a&&(l(a),s.current=a)},[a,s,l]),n}function LC({prop:e,defaultProp:t,onChange:n=()=>{}}){const[a,s]=b8({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:a,f=PC(n),h=z.useCallback(m=>{if(l){const g=typeof m=="function"?m(e):m;g!==e&&f(g)}else s(m)},[l,e,s,f]);return[u,h]}function w8({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:a,overlayRef:s,fadeFromIndex:l,onSnapPointChange:u,direction:f="bottom",container:h,snapToSequentialPoint:m}){const[v,g]=LC({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[b,w]=z.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);z.useEffect(()=>{function O(){w({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},[]);const E=z.useMemo(()=>v===(n==null?void 0:n[n.length-1])||null,[n,v]),S=z.useMemo(()=>{var O;return(O=n==null?void 0:n.findIndex(D=>D===v))!=null?O:null},[n,v]),j=n&&n.length>0&&(l||l===0)&&!Number.isNaN(l)&&n[l]===v||!n,N=z.useMemo(()=>{const O=h?{width:h.getBoundingClientRect().width,height:h.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var D;return(D=n==null?void 0:n.map(L=>{const I=typeof L=="string";let Z=0;if(I&&(Z=parseInt(L,10)),Ut(f)){const U=I?Z:b?L*O.height:0;return b?f==="bottom"?O.height-U:-O.height+U:U}const ce=I?Z:b?L*O.width:0;return b?f==="right"?O.width-ce:-O.width+ce:ce}))!=null?D:[]},[n,b,h]),A=z.useMemo(()=>S!==null?N==null?void 0:N[S]:null,[N,S]),k=z.useCallback(O=>{var D;const L=(D=N==null?void 0:N.findIndex(I=>I===O))!=null?D:null;u(L),Gt(a.current,{transition:`transform ${St.DURATION}s cubic-bezier(${St.EASE.join(",")})`,transform:Ut(f)?`translate3d(0, ${O}px, 0)`:`translate3d(${O}px, 0, 0)`}),N&&L!==N.length-1&&l!==void 0&&L!==l&&L<l?Gt(s.current,{transition:`opacity ${St.DURATION}s cubic-bezier(${St.EASE.join(",")})`,opacity:"0"}):Gt(s.current,{transition:`opacity ${St.DURATION}s cubic-bezier(${St.EASE.join(",")})`,opacity:"1"}),g(n==null?void 0:n[Math.max(L,0)])},[a.current,n,N,l,s,g]);z.useEffect(()=>{if(v||e){var O;const D=(O=n==null?void 0:n.findIndex(L=>L===e||L===v))!=null?O:-1;N&&D!==-1&&typeof N[D]=="number"&&k(N[D])}},[v,e,n,N,k]);function T({draggedDistance:O,closeDrawer:D,velocity:L,dismissible:I}){if(l===void 0)return;const Z=f==="bottom"||f==="right"?(A??0)-O:(A??0)+O,ce=S===l-1,U=S===0,Q=O>0;if(ce&&Gt(s.current,{transition:`opacity ${St.DURATION}s cubic-bezier(${St.EASE.join(",")})`}),!m&&L>2&&!Q){I?D():k(N[0]);return}if(!m&&L>2&&Q&&N&&n){k(N[n.length-1]);return}const le=N==null?void 0:N.reduce((H,V)=>typeof H!="number"||typeof V!="number"?H:Math.abs(V-Z)<Math.abs(H-Z)?V:H),F=Ut(f)?window.innerHeight:window.innerWidth;if(L>OC&&Math.abs(O)<F*.4){const H=Q?1:-1;if(H>0&&E&&n){k(N[n.length-1]);return}if(U&&H<0&&I&&D(),S===null)return;k(N[S+H]);return}k(le)}function M({draggedDistance:O}){if(A===null)return;const D=f==="bottom"||f==="right"?A-O:A+O;(f==="bottom"||f==="right")&&D<N[N.length-1]||(f==="top"||f==="left")&&D>N[N.length-1]||Gt(a.current,{transform:Ut(f)?`translate3d(0, ${D}px, 0)`:`translate3d(${D}px, 0, 0)`})}function _(O,D){if(!n||typeof S!="number"||!N||l===void 0)return null;const L=S===l-1;if(S>=l&&D)return 0;if(L&&!D)return 1;if(!j&&!L)return null;const Z=L?S+1:S-1,ce=L?N[Z]-N[Z-1]:N[Z+1]-N[Z],U=O/Math.abs(ce);return L?1-U:U}return{isLastSnapPoint:E,activeSnapPoint:v,shouldFade:j,getPercentageDragged:_,setActiveSnapPoint:g,activeSnapPointIndex:S,onRelease:T,onDrag:M,snapPointsOffset:N}}const S8=()=>()=>{};function E8(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:a,noBodyStyles:s}=mc(),l=z.useRef(null),u=x.useMemo(()=>document.body.style.backgroundColor,[]);function f(){return(window.innerWidth-cg)/window.innerWidth}z.useEffect(()=>{if(t&&n){l.current&&clearTimeout(l.current);const h=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");
383if(!h)return;v8(a&&!s?mp(document.body,{background:"black"}):S8,mp(h,{transformOrigin:Ut(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${St.DURATION}s`,transitionTimingFunction:`cubic-bezier(${St.EASE.join(",")})`}));const m=mp(h,{borderRadius:`${_C}px`,overflow:"hidden",...Ut(e)?{transform:`scale(${f()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${f()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{m(),l.current=window.setTimeout(()=>{u?document.body.style.background=u:document.body.style.removeProperty("background")},St.DURATION*1e3)}}},[t,n,u])}let xl=null;function C8({isOpen:e,modal:t,nested:n,hasBeenOpened:a,preventScrollRestoration:s,noBodyStyles:l}){const[u,f]=z.useState(()=>typeof window<"u"?window.location.href:""),h=z.useRef(0),m=z.useCallback(()=>{if($w()&&xl===null&&e&&!l){xl={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:g,innerHeight:b}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-h.current}px`,left:`${-g}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const w=b-window.innerHeight;w&&h.current>=b&&(document.body.style.top=`${-(h.current+w)}px`)}),300)}},[e]),v=z.useCallback(()=>{if($w()&&xl!==null&&!l){const g=-parseInt(document.body.style.top,10),b=-parseInt(document.body.style.left,10);Object.assign(document.body.style,xl),window.requestAnimationFrame(()=>{if(s&&u!==window.location.href){f(window.location.href);return}window.scrollTo(b,g)}),xl=null}},[u]);return z.useEffect(()=>{function g(){h.current=window.scrollY}return g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}},[]),z.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||v()}},[t,v]),z.useEffect(()=>{n||!a||(e?(!window.matchMedia("(display-mode: standalone)").matches&&m(),t||window.setTimeout(()=>{v()},500)):v())},[e,a,u,t,n,m,v]),{restorePositionSetting:v}}function j8({open:e,onOpenChange:t,children:n,onDrag:a,onRelease:s,snapPoints:l,shouldScaleBackground:u=!1,setBackgroundColorOnScale:f=!0,closeThreshold:h=x8,scrollLockTimeout:m=y8,dismissible:v=!0,handleOnly:g=!1,fadeFromIndex:b=l&&l.length-1,activeSnapPoint:w,setActiveSnapPoint:E,fixed:S,modal:j=!0,onClose:N,nested:A,noBodyStyles:k=!1,direction:T="bottom",defaultOpen:M=!1,disablePreventScroll:_=!0,snapToSequentialPoint:O=!1,preventScrollRestoration:D=!1,repositionInputs:L=!0,onAnimationEnd:I,container:Z,autoFocus:ce=!1}){var U,Q;const[le=!1,F]=LC({defaultProp:M,prop:e,onChange:me=>{t==null||t(me),!me&&!A&&En(),setTimeout(()=>{I==null||I(me)},St.DURATION*1e3),me&&!j&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),me||(document.body.style.pointerEvents="auto")}}),[H,V]=z.useState(!1),[J,P]=z.useState(!1),[te,Y]=z.useState(!1),G=z.useRef(null),X=z.useRef(null),ne=z.useRef(null),se=z.useRef(null),re=z.useRef(null),ie=z.useRef(!1),pe=z.useRef(null),fe=z.useRef(0),je=z.useRef(!1),Ne=z.useRef(!M),qe=z.useRef(0),ye=z.useRef(null),gt=z.useRef(((U=ye.current)==null?void 0:U.getBoundingClientRect().height)||0),ct=z.useRef(((Q=ye.current)==null?void 0:Q.getBoundingClientRect().width)||0),vt=z.useRef(0),hn=z.useCallback(me=>{l&&me===Mt.length-1&&(X.current=new Date)},[]),{activeSnapPoint:dt,activeSnapPointIndex:yt,setActiveSnapPoint:Sn,onRelease:pt,snapPointsOffset:Mt,onDrag:kt,shouldFade:Nr,getPercentageDragged:Ln}=w8({snapPoints:l,activeSnapPointProp:w,setActiveSnapPointProp:E,drawerRef:ye,fadeFromIndex:b,overlayRef:G,onSnapPointChange:hn,direction:T,container:Z,snapToSequentialPoint:O});u8({isDisabled:!le||J||!j||te||!H||!L||!_});const{restorePositionSetting:En}=C8({isOpen:le,modal:j,nested:A??!1,hasBeenOpened:H,preventScrollRestoration:D,noBodyStyles:k});function Dt(){return(window.innerWidth-cg)/window.innerWidth}function Cn(me){var Te,xe;!v&&!l||ye.current&&!ye.current.contains(me.target)||(gt.current=((Te=ye.current)==null?void 0:Te.getBoundingClientRect().height)||0,ct.current=((xe=ye.current)==null?void 0:xe.getBoundingClientRect().width)||0,P(!0),ne.current=ne
383w Date,MC()&&window.addEventListener("touchend",()=>ie.current=!1,{once:!0}),me.target.setPointerCapture(me.pointerId),fe.current=Ut(T)?me.pageY:me.pageX)}function rn(me,Te){var xe;let ve=me;const Ae=(xe=window.getSelection())==null?void 0:xe.toString(),de=ye.current?Xu(ye.current,T):null,Oe=new Date;if(ve.tagName==="SELECT"||ve.hasAttribute("data-vaul-no-drag")||ve.closest("[data-vaul-no-drag]"))return!1;if(T==="right"||T==="left")return!0;if(X.current&&Oe.getTime()-X.current.getTime()<500)return!1;if(de!==null&&(T==="bottom"?de>0:de<0))return!0;if(Ae&&Ae.length>0)return!1;if(re.current&&Oe.getTime()-re.current.getTime()<m&&de===0||Te)return re.current=Oe,!1;for(;ve;){if(ve.scrollHeight>ve.clientHeight){if(ve.scrollTop!==0)return re.current=new Date,!1;if(ve.getAttribute("role")==="dialog")return!0}ve=ve.parentNode}return!0}function an(me){if(ye.current&&J){const Te=T==="bottom"||T==="right"?1:-1,xe=(fe.current-(Ut(T)?me.pageY:me.pageX))*Te,ve=xe>0,Ae=l&&!v&&!ve;if(Ae&&yt===0)return;const de=Math.abs(xe),Oe=document.querySelector("[data-vaul-drawer-wrapper]"),Ve=T==="bottom"||T==="top"?gt.current:ct.current;let ze=de/Ve;const et=Ln(de,ve);if(et!==null&&(ze=et),Ae&&ze>=1||!ie.current&&!rn(me.target,ve))return;if(ye.current.classList.add(pp),ie.current=!0,Gt(ye.current,{transition:"none"}),Gt(G.current,{transition:"none"}),l&&kt({draggedDistance:xe}),ve&&!l){const Le=g8(xe),Lt=Math.min(Le*-1,0)*Te;Gt(ye.current,{transform:Ut(T)?`translate3d(0, ${Lt}px, 0)`:`translate3d(${Lt}px, 0, 0)`});return}const Ue=1-ze;if((Nr||b&&yt===b-1)&&(a==null||a(me,ze),Gt(G.current,{opacity:`${Ue}`,transition:"none"},!0)),Oe&&G.current&&u){const Le=Math.min(Dt()+ze*(1-Dt()),1),Lt=8-ze*8,rt=Math.max(0,14-ze*14);Gt(Oe,{borderRadius:`${Lt}px`,transform:Ut(T)?`scale(${Le}) translate3d(0, ${rt}px, 0)`:`scale(${Le}) translate3d(${rt}px, 0, 0)`,transition:"none"},!0)}if(!l){const Le=de*Te;Gt(ye.current,{transform:Ut(T)?`translate3d(0, ${Le}px, 0)`:`translate3d(${Le}px, 0, 0)`})}}}z.useEffect(()=>{window.requestAnimationFrame(()=>{Ne.current=!0})},[]),z.useEffect(()=>{var me;function Te(){if(!ye.current||!L)return;const xe=document.activeElement;if(lg(xe)||je.current){var ve;const Ae=((ve=window.visualViewport)==null?void 0:ve.height)||0,de=window.innerHeight;let Oe=de-Ae;const Ve=ye.current.getBoundingClientRect().height||0,ze=Ve>de*.8;vt.current||(vt.current=Ve);const et=ye.current.getBoundingClientRect().top;if(Math.abs(qe.current-Oe)>60&&(je.current=!je.current),l&&l.length>0&&Mt&&yt){const Ue=Mt[yt]||0;Oe+=Ue}if(qe.current=Oe,Ve>Ae||je.current){const Ue=ye.current.getBoundingClientRect().height;let Le=Ue;Ue>Ae&&(Le=Ae-(ze?et:cg)),S?ye.current.style.height=`${Ue-Math.max(Oe,0)}px`:ye.current.style.height=`${Math.max(Le,Ae-et)}px`}else r8()||(ye.current.style.height=`${vt.current}px`);l&&l.length>0&&!je.current?ye.current.style.bottom="0px":ye.current.style.bottom=`${Math.max(Oe,0)}px`}}return(me=window.visualViewport)==null||me.addEventListener("resize",Te),()=>{var xe;return(xe=window.visualViewport)==null?void 0:xe.removeEventListener("resize",Te)}},[yt,l,Mt]);function It(me){Rt(),N==null||N(),me||F(!1),setTimeout(()=>{l&&Sn(l[0])},St.DURATION*1e3)}function kn(){if(!ye.current)return;const me=document.querySelector("[data-vaul-drawer-wrapper]"),Te=Xu(ye.current,T);Gt(ye.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${St.DURATION}s cubic-bezier(${St.EASE.join(",")})`}),Gt(G.current,{transition:`opacity ${St.DURATION}s cubic-bezier(${St.EASE.join(",")})`,opacity:"1"}),u&&Te&&Te>0&&le&&Gt(me,{borderRadius:`${_C}px`,overflow:"hidden",...Ut(T)?{transform:`scale(${Dt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Dt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${St.DURATION}s`,transitionTimingFunction:`cubic-bezier(${St.EASE.join(",")})`},!0)}function Rt(){!J||!ye.current||(ye.current.classList.remove(pp),ie.current=!1,P(!1),se.current=new Date)}function qn(me){if(!J||!ye.current)return;ye.current.classList.remove(pp),ie.current=!1,P(!1),se.current=ne
383w Date;const Te=Xu(ye.current,T);if(!me||!rn(me.target,!1)||!Te||Number.isNaN(Te)||ne.current===null)return;const xe=se.current.getTime()-ne.current.getTime(),ve=fe.current-(Ut(T)?me.pageY:me.pageX),Ae=Math.abs(ve)/xe;if(Ae>.05&&(Y(!0),setTimeout(()=>{Y(!1)},200)),l){pt({draggedDistance:ve*(T==="bottom"||T==="right"?1:-1),closeDrawer:It,velocity:Ae,dismissible:v}),s==null||s(me,!0);return}if(T==="bottom"||T==="right"?ve>0:ve<0){kn(),s==null||s(me,!0);return}if(Ae>OC){It(),s==null||s(me,!1);return}var de;const Oe=Math.min((de=ye.current.getBoundingClientRect().height)!=null?de:0,window.innerHeight);var Ve;const ze=Math.min((Ve=ye.current.getBoundingClientRect().width)!=null?Ve:0,window.innerWidth),et=T==="left"||T==="right";if(Math.abs(Te)>=(et?ze:Oe)*h){It(),s==null||s(me,!1);return}s==null||s(me,!0),kn()}z.useEffect(()=>(le&&(Gt(document.documentElement,{scrollBehavior:"auto"}),X.current=new Date),()=>{p8(document.documentElement,"scrollBehavior")}),[le]);function Ht(me){const Te=me?(window.innerWidth-Ku)/window.innerWidth:1,xe=me?-16:0;pe.current&&window.clearTimeout(pe.current),Gt(ye.current,{transition:`transform ${St.DURATION}s cubic-bezier(${St.EASE.join(",")})`,transform:Ut(T)?`scale(${Te}) translate3d(0, ${xe}px, 0)`:`scale(${Te}) translate3d(${xe}px, 0, 0)`}),!me&&ye.current&&(pe.current=setTimeout(()=>{const ve=Xu(ye.current,T);Gt(ye.current,{transition:"none",transform:Ut(T)?`translate3d(0, ${ve}px, 0)`:`translate3d(${ve}px, 0, 0)`})},500))}function Ot(me,Te){if(Te<0)return;const xe=(window.innerWidth-Ku)/window.innerWidth,ve=xe+Te*(1-xe),Ae=-16+Te*Ku;Gt(ye.current,{transform:Ut(T)?`scale(${ve}) translate3d(0, ${Ae}px, 0)`:`scale(${ve}) translate3d(${Ae}px, 0, 0)`,transition:"none"})}function zn(me,Te){const xe=Ut(T)?window.innerHeight:window.innerWidth,ve=Te?(xe-Ku)/xe:1,Ae=Te?-16:0;Te&&Gt(ye.current,{transition:`transform ${St.DURATION}s cubic-bezier(${St.EASE.join(",")})`,transform:Ut(T)?`scale(${ve}) translate3d(0, ${Ae}px, 0)`:`scale(${ve}) translate3d(${Ae}px, 0, 0)`})}return z.useEffect(()=>{j||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[j]),z.createElement(dc,{defaultOpen:M,onOpenChange:me=>{!v&&!me||(me?V(!0):It(!0),F(me))},open:le},z.createElement(AC.Provider,{value:{activeSnapPoint:dt,snapPoints:l,setActiveSnapPoint:Sn,drawerRef:ye,overlayRef:G,onOpenChange:t,onPress:Cn,onRelease:qn,onDrag:an,dismissible:v,shouldAnimate:Ne,handleOnly:g,isOpen:le,isDragging:J,shouldFade:Nr,closeDrawer:It,onNestedDrag:Ot,onNestedOpenChange:Ht,onNestedRelease:zn,keyboardIsOpen:je,modal:j,snapPointsOffset:Mt,activeSnapPointIndex:yt,direction:T,shouldScaleBackground:u,setBackgroundColorOnScale:f,noBodyStyles:k,container:Z,autoFocus:ce}},n))}const zC=z.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:a,onRelease:s,shouldFade:l,isOpen:u,modal:f,shouldAnimate:h}=mc(),m=DC(t,n),v=a&&a.length>0;if(!f)return null;const g=z.useCallback(b=>s(b),[s]);return z.createElement(hc,{onMouseUp:g,ref:m,"data-vaul-overlay":"","data-vaul-snap-points":u&&v?"true":"false","data-vaul-snap-points-overlay":u&&l?"true":"false","data-vaul-animate":h!=null&&h.current?"true":"false",...e})});zC.displayName="Drawer.Overlay";const BC=z.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...a},s){const{drawerRef:l,onPress:u,onRelease:f,onDrag:h,keyboardIsOpen:m,snapPointsOffset:v,activeSnapPointIndex:g,modal:b,isOpen:w,direction:E,snapPoints:S,container:j,handleOnly:N,shouldAnimate:A,autoFocus:k}=mc(),[T,M]=z.useState(!1),_=DC(s,l),O=z.useRef(null),D=z.useRef(null),L=z.useRef(!1),I=S&&S.length>0;E8();const Z=(U,Q,le=0)=>{if(L.current)return!0;const F=Math.abs(U.y),H=Math.abs(U.x),V=H>F,J=["bottom","right"].includes(Q)?1:-1;if(Q==="left"||Q==="right"){if(!(U.x*J<0)&&H>=0&&H<=le)return V}else if(!(U.y*J<0)&&F>=0&&F<=le)return!V;return L.current=!0,!0};z.useEffect(()=>{I&&window.requestAnimationFrame(()=>{M(!0)})},[]);function ce(U){O.current=null,L.current=!1,f(U)}return z.createElement(ci,{"data-vaul-drawer-direction":E,"data-vaul-drawer":"","data-vaul-delayed-snap-points":T?"true":"false","data-vaul-snap-points":w&&I?"true":"false","data-vaul-custom-container":j?"true":"false","data-vaul-animate":A!=null&&A.current?"true":"false",...a,ref:_,style:v&&v.length>0?{"--snap-point-height":`${v[g??0]}px`,...t}:t,onPointerDown:U=>
383{N||(a.onPointerDown==null||a.onPointerDown.call(a,U),O.current={x:U.pageX,y:U.pageY},u(U))},onOpenAutoFocus:U=>{n==null||n(U),k||U.preventDefault()},onPointerDownOutside:U=>{if(e==null||e(U),!b||U.defaultPrevented){U.preventDefault();return}m.current&&(m.current=!1)},onFocusOutside:U=>{if(!b){U.preventDefault();return}},onPointerMove:U=>{if(D.current=U,N||(a.onPointerMove==null||a.onPointerMove.call(a,U),!O.current))return;const Q=U.pageY-O.current.y,le=U.pageX-O.current.x,F=U.pointerType==="touch"?10:2;Z({x:le,y:Q},E,F)?h(U):(Math.abs(le)>F||Math.abs(Q)>F)&&(O.current=null)},onPointerUp:U=>{a.onPointerUp==null||a.onPointerUp.call(a,U),O.current=null,L.current=!1,f(U)},onPointerOut:U=>{a.onPointerOut==null||a.onPointerOut.call(a,U),ce(D.current)},onContextMenu:U=>{a.onContextMenu==null||a.onContextMenu.call(a,U),D.current&&ce(D.current)}})});BC.displayName="Drawer.Content";const N8=250,T8=120,A8=z.forwardRef(function({preventCycle:e=!1,children:t,...n},a){const{closeDrawer:s,isDragging:l,snapPoints:u,activeSnapPoint:f,setActiveSnapPoint:h,dismissible:m,handleOnly:v,isOpen:g,onPress:b,onDrag:w}=mc(),E=z.useRef(null),S=z.useRef(!1);function j(){if(S.current){k();return}window.setTimeout(()=>{N()},T8)}function N(){if(l||e||S.current){k();return}if(k(),!u||u.length===0){m||s();return}if(f===u[u.length-1]&&m){s();return}const M=u.findIndex(O=>O===f);
383if(M===-1)return;const _=u[M+1];h(_)}function A(){E.current=window.setTimeout(()=>{S.current=!0},N8)}function k(){E.current&&window.clearTimeout(E.current),S.current=!1}return z.createElement("div",{onClick:j,onPointerCancel:k,onPointerDown:T=>{v&&b(T),A()},onPointerMove:T=>{v&&w(T)},ref:a,"data-vaul-drawer-visible":g?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},z.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});A8.displayName="Drawer.Handle";function M8(e){const t=mc(),{container:n=t.container,...a}=e;return z.createElement(fc,{container:n,...a})}const yl={Root:j8,Content:BC,Overlay:zC,Portal:M8,Title:rf};var FC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),k8="VisuallyHidden",VC=x.forwardRef((e,t)=>c.jsx(Ce.span,{...e,ref:t,style:{...FC,...e.style}}));VC.displayName=k8;var D8=VC;function Tv(e){const t=e+"CollectionProvider",[n,a]=wn(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:j,children:N}=S,A=z.useRef(null),k=z.useRef(new Map).current;return c.jsx(s,{scope:j,itemMap:k,collectionRef:A,children:N})};u.displayName=t;const f=e+"CollectionSlot",h=Ja(f),m=z.forwardRef((S,j)=>{const{scope:N,children:A}=S,k=l(f,N),T=Fe(j,k.collectionRef);return c.jsx(h,{ref:T,children:A})});m.displayName=f;const v=e+"CollectionItemSlot",g="data-radix-collection-item",b=Ja(v),w=z.forwardRef((S,j)=>{const{scope:N,children:A,...k}=S,T=z.useRef(null),M=Fe(j,T),_=l(v,N);return z.useEffect(()=>(_.itemMap.set(T,{ref:T,...k}),()=>void _.itemMap.delete(T))),c.jsx(b,{[g]:"",ref:M,children:A})});w.displayName=v;function E(S){const j=l(e+"CollectionConsumer",S);return z.useCallback(()=>{const A=j.collectionRef.current;if(!A)return[];const k=Array.from(A.querySelectorAll(`[${g}]`));return Array.from(j.itemMap.values()).sort((_,O)=>k.indexOf(_.ref.current)-k.indexOf(O.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:u,Slot:m,ItemSlot:w},E,a]}var R8=x.createContext(void 0);function ui(e){const t=x.useContext(R8);return e||t||"ltr"}var UC="AlertDialog",[O8,WW]=wn(UC,[dC]),Sa=dC(),IC=e=>{const{__scopeAlertDialog:t,...n}=e,a=Sa(t);return c.jsx(dc,{...a,...n,modal:!0})};IC.displayName=UC;var _8="AlertDialogTrigger",P8=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,s=Sa(n);return c.jsx(t8,{...s,...a,ref:t})});P8.displayName=_8;var L8="AlertDialogPortal",HC=e=>{const{__scopeAlertDialog:t,...n}=e,a=Sa(t);return c.jsx(fc,{...a,...n})};HC.displayName=L8;var z8="AlertDialogOverlay",$C=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,s=Sa(n);return c.jsx(hc,{...s,...a,ref:t})});$C.displayName=z8;var Ws="AlertDialogContent",[B8,F8]=O8(Ws),V8=ZE("AlertDialogContent"),YC=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:a,...s}=e,l=Sa(n),u=x.useRef(null),f=Fe(t,u),h=x.useRef(null);return c.jsx(ZP,{contentName:Ws,titleName:WC,docsSlug:"alert-dialog",children:c.jsx(B8,{scope:n,cancelRef:h,children:c.jsxs(ci,{role:"alertdialog",...l,...s,ref:f,onOpenAutoFocus:ge(s.onOpenAutoFocus,m=>{var v;m.preventDefault(),(v=h.current)==null||v.focus({preventScroll:!0})}),onPointerDownOutside:m=>m.preventDefault(),onInteractOutside:m=>m.preventDefault(),children:[c.jsx(V8,{children:a}),c.jsx(I8,{contentRef:u})]})})})});YC.displayName=Ws;var WC="AlertDialogTitle",GC=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,s=Sa(n);return c.jsx(rf,{...s,...a,ref:t})});GC.displayName=WC;var qC="AlertDialogDescription",XC=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,s=Sa(n);return c.jsx(TC,{...s,...a,ref:t})});XC.displayName=qC;var U8="AlertDialogAction",KC=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,s=Sa(n);return c.jsx(af,{...s,...a,ref:t})});KC.displayName=U8;var ZC="AlertDialogCancel",QC=x.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...a}=e,{cancelRef:s}=F8(ZC,n),l=Sa(n),u=Fe(t,s);return c.jsx(af,{...l,...a,ref:u})});QC.displayName=ZC;var I8=({contentRef:e})=>{const t=`\`${Ws}\` requires a description for the component to be accessible for screen reader users. 384
vendor: 14,198 bytes, lines 385-389
385You can add a description to the \`${Ws}\` by passing a \`${qC}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 386 387Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ws}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 388 389For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return x.useEffect(()=>{var a;document.getElementById((a=e.current)==null?void 0:a.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},H8=IC,$8=HC,Y8=$C,W8=YC,G8=KC,q8=QC,X8=GC,K8=XC;function Av(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Mv(e){const[t,n]=x.useState(void 0);return fn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let u,f;if("borderBoxSize"in l){const h=l.borderBoxSize,m=Array.isArray(h)?h[0]:h;u=m.inlineSize,f=m.blockSize}else u=e.offsetWidth,f=e.offsetHeight;n({width:u,height:f})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}const Z8=["top","right","bottom","left"],eo=Math.min,Yn=Math.max,Cd=Math.round,Zu=Math.floor,Vr=e=>({x:e,y:e}),Q8={left:"right",right:"left",bottom:"top",top:"bottom"},J8={start:"end",end:"start"};function ug(e,t,n){return Yn(e,eo(t,n))}function ba(e,t){return typeof e=="function"?e(t):e}function wa(e){return e.split("-")[0]}function di(e){return e.split("-")[1]}function kv(e){return e==="x"?"y":"x"}function Dv(e){return e==="y"?"height":"width"}const eL=new Set(["top","bottom"]);function Lr(e){return eL.has(wa(e))?"y":"x"}function Rv(e){return kv(Lr(e))}function tL(e,t,n){n===void 0&&(n=!1);const a=di(e),s=Rv(e),l=Dv(s);let u=s==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=jd(u)),[u,jd(u)]}function nL(e){const t=jd(e);return[dg(e),t,dg(t)]}function dg(e){return e.replace(/start|end/g,t=>J8[t])}const qw=["left","right"],Xw=["right","left"],rL=["top","bottom"],aL=["bottom","top"];function oL(e,t,n){switch(e){case"top":case"bottom":return n?t?Xw:qw:t?qw:Xw;case"left":case"right":return t?rL:aL;default:return[]}}function sL(e,t,n,a){const s=di(e);let l=oL(wa(e),n==="start",a);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(dg)))),l}function jd(e){return e.replace(/left|right|bottom|top/g,t=>Q8[t])}function iL(e){return{top:0,right:0,bottom:0,left:0,...e}}function JC(e){return typeof e!="number"?iL(e):{top:e,right:e,bottom:e,left:e}}function Nd(e){const{x:t,y:n,width:a,height:s}=e;return{width:a,height:s,top:n,left:t,right:t+a,bottom:n+s,x:t,y:n}}function Kw(e,t,n){let{reference:a,floating:s}=e;const l=Lr(t),u=Rv(t),f=Dv(u),h=wa(t),m=l==="y",v=a.x+a.width/2-s.width/2,g=a.y+a.height/2-s.height/2,b=a[f]/2-s[f]/2;let w;switch(h){case"top":w={x:v,y:a.y-s.height};break;case"bottom":w={x:v,y:a.y+a.height};break;case"right":w={x:a.x+a.width,y:g};break;case"left":w={x:a.x-s.width,y:g};break;default:w={x:a.x,y:a.y}}switch(di(t)){case"start":w[u]-=b*(n&&m?-1:1);break;case"end":w[u]+=b*(n&&m?-1:1);break}return w}const lL=async(e,t,n)=>{const{placement:a="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:g}=Kw(m,a,h),b=a,w={},E=0;for(let S=0;S<f.length;S++){const{name:j,fn:N}=f[S],{x:A,y:k,data:T,reset:M}=await N({x:v,y:g,initialPlacement:a,placement:b,strategy:s,middlewareData:w,rects:m,platform:u,elements:{reference:e,floating:t}});v=A??v,g=k??g,w={...w,[j]:{...w[j],...T}},M&&E<=50&&(E++,typeof M=="object"&&(M.placement&&(b=M.placement),M.rects&&(m=M.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):M.rects),{x:v,y:g}=Kw(m,b,h)),S=-1)}return{x:v,y:g,placement:b,strategy:s,middlewareData:w}};async function ql(e,t){var n;t===void 0&&(t={});const{x:a,y:s,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:b=!1,padding:w=0}=ba(t,e),E=JC(w),j=f[b?g==="floating"?"reference":"floating":g],N=Nd(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(j)))==null||n?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:m,rootBoundary:v,strategy:h})),A=g==="floating"?{x:a,y:s,width:u.floating.width,height:u.floating.height}:u.reference,k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),T=await(l.isElement==null?void 0:l.isElement(k))?await(l.getScale==null?void 0:l.getScale(k))||{x:1,y:1}:{x:1,y:1},M=Nd(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:A,offsetParent:k,strategy:h}):A);return{top:(N.top-M.top+E.top)/T.y,bottom:(M.bottom-N.bottom+E.bottom)/T.y,left:(N.left-M.left+E.left)/T.x,right:(M.right-N.right+E.right)/T.x}}const cL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:s,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:m,padding:v=0}=ba(e,t)||{};if(m==null)return{};const g=JC(v),b={x:n,y:a},w=Rv(s),E=Dv(w),S=await u.getDimensions(m),j=w==="y",N=j?"top":"left",A=j?"bottom":"right",k=j?"clientHeight":"clientWidth",T=l.reference[E]+l.reference[w]-b[w]-l.floating[E],M=b[w]-l.reference[w],_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let O=_?_[k]:0;(!O||!await(u.isElement==null?void 0:u.isElement(_)))&&(O=f.floating[k]||l.floating[E]);const D=T/2-M/2,L=O/2-S[E]/2-1,I=eo(g[N],L),Z=eo(g[A],L),ce=I,U=O-S[E]-Z,Q=O/2-S[E]/2+D,le=ug(ce,Q,U),F=!h.arrow&&di(s)!=null&&Q!==le&&l.reference[E]/2-(Q<ce?I:Z)-S[E]/2<0,H=F?Q<ce?Q-ce:Q-U:0;return{[w]:b[w]+H,data:{[w]:le,centerOffset:Q-le-H,...F&&{alignmentOffset:H}},reset:F}}}),uL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:s,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:m}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...j}=ba(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const N=wa(s),A=Lr(f),k=wa(f)===f,T=await(h.isRTL==null?void 0:h.isRTL(m.floating)),M=b||(k||!S?[jd(f)]:nL(f)),_=E!=="none";!b&&_&&M.push(...sL(f,S,E,T));const O=[f,...M],D=await ql(t,j),L=[];let I=((a=l.flip)==null?void 0:a.overflows)||[];if(v&&L.push(D[N]),g){const Q=tL(s,u,T);L.push(D[Q[0]],D[Q[1]])}if(I=[...I,{placement:s,overflows:L}],!L.every(Q=>Q<=0)){var Z,ce;const Q=(((Z=l.flip)==null?void 0:Z.index)||0)+1,le=O[Q];if(le&&(!(g==="alignment"?A!==Lr(le):!1)||I.every(V=>V.overflows[0]>0&&Lr(V.placement)===A)))return{data:{index:Q,overflows:I},reset:{placement:le}};let F=(ce=I.filter(H=>H.overflows[0]<=0).sort((H,V)=>H.overflows[1]-V.overflows[1])[0])==null?void 0:ce.placement;if(!F)switch(w){case"bestFit":{var U;const H=(U=I.filter(V=>{if(_){const J=Lr(V.placement);return J===A||J==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(J=>J>0).reduce((J,P)=>J+P,0)]).sort((V,J)=>V[1]-J[1])[0])==null?void 0:U[0];H&&(F=H);break}case"initialPlacement":F=f;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function Zw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qw(e){return Z8.some(t=>e[t]>=0)}const dL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:a="referenceHidden",...s}=ba(e,t);switch(a){case"referenceHidden":{const l=await ql(t,{...s,elementContext:"reference"}),u=Zw(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Qw(u)}}}case"escaped":{const l=await ql(t,{...s,altBoundary:!0}),u=Zw(l,n.floating);return{data:{escapedOffsets:u,escaped:Qw(u)}}}default:return{}}}}},ej=new Set(["left","top"]);async function fL(e,t){const{placement:n,platform:a,elements:s}=e,l=await(a.isRTL==null?void 0:a.isRTL(s.floating)),u=wa(n),f=di(n),h=Lr(n)==="y",m=ej.has(u)?-1:1,v=l&&h?-1:1,g=ba(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof E=="number"&&(w=f==="end"?E*-1:E),h?{x:w*v,y:b*m}:{x:b*m,y:w*v}}const hL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:s,y:l,placement:u,middlewareData:f}=t,h=await fL(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:s+h.x,y:l+h.y,data:{...h,placement:u}}}}},mL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:j=>{let{x:N,y:A}=j;return{x:N,y:A}}},...h}=ba(e,t),m={x:n,y:a},v=await ql(t,h),g=Lr(wa(s)),b=kv(g);let w=m[b],E=m[g];if(l){const j=b==="y"?"top":"left",N=b==="y"?"bottom":"right",A=w+v[j],k=w-v[N];w=ug(A,w,k)}if(u){const j=g==="y"?"top":"left",N=g==="y"?"bottom":"right",A=E+v[j],k=E-v[N];E=ug(A,E,k)}const S=f.fn({...t,[b]:w,[g]:E});return{...S,data:{x:S.x-n,y:S.y-a,enabled:{[b]:l,[g]:u}}}}}},pL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:s,rects:l,middlewareData:u}=t,{offset:f=0,mainAxis:h=!0,crossAxis:m=!0}=ba(e,t),v={x:n,y:a},g=Lr(s),b=kv(g);let w=v[b],E=v[g];const S=ba(f,t),j=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const k=b==="y"?"height":"width",T=l.reference[b]-l.floating[k]+j.mainAxis,M=l.reference[b]+l.reference[k]-j.mainAxis;w<T?w=T:w>M&&(w=M)}if(m){var N,A;const k=b==="y"?"width":"height",T=ej.has(wa(s)),M=l.reference[g]-l.floating[k]+(T&&((N=u.offset)==null?void 0:N[g])||0)+(T?0:j.crossAxis),_=l.reference[g]+l.reference[k]+(T?0:((A=u.offset)==null?void 0:A[g])||0)-(T?j.crossAxis:0);E<M?E=M:E>_&&(E=_)}return{[b]:w,[g]:E}}}},gL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:s,rects:l,platform:u,elements:f}=t,{apply:h=()=>{},...m}=ba(e,t),v=await ql(t,m),g=wa(s),b=di(s),w=Lr(s)==="y",{width:E,height:S}=l.floating;let j,N;g==="top"||g==="bottom"?(j=g,N=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(N=g,j=b==="end"?"top":"bottom");const A=S-v.top-v.bottom,k=E-v.left-v.right,T=eo(S-v[j],A),M=eo(E-v[N],k),_=!t.middlewareData.shift;let O=T,D=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=k),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(O=A),_&&!b){const I=Yn(v.left,0),Z=Yn(v.right,0),ce=Yn(v.top,0),U=Yn(v.bottom,0);w?D=E-2*(I!==0||Z!==0?I+Z:Yn(v.left,v.right)):O=S-2*(ce!==0||U!==0?ce+U:Yn(v.top,v.bottom))}await h({...t,availableWidth:D,availableHeight:O});const L=await u.getDimensions(f.floating);return E!==L.width||S!==L.height?{reset:{rects:!0}}:{}}}};function of(){return typeof window<"u"}function fi(e){return tj(e)?(e.nodeName||"").toLowerCase():"#document"}function Gn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wr(e){var t;return(t=(tj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tj(e){return of()?e instanceof Node||e instanceof Gn(e).Node:!1}function wr(e){return of()?e instanceof Element||e instanceof Gn(e).Element:!1}function Hr(e){return of()?e instanceof HTMLElement||e instanceof Gn(e).HTMLElement:!1}function Jw(e){return!of()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gn(e).ShadowRoot}const vL=new Set(["inline","contents"]);function pc(e){const{overflow:t,overflowX:n,overflowY:a,display:s}=Sr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!vL.has(s)}const xL=new Set(["table","td","th"]);function yL(e){return xL.has(fi(e))}const bL=[":popover-open",":modal"];function sf(e){return bL.some(t=>{try{return e.matches(t)}catch{return!1}})}const wL=["transform","translate","scale","rotate","perspective"],SL=["transform","translate","scale","rotate","perspective","filter"],EL=["paint","layout","strict","content"];function Ov(e){const t=_v(),n=wr(e)?Sr(e):e;return wL.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||SL.some(a=>(n.willChange||"").includes(a))||EL.some(a=>(n.contain||"").includes(a))}function CL(e){let t=to(e);for(;Hr(t)&&!Qs(t);){if(Ov(t))return t;if(sf(t))return null;t=to(t)}return null}function _v(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const jL=new Set(["html","body","#document"]);function Qs(e){return jL.has(fi(e))}function Sr(e){return Gn(e).getComputedStyle(e)}function lf(e){return wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function to(e){if(fi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jw(e)&&e.host||Wr(e);return Jw(t)?t.host:t}function nj(e){const t=to(e);return Qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hr(t)&&pc(t)?t:nj(t)}function Xl(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=nj(e),l=s===((a=e.ownerDocument)==null?void 0:a.body),u=Gn(s);if(l){const f=fg(u);return t.concat(u,u.visualViewport||[],pc(s)?s:[],f&&n?Xl(f):[])}return t.concat(s,Xl(s,[],n))}function fg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rj(e){const t=Sr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=Hr(e),l=s?e.offsetWidth:n,u=s?e.offsetHeight:a,f=Cd(n)!==l||Cd(a)!==u;return f&&(n=l,a=u),{width:n,height:a,$:f}}function Pv(e){return wr(e)?e:e.contextElement}function Gs(e){const t=Pv(e);if(!Hr(t))return Vr(1);const n=t.getBoundingClientRect(),{width:a,height:s,$:l}=rj(t);let u=(l?Cd(n.width):n.width)/a,f=(l?Cd(n.height):n.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const NL=Vr(0);function aj(e){const t=Gn(e);
vendor: 4,094 bytes, line 389
389return!_v()||!t.visualViewport?NL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TL(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gn(e)?!1:t}function Io(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=Pv(e);let u=Vr(1);t&&(a?wr(a)&&(u=Gs(a)):u=Gs(e));const f=TL(l,n,a)?aj(l):Vr(0);let h=(s.left+f.x)/u.x,m=(s.top+f.y)/u.y,v=s.width/u.x,g=s.height/u.y;if(l){const b=Gn(l),w=a&&wr(a)?Gn(a):a;let E=b,S=fg(E);for(;S&&a&&w!==E;){const j=Gs(S),N=S.getBoundingClientRect(),A=Sr(S),k=N.left+(S.clientLeft+parseFloat(A.paddingLeft))*j.x,T=N.top+(S.clientTop+parseFloat(A.paddingTop))*j.y;h*=j.x,m*=j.y,v*=j.x,g*=j.y,h+=k,m+=T,E=Gn(S),S=fg(E)}}return Nd({width:v,height:g,x:h,y:m})}function Lv(e,t){const n=lf(e).scrollLeft;return t?t.left+n:Io(Wr(e)).left+n}function oj(e,t,n){n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=a.left+t.scrollLeft-(n?0:Lv(e,a)),l=a.top+t.scrollTop;return{x:s,y:l}}function AL(e){let{elements:t,rect:n,offsetParent:a,strategy:s}=e;const l=s==="fixed",u=Wr(a),f=t?sf(t.floating):!1;if(a===u||f&&l)return n;let h={scrollLeft:0,scrollTop:0},m=Vr(1);const v=Vr(0),g=Hr(a);if((g||!g&&!l)&&((fi(a)!=="body"||pc(u))&&(h=lf(a)),Hr(a))){const w=Io(a);m=Gs(a),v.x=w.x+a.clientLeft,v.y=w.y+a.clientTop}const b=u&&!g&&!l?oj(u,h,!0):Vr(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+v.x+b.x,y:n.y*m.y-h.scrollTop*m.y+v.y+b.y}}function ML(e){return Array.from(e.getClientRects())}function kL(e){const t=Wr(e),n=lf(e),a=e.ownerDocument.body,s=Yn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=Yn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let u=-n.scrollLeft+Lv(e);const f=-n.scrollTop;return Sr(a).direction==="rtl"&&(u+=Yn(t.clientWidth,a.clientWidth)-s),{width:s,height:l,x:u,y:f}}function DL(e,t){const n=Gn(e),a=Wr(e),s=n.visualViewport;let l=a.clientWidth,u=a.clientHeight,f=0,h=0;if(s){l=s.width,u=s.height;const m=_v();(!m||m&&t==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}return{width:l,height:u,x:f,y:h}}const RL=new Set(["absolute","fixed"]);function OL(e,t){const n=Io(e,!0,t==="fixed"),a=n.top+e.clientTop,s=n.left+e.clientLeft,l=Hr(e)?Gs(e):Vr(1),u=e.clientWidth*l.x,f=e.clientHeight*l.y,h=s*l.x,m=a*l.y;return{width:u,height:f,x:h,y:m}}function eS(e,t,n){let a;if(t==="viewport")a=DL(e,n);else if(t==="document")a=kL(Wr(e));else if(wr(t))a=OL(t,n);else{const s=aj(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Nd(a)}function sj(e,t){const n=to(e);return n===t||!wr(n)||Qs(n)?!1:Sr(n).position==="fixed"||sj(n,t)}function _L(e,t){const n=t.get(e);if(n)return n;let a=Xl(e,[],!1).filter(f=>wr(f)&&fi(f)!=="body"),s=null;const l=Sr(e).position==="fixed";let u=l?to(e):e;for(;wr(u)&&!Qs(u);){const f=Sr(u),h=Ov(u);!h&&f.position==="fixed"&&(s=null),(l?!h&&!s:!h&&f.position==="static"&&!!s&&RL.has(s.position)||pc(u)&&!h&&sj(e,u))?a=a.filter(v=>v!==u):s=f,u=to(u)}return t.set(e,a),a}function PL(e){let{element:t,boundary:n,rootBoundary:a,strategy:s}=e;const u=[...n==="clippingAncestors"?sf(t)?[]:_L(t,this._c):[].concat(n),a],f=u[0],h=u.reduce((m,v)=>{const g=eS(t,v,s);return m.top=Yn(g.top,m.top),m.right=eo(g.right,m.right),m.bottom=eo(g.bottom,m.bottom),m.left=Yn(g.left,m.left),m},eS(t,f,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function LL(e){const{width:t,height:n}=rj(e);return{width:t,height:n}}function zL(e,t,n){const a=Hr(t),s=Wr(t),l=n==="fixed",u=Io(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const h=Vr(0);function m(){h.x=Lv(s)}if(a||!a&&!l)if((fi(t)!=="body"||pc(s))&&(f=lf(t)),a){const w=Io(t,!0,l,t);h.x=w.x+t.clientLeft,h.y=w.y+t.clientTop}else s&&m();l&&!a&&s&&m();const v=s&&!a&&!l?oj(s,f):Vr(0),g=u.left+f.scrollLeft-h.x-v.x,b=u.top+f.scrollTop-h.y-v.y;return{x:g,y:b,width:u.width,height:u.height}}function gp(e){return Sr(e).position==="static"}function tS(e,t){if(!Hr(e)||Sr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Wr(e)===n&&(n=n.ownerDocument.body),n}function ij(e,t){const n=Gn(e);if(sf(e))return n;if(!Hr(e)){let s=to(e);for(;s&&!Qs(s);
vendor: 32,595 bytes, line 389
389){if(wr(s)&&!gp(s))return s;s=to(s)}return n}let a=tS(e,t);for(;a&&yL(a)&&gp(a);)a=tS(a,t);return a&&Qs(a)&&gp(a)&&!Ov(a)?n:a||CL(e)||n}const BL=async function(e){const t=this.getOffsetParent||ij,n=this.getDimensions,a=await n(e.floating);return{reference:zL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function FL(e){return Sr(e).direction==="rtl"}const VL={convertOffsetParentRelativeRectToViewportRelativeRect:AL,getDocumentElement:Wr,getClippingRect:PL,getOffsetParent:ij,getElementRects:BL,getClientRects:ML,getDimensions:LL,getScale:Gs,isElement:wr,isRTL:FL};function lj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function UL(e,t){let n=null,a;const s=Wr(e);function l(){var f;clearTimeout(a),(f=n)==null||f.disconnect(),n=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),l();const m=e.getBoundingClientRect(),{left:v,top:g,width:b,height:w}=m;if(f||t(),!b||!w)return;const E=Zu(g),S=Zu(s.clientWidth-(v+b)),j=Zu(s.clientHeight-(g+w)),N=Zu(v),k={rootMargin:-E+"px "+-S+"px "+-j+"px "+-N+"px",threshold:Yn(0,eo(1,h))||1};let T=!0;function M(_){const O=_[0].intersectionRatio;if(O!==h){if(!T)return u();O?u(!1,O):a=setTimeout(()=>{u(!1,1e-7)},1e3)}O===1&&!lj(m,e.getBoundingClientRect())&&u(),T=!1}try{n=new IntersectionObserver(M,{...k,root:s.ownerDocument})}catch{n=new IntersectionObserver(M,k)}n.observe(e)}return u(!0),l}function IL(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,m=Pv(e),v=s||l?[...m?Xl(m):[],...Xl(t)]:[];v.forEach(N=>{s&&N.addEventListener("scroll",n,{passive:!0}),l&&N.addEventListener("resize",n)});const g=m&&f?UL(m,n):null;let b=-1,w=null;u&&(w=new ResizeObserver(N=>{let[A]=N;A&&A.target===m&&w&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=w)==null||k.observe(t)})),n()}),m&&!h&&w.observe(m),w.observe(t));let E,S=h?Io(e):null;h&&j();function j(){const N=Io(e);S&&!lj(S,N)&&n(),S=N,E=requestAnimationFrame(j)}return n(),()=>{var N;v.forEach(A=>{s&&A.removeEventListener("scroll",n),l&&A.removeEventListener("resize",n)}),g==null||g(),(N=w)==null||N.disconnect(),w=null,h&&cancelAnimationFrame(E)}}const HL=hL,$L=mL,YL=uL,WL=gL,GL=dL,nS=cL,qL=pL,XL=(e,t,n)=>{const a=new Map,s={platform:VL,...n},l={...s.platform,_c:a};return lL(e,t,{...s,platform:l})};var KL=typeof document<"u",ZL=function(){},dd=KL?x.useLayoutEffect:ZL;function Td(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,a,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!Td(e[a],t[a]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,s[a]))return!1;for(a=n;a--!==0;){const l=s[a];if(!(l==="_owner"&&e.$$typeof)&&!Td(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function cj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rS(e,t){const n=cj(e);return Math.round(t*n)/n}function vp(e){const t=x.useRef(e);return dd(()=>{t.current=e}),t}function QL(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:s,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:h,open:m}=e,[v,g]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=x.useState(a);Td(b,a)||w(a);const[E,S]=x.useState(null),[j,N]=x.useState(null),A=x.useCallback(V=>{V!==_.current&&(_.current=V,S(V))},[]),k=x.useCallback(V=>{V!==O.current&&(O.current=V,N(V))},[]),T=l||E,M=u||j,_=x.useRef(null),O=x.useRef(null),D=x.useRef(v),L=h!=null,I=vp(h),Z=vp(s),ce=vp(m),U=x.useCallback(()=>{if(!_.current||!O.current)return;const V={placement:t,strategy:n,middleware:b};Z.current&&(V.platform=Z.current),XL(_.current,O.current,V).then(J=>{const P={...J,isPositioned:ce.current!==!1};Q.current&&!Td(D.current,P)&&(D.current=P,Pr.flushSync(()=>{g(P)}))})},[b,t,n,Z,ce]);dd(()=>{m===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(V=>({...V,isPositioned:!1})))},[m]);const Q=x.useRef(!1);dd(()=>(Q.current=!0,()=>{Q.current=!1}),[]),dd(()=>{if(T&&(_.current=T),M&&(O.current=M),T&&M){if(I.current)return I.current(T,M,U);U()}},[T,M,U,I,L]);const le=x.useMemo(()=>({reference:_,floating:O,setReference:A,setFloating:k}),[A,k]),F=x.useMemo(()=>({reference:T,floating:M}),[T,M]),H=x.useMemo(()=>{const V={position:n,left:0,top:0};if(!F.floating)return V;const J=rS(F.floating,v.x),P=rS(F.floating,v.y);return f?{...V,transform:"translate("+J+"px, "+P+"px)",...cj(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:P}},[n,f,F.floating,v.x,v.y]);return x.useMemo(()=>({...v,update:U,refs:le,elements:F,floatingStyles:H}),[v,U,le,F,H])}const JL=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:s}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?nS({element:a.current,padding:s}).fn(n):{}:a?nS({element:a,padding:s}).fn(n):{}}}},ez=(e,t)=>({...HL(e),options:[e,t]}),tz=(e,t)=>({...$L(e),options:[e,t]}),nz=(e,t)=>({...qL(e),options:[e,t]}),rz=(e,t)=>({...YL(e),options:[e,t]}),az=(e,t)=>({...WL(e),options:[e,t]}),oz=(e,t)=>({...GL(e),options:[e,t]}),sz=(e,t)=>({...JL(e),options:[e,t]});var iz="Arrow",uj=x.forwardRef((e,t)=>{const{children:n,width:a=10,height:s=5,...l}=e;return c.jsx(Ce.svg,{...l,ref:t,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});uj.displayName=iz;var lz=uj,zv="Popper",[dj,io]=wn(zv),[cz,fj]=dj(zv),hj=e=>{const{__scopePopper:t,children:n}=e,[a,s]=x.useState(null);return c.jsx(cz,{scope:t,anchor:a,onAnchorChange:s,children:n})};hj.displayName=zv;var mj="PopperAnchor",pj=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...s}=e,l=fj(mj,n),u=x.useRef(null),f=Fe(t,u),h=x.useRef(null);return x.useEffect(()=>{const m=h.current;h.current=(a==null?void 0:a.current)||u.current,m!==h.current&&l.onAnchorChange(h.current)}),a?null:c.jsx(Ce.div,{...s,ref:f})});pj.displayName=mj;var Bv="PopperContent",[uz,dz]=dj(Bv),gj=x.forwardRef((e,t)=>{var re,ie,pe,fe,je,Ne;const{__scopePopper:n,side:a="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:E,...S}=e,j=fj(Bv,n),[N,A]=x.useState(null),k=Fe(t,qe=>A(qe)),[T,M]=x.useState(null),_=Mv(T),O=(_==null?void 0:_.width)??0,D=(_==null?void 0:_.height)??0,L=a+(l!=="center"?"-"+l:""),I=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},Z=Array.isArray(m)?m:[m],ce=Z.length>0,U={padding:I,boundary:Z.filter(hz),altBoundary:ce},{refs:Q,floatingStyles:le,placement:F,isPositioned:H,middlewareData:V}=QL({strategy:"fixed",placement:L,whileElementsMounted:(...qe)=>IL(...qe,{animationFrame:w==="always"}),elements:{reference:j.anchor},middleware:[ez({mainAxis:s+D,alignmentAxis:u}),h&&tz({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?nz():void 0,...U}),h&&rz({...U}),az({...U,apply:({elements:qe,rects:ye,availableWidth:gt,availableHeight:ct})=>{const{width:vt,height:hn}=ye.reference,dt=qe.floating.style;dt.setProperty("--radix-popper-available-width",`${gt}px`),dt.setProperty("--radix-popper-available-height",`${ct}px`),dt.setProperty("--radix-popper-anchor-width",`${vt}px`),dt.setProperty("--radix-popper-anchor-height",`${hn}px`)}}),T&&sz({element:T,padding:f}),mz({arrowWidth:O,arrowHeight:D}),b&&oz({strategy:"referenceHidden",...U})]}),[J,P]=yj(F),te=un(E);fn(()=>{H&&(te==null||te())},[H,te]);const Y=(re=V.arrow)==null?void 0:re.x,G=(ie=V.arrow)==null?void 0:ie.y,X=((pe=V.arrow)==null?void 0:pe.centerOffset)!==0,[ne,se]=x.useState();return fn(()=>{N&&se(window.getComputedStyle(N).zIndex)},[N]),c.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:H?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[(fe=V.transformOrigin)==null?void 0:fe.x,(je=V.transformOrigin)==null?void 0:je.y].join(" "),...((Ne=V.hide)==null?void 0:Ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(uz,{scope:n,placedSide:J,onArrowChange:M,arrowX:Y,arrowY:G,shouldHideArrow:X,children:c.jsx(Ce.div,{"data-side":J,"data-align":P,...S,ref:k,style:{...S.style,animation:H?void 0:"none"}})})})});gj.displayName=Bv;var vj="PopperArrow",fz={top:"bottom",right:"left",bottom:"top",left:"right"},xj=x.forwardRef(function(t,n){const{__scopePopper:a,...s}=t,l=dz(vj,a),u=fz[l.placedSide];return c.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:c.jsx(lz,{...s,ref:n,style:{...s.style,display:"block"}})})});xj.displayName=vj;function hz(e){return e!==null}var mz=e=>({name:"transformOrigin",options:e,fn(t){var j,N,A;const{placement:n,rects:a,middlewareData:s}=t,u=((j=s.arrow)==null?void 0:j.centerOffset)!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[m,v]=yj(n),g={start:"0%",center:"50%",end:"100%"}[v],b=(((N=s.arrow)==null?void 0:N.x)??0)+f/2,w=(((A=s.arrow)==null?void 0:A.y)??0)+h/2;let E="",S="";return m==="bottom"?(E=u?g:`${b}px`,S=`${-h}px`):m==="top"?(E=u?g:`${b}px`,S=`${a.floating.height+h}px`):m==="right"?(E=`${-h}px`,S=u?g:`${w}px`):m==="left"&&(E=`${a.floating.width+h}px`,S=u?g:`${w}px`),{data:{x:E,y:S}}}});function yj(e){const[t,n="center"]=e.split("-");return[t,n]}var cf=hj,gc=pj,uf=gj,df=xj,xp="rovingFocusGroup.onEntryFocus",pz={bubbles:!1,cancelable:!0},vc="RovingFocusGroup",[hg,bj,gz]=Tv(vc),[vz,hi]=wn(vc,[gz]),[xz,yz]=vz(vc),wj=x.forwardRef((e,t)=>c.jsx(hg.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(hg.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(bz,{...e,ref:t})})}));wj.displayName=vc;var bz=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:s=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...g}=e,b=x.useRef(null),w=Fe(t,b),E=ui(l),[S,j]=Ir({prop:u,defaultProp:f??null,onChange:h,caller:vc}),[N,A]=x.useState(!1),k=un(m),T=bj(n),M=x.useRef(!1),[_,O]=x.useState(0);return x.useEffect(()=>{const D=b.current;if(D)return D.addEventListener(xp,k),()=>D.removeEventListener(xp,k)},[k]),c.jsx(xz,{scope:n,orientation:a,dir:E,loop:s,currentTabStopId:S,onItemFocus:x.useCallback(D=>j(D),[j]),onItemShiftTab:x.useCallback(()=>A(!0),[]),onFocusableItemAdd:x.useCallback(()=>O(D=>D+1),[]),onFocusableItemRemove:x.useCallback(()=>O(D=>D-1),[]),children:c.jsx(Ce.div,{tabIndex:N||_===0?-1:0,"data-orientation":a,...g,ref:w,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{M.current=!0}),onFocus:ge(e.onFocus,D=>{const L=!M.current;if(D.target===D.currentTarget&&L&&!N){const I=new CustomEvent(xp,pz);if(D.currentTarget.dispatchEvent(I),!I.defaultPrevented){const Z=T().filter(F=>F.focusable),ce=Z.find(F=>F.active),U=Z.find(F=>F.id===S),le=[ce,U,...Z].filter(Boolean).map(F=>F.ref.current);Cj(le,v)}}M.current=!1}),onBlur:ge(e.onBlur,()=>A(!1))})})}),Sj="RovingFocusGroupItem",Ej=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:s=!1,tabStopId:l,children:u,...f}=e,h=tn(),m=l||h,v=yz(Sj,n),g=v.currentTabStopId===m,b=bj(n),{onFocusableItemAdd:w,onFocusableItemRemove:E,currentTabStopId:S}=v;return x.useEffect(()=>{if(a)return w(),()=>E()},[a,w,E]),c.jsx(hg.ItemSlot,{scope:n,id:m,focusable:a,active:s,children:c.jsx(Ce.span,{tabIndex:g?0:-1,"data-orientation":v.orientation,...f,ref:t,onMouseDown:ge(e.onMouseDown,j=>{a?v.onItemFocus(m):j.preventDefault()}),onFocus:ge(e.onFocus,()=>v.onItemFocus(m)),onKeyDown:ge(e.onKeyDown,j=>{if(j.key==="Tab"&&j.shiftKey){v.onItemShiftTab();return}if(j.target!==j.currentTarget)return;const N=Ez(j,v.orientation,v.dir);if(N!==void 0){if(j.metaKey||j.ctrlKey||j.altKey||j.shiftKey)return;j.preventDefault();let k=b().filter(T=>T.focusable).map(T=>T.ref.current);if(N==="last")k.reverse();else if(N==="prev"||N==="next"){N==="prev"&&k.reverse();const T=k.indexOf(j.currentTarget);k=v.loop?Cz(k,T+1):k.slice(T+1)}setTimeout(()=>Cj(k))}}),children:typeof u=="function"?u({isCurrentTabStop:g,hasTabStop:S!=null}):u})})});Ej.displayName=Sj;var wz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Sz(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ez(e,t,n){const a=Sz(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return wz[a]}function Cj(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function Cz(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var Fv=wj,Vv=Ej,mg=["Enter"," "],jz=["ArrowDown","PageUp","Home"],jj=["ArrowUp","PageDown","End"],Nz=[...jz,...jj],Tz={ltr:[...mg,"ArrowRight"],rtl:[...mg,"ArrowLeft"]},Az={ltr:["ArrowLeft"],rtl:["ArrowRight"]},xc="Menu",[Kl,Mz,kz]=Tv(xc),[Go,Nj]=wn(xc,[kz,io,hi]),ff=io(),Tj=hi(),[Dz,qo]=Go(xc),[Rz,yc]=Go(xc),Aj=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:s,onOpenChange:l,modal:u=!0}=e,f=ff(t),[h,m]=x.useState(null),v=x.useRef(!1),g=un(l),b=ui(s);return x.useEffect(()=>{const w=()=>{v.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>v.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),c.jsx(cf,{...f,children:c.jsx(Dz,{scope:t,open:n,onOpenChange:g,content:h,onContentChange:m,children:c.jsx(Rz,{scope:t,onClose:x.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:v,dir:b,modal:u,children:a})})})};Aj.displayName=xc;var Oz="MenuAnchor",Uv=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,s=ff(n);return c.jsx(gc,{...s,...a,ref:t})});Uv.displayName=Oz;var Iv="MenuPortal",[_z,Mj]=Go(Iv,{forceMount:void 0}),kj=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:s}=e,l=qo(Iv,t);return c.jsx(_z,{scope:t,forceMount:n,children:c.jsx(nn,{present:n||l.open,children:c.jsx(li,{asChild:!0,container:s,children:a})})})};kj.displayName=Iv;var ur="MenuContent",[Pz,Hv]=Go(ur),Dj=x.forwardRef((e,t)=>{const n=Mj(ur,e.__scopeMenu),{forceMount:a=n.forceMount,...s}=e,l=qo(ur,e.__scopeMenu),u=yc(ur,e.__scopeMenu);return c.jsx(Kl.Provider,{scope:e.__scopeMenu,children:c.jsx(nn,{present:a||l.open,children:c.jsx(Kl.Slot,{scope:e.__scopeMenu,children:u.modal?c.jsx(Lz,{...s,ref:t}):c.jsx(zz,{...s,ref:t})})})})}),Lz=x.forwardRef((e,t)=>{const n=qo(ur,e.__scopeMenu),a=x.useRef(null),s=Fe(t,a);return x.useEffect(()=>{const l=a.current;if(l)return tf(l)},[]),c.jsx($v,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ge(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),zz=x.forwardRef((e,t)=>{const n=qo(ur,e.__scopeMenu);return c.jsx($v,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Bz=Ja("MenuContent.ScrollLock"),$v=x.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:b,onDismiss:w,disableOutsideScroll:E,...S}=e,j=qo(ur,n),N=yc(ur,n),A=ff(n),k=Tj(n),T=Mz(n),[M,_]=x.useState(null),O=x.useRef(null),D=Fe(t,O,j.onContentChange),L=x.useRef(0),I=x.useRef(""),Z=x.useRef(0),ce=x.useRef(null),U=x.useRef("right"),Q=x.useRef(0),le=E?uc:x.Fragment,F=E?{as:Bz,allowPinchZoom:!0}:void 0,H=J=>{var re,ie;const P=I.current+J,te=T().filter(pe=>!pe.disabled),Y=document.activeElement,G=(re=te.find(pe=>pe.ref.current===Y))==null?void 0:re.textValue,X=te.map(pe=>pe.textValue),ne=Kz(X,P,G),se=(ie=te.find(pe=>pe.textValue===ne))==null?void 0:ie.ref.current;(function pe(fe){I.current=fe,window.clearTimeout(L.current),fe!==""&&(L.current=window.setTimeout(()=>pe(""),1e3))})(P),se&&setTimeout(()=>se.focus())};x.useEffect(()=>()=>window.clearTimeout(L.current),[]),Jd();const V=x.useCallback(J=>{var te,Y;return U.current===((te=ce.current)==null?void 0:te.side)&&Qz(J,(Y=ce.current)==null?void 0:Y.area)},[]);return c.jsx(Pz,{scope:n,searchRef:I,onItemEnter:x.useCallback(J=>{V(J)&&J.preventDefault()},[V]),onItemLeave:x.useCallback(J=>{var P;V(J)||((P=O.current)==null||P.focus(),_(null))},[V]),onTriggerLeave:x.useCallback(J=>{V(J)&&J.preventDefault()},[V]),pointerGraceTimerRef:Z,onPointerGraceIntentChange:x.useCallback(J=>{ce.current=J},[]),children:c.jsx(le,{...F,children:c.jsx(cc,{asChild:!0,trapped:s,onMountAutoFocus:ge(l,J=>{var P;J.preventDefault(),(P=O.current)==null||P.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:c.jsx(ii,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:b,onDismiss:w,children:c.jsx(Fv,{asChild:!0,...k,dir:N.dir,orientation:"vertical",loop:a,currentTabStopId:M,onCurrentTabStopIdChange:_,onEntryFocus:ge(h,J=>{N.isUsingKeyboardRef.current||J.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(uf,{role:"menu","aria-orientation":"vertical","data-state":Gj(j.open),"data-radix-menu-content":"",dir:N.dir,...A,...S,ref:D,style:{outline:"none",...S.style},onKeyDown:ge(S.onKeyDown,J=>{const te=J.target.closest("[data-radix-menu-content]")===J.currentTarget,Y=J.ctrlKey||J.altKey||J.metaKey,G=J.key.length===1;te&&(J.key==="Tab"&&J.preventDefault(),!Y&&G&&H(J.key));const X=O.current;if(J.target!==X||!Nz.includes(J.key))return;J.preventDefault();const se=T().filter(re=>!re.disabled).map(re=>re.ref.current);jj.includes(J.key)&&se.reverse(),qz(se)}),onBlur:ge(e.onBlur,J=>{J.currentTarget.contains(J.target)||(window.clearTimeout(L.current),I.current="")}),onPointerMove:ge(e.onPointerMove,Zl(J=>{const P=J.target,te=Q.current!==J.clientX;if(J.currentTarget.contains(P)&&te){const Y=J.clientX>Q.current?"right":"left";U.current=Y,Q.current=J.clientX}}))})})})})})})});Dj.displayName=ur;var Fz="MenuGroup",Yv=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{role:"group",...a,ref:t})});Yv.displayName=Fz;var Vz="MenuLabel",Rj=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{...a,ref:t})});Rj.displayName=Vz;var Ad="MenuItem",aS="menu.itemSelect",hf=x.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...s}=e,l=x.useRef(null),u=yc(Ad,e.__scopeMenu),f=Hv(Ad,e.__scopeMenu),h=Fe(t,l),m=x.useRef(!1),v=()=>{const g=l.current;if(!n&&g){const b=new CustomEvent(aS,{bubbles:!0,cancelable:!0});g.addEventListener(aS,w=>a==null?void 0:a(w),{once:!0}),QE(g,b),b.defaultPrevented?m.current=!1:u.onClose()}};return c.jsx(Oj,{...s,ref:h,disabled:n,onClick:ge(e.onClick,v),onPointerDown:g=>{var b;(b=e.onPointerDown)==null||b.call(e,g),m.current=!0},onPointerUp:ge(e.onPointerUp,g=>{var b;m.current||(b=g.currentTarget)==null||b.click()}),onKeyDown:ge(e.onKeyDown,g=>{const b=f.searchRef.current!=="";n||b&&g.key===" "||mg.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});hf.displayName=Ad;var Oj=x.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:s,...l}=e,u=Hv(Ad,n),f=Tj(n),h=x.useRef(null),m=Fe(t,h),[v,g]=x.useState(!1),[b,w]=x.useState("");return x.useEffect(()=>{const E=h.current;E&&w((E.textContent??"").trim())},[l.children]),c.jsx(Kl.ItemSlot,{scope:n,disabled:a,textValue:s??b,children:c.jsx(Vv,{asChild:!0,...f,focusable:!a,children:c.jsx(Ce.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...l,ref:m,onPointerMove:ge(e.onPointerMove,Zl(E=>{a?u.onItemLeave(E):(u.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ge(e.onPointerLeave,Zl(E=>u.onItemLeave(E))),onFocus:ge(e.onFocus,()=>g(!0)),onBlur:ge(e.onBlur,()=>g(!1))})})})}),Uz="MenuCheckboxItem",_j=x.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...s}=e;return c.jsx(Fj,{scope:e.__scopeMenu,checked:n,children:c.jsx(hf,{role:"menuitemcheckbox","aria-checked":Md(n)?"mixed":n,...s,ref:t,"data-state":Gv(n),onSelect:ge(s.onSelect,()=>a==null?void 0:a(Md(n)?!0:!n),{checkForDefaultPrevented:!1})})})});_j.displayName=Uz;var Pj="MenuRadioGroup",[Iz,Hz]=Go(Pj,{value:void 0,onValueChange:()=>{}}),Lj=x.forwardRef((e,t)=>{const{value:n,onValueChange:a,...s}=e,l=un(a);return c.jsx(Iz,{scope:e.__scopeMenu,value:n,onValueChange:l,children:c.jsx(Yv,{...s,ref:t})})});Lj.displayName=Pj;var zj="MenuRadioItem",Bj=x.forwardRef((e,t)=>{const{value:n,...a}=e,s=Hz(zj,e.__scopeMenu),l=n===s.value;return c.jsx(Fj,{scope:e.__scopeMenu,checked:l,children:c.jsx(hf,{role:"menuitemradio","aria-checked":l,...a,ref:t,"data-state":Gv(l),onSelect:ge(a.onSelect,()=>{var u;return(u=s.onValueChange)==null?void 0:u.call(s,n)},{checkForDefaultPrevented:!1})})})});Bj.displayName=zj;var Wv="MenuItemIndicator",[Fj,$z]=Go(Wv,{checked:!1}),Vj=x.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...s}=e,l=$z(Wv,n);return c.jsx(nn,{present:a||Md(l.checked)||l.checked===!0,children:c.jsx(Ce.span,{...s,ref:t,"data-state":Gv(l.checked)})})});Vj.displayName=Wv;var Yz="MenuSeparator",Uj=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return c.jsx(Ce.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});Uj.displayName=Yz;var Wz="MenuArrow",Ij=x.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,s=ff(n);return c.jsx(df,{...s,...a,ref:t})});Ij.displayName=Wz;var Gz="MenuSub",[GW,Hj]=Go(Gz),Al="MenuSubTrigger",$j=x.forwardRef((e,t)=>{const n=qo(Al,e.__scopeMenu),a=yc(Al,e.__scopeMenu),s=Hj(Al,e.__scopeMenu),l=Hv(Al,e.__scopeMenu),u=x.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:h}=l,m={__scopeMenu:e.__scopeMenu},v=x.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return x.useEffect(()=>v,[v]),x.useEffect(()=>{const g=f.current;return()=>{window.clearTimeout(g),h(null)}},[f,h]),c.jsx(Uv,{asChild:!0,...m,children:c.jsx(Oj,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":Gj(n.open),...e,ref:ya(t,s.onTriggerChange),onClick:g=>{var b;(b=e.onClick)==null||b.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ge(e.onPointerMove,Zl(g=>{l.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),v()},100))})),onPointerLeave:ge(e.onPointerLeave,Zl(g=>{var w,E;v();const b=(w=n.content)==null?void 0:w.getBoundingClientRect();if(b){const S=(E=n.content)==null?void 0:E.dataset.side,j=S==="right",N=j?-5:5,A=b[j?"left":"right"],k=b[j?"right":"left"];l.onPointerGraceIntentChange({area:[{x:g.clientX+N,y:g.clientY},{x:A,y:b.top},{x:k,y:b.top},{x:k,y:b.bottom},{x:A,y:b.bottom}],side:S}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(g),g.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:ge(e.onKeyDown,g=>{var w;const b=l.searchRef.current!=="";e.disabled||b&&g.key===" "||Tz[a.dir].includes(g.key)&&(n.onOpenChange(!0),(w=n.content)==null||w.focus(),g.preventDefault())})})})});$j.displayName=Al;var Yj="MenuSubContent",Wj=x.forwardRef((e,t)=>{const n=Mj(ur,e.__scopeMenu),{forceMount:a=n.forceMount,...s}=e,l=qo(ur,e.__scopeMenu),u=yc(ur,e.__scopeMenu),f=Hj(Yj,e.__scopeMenu),h=x.useRef(null),m=Fe(t,h);return c.jsx(Kl.Provider,{scope:e.__scopeMenu,children:c.jsx(nn,{present:a||l.open,children:c.jsx(Kl.Slot,{scope:e.__scopeMenu,children:c.jsx($v,{id:f.contentId,"aria-labelledby":f.triggerId,...s,ref:m,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:v=>{var g;u.isUsingKeyboardRef.current&&((g=h.current)==null||g.focus()),v.preventDefault()},onCloseAutoFocus:v=>v.preventDefault(),onFocusOutside:ge(e.onFocusOutside,v=>{v.target!==f.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:ge(e.onEscapeKeyDown,v=>{u.onClose(),v.preventDefault()}),onKeyDown:ge(e.onKeyDown,v=>{var w;const g=v.currentTarget.contains(v.target),b=Az[u.dir].includes(v.key);g&&b&&(l.onOpenChange(!1),(w=f.trigger)==null||w.focus(),v.preventDefault())})})})})})});Wj.displayName=Yj;function Gj(e){return e?"open":"closed"}function Md(e){return e==="indeterminate"}function Gv(e){return Md(e)?"indeterminate":e?"checked":"unchecked"}function qz(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Xz(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function Kz(e,t,n){const s=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=Xz(e,Math.max(l,0));s.length===1&&(u=u.filter(m=>m!==n));const h=u.find(m=>m.toLowerCase().startsWith(s.toLowerCase()));return h!==n?h:void 0}function Zz(e,t){const{x:n,y:a}=e;let s=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l],h=t[u],m=f.x,v=f.y,g=h.x,b=h.y;v>a!=b>a&&n<(g-m)*(a-v)/(b-v)+m&&(s=!s)}return s}function Qz(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Zz(n,t)}function Zl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Jz=Aj,eB=Uv,tB=kj,nB=Dj,rB=Yv,aB=Rj,oB=hf,sB=_j,iB=Lj,lB=Bj,cB=Vj,uB=Uj,dB=Ij,fB=$j,hB=Wj,mf="DropdownMenu",[mB,qW]=wn(mf,[Nj]),An=Nj(),[pB,qj]=mB(mf),Xj=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:s,defaultOpen:l,onOpenChange:u,modal:f=!0}=e,h=An(t),m=x.useRef(null),[v,g]=Ir({prop:s,defaultProp:l??!1,onChange:u,caller:mf});return c.jsx(pB,{scope:t,triggerId:tn(),triggerRef:m,contentId:tn(),open:v,onOpenChange:g,onOpenToggle:x.useCallback(()=>g(b=>!b),[g]),modal:f,children:c.jsx(Jz,{...h,open:v,onOpenChange:g,dir:a,modal:f,children:n})})};Xj.displayName=mf;var Kj="DropdownMenuTrigger",Zj=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...s}=e,l=qj(Kj,n),u=An(n);return c.jsx(eB,{asChild:!0,...u,children:c.jsx(Ce.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...s,ref:ya(t,l.triggerRef),onPointerDown:ge(e.onPointerDown,f=>{!a&&f.button===0&&f.ctrlKey===!1&&(l.onOpenToggle(),l.open||f.preventDefault())}),onKeyDown:ge(e.onKeyDown,f=>{a||(["Enter"," "].includes(f.key)&&l.onOpenToggle(),f.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});Zj.displayName=Kj;var gB="DropdownMenuPortal",Qj=e=>{const{__scopeDropdownMenu:t,...n}=e,a=An(t);return c.jsx(tB,{...a,...n})};Qj.displayName=gB;var Jj="DropdownMenuContent",eN=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=qj(Jj,n),l=An(n),u=x.useRef(!1);return c.jsx(nB,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...a,ref:t,onCloseAutoFocus:ge(e.onCloseAutoFocus,f=>{var h;u.current||(h=s.triggerRef.current)==null||h.focus(),u.current=!1,f.preventDefault()}),onInteractOutside:ge(e.onInteractOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0,v=h.button===2||m;(!s.modal||v)&&(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)"}})});eN.displayName=Jj;var vB="DropdownMenuGroup",xB=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(rB,{...s,...a,ref:t})});xB.displayName=vB;var yB="DropdownMenuLabel",tN=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(aB,{...s,...a,ref:t})});tN.displayName=yB;var bB="DropdownMenuItem",nN=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(oB,{...s,...a,ref:t})});nN.displayName=bB;var wB="DropdownMenuCheckboxItem",SB=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(sB,{...s,...a,ref:t})});SB.displayName=wB;var EB="DropdownMenuRadioGroup",CB=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(iB,{...s,...a,ref:t})});CB.displayName=EB;var jB="DropdownMenuRadioItem",NB=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(lB,{...s,...a,ref:t})});NB.displayName=jB;var TB="DropdownMenuItemIndicator",AB=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(cB,{...s,...a,ref:t})});AB.displayName=TB;var MB="DropdownMenuSeparator",rN=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(uB,{...s,...a,ref:t})});rN.displayName=MB;var kB="DropdownMenuArrow",DB=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(dB,{...s,...a,ref:t})});DB.displayName=kB;var RB="DropdownMenuSubTrigger",OB=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(fB,{...s,...a,ref:t})});OB.displayName=RB;var _B="DropdownMenuSubContent",PB=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,s=An(n);return c.jsx(hB,{...s,...a,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)"}})});PB.displayName=_B;var LB=Xj,zB=Zj,BB=Qj,FB=eN,VB=tN,UB=nN,IB=rN,HB="Label",aN=x.forwardRef((e,t)=>c.jsx(Ce.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));aN.displayName=HB;var $B=aN;function pg(e,[t,n]){return Math.min(n,Math.max(t,e))}var pf="Popover",[oN,XW]=wn(pf,[io]),bc=io(),[YB,lo]=oN(pf),sN=e=>{const{__scopePopover:t,children:n,open:a,defaultOpen:s,onOpenChange:l,modal:u=!1}=e,f=bc(t),h=x.useRef(null),[m,v]=x.useState(!1),[g,b]=Ir({prop:a,defaultProp:s??!1,onChange:l,caller:pf});return c.jsx(cf,{...f,children:c.jsx(YB,{scope:t,contentId:tn(),triggerRef:h,open:g,onOpenChange:b,onOpenToggle:x.useCallback(()=>b(w=>!w),[b]),hasCustomAnchor:m,onCustomAnchorAdd:x.useCallback(()=>v(!0),[]),onCustomAnchorRemove:x.useCallback(()=>v(!1),[]),modal:u,children:n})})};sN.displayName=pf;var iN="PopoverAnchor",WB=x.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,s=lo(iN,n),l=bc(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:f}=s;return x.useEffect(()=>(u(),()=>f()),[u,f]),c.jsx(gc,{...l,...a,ref:t})});WB.displayName=iN;var lN="PopoverTrigger",cN=x.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,s=lo(lN,n),l=bc(n),u=Fe(t,s.triggerRef),f=c.jsx(Ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":mN(s.open),...a,ref:u,onClick:ge(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?f:c.jsx(gc,{asChild:!0,...l,children:f})});cN.displayName=lN;var qv="PopoverPortal",[GB,qB]=oN(qv,{forceMount:void 0}),uN=e=>{const{__scopePopover:t,forceMount:n,children:a,container:s}=e,l=lo(qv,t);return c.jsx(GB,{scope:t,forceMount:n,children:c.jsx(nn,{present:n||l.open,children:c.jsx(li,{asChild:!0,container:s,children:a})})})};uN.displayName=qv;var Js="PopoverContent",dN=x.forwardRef((e,t)=>{const n=qB(Js,e.__scopePopover),{forceMount:a=n.forceMount,...s}=e,l=lo(Js,e.__scopePopover);return c.jsx(nn,{present:a||l.open,children:l.modal?c.jsx(KB,{...s,ref:t}):c.jsx(ZB,{...s,ref:t})})});dN.displayName=Js;var XB=Ja("PopoverContent.RemoveScroll"),KB=x.forwardRef((e,t)=>
389{const n=lo(Js,e.__scopePopover),a=x.useRef(null),s=Fe(t,a),l=x.useRef(!1);return x.useEffect(()=>{const u=a.current;if(u)return tf(u)},[]),c.jsx(uc,{as:XB,allowPinchZoom:!0,children:c.jsx(fN,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,u=>{var f;u.preventDefault(),l.current||(f=n.triggerRef.current)==null||f.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,m=f.button===2||h;l.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:ge(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),ZB=x.forwardRef((e,t)=>{const n=lo(Js,e.__scopePopover),a=x.useRef(!1),s=x.useRef(!1);return c.jsx(fN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(a.current||(f=n.triggerRef.current)==null||f.focus(),l.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:l=>{var h,m;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(a.current=!0,l.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=l.target;((m=n.triggerRef.current)==null?void 0:m.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&s.current&&l.preventDefault()}})}),fN=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:v,...g}=e,b=lo(Js,n),w=bc(n);return Jd(),c.jsx(cc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:l,children:c.jsx(ii,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:v,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:c.jsx(uf,{"data-state":mN(b.open),role:"dialog",id:b.contentId,...w,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),hN="PopoverClose",QB=x.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,s=lo(hN,n);return c.jsx(Ce.button,{type:"button",...a,ref:t,onClick:ge(e.onClick,()=>s.onOpenChange(!1))})});QB.displayName=hN;var JB="PopoverArrow",e7=x.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,s=bc(n);return c.jsx(df,{...s,...a,ref:t})});e7.displayName=JB;function mN(e){return e?"open":"closed"}var t7=sN,n7=cN,r7=uN,a7=dN,Xv="Progress",Kv=100,[o7,KW]=wn(Xv),[s7,i7]=o7(Xv),pN=x.forwardRef((e,t)=>{const{__scopeProgress:n,value:a=null,max:s,getValueLabel:l=l7,...u}=e;(s||s===0)&&!oS(s)&&console.error(c7(`${s}`,"Progress"));const f=oS(s)?s:Kv;a!==null&&!sS(a,f)&&console.error(u7(`${a}`,"Progress"));const h=sS(a,f)?a:null,m=kd(h)?l(h,f):void 0;return c.jsx(s7,{scope:n,value:h,max:f,children:c.jsx(Ce.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":kd(h)?h:void 0,"aria-valuetext":m,role:"progressbar","data-state":xN(h,f),"data-value":h??void 0,"data-max":f,...u,ref:t})})});pN.displayName=Xv;var gN="ProgressIndicator",vN=x.forwardRef((e,t)=>{const{__scopeProgress:n,...a}=e,s=i7(gN,n);return c.jsx(Ce.div,{"data-state":xN(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...a,ref:t})});vN.displayName=gN;function l7(e,t){return`${Math.round(e/t*100)}%`}function xN(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function kd(e){return typeof e=="number"}function oS(e){return kd(e)&&!isNaN(e)&&e>0}function sS(e,t){return kd(e)&&!isNaN(e)&&e<=t&&e>=0}function c7(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Kv}\`.`}function u7(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 390 - a positive number 391 - less than the value passed to \`max\` (or ${Kv} if no \`max\` prop is set) 392 - \`null\` or \`undefined\` if the progress is indeterminate. 393 394Defaulting to \`null\`.`}var d7=pN,f7=vN,Zv="Radio",[h7,yN]=wn(Zv),[m7,p7]=h7(Zv),bN=x.forwardRef((e,t)=>
vendor: 17,115 bytes, line 394
394{const{__scopeRadio:n,name:a,checked:s=!1,required:l,disabled:u,value:f="on",onCheck:h,form:m,...v}=e,[g,b]=x.useState(null),w=Fe(t,j=>b(j)),E=x.useRef(!1),S=g?m||!!g.closest("form"):!0;return c.jsxs(m7,{scope:n,checked:s,disabled:u,children:[c.jsx(Ce.button,{type:"button",role:"radio","aria-checked":s,"data-state":CN(s),"data-disabled":u?"":void 0,disabled:u,value:f,...v,ref:w,onClick:ge(e.onClick,j=>{s||h==null||h(),S&&(E.current=j.isPropagationStopped(),E.current||j.stopPropagation())})}),S&&c.jsx(EN,{control:g,bubbles:!E.current,name:a,value:f,checked:s,required:l,disabled:u,form:m,style:{transform:"translateX(-100%)"}})]})});bN.displayName=Zv;var wN="RadioIndicator",SN=x.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:a,...s}=e,l=p7(wN,n);return c.jsx(nn,{present:a||l.checked,children:c.jsx(Ce.span,{"data-state":CN(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:t})})});SN.displayName=wN;var g7="RadioBubbleInput",EN=x.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:a=!0,...s},l)=>{const u=x.useRef(null),f=Fe(u,l),h=Av(n),m=Mv(t);return x.useEffect(()=>{const v=u.current;if(!v)return;const g=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(g,"checked").set;if(h!==n&&w){const E=new Event("click",{bubbles:a});w.call(v,n),v.dispatchEvent(E)}},[h,n,a]),c.jsx(Ce.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:f,style:{...s.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});EN.displayName=g7;function CN(e){return e?"checked":"unchecked"}var v7=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],gf="RadioGroup",[x7,ZW]=wn(gf,[hi,yN]),jN=hi(),NN=yN(),[y7,b7]=x7(gf),TN=x.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:a,defaultValue:s,value:l,required:u=!1,disabled:f=!1,orientation:h,dir:m,loop:v=!0,onValueChange:g,...b}=e,w=jN(n),E=ui(m),[S,j]=Ir({prop:l,defaultProp:s??null,onChange:g,caller:gf});return c.jsx(y7,{scope:n,name:a,required:u,disabled:f,value:S,onValueChange:j,children:c.jsx(Fv,{asChild:!0,...w,orientation:h,dir:E,loop:v,children:c.jsx(Ce.div,{role:"radiogroup","aria-required":u,"aria-orientation":h,"data-disabled":f?"":void 0,dir:E,...b,ref:t})})})});TN.displayName=gf;var AN="RadioGroupItem",MN=x.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:a,...s}=e,l=b7(AN,n),u=l.disabled||a,f=jN(n),h=NN(n),m=x.useRef(null),v=Fe(t,m),g=l.value===s.value,b=x.useRef(!1);return x.useEffect(()=>{const w=S=>{v7.includes(S.key)&&(b.current=!0)},E=()=>b.current=!1;return document.addEventListener("keydown",w),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",w),document.removeEventListener("keyup",E)}},[]),c.jsx(Vv,{asChild:!0,...f,focusable:!u,active:g,children:c.jsx(bN,{disabled:u,required:l.required,checked:g,...h,...s,name:l.name,ref:v,onCheck:()=>l.onValueChange(s.value),onKeyDown:ge(w=>{w.key==="Enter"&&w.preventDefault()}),onFocus:ge(s.onFocus,()=>{var w;b.current&&((w=m.current)==null||w.click())})})})});MN.displayName=AN;var w7="RadioGroupIndicator",S7=x.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...a}=e,s=NN(n);return c.jsx(SN,{...s,...a,ref:t})});S7.displayName=w7;var E7=TN,C7=MN;function j7(e,t){return x.useReducer((n,a)=>t[n][a]??n,e)}var Qv="ScrollArea",[kN,QW]=wn(Qv),[N7,dr]=kN(Qv),DN=x.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:a="hover",dir:s,scrollHideDelay:l=600,...u}=e,[f,h]=x.useState(null),[m,v]=x.useState(null),[g,b]=x.useState(null),[w,E]=x.useState(null),[S,j]=x.useState(null),[N,A]=x.useState(0),[k,T]=x.useState(0),[M,_]=x.useState(!1),[O,D]=x.useState(!1),L=Fe(t,Z=>h(Z)),I=ui(s);return c.jsx(N7,{scope:n,type:a,dir:I,scrollHideDelay:l,scrollArea:f,viewport:m,onViewportChange:v,content:g,onContentChange:b,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:M,onScrollbarXEnabledChange:_,scrollbarY:S,onScrollbarYChange:j,scrollbarYEnabled:O,onScrollbarYEnabledChange:D,onCornerWidthChange:A,onCornerHeightChange:T,children:c.jsx(Ce.div,{dir:I,...u,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":k+"px",...e.style}})})});DN.displayName=Qv;var RN="ScrollAreaViewport",ON=x.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:a,nonce:s,...l}=e,u=dr(RN,n),f=x.useRef(null),h=Fe(t,f,u.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),c.jsx(Ce.div,{"data-radix-scroll-area-viewport":"",...l,ref:h,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});ON.displayName=RN;var Gr="ScrollAreaScrollbar",_N=x.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=dr(Gr,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:u}=s,f=e.orientation==="horizontal";return x.useEffect(()=>(f?l(!0):u(!0),()=>{f?l(!1):u(!1)}),[f,l,u]),s.type==="hover"?c.jsx(T7,{...a,ref:t,forceMount:n}):s.type==="scroll"?c.jsx(A7,{...a,ref:t,forceMount:n}):s.type==="auto"?c.jsx(PN,{...a,ref:t,forceMount:n}):s.type==="always"?c.jsx(Jv,{...a,ref:t}):null});_N.displayName=Gr;var T7=x.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=dr(Gr,e.__scopeScrollArea),[l,u]=x.useState(!1);return x.useEffect(()=>{const f=s.scrollArea;let h=0;if(f){const m=()=>{window.clearTimeout(h),u(!0)},v=()=>{h=window.setTimeout(()=>u(!1),s.scrollHideDelay)};return f.addEventListener("pointerenter",m),f.addEventListener("pointerleave",v),()=>{window.clearTimeout(h),f.removeEventListener("pointerenter",m),f.removeEventListener("pointerleave",v)}}},[s.scrollArea,s.scrollHideDelay]),c.jsx(nn,{present:n||l,children:c.jsx(PN,{"data-state":l?"visible":"hidden",...a,ref:t})})}),A7=x.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=dr(Gr,e.__scopeScrollArea),l=e.orientation==="horizontal",u=xf(()=>h("SCROLL_END"),100),[f,h]=j7("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return x.useEffect(()=>{if(f==="idle"){const m=window.setTimeout(()=>h("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(m)}},[f,s.scrollHideDelay,h]),x.useEffect(()=>{const m=s.viewport,v=l?"scrollLeft":"scrollTop";if(m){let g=m[v];const b=()=>{const w=m[v];g!==w&&(h("SCROLL"),u()),g=w};return m.addEventListener("scroll",b),()=>m.removeEventListener("scroll",b)}},[s.viewport,l,h,u]),c.jsx(nn,{present:n||f!=="hidden",children:c.jsx(Jv,{"data-state":f==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:ge(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:ge(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),PN=x.forwardRef((e,t)=>{const n=dr(Gr,e.__scopeScrollArea),{forceMount:a,...s}=e,[l,u]=x.useState(!1),f=e.orientation==="horizontal",h=xf(()=>{if(n.viewport){const m=n.viewport.offsetWidth<n.viewport.scrollWidth,v=n.viewport.offsetHeight<n.viewport.scrollHeight;u(f?m:v)}},10);return ei(n.viewport,h),ei(n.content,h),c.jsx(nn,{present:a||l,children:c.jsx(Jv,{"data-state":l?"visible":"hidden",...s,ref:t})})}),Jv=x.forwardRef((e,t)=>{const{orientation:n="vertical",...a}=e,s=dr(Gr,e.__scopeScrollArea),l=x.useRef(null),u=x.useRef(0),[f,h]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=VN(f.viewport,f.content),v={...a,sizes:f,onSizesChange:h,hasThumb:m>0&&m<1,onThumbChange:b=>l.current=b,onThumbPointerUp:()=>u.current=0,onThumbPointerDown:b=>u.current=b};function g(b,w){return _7(b,u.current,f,w)}return n==="horizontal"?c.jsx(M7,{...v,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const b=s.viewport.scrollLeft,w=iS(b,f,s.dir);l.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:b=>{s.viewport&&(s.viewport.scrollLeft=b)},onDragScroll:b=>{s.viewport&&(s.viewport.scrollLeft=g(b,s.dir))}}):n==="vertical"?c.jsx(k7,{...v,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const b=s.viewport.scrollTop,w=iS(b,f);l.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:b=>{s.viewport&&(s.viewport.scrollTop=b)},onDragScroll:b=>{s.viewport&&(s.viewport.scrollTop=g(b))}}):null}),M7=x.forwardRef((e,t)=>{const{sizes:n,onSizesChange:a,...s}=e,l=dr(Gr,e.__scopeScrollArea),[u,f]=x.useState(),h=x.useRef(null),m=Fe(t,h,l.onScrollbarXChange);return x.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),c.jsx(zN,{"data-orientation":"horizontal",...s,ref:m,sizes:n,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":vf(n)+"px",...e.style},onThumbPointerDown:v=>e.onThumbPointerDown(v.x),onDragScroll:v=>e.onDragScroll(v.x),onWheelScroll:(v,g)=>{if(l.viewport){const b=l.viewport.scrollLeft+v.deltaX;e.onWheelScroll(b),IN(b,g)&&v.preventDefault()}},onResize:()=>{h.current&&l.viewport&&u&&a({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Rd(u.paddingLeft),paddingEnd:Rd(u.paddingRight)}})}})}),k7=x.forwardRef((e,t)=>{const{sizes:n,onSizesChange:a,...s}=e,l=dr(Gr,e.__scopeScrollArea),[u,f]=x.useState(),h=x.useRef(null),m=Fe(t,h,l.onScrollbarYChange);return x.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),c.jsx(zN,{"data-orientation":"vertical",...s,ref:m,sizes:n,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":vf(n)+"px",...e.style},onThumbPointerDown:v=>e.onThumbPointerDown(v.y),onDragScroll:v=>e.onDragScroll(v.y),onWheelScroll:(v,g)=>{if(l.viewport){const b=l.viewport.scrollTop+v.deltaY;e.onWheelScroll(b),IN(b,g)&&v.preventDefault()}},onResize:()=>{h.current&&l.viewport&&u&&a({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Rd(u.paddingTop),paddingEnd:Rd(u.paddingBottom)}})}})}),[D7,LN]=kN(Gr),zN=x.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:a,hasThumb:s,onThumbChange:l,onThumbPointerUp:u,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:m,onWheelScroll:v,onResize:g,...b}=e,w=dr(Gr,n),[E,S]=x.useState(null),j=Fe(t,L=>S(L)),N=x.useRef(null),A=x.useRef(""),k=w.viewport,T=a.content-a.viewport,M=un(v),_=un(h),O=xf(g,10);function D(L){if(N.current){const I=L.clientX-N.current.left,Z=L.clientY-N.current.top;m({x:I,y:Z})}}return x.useEffect(()=>{const L=I=>{const Z=I.target;(E==null?void 0:E.contains(Z))&&M(I,T)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[k,E,T,M]),x.useEffect(_,[a,_]),ei(E,O),ei(w.content,O),c.jsx(D7,{scope:n,scrollbar:E,hasThumb:s,onThumbChange:un(l),onThumbPointerUp:un(u),onThumbPositionChange:_,onThumbPointerDown:un(f),children:c.jsx(Ce.div,{...b,ref:j,style:{position:"absolute",...b.style},onPointerDown:ge(e.onPointerDown,L=>{L.button===0&&(L.target.setPointerCapture(L.pointerId),N.current=E.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),D(L))}),onPointerMove:ge(e.onPointerMove,D),onPointerUp:ge(e.onPointerUp,L=>{const I=L.target;I.hasPointerCapture(L.pointerId)&&I.releasePointerCapture(L.pointerId),document.body.style.webkitUserSelect=A.current,w.viewport&&(w.viewport.style.scrollBehavior=""),N.current=null})})})}),Dd="ScrollAreaThumb",BN=x.forwardRef((e,t)=>{const{forceMount:n,...a}=e,s=LN(Dd,e.__scopeScrollArea);return c.jsx(nn,{present:n||s.hasThumb,children:c.jsx(R7,{ref:t,...a})})}),R7=x.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:a,...s}=e,l=dr(Dd,n),u=LN(Dd,n),{onThumbPositionChange:f}=u,h=Fe(t,g=>u.onThumbChange(g)),m=x.useRef(void 0),v=xf(()=>{m.current&&(m.current(),m.current=void 0)},100);return x.useEffect(()=>{const g=l.viewport;if(g){const b=()=>{if(v(),!m.current){const w=P7(g,f);m.current=w,f()}};return f(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[l.viewport,v,f]),c.jsx(Ce.div,{"data-state":u.hasThumb?"visible":"hidden",...s,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:ge(e.onPointerDownCapture,g=>{const w=g.target.getBoundingClientRect(),E=g.clientX-w.left,S=g.clientY-w.top;u.onThumbPointerDown({x:E,y:S})}),onPointerUp:ge(e.onPointerUp,u.onThumbPointerUp)})});BN.displayName=Dd;var ex="ScrollAreaCorner",FN=x.forwardRef((e,t)=>{const n=dr(ex,e.__scopeScrollArea),a=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&a?c.jsx(O7,{...e,ref:t}):null});FN.displayName=ex;var O7=x.forwardRef((e,t)=>{const{__scopeScrollArea:n,...a}=e,s=dr(ex,n),[l,u]=x.useState(0),[f,h]=x.useState(0),m=!!(l&&f);return ei(s.scrollbarX,()=>{var g;const v=((g=s.scrollbarX)==null?void 0:g.offsetHeight)||0;s.onCornerHeightChange(v),h(v)}),ei(s.scrollbarY,()=>{var g;const v=((g=s.scrollbarY)==null?void 0:g.offsetWidth)||0;s.onCornerWidthChange(v),u(v)}),m?c.jsx(Ce.div,{...a,ref:t,style:{width:l,height:f,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Rd(e){return e?parseInt(e,10):0}function VN(e,t){const n=e/t;return isNaN(n)?0:n}function vf(e){const t=VN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-n)*t;return Math.max(a,18)}function _7(e,t,n,a="ltr"){const s=vf(n),l=s/2,u=t||l,f=s-u,h=n.scrollbar.paddingStart+u,m=n.scrollbar.size-n.scrollbar.paddingEnd-f,v=n.content-n.viewport,g=a==="ltr"?[0,v]:[v*-1,0];return UN([h,m],g)(e)}function iS(e,t,n="ltr"){const a=vf(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-s,u=t.content-t.viewport,f=l-a,h=n==="ltr"?[0,u]:[u*-1,0],m=pg(e,h);return UN([0,u],[0,f])(m)}function UN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(n-e[0])}}function IN(e,t){return e>0&&e<t}var P7=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},a=0;return function s(){const l={left:e.scrollLeft,top:e.scrollTop},u=n.left!==l.left,f=n.top!==l.top;(u||f)&&t(),n=l,a=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(a)};function xf(e,t){const n=un(e),a=x.useRef(0);return x.useEffect(()=>()=>window.clearTimeout(a.current),[]),x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(n,t)},[n,t])}function ei(e,t){const n=un(t);fn(()=>{let a=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(a),s.unobserve(e)}}},[e,n])}var L7=DN,z7=ON,B7=FN,F7=[" ","Enter","ArrowUp","ArrowDown"],V7=[" ","Enter"],Ho="Select",[yf,bf,U7]=Tv(Ho),[mi,JW]=wn(Ho,[U7,io]),wf=io(),[I7,co]=mi(Ho),[H7,$7]=mi(Ho),HN=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:s,onOpenChange:l,value:u,defaultValue:f,onValueChange:h,dir:m,name:v,autoComplete:g,disabled:b,required:w,form:E}=e,S=wf(t),[j,N]=x.useState(null),[A,k]=x.useState(null),[T,M]=x.useState(!1),_=ui(m),[O,D]=Ir({prop:a,defaultProp:s??!1,onChange:l,caller:Ho}),[L,I]=Ir({prop:u,defaultProp:f,onChange:h,caller:Ho}),Z=x.useRef(null),ce=j?E||!!j.closest("form"):!0,[U,Q]=x.useState(new Set),le=Array.from(U).map(F=>F.props.value).join(";");return c.jsx(cf,{...S,children:c.jsxs(I7,{required:w,scope:t,trigger:j,onTriggerChange:N,valueNode:A,onValueNodeChange:k,valueNodeHasChildren:T,onValueNodeHasChildrenChange:M,contentId:tn(),value:L,onValueChange:I,open:O,onOpenChange:D,dir:_,triggerPointerDownPosRef:Z,disabled:b,children:[c.jsx(yf.Provider,{scope:t,children:c.jsx(H7,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(F=>{Q(H=>new Set(H).add(F))},[]),onNativeOptionRemove:x.useCallback(F=>{Q(H=>{const V=new Set(H);return V.delete(F),V})},[]),children:n})}),ce?c.jsxs(dT,{"aria-hidden":!0,required:w,tabIndex:-1,name:v,autoComplete:g,value:L,onChange:F=>I(F.target.value),disabled:b,form:E,children:[L===void 0?c.jsx("option",{value:""}):null,Array.from(U)]},le):null]})})};HN.displayName=Ho;var $N="SelectTrigger",YN=x.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...s}=e,l=wf(n),u=co($N,n),f=u.disabled||a,h=Fe(t,u.onTriggerChange),m=bf(n),v=x.useRef("touch"),[g,b,w]=hT(S=>{const j=m().filter(k=>!k.disabled),N=j.find(k=>k.value===u.value),A=mT(j,S,N);A!==void 0&&u.onValueChange(A.value)}),E=S=>{f||(u.onOpenChange(!0),w()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return c.jsx(gc,{asChild:!0,...l,children:c.jsx(Ce.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":fT(u.value)?"":void 0,...s,ref:h,onClick:ge(s.onClick,S=>
vendor: 1,992 bytes, line 394
394{S.currentTarget.focus(),v.current!=="mouse"&&E(S)}),onPointerDown:ge(s.onPointerDown,S=>{v.current=S.pointerType;const j=S.target;j.hasPointerCapture(S.pointerId)&&j.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:ge(s.onKeyDown,S=>{const j=g.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(j&&S.key===" ")&&F7.includes(S.key)&&(E(),S.preventDefault())})})})});YN.displayName=$N;var WN="SelectValue",GN=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:s,children:l,placeholder:u="",...f}=e,h=co(WN,n),{onValueNodeHasChildrenChange:m}=h,v=l!==void 0,g=Fe(t,h.onValueNodeChange);return fn(()=>{m(v)},[m,v]),c.jsx(Ce.span,{...f,ref:g,style:{pointerEvents:"none"},children:fT(h.value)?c.jsx(c.Fragment,{children:u}):l})});GN.displayName=WN;var Y7="SelectIcon",qN=x.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...s}=e;return c.jsx(Ce.span,{"aria-hidden":!0,...s,ref:t,children:a||"â¼"})});qN.displayName=Y7;var W7="SelectPortal",XN=e=>c.jsx(li,{asChild:!0,...e});XN.displayName=W7;var $o="SelectContent",KN=x.forwardRef((e,t)=>{const n=co($o,e.__scopeSelect),[a,s]=x.useState();if(fn(()=>{s(new DocumentFragment)},[]),!n.open){const l=a;return l?Pr.createPortal(c.jsx(ZN,{scope:e.__scopeSelect,children:c.jsx(yf.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),l):null}return c.jsx(QN,{...e,ref:t})});KN.displayName=$o;var yr=10,[ZN,uo]=mi($o),G7="SelectContentImpl",q7=Ja("SelectContent.RemoveScroll"),QN=x.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:l,onPointerDownOutside:u,side:f,sideOffset:h,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:E,hideWhenDetached:S,avoidCollisions:j,...N}=e,A=co($o,n),[k,T]=x.useState(null),[M,_]=x.useState(null),O=Fe(t,re=>T(re)),[D,L]=x.useState(null),[I,Z]=x.useState(null),ce=bf(n),[U,Q]=x.useState(!1),le=
vendor: 15,125 bytes, line 394
394x.useRef(!1);x.useEffect(()=>{if(k)return tf(k)},[k]),Jd();const F=x.useCallback(re=>{const[ie,...pe]=ce().map(Ne=>Ne.ref.current),[fe]=pe.slice(-1),je=document.activeElement;for(const Ne of re)if(Ne===je||(Ne==null||Ne.scrollIntoView({block:"nearest"}),Ne===ie&&M&&(M.scrollTop=0),Ne===fe&&M&&(M.scrollTop=M.scrollHeight),Ne==null||Ne.focus(),document.activeElement!==je))return},[ce,M]),H=x.useCallback(()=>F([D,k]),[F,D,k]);x.useEffect(()=>{U&&H()},[U,H]);const{onOpenChange:V,triggerPointerDownPosRef:J}=A;x.useEffect(()=>{if(k){let re={x:0,y:0};const ie=fe=>{var je,Ne;re={x:Math.abs(Math.round(fe.pageX)-(((je=J.current)==null?void 0:je.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((Ne=J.current)==null?void 0:Ne.y)??0))}},pe=fe=>{re.x<=10&&re.y<=10?fe.preventDefault():k.contains(fe.target)||V(!1),document.removeEventListener("pointermove",ie),J.current=null};return J.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",pe,{capture:!0})}}},[k,V,J]),x.useEffect(()=>{const re=()=>V(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[V]);const[P,te]=hT(re=>{const ie=ce().filter(je=>!je.disabled),pe=ie.find(je=>je.ref.current===document.activeElement),fe=mT(ie,re,pe);fe&&setTimeout(()=>fe.ref.current.focus())}),Y=x.useCallback((re,ie,pe)=>{const fe=!le.current&&!pe;(A.value!==void 0&&A.value===ie||fe)&&(L(re),fe&&(le.current=!0))},[A.value]),G=x.useCallback(()=>k==null?void 0:k.focus(),[k]),X=x.useCallback((re,ie,pe)=>{const fe=!le.current&&!pe;(A.value!==void 0&&A.value===ie||fe)&&Z(re)},[A.value]),ne=a==="popper"?gg:JN,se=ne===gg?{side:f,sideOffset:h,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:E,hideWhenDetached:S,avoidCollisions:j}:{};return c.jsx(ZN,{scope:n,content:k,viewport:M,onViewportChange:_,itemRefCallback:Y,selectedItem:D,onItemLeave:G,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:I,position:a,isPositioned:U,searchRef:P,children:c.jsx(uc,{as:q7,allowPinchZoom:!0,children:c.jsx(cc,{asChild:!0,trapped:A.open,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:ge(s,re=>{var ie;(ie=A.trigger)==null||ie.focus({preventScroll:!0}),re.preventDefault()}),children:c.jsx(ii,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:c.jsx(ne,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:re=>re.preventDefault(),...N,...se,onPlaced:()=>Q(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:ge(N.onKeyDown,re=>{const ie=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!ie&&re.key.length===1&&te(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let fe=ce().filter(je=>!je.disabled).map(je=>je.ref.current);if(["ArrowUp","End"].includes(re.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){const je=re.target,Ne=fe.indexOf(je);fe=fe.slice(Ne+1)}setTimeout(()=>F(fe)),re.preventDefault()}})})})})})})});QN.displayName=G7;var X7="SelectItemAlignedPosition",JN=x.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...s}=e,l=co($o,n),u=uo($o,n),[f,h]=x.useState(null),[m,v]=x.useState(null),g=Fe(t,O=>v(O)),b=bf(n),w=x.useRef(!1),E=x.useRef(!0),{viewport:S,selectedItem:j,selectedItemText:N,focusSelectedItem:A}=u,k=x.useCallback(()=>{if(l.trigger&&l.valueNode&&f&&m&&S&&j&&N){const O=l.trigger.getBoundingClientRect(),D=m.getBoundingClientRect(),L=l.valueNode.getBoundingClientRect(),I=N.getBoundingClientRect();if(l.dir!=="rtl"){const je=I.left-D.left,Ne=L.left-je,qe=O.left-Ne,ye=O.width+qe,gt=Math.max(ye,D.width),ct=window.innerWidth-yr,vt=pg(Ne,[yr,Math.max(yr,ct-gt)]);f.style.minWidth=ye+"px",f.style.left=vt+"px"}else{const je=D.right-I.right,Ne=window.innerWidth-L.right-je,qe=window.innerWidth-O.right-Ne,ye=O.width+qe,gt=Math.max(ye,D.width),ct=window.innerWidth-yr,vt=pg(Ne,[yr,Math.max(yr,ct-gt)]);f.style.minWidth=ye+"px",f.style.right=vt+"px"}const Z=b(),ce=window.innerHeight-yr*2,U=S.scrollHeight,Q=window.getComputedStyle(m),le=parseInt(Q.borderTopWidth,10),F=parseInt(Q.paddingTop,10),H=parseInt(Q.borderBottomWidth,10),V=parseInt(Q.paddingBottom,10),J=le+F+U+V+H,P=Math.min(j.offsetHeight*5,J),te=window.getComputedStyle(S),Y=parseInt(te.paddingTop,10),G=parseInt(te.paddingBottom,10),X=O.top+O.height/2-yr,ne=ce-X,se=j.offsetHeight/2,re=j.offsetTop+se,ie=le+F+re,pe=J-ie;if(ie<=X){const je=Z.length>0&&j===Z[Z.length-1].ref.current;f.style.bottom="0px";const Ne=m.clientHeight-S.offsetTop-S.offsetHeight,qe=Math.max(ne,se+(je?G:0)+Ne+H),ye=ie+qe;f.style.height=ye+"px"}else{const je=Z.length>0&&j===Z[0].ref.current;f.style.top="0px";const qe=Math.max(X,le+S.offsetTop+(je?Y:0)+se)+pe;f.style.height=qe+"px",S.scrollTop=ie-X+S.offsetTop}f.style.margin=`${yr}px 0`,f.style.minHeight=P+"px",f.style.maxHeight=ce+"px",a==null||a(),requestAnimationFrame(()=>w.current=!0)}},[b,l.trigger,l.valueNode,f,m,S,j,N,l.dir,a]);fn(()=>k(),[k]);const[T,M]=x.useState();fn(()=>{m&&M(window.getComputedStyle(m).zIndex)},[m]);const _=x.useCallback(O=>{O&&E.current===!0&&(k(),A==null||A(),E.current=!1)},[k,A]);return c.jsx(Z7,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:w,onScrollButtonChange:_,children:c.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:c.jsx(Ce.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});JN.displayName=X7;var K7="SelectPopperPosition",gg=x.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:s=yr,...l}=e,u=wf(n);return c.jsx(uf,{...u,...l,ref:t,align:a,collisionPadding:s,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gg.displayName=K7;var[Z7,tx]=mi($o,{}),vg="SelectViewport",eT=x.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...s}=e,l=uo(vg,n),u=tx(vg,n),f=Fe(t,l.onViewportChange),h=x.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),c.jsx(yf.Slot,{scope:n,children:c.jsx(Ce.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ge(s.onScroll,m=>{const v=m.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=u;if(b!=null&&b.current&&g){const w=Math.abs(h.current-v.scrollTop);if(w>0){const E=window.innerHeight-yr*2,S=parseFloat(g.style.minHeight),j=parseFloat(g.style.height),N=Math.max(S,j);if(N<E){const A=N+w,k=Math.min(E,A),T=A-k;g.style.height=k+"px",g.style.bottom==="0px"&&(v.scrollTop=T>0?T:0,g.style.justifyContent="flex-end")}}}h.current=v.scrollTop})})})]})});eT.displayName=vg;var tT="SelectGroup",[Q7,J7]=mi(tT),eF=x.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,s=tn();return c.jsx(Q7,{scope:n,id:s,children:c.jsx(Ce.div,{role:"group","aria-labelledby":s,...a,ref:t})})});eF.displayName=tT;var nT="SelectLabel",tF=x.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,s=J7(nT,n);return c.jsx(Ce.div,{id:s.id,...a,ref:t})});tF.displayName=nT;var Od="SelectItem",[nF,rT]=mi(Od),aT=x.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:s=!1,textValue:l,...u}=e,f=co(Od,n),h=uo(Od,n),m=f.value===a,[v,g]=x.useState(l??""),[b,w]=x.useState(!1),E=Fe(t,A=>{var k;return(k=h.itemRefCallback)==null?void 0:k.call(h,A,a,s)}),S=tn(),j=x.useRef("touch"),N=()=>{s||(f.onValueChange(a),f.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(nF,{scope:n,value:a,disabled:s,textId:S,isSelected:m,onItemTextChange:x.useCallback(A=>{g(k=>k||((A==null?void 0:A.textContent)??"").trim())},[]),children:c.jsx(yf.ItemSlot,{scope:n,value:a,disabled:s,textValue:v,children:c.jsx(Ce.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":m&&b,"data-state":m?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:E,onFocus:ge(u.onFocus,()=>w(!0)),onBlur:ge(u.onBlur,()=>w(!1)),onClick:ge(u.onClick,()=>{j.current!=="mouse"&&N()}),onPointerUp:ge(u.onPointerUp,()=>{j.current==="mouse"&&N()}),onPointerDown:ge(u.onPointerDown,A=>{j.current=A.pointerType}),onPointerMove:ge(u.onPointerMove,A=>{var k;j.current=A.pointerType,s?(k=h.onItemLeave)==null||k.call(h):j.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ge(u.onPointerLeave,A=>{var k;A.currentTarget===document.activeElement&&((k=h.onItemLeave)==null||k.call(h))}),onKeyDown:ge(u.onKeyDown,A=>{var T;((T=h.searchRef)==null?void 0:T.current)!==""&&A.key===" "||(V7.includes(A.key)&&N(),A.key===" "&&A.preventDefault())})})})})});aT.displayName=Od;var Ml="SelectItemText",oT=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:s,...l}=e,u=co(Ml,n),f=uo(Ml,n),h=rT(Ml,n),m=$7(Ml,n),[v,g]=x.useState(null),b=Fe(t,N=>g(N),h.onItemTextChange,N=>{var A;return(A=f.itemTextRefCallback)==null?void 0:A.call(f,N,h.value,h.disabled)}),w=v==null?void 0:v.textContent,E=x.useMemo(()=>c.jsx("option",{value:h.value,disabled:h.disabled,children:w},h.value),[h.disabled,h.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:j}=m;return fn(()=>(S(E),()=>j(E)),[S,j,E]),c.jsxs(c.Fragment,{children:[c.jsx(Ce.span,{id:h.textId,...l,ref:b}),h.isSelected&&u.valueNode&&!u.valueNodeHasChildren?Pr.createPortal(l.children,u.valueNode):null]})});oT.displayName=Ml;var sT="SelectItemIndicator",iT=x.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return rT(sT,n).isSelected?c.jsx(Ce.span,{"aria-hidden":!0,...a,ref:t}):null});iT.displayName=sT;var xg="SelectScrollUpButton",lT=x.forwardRef((e,t)=>{const n=uo(xg,e.__scopeSelect),a=tx(xg,e.__scopeSelect),[s,l]=x.useState(!1),u=Fe(t,a.onScrollButtonChange);return fn(()=>{if(n.viewport&&n.isPositioned){let f=function(){const m=h.scrollTop>0;l(m)};const h=n.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),s?c.jsx(uT,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=n;f&&h&&(f.scrollTop=f.scrollTop-h.offsetHeight)}}):null});lT.displayName=xg;var yg="SelectScrollDownButton",cT=x.forwardRef((e,t)=>{const n=uo(yg,e.__scopeSelect),a=tx(yg,e.__scopeSelect),[s,l]=x.useState(!1),u=Fe(t,a.onScrollButtonChange);return fn(()=>{if(n.viewport&&n.isPositioned){let f=function(){const m=h.scrollHeight-h.clientHeight,v=Math.ceil(h.scrollTop)<m;l(v)};const h=n.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),s?c.jsx(uT,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=n;f&&h&&(f.scrollTop=f.scrollTop+h.offsetHeight)}}):null});cT.displayName=yg;var uT=x.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...s}=e,l=uo("SelectScrollButton",n),u=x.useRef(null),f=bf(n),h=x.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return x.useEffect(()=>()=>h(),[h]),fn(()=>{var v;const m=f().find(g=>g.ref.current===document.activeElement);(v=m==null?void 0:m.ref.current)==null||v.scrollIntoView({block:"nearest"})},[f]),c.jsx(Ce.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:ge(s.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(a,50))}),onPointerMove:ge(s.onPointerMove,()=>{var m;(m=l.onItemLeave)==null||m.call(l),u.current===null&&(u.current=window.setInterval(a,50))}),onPointerLeave:ge(s.onPointerLeave,()=>{h()})})}),rF="SelectSeparator",aF=x.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return c.jsx(Ce.div,{"aria-hidden":!0,...a,ref:t})});aF.displayName=rF;var bg="SelectArrow",oF=x.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,s=wf(n),l=co(bg,n),u=uo(bg,n);return l.open&&u.position==="popper"?c.jsx(df,{...s,...a,ref:t}):null});oF.displayName=bg;var sF="SelectBubbleInput",dT=x.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const s=x.useRef(null),l=Fe(a,s),u=Av(t);return x.useEffect(()=>{const f=s.current;if(!f)return;const h=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==t&&v){const g=new Event("change",{bubbles:!0});v.call(f,t),f.dispatchEvent(g)}},[u,t]),c.jsx(Ce.select,{...n,style:{...FC,...n.style},ref:l,defaultValue:t})});dT.displayName=sF;function fT(e){return e===""||e===void 0}function hT(e){const t=un(e),n=x.useRef(""),a=x.useRef(0),s=x.useCallback(u=>{const f=n.current+u;t(f),function h(m){n.current=m,window.clearTimeout(a.current),m!==""&&(a.current=window.setTimeout(()=>h(""),1e3))}(f)},[t]),l=x.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,s,l]}function mT(e,t,n){const s=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=iF(e,Math.max(l,0));s.length===1&&(u=u.filter(m=>m!==n));const h=u.find(m=>m.textValue.toLowerCase().startsWith(s.toLowerCase()));return h!==n?h:void 0}function iF(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var lF=HN,cF=YN,uF=GN,dF=qN,fF=XN,hF=KN,mF=eT,pF=aT,gF=oT,vF=iT,xF=lT,yF=cT,bF="Separator",lS="horizontal",wF=["horizontal","vertical"],pT=x.forwardRef((e,t)=>{const{decorative:n,orientation:a=lS,...s}=e,l=SF(a)?a:lS,f=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return c.jsx(Ce.div,{"data-orientation":l,...f,...s,ref:t})});pT.displayName=bF;function SF(e){return wF.includes(e)}var EF=pT,Sf="Switch",[CF,eG]=wn(Sf),[jF,NF]=CF(Sf),gT=x.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:s,defaultChecked:l,required:u,disabled:f,value:h="on",onCheckedChange:m,form:v,...g}=e,[b,w]=x.useState(null),E=Fe(t,k=>w(k)),S=x.useRef(!1),j=b?v||!!b.closest("form"):!0,[N,A]=Ir({prop:s,defaultProp:l??!1,onChange:m,caller:Sf});return c.jsxs(jF,{scope:n,checked:N,disabled:f,children:[c.jsx(Ce.button,{type:"button",role:"switch","aria-checked":N,"aria-required":u,"data-state":bT(N),"data-disabled":f?"":void 0,disabled:f,value:h,...g,ref:E,onClick:ge(e.onClick,k=>{A(T=>!T),j&&(S.current=k.isPropagationStopped(),S.current||k.stopPropagation())})}),j&&c.jsx(yT,{control:b,bubbles:!S.current,name:a,value:h,checked:N,required:u,disabled:f,form:v,style:{transform:"translateX(-100%)"}})]})});gT.displayName=Sf;var vT="SwitchThumb",xT=x.forwardRef((e,t)=>
vendor: 4,988 bytes, line 394
394{const{__scopeSwitch:n,...a}=e,s=NF(vT,n);return c.jsx(Ce.span,{"data-state":bT(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})});xT.displayName=vT;var TF="SwitchBubbleInput",yT=x.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...s},l)=>{const u=x.useRef(null),f=Fe(u,l),h=Av(n),m=Mv(t);return x.useEffect(()=>{const v=u.current;if(!v)return;const g=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(g,"checked").set;if(h!==n&&w){const E=new Event("click",{bubbles:a});w.call(v,n),v.dispatchEvent(E)}},[h,n,a]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:f,style:{...s.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});yT.displayName=TF;function bT(e){return e?"checked":"unchecked"}var AF=gT,MF=xT,Ef="Tabs",[kF,tG]=wn(Ef,[hi]),wT=hi(),[DF,nx]=kF(Ef),ST=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,onValueChange:s,defaultValue:l,orientation:u="horizontal",dir:f,activationMode:h="automatic",...m}=e,v=ui(f),[g,b]=Ir({prop:a,onChange:s,defaultProp:l??"",caller:Ef});return c.jsx(DF,{scope:n,baseId:tn(),value:g,onValueChange:b,orientation:u,dir:v,activationMode:h,children:c.jsx(Ce.div,{dir:v,"data-orientation":u,...m,ref:t})})});ST.displayName=Ef;var ET="TabsList",CT=x.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0,...s}=e,l=nx(ET,n),u=wT(n);return c.jsx(Fv,{asChild:!0,...u,orientation:l.orientation,dir:l.dir,loop:a,children:c.jsx(Ce.div,{role:"tablist","aria-orientation":l.orientation,...s,ref:t})})});CT.displayName=ET;var jT="TabsTrigger",NT=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:s=!1,...l}=e,u=nx(jT,n),f=wT(n),h=MT(u.baseId,a),m=kT(u.baseId,a),v=a===u.value;return c.jsx(Vv,{asChild:!0,...f,focusable:!s,active:v,children:c.jsx(Ce.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":m,"data-state":v?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:h,...l,ref:t,onMouseDown:ge(e.onMouseDown,g=>{!s&&g.button===0&&g.ctrlKey===!1?u.onValueChange(a):g.preventDefault()}),onKeyDown:ge(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&u.onValueChange(a)}),onFocus:ge(e.onFocus,()=>{const g=u.activationMode!=="manual";!v&&!s&&g&&u.onValueChange(a)})})})});NT.displayName=jT;var TT="TabsContent",AT=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,forceMount:s,children:l,...u}=e,f=nx(TT,n),h=MT(f.baseId,a),m=kT(f.baseId,a),v=a===f.value,g=x.useRef(v);return x.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),c.jsx(nn,{present:s||v,children:({present:b})=>c.jsx(Ce.div,{"data-state":v?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":h,hidden:!b,id:m,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:b&&l})})});AT.displayName=TT;function MT(e,t){return`${e}-trigger-${t}`}function kT(e,t){return`${e}-content-${t}`}var RF=ST,OF=CT,_F=NT,PF=AT,[Cf,nG]=wn("Tooltip",[io]),jf=io(),DT="TooltipProvider",LF=700,wg="tooltip.open",[zF,rx]=Cf(DT),RT=e=>{const{__scopeTooltip:t,delayDuration:n=LF,skipDelayDuration:a=300,disableHoverableContent:s=!1,children:l}=e,u=x.useRef(!0),f=x.useRef(!1),h=x.useRef(0);return x.useEffect(()=>{const m=h.current;return()=>window.clearTimeout(m)},[]),c.jsx(zF,{scope:t,isOpenDelayedRef:u,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,a)},[a]),isPointerInTransitRef:f,onPointerInTransitChange:x.useCallback(m=>{f.current=m},[]),disableHoverableContent:s,children:l})};RT.displayName=DT;var Ql="Tooltip",[BF,wc]=Cf(Ql),OT=e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:s,onOpenChange:l,disableHoverableContent:u,delayDuration:f}=e,h=rx(Ql,e.__scopeTooltip),m=jf(t),[v,g]=x.useState(null),b=tn(),w=x.useRef(0),E=u??h.disableHoverableContent,S=f??h.delayDuration,j=x.useRef(!1),[N,A]=Ir({prop:a,defaultProp:s??!1,onChange:O=>{O?(h.onOpen(),document.dispatchEvent(new CustomEvent(wg))):h.onClose(),l==null||l(O)},caller:Ql}),k=x.useMemo(()=>N?j.current?"delayed-open":"instant-open":"closed",[N]),T=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,j.current=!1,A(!0)},[A]),M=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,A(!1)},[A]),_=x.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{j.current=!0,A(!0),w.current=0},S)},[S,A]);return x.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),c.jsx(cf,{...m,children:c.jsx(BF,{scope:t,contentId:b,open:N,stateAttribute:k,trigger:v,onTriggerChange:g,onTriggerEnter:x.useCallback(()=>{h.isOpenDelayedRef.current?_():T()},[h.isOpenDelayedRef,_,T]),onTriggerLeave:x.useCallback(()=>{E?M():(window.clearTimeout(w.current),w.current=0)},[M,E]),onOpen:T,onClose:M,disableHoverableContent:E,children:n})})};OT.displayName=Ql;var Sg="TooltipTrigger",_T=x.forwardRef((e,t)=>
vendor: 4,482 bytes, line 394
394{const{__scopeTooltip:n,...a}=e,s=wc(Sg,n),l=rx(Sg,n),u=jf(n),f=x.useRef(null),h=Fe(t,f,s.onTriggerChange),m=x.useRef(!1),v=x.useRef(!1),g=x.useCallback(()=>m.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),c.jsx(gc,{asChild:!0,...u,children:c.jsx(Ce.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:h,onPointerMove:ge(e.onPointerMove,b=>{b.pointerType!=="touch"&&!v.current&&!l.isPointerInTransitRef.current&&(s.onTriggerEnter(),v.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{s.onTriggerLeave(),v.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{s.open&&s.onClose(),m.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:ge(e.onFocus,()=>{m.current||s.onOpen()}),onBlur:ge(e.onBlur,s.onClose),onClick:ge(e.onClick,s.onClose)})})});_T.displayName=Sg;var ax="TooltipPortal",[FF,VF]=Cf(ax,{forceMount:void 0}),PT=e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:s}=e,l=wc(ax,t);return c.jsx(FF,{scope:t,forceMount:n,children:c.jsx(nn,{present:n||l.open,children:c.jsx(li,{asChild:!0,container:s,children:a})})})};PT.displayName=ax;var ti="TooltipContent",LT=x.forwardRef((e,t)=>{const n=VF(ti,e.__scopeTooltip),{forceMount:a=n.forceMount,side:s="top",...l}=e,u=wc(ti,e.__scopeTooltip);return c.jsx(nn,{present:a||u.open,children:u.disableHoverableContent?c.jsx(zT,{side:s,...l,ref:t}):c.jsx(UF,{side:s,...l,ref:t})})}),UF=x.forwardRef((e,t)=>{const n=wc(ti,e.__scopeTooltip),a=rx(ti,e.__scopeTooltip),s=x.useRef(null),l=Fe(t,s),[u,f]=x.useState(null),{trigger:h,onClose:m}=n,v=s.current,{onPointerInTransitChange:g}=a,b=x.useCallback(()=>{f(null),g(!1)},[g]),w=x.useCallback((E,S)=>{const j=E.currentTarget,N={x:E.clientX,y:E.clientY},A=YF(N,j.getBoundingClientRect()),k=WF(N,A),T=GF(S.getBoundingClientRect()),M=XF([...k,...T]);f(M),g(!0)},[g]);return x.useEffect(()=>()=>b(),[b]),x.useEffect(()=>{if(h&&v){const E=j=>w(j,v),S=j=>w(j,h);return h.addEventListener("pointerleave",E),v.addEventListener("pointerleave",S),()=>{h.removeEventListener("pointerleave",E),v.removeEventListener("pointerleave",S)}}},[h,v,w,b]),x.useEffect(()=>{if(u){const E=S=>{const j=S.target,N={x:S.clientX,y:S.clientY},A=(h==null?void 0:h.contains(j))||(v==null?void 0:v.contains(j)),k=!qF(N,u);A?b():k&&(b(),m())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[h,v,u,m,b]),c.jsx(zT,{...e,ref:l})}),[IF,HF]=Cf(Ql,{isInside:!1}),$F=ZE("TooltipContent"),zT=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:a,"aria-label":s,onEscapeKeyDown:l,onPointerDownOutside:u,...f}=e,h=wc(ti,n),m=jf(n),{onClose:v}=h;return x.useEffect(()=>(document.addEventListener(wg,v),()=>document.removeEventListener(wg,v)),[v]),x.useEffect(()=>{if(h.trigger){const g=b=>{const w=b.target;w!=null&&w.contains(h.trigger)&&v()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[h.trigger,v]),c.jsx(ii,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:g=>g.preventDefault(),onDismiss:v,children:c.jsxs(uf,{"data-state":h.stateAttribute,...m,...f,ref:t,style:{...f.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:[c.jsx($F,{children:a}),c.jsx(IF,{scope:n,isInside:!0,children:c.jsx(D8,{id:h.contentId,role:"tooltip",children:s||a})})]})})});LT.displayName=ti;var BT="TooltipArrow",FT=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,s=jf(n);return HF(BT,n).isInside?null:c.jsx(df,{...s,...a,ref:t})});FT.displayName=BT;function YF(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,a,s,l)){case l:return"left";case s:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function WF(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}
vendor: 10,039 bytes, line 394
394function GF(e){const{top:t,right:n,bottom:a,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:a},{x:s,y:a}]}function qF(e,t){const{x:n,y:a}=e;let s=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l],h=t[u],m=f.x,v=f.y,g=h.x,b=h.y;v>a!=b>a&&n<(g-m)*(a-v)/(b-v)+m&&(s=!s)}return s}function XF(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),KF(t)}function KF(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const s=e[a];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(s.y-u.y)>=(l.y-u.y)*(s.x-u.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const s=e[a];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(s.y-u.y)>=(l.y-u.y)*(s.x-u.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ZF=RT,QF=OT,JF=_T,e9=PT,t9=LT,n9=FT;function VT(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=VT(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function UT(){for(var e,t,n=0,a="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=VT(e))&&(a&&(a+=" "),a+=t);return a}const ox="-",r9=e=>{const t=o9(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:u=>{const f=u.split(ox);return f[0]===""&&f.length!==1&&f.shift(),IT(f,t)||a9(u)},getConflictingClassGroupIds:(u,f)=>{const h=n[u]||[];return f&&a[u]?[...h,...a[u]]:h}}},IT=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const n=e[0],a=t.nextPart.get(n),s=a?IT(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;const l=e.join(ox);return(u=t.validators.find(({validator:f})=>f(l)))==null?void 0:u.classGroupId},cS=/^\[(.+)\]$/,a9=e=>{if(cS.test(e)){const t=cS.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},o9=e=>{const{theme:t,classGroups:n}=e,a={nextPart:new Map,validators:[]};for(const s in n)Eg(n[s],a,s,t);return a},Eg=(e,t,n,a)=>{e.forEach(s=>{if(typeof s=="string"){const l=s===""?t:uS(t,s);l.classGroupId=n;return}if(typeof s=="function"){if(s9(s)){Eg(s(a),t,n,a);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([l,u])=>{Eg(u,uS(t,l),n,a)})})},uS=(e,t)=>{let n=e;return t.split(ox).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},s9=e=>e.isThemeGetter,i9=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const s=(l,u)=>{n.set(l,u),t++,t>e&&(t=0,a=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=a.get(l))!==void 0)return s(l,u),u},set(l,u){n.has(l)?n.set(l,u):s(l,u)}}},Cg="!",jg=":",l9=jg.length,c9=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=s=>{const l=[];let u=0,f=0,h=0,m;for(let E=0;E<s.length;E++){let S=s[E];if(u===0&&f===0){if(S===jg){l.push(s.slice(h,E)),h=E+l9;continue}if(S==="/"){m=E;continue}}S==="["?u++:S==="]"?u--:S==="("?f++:S===")"&&f--}const v=l.length===0?s:s.substring(h),g=u9(v),b=g!==v,w=m&&m>h?m-h:void 0;return{modifiers:l,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:w}};if(t){const s=t+jg,l=a;a=u=>u.startsWith(s)?l(u.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const s=a;a=l=>n({className:l,parseClassName:s})}return a},u9=e=>e.endsWith(Cg)?e.substring(0,e.length-1):e.startsWith(Cg)?e.substring(1):e,d9=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const s=[];let l=[];return a.forEach(u=>{u[0]==="["||t[u]?(s.push(...l.sort(),u),l=[]):l.push(u)}),s.push(...l.sort()),s}},f9=e=>({cache:i9(e.cacheSize),parseClassName:c9(e),sortModifiers:d9(e),...r9(e)}),h9=/\s+/,m9=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:l}=t,u=[],f=e.trim().split(h9);let h="";for(let m=f.length-1;m>=0;m-=1){const v=f[m],{isExternal:g,modifiers:b,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:S}=n(v);if(g){h=v+(h.length>0?" "+h:h);continue}let j=!!S,N=a(j?E.substring(0,S):E);if(!N){if(!j){h=v+(h.length>0?" "+h:h);continue}if(N=a(E),!N){h=v+(h.length>0?" "+h:h);continue}j=!1}const A=l(b).join(":"),k=w?A+Cg:A,T=k+N;if(u.includes(T))continue;u.push(T);const M=s(N,j);for(let _=0;_<M.length;++_){const O=M[_];u.push(k+O)}h=v+(h.length>0?" "+h:h)}return h};function p9(){let e=0,t,n,a="";for(;e<arguments.length;)(t=arguments[e++])&&(n=HT(t))&&(a&&(a+=" "),a+=n);return a}const HT=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=HT(e[a]))&&(n&&(n+=" "),n+=t);return n};function g9(e,...t){let n,a,s,l=u;function u(h){const m=t.reduce((v,g)=>g(v),e());return n=f9(m),a=n.cache.get,s=n.cache.set,l=f,f(h)}function f(h){const m=a(h);if(m)return m;const v=m9(h,n);return s(h,v),v}return function(){return l(p9.apply(null,arguments))}}const Wt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},$T=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,YT=/^\((?:(\w[\w-]*):)?(.+)\)$/i,v9=/^\d+\/\d+$/,x9=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y9=/\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$/,b9=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,w9=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S9=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ps=e=>v9.test(e),$e=e=>!!e&&!Number.isNaN(Number(e)),Ya=e=>!!e&&Number.isInteger(Number(e)),yp=e=>e.endsWith("%")&&$e(e.slice(0,-1)),fa=e=>x9.test(e),E9=()=>!0,C9=e=>y9.test(e)&&!b9.test(e),WT=()=>!1,j9=e=>w9.test(e),N9=e=>S9.test(e),T9=e=>!Se(e)&&!Ee(e),A9=e=>pi(e,XT,WT),Se=e=>$T.test(e),_o=e=>pi(e,KT,C9),bp=e=>pi(e,O9,$e),dS=e=>pi(e,GT,WT),M9=e=>pi(e,qT,N9),Qu=e=>pi(e,ZT,j9),Ee=e=>YT.test(e),bl=e=>gi(e,KT),k9=e=>gi(e,_9),fS=e=>gi(e,GT),D9=e=>gi(e,XT),R9=e=>gi(e,qT),Ju=e=>gi(e,ZT,!0),pi=(e,t,n)=>{const a=$T.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},gi=(e,t,n=!1)=>{const a=YT.exec(e);return a?a[1]?t(a[1]):n:!1},GT=e=>e==="position"||e==="percentage",qT=e=>e==="image"||e==="url",XT=e=>e==="length"||e==="size"||e==="bg-size",KT=e=>e==="length",O9=e=>e==="number",_9=e=>e==="family-name",ZT=e=>e==="shadow",P9=()=>{const e=Wt("color"),t=Wt("font"),n=Wt("text"),a=Wt("font-weight"),s=Wt("tracking"),l=Wt("leading"),u=Wt("breakpoint"),f=Wt("container"),h=Wt("spacing"),m=Wt("radius"),v=Wt("shadow"),g=Wt("inset-shadow"),b=Wt("text-shadow"),w=Wt("drop-shadow"),E=Wt("blur"),S=Wt("perspective"),j=Wt("aspect"),N=Wt("ease"),A=Wt("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...T(),Ee,Se],_=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],D=()=>[Ee,Se,h],L=()=>[Ps,"full","auto",...D()],I=()=>[Ya,"none","subgrid",Ee,Se],Z=()=>["auto",{span:["full",Ya,Ee,Se]},Ya,Ee,Se],ce=()=>[Ya,"auto",Ee,Se],U=()=>["auto","min","max","fr",Ee,Se],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...D()],H=()=>[Ps,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],V=()=>[e,Ee,Se],J=()=>[...T(),fS,dS,{position:[Ee,Se]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",D9,A9,{size:[Ee,Se]}],Y=()=>[yp,bl,_o],G=()=>["","none","full",m,Ee,Se],X=()=>["",$e,bl,_o],ne=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[$e,yp,fS,dS],ie=()=>["","none",E,Ee,Se],pe=()=>["none",$e,Ee,Se],fe=()=>["none",$e,Ee,Se],je=()=>[$e,Ee,Se],Ne=()=>[Ps,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fa],breakpoint:[fa],color:[E9],container:[fa],"drop-shadow":[fa],ease:["in","out","in-out"],font:[T9],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fa],shadow:[fa],spacing:["px",$e],text:[fa],"text-shadow":[fa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ps,Se,Ee,j]}],container:["container"],columns:[{columns:[$e,Se,Ee,f]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:M()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}
vendor: 11,595 bytes, line 394
394],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Ya,"auto",Ee,Se]}],basis:[{basis:[Ps,"full","auto",f,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$e,Ps,"auto","initial","none",Se]}],grow:[{grow:["",$e,Ee,Se]}],shrink:[{shrink:["",$e,Ee,Se]}],order:[{order:[Ya,"first","last","none",Ee,Se]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[f,"screen",...H()]}],"min-w":[{"min-w":[f,"screen","none",...H()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",n,bl,_o]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Ee,bp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yp,Se]}],"font-family":[{font:[k9,Se,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:[s,Ee,Se]}],"line-clamp":[{"line-clamp":[$e,"none",Ee,bp]}],leading:[{leading:[l,...D()]}],"list-image":[{"list-image":["none",Ee,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[$e,"from-font","auto",Ee,_o]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[$e,"auto",Ee,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,Se]}],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",Ee,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ya,Ee,Se],radial:["",Ee,Se],conic:[Ya,Ee,Se]},R9,M9]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$e,Ee,Se]}],"outline-w":[{outline:["",$e,bl,_o]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",v,Ju,Qu]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",g,Ju,Qu]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[$e,_o]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",b,Ju,Qu]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[$e,Ee,Se]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":[$e]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[Ee,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[$e]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,Se]}],filter:[{filter:["","none",Ee,Se]}],blur:[{blur:ie()}],brightness:[{brightness:[$e,Ee,Se]}],contrast:[{contrast:[$e,Ee,Se]}],"drop-shadow":[{"drop-shadow":["","none",w,Ju,Qu]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",$e,Ee,Se]}],"hue-rotate":[{"hue-rotate":[$e,Ee,Se]}],invert:[{invert:["",$e,Ee,Se]}],saturate:[{saturate:[$e,Ee,Se]}],sepia:[{sepia:["",$e,Ee,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,Se]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[$e,Ee,Se]}],"backdrop-contrast":[{"backdrop-contrast":[$e,Ee,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$e,Ee,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$e,Ee,Se]}],"backdrop-invert":[{"backdrop-invert":["",$e,Ee,Se]}],"backdrop-opacity":[{"backdrop-opacity":[$e,Ee,Se]}],"backdrop-saturate":[{"backdrop-saturate":[$e,Ee,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",$e,Ee,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$e,"initial",Ee,Se]}],ease:[{ease:["linear","initial",N,Ee,Se]}],delay:[{delay:[$e,Ee,Se]}],animate:[{animate:["none",A,Ee,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ee,Se]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[Ee,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}
vendor: 5,049 bytes, line 394
394],"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",Ee,Se]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",Ee,Se]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[$e,bl,_o,bp]}],stroke:[{stroke:["none",...V()]}],"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"]}},L9=g9(P9);function be(...e){return L9(UT(e))}const hS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mS=UT,sx=(e,t)=>n=>{var a;if((t==null?void 0:t.variants)==null)return mS(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:l}=t,u=Object.keys(s).map(m=>{const v=n==null?void 0:n[m],g=l==null?void 0:l[m];if(v===null)return null;const b=hS(v)||hS(g);return s[m][b]}),f=n&&Object.entries(n).reduce((m,v)=>{let[g,b]=v;return b===void 0||(m[g]=b),m},{}),h=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((m,v)=>{let{class:g,className:b,...w}=v;return Object.entries(w).every(E=>
394{let[S,j]=E;return Array.isArray(j)?j.includes({...l,...f}[S]):{...l,...f}[S]===j})?[...m,g,b]:m},[]);return mS(e,u,h,n==null?void 0:n.class,n==null?void 0:n.className)},Nf=sx("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[colors,transform,box-shadow,opacity] duration-150 ease-out outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:scale-[0.97] disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function nt({className:e,variant:t="default",size:n="default",asChild:a=!1,...s}){const l=a?XE:"button";return c.jsx(l,{"data-slot":"button","data-variant":t,"data-size":n,className:be(Nf({variant:t,size:n,className:e})),...s})}function Tf({...e}){return c.jsx(dc,{"data-slot":"dialog",...e})}function QT({...e}){return c.jsx(fc,{"data-slot":"dialog-portal",...e})}function JT({className:e,...t}){return c.jsx(hc,{"data-slot":"dialog-overlay",className:be("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function eA({className:e,children:t,showCloseButton:n=!0,...a}){return c.jsxs(QT,{"data-slot":"dialog-portal",children:[c.jsx(JT,{}),c.jsxs(ci,{"data-slot":"dialog-content",className:be("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...a,children:[t,n&&c.jsxs(af,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[c.jsx(Yr,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function tA({...e}){return c.jsxs(QT,{"data-slot":"dialog-portal",children:[c.jsx(JT,{className:"bg-transparent"}),c.jsx(ci,{"data-slot":"dialog-content-bare",...e})]})}function nA({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-header",className:be("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Af({className:e,...t}){return c.jsx(rf,{"data-slot":"dialog-title",className:be("text-lg leading-none font-semibold",e),...t})}function rA({className:e,...t}){return c.jsx(TC,{"data-slot":"dialog-description",className:be("text-sm text-muted-foreground",e),...t})}function dn(e,t="Something went wrong"){return e instanceof Error?e.message:typeof e=="string"?e:e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:t}function z9(e=768){const[t,n]=x.useState(()=>typeof window<"u"&&window.innerWidth<e);return x.useEffect(()=>{const a=()=>n(window.innerWidth<e);return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[e]),t}const B9=({open:e,onClose:t,eventTitle:n,eventApiId:a})=>{const s=z9();if(!e)return null;const l=c.jsx(F9,{eventApiId:a,eventTitle:n,onDone:t});return s?c.jsx(yl.Root,{open:e,onOpenChange:u=>!u&&t(),children:c.jsxs(yl.Portal,{children:[c.jsx(yl.Overlay,{className:"fixed inset-0 z-[100] bg-black/70"}),c.jsxs(yl.Content,{className:"fixed bottom-0 left-0 right-0 z-[101] bg-[#FAF6F0] rounded-t-2xl max-h-[92vh] overflow-y-auto",children:[c.jsxs(yl.Title,{className:"sr-only",children:["Share your photos from ",n]}),c.jsx("div",{className:"mx-auto my-3 h-1.5 w-12 rounded-full bg-black/15","aria-hidden":"true"}),c.jsx("div",{className:"px-6 pb-8",children:l})]})]})}):c.jsx(Tf,{open:e,onOpenChange:u=>!u&&t(),children:c.jsx(tA,{asChild:!0,"aria-describedby":void 0,children:c.jsxs(st.div,{initial:{opacity:0}
394,animate:{opacity:1},className:"fixed inset-0 z-[100] flex items-center justify-center bg-[#2C2218]/70 backdrop-blur-[2px] px-4 outline-none",onClick:t,children:[c.jsxs(Af,{className:"sr-only",children:["Share your photos from ",n]}),c.jsxs(st.div,{initial:{opacity:0,scale:.94,y:18},animate:{opacity:1,scale:1,y:0},transition:{type:"spring",stiffness:300,damping:30},className:"relative bg-[#FAF6F0] rounded-3xl w-full max-w-xl px-8 py-9 md:px-10 max-h-[92vh] overflow-y-auto shadow-[0_40px_120px_-30px_rgba(20,14,8,0.6)]",onClick:u=>u.stopPropagation(),children:[c.jsx("button",{onClick:t,"aria-label":"Close",className:"absolute top-5 right-5 text-[#5A4E40] hover:text-[#2C2218] transition-colors p-1",children:c.jsx(Yr,{size:20})}),l]})]})})})},ed=10,F9=({eventApiId:e,eventTitle:t,onDone:n})=>{const a=x.useRef(null),[s,l]=x.useState(!1),[u,f]=x.useState(!1),[h,m]=x.useState([]),[v,g]=x.useState(""),[b,w]=x.useState(""),[E,S]=x.useState(!1),[j,N]=x.useState(0),[A,k]=x.useState(0);x.useEffect(()=>()=>{h.forEach(O=>URL.revokeObjectURL(O.preview))},[h]);const T=O=>{if(!O)return;const D=Array.from(O).filter(L=>L.type.startsWith("image/")||/\.(heic|heif)$/i.test(L.name));m(L=>{const I=new Set(L.map(ce=>ce.key)),Z=[];for(const ce of D){const U=`${ce.name}::${ce.size}::${ce.lastModified}`;I.has(U)||L.length+Z.length>=ed||(I.add(U),Z.push({key:U,file:ce,preview:URL.createObjectURL(ce)}))}return[...L,...Z]})},M=O=>{m(D=>{const L=D.find(I=>I.key===O);return L&&URL.revokeObjectURL(L.preview),D.filter(I=>I.key!==O)})},_=async()=>{if(!(!e||h.length===0||E)){S(!0),N(0);try{const O=new FormData;O.set("event_id",String(e)),v.trim()&&O.set("submitter_name",v.trim()),b.trim()&&O.set("caption",b.trim()),O.set("website",""),h.forEach(L=>O.append("photos[]",L.file));const D=await it.photos.upload(O,N);k(D.accepted),f(!0),D.rejected>0&&We.error(`${D.rejected} photo${D.rejected!==1?"s":""} could not be uploaded`)}catch(O){We.error(dn(O,"Upload failed. Please try again."))}finally{S(!1)}}};return u?c.jsxs("div",{className:"flex flex-col items-center py-10 gap-4 text-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-[#6B4E30]/12 flex items-center justify-center",children:c.jsx(so,{className:"text-[#6B4E30]",size:34,"aria-hidden":!0})}),c.jsx("p",{className:"font-bookish text-[#2C2218] text-2xl",children:"Thank you for sharing"}),c.jsxs("p",{className:"text-[#5A4E40] text-sm leading-relaxed max-w-xs",children:["Your ",A===1?"photo is":`${A} photos are`," on the way to our Memories. An admin will review and publish ",A===1?"it":"them"," so the whole community can enjoy this day again."]}),c.jsx("button",{onClick:n,className:"mt-3 bg-[#6B4E30] text-[#FAF6F0] font-bold text-sm px-9 py-3 rounded-xl hover:bg-[#553C22] transition-colors active:scale-[0.98]",children:"Done"})]}):c.jsxs("div",{children:[c.jsxs("div",{className:"text-center mb-6",children:[c.jsx("h3",{className:"font-bookish text-[1.75rem] md:text-[2rem] text-[#2C2218] leading-tight",children:"Share Your Photos"}),c.jsxs("p",{className:"font-bookish italic text-[#6B4E30] text-[15px] mt-2",children:["Add your memories",t?c.jsxs(c.Fragment,{children:[" from ",t]}):null]}),c.jsx("p",{className:"text-[#5A4E40] text-sm mt-1.5",children:"Your photos help our whole parish remember this day together."})]}),c.jsxs("div",{className:"bg-white/55 border border-black/7 rounded-xl px-4 py-3.5 mb-5","aria-labelledby":"photo-sharing-help",children:[c.jsx("p",{id:"photo-sharing-help",className:"text-[#2C2218] text-sm font-bold mb-2.5",children:"How to share your photos"}),c.jsxs("ol",{className:"space-y-2 text-[#5A4E40] text-sm leading-relaxed",children:[c.jsxs("li",{className:"flex gap-2.5",children:[c.jsx("span",{className:"font-bold text-[#6B4E30] tnums","aria-hidden":!0,children:"1."}),c.jsxs("span",{children:["Choose up to ",ed," photos from your phone, tablet, or computer."]})]}),c.jsxs("li",{className:"flex gap-2.5",children:[c.jsx("span",{className:"font-bold text-[#6B4E30] tnums","aria-hidden":!0,children:"2."}),c.jsx("span",{children:"Add your name or one caption if you wish â both are optional."})]}),c.jsxs("li",{className:"flex gap-2.5",children:[c.jsx("span",{className:"font-bold text-[#6B4E30] tnums","aria-hidden":!0,
394children:"3."}),c.jsxs("span",{children:["Tap ",c.jsx("strong",{className:"text-[#2C2218]",children:"Add to Memories"}),", then keep this window open until the thank-you message appears."]})]})]})]}),c.jsxs("div",{role:"button",tabIndex:0,"aria-label":"Add photos",className:`relative rounded-2xl border-2 border-dashed px-6 py-9 flex flex-col items-center gap-1.5 cursor-pointer transition-colors text-center ${s?"border-[#6B4E30] bg-[#6B4E30]/6":"border-[#6B4E30]/35 hover:border-[#6B4E30]/60 bg-white/40"}`,onDragOver:O=>{O.preventDefault(),l(!0)},onDragLeave:()=>l(!1),onDrop:O=>{O.preventDefault(),l(!1),T(O.dataTransfer.files)},onClick:()=>{var O;return(O=a.current)==null?void 0:O.click()},onKeyDown:O=>{var D;(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),(D=a.current)==null||D.click())},children:[c.jsxs("svg",{width:"120",height:"52",viewBox:"0 0 120 52",fill:"none",stroke:"#6B4E30",strokeWidth:"1.4",strokeLinecap:"round",className:"mb-1 opacity-90","aria-hidden":!0,children:[c.jsx("rect",{x:"44",y:"10",width:"34",height:"26",rx:"3",transform:"rotate(-3 44 10)",className:"opacity-40"}),c.jsx("rect",{x:"46",y:"13",width:"34",height:"26",rx:"3",fill:"#FAF6F0"}),c.jsx("circle",{cx:"56",cy:"22",r:"2.6"}),c.jsx("path",{d:"M48 34l8-7 6 5 7-8 9 10"}),c.jsx("path",{d:"M24 18l0 7M20.5 21.5l7 0",className:"opacity-60"}),c.jsx("path",{d:"M97 26l0 5M94.5 28.5l5 0",className:"opacity-60"}),c.jsx("path",{d:"M14 36c5-1 8-4 9-8",className:"opacity-45"}),c.jsx("path",{d:"M106 14c-5 1-8 4-9 8",className:"opacity-45"})]}),c.jsxs("p",{className:"font-bookish text-[#2C2218] text-xl",children:[c.jsx("span",{className:"md:hidden",children:"Tap to add your photos"}),c.jsx("span",{className:"hidden md:inline",children:"Drag your photos here"})]}),c.jsxs("p",{className:"text-[#5A4E40] text-sm",children:[c.jsx("span",{className:"md:hidden",children:"choose them right from your camera roll"}),c.jsx("span",{className:"hidden md:inline",children:"or click to choose them from your device"})]}),c.jsx("input",{ref:a,type:"file",accept:"image/*,.heic,.heif",multiple:!0,className:"hidden",onChange:O=>{T(O.target.files),O.target.value=""}})]}),h.length>0&&c.jsxs("div",{className:"mt-4",children:[c.jsxs("p",{className:"text-[#5A4E40] text-sm mb-2 tnums","aria-live":"polite",children:[h.length," of ",ed," photo",h.length!==1?"s":""," selected"]}),c.jsx("div",{className:"flex gap-2.5 flex-wrap",children:h.map(O=>c.jsxs("div",{className:"relative w-[76px] h-[76px] rounded-lg overflow-hidden img-outline group",children:[c.jsx("img",{src:O.preview,alt:O.file.name,className:"w-full h-full object-cover"}),c.jsx("button",{type:"button",onClick:D=>{D.stopPropagation(),M(O.key)},"aria-label":`Remove ${O.file.name}`,className:"absolute top-1 right-1 bg-[#2C2218]/70 hover:bg-[#2C2218] text-[#FAF6F0] rounded-full p-1 transition-colors",children:c.jsx(Yr,{size:11})})]},O.key))})]}),c.jsxs("div",{className:"mt-5 space-y-3",children:[c.jsxs("div",{className:"relative",children:[c.jsx(HE,{size:15,className:"absolute left-4 top-1/2 -translate-y-1/2 text-[#9A8E80]","aria-hidden":!0}),c.jsx("input",{type:"text",value:v,maxLength:100,onChange:O=>g(O.target.value),placeholder:"Your name (optional)",className:"w-full bg-white border border-black/8 rounded-xl pl-11 pr-4 py-3 text-sm text-[#2C2218] placeholder:text-[#7A6E5E] focus:outline-none focus:border-[#6B4E30]/50 focus:ring-2 focus:ring-[#6B4E30]/15"})]}),c.jsxs("div",{className:"relative",children:[c.jsx(I3,{size:15,className:"absolute left-4 top-3.5 text-[#9A8E80]","aria-hidden":!0}),c.jsx("textarea",{value:b,maxLength:1e3,rows:2,onChange:O=>w(O.target.value),placeholder:"Caption (optional)",className:"w-full bg-white border border-black/8 rounded-xl pl-11 pr-4 py-3 text-sm text-[#2C2218] placeholder:text-[#7A6E5E] focus:outline-none focus:border-[#6B4E30]/50 focus:ring-2 focus:ring-[#6B4E30]/15 resize-none"})]}),c.jsx("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",className:"hidden","aria-hidden":"true"})]}),c.jsxs("p",{className:"text-[#5A4E40] text-xs text-center mt-4 leading-relaxed",children:["JPG, PNG, HEIC up to 20MB each. Max ",ed," photos per submission.",c.jsx("br",{}),"Photos are reviewed before publishing."]}),c.jsxs("div",{className:"flex items-center gap-3 my-4","aria-hidden":!0,
394children:[c.jsx("span",{className:"flex-1 h-px bg-black/7"}),c.jsx(N3,{size:14,className:"text-[#6B4E30]/60"}),c.jsx("span",{className:"flex-1 h-px bg-black/7"})]}),c.jsxs("p",{className:"flex items-center justify-center gap-2 text-[#5A4E40] text-xs text-center",children:[c.jsx(Qd,{size:13,className:"text-[#9A8E80] shrink-0","aria-hidden":!0}),"An admin will review and publish your photos so the whole community can enjoy them."]}),E&&c.jsxs("div",{className:"mt-4",children:[c.jsx("div",{className:"h-1.5 w-full bg-[#F5ECE0] rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full bg-[#6B4E30] transition-all",style:{width:`${j}%`}})}),c.jsxs("p",{className:"text-[#5A4E40] text-xs text-center mt-2 tnums",children:["Adding to Memories⦠",j,"%"]})]}),c.jsxs("div",{className:"flex gap-3 mt-6",children:[c.jsx("button",{onClick:n,disabled:E,className:"flex-1 bg-white border border-black/8 text-[#5A4E40] font-bold text-sm py-3.5 rounded-xl hover:bg-[#F5ECE0] transition-colors disabled:opacity-40",children:"Cancel"}),c.jsxs("button",{onClick:_,disabled:h.length===0||E||!e,className:"flex-1 flex items-center justify-center gap-2 bg-[#6B4E30] text-[#FAF6F0] font-bold text-sm py-3.5 rounded-xl hover:bg-[#553C22] transition-colors active:scale-[0.98] disabled:opacity-40 disabled:cursor-not-allowed",children:[c.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:c.jsx("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})}),E?"Addingâ¦":"Add to Memories"]})]})]})};function V9(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const[t,n,a]=e.split("-").map(Number);return new Date(Date.UTC(t,n-1,a)).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"})}function Ng(e){return!e||e==="other"?"":e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const U9=()=>c.jsxs("div",{className:"flex items-center justify-center gap-3 py-2 select-none","aria-hidden":!0,children:[c.jsx("span",{className:"w-10 h-px bg-black/8"}),c.jsx("span",{className:"text-[#6B4E30]/45 text-[10px]",children:"â¦"}),c.jsx("span",{className:"w-10 h-px bg-black/8"})]}),wp=11,I9=(e,t)=>t===1?"col-span-2 md:col-span-4 row-span-2":t===2?"col-span-2 row-span-2":t===3?e===0?"col-span-2 row-span-2":"col-span-2":t===4?e===0?"col-span-2 row-span-2":e===3?"col-span-2":"":e===0?"col-span-2 row-span-2":e%9===5?"md:col-span-2":"",H9=({photos:e,total:t,eventTitle:n,onOpen:a})=>{const s=e.slice(0,wp),l=Math.max(e.length-wp,0)+Math.max(t-e.length,0);return c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 auto-rows-[130px] sm:auto-rows-[150px] md:auto-rows-[170px] gap-2.5 md:gap-3",children:s.map((u,f)=>{const h=f===s.length-1&&l>0;return c.jsxs("button",{type:"button",onClick:()=>a(h?Math.min(wp,e.length-1):f),"aria-label":h?`View ${l} more photos from ${n}`:u.caption??`Photo ${f+1} from ${n}`,className:`relative overflow-hidden rounded-xl group img-outline focus:outline-none focus-visible:ring-2 focus-visible:ring-[#6B4E30] focus-visible:ring-offset-2 focus-visible:ring-offset-[#FAF6F0] ${I9(f,s.length)}`,children:[c.jsx("img",{src:u.thumb_url,alt:u.caption??"",loading:"lazy",className:`w-full h-full object-cover transition-transform duration-700 ease-out group-hover:scale-[1.04] ${h?"brightness-[0.35]":""}`}),h&&c.jsxs("span",{className:"absolute inset-0 flex flex-col items-center justify-center text-[#FAF6F0]",children:[c.jsxs("span",{className:"font-bookish text-2xl md:text-3xl tnums",children:["+",l]}),c.jsx("span",{className:"text-xs font-bold tracking-[0.18em] uppercase mt-1 text-[#FAF6F0]",children:"more"})]})]},u.id)})})},$9=({event:e,onOpenPhoto:t,onShare:n,registerRef:a})=>{const s=Ng(e.type);return c.jsxs("section",{ref:l=>a(e.id,l),className:"scroll-mt-28",children:[c.jsxs("div",{className:"flex items-end justify-between gap-4 flex-wrap mb-5",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"font-display text-[1.7rem] md:text-4xl text-[#2C2218] tracking-wide uppercase leading-tight",children:e.title}),c.jsxs("p",{className:"text-[#5A4E40] text-[11px] font-bold tracking-[0.2em] uppercase mt-2 tnums",children:[V9(e.date),c.jsx("span",{className:"normal-case font-normal tracking-normal text-xs",children:" · Community photos & parish archive"})]})]}),c.jsxs("p",{className:"text-[#5A4E40] text-xs shrink-0 tnums",children:[s&&c.jsx("span",{className:"font-bold tracking-[0.18em] uppercase text-[10px] mr-3",children:s}),e.photo_count," photo",e.photo_count!==1?"s":""]})]}),c.jsx(H9,{photos:e.photos,total:e.photo_count,eventTitle:e.title,onOpen:l=>t(e.id,l)}),c.jsxs("button",{type:"button",onClick:()=>n(e),className:"group mt-4 inline-flex items-center gap-2 text-[#6B4E30] hover:text-[#553C22] text-[11px] font-black tracking-[0.2em] uppercase transition-colors",children:[c.jsx(Kd,{size:13,"aria-hidden":!0}),"Add your photos from this day",c.jsx(si,{size:12,className:"group-hover:translate-x-1 transition-transform","aria-hidden":!0})]})]})},Y9=()=>{const[e,t]=kw("type","All"),[n]=kw("focus",""),[a,s]=x.useState(null),[l,u]=x.useState(!1),[f,h]=x.useState(0),[m,v]=x.useState(null),[g,b]=x.use
394State(null),w=x.useRef({}),E=x.useRef(!1);x.useEffect(()=>{let T=!1;return s(null),u(!1),(async()=>{try{const M=await it.photos.all("all",60);T||s(M.events.filter(_=>_.status==="past"))}catch{T||(s([]),u(!0))}})(),()=>{T=!0}},[f]);const S=x.useMemo(()=>a?e==="All"?a:a.filter(T=>T.type&&Ng(T.type)===e):null,[a,e]);x.useEffect(()=>{if(!S||E.current)return;const T=parseInt(n,10);if(!T)return;const M=w.current[T];M&&(E.current=!0,requestAnimationFrame(()=>M.scrollIntoView({behavior:"smooth",block:"start"})))},[S,n]);const j=x.useMemo(()=>{const T=new Set;return(a??[]).forEach(M=>{M.type&&M.type!=="other"&&T.add(Ng(M.type))}),["All",...Array.from(T)]},[a]),N=x.useCallback((T,M)=>{const _=(S??[]).find(O=>O.id===T);_&&v({photos:_.photos,index:M,eventTitle:_.title})},[S]),A=x.useCallback((T,M)=>{w.current[T]=M},[]),k=(a==null?void 0:a[0])??null;return c.jsxs("div",{className:"min-h-screen bg-[#FAF6F0]",children:[c.jsx("header",{className:"border-b border-black/7",children:c.jsxs("div",{className:"container mx-auto px-6 max-w-6xl pt-8 pb-10 md:pt-10 md:pb-14",children:[c.jsxs("a",{href:"/",className:"inline-flex items-center gap-2 text-[#5A4E40] hover:text-[#2C2218] text-sm font-medium mb-8 group",children:[c.jsx(bv,{size:16,className:"group-hover:-translate-x-1 transition-transform","aria-hidden":!0}),c.jsx("span",{children:"Back to Home"})]}),c.jsxs("div",{className:"grid gap-8 md:grid-cols-[minmax(0,1fr)_240px] md:items-end md:gap-12 max-w-[52rem]",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"font-display text-[3.2rem] md:text-[5rem] leading-[0.95] text-[#2C2218] tracking-wide",children:"MEMORIES"}),c.jsx("p",{className:"font-bookish italic text-[#5A4E40] text-lg md:text-xl mt-3",children:"Photos shared by our community, event by event."}),c.jsx("div",{className:"w-12 h-px bg-[#6B4E30]/50 mt-5","aria-hidden":!0})]}),k&&c.jsxs("button",{type:"button",onClick:()=>b(k),className:"group shrink-0 text-left bg-white border border-black/7 rounded-2xl px-6 py-5 max-w-[240px] shadow-[0_14px_40px_-24px_rgba(44,34,24,0.4)] hover:border-[#6B4E30]/30 transition-colors",children:[c.jsx(Kd,{className:"text-[#6B4E30] mb-3",size:22,"aria-hidden":!0}),c.jsx("p",{className:"font-bookish text-[#2C2218] text-lg leading-snug",children:"Share your photos"}),c.jsx("p",{className:"text-[#5A4E40] text-xs leading-relaxed mt-1",children:"Help preserve our memories together."}),c.jsx(si,{size:16,className:"text-[#6B4E30] mt-3 group-hover:translate-x-1 transition-transform","aria-hidden":!0})]})]})]})}),c.jsx("div",{className:"sticky top-0 z-30 bg-[#FAF6F0]/95 backdrop-blur-sm border-b border-black/5",children:c.jsxs("div",{className:"container mx-auto px-6 max-w-6xl py-3.5 flex flex-wrap items-center gap-x-5 gap-y-2",children:[c.jsx("p",{className:"text-[#5A4E40] text-[11px] font-bold tracking-[0.2em] uppercase",children:"Browse by event chapter"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:j.map(T=>c.jsx("button",{type:"button",onClick:()=>t(T),"aria-pressed":e===T,className:`px-4 py-1.5 rounded-full text-xs font-bold tracking-widest uppercase border transition-all duration-200 ${e===T?"bg-[#6B4E30] text-[#FAF6F0] border-[#6B4E30]":"bg-transparent text-[#5A4E40] border-black/10 hover:border-[#6B4E30]/40 hover:text-[#2C2218]"}`,children:T},T))})]})}),c.jsxs("div",{className:"container mx-auto px-6 py-12 md:py-16 max-w-6xl",children:[S===null&&c.jsx("div",{className:"space-y-14","aria-hidden":!0,children:[0,1].map(T=>c.jsxs("div",{children:[c.jsx("div",{className:"h-9 w-2/3 max-w-sm bg-[#F5ECE0] rounded animate-pulse mb-6"}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 auto-rows-[150px] gap-3",children:Array.from({length:7}).map((M,_)=>c.jsx("div",{className:`rounded-xl bg-[#F5ECE0] animate-pulse ${_===0?"col-span-2 row-span-2":""}`},_))})]},T))}),S&&S.length===0&&l&&c.jsxs("div",{className:"flex flex-col items-center justify-center py-24 gap-4 text-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-white flex items-center justify-center",children:c.jsx(Vo,{className:"text-[#9A8E80]",size:28,"aria-hidden":!0})}),c.jsx("p",{className:"font-bookish text-[#2C2218] text-xl",children:"We couldn't open the album just now"}),c.jsx("p",{className:"text-[#5A4E40] text-sm max-w-sm leading-relaxed",children:"Something went wrong loading the photos. Please check your connection and try again."}),c.jsx("button",{type:"button",onClick:()=>h(T=>T+1),className:"mt-2 bg-[#6B4E30] text-[#FAF6F0] px-6 py-2.5 rounded-full text-xs font-bold tracking-widest uppercase hover:bg-[#553C22] transition-colors",children:"Try again"})]}),S&&S.length===0&&!l&&e!=="All"&&c.jsxs("div",{className:"flex flex-col items-center justify-center py-24 gap-4 text-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-white flex items-center justify-center",children:c.jsx(Vo,{className:"text-[#9A8E80]",size:28,"aria-hidden":!0})}),c.jsx("p",{className:"font-bookish text-[#2C2218] text-xl",children:"No memories in this chapter yet"}),c.jsx("button",{type:"button",onClick:()=>t("All"),className:"mt-1 text-[#6B4E30] text-sm font-bold tracking-widest uppercase hover:text-[#553C22] transition-colors",children:"Show every chapter"})]}),S&&S.length===0&&!l&&e==="All"&&c.jsxs("div",{className:"flex flex-col items-center justify-center py-24 gap-4 text-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-white flex items-center justify-center",children:c.jsx(Vo,{className:"text-[#9A8E80]",size:28,"aria-hidden":!0})}),c.jsx("p",{className:"font-bookish text-[#2C2218] text-xl",children:"The album is waiting for its first page"}),c.jsx("p",{className:"text-[#5A4E40] text-sm max-w-sm leading-relaxed",children:"As events happen and the community shares photos, they'll be gathered here â event by event, year by year."})]}),S&&S.map((T,M)=>c.jsxs(z.Fragment,{children:[M>0&&c.jsx("div",{className:"my-12 md:my-16",children:c.jsx(U9,{})}),c.jsx($9,{event:T,onOpenPhoto:N,onShare:b,registerRef:A})]},T.id)),S&&S.length>0&&c.jsxs("footer",{className:"mt-20 md:mt-28 pb-8 text-center",children:[c.jsxs("svg",{width:"26",height:"30",viewBox:"0 0 22 26",fill:"none",stroke:"#6B4E30",strokeWidth:"1.6",strokeLinecap:"round",className:"mx-auto mb-5 opacity-70","aria-hidden":!0,
394children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"24"}),c.jsx("line",{x1:"4",y1:"8",x2:"18",y2:"8"})]}),c.jsx("p",{className:"font-bookish italic text-[#2C2218] text-xl md:text-2xl max-w-md mx-auto text-balance",children:"âWe remember with gratitude. We celebrate together.â"}),c.jsx("p",{className:"text-[#9A8E80] text-[11px] font-bold tracking-[0.24em] uppercase mt-4",children:"â St. Mary's Parish"})]})]}),c.jsx(va,{children:m&&c.jsx(A6,{photos:m.photos,index:m.index,onClose:()=>v(null),onIndex:T=>v(M=>M?{...M,index:T}:null),eventTitle:m.eventTitle})}),c.jsx(B9,{open:g!==null,onClose:()=>b(null),eventTitle:(g==null?void 0:g.title)??"",eventApiId:g==null?void 0:g.id})]})};function W9({...e}){return c.jsx(H8,{"data-slot":"alert-dialog",...e})}function G9({...e}){return c.jsx($8,{"data-slot":"alert-dialog-portal",...e})}function q9({className:e,...t}){return c.jsx(Y8,{"data-slot":"alert-dialog-overlay",className:be("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function X9({className:e,...t}){return c.jsxs(G9,{children:[c.jsx(q9,{}),c.jsx(W8,{"data-slot":"alert-dialog-content",className:be("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...t})]})}function K9({className:e,...t}){return c.jsx("div",{"data-slot":"alert-dialog-header",className:be("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Z9({className:e,...t}){return c.jsx("div",{"data-slot":"alert-dialog-footer",className:be("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Q9({className:e,...t}){return c.jsx(X8,{"data-slot":"alert-dialog-title",className:be("text-lg leading-none font-semibold",e),...t})}function J9({className:e,...t}){return c.jsx(K8,{"data-slot":"alert-dialog-description",className:be("text-sm text-muted-foreground",e),...t})}function eV({className:e,...t}){return c.jsx(G8,{className:be(Nf(),e),...t})}function tV({className:e,...t}){return c.jsx(q8,{className:be(Nf({variant:"outline"}),e),...t})}let _d=null;function ix(e,t){return new Promise(n=>{if(!_d){n(window.confirm(e));return}_d({message:e,opts:t,resolve:n})})}const nV=()=>{var a,s,l,u;const[e,t]=x.useState(null);x.useEffect(()=>(_d=f=>t(f),()=>{_d=null}),[]);const n=f=>{e==null||e.resolve(f),t(null)};return c.jsx(W9,{open:e!==null,onOpenChange:f=>{f||n(!1)},children:c.jsxs(X9,{className:"bg-card",children:[c.jsxs(K9,{children:[c.jsx(Q9,{className:"text-foreground font-black tracking-tight",children:e==null?void 0:e.message}),((a=e==null?void 0:e.opts)==null?void 0:a.description)&&c.jsx(J9,{children:e.opts.description})]}),c.jsxs(Z9,{children:[c.jsx(tV,{onClick:()=>n(!1),children:"Cancel"}),c.jsx(eV,{onClick:()=>n(!0),className:(s=e==null?void 0:e.opts)!=null&&s.danger?"bg-red-700 text-white hover:bg-red-800":void 0,children:((l=e==null?void 0:e.opts)==null?void 0:l.confirmLabel)??((u=e==null?void 0:e.opts)!=null&&u.danger?"Delete":"Confirm")})]})]})})},rV=[{amount:60,name:"seconds"},{amount:60,name:"minutes"},{amount:24,name:"hours"},{amount:7,name:"days"},{amount:4.34524,name:"weeks"},{amount:12,name:"months"},{amount:Number.POSITIVE_INFINITY,name:"years"}],pS=typeof Intl<"u"&&Intl.RelativeTimeFormat?new Intl.RelativeTimeFormat("en",{numeric:"auto"}):null;function Xo(e){if(!e||!pS)return"";let t;if(e instanceof Date)t=e;else{const a=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e)?e.replace(" ","T"):e;t=new Date(a)}if(isNaN(t.getTime()))return"";let n=(t.getTime()-Date.now())/1e3;for(const a of rV){if(Math.abs(n)<a.amount)return pS.format(Math.round(n),a.name);n/=a.amount}return""}function lx(e){const t=aA(e);return!t||isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{month:"short",day:"numeric",timeZone:"UTC"}).toUpperCase()}function aV(e){const t=aA(e);return!t||isNaN(t.getTime())?{month:"",day:"",year:""}:{month:t.toLocaleDateString("en-US",{month:"short",timeZone:"UTC"}).toUpperCase(),day:String(t.getUTCDate()).padStart(2,"0"),year:String(t.getUTCFullYear())}}function oV(e){const t=iV(e);if(!t||isNaN(t.getTime()))return"older";const n=new Date,a=f=>new Date(f.getFullYear(),f.getMonth(),f.getDate()),s=a(n),l=a(t),u=Math.round((s.getTime()-l.getTime())/864e5);return u<=0?"today":u===1?"yesterday":u<=6?"this_week":"older"}const sV={today:"Today",yesterday:"Yesterday",this_week:"Earlier this week",older:"Older"};function aA(e){return e instanceof Date?e:e?/^\d{4}-\d{2}-\d{2}$/.test(e)?new Date(Date.UTC(+e.slice(0,4),+e.slice(5,7)-1,+e.slice(8,10))):new Date(e):null}function iV(e){if(e instanceof Date)return e;if(!e)return null;const t=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e)?e.replace(" ","T"):e;return new Date(t)}function Sc(e){const t=(e??"").toLowerCase();switch(t){case"zabava":return{Icon:V3,badge:"bg-pink-50 text-pink-700 border-pink-200",placeholder:"bg-pink-50 text-pink-600/70",label:"Zabava",accent:"bg-pink-500"};case"bazaar":return{Icon:$E,badge:"bg-amber-50 text-amber-800 border-amber-200",placeholder:"bg-amber-50 text-amber-700/70",label:"Bazaar",accent:"bg-amber-500"};case"concert":return{Icon:B3,badge:"bg-violet-50 text-violet-700 border-violet-200",placeholder:"bg-violet-50 text-violet-600/70",label:"Concert",accent:"bg-violet-500"};default:return{Icon:$r,badge:"bg-[#F5ECE0] text-[#6B4E30] border-black/7",placeholder:"bg-[#F5ECE0] text-[#9A8E80]",label:t?t.charAt(0).toUpperCase()+t.slice(1):"Event",accent:"bg-[#6B4E30]"}}}function lV(e){return(e??"").normalize("NFKC").replace(/[\p{Extended_Pictographic}\p{Regional_Indicator}\p{Emoji_Modifier}]/gu," ").replace(/\u200D|\u20E3|\uFE0E|\uFE0F/gu," ").replace(/\s+([,.;:!?])/g,"$1").replace(/\s+/g," ").trim()}function cV(e,t=180){const n=lV(e);if(n.length<=t)return n;const a=n.slice(0,t+1),s=[". ","! ","? "].map(f=>a.lastIndexOf(f)).filter(f=>f>=Math.floor(t*.4));if(s.length>0){const f=Math.min(...s);return a.slice(0,f+1).trim()}const l=a.lastIndexOf(" ");return`${a.slice(0,l>0?l:t).replace(/[,:;.!?\s]+$/g,"")}â¦`}function Hn({className:e,type:t,...n}){return c.jsx("input",{type:t,"data-slot":"input",className:be("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...n})}function ni({className:e,...t}){return c.jsx($B,{"data-slot":"label",className:be("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function gS({className:e,...t}){return c.jsx("textarea",{"data-slot":"textarea",className:be("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e),...t})}const uV=sx("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focu
394s-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function oA({className:e,variant:t="default",asChild:n=!1,...a}){const s=n?XE:"span";return c.jsx(s,{"data-slot":"badge","data-variant":t,className:be(uV({variant:t}),e),...a})}function dV({className:e,...t}){return c.jsx("div",{"data-slot":"card",className:be("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function fV({className:e,...t}){return c.jsx("div",{"data-slot":"card-content",className:be("px-6",e),...t})}function sA({className:e,orientation:t="horizontal",decorative:n=!0,...a}){return c.jsx(EF,{"data-slot":"separator",decorative:n,orientation:t,className:be("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...a})}function hV({className:e,children:t,...n}){return c.jsxs(L7,{"data-slot":"scroll-area",className:be("relative",e),...n,children:[c.jsx(z7,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),c.jsx(mV,{}),c.jsx(B7,{})]})}function mV({className:e,orientation:t="vertical",...n}){return c.jsx(_N,{"data-slot":"scroll-area-scrollbar",orientation:t,className:be("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:c.jsx(BN,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function pV({delayDuration:e=0,...t}){return c.jsx(ZF,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Pd({...e}){return c.jsx(QF,{"data-slot":"tooltip",...e})}function Ld({...e}){return c.jsx(JF,{"data-slot":"tooltip-trigger",...e})}function zd({className:e,sideOffset:t=0,children:n,...a}){return c.jsx(e9,{children:c.jsxs(t9,{"data-slot":"tooltip-content",sideOffset:t,className:be("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...a,children:[n,c.jsx(n9,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function gV({...e}){return c.jsx(dc,{"data-slot":"sheet",...e})}function vV({...e}){return c.jsx(fc,{"data-slot":"sheet-portal",...e})}function xV({className:e,...t}){return c.jsx(hc,{"data-slot":"sheet-overlay",className:be("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function yV({className:e,children:t,side:n="right",showCloseButton:a=!0,...s}){return c.jsxs(vV,{children:[c.jsx(xV,{}),c.jsxs(ci,{"data-slot":"sheet-content",className:be("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",n==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",n==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",n==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",n==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e),...s,children:[t,a&&c.jsxs(af,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(Yr,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function bV({className:e,...t}){return c.jsx(rf,{"data-slot":"sheet-title",className:be("font-semibold text-foreground",e),...t})}function Tg({className:e,size:t="default",...n}){return c.jsx(AF,{"data-slot":"switch","data-size":t,className:be("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",e),...n,children:c.jsx(MF,{"data-slot":"switch-thumb",className:be("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dar
394k:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}function iA({...e}){return c.jsx(lF,{"data-slot":"select",...e})}function lA({...e}){return c.jsx(uF,{"data-slot":"select-value",...e})}function cA({className:e,size:t="default",children:n,...a}){return c.jsxs(cF,{"data-slot":"select-trigger","data-size":t,className:be("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...a,children:[n,c.jsx(dF,{asChild:!0,children:c.jsx(wv,{className:"size-4 opacity-50"})})]})}function uA({className:e,children:t,position:n="item-aligned",align:a="center",...s}){return c.jsx(fF,{children:c.jsxs(hF,{"data-slot":"select-content",className:be("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:a,...s,children:[c.jsx(wV,{}),c.jsx(mF,{className:be("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),c.jsx(SV,{})]})})}function Ag({className:e,children:t,...n}){return c.jsxs(pF,{"data-slot":"select-item",className:be("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[c.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:c.jsx(vF,{children:c.jsx(PE,{className:"size-4"})})}),c.jsx(gF,{children:t})]})}function wV({className:e,...t}){return c.jsx(xF,{"data-slot":"select-scroll-up-button",className:be("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(n3,{className:"size-4"})})}function SV({className:e,...t}){return c.jsx(yF,{"data-slot":"select-scroll-down-button",className:be("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(wv,{className:"size-4"})})}function EV({className:e,...t}){return c.jsx(E7,{"data-slot":"radio-group",className:be("grid gap-3",e),...t})}function CV({className:e,children:t,...n}){return c.jsx(C7,{"data-slot":"radio-group-card",className:be("text-left rounded-xl border p-4 transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary/50","border-black/8 bg-card hover:border-black/20","data-[state=checked]:border-primary data-[state=checked]:bg-secondary/50 data-[state=checked]:ring-1 data-[state=checked]:ring-primary/30",e),...n,children:t})}function jV({className:e,orientation:t="horizontal",...n}){return c.jsx(RF,{"data-slot":"tabs","data-orientation":t,orientation:t,className:be("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...n})}const NV=sx("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function TV({className:e,variant:t="default",...n}){return c.jsx(OF,{"data-slot":"tabs-list","data-variant":t,className:be(NV({variant:t}),e),...n})}function AV({className:e,...t}){return c.jsx(_F,{"data-slot":"tabs-trigger",className:be("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground
394/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function vS({className:e,...t}){return c.jsx(PF,{"data-slot":"tabs-content",className:be("flex-1 outline-none",e),...t})}function MV({className:e,value:t,...n}){return c.jsx(d7,{"data-slot":"progress",className:be("bg-secondary relative h-2 w-full overflow-hidden rounded-full",e),...n,children:c.jsx(f7,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 rounded-full transition-transform duration-200 ease-out",style:{transform:`translateX(-${100-(t??0)}%)`}})})}function dA({...e}){return c.jsx(LB,{"data-slot":"dropdown-menu",...e})}function fA({...e}){return c.jsx(zB,{"data-slot":"dropdown-menu-trigger",...e})}function hA({className:e,sideOffset:t=4,...n}){return c.jsx(BB,{children:c.jsx(FB,{"data-slot":"dropdown-menu-content",sideOffset:t,className:be("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 bg-popover p-1 text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...n})})}function Mg({className:e,inset:t,variant:n="default",...a}){return c.jsx(UB,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:be("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",e),...a})}function kV({className:e,inset:t,...n}){return c.jsx(VB,{"data-slot":"dropdown-menu-label","data-inset":t,className:be("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function DV({className:e,...t}){return c.jsx(IB,{"data-slot":"dropdown-menu-separator",className:be("-mx-1 my-1 h-px bg-border",e),...t})}function RV({...e}){return c.jsx(t7,{"data-slot":"popover",...e})}function OV({...e}){return c.jsx(n7,{"data-slot":"popover-trigger",...e})}function _V({className:e,align:t="center",sideOffset:n=4,...a}){return c.jsx(r7,{children:c.jsx(a7,{"data-slot":"popover-content",align:t,sideOffset:n,className:be("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-xl border bg-popover text-popover-foreground shadow-[0_18px_50px_-24px_rgba(44,34,24,0.45)] outline-hidden","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]:sli
394de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})})}function PV(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const Sp={},kl={};function Bo(e,t){try{const a=(Sp[e]||(Sp[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return a in kl?kl[a]:xS(a,a.split(":"))}catch{if(e in kl)return kl[e];const n=e==null?void 0:e.match(LV);return n?xS(e,n.slice(1)):NaN}}const LV=/([+-]\d\d):?(\d\d)?/;function xS(e,t){const n=+(t[0]||0),a=+(t[1]||0),s=+(t[2]||0)/60;return kl[e]=n*60+a>0?n*60+a+s:n*60-a-s}class zr extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Bo(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),mA(this),kg(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new zr(...n,t):new zr(Date.now(),t)}withTimeZone(t){return new zr(+this,t)}getTimezoneOffset(){const t=-Bo(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),kg(this),+this}[Symbol.for("constructDateFrom")](t){return new zr(+new Date(t),this.timeZone)}}const yS=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!yS.test(e))return;const t=e.replace(yS,"$1UTC");zr.prototype[t]&&(e.startsWith("get")?zr.prototype[e]=function(){return this.internal[t]()}:(zr.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),zV(this),+this},zr.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),kg(this),+this}))});function kg(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Bo(e.timeZone,e)*60))}function zV(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),mA(e)}function mA(e){const t=Bo(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);const s=-new Date(+e).getTimezoneOffset(),l=-new Date(+a).getTimezoneOffset(),u=s-l,f=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();u&&f&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+u);const h=s-n;h&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const m=new Date(+e);m.setUTCSeconds(0);const v=s>0?m.getSeconds():(m.getSeconds()-60)%60,g=Math.round(-(Bo(e.timeZone,e)*60))%60;(g||v)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+g),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+v));const b=Bo(e.timeZone,e),w=b>0?Math.floor(b):Math.ceil(b),S=-new Date(+e).getTimezoneOffset()-w,j=w!==n,N=S-h;if(j&&N){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+N);const A=Bo(e.timeZone,e),k=A>0?Math.floor(A):Math.ceil(A),T=w-k;T&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+T),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+T))}}class yn extends zr{static tz(t,...n){return n.length?new yn(...n,t):new yn(Date.now(),t)}toISOString(){const[t,n,a]=this.tzComponents(),s=`${t}${n}:${a}`;return this.internal.toISOString().slice(0,-1)+s}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,a,s]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${a} ${n} ${s}`}
vendor: 10,733 bytes, line 394
394toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,a,s]=this.tzComponents();return`${t} GMT${n}${a}${s} (${PV(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",a=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),s=String(Math.abs(t)%60).padStart(2,"0");return[n,a,s]}withTimeZone(t){return new yn(+this,t)}[Symbol.for("constructDateFrom")](t){return new yn(+new Date(t),this.timeZone)}}const pA=6048e5,BV=864e5,bS=Symbol.for("constructDateFrom");function Xt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&bS in e?e[bS](t):e instanceof Date?new e.constructor(t):new Date(t)}function lt(e,t){return Xt(t||e,e)}function gA(e,t,n){const a=lt(e,n==null?void 0:n.in);return isNaN(t)?Xt(e,NaN):(t&&a.setDate(a.getDate()+t),a)}function vA(e,t,n){const a=lt(e,n==null?void 0:n.in);if(isNaN(t))return Xt(e,NaN);if(!t)return a;const s=a.getDate(),l=Xt(e,a.getTime());l.setMonth(a.getMonth()+t+1,0);const u=l.getDate();return s>=u?l:(a.setFullYear(l.getFullYear(),l.getMonth(),s),a)}let FV={};function Ec(){return FV}function ri(e,t){var f,h,m,v;const n=Ec(),a=(t==null?void 0:t.weekStartsOn)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??((v=(m=n.locale)==null?void 0:m.options)==null?void 0:v.weekStartsOn)??0,s=lt(e,t==null?void 0:t.in),l=s.getDay(),u=(l<a?7:0)+l-a;return s.setDate(s.getDate()-u),s.setHours(0,0,0,0),s}function Jl(e,t){return ri(e,{...t,weekStartsOn:1})}function xA(e,t){const n=lt(e,t==null?void 0:t.in),a=n.getFullYear(),s=Xt(n,0);s.setFullYear(a+1,0,4),s.setHours(0,0,0,0);const l=Jl(s),u=Xt(n,0);u.setFullYear(a,0,4),u.setHours(0,0,0,0);const f=Jl(u);return n.getTime()>=l.getTime()?a+1:n.getTime()>=f.getTime()?a:a-1}function wS(e){const t=lt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function vi(e,...t){const n=Xt.bind(null,t.find(a=>typeof a=="object"));return t.map(n)}function ec(e,t){const n=lt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function yA(e,t,n){const[a,s]=vi(n==null?void 0:n.in,e,t),l=ec(a),u=ec(s),f=+l-wS(l),h=+u-wS(u);return Math.round((f-h)/BV)}function VV(e,t){const n=xA(e,t),a=Xt(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),Jl(a)}function UV(e,t,n){return gA(e,t*7,n)}function IV(e,t,n){return vA(e,t*12,n)}function HV(e,t){let n,a=t==null?void 0:t.in;return e.forEach(s=>{!a&&typeof s=="object"&&(a=Xt.bind(null,s));const l=lt(s,a);(!n||n<l||isNaN(+l))&&(n=l)}),Xt(a,n||NaN)}function $V(e,t){let n,a=t==null?void 0:t.in;return e.forEach(s=>{!a&&typeof s=="object"&&(a=Xt.bind(null,s));const l=lt(s,a);(!n||n>l||isNaN(+l))&&(n=l)}),Xt(a,n||NaN)}function YV(e,t,n){const[a,s]=vi(n==null?void 0:n.in,e,t);return+ec(a)==+ec(s)}function bA(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function WV(e){return!(!bA(e)&&typeof e!="number"||isNaN(+lt(e)))}function GV(e,t,n){const[a,s]=vi(n==null?void 0:n.in,e,t),l=a.getFullYear()-s.getFullYear(),u=a.getMonth()-s.getMonth();return l*12+u}function qV(e,t){const n=lt(e,t==null?void 0:t.in),a=n.getMonth();return n.setFullYear(n.getFullYear(),a+1,0),n.setHours(23,59,59,999),n}function XV(e,t){const[n,a]=vi(e,t.start,t.end);return{start:n,end:a}}function KV(e,t){const{start:n,end:a}=XV(t==null?void 0:t.in,e);let s=+n>+a;const l=s?+n:+a,u=s?a:n;u.setHours(0,0,0,0),u.setDate(1);let f=1;const h=[];for(;+u<=l;)h.push(Xt(n,u)),u.setMonth(u.getMonth()+f);return s?h.reverse():h}function ZV(e,t){const n=lt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function QV(e,t){const n=lt(e,t==null?void 0:t.in),a=n.getFullYear();return n.setFullYear(a+1,0,0),n.setHours(23,59,59,999),n}function wA(e,t){const n=lt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function SA(e,t){var f,h,m,v;const n=Ec(),a=(t==null?void 0:t.weekStartsOn)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??((v=(m=n.locale)==null?void 0:m.options)==null?void 0:v.weekStartsOn)??0,s=lt(e,t==null?void 0:t.in),l=s.getDay(),u=(l<a?-7:0)+6-(l-a);return s.setDate(s.getDate()+u),s.setHours(23,59,59,999),s}function JV(e,t){return SA(e,{...t,weekStartsOn:1})}const eU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tU=(e,t,n)=>{let a;const s=eU[e];return typeof s=="string"?a=s:t===1?a=s.one:a=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Ep(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const nU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oU={date:Ep({formats:nU,defaultWidth:"full"}),time:Ep({formats:rU,defaultWidth:"full"}),dateTime:Ep({formats:aU,defaultWidth:"full"})},sU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},iU=(e,t,n,a)=>sU[e];function wl(e){return(t,n)=>{const a=n!=null&&n.context?String(n.context):"standalone";let s;if(a==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,f=n!=null&&n.width?String(n.width):u;s=e.formattingValues[f]||e.formattingValues[u]}else{const u=e.defaultWidth,f=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[f]||e.values[u]}const l=e.argumentCallback?e.argumentCallback(t):t;return s[l]}}const lU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},uU={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dU={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},mU=(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},pU={ordinalNumber:mU,era:wl({values:lU,defaultWidth:"wide"}),quarter:wl({values:cU,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wl({values:uU,defaultWidth:"wide"}),day:wl({values:dU,defaultWidth:"wide"}),dayPeriod:wl({values:fU,defaultWidth:"wide",formattingValues:hU,defaultFormattingWidth:"wide"})};function Sl(e){return(t,n={})=>{const a=n.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],l=t.match(s);if(!l)return null;const u=l[0],f=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(f)?vU(f,g=>g.test(u)):gU(f,g=>g.test(u));let m;m=e.valueCallback?e.valueCallback(h):h,m=n.valueCallback?n.valueCallback(m):m;const v=t.slice(u.length);return{value:m,rest:v}}}function gU(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function vU(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function xU(e){return(t,n={})=>{const a=t.match(e.matchPattern);if(!a)return null;const s=a[0],l=t.match(e.parsePattern);if(!l)return null;let u=e.valueCallback?e.valueCallback(l[0]):l[0];u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(s.length);return{value:u,rest:f}}}const yU=/^(\d+)(th|st|nd|rd)?/i,bU=/\d+/i,wU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},SU={any:[/^b/i,/^(a|c)/i]},EU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},CU={any:[/1/i,/2/i,/3/i,/4/i]},jU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},NU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},TU={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i}
vendor: 7,839 bytes, line 394
394,AU={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},MU={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kU={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},DU={ordinalNumber:xU({matchPattern:yU,parsePattern:bU,valueCallback:e=>parseInt(e,10)}),era:Sl({matchPatterns:wU,defaultMatchWidth:"wide",parsePatterns:SU,defaultParseWidth:"any"}),quarter:Sl({matchPatterns:EU,defaultMatchWidth:"wide",parsePatterns:CU,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Sl({matchPatterns:jU,defaultMatchWidth:"wide",parsePatterns:NU,defaultParseWidth:"any"}),day:Sl({matchPatterns:TU,defaultMatchWidth:"wide",parsePatterns:AU,defaultParseWidth:"any"}),dayPeriod:Sl({matchPatterns:MU,defaultMatchWidth:"any",parsePatterns:kU,defaultParseWidth:"any"})},cx={code:"en-US",formatDistance:tU,formatLong:oU,formatRelative:iU,localize:pU,match:DU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function RU(e,t){const n=lt(e,t==null?void 0:t.in);return yA(n,wA(n))+1}function EA(e,t){const n=lt(e,t==null?void 0:t.in),a=+Jl(n)-+VV(n);return Math.round(a/pA)+1}function CA(e,t){var v,g,b,w;const n=lt(e,t==null?void 0:t.in),a=n.getFullYear(),s=Ec(),l=(t==null?void 0:t.firstWeekContainsDate)??((g=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??s.firstWeekContainsDate??((w=(b=s.locale)==null?void 0:b.options)==null?void 0:w.firstWeekContainsDate)??1,u=Xt((t==null?void 0:t.in)||e,0);u.setFullYear(a+1,0,l),u.setHours(0,0,0,0);const f=ri(u,t),h=Xt((t==null?void 0:t.in)||e,0);h.setFullYear(a,0,l),h.setHours(0,0,0,0);const m=ri(h,t);return+n>=+f?a+1:+n>=+m?a:a-1}function OU(e,t){var f,h,m,v;const n=Ec(),a=(t==null?void 0:t.firstWeekContainsDate)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??n.firstWeekContainsDate??((v=(m=n.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,s=CA(e,t),l=Xt((t==null?void 0:t.in)||e,0);return l.setFullYear(s,0,a),l.setHours(0,0,0,0),ri(l,t)}function jA(e,t){const n=lt(e,t==null?void 0:t.in),a=+ri(n,t)-+OU(n,t);return Math.round(a/pA)+1}function tt(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const Wa={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return tt(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):tt(n+1,2)},d(e,t){return tt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return tt(e.getHours()%12||12,t.length)},H(e,t){return tt(e.getHours(),t.length)},m(e,t){return tt(e.getMinutes(),t.length)},s(e,t){return tt(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),s=Math.trunc(a*Math.pow(10,n-3));return tt(s,t.length)}},Ls={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},SS={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),s=a>0?a:1-a;return n.ordinalNumber(s,{unit:"year"})}return Wa.y(e,t)},Y:function(e,t,n,a){const s=CA(e,a),l=s>0?s:1-s;if(t==="YY"){const u=l%100;return tt(u,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):tt(l,t.length)},R:function(e,t){const n=xA(e);return tt(n,t.length)},u:function(e,t){const n=e.getFullYear();return tt(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return tt(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return tt(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return Wa.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return tt(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const s=jA(e,a);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):tt(s,t.length)},I:function(e,t,n){const a=EA(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):tt(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Wa.d(e,t)},D:function(e,t,n){const a=RU(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):tt(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const s=e.getDay(),l=(s-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return tt(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const s=e.getDay(),l=(s-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return tt(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),s=a===0?7:a;switch(t){case"i":return String(s);case"ii":return tt(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let s;switch(a===12?s=Ls.noon:a===0?s=Ls.midnight:s=a/12>
vendor: 14,319 bytes, line 394
394=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let s;switch(a>=17?s=Ls.evening:a>=12?s=Ls.afternoon:a>=4?s=Ls.morning:s=Ls.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return Wa.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Wa.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):tt(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):tt(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Wa.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Wa.s(e,t)},S:function(e,t){return Wa.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return CS(a);case"XXXX":case"XX":return Lo(a);case"XXXXX":case"XXX":default:return Lo(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return CS(a);case"xxxx":case"xx":return Lo(a);case"xxxxx":case"xxx":default:return Lo(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ES(a,":");case"OOOO":default:return"GMT"+Lo(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ES(a,":");case"zzzz":default:return"GMT"+Lo(a,":")}},t:function(e,t,n){const a=Math.trunc(+e/1e3);return tt(a,t.length)},T:function(e,t,n){return tt(+e,t.length)}};function ES(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),s=Math.trunc(a/60),l=a%60;return l===0?n+String(s):n+String(s)+t+tt(l,2)}function CS(e,t){return e%60===0?(e>0?"-":"+")+tt(Math.abs(e)/60,2):Lo(e,t)}function Lo(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),s=tt(Math.trunc(a/60),2),l=tt(a%60,2);return n+s+t+l}const jS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},NA=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},_U=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],s=n[2];if(!s)return jS(e,t);let l;switch(a){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",jS(a,t)).replace("{{time}}",NA(s,t))},PU={p:NA,P:_U},LU=/^D+$/,zU=/^Y+$/,BU=["D","DD","YY","YYYY"];function FU(e){return LU.test(e)}function VU(e){return zU.test(e)}function UU(e,t,n){const a=IU(e,t,n);if(console.warn(a),BU.includes(e))throw new RangeError(a)}function IU(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const HU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$U=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,YU=/^'([^]*?)'?$/,WU=/''/g,GU=/[a-zA-Z]/;function Dg(e,t,n){var v,g,b,w,E,S,j,N;const a=Ec(),s=(n==null?void 0:n.locale)??a.locale??cx,l=(n==null?void 0:n.firstWeekContainsDate)??((g=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??a.firstWeekContainsDate??((w=(b=a.locale)==null?void 0:b.options)==null?void 0:w.firstWeekContainsDate)??1,u=(n==null?void 0:n.weekStartsOn)??((S=(E=n==null?void 0:n.locale)==null?void 0:E.options)==null?void 0:S.weekStartsOn)??a.weekStartsOn??((N=(j=a.locale)==null?void 0:j.options)==null?void 0:N.weekStartsOn)??0,f=lt(e,n==null?void 0:n.in);if(!WV(f))throw new RangeError("Invalid time value");let h=t.match($U).map(A=>{const k=A[0];if(k==="p"||k==="P"){const T=PU[k];return T(A,s.formatLong)}return A}).join("").match(HU).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const k=A[0];if(k==="'")return{isToken:!1,value:qU(A)};if(SS[k])return{isToken:!0,value:A};if(k.match(GU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:A}});s.localize.preprocessor&&(h=s.localize.preprocessor(f,h));const m={firstWeekContainsDate:l,weekStartsOn:u,locale:s};return h.map(A=>{if(!A.isToken)return A.value;const k=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&VU(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&FU(k))&&UU(k,t,String(e));const T=SS[k[0]];return T(f,k,s.localize,m)}).join("")}function qU(e){const t=e.match(YU);return t?t[1].replace(WU,"'"):e}function XU(e,t){const n=lt(e,t==null?void 0:t.in),a=n.getFullYear(),s=n.getMonth(),l=Xt(n,0);return l.setFullYear(a,s+1,0),l.setHours(0,0,0,0),l.getDate()}function KU(e,t){return lt(e,t==null?void 0:t.in).getMonth()}function ZU(e,t){return lt(e,t==null?void 0:t.in).getFullYear()}function QU(e,t){return+lt(e)>+lt(t)}function JU(e,t){return+lt(e)<+lt(t)}function eI(e,t,n){const[a,s]=vi(n==null?void 0:n.in,e,t);return a.getFullYear()===s.getFullYear()&&a.getMonth()===s.getMonth()}function tI(e,t,n){const[a,s]=vi(n==null?void 0:n.in,e,t);return a.getFullYear()===s.getFullYear()}function nI(e,t,n){const a=lt(e,n==null?void 0:n.in),s=a.getFullYear(),l=a.getDate(),u=Xt(e,0);u.setFullYear(s,t,15),u.setHours(0,0,0,0);const f=XU(u);return a.setMonth(t,Math.min(l,f)),a}function rI(e,t,n){const a=lt(e,n==null?void 0:n.in);return isNaN(+a)?Xt(e,NaN):(a.setFullYear(t),a)}const NS=5,aI=4;function oI(e,t){const n=t.startOfMonth(e),a=n.getDay()>0?n.getDay():7,s=t.addDays(e,-a+1),l=t.addDays(s,NS*7-1);return t.getMonth(e)===t.getMonth(l)?NS:aI}function TA(e,t){const n=t.startOfMonth(e),a=n.getDay();return a===1?n:a===0?t.addDays(n,-1*6):t.addDays(n,-1*(a-1))}function sI(e,t){const n=TA(e,t),a=oI(e,t);return t.addDays(n,a*7-1)}class Ea{constructor(t,n){this.Date=Date,this.today=()=>{var a;return(a=this.overrides)!=null&&a.today?this.overrides.today():this.options.timeZone?yn.tz(this.options.timeZone):new this.Date},this.newDate=(a,s,l)=>{var u;return(u=this.overrides)!=null&&u.newDate?this.overrides.newDate(a,s,l):this.options.timeZone?new yn(a,s,l,this.options.timeZone):new Date(a,s,l)},this.addDays=(a,s)=>{var l;return(l=this.overrides)!=null&&l.addDays?this.overrides.addDays(a,s):gA(a,s)},this.addMonths=(a,s)=>{var l;return(l=this.overrides)!=null&&l.addMonths?this.overrides.addMonths(a,s):vA(a,s)},this.addWeeks=(a,s)=>{var l;return(l=this.overrides)!=null&&l.addWeeks?this.overrides.addWeeks(a,s):UV(a,s)},this.addYears=(a,s)=>{var l;return(l=this.overrides)!=null&&l.addYears?this.overrides.addYears(a,s):IV(a,s)},this.differenceInCalendarDays=(a,s)=>{var l;return(l=this.overrides)!=null&&l.differenceInCalendarDays?this.overrides.differenceInCalendarDays(a,s):yA(a,s)},this.differenceInCalendarMonths=(a,s)=>{var l;return(l=this.overrides)!=null&&l.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(a,s):GV(a,s)},this.eachMonthOfInterval=a=>{var s;return(s=this.overrides)!=null&&s.eachMonthOfInterval?this.overrides.eachMonthOfInterval(a):KV(a)},this.endOfBroadcastWeek=a=>{var s;return(s=this.overrides)!=null&&s.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(a):sI(a,this)},this.endOfISOWeek=a=>{var s;return(s=this.overrides)!=null&&s.endOfISOWeek?this.overrides.endOfISOWeek(a):JV(a)},this.endOfMonth=a=>{var s;return(s=this.overrides)!=null&&s.endOfMonth?this.overrides.endOfMonth(a):qV(a)},this.endOfWeek=(a,s)=>{var l;return(l=this.overrides)!=null&&l.endOfWeek?this.overrides.endOfWeek(a,s):SA(a,this.options)},this.endOfYear=a=>{var s;return(s=this.overrides)!=null&&s.endOfYear?this.overrides.endOfYear(a):QV(a)},this.format=(a,s,l)=>{var f;const u=(f=this.overrides)!=null&&f.format?this.overrides.format(a,s,this.options):Dg(a,s,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(u):u},this.getISOWeek=a=>{var s;return(s=this.overrides)!=null&&s.getISOWeek?this.overrides.getISOWeek(a):EA(a)},this.getMonth=(a,s)=>{var l;return(l=this.overrides)!=null&&l.getMonth?this.overrides.getMonth(a,this.options):KU(a,this.options)},this.getYear=(a,s)=>{var l;return(l=this.overrides)!=null&&l.getYear?this.overrides.getYear(a,this.options):ZU(a,this.options)},this.getWeek=(a,s)=>{var l;return(l=this.overrides)!=null&&l.getWeek?this.overrides.getWeek(a,this.options):jA(a,this.options)},this.isAfter=(a,s)=>{var l;return(l=this.overrides)!=null&&l.isAfter?this.overrides.isAfter(a,s):QU(a,s)},this.isBefore=(a,s)=>{var l;return(l=this.overrides)!=null&&l.isBefore?this.overrides.isBefore(a,s):JU(a,s)},this.isDate=a=>{var s;return(s=this.overrides)!=null&&s.isDate?this.overrides.isDate(a):bA(a)},this.isSameDay=(a,s)=>{var l;return(l=this.overrides)!=null&&l.isSameDay?this.overrides.isSameDay(a,s):YV(a,s)},this.isSameMonth=(a,s)=>{var l;return(l=this.overrides)!=null&&l.isSameMonth?this.overrides.isSameMonth(a,s):eI(a,s)},this.isSameYear=(a,s)=>{var l;return(l=this.overrides)!=null&&l.isSameYear?this.overrides.isSameYear(a,s):tI(a,s)},this.max=a=>{var s;return(s=this.overrides)!=null&&s.max?this.overrides.max(a):HV(a)},this.min=a=>{var s;return(s=this.overrides)!=null&&s.min?this.overrides.min(a):$V(a)},this.setMonth=(a,s)=>{var l;return(l=this.overrides)!=null&&l.setMonth?this.overrides.setMonth(a,s):nI(a,s)},this.setYear=(a,s)=>{var l;return(l=this.overrides)!=null&&l.setYear?this.overrides.setYear(a,s):rI(a,s)},this.startOfBroadcastWeek=(a,s)=>{var l;return(l=this.overrides)!=null&&l.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(a,this):TA(a,this)},this.startOfDay=a=>{var s;return(s=this.overrides)!=null&&s.startOfDay?this.overrides.startOfDay(a):ec(a)},this.startOfISOWeek=a=>{var s;return(s=this.overrides)!=null&&s.startOfISOWeek?this.overrides.startOfISOWeek(a):Jl(a)},this.startOfMonth=a=>{var s;return(s=this.overrides)!=null&&s.startOfMonth?this.overrides.startOfMonth(a):ZV(a)},this.startOfWeek=(a,s)=>{var l;return(l=this.overrides)!=null&&l.startOfWeek?this.overrides.startOfWeek(a,this.options):ri(a,this.options)},this.startOfYear=a=>{var s;return(s=this.overrides)!=null&&s.startOfYear?this.overrides.startOfYear(a):wA(a)},this.options={locale:cx,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),a={};for(let s=0;s<10;s++)a[s.toString()]=n.format(s);return a}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,a=>n[a]||a)}formatNumber(t){return this.replaceDigits(t.toString())}}const qr=new Ea;class AA{constructor(t,n,a=qr){this.date=t,this.displayMonth=n,this.outside=!!(n&&!a.isSameMonth(t,n)),this.dateLib=a}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class iI{constructor(t,n){this.date=t,this.weeks=n}}class lI{constructor(t,n){this.days=n,this.weekNumber=t}}function cI(e){return z.createElement("button",{...e})}function uI(e){return z.createElement("span",{...e})}function dI(e){const{size:t=24,orientation:n="left",className:a}=e;return z.createElement("svg",{className:a,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&z.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&z.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&z.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&z.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function fI(e){const{day:t,modifiers:n,...a}=e;return z.createElement("td",{...a})}function hI(e){const{day:t,modifiers:n,...a}=e,s=z.useRef(null);return z.useEffect(()=>{var l;n.focused&&((l=s.current)==null||l.focus())},[n.focused]),z.createElement("button",{ref:s,...a})}var De;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(De||(De={}));var Et;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Et||(Et={}));var br;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(br||(br={}));var $n;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})($n||($n={}));function mI(e){const{options:t,className:n,components:a,classNames:s,...l}=e,u=[s[De.Dropdown],n].join(" "),f=t==null?void 0:t.find(({value:h})=>h===l.value);return z.createElement("span",{"data-disabled":l.disabled,className:s[De.DropdownRoot]},z.createElement(a.Select,{className:u,...l},t==null?void 0:t.map(({value:h,label:m,disabled:v})=>z.createElement(a.Option,{key:h,value:h,disabled:v},m))),z.createElement("span",{className:s[De.CaptionLabel],"aria-hidden":!0},f==null?void 0:f.label,z.createElement(a.Chevron,{orientation:"down",size:18,className:s[De.Chevron]}
vendor: 21,279 bytes, line 394
394)))}function pI(e){return z.createElement("div",{...e})}function gI(e){return z.createElement("div",{...e})}function vI(e){const{calendarMonth:t,displayIndex:n,...a}=e;return z.createElement("div",{...a},e.children)}function xI(e){const{calendarMonth:t,displayIndex:n,...a}=e;return z.createElement("div",{...a})}function yI(e){return z.createElement("table",{...e})}function bI(e){return z.createElement("div",{...e})}const MA=x.createContext(void 0);function Cc(){const e=x.useContext(MA);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function wI(e){const{components:t}=Cc();return z.createElement(t.Dropdown,{...e})}function SI(e){const{onPreviousClick:t,onNextClick:n,previousMonth:a,nextMonth:s,...l}=e,{components:u,classNames:f,labels:{labelPrevious:h,labelNext:m}}=Cc(),v=x.useCallback(b=>{s&&(n==null||n(b))},[s,n]),g=x.useCallback(b=>{a&&(t==null||t(b))},[a,t]);return z.createElement("nav",{...l},z.createElement(u.PreviousMonthButton,{type:"button",className:f[De.PreviousMonthButton],tabIndex:a?void 0:-1,"aria-disabled":a?void 0:!0,"aria-label":h(a),onClick:g},z.createElement(u.Chevron,{disabled:a?void 0:!0,className:f[De.Chevron],orientation:"left"})),z.createElement(u.NextMonthButton,{type:"button",className:f[De.NextMonthButton],tabIndex:s?void 0:-1,"aria-disabled":s?void 0:!0,"aria-label":m(s),onClick:v},z.createElement(u.Chevron,{disabled:s?void 0:!0,orientation:"right",className:f[De.Chevron]})))}function EI(e){const{components:t}=Cc();return z.createElement(t.Button,{...e})}function CI(e){return z.createElement("option",{...e})}function jI(e){const{components:t}=Cc();return z.createElement(t.Button,{...e})}function NI(e){const{rootRef:t,...n}=e;return z.createElement("div",{...n,ref:t})}function TI(e){return z.createElement("select",{...e})}function AI(e){const{week:t,...n}=e;return z.createElement("tr",{...n})}function MI(e){return z.createElement("th",{...e})}function kI(e){return z.createElement("thead",{"aria-hidden":!0},z.createElement("tr",{...e}))}function DI(e){const{week:t,...n}=e;return z.createElement("th",{...n})}function RI(e){return z.createElement("th",{...e})}function OI(e){return z.createElement("tbody",{...e})}function _I(e){const{components:t}=Cc();return z.createElement(t.Dropdown,{...e})}const PI=Object.freeze(Object.defineProperty({__proto__:null,Button:cI,CaptionLabel:uI,Chevron:dI,Day:fI,DayButton:hI,Dropdown:mI,DropdownNav:pI,Footer:gI,Month:vI,MonthCaption:xI,MonthGrid:yI,Months:bI,MonthsDropdown:wI,Nav:SI,NextMonthButton:EI,Option:CI,PreviousMonthButton:jI,Root:NI,Select:TI,Week:AI,WeekNumber:DI,WeekNumberHeader:RI,Weekday:MI,Weekdays:kI,Weeks:OI,YearsDropdown:_I},Symbol.toStringTag,{value:"Module"}));function ha(e,t,n=!1,a=qr){let{from:s,to:l}=e;const{differenceInCalendarDays:u,isSameDay:f}=a;return s&&l?(u(l,s)<0&&([s,l]=[l,s]),u(t,s)>=(n?1:0)&&u(l,t)>=(n?1:0)):!n&&l?f(l,t):!n&&s?f(s,t):!1}function kA(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function ux(e){return!!(e&&typeof e=="object"&&"from"in e)}function DA(e){return!!(e&&typeof e=="object"&&"after"in e)}function RA(e){return!!(e&&typeof e=="object"&&"before"in e)}function OA(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function _A(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ma(e,t,n=qr){const a=Array.isArray(t)?t:[t],{isSameDay:s,differenceInCalendarDays:l,isAfter:u}=n;return a.some(f=>{if(typeof f=="boolean")return f;if(n.isDate(f))return s(e,f);if(_A(f,n))return f.includes(e);if(ux(f))return ha(f,e,!1,n);if(OA(f))return Array.isArray(f.dayOfWeek)?f.dayOfWeek.includes(e.getDay()):f.dayOfWeek===e.getDay();if(kA(f)){const h=l(f.before,e),m=l(f.after,e),v=h>0,g=m<0;return u(f.before,f.after)?g&&v:v||g}return DA(f)?l(e,f.after)>0:RA(f)?l(f.before,e)>0:typeof f=="function"?f(e):!1})}function LI(e,t,n,a,s){const{disabled:l,hidden:u,modifiers:f,showOutsideDays:h,broadcastCalendar:m,today:v}=t,{isSameDay:g,isSameMonth:b,startOfMonth:w,isBefore:E,endOfMonth:S,isAfter:j}=s,N=n&&w(n),A=a&&S(a),k={[Et.focused]:[],[Et.outside]:[],[Et.disabled]:[],[Et.hidden]:[],[Et.today]:[]},T={};for(const M of e){const{date:_,displayMonth:O}=M,D=!!(O&&!b(_,O)),L=!!(N&&E(_,N)),I=!!(A&&j(_,A)),Z=!!(l&&ma(_,l,s)),ce=!!(u&&ma(_,u,s))||L||I||!m&&!h&&D||m&&h===!1&&D,U=g(_,v??s.today());D&&k.outside.push(M),Z&&k.disabled.push(M),ce&&k.hidden.push(M),U&&k.today.push(M),f&&Object.keys(f).forEach(Q=>{const le=f==null?void 0:f[Q];le&&ma(_,le,s)&&(T[Q]?T[Q].push(M):T[Q]=[M])})}return M=>{const _={[Et.focused]:!1,[Et.disabled]:!1,[Et.hidden]:!1,[Et.outside]:!1,[Et.today]:!1},O={};for(const D in k){const L=k[D];_[D]=L.some(I=>I===M)}for(const D in T)O[D]=T[D].some(L=>L===M);return{..._,...O}}}function zI(e,t,n={}){return Object.entries(e).filter(([,s])=>s===!0).reduce((s,[l])=>(n[l]?s.push(n[l]):t[Et[l]]?s.push(t[Et[l]]):t[br[l]]&&s.push(t[br[l]]),s),[t[De.Day]])}function BI(e){return{...PI,...e}}function FI(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,a])=>{n.startsWith("data-")&&(t[n]=a)}),t}function VI(){const e={};for(const t in De)e[De[t]]=`rdp-${De[t]}`;for(const t in Et)e[Et[t]]=`rdp-${Et[t]}`;for(const t in br)e[br[t]]=`rdp-${br[t]}`;for(const t in $n)e[$n[t]]=`rdp-${$n[t]}`;return e}function PA(e,t,n){return(n??new Ea(t)).format(e,"LLLL y")}const UI=PA;function II(e,t,n){return(n??new Ea(t)).format(e,"d")}function HI(e,t=qr){return t.format(e,"LLLL")}function $I(e,t,n){return(n??new Ea(t)).format(e,"cccccc")}function YI(e,t=qr){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function WI(){return""}function LA(e,t=qr){return t.format(e,"yyyy")}const GI=LA,qI=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:PA,formatDay:II,formatMonthCaption:UI,formatMonthDropdown:HI,formatWeekNumber:YI,formatWeekNumberHeader:WI,formatWeekdayName:$I,formatYearCaption:GI,formatYearDropdown:LA},Symbol.toStringTag,{value:"Module"}));function XI(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...qI,...e}}function KI(e,t,n,a,s){const{startOfMonth:l,startOfYear:u,endOfYear:f,eachMonthOfInterval:h,getMonth:m}=s;return h({start:u(e),end:f(e)}).map(b=>{const w=a.formatMonthDropdown(b,s),E=m(b),S=t&&b<l(t)||n&&b>l(n)||!1;return{value:E,label:w,disabled:S}})}function ZI(e,t={},n={}){let a={...t==null?void 0:t[De.Day]};return Object.entries(e).filter(([,s])=>s===!0).forEach(([s])=>{a={...a,...n==null?void 0:n[s]}}),a}function QI(e,t,n){const a=e.today(),s=t?e.startOfISOWeek(a):e.startOfWeek(a),l=[];for(let u=0;u<7;u++){const f=e.addDays(s,u);l.push(f)}return l}function JI(e,t,n,a,s=!1){if(!e||!t)return;const{startOfYear:l,endOfYear:u,addYears:f,getYear:h,isBefore:m,isSameYear:v}=a,g=l(e),b=u(t),w=[];let E=g;for(;m(E,b)||v(E,b);)w.push(E),E=f(E,1);return s&&w.reverse(),w.map(S=>{const j=n.formatYearDropdown(S,a);return{value:h(S),label:j,disabled:!1}})}function zA(e,t,n,a){let s=(a??new Ea(n)).format(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s}const eH=zA;function BA(e,t,n){return(n??new Ea(t)).format(e,"LLLL y")}const tH=BA;function nH(e,t,n,a){let s=(a??new Ea(n)).format(e,"PPPP");return t!=null&&t.today&&(s=`Today, ${s}`),s}function rH(e){return"Choose the Month"}function aH(){return""}function oH(e){return"Go to the Next Month"}function sH(e){return"Go to the Previous Month"}function iH(e,t,n){return(n??new Ea(t)).format(e,"cccc")}function lH(e,t){return`Week ${e}`}function cH(e){return"Week Number"}function uH(e){return"Choose the Year"}const dH=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:tH,labelDay:eH,labelDayButton:zA,labelGrid:BA,labelGridcell:nH,labelMonthDropdown:rH,labelNav:aH,labelNext:oH,labelPrevious:sH,labelWeekNumber:lH,labelWeekNumberHeader:cH,labelWeekday:iH,labelYearDropdown:uH},Symbol.toStringTag,{value:"Module"})),jc=e=>e instanceof HTMLElement?e:null,Cp=e=>[...e.querySelectorAll("[data-animated-month]")??[]],fH=e=>jc(e.querySelector("[data-animated-month]")),jp=e=>jc(e.querySelector("[data-animated-caption]")),Np=e=>jc(e.querySelector("[data-animated-weeks]")),hH=e=>jc(e.querySelector("[data-animated-nav]")),mH=e=>jc(e.querySelector("[data-animated-weekdays]"));function pH(e,t,{classNames:n,months:a,focused:s,dateLib:l}){const u=x.useRef(null),f=x.useRef(a),h=x.useRef(!1);x.useLayoutEffect(()=>{const m=f.current;if(f.current=a,!t||!e.current||!(e.current instanceof HTMLElement)||a.length===0||m.length===0||a.length!==m.length)return;const v=l.isSameMonth(a[0].date,m[0].date),g=l.isAfter(a[0].date,m[0].date),b=g?n[$n.caption_after_enter]:n[$n.caption_before_enter],w=g?n[$n.weeks_after_enter]:n[$n.weeks_before_enter],E=u.current,S=e.current.cloneNode(!0);if(S instanceof HTMLElement?(Cp(S).forEach(k=>{if(!(k instanceof HTMLElement))return;const T=fH(k);T&&k.contains(T)&&k.removeChild(T);const M=jp(k);M&&M.classList.remove(b);const _=Np(k);_&&_.classList.remove(w)}),u.current=S):u.current=null,h.current||v||s)return;const j=E instanceof HTMLElement?Cp(E):[],N=Cp(e.current);if(N!=null&&N.every(A=>A instanceof HTMLElement)&&j&&j.every(A=>A instanceof HTMLElement)){h.current=!0,e.current.style.isolation="isolate";const A=hH(e.current);A&&(A.style.zIndex="1"),N.forEach((k,T)=>{const M=j[T];if(!M)return;k.style.position="relative",k.style.overflow="hidden";const _=jp(k);_&&_.classList.add(b);const O=Np(k);O&&O.classList.add(w);const D=()=>{h.current=!1,e.current&&(e.current.style.isolation=""),A&&(A.style.zIndex=""),_&&_.classList.remove(b),O&&O.classList.remove(w),k.style.position="",k.style.overflow="",k.contains(M)&&k.removeChild(M)};M.style.pointerEvents="none",M.style.position="absolute",M.style.overflow="hidden",M.setAttribute("aria-hidden","true");const L=mH(M);L&&(L.style.opacity="0");const I=jp(M);I&&(I.classList.add(g?n[$n.caption_before_exit]:n[$n.caption_after_exit]),I.addEventListener("animationend",D));const Z=Np(M);Z&&Z.classList.add(g?n[$n.weeks_before_exit]:n[$n.weeks_after_exit]),k.insertBefore(M,k.firstChild)})}})}function gH(e,t,n,a){const s=e[0],l=e[e.length-1],{ISOWeek:u,fixedWeeks:f,broadcastCalendar:h}=n??{},{addDays:m,differenceInCalendarDays:v,differenceInCalendarMonths:g,endOfBroadcastWeek:b,endOfISOWeek:w,endOfMonth:E,endOfWeek:S,isAfter:j,startOfBroadcastWeek:N,startOfISOWeek:A,startOfWeek:k}=a,T=h?N(s,a):u?A(s):k(s),M=h?b(l):u?w(E(l)):S(E(l)),_=v(M,T),O=g(l,s)+1,D=[];for(let Z=0;Z<=_;Z++){const ce=m(T,Z);if(t&&j(ce,t))break;D.push(ce)}const I=(h?35:42)*O;if(f&&D.length<I){const Z=I-D.length;for(let ce=0;ce<Z;ce++){const U=m(D[D.length-1],1);D.push(U)}}return D}function vH(e){const t=[];return e.reduce((n,a)=>{const s=a.weeks.reduce((l,u)=>l.concat(u.days.slice()),t.slice());return n.concat(s.slice())},t.slice())}function xH(e,t,n,a){const{numberOfMonths:s=1}=n,l=[];for(let u=0;u<s;u++){const f=a.addMonths(e,u);if(t&&f>t)break;l.push(f)}return l}function TS(e,t,n,a){const{month:s,defaultMonth:l,today:u=a.today(),numberOfMonths:f=1}=e;let h=s||l||u;const{differenceInCalendarMonths:m,addMonths:v,startOfMonth:g}=a;if(n&&m(n,h)<f-1){const b=-1*(f-1);h=v(n,b)}return t&&m(h,t)<0&&(h=t),g(h)}function yH(e,t,n,a){const{addDays:s,endOfBroadcastWeek:l,endOfISOWeek:u,endOfMonth:f,endOfWeek:h,getISOWeek:m,getWeek:v,startOfBroadcastWeek:g,startOfISOWeek:b,startOfWeek:w}=a,E=e.reduce((S,j)=>{const N=n.broadcastCalendar?g(j,a):n.ISOWeek?b(j):w(j),A=n.broadcastCalendar?l(j):n.ISOWeek?u(f(j)):h(f(j)),k=t.filter(O=>O>=N&&O<=A),T=n.broadcastCalendar?35:42;if(n.fixedWeeks&&k.length<T){const O=t.filter(D=>{const L=T-k.length;return D>A&&D<=s(A,L)});k.push(...O)}const M=k.reduce((O,D)=>{const L=n.ISOWeek?m(D):v(D),I=O.find(ce=>ce.weekNumber===L),Z=new AA(D,j,a);return I?I.days.push(Z):O.push(new lI(L,[Z])),O},[]),_=new iI(j,M);return S.push(_),S},[]);return n.reverseMonths?E.reverse():E}function bH(e,t){let{startMonth:n,endMonth:a}=e;const{startOfYear:s,startOfDay:l,startOfMonth:u,endOfMonth:f,addYears:h,endOfYear:m,newDate:v,today:g}=t,{fromYear:b,toYear:w,fromMonth:E,toMonth:S}=e;!n&&E&&(n=E),!n&&b&&(n=t.newDate(b,0,1)),!a&&S&&(a=S),!a&&w&&(a=v(w,11,31));const j=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=u(n):b?n=v(b,0,1):!n&&j&&(n=s(h(e.today??g(),-100))),a?a=f(a):w?a=v(w,11,31):!a&&j&&(a=m(e.today??g())),[n&&l(n),a&&l(a)]}function wH(e,t,n,a){if(n.disableNavigation)return;const{pagedNavigation:s,numberOfMonths:l=1}=n,{startOfMonth:u,addMonths:f,differenceInCalendarMonths:h}=a,m=s?l:1,v=u(e);if(!t)return f(v,m);if(!(h(t,e)<l))return f(v,m)}function SH(e,t,n,a){if(n.disableNavigation)return;const{pagedNavigation:s,numberOfMonths:l}=n,{startOfMonth:u,addMonths:f,differenceInCalendarMonths:h}=a,m=s?l??1:1,v=u(e);if(!t)return f(v,-m);if(!(h(v,t)<=0))return f(v,-m)}function EH(e){const t=[];return e.reduce((n,a)=>n.concat(a.weeks.slice()),t.slice())}function Mf(e,t){const[n,a]=x.useState(e);return[t===void 0?n:t,a]}function CH(e,t){const[n,a]=bH(e,t),{startOfMonth:s,endOfMonth:l}=t,u=TS(e,n,a,t),[f,h]=Mf(u,e.month?u:void 0);x.useEffect(()=>{const _=TS(e,n,a,t);h(_)},[e.timeZone]);const m=xH(f,a,e,t),v=gH(m,e.endMonth?l(e.endMonth):void 0,e,t),g=yH(m,v,e,t),b=EH(g),w=vH(g),E=SH(f,n,e,t),S=wH(f,a,e,t),{disableNavigation:j,onMonthChange:N}=e,A=_=>b.some(O=>O.days.some(D=>D.isEqualTo(_))),k=_=>{if(j)return;let O=s(_);n&&O<s(n)&&(O=s(n)),a&&O>s(a)&&(O=s(a)),h(O),N==null||N(O)};return{months:g,weeks:b,days:w,navStart:n,navEnd:a,previousMonth:E,nextMonth:S,goToMonth:k,goToDay:_=>{A(_)||k(_.date)}}}var Or;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Or||(Or={}));function AS(e){return!e[Et.disabled]&&!e[Et.hidden]&&!e[Et.outside]}function jH(e,t,n,a){let s,l=-1;for(const u of e){const f=t(u);AS(f)&&(f[Et.focused]&&l<Or.FocusedModifier?(s=u,l=Or.FocusedModifier):a!=null&&a.isEqualTo(u)&&l<Or.LastFocused?(s=u,l=Or.LastFocused):n(u.date)&&l<Or.Selected?(s=u,l=Or.Selected):f[Et.today]&&l<Or.Today&&(s=u,l=Or.Today))}return s||(s=e.find(u=>AS(t(u)))),s}function NH(e,t,n,a,s,l,u){const{ISOWeek:f,broadcastCalendar:h}=l,{addDays:m,addMonths:v,addWeeks:g,addYears:b,endOfBroadcastWeek:w,endOfISOWeek:E,endOfWeek:S,max:j,min:N,startOfBroadcastWeek:A,startOfISOWeek:k,startOfWeek:T}=u;let _={day:m,week:g,month:v,year:b,startOfWeek:O=>h?A(O,u):f?k(O):T(O),endOfWeek:O=>h?w(O):f?E(O):S(O)}[e](n,t==="after"?1:-1);return t==="before"&&a?_=j([a,_]):t==="after"&&s&&(_=N([s,_])),_}function FA(e,t,n,a,s,l,u,f=0){if(f>365)return;const h=NH(e,t,n.date,a,s,l,u),m=!!(l.disabled&&ma(h,l.disabled,u)),v=!!(l.hidden&&ma(h,l.hidden,u)),g=h,b=new AA(h,g,u);return!m&&!v?b:FA(e,t,b,a,s,l,u,f+1)}function TH(e,t,n,a,s){const{autoFocus:l}=e,[u,f]=x.useState(),h=jH(t.days,n,a||(()=>!1),u),[m,v]=x.useState(l?h:void 0);return{isFocusTarget:S=>!!(h!=null&&h.isEqualTo(S)),setFocused:v,focused:m,blur:()=>{f(m),v(void 0)},moveFocus:(S,j)=>{if(!m)return;const N=FA(S,j,m,t.navStart,t.navEnd,e,s);N&&(t.goToDay(N),v(N))}}}function AH(e,t){const{selected:n,required:a,onSelect:s}=e,[l,u]=Mf(n,s?n:void 0),f=s?n:l,{isSameDay:h}=t,m=w=>(f==null?void 0:f.some(E=>h(E,w)))??!1,{min:v,max:g}=e;return{selected:f,select:(w,E,S)=>{let j=[...f??[]];if(m(w)){if((f==null?void 0:f.length)===v||a&&(f==null?void 0:f.length)===1)return;j=f==null?void 0:f.filter(N=>!h(N,w))}else(f==null?void 0:f.length)===g?j=[w]:j=[...j,w];return s||u(j),s==null||s(j,w,E,S),j},isSelected:m}}function MH(e,t,n=0,a=0,s=!1,l=qr){const{from:u,to:f}=t||{},{isSameDay:h,isAfter:m,isBefore:v}=l;let g;if(!u&&!f)g={from:e,to:n>0?void 0:e};else if(u&&!f)h(u,e)?n===0?g={from:u,to:e}:s?g={from:u,to:void 0}:g=void 0:v(e,u)?g={from:e,to:u}:g={from:u,to:e};else if(u&&f)if(h(u,e)&&h(f,e))s?g={from:u,to:f}:g=void 0;else if(h(u,e))g={from:u,to:n>0?void 0:e};else if(h(f,e))g={from:e,to:n>0?void 0:e};else if(v(e,u))g={from:e,to:f};else if(m(e,u))g={from:u,to:e};else if(m(e,f))g={from:u,to:e};else throw new Error("Invalid range");if(g!=null&&g.from&&(g!=null&&g.to)){const b=l.differenceInCalendarDays(g.to,g.from);a>0&&b>a?g={from:e,to:void 0}:n>1&&b<n&&(g={from:e,to:void 0})}return g}function kH(e,t,n=qr){const a=Array.isArray(t)?t:[t];let s=e.from;const l=n.differenceInCalendarDays(e.to,e.from),u=Math.min(l,6);for(let f=0;f<=u;f++){if(a.includes(s.getDay()))return!0;s=n.addDays(s,1)}return!1}function MS(e,t,n=qr){return ha(e,t.from,!1,n)||ha(e,t.to,!1,n)||ha(t,e.from,!1,n)||ha(t,e.to,!1,n)}function DH(e,t,n=qr){const a=Array.isArray(t)?t:[t];if(a.filter(f=>typeof f!="function").some(f=>typeof f=="boolean"?f:n.isDate(f)?ha(e,f,!1,n):_A(f,n)?f.some(h=>ha(e,h,!1,n)):ux(f)?f.from&&f.to?MS(e,{from:f.from,to:f.to},n):!1:OA(f)?kH(e,f.dayOfWeek,n):kA(f)?n.isAfter(f.before,f.after)?MS(e,{from:n.addDays(f.after,1),to:n.addDays(f.before,-1)},n):ma(e.from,f,n)||ma(e.to,f,n):DA(f)||RA(f)?ma(e.from,f,n)||ma(e.to,f,n):!1))return!0;const u=a.filter(f=>typeof f=="function");if(u.length){let f=e.from;const h=n.differenceInCalendarDays(e.to,e.from);for(let m=0;m<=h;m++){if(u.some(v=>v(f)))return!0;f=n.addDays(f,1)}}return!1}function RH(e,t){const{disabled:n,excludeDisabled:a,selected:s,required:l,onSelect:u}=e,[f,h]=Mf(s,u?s:void 0),m=u?s:f;return{selected:m,select:(b,w,E)=>{const{min:S,max:j}=e,N=b?MH(b,m,S,j,l,t):void 0;return a&&n&&(N!=null&&N.from)&&N.to&&DH({from:N.from,to:N.to},n,t)&&(N.from=b,N.to=void 0),u||h(N),u==null||u(N,b,w,E),N},isSelected:b=>m&&ha(m,b,!1,t)}}function OH(e,t){const{selected:n,required:a,onSelect:s}=e,[l,u]=Mf(n,s?n:void 0),f=s?n:l,{isSameDay:h}=t;return{selected:f,select:(g,b,w)=>{let E=g;return!a&&f&&f&&h(g,f)&&(E=void 0),s||u(E),s==null||s(E,g,b,w),E},isSelected:g=>f?h(f,g):!1}}function _H(e,t){const n=OH(e,t),a=AH(e,t),s=RH(e,t);switch(e.mode){case"single":return n;case"multiple":return a;case"range":return s;default:return}}function PH(e){var zn;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new yn(t.today,t.timeZone)),t.month&&(t.month=new yn(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new yn(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new yn(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new yn(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new yn(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(zn=t.selected)==null?void 0:zn.map(me=>new yn(me,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new yn(t.selected.from,t.timeZone):void 0,to:t.selected.to?new yn(t.selected.to,t.timeZone):void 0}));const{components:n,formatters:a,labels:s,dateLib:l,locale:u,classNames:f}=x.useMemo(()=>{const me={...cx,...t.locale};return{dateLib:new Ea({locale:me,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:BI(t.components),formatters:XI(t.formatters),labels:{...dH,...t.labels},locale:me,classNames:{...VI(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:h,mode:m,navLayout:v,numberOfMonths:g=1,onDayBlur:b,onDayClick:w,onDayFocus:E,onDayKeyDown:S,onDayMouseEnter:j,onDayMouseLeave:N,onNextClick:A,onPrevClick:k,showWeekNumber:T,styles:M}=t,{formatCaption:_,formatDay:O,formatMonthDropdown:D,formatWeekNumber:L,formatWeekNumberHeader:I,formatWeekdayName:Z,formatYearDropdown:ce}=a,U=CH(t,l),{days:Q,months:le,navStart:F,navEnd:H,previousMonth:V,nextMonth:J,goToMonth:P}=U,te=LI(Q,t,F,H,l),{isSelected:Y,select:G,selected:X}=_H(t,l)??{},{blur:ne,focused:se,isFocusTarget:re,moveFocus:ie,setFocused:pe}=TH(t,U,te,Y??(()=>!1),l),{labelDayButton:fe,labelGridcell:je,labelGrid:Ne,labelMonthDropdown:qe,labelNav:ye,labelPrevious:gt,labelNext:ct,labelWeekday:vt,labelWeekNumber:hn,labelWeekNumberHeader:dt,labelYearDropdown:yt}=s,Sn=x.useMemo(()=>QI(l,t.ISOWeek),[l,t.ISOWeek]),pt=m!==void 0||w!==void 0,Mt=x.useCallback(()=>{V&&(P(V),k==null||k(V))},[V,P,k]),kt=x.useCallback(()=>{J&&(P(J),A==null||A(J))},[P,J,A]),Nr=x.useCallback((me,Te)=>xe=>{xe.preventDefault(),xe.stopPropagation(),pe(me),G==null||G(me.date,Te,xe),w==null||w(me.date,Te,xe)},[G,w,pe]),Ln=x.useCallback((me,Te)=>xe=>{pe(me),E==null||E(me.date,Te,xe)},[E,pe]),En=x.useCallback((me,Te)=>xe=>{ne(),b==null||b(me.date,Te,xe)},[ne,b]),Dt=x.useCallback((me,Te)=>xe=>{const ve={ArrowLeft:[xe.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[xe.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[xe.shiftKey?"year":"week","after"],ArrowUp:[xe.shiftKey?"year":"week","before"],PageUp:[xe.shiftKey?"year":"month","before"],PageDown:[xe.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};
394if(ve[xe.key]){xe.preventDefault(),xe.stopPropagation();const[Ae,de]=ve[xe.key];ie(Ae,de)}S==null||S(me.date,Te,xe)},[ie,S,t.dir]),Cn=x.useCallback((me,Te)=>xe=>{j==null||j(me.date,Te,xe)},[j]),rn=x.useCallback((me,Te)=>xe=>{N==null||N(me.date,Te,xe)},[N]),an=x.useCallback(me=>Te=>{const xe=Number(Te.target.value),ve=l.setMonth(l.startOfMonth(me),xe);P(ve)},[l,P]),It=x.useCallback(me=>Te=>{const xe=Number(Te.target.value),ve=l.setYear(l.startOfMonth(me),xe);P(ve)},[l,P]),{className:kn,style:Rt}=x.useMemo(()=>({className:[f[De.Root],t.className].filter(Boolean).join(" "),style:{...M==null?void 0:M[De.Root],...t.style}}),[f,t.className,t.style,M]),qn=FI(t),Ht=x.useRef(null);pH(Ht,!!t.animate,{classNames:f,months:le,focused:se,dateLib:l});const Ot={dayPickerProps:t,selected:X,select:G,isSelected:Y,months:le,nextMonth:J,previousMonth:V,goToMonth:P,getModifiers:te,components:n,classNames:f,styles:M,labels:s,formatters:a};return z.createElement(MA.Provider,{value:Ot},z.createElement(n.Root,{rootRef:t.animate?Ht:void 0,className:kn,style:Rt,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],...qn},z.createElement(n.Months,{className:f[De.Months],style:M==null?void 0:M[De.Months]},!t.hideNavigation&&!v&&z.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:f[De.Nav],style:M==null?void 0:M[De.Nav],"aria-label":ye(),onPreviousClick:Mt,onNextClick:kt,previousMonth:V,nextMonth:J}),le.map((me,Te)=>z.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:f[De.Month],style:M==null?void 0:M[De.Month],key:Te,displayIndex:Te,calendarMonth:me},v==="around"&&!t.hideNavigation&&Te===0&&z.createElement(n.PreviousMonthButton,{type:"button",className:f[De.PreviousMonthButton],tabIndex:V?void 0:-1,"aria-disabled":V?void 0:!0,"aria-label":gt(V),onClick:Mt,"data-animated-button":t.animate?"true":void 0},z.createElement(n.Chevron,{disabled:V?void 0:!0,className:f[De.Chevron],orientation:t.dir==="rtl"?"right":"left"})),z.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:f[De.MonthCaption],style:M==null?void 0:M[De.MonthCaption],calendarMonth:me,displayIndex:Te},h!=null&&h.startsWith("dropdown")?z.createElement(n.DropdownNav,{className:f[De.Dropdowns],style:M==null?void 0:M[De.Dropdowns]},h==="dropdown"||h==="dropdown-months"?z.createElement(n.MonthsDropdown,{className:f[De.MonthsDropdown],"aria-label":qe(),classNames:f,components:n,disabled:!!t.disableNavigation,onChange:an(me.date),options:KI(me.date,F,H,a,l),style:M==null?void 0:M[De.Dropdown],value:l.getMonth(me.date)}):z.createElement("span",null,D(me.date,l)),h==="dropdown"||h==="dropdown-years"?z.createElement(n.YearsDropdown,{className:f[De.YearsDropdown],"aria-label":yt(l.options),classNames:f,components:n,disabled:!!t.disableNavigation,onChange:It(me.date),options:JI(F,H,a,l,!!t.reverseYears),style:M==null?void 0:M[De.Dropdown],value:l.getYear(me.date)}):z.createElement("span",null,ce(me.date,l)),z.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},_(me.date,l.options,l))):z.createElement(n.CaptionLabel,{className:f[De.CaptionLabel],role:"status","aria-live":"polite"},_(me.date,l.options,l))),v==="around"&&!t.hideNavigation&&Te===g-1&&z.createElement(n.NextMonthButton,{type:"button",className:f[De.NextMonthButton],tabIndex:J?void 0:-1,"aria-disabled":J?void 0:!0,"aria-label":ct(J),onClick:kt,"data-animated-button":t.animate?"true":void 0},z.createElement(n.Chevron,{disabled:J?void 0:!0,className:f[De.Chevron],orientation:t.dir==="rtl"?"left":"right"})),Te===g-1&&v==="after"&&!t.hideNavigation&&z.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:f[De.Nav],style:M==null?void 0:M[De.Nav],"aria-label":ye(),onPreviousClick:Mt,onNextClick:kt,previousMonth:V,nextMonth:J}),z.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":m==="multiple"||m==="range","aria-label":Ne(me.date,l.options,l)||void 0,className:f[De.MonthGrid],style:M==null?void 0:M[De.MonthGrid]},!t.hideWeekdays&&z.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:f[De.Weekdays],style:M==null?void 0:M[De.Weekdays]},T&&z.createElement(n.WeekNumberHeader,{"aria-label":dt(l.options),className:f[De.WeekNumberHeader],style:M==null?void 0:M[De.WeekNumberHeader],scope:"col"},I()),Sn.map(xe=>z.createElement(n.Weekday,{"aria-label":vt(xe,l.options,l),className:f[De.Weekday],key:String(xe),style:M==null?void 0:M[De.Weekday],scope:"col"},Z(xe,l.options,l)))),z.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:f[De.Weeks],style:M==null?void 0:M[De.Weeks]},me.weeks.map(xe=>z.createElement(n.Week,{className:f[De.Week],key:xe.weekNumber,style:M==null?void 0:M[De.Week],week:xe},T&&z.createElement(n.WeekNumber,{week:xe,style:M==null?void 0:M[De.WeekNumber],"aria-label":hn(xe.weekNumber,{locale:u}),className:f[De.WeekNumber],scope:"row",role:"rowheader"},L(xe.weekNumber,l)),xe.days.map(ve=>{const{date:Ae}=ve,de=te(ve);if(de[Et.focused]=!de.hidden&&!!(se!=null&&se.isEqualTo(ve)),de[br.selected]=(Y==null?void 0:Y(Ae))||de.selected,ux(X)){const{from:et,to:Ue}=X;de[br.range_start]=!!(et&&Ue&&l.isSameDay(Ae,et)),de[br.range_end]=!!(et&&Ue&&l.isSameDay(Ae,Ue)),de[br.range_middle]=ha(X,Ae,!0,l)}const Oe=ZI(de,M,t.modifiersStyles),Ve=zI(de,f,t.modifiersClassNames),ze=!pt&&!de.hidden?je(Ae,de,l.options,l):void 0;return z.createElement(n.Day,{key:`${l.format(Ae,"yyyy-MM-dd")}_${l.format(ve.displayMonth,"yyyy-MM")}`,day:ve,modifiers:de,className:Ve.join(" "),style:Oe,role:"gridcell","aria-selected":de.selected||void 0,"aria-label":ze,"data-day":l.format(Ae,"yyyy-MM-dd"),"data-month":ve.outside?l.format(Ae,"yyyy-MM"):void 0,"data-selected":de.selected||void 0,"data-disabled":de.disabled||void 0,"data-hidden":de.hidden||void 0,"data-outside":ve.outside||void 0,"data-focused":de.focused||void 0,"data-today":de.today||void 0},!de.hidden&&pt?z.createElement(n.DayButton,{className:f[De.DayButton],style:M==null?void 0:M[De.DayButton],type:"button",day:ve,modifiers:de,disabled:de.disabled||void 0,tabIndex:re(ve)?0:-1,"aria-label":fe(Ae,de,l.options,l),onClick:Nr(ve,de),onBlur:En(ve,de),onFocus:Ln(ve,de),onKeyDown:Dt(ve,de),onMouseEnter:Cn(ve,de),onMouseLeave:rn(ve,de)},O(Ae,l.options,l)):!de.hidden&&O(ve.date,l.options,l))})))))))),t.footer&&z.createElement(n.Footer,{className:f[De.Footer],style:M==null?void 0:M[De.Footer],role:"status","aria-live":"polite"},t.footer)))}const kS="inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 disabled:pointer-events-none disabled:opacity-40";function LH({className:e,classNames:t,showOutsideDays:n=!0,...a}){return c.jsx(PH,{showOutsideDays:n,className:be("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"relative flex flex-col gap-4",month_caption:"flex h-9 items-center justify-center pointer-events-none",caption_label:"text-sm font-bold tracking-tight text-foreground",nav:"absolute inset-x-0 top-0 z-10 flex h-9 items-center justify-between",button_previous:kS,button_next:kS,month_grid:"w-full border-collapse",weekdays:"flex",weekday:"w-9 text-[0.68rem] font-bold uppercase tracking-wider text-muted-foreground",week:"mt-1 flex w-full",day:"relative p-0 text-center text-sm focus-within:relative focus-within:z-10",today:"",selected:"",outside:"",disabled:"",hidden:"invisible",...t},components:{Chevron:({orientation:s,className:l,...u})=>{const f=s==="left"?oo:Ur;return c.jsx(f,{className:be("size-4",l),...u})},DayButton:({day:s,modifiers:l,className:u,...f})=>{const h=x.useRef(null);return x.useEffect(()=>{var m;l.focused&&((m=h.current)==null||m.focus())},[l.focused]),c.jsx("button",{ref:h,className:be(Nf({variant:"ghost",size:"icon-sm"}),"size-9 rounded-md font-normal text-foreground hover:bg-secondary hover:text-foreground",l.today&&!l.selected&&"font-bold text-primary",l.outside&&!l.selected&&"text-muted-foreground opacity-40 hover:opacity-100",l.selected&&"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus-visible:ring-primary/40",l.disabled&&"pointer-events-none text-muted-foreground opacity-40",u),...f})}},...a})}function zH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.useMemo(()=>a=>{t.forEach(s=>s(a))},t)}const kf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xi(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function dx(e){return"nodeType"in e}function Mn(e){var t,n;return e?xi(e)?e:dx(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function fx(e){const{Document:t}=Mn(e);return e instanceof t}function Nc(e){return xi(e)?!1:e instanceof Mn(e).HTMLElement}function VA(e){return e instanceof Mn(e).SVGElement}function yi(e){return e?xi(e)?e.document:dx(e)?fx(e)?e:Nc(e)||VA(e)?e.ownerDocument:document:document:document}const Er=kf?x.useLayoutEffect:x.useEffect;function Df(e){const t=x.useRef(e);return Er(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t.current==null?void 0:t.current(...a)},[])}function BH(){const e=x.useRef(null),t=x.useCallback((a,s)=>{e.current=setInterval(a,s)},[]),n=x.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}
394function tc(e,t){t===void 0&&(t=[e]);const n=x.useRef(e);return Er(()=>{n.current!==e&&(n.current=e)},t),n}function Tc(e,t){const n=x.useRef();return x.useMemo(()=>{const a=e(n.current);return n.current=a,a},[...t])}function Bd(e){const t=Df(e),n=x.useRef(null),a=x.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,a]}function Fd(e){const t=x.useRef();return x.useEffect(()=>{t.current=e},[e]),t.current}let Tp={};function Ac(e,t){return x.useMemo(()=>{if(t)return t;const n=Tp[e]==null?0:Tp[e]+1;return Tp[e]=n,e+"-"+n},[e,t])}function UA(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return a.reduce((l,u)=>{const f=Object.entries(u);for(const[h,m]of f){const v=l[h];v!=null&&(l[h]=v+e*m)}return l},{...t})}}const qs=UA(1),nc=UA(-1);function FH(e){return"clientX"in e&&"clientY"in e}function Rf(e){if(!e)return!1;const{KeyboardEvent:t}=Mn(e.target);return t&&e instanceof t}function VH(e){if(!e)return!1;const{TouchEvent:t}=Mn(e.target);return t&&e instanceof t}function Vd(e){if(VH(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return FH(e)?{x:e.clientX,y:e.clientY}:null}const no=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[no.Translate.toString(e),no.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:a}=e;return t+" "+n+"ms "+a}}}),DS="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function UH(e){return e.matches(DS)?e:e.querySelector(DS)}const IH={display:"none"};function HH(e){let{id:t,value:n}=e;return z.createElement("div",{id:t,style:IH},n)}function $H(e){let{id:t,announcement:n,ariaLiveType:a="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return z.createElement("div",{id:t,style:s,role:"status","aria-live":a,"aria-atomic":!0},n)}function YH(){const[e,t]=x.useState("");return{announce:x.useCallback(a=>{a!=null&&t(a)},[]),announcement:e}}const IA=x.createContext(null);function WH(e){const t=x.useContext(IA);x.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function GH(){const[e]=x.useState(()=>new Set),t=x.useCallback(a=>(e.add(a),()=>e.delete(a)),[e]);return[x.useCallback(a=>{let{type:s,event:l}=a;e.forEach(u=>{var f;return(f=u[s])==null?void 0:f.call(u,l)})},[e]),t]}const qH={draggable:` 395 To pick up a draggable item, press the space bar. 396 While dragging, use the arrow keys to move the item. 397 Press space again to drop the item in its new position, or press escape to cancel. 398 `},XH={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function KH(e){let{announcements:t=XH,container:n,hiddenTextDescribedById:a,screenReaderInstructions:s=qH}=e;const{announce:l,announcement:u}=YH(),f=Ac("DndLiveRegion"),[h,m]=x.useState(!1);if(x.useEffect(()=>{m(!0)},[]),WH(x.useMemo(()=>({onDragStart(g){let{active:b}=g;l(t.onDragStart({active:b}))},onDragMove(g){let{active:b,over:w}=g;t.onDragMove&&l(t.onDragMove({active:b,over:w}))},onDragOver(g){let{active:b,over:w}=g;l(t.onDragOver({active:b,over:w}))},onDragEnd(g){let{active:b,over:w}=g;l(t.onDragEnd({active:b,over:w}))},onDragCancel(g){let{active:b,over:w}=g;
398l(t.onDragCancel({active:b,over:w}))}}),[l,t])),!h)return null;const v=z.createElement(z.Fragment,null,z.createElement(HH,{id:a,value:s.draggable}),z.createElement($H,{id:f,announcement:u}));return n?Pr.createPortal(v,n):v}var qt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(qt||(qt={}));function Ud(){}function Ap(e,t){return x.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function ZH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.useMemo(()=>[...t].filter(a=>a!=null),[...t])}const Cr=Object.freeze({x:0,y:0});function HA(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function QH(e,t){const n=Vd(e);if(!n)return"0 0";const a={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return a.x+"% "+a.y+"%"}function $A(e,t){let{data:{value:n}}=e,{data:{value:a}}=t;return n-a}function JH(e,t){let{data:{value:n}}=e,{data:{value:a}}=t;return a-n}function RS(e){let{left:t,top:n,height:a,width:s}=e;return[{x:t,y:n},{x:t+s,y:n},{x:t,y:n+a},{x:t+s,y:n+a}]}function YA(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function OS(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const e$=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:a}=e;const s=OS(t,t.left,t.top),l=[];for(const u of a){const{id:f}=u,h=n.get(f);if(h){const m=HA(OS(h),s);l.push({id:f,data:{droppableContainer:u,value:m}})}}return l.sort($A)},t$=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:a}=e;const s=RS(t),l=[];for(const u of a){const{id:f}=u,h=n.get(f);if(h){const m=RS(h),v=s.reduce((b,w,E)=>b+HA(m[E],w),0),g=Number((v/4).toFixed(4));l.push({id:f,data:{droppableContainer:u,value:g}})}}return l.sort($A)};function n$(e,t){const n=Math.max(t.top,e.top),a=Math.max(t.left,e.left),s=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),u=s-a,f=l-n;if(a<s&&n<l){const h=t.width*t.height,m=e.width*e.height,v=u*f,g=v/(h+m-v);return Number(g.toFixed(4))}return 0}const r$=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:a}=e;const s=[];for(const l of a){const{id:u}=l,f=n.get(u);if(f){const h=n$(f,t);h>0&&s.push({id:u,data:{droppableContainer:l,value:h}})}}return s.sort(JH)};function a$(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function WA(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Cr}function o$(e){return function(n){for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return s.reduce((u,f)=>({...u,top:u.top+e*f.y,bottom:u.bottom+e*f.y,left:u.left+e*f.x,right:u.right+e*f.x}),{...n})}}const s$=o$(1);function GA(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function i$(e,t,n){const a=GA(t);if(!a)return e;const{scaleX:s,scaleY:l,x:u,y:f}=a,h=e.left-u-(1-s)*parseFloat(n),m=e.top-f-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),v=s?e.width/s:e.width,g=l?e.height/l:e.height;return{width:v,height:g,top:m,right:h+v,bottom:m+g,left:h}}const l$={ignoreTransform:!1};function bi(e,t){t===void 0&&(t=l$);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:m,transformOrigin:v}=Mn(e).getComputedStyle(e);m&&(n=i$(n,m,v))}const{top:a,left:s,width:l,height:u,bottom:f,right:h}=n;return{top:a,left:s,width:l,height:u,bottom:f,right:h}}function _S(e){return bi(e,{ignoreTransform:!0})}function c$(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function u$(e,t){return t===void 0&&(t=Mn(e).getComputedStyle(e)),t.position==="fixed"}function d$(e,t){t===void 0&&(t=Mn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(s=>{const l=t[s];return typeof l=="string"?n.test(l):!1})}function Of(e,t){const n=[];function a(s){if(t!=null&&n.length>=t||!s)return n;if(fx(s)&&s.scrollingElement!=null&&!n.includes(s.scrollingElement))return n.push(s.scrollingElement),n;if(!Nc(s)||VA(s)||n.includes(s))return n;const l=Mn(e).getComputedStyle(s);return s!==e&&d$(s,l)&&n.push(s),u$(s,l)?n:a(s.parentNode)}return e?a(e):n}function qA(e){const[t]=Of(e,1);return t??null}function Mp(e){return!kf||!e?null:xi(e)?e:dx(e)?fx(e)||e===yi(e).scrollingElement?window:Nc(e)?e:null:null}function XA(e){return xi(e)?e.scrollX:e.scrollLeft}function KA(e){return xi(e)?e.scrollY:e.scrollTop}function Rg(e){return{x:XA(e),y:KA(e)}}var en;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(en||(en={}));function ZA(e){return!kf||!e?!1:e===document.scrollingElement}function QA(e){const t={x:0,y:0},n=ZA(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},s=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,u=e.scrollTop>=a.y,f=e.scrollLeft>=a.x;return{isTop:s,isLeft:l,isBottom:u,isRight:f,maxScroll:a,minScroll:t}}const f$={x:.2,y:.2};function h$(e,t,n,a,s){let{top:l,left:u,right:f,bottom:h}=n;a===void 0&&(a=10),s===void 0&&(s=f$);const{isTop:m,isBottom:v,isLeft:g,isRight:b}=QA(e),w={x:0,y:0},E={x:0,y:0},S={height:t.height*s.y,width:t.width*s.x};return!m&&l<=t.top+S.height?(w.y=en.Backward,E.y=a*Math.abs((t.top+S.height-l)/S.height)):!v&&h>=t.bottom-S.height&&(w.y=en.Forward,E.y=a*Math.abs((t.bottom-S.height-h)/S.height)),!b&&f>=t.right-S.width?(w.x=en.Forward,E.x=a*Math.abs((t.right-S.width-f)/S.width)):!g&&u<=t.left+S.width&&(w.x=en.Backward,E.x=a*Math.abs((t.left+S.width-u)/S.width)),{direction:w,speed:E}}function m$(e){if(e===document.scrollingElement){const{innerWidth:l,innerHe
398ight:u}=window;return{top:0,left:0,right:l,bottom:u,width:l,height:u}}const{top:t,left:n,right:a,bottom:s}=e.getBoundingClientRect();return{top:t,left:n,right:a,bottom:s,width:e.clientWidth,height:e.clientHeight}}function JA(e){return e.reduce((t,n)=>qs(t,Rg(n)),Cr)}function p$(e){return e.reduce((t,n)=>t+XA(n),0)}function g$(e){return e.reduce((t,n)=>t+KA(n),0)}function eM(e,t){if(t===void 0&&(t=bi),!e)return;const{top:n,left:a,bottom:s,right:l}=t(e);qA(e)&&(s<=0||l<=0||n>=window.innerHeight||a>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const v$=[["x",["left","right"],p$],["y",["top","bottom"],g$]];class hx{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const a=Of(n),s=JA(a);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,u,f]of v$)for(const h of u)Object.defineProperty(this,h,{get:()=>{const m=f(a),v=s[l]-m;return this.rect[h]+v},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Pl{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var a;return(a=this.target)==null?void 0:a.removeEventListener(...n)})},this.target=t}add(t,n,a){var s;(s=this.target)==null||s.addEventListener(t,n,a),this.listeners.push([t,n,a])}}function x$(e){const{EventTarget:t}=Mn(e);return e instanceof t?e:yi(e)}function kp(e,t){const n=Math.abs(e.x),a=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+a**2)>t:"x"in t&&"y"in t?n>t.x&&a>t.y:"x"in t?n>t.x:"y"in t?a>t.y:!1}var cr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(cr||(cr={}));function PS(e){e.preventDefault()}function y$(e){e.stopPropagation()}var Ke;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ke||(Ke={}));const tM={start:[Ke.Space,Ke.Enter],cancel:[Ke.Esc],end:[Ke.Space,
398Ke.Enter,Ke.Tab]},b$=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ke.Right:return{...n,x:n.x+25};case Ke.Left:return{...n,x:n.x-25};case Ke.Down:return{...n,y:n.y+25};case Ke.Up:return{...n,y:n.y-25}}};class mx{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Pl(yi(n)),this.windowListeners=new Pl(Mn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(cr.Resize,this.handleCancel),this.windowListeners.add(cr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(cr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,a=t.node.current;a&&eM(a),n(Cr)}handleKeyDown(t){if(Rf(t)){const{active:n,context:a,options:s}=this.props,{keyboardCodes:l=tM,coordinateGetter:u=b$,scrollBehavior:f="smooth"}=s,{code:h}=t;if(l.end.includes(h)){this.handleEnd(t);return}if(l.cancel.includes(h)){this.handleCancel(t);return}const{collisionRect:m}=a.current,v=m?{x:m.left,y:m.top}:Cr;this.referenceCoordinates||(this.referenceCoordinates=v);const g=u(t,{active:n,context:a.current,currentCoordinates:v});if(g){const b=nc(g,v),w={x:0,y:0},{scrollableAncestors:E}=a.current;for(const S of E){const j=t.code,{isTop:N,isRight:A,isLeft:k,isBottom:T,maxScroll:M,minScroll:_}=QA(S),O=m$(S),D={x:Math.min(j===Ke.Right?O.right-O.width/2:O.right,Math.max(j===Ke.Right?O.left:O.left+O.width/2,g.x)),y:Math.min(j===Ke.Down?O.bottom-O.height/2:O.bottom,Math.max(j===Ke.Down?O.top:O.top+O.height/2,g.y))},L=j===Ke.Right&&!A||j===Ke.Left&&!k,I=j===Ke.Down&&!T||j===Ke.Up&&!N;if(L&&D.x!==g.x){const Z=S.scrollLeft+b.x,ce=j===Ke.Right&&Z<=M.x||j===Ke.Left&&Z>=_.x;if(ce&&!b.y){S.scrollTo({left:Z,behavior:f});return}ce?w.x=S.scrollLeft-Z:w.x=j===Ke.Right?S.scrollLeft-M.x:S.scrollLeft-_.x,w.x&&S.scrollBy({left:-w.x,behavior:f});break}else if(I&&D.y!==g.y){const Z=S.scrollTop+b.y,ce=j===Ke.Down&&Z<=M.y||j===Ke.Up&&Z>=_.y;if(ce&&!b.x){S.scrollTo({top:Z,behavior:f});return}ce?w.y=S.scrollTop-Z:w.y=j===Ke.Down?S.scrollTop-M.y:S.scrollTop-_.y,w.y&&S.scrollBy({top:-w.y,behavior:f});break}}this.handleMove(t,qs(nc(g,this.referenceCoordinates),w))}}}handleMove(t,n){const{onMove:a}=this.props;t.preventDefault(),a(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}mx.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:a=tM,onActivation:s}=t,{active:l}=n;const{code:u}=e.nativeEvent;if(a.start.includes(u)){const f=l.activatorNode.current;return f&&e.target!==f?!1:(e.preventDefault(),s==null||s({event:e.nativeEvent}),!0)}return!1}}];function LS(e){return!!(e&&"distance"in e)}function zS(e){return!!(e&&"delay"in e)}class px{constructor(t,n,a){var s;a===void 0&&(a=x$(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:u}=l;this.props=t,this.events=n,this.document=yi(u),this.documentListeners=new Pl(this.document),this.listeners=new Pl(a),this.windowListeners=new Pl(Mn(u)),this.initialCoordinates=(s=Vd(l))!=null?s:Cr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:a}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(cr.Resize,this.handleCancel),this.windowListeners.add(cr.DragStart,PS),this.windowListeners.add(cr.VisibilityChange,this.handleCancel),this.windowListeners.add(cr.ContextMenu,PS),this.documentListeners.add(cr.Keydown,this.handleKeydown),n){if(a!=null&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(zS(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(LS(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:a,onPending:s}=this.props;s(a,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(cr.Click,y$,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(cr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:a,initialCoordinates:s,props:l}=this,{onMove:u,options:{activationConstraint:f}}=l;if(!s)return;const h=(n=Vd(t))!=null?n:Cr,m=nc(s,h);if(!a&&f){if(LS(f)){if(f.tolerance!=null&&kp(m,f.tolerance))return this.handleCancel();if(kp(m,f.distance))return this.handleStart()}if(zS(f)&&kp(m,f.tolerance))return this.handleCancel();this.handlePending(f,m);return}t.cancelable&&t.preventDefault(),u(h)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ke.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const w$={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class gx extends px{constructor(t){const{event:n}=t,a=yi(n.target);super(t,w$,a)}}gx.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:a}=t;return!n.isPrimary||n.button!==0?!1:(a==null||a({event:n}),!0)}}];const S$={move:{name:"mousemove"},end:{name:"mouseup"}};var Og;(function(e){e[e.RightClick=2]="RightClick"})(Og||(Og={}));class E$ extends px{constructor(t){super(t,S$,yi(t.event.target))}}E$.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:a}=t;return n.button===Og.RightClick?!1:(a==null||a({event:n}),!0)}}];const Dp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};
398class nM extends px{constructor(t){super(t,Dp)}static setup(){return window.addEventListener(Dp.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Dp.move.name,t)};function t(){}}}nM.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:a}=t;const{touches:s}=n;return s.length>1?!1:(a==null||a({event:n}),!0)}}];var Ll;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ll||(Ll={}));var Id;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Id||(Id={}));function C$(e){let{acceleration:t,activator:n=Ll.Pointer,canScroll:a,draggingRect:s,enabled:l,interval:u=5,order:f=Id.TreeOrder,pointerCoordinates:h,scrollableAncestors:m,scrollableAncestorRects:v,delta:g,threshold:b}=e;const w=N$({delta:g,disabled:!l}),[E,S]=BH(),j=x.useRef({x:0,y:0}),N=x.useRef({x:0,y:0}),A=x.useMemo(()=>{switch(n){case Ll.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case Ll.DraggableRect:return s}},[n,s,h]),k=x.useRef(null),T=x.useCallback(()=>{const _=k.current;if(!_)return;const O=j.current.x*N.current.x,D=j.current.y*N.current.y;_.scrollBy(O,D)},[]),M=x.useMemo(()=>f===Id.TreeOrder?[...m].reverse():m,[f,m]);x.useEffect(()=>{if(!l||!m.length||!A){S();return}for(const _ of M){if((a==null?void 0:a(_))===!1)continue;const O=m.indexOf(_),D=v[O];if(!D)continue;const{direction:L,speed:I}=h$(_,D,A,t,b);for(const Z of["x","y"])w[Z][L[Z]]||(I[Z]=0,L[Z]=0);if(I.x>0||I.y>0){S(),k.current=_,E(T,u),j.current=I,N.current=L;return}}j.current={x:0,y:0},N.current={x:0,y:0},S()},[t,T,a,S,l,u,JSON.stringify(A),JSON.stringify(w),E,m,M,v,JSON.stringify(b)])}const j$={x:{[en.Backward]:!1,[en.Forward]:!1},y:{[en.Backward]:!1,[en.Forward]:!1}};function N$(e){let{delta:t,disabled:n}=e;const a=Fd(t);return Tc(s=>{if(n||!a||!s)return j$;const l={x:Math.sign(t.x-a.x),y:Math.sign(t.y-a.y)};return{x:{[en.Backward]:s.x[en.Backward]||l.x===-1,[en.Forward]:s.x[en.Forward]||l.x===1},y:{[en.Backward]:s.y[en.Backward]||l.y===-1,[en.Forward]:s.y[en.Forward]||l.y===1}}},[n,t,a])}function T$(e,t){const n=t!=null?e.get(t):void 0,a=n?n.node.current:null;return Tc(s=>{var l;return t==null?null:(l=a??s)!=null?l:null},[a,t])}function A$(e,t){return x.useMemo(()=>e.reduce((n,a)=>{const{sensor:s}=a,l=s.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,a)}));return[...n,...l]},[]),[e,t])}var rc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(rc||(rc={}));var _g;(function(e){e.Optimized="optimized"})(_g||(_g={}));const BS=new Map;function M$(e,t){let{dragging:n,dependencies:a,config:s}=t;const[l,u]=x.useState(null),{frequency:f,measure:h,strategy:m}=s,v=x.useRef(e),g=j(),b=tc(g),w=x.useCallback(function(N){N===void 0&&(N=[]),!b.current&&u(A=>A===null?N:A.concat(N.filter(k=>!A.includes(k))))},[b]),E=x.useRef(null),S=Tc(N=>{if(g&&!n)return BS;if(!N||N===BS||v.current!==e||l!=null){const A=new Map;for(let k of e){if(!k)continue;if(l&&l.length>0&&!l.includes(k.id)&&k.rect.current){A.set(k.id,k.rect.current);continue}const T=k.node.current,M=T?new hx(h(T),T):null;k.rect.current=M,M&&A.set(k.id,M)}return A}return N},[e,l,n,g,h]);return x.useEffect(()=>{v.current=e},[e]),x.useEffect(()=>{g||w()},[n,g]),x.useEffect(()=>{l&&l.length>0&&u(null)},[JSON.stringify(l)]),x.useEffect(()=>{g||typeof f!="number"||E.current!==null||(E.current=setTimeout(()=>{w(),E.current=null},f))},[f,g,w,...a]),{droppableRects:S,measureDroppableContainers:w,measuringScheduled:l!=null};function j(){switch(m){case rc.Always:return!1;case rc.BeforeDragging:return n;default:return!n}}}function vx(e,t){return Tc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function k$(e,t){return vx(e,t)}function D$(e){let{callback:t,disabled:n}=e;const a=Df(t),s=x.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(a)},[a,n]);return x.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function _f(e){let{callback:t,disabled:n}=e;const a=Df(t),s=x.useMemo(()=>
398{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(a)},[n]);return x.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function R$(e){return new hx(bi(e),e)}function FS(e,t,n){t===void 0&&(t=R$);const[a,s]=x.useState(null);function l(){s(h=>{if(!e)return null;if(e.isConnected===!1){var m;return(m=h??n)!=null?m:null}const v=t(e);return JSON.stringify(h)===JSON.stringify(v)?h:v})}const u=D$({callback(h){if(e)for(const m of h){const{type:v,target:g}=m;if(v==="childList"&&g instanceof HTMLElement&&g.contains(e)){l();break}}}}),f=_f({callback:l});return Er(()=>{l(),e?(f==null||f.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(f==null||f.disconnect(),u==null||u.disconnect())},[e]),a}function O$(e){const t=vx(e);return WA(e,t)}const VS=[];function _$(e){const t=x.useRef(e),n=Tc(a=>e?a&&a!==VS&&e&&t.current&&e.parentNode===t.current.parentNode?a:Of(e):VS,[e]);return x.useEffect(()=>{t.current=e},[e]),n}function P$(e){const[t,n]=x.useState(null),a=x.useRef(e),s=x.useCallback(l=>{const u=Mp(l.target);u&&n(f=>f?(f.set(u,Rg(u)),new Map(f)):null)},[]);return x.useEffect(()=>{const l=a.current;if(e!==l){u(l);const f=e.map(h=>{const m=Mp(h);return m?(m.addEventListener("scroll",s,{passive:!0}),[m,Rg(m)]):null}).filter(h=>h!=null);n(f.length?new Map(f):null),a.current=e}return()=>{u(e),u(l)};function u(f){f.forEach(h=>{const m=Mp(h);m==null||m.removeEventListener("scroll",s)})}},[s,e]),x.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,u)=>qs(l,u),Cr):JA(e):Cr,[e,t])}function US(e,t){t===void 0&&(t=[]);const n=x.useRef(null);return x.useEffect(()=>{n.current=null},t),x.useEffect(()=>{const a=e!==Cr;a&&!n.current&&(n.current=e),!a&&n.current&&(n.current=null)},[e]),n.current?nc(e,n.current):Cr}function L$(e){x.useEffect(()=>{if(!kf)return;const t=e.map(n=>{let{sensor:a}=n;return a.setup==null?void 0:a.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function z$(e,t){return x.useMemo(()=>e.reduce((n,a)=>{let{eventName:s,handler:l}=a;return n[s]=u=>{l(u,t)},n},{}),[e,t])}function rM(e){return x.useMemo(()=>e?c$(e):null,[e])}const IS=[];function B$(e,t){t===void 0&&(t=bi);const[n]=e,a=rM(n?Mn(n):null),[s,l]=x.useState(IS);function u(){l(()=>e.length?e.map(h=>ZA(h)?a:new hx(t(h),h)):IS)}const f=_f({callback:u});return Er(()=>{f==null||f.disconnect(),u(),e.forEach(h=>f==null?void 0:f.observe(h))},[e]),s}function aM(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Nc(t)?t:e}function F$(e){let{measure:t}=e;const[n,a]=x.useState(null),s=x.useCallback(m=>{for(const{target:v}of m)if(Nc(v)){a(g=>{const b=t(v);return g?{...g,width:b.width,height:b.height}:b});break}},[t]),l=_f({callback:s}),u=x.useCallback(m=>{const v=aM(m);l==null||l.disconnect(),v&&(l==null||l.observe(v)),a(v?t(v):null)},[t,l]),[f,h]=Bd(u);return x.useMemo(()=>({nodeRef:f,rect:n,setRef:h}),[n,f,h])}const V$=[{sensor:gx,options:{}},{sensor:mx,options:{}}],U$={current:{}},fd={draggable:{measure:_S},droppable:{measure:_S,strategy:rc.WhileDragging,frequency:_g.Optimized},dragOverlay:{measure:bi}};class zl extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,a;return(n=(a=this.get(t))==null?void 0:a.node.current)!=null?n:void 0}}const I$={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new zl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ud},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:fd,measureDroppableContainers:Ud,windowRect:null,measuringScheduled:!1},oM={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ud,draggableNodes:new Map,over:null,measureDroppableContainers:Ud},Mc=x.createContext(oM),sM=x.createContext(I$);function H$(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new zl}}}function $$(e,t){switch(t.type){case qt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case qt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case qt.DragEnd:case qt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case qt.RegisterDroppable:{const{element:n}=t,{id:a}
398=n,s=new zl(e.droppable.containers);return s.set(a,n),{...e,droppable:{...e.droppable,containers:s}}}case qt.SetDroppableDisabled:{const{id:n,key:a,disabled:s}=t,l=e.droppable.containers.get(n);if(!l||a!==l.key)return e;const u=new zl(e.droppable.containers);return u.set(n,{...l,disabled:s}),{...e,droppable:{...e.droppable,containers:u}}}case qt.UnregisterDroppable:{const{id:n,key:a}=t,s=e.droppable.containers.get(n);if(!s||a!==s.key)return e;const l=new zl(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function Y$(e){let{disabled:t}=e;const{active:n,activatorEvent:a,draggableNodes:s}=x.useContext(Mc),l=Fd(a),u=Fd(n==null?void 0:n.id);return x.useEffect(()=>{if(!t&&!a&&l&&u!=null){if(!Rf(l)||document.activeElement===l.target)return;const f=s.get(u);if(!f)return;const{activatorNode:h,node:m}=f;if(!h.current&&!m.current)return;requestAnimationFrame(()=>{for(const v of[h.current,m.current]){if(!v)continue;const g=UH(v);if(g){g.focus();break}}})}},[a,t,s,u,l]),null}function iM(e,t){let{transform:n,...a}=t;return e!=null&&e.length?e.reduce((s,l)=>l({transform:s,...a}),n):n}function W$(e){return x.useMemo(()=>({draggable:{...fd.draggable,...e==null?void 0:e.draggable},droppable:{...fd.droppable,...e==null?void 0:e.droppable},dragOverlay:{...fd.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function G$(e){let{activeNode:t,measure:n,initialRect:a,config:s=!0}=e;const l=x.useRef(!1),{x:u,y:f}=typeof s=="boolean"?{x:s,y:s}:s;Er(()=>{if(!u&&!f||!t){l.current=!1;return}if(l.current||!a)return;const m=t==null?void 0:t.node.current;if(!m||m.isConnected===!1)return;const v=n(m),g=WA(v,a);if(u||(g.x=0),f||(g.y=0),l.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const b=qA(m);b&&b.scrollBy({top:g.y,left:g.x})}},[t,u,f,a,n])}const Pf=x.createContext({...Cr,scaleX:1,scaleY:1});var Ka;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ka||(Ka={}));const q$=x.memo(function(t){var n,a,s,l;let{id:u,accessibility:f,autoScroll:h=!0,children:m,sensors:v=V$,collisionDetection:g=r$,measuring:b,modifiers:w,...E}=t;const S=x.useReducer($$,void 0,H$),[j,N]=S,[A,k]=GH(),[T,M]=x.useState(Ka.Uninitialized),_=T===Ka.Initialized,{draggable:{active:O,nodes:D,translate:L},droppable:{containers:I}}=j,Z=O!=null?D.get(O):null,ce=x.useRef({initial:null,translated:null}),U=x.useMemo(()=>{var ve;return O!=null?{id:O,data:(ve=Z==null?void 0:Z.data)!=null?ve:U$,rect:ce}:null},[O,Z]),Q=x.useRef(null),[le,F]=x.useState(null),[H,V]=x.useState(null),J=tc(E,Object.values(E)),P=Ac("DndDescribedBy",u),te=x.useMemo(()=>I.getEnabled(),[I]),Y=W$(b),{droppableRects:G,measureDroppableContainers:X,measuringScheduled:ne}=M$(te,{dragging:_,dependencies:[L.x,L.y],config:Y.droppable}),se=T$(D,O),re=x.useMemo(()=>H?Vd(H):null,[H]),ie=xe(),pe=k$(se,Y.draggable.measure);G$({activeNode:O!=null?D.get(O):null,config:ie.layoutShiftCompensation,initialRect:pe,measure:Y.draggable.measure});const fe=FS(se,Y.draggable.measure,pe),je=FS(se?se.parentElement:null),Ne=x.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),qe=I.getNodeFor((n=Ne.current.over)==null?void 0:n.id),ye=F$({measure:Y.dragOverlay.measure}),gt=(a=ye.nodeRef.current)!=null?a:se,ct=_?(s=ye.rect)!=null?s:fe:null,vt=!!(ye.nodeRef.current&&ye.rect),hn=O$(vt?null:fe),dt=rM(gt?Mn(gt):null),yt=_$(_?qe??se:null),Sn=B$(yt),pt=iM(w,{transform:{x:L.x-hn.x,y:L.y-hn.y,scaleX:1,scaleY:1},activatorEvent:H,active:U,activeNodeRect:fe,containerNodeRect:je,draggingNodeRect:ct,over:Ne.current.over,overlayNodeRect:ye.rect,scrollableAncestors:yt,scrollableAncestorRects:Sn,windowRect:dt}),Mt=re?qs(re,L):null,kt=P$(yt),Nr=US(kt),Ln=US(kt,[fe]),En=qs(pt,Nr),Dt=ct?s$(ct,pt):null,Cn=U&&Dt?g({active:U,collisionRect:Dt,droppableRects:G,droppableContainers:te,pointerCoordinates:Mt}):null,rn=YA(Cn,"id"),[an,It]=x.useState(null),kn=vt?pt:qs(pt,Ln),Rt=a$(kn,(l=an==null?void 0:an.rect)!=null?l:null,fe),qn=x.useRef(null),Ht=x.useCallback((ve,Ae)=>{let{sensor:de,options:Oe}=Ae;if(Q.current==null)return;const Ve=D.get(Q.current);if(!Ve)return;const ze=ve.nativeEvent,et=new de({active:Q.current,activeNode:Ve,event:ze,options:Oe,context:Ne,onAbort(Le){if(!D.get(Le))return;const{onDragAbort:rt}=J.current,xt={id:Le};rt==null||rt(xt),A({type:"onDragAbort",event:xt})},onPending(Le,Lt,rt,xt){if(!D.get(Le))return;const{onDragPending:mn}=J.current,hr={id:Le,constraint:Lt,initialCoordinates:rt,offset:xt};mn==null||mn(hr),A({type:"onDragPending",event:hr})},onStart(Le){const Lt=Q.current;if(Lt==null)return;const rt=D.get(Lt);if(!rt)return;const{onDragStart:xt}=J.current,fr={activatorEvent:ze,active:{id:Lt,data:rt.data,rect:ce}};Pr.unstable_batchedUpdates(()=>{xt==null||xt(fr),M(Ka.Initializing),N({type:qt.DragStart,initialCoordinates:Le,active:Lt}),A({type:"onDragStart",event:fr}),F(qn.current),V(ze)})},onMove(Le){N({type:qt.DragMove,coordinates:Le})},onEnd:Ue(qt.DragEnd),onCancel:Ue(qt.DragCancel)});qn.current=et;function Ue(Le){return async function(){const{active:rt,collisions:xt,over:fr,scrollAdjustedTranslate:mn}=Ne.current;let hr=null;if(rt&&mn){const{cancelDrop:Dn}=J.current;hr={activatorEvent:ze,active:rt,collisions:xt,delta:mn,over:fr},Le===qt.DragEnd&&typeof Dn=="function"&&await Promise.resolve(Dn(hr))&&(Le=qt.DragCancel)}Q.current=null,Pr.unstable_batchedUpdates(()=>{N({type:Le}),M(Ka.Uninitialized),It(null),F(null),V(null),qn.current=null;const Dn=Le===qt.DragEnd?"onDragEnd":"onDragCancel";
398if(hr){const zt=J.current[Dn];zt==null||zt(hr),A({type:Dn,event:hr})}})}}},[D]),Ot=x.useCallback((ve,Ae)=>(de,Oe)=>{const Ve=de.nativeEvent,ze=D.get(Oe);if(Q.current!==null||!ze||Ve.dndKit||Ve.defaultPrevented)return;const et={active:ze};ve(de,Ae.options,et)===!0&&(Ve.dndKit={capturedBy:Ae.sensor},Q.current=Oe,Ht(de,Ae))},[D,Ht]),zn=A$(v,Ot);L$(v),Er(()=>{fe&&T===Ka.Initializing&&M(Ka.Initialized)},[fe,T]),x.useEffect(()=>{const{onDragMove:ve}=J.current,{active:Ae,activatorEvent:de,collisions:Oe,over:Ve}=Ne.current;if(!Ae||!de)return;const ze={active:Ae,activatorEvent:de,collisions:Oe,delta:{x:En.x,y:En.y},over:Ve};Pr.unstable_batchedUpdates(()=>{ve==null||ve(ze),A({type:"onDragMove",event:ze})})},[En.x,En.y]),x.useEffect(()=>{const{active:ve,activatorEvent:Ae,collisions:de,droppableContainers:Oe,scrollAdjustedTranslate:Ve}=Ne.current;if(!ve||Q.current==null||!Ae||!Ve)return;const{onDragOver:ze}=J.current,et=Oe.get(rn),Ue=et&&et.rect.current?{id:et.id,rect:et.rect.current,data:et.data,disabled:et.disabled}:null,Le={active:ve,activatorEvent:Ae,collisions:de,delta:{x:Ve.x,y:Ve.y},over:Ue};Pr.unstable_batchedUpdates(()=>{It(Ue),ze==null||ze(Le),A({type:"onDragOver",event:Le})})},[rn]),Er(()=>{Ne.current={activatorEvent:H,active:U,activeNode:se,collisionRect:Dt,collisions:Cn,droppableRects:G,draggableNodes:D,draggingNode:gt,draggingNodeRect:ct,droppableContainers:I,over:an,scrollableAncestors:yt,scrollAdjustedTranslate:En},ce.current={initial:ct,translated:Dt}},[U,se,Cn,Dt,D,gt,ct,G,I,an,yt,En]),C$({...ie,delta:L,draggingRect:Dt,pointerCoordinates:Mt,scrollableAncestors:yt,scrollableAncestorRects:Sn});const me=x.useMemo(()=>({active:U,activeNode:se,activeNodeRect:fe,activatorEvent:H,collisions:Cn,containerNodeRect:je,dragOverlay:ye,draggableNodes:D,droppableContainers:I,droppableRects:G,over:an,measureDroppableContainers:X,scrollableAncestors:yt,scrollableAncestorRects:Sn,measuringConfiguration:Y,measuringScheduled:ne,windowRect:dt}),[U,se,fe,H,Cn,je,ye,D,I,G,an,X,yt,Sn,Y,ne,dt]),Te=x.useMemo(()=>({activatorEvent:H,activators:zn,active:U,activeNodeRect:fe,ariaDescribedById:{draggable:P},dispatch:N,draggableNodes:D,over:an,measureDroppableContainers:X}),[H,zn,U,fe,N,P,D,an,X]);return z.createElement(IA.Provider,{value:k},z.createElement(Mc.Provider,{value:Te},z.createElement(sM.Provider,{value:me},z.createElement(Pf.Provider,{value:Rt},m)),z.createElement(Y$,{disabled:(f==null?void 0:f.restoreFocus)===!1})),z.createElement(KH,{...f,hiddenTextDescribedById:P}));function xe(){const ve=(le==null?void 0:le.autoScrollEnabled)===!1,Ae=typeof h=="object"?h.enabled===!1:h===!1,de=_&&!ve&&!Ae;return typeof h=="object"?{...h,enabled:de}:{enabled:de}}}),X$=x.createContext(null),HS="button",K$="Draggable";function Z$(e){let{id:t,data:n,disabled:a=!1,attributes:s}=e;const l=Ac(K$),{activators:u,activatorEvent:f,active:h,activeNodeRect:m,ariaDescribedById:v,draggableNodes:g,over:b}=x.useContext(Mc),{role:w=HS,roleDescription:E="draggable",tabIndex:S=0}=s??{},j=(h==null?void 0:h.id)===t,N=x.useContext(j?Pf:X$),[A,k]=Bd(),[T,M]=Bd(),_=z$(u,t),O=tc(n);Er(()=>(g.set(t,{id:t,key:l,node:A,activatorNode:T,data:O}),()=>{const L=g.get(t);L&&L.key===l&&g.delete(t)}),[g,t]);const D=x.useMemo(()=>({role:w,tabIndex:S,"aria-disabled":a,"aria-pressed":j&&w===HS?!0:void 0,"aria-roledescription":E,"aria-describedby":v.draggable}),[a,w,S,j,E,v.draggable]);return{active:h,activatorEvent:f,activeNodeRect:m,attributes:D,isDragging:j,listeners:a?void 0:_,node:A,over:b,setNodeRef:k,setActivatorNodeRef:M,transform:N}}function lM(){return x.useContext(sM)}const Q$="Droppable",J$={timeout:25};function eY(e){let{data:t,disabled:n=!1,id:a,resizeObserverConfig:s}=e;const l=Ac(Q$),{active:u,dispatch:f,over:h,measureDroppableContainers:m}=x.useContext(Mc),v=x.useRef({disabled:n}),g=x.useRef(!1),b=x.useRef(null),w=x.useRef(null),{disabled:E,updateMeasurementsFor:S,timeout:j}={...J$,...s},N=tc(S??a),A=x.useCallback(()=>{if(!g.current){g.current=!0;return}w.current!=null&&clearTimeout(w.current),w.current=setTimeout(()=>{m(Array.isArray(N.current)?N.current:[N.current]),w.current=null},j)},[j]),k=_f({callback:A,disabled:E||!u}),T=x.useCallback((D,L)=>{k&&(L&&(k.unobserve(L),g.current=!1),D&&k.observe(D))}
398,[k]),[M,_]=Bd(T),O=tc(t);return x.useEffect(()=>{!k||!M.current||(k.disconnect(),g.current=!1,k.observe(M.current))},[M,k]),x.useEffect(()=>(f({type:qt.RegisterDroppable,element:{id:a,key:l,disabled:n,node:M,rect:b,data:O}}),()=>f({type:qt.UnregisterDroppable,key:l,id:a})),[a]),x.useEffect(()=>{n!==v.current.disabled&&(f({type:qt.SetDroppableDisabled,id:a,key:l,disabled:n}),v.current.disabled=n)},[a,l,n,f]),{active:u,rect:b,isOver:(h==null?void 0:h.id)===a,node:M,over:h,setNodeRef:_}}function tY(e){let{animation:t,children:n}=e;const[a,s]=x.useState(null),[l,u]=x.useState(null),f=Fd(n);return!n&&!a&&f&&s(f),Er(()=>{if(!l)return;const h=a==null?void 0:a.key,m=a==null?void 0:a.props.id;if(h==null||m==null){s(null);return}Promise.resolve(t(m,l)).then(()=>{s(null)})},[t,a,l]),z.createElement(z.Fragment,null,n,a?x.cloneElement(a,{ref:u}):null)}const nY={x:0,y:0,scaleX:1,scaleY:1};function rY(e){let{children:t}=e;return z.createElement(Mc.Provider,{value:oM},z.createElement(Pf.Provider,{value:nY},t))}const aY={position:"fixed",touchAction:"none"},oY=e=>Rf(e)?"transform 250ms ease":void 0,sY=x.forwardRef((e,t)=>{let{as:n,activatorEvent:a,adjustScale:s,children:l,className:u,rect:f,style:h,transform:m,transition:v=oY}=e;if(!f)return null;const g=s?m:{...m,scaleX:1,scaleY:1},b={...aY,width:f.width,height:f.height,top:f.top,left:f.left,transform:no.Transform.toString(g),transformOrigin:s&&a?QH(a,f):void 0,transition:typeof v=="function"?v(a):v,...h};return z.createElement(n,{className:u,style:b,ref:t},l)}),iY=e=>t=>{let{active:n,dragOverlay:a}=t;const s={},{styles:l,className:u}=e;if(l!=null&&l.active)for(const[f,h]of Object.entries(l.active))h!==void 0&&(s[f]=n.node.style.getPropertyValue(f),n.node.style.setProperty(f,h));if(l!=null&&l.dragOverlay)for(const[f,h]of Object.entries(l.dragOverlay))h!==void 0&&a.node.style.setProperty(f,h);return u!=null&&u.active&&n.node.classList.add(u.active),u!=null&&u.dragOverlay&&a.node.classList.add(u.dragOverlay),function(){for(const[h,m]of Object.entries(s))n.node.style.setProperty(h,m);u!=null&&u.active&&n.node.classList.remove(u.active)}},lY=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:no.Transform.toString(t)},{transform:no.Transform.toString(n)}]},cY={duration:250,easing:"ease",keyframes:lY,sideEffects:iY({styles:{active:{opacity:"0"}}})};
398function uY(e){let{config:t,draggableNodes:n,droppableContainers:a,measuringConfiguration:s}=e;return Df((l,u)=>{if(t===null)return;const f=n.get(l);if(!f)return;const h=f.node.current;if(!h)return;const m=aM(u);if(!m)return;const{transform:v}=Mn(u).getComputedStyle(u),g=GA(v);if(!g)return;const b=typeof t=="function"?t:dY(t);return eM(h,s.draggable.measure),b({active:{id:l,data:f.data,node:h,rect:s.draggable.measure(h)},draggableNodes:n,dragOverlay:{node:u,rect:s.dragOverlay.measure(m)},droppableContainers:a,measuringConfiguration:s,transform:g})})}function dY(e){const{duration:t,easing:n,sideEffects:a,keyframes:s}={...cY,...e};return l=>{let{active:u,dragOverlay:f,transform:h,...m}=l;if(!t)return;const v={x:f.rect.left-u.rect.left,y:f.rect.top-u.rect.top},g={scaleX:h.scaleX!==1?u.rect.width*h.scaleX/f.rect.width:1,scaleY:h.scaleY!==1?u.rect.height*h.scaleY/f.rect.height:1},b={x:h.x-v.x,y:h.y-v.y,...g},w=s({...m,active:u,dragOverlay:f,transform:{initial:h,final:b}}),[E]=w,S=w[w.length-1];if(JSON.stringify(E)===JSON.stringify(S))return;const j=a==null?void 0:a({active:u,dragOverlay:f,...m}),N=f.node.animate(w,{duration:t,easing:n,fill:"forwards"});return new Promise(A=>{N.onfinish=()=>{j==null||j(),A()}})}}let $S=0;function fY(e){return x.useMemo(()=>{if(e!=null)return $S++,$S},[e])}const hY=z.memo(e=>
398{let{adjustScale:t=!1,children:n,dropAnimation:a,style:s,transition:l,modifiers:u,wrapperElement:f="div",className:h,zIndex:m=999}=e;const{activatorEvent:v,active:g,activeNodeRect:b,containerNodeRect:w,draggableNodes:E,droppableContainers:S,dragOverlay:j,over:N,measuringConfiguration:A,scrollableAncestors:k,scrollableAncestorRects:T,windowRect:M}=lM(),_=x.useContext(Pf),O=fY(g==null?void 0:g.id),D=iM(u,{activatorEvent:v,active:g,activeNodeRect:b,containerNodeRect:w,draggingNodeRect:j.rect,over:N,overlayNodeRect:j.rect,scrollableAncestors:k,scrollableAncestorRects:T,transform:_,windowRect:M}),L=vx(b),I=uY({config:a,draggableNodes:E,droppableContainers:S,measuringConfiguration:A}),Z=L?j.setRef:void 0;return z.createElement(rY,null,z.createElement(tY,{animation:I},g&&O?z.createElement(sY,{key:O,id:g.id,ref:Z,as:f,activatorEvent:v,adjustScale:t,className:h,transition:l,rect:L,style:{zIndex:m,...s},transform:D},n):null))});function xx(e,t,n){const a=e.slice();return a.splice(n<0?a.length+n:n,0,a.splice(t,1)[0]),a}function mY(e,t){return e.reduce((n,a,s)=>{const l=t.get(a);return l&&(n[s]=l),n},Array(e.length))}function td(e){return e!==null&&e>=0}function pY(e,t){if(e===t)return!0;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 gY(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const yx=e=>{let{rects:t,activeIndex:n,overIndex:a,index:s}=e;const l=xx(t,a,n),u=t[s],f=l[s];return!f||!u?null:{x:f.left-u.left,y:f.top-u.top,scaleX:f.width/u.width,scaleY:f.height/u.height}},cM="Sortable",uM=z.createContext({activeIndex:-1,containerId:cM,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:yx,disabled:{draggable:!1,droppable:!1}});function vY(e){let{children:t,id:n,items:a,strategy:s=yx,disabled:l=!1}=e;const{active:u,dragOverlay:f,droppableRects:h,over:m,measureDroppableContainers:v}=lM(),g=Ac(cM,n),b=f.rect!==null,w=x.useMemo(()=>a.map(_=>typeof _=="object"&&"id"in _?_.id:_),[a]),E=u!=null,S=u?w.indexOf(u.id):-1,j=m?w.indexOf(m.id):-1,N=x.useRef(w),A=!pY(w,N.current),k=j!==-1&&S===-1||A,T=gY(l);Er(()=>{A&&E&&v(w)},[A,w,E,v]),x.useEffect(()=>{N.current=w},[w]);const M=x.useMemo(()=>({activeIndex:S,containerId:g,disabled:T,disableTransforms:k,items:w,overIndex:j,useDragOverlay:b,sortedRects:mY(w,h),strategy:s}),[S,g,T.draggable,T.droppable,k,w,j,h,b,s]);return z.createElement(uM.Provider,{value:M},t)}const xY=e=>{let{id:t,items:n,activeIndex:a,overIndex:s}=e;return xx(n,a,s).indexOf(t)},yY=e=>{let{containerId:t,isSorting:n,wasDragging:a,index:s,items:l,newIndex:u,previousItems:f,previousContainerId:h,transition:m}=e;return!m||!a||f!==l&&s===u?!1:n?!0:u!==s&&t===h},bY={duration:200,easing:"ease"},dM="transform",wY=no.Transition.toString({property:dM,duration:0,easing:"linear"}),SY={roleDescription:"sortable"};function EY(e){let{disabled:t,index:n,node:a,rect:s}=e;const[l,u]=x.useState(null),f=x.useRef(n);return Er(()=>{if(!t&&n!==f.current&&a.current){const h=s.current;if(h){const m=bi(a.current,{ignoreTransform:!0}),v={x:h.left-m.left,y:h.top-m.top,scaleX:h.width/m.width,scaleY:h.height/m.height};(v.x||v.y)&&u(v)}}n!==f.current&&(f.current=n)},[t,n,a,s]),x.useEffect(()=>{l&&u(null)},[l]),l}function CY(e){let{animateLayoutChanges:t=yY,attributes:n,disabled:a,data:s,getNewIndex:l=xY,id:u,strategy:f,resizeObserverConfig:h,transition:m=bY}=e;const{items:v,containerId:g,activeIndex:b,disabled:w,disableTransforms:E,sortedRects:S,overIndex:j,useDragOverlay:N,strategy:A}=x.useContext(uM),k=jY(a,w),T=v.indexOf(u),M=x.useMemo(()=>({sortable:{containerId:g,index:T,items:v},...s}),[g,s,T,v]),_=x.useMemo(()=>v.slice(v.indexOf(u)),[v,u]),{rect:O,node:D,isOver:L,setNodeRef:I}=eY({id:u,data:M,disabled:k.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...h}}),{active:Z,activatorEvent:ce,activeNodeRect:U,attributes:Q,setNodeRef:le,listeners:F,isDragging:H,over:V,setActivatorNodeRef:J,transform:P}=Z$({id:u,data:M,attributes:{...SY,...n},disabled:k.draggable}),te=zH(I,le),Y=!!Z,G=Y&&!E&&td(b)&&td(j),X=!N&&H,ne=X&&G?P:null,re=G?ne??(f??A)({rects:S,activeNodeRect:U,activeIndex:b,overIndex:j,index:T}):null,ie=td(b)&&td(j)?l({id:u,items:v,activeIndex:b,overIndex:j}):T,pe=Z==null?void 0:Z.id,fe=x.useRef({activeId:pe,items:v,newIndex:ie,containerId:g}),je=v!==fe.current.items,Ne=t({active:Z,containerId:g,isDragging:H,isSorting:Y,id:u,index:T,items:v,newIndex:fe.current.newIndex,previousItems:fe.current.items,previousContainerId:fe.current.containerId,transition:m,wasDragging:fe.current.activeId!=null}),qe=EY({disabled:!Ne,index:T,node:D,rect:O});return x.useEffect(()=>{Y&&fe.current.newIndex!==ie&&(fe.current.newIndex=ie),g!==fe.current.containerId&&(fe.current.containerId=g),v!==fe.current.items&&(fe.current.items=v)},[Y,ie,g,v]),x.useEffect(()=>{if(pe===fe.current.activeId)return;if(pe!=null&&fe.current.activeId==null){fe.current.activeId=pe;return}const gt=setTimeout(()=>{fe.current.activeId=pe},50);return()=>clearTimeout(gt)},[pe]),{active:Z,activeIndex:b,attributes:Q,data:M,rect:O,index:T,newIndex:ie,items:v,isOver:L,isSorting:Y,isDragging:H,listeners:F,node:D,overIndex:j,over:V,setNodeRef:te,setActivatorNodeRef:J,setDroppableNodeRef:I,setDraggableNodeRef:le,transform:qe??re,transition:ye()};function ye(){if(qe||je&&fe.current.newIndex===T)return wY;if(!(X&&!Rf(ce)||!m)&&(Y||Ne))return no.Transition.toString({...m,property:dM})}}function jY(e,t){var n,a;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(a=e==null?void 0:e.droppable)!=null?a:t.droppable}}function Hd(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const NY=[Ke.Down,Ke.Right,Ke.Up,Ke.Left],TY=(e,t)=>
398{let{context:{active:n,collisionRect:a,droppableRects:s,droppableContainers:l,over:u,scrollableAncestors:f}}=t;if(NY.includes(e.code)){if(e.preventDefault(),!n||!a)return;const h=[];l.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const b=s.get(g.id);if(b)switch(e.code){case Ke.Down:a.top<b.top&&h.push(g);break;case Ke.Up:a.top>b.top&&h.push(g);break;case Ke.Left:a.left>b.left&&h.push(g);break;case Ke.Right:a.left<b.left&&h.push(g);break}});const m=t$({collisionRect:a,droppableRects:s,droppableContainers:h});let v=YA(m,"id");if(v===(u==null?void 0:u.id)&&m.length>1&&(v=m[1].id),v!=null){const g=l.get(n.id),b=l.get(v),w=b?s.get(b.id):null,E=b==null?void 0:b.node.current;if(E&&w&&g&&b){const j=Of(E).some((_,O)=>f[O]!==_),N=fM(g,b),A=AY(g,b),k=j||!N?{x:0,y:0}:{x:A?a.width-w.width:0,y:A?a.height-w.height:0},T={x:w.left,y:w.top};return k.x&&k.y?T:nc(T,k)}}}};function fM(e,t){return!Hd(e)||!Hd(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function AY(e,t){return!Hd(e)||!Hd(t)||!fM(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}function MY(e){return[...e].sort((t,n)=>t.featured!==n.featured?t.featured?-1:1:t.sort_order!==n.sort_order?t.sort_order-n.sort_order:n.id-t.id)}const kY=({eventId:e,onOpenBulkUpload:t})=>{const[n,a]=x.useState([]),[s,l]=x.useState(!0),u=x.useCallback(async S=>{l(!0);try{const j=await it.admin.photos.list(S,"approved");a(MY(j.photos))}catch(j){We.error(dn(j))}finally{l(!1)}},[]);x.useEffect(()=>{u(e)},[e,u]);const f=ZH(Ap(gx,{activationConstraint:{distance:4}}),Ap(nM,{activationConstraint:{delay:200,tolerance:6}}),Ap(mx,{coordinateGetter:TY})),[h,m]=x.useState(null),v=x.useMemo(()=>n.find(S=>S.id===h)??null,[n,h]),g=S=>m(S.active.id),b=S=>{m(null);const{active:j,over:N}=S;if(!N||j.id===N.id)return;const A=n.findIndex(_=>_.id===j.id),k=n.findIndex(_=>_.id===N.id);if(A<0||k<0)return;const T=xx(n,A,k);a(T);const M=T.map((_,O)=>({id:_.id,sort_order:(O+1)*10}));it.admin.photos.update({action:"reorder",order:M}).then(()=>We.success("Order saved")).catch(_=>{We.error(dn(_,"Reorder failed")),u(e)})},w=async S=>{try{await it.admin.photos.update({action:"cover",id:S.id}),We.success("Cover image set")}catch(j){We.error(dn(j))}},E=async S=>{if(await ix("Delete this photo from the gallery?",{description:"This cannot be undone.",danger:!0}))try{await it.admin.photos.update({action:"delete",ids:[S.id]}),a(N=>N.filter(A=>A.id!==S.id)),We.success("Photo deleted")}catch(N){We.error(dn(N))}};return s?c.jsx(YS,{children:Array.from({length:8}).map((S,j)=>c.jsx("div",{className:"aspect-square rounded-xl bg-secondary animate-pulse"},j))}):n.length===0?c.jsxs("div",{className:"py-16 text-center",children:[c.jsx(Vo,{className:"mx-auto text-muted-foreground mb-3",size:28}),c.jsx("p",{className:"text-foreground font-semibold",children:"No published photos yet for this event."}),t&&c.jsxs(nt,{variant:"link",onClick:t,className:"mt-2 text-primary",children:[c.jsx(Zd,{})," Upload some now"]})]}):c.jsxs("div",{children:[c.jsx("p",{className:"text-muted-foreground text-xs mb-4",children:"Drag a photo into the order you want â it saves automatically. Hover for cover & delete."}),c.jsxs(q$,{sensors:f,collisionDetection:e$,onDragStart:g,onDragEnd:b,onDragCancel:()=>m(null),children:[c.jsx(vY,{items:n.map(S=>S.id),strategy:yx,children:c.jsx(YS,{children:n.map(S=>c.jsx(DY,{photo:S,onCover:()=>w(S),onDelete:()=>E(S)},S.id))})}),c.jsx(hY,{dropAnimation:{duration:200,easing:"cubic-bezier(0.22, 1, 0.36, 1)"},children:v&&c.jsx("div",{className:"aspect-square rounded-xl overflow-hidden shadow-2xl ring-2 ring-primary rotate-2 cursor-grabbing",children:c.jsx("img",{src:v.thumb_url,alt:"",className:"w-full h-full object-cover",draggable:!1})})})]})]})},YS=({children:e})=>c.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(8.5rem,1fr))] md:grid-cols-[repeat(auto-fill,minmax(11rem,1fr))] gap-3",children:e}),DY=({photo:e,onCover:t,onDelete:n})=>{const{attributes:a,listeners:s,setNodeRef:l,transform:u,transition:f,isDragging:h}=CY({id:e.id}),m={transform:no.Transform.toString(u),transition:f,touchAction:"manipulation",cursor:"grab"};return c.jsxs("div",{ref:l,style:m,...a,...s,className:be("aspect-square relative group rounded-xl overflow-hidden border-2 border-transparent bg-background focus-within:border-primary select-none img-outline",h&&"opacity-30 ring-2 ring-primary/40 ring-inset"),children:[c.jsx("img",{src:e.thumb_url,alt:e.caption??"",loading:"lazy",className:"w-full h-full object-cover select-none pointer-events-none",draggable:!1}),e.featured&&c.jsx("div",{className:"absolute top-2 left-2 bg-primary text-primary-foreground rounded-full p-1.5 pointer-events-none","aria-label":"Pinned photo",children:c.jsx(e6,{size:12,className:"fill-current"})}),c.jsx("div",{className:"absolute top-2 right-2 bg-black/40 text-white rounded-full p-1.5 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-opacity pointer-events-none",children:c.jsx(C3,{size:14})}),c.jsx("div",{className:"hidden md:flex absolute bottom-2 inset-x-0 justify-center opacity-0 group-hover:opacity-100 focus-within:opacity-100 transition-opacity",onPointerDown:v
398=>v.stopPropagation(),children:c.jsxs("div",{className:"flex items-center gap-0.5 rounded-full bg-black/60 backdrop-blur-md p-1 shadow-lg",children:[c.jsxs(Pd,{children:[c.jsx(Ld,{asChild:!0,children:c.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),t()},"aria-label":"Set as event cover",className:"w-8 h-8 rounded-full flex items-center justify-center text-white/90 hover:text-white hover:bg-white/15 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-white/70",children:c.jsx(jw,{size:15})})}),c.jsx(zd,{children:"Set as event cover"})]}),c.jsxs(Pd,{children:[c.jsx(Ld,{asChild:!0,children:c.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),n()},"aria-label":"Delete photo",className:"w-8 h-8 rounded-full flex items-center justify-center text-white/90 hover:text-white hover:bg-red-600/90 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-white/70",children:c.jsx(wd,{size:15})})}),c.jsx(zd,{children:"Delete"})]})]})}),c.jsxs(dA,{children:[c.jsx(fA,{asChild:!0,children:c.jsx(nt,{size:"icon-sm",variant:"secondary",className:"md:hidden absolute bottom-2 right-2 rounded-full bg-background","aria-label":"Photo actions",onPointerDown:v=>v.stopPropagation(),children:c.jsx(p3,{})})}),c.jsxs(hA,{align:"end",children:[c.jsx(kV,{children:"Photo"}),c.jsxs(Mg,{onClick:t,children:[c.jsx(jw,{})," Set as cover"]}),c.jsx(DV,{}),c.jsxs(Mg,{onClick:n,variant:"destructive",children:[c.jsx(wd,{})," Delete"]})]})]})]})},RY=6e3,OY=({initialEventId:e})=>{var ce;const[t,n]=x.useState(null),[a,s]=x.useState(new Set),[l,u]=x.useState(""),[f,h]=x.useState(e??"all"),[m,v]=x.useState(null),[g,b]=x.useState(!1),w=x.useCallback(async()=>{n(null);try{const U=await it.admin.photos.pending();n(U.photos),s(new Set)}catch(U){We.error(dn(U)),n([])}},[]);x.useEffect(()=>{w()},[w]);const[E,S]=x.useState(()=>{try{return localStorage.getItem("admin:lastReviewedAt")}catch{return null}}),j=x.useCallback(()=>{const U=new Date().toISOString();S(U);try{localStorage.setItem("admin:lastReviewedAt",U)}catch{}},[]),N=x.useMemo(()=>{const U=new Map;return(t??[]).forEach(Q=>{Q.event_title&&U.set(Q.event_id,Q.event_title)}),Array.from(U.entries()).map(([Q,le])=>({id:Q,title:le}))},[t]);x.useEffect(()=>{t===null||f==="all"||t.some(U=>U.event_id===f)||h("all")},[t,f]);const A=x.useMemo(()=>{const U=l.trim().toLowerCase();return(t??[]).filter(Q=>f!=="all"&&Q.event_id!==f?!1:U?`${Q.submitter_name??""} ${Q.caption??""} ${Q.event_title??""}`.toLowerCase().includes(U):!0)},[t,l,f]),k=x.useMemo(()=>{const U=new Map;return A.forEach(Q=>{U.has(Q.event_id)||U.set(Q.event_id,{title:Q.event_title??`Event #${Q.event_id}`,photos:[]}),U.get(Q.event_id).photos.push(Q)}),Array.from(U.entries()).map(([Q,le])=>({id:Q,title:le.title,photos:le.photos}))},[A]),T=U=>{s(Q=>{const le=new Set(Q);return le.has(U)?le.delete(U):le.add(U),le})},M=()=>s(new Set(A.map(U=>U.id))),_=()=>s(new Set),O=async U=>{if(U.length){b(!0);try{const Q=await it.admin.photos.moderate("approve",U);n(F=>(F??[]).filter(H=>!U.includes(H.id))),s(F=>{const H=new Set(F);return U.forEach(V=>H.delete(V)),H});const le=Q.updated??U.length;j(),We.success(`Approved ${le} photo${le!==1?"s":""}`,{duration:RY,action:{label:"Undo",onClick:async()=>{try{await it.admin.photos.moderate("unapprove",U),We.success("Reverted"),w()}catch(F){We.error(dn(F,"Undo failed"))}}}})}catch(Q){We.error(dn(Q))}finally{b(!1)}}},D=async(U,Q=!1)=>{if(U.length&&!(!Q&&!await ix(`Deny ${U.length} photo${U.length!==1?"s":""}?`,{description:"This deletes them permanently.",danger:!0}))){b(!0);try{const le=await it.admin.photos.moderate("deny",U);n(H=>(H??[]).filter(V=>!U.includes(V.id))),s(H=>{const V=new Set(H);return U.forEach(J=>V.delete(J)),V});const F=le.deleted??U.length;j(),We.success(`Removed ${F} photo${F!==1?"s":""}`)}catch(le){We.error(dn(le))}finally{b(!1)}}},L=U=>{const Q=A.findIndex(le=>le.id===U);Q>=0&&v(Q)},I=async()=>{if(m===null)return;const U=A[m];if(!U)return;const Q=A.length-1;await O([U.id]),v(Q<=0?null:Math.min(m,Q-1))},Z=async()=>{if(m===null)return;const U=A[m];if(!U)return;const Q=A.length-1;await D([U.id],!0),v(Q<=0?null:Math.min(m,Q-1))};return x.useEffect(()=>{if(m!==null){if(A.length===0){v(null);return}m>=A.length&&v(A.length-1)}},[A.length,m]),c.jsxs("div",{children:[c.jsxs("div",{className:"pb-5 border-b border-border mb-5",children:[c.jsx("h1",{className:"text-2xl md:text-3xl font-black text-foreground tracking-tight",children:"Moderation"}),c.jsxs("p",{className:"text-muted-foreground text-sm mt-1",children:["Photos parishioners shared, waiting for a volunteer's yes.",E&&c.jsxs("span",{className:"text-muted-foreground",children:[" Last reviewed ",Xo(E),"."]})]})]}),c.jsxs("div",{className:"flex items-center gap-2 mb-6 md:mb-2 flex-wrap",children:[c.jsxs("div",{className:"relative",children:[c.jsx(lc,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none z-10"}),c.jsx(Hn,{type:"search","aria-label":"Search pending photos",value:l,onCh
398ange:U=>u(U.target.value),placeholder:"Search by submitter or captionâ¦",className:"pl-9 w-56 sm:w-72 bg-card"})]}),c.jsxs(iA,{value:String(f),onValueChange:U=>h(U==="all"?"all":Number(U)),children:[c.jsx(cA,{className:"w-[200px] bg-card","aria-label":"Filter by event",children:c.jsx(lA,{children:f==="all"?"All events":((ce=N.find(U=>U.id===f))==null?void 0:ce.title)??"This event"})}),c.jsxs(uA,{children:[c.jsx(Ag,{value:"all",children:"All events"}),N.map(U=>c.jsx(Ag,{value:String(U.id),children:U.title},U.id))]})]}),A.length>0&&c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"text-muted-foreground text-xs ml-1 tnums",children:[A.length," shown"]}),c.jsx(nt,{variant:"ghost",size:"sm",onClick:M,className:"ml-auto text-xs font-bold text-ink-mid hover:text-foreground",children:"Select all"})]})]}),c.jsxs("p",{className:"hidden md:block text-muted-foreground text-xs mb-6",children:["Click a photo to preview â ",c.jsx(El,{children:"A"})," approve · ",c.jsx(El,{children:"D"})," deny · ",c.jsx(El,{children:"â"}),c.jsx(El,{children:"â"})," navigate. Drag across photos to select many; hold ",c.jsx(El,{children:"Shift"})," to add."]}),t===null?c.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(140px,1fr))] gap-3",children:Array.from({length:10}).map((U,Q)=>c.jsx("div",{className:"aspect-square rounded-xl bg-secondary animate-pulse"},Q))}):A.length===0?c.jsx(LY,{photosTotal:t.length,hasFilter:l!==""||f!=="all"}):c.jsx("div",{className:"space-y-10 pb-24",children:k.map(U=>c.jsxs("section",{children:[c.jsxs("header",{className:"flex items-center justify-between gap-2 mb-3 border-b border-black/5 pb-2",children:[c.jsxs("h2",{className:"text-foreground font-bold tracking-tight truncate",children:[U.title," ",c.jsxs("span",{className:"text-muted-foreground font-normal text-sm tnums",children:["â ",U.photos.length," pending"]})]}),c.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[c.jsx(nt,{variant:"ghost",size:"sm",onClick:()=>O(U.photos.map(Q=>Q.id)),disabled:g,className:"text-xs font-bold text-green-700 hover:text-green-900 hover:bg-green-50",children:"Approve all"}),c.jsx("span",{className:"text-muted-foreground",children:"·"}),c.jsx(nt,{variant:"ghost",size:"sm",onClick:()=>D(U.photos.map(Q=>Q.id)),disabled:g,className:"text-xs font-bold text-red-700 hover:text-red-900 hover:bg-red-50",children:"Deny all"})]})]}),c.jsx(_Y,{onMarqueeSelect:(Q,le)=>s(F=>{if(!le)return new Set(Q);const H=new Set(F);return Q.forEach(V=>H.add(V)),H}),children:U.photos.map(Q=>c.jsx(PY,{photo:Q,selected:a.has(Q.id),onToggle:()=>T(Q.id),onPreview:()=>L(Q.id)},Q.id))})]},U.id))}),c.jsx(va,{children:a.size>0&&c.jsx(st.div,{initial:{opacity:0,transform:"translateY(16px)"},animate:{opacity:1,transform:"translateY(0px)"},exit:{opacity:0,transform:"translateY(16px)",transition:{duration:.12,ease:"easeOut"}},transition:{duration:.2,ease:[.23,1,.32,1]},className:"fixed bottom-5 inset-x-0 z-40 flex justify-center px-4 pointer-events-none",children:c.jsxs("div",{className:"pointer-events-auto flex items-center gap-2 sm:gap-3 bg-foreground text-background rounded-full shadow-[0_16px_40px_-12px_rgba(44,34,24,0.5)] pl-5 pr-2 py-2",children:[c.jsxs("p",{className:"text-sm font-bold tnums whitespace-nowrap",children:[a.size," selected"]}),c.jsx("span",{className:"w-px h-5 bg-background/20","aria-hidden":!0}),c.jsxs(nt,{size:"sm",disabled:g,onClick:()=>O(Array.from(a)),className:"bg-green-700 hover:bg-green-800 text-white rounded-full",children:[c.jsx(so,{})," Approve"]}),c.jsxs(nt,{size:"sm",variant:"destructive",disabled:g,onClick:()=>D(Array.from(a)),className:"rounded-full",children:[c.jsx(LE,{})," Deny"]}),c.jsxs(nt,{size:"sm",variant:"ghost",onClick:_,"aria-label":"Clear selection",className:"rounded-full text-background/70 hover:text-background hover:bg-background/10",children:[c.jsx(Yr,{})," ",c.jsx("span",{className:"hidden sm:inline",children:"Clear"})]})]})})}),c.jsx(va,{initial:!1,children:m!==null&&A[m]&&c.jsx(zY,{photos:A,index:m,onClose:()=>v(null),onIndex:v,onApprove:I,onDeny:Z,busy:g})})]})},El=({children:e})=>c.jsx("kbd",{className:"px-1.5 py-0.5 bg-background border border-border rounded text-[11px] mx-0.5",children:e}),_Y=({onMarqueeSelect:e,children:t})=>{const n=x.useRef(null),[a,s]=x.useState(null),l=x.useRef(null),u=m=>{if(m.pointerType!=="mouse"||m.button!==0)return;const v=m.target;if(v.closest("[data-photo-id]")||v.closest('button, a, input, [role="button"]'))return;const g=n.current;if(!g)return;const b=g.getBoundingClientRect();l.current={startX:m.clientX-b.left,startY:m.clientY-b.top,additive:m.shiftKey,pointerId:m.pointerId},g.setPointerCapture(m.pointerId),s({x:l.current.startX,y:l.current.startY,w:0,h:0})},f=m=>{const v=l.current,g=n.current;if(!v||!g)return;const b=g.getBoundingClientRect(),w=m.clientX-b.left,E=m.clientY-b.top;s({x:Math.min(v.startX,w),y:Math.min(v.startY,E),w:Math.abs(w-v.startX),h:Math.abs(E-v.startY)})},h=m=>{const v=l.current,g=n.current;l.current=null;try{g==null||g.releasePointerCapture(m.pointerId)}catch{}if(!v||!g||!a){s(null);return}if(a.w<6&&a.h<6){s(null);return}const b=g.getBoundingClientRect(),w={left:b.left+a.x,top:b.top+a.y,right:b.left+a.x+a.w,bottom:b.top+a.y+a.h},E=[];g.querySelectorAll("[data-photo-id]").forEach(S=>{const j=S.getBoundingClientRect();if(j.right>w.left&&j.left<w.right&&j.bottom>w.top&&j.top<w.bottom){const A=Number(S.dataset.photoId);Number.isFinite(A)&&E.push(A)}}),E.length>0&&e(E,v.additive),s(null)};return c.jsxs("div",{ref:n,onPointerDown:u,onPointerMove:f,onPointerUp:h,onPointerCancel:()=>{l.current=null,s(null)},className:"relative grid grid-cols-[repeat(auto-fill,minmax(140px,1fr))] sm:grid-cols-[repeat(auto-fill,minmax(160px,1fr))] gap-3 select-none",children:[t,a&&a.w>4&&a.h>
3984&&c.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute border-2 border-primary bg-primary/10 rounded-md",style:{left:a.x,top:a.y,width:a.w,height:a.h}})]})},PY=({photo:e,selected:t,onToggle:n,onPreview:a})=>c.jsxs("div",{"data-photo-id":e.id,className:`relative group rounded-xl overflow-hidden border-2 transition-colors duration-150 ${t?"border-primary":"border-transparent hover:border-black/10"}`,children:[c.jsx("button",{type:"button",onClick:a,className:"block w-full text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/60","aria-label":`Preview photo from ${e.event_title}`,children:c.jsx("img",{src:e.thumb_url,alt:e.caption??"",loading:"lazy",className:"aspect-square w-full object-cover"})}),c.jsx("button",{type:"button",onClick:s=>{s.stopPropagation(),n()},"aria-pressed":t,"aria-label":t?"Deselect photo":"Select photo",className:`absolute top-2 left-2 rounded-full p-1.5 transition-colors focus-visible:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-white ${t?"bg-primary text-primary-foreground":"bg-black/40 hover:bg-black/60 text-white opacity-0 group-hover:opacity-100"}`,children:t?c.jsx(K3,{size:14}):c.jsx(Q3,{size:14})}),c.jsxs("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/85 to-transparent text-white text-xs p-2 pointer-events-none",children:[c.jsx("p",{className:"font-bold truncate",children:e.event_title}),e.submitter_name&&c.jsxs("p",{className:"text-white/70 truncate",children:["â ",e.submitter_name]}),e.caption&&c.jsxs("p",{className:"text-white/80 truncate italic",children:['"',e.caption,'"']}),c.jsx("p",{className:"text-white/60 text-[10px] mt-0.5",children:Xo(e.created_at)})]})]}),LY=({photosTotal:e,hasFilter:t})=>c.jsx("div",{className:"py-20 text-center",children:e===0?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"mx-auto w-11 h-11 rounded-full bg-green-50 border border-green-200 flex items-center justify-center mb-3",children:c.jsx(so,{className:"text-green-700",size:19})}),c.jsx("p",{className:"text-foreground font-bold",children:"All caught up"}),c.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"No photos waiting for review â parishioners will love the fresh Memories."})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"mx-auto w-11 h-11 rounded-full bg-background border border-border flex items-center justify-center mb-3",children:c.jsx(Vo,{className:"text-muted-foreground",size:19})}),c.jsx("p",{className:"text-foreground font-semibold",children:t?"Nothing matches your filter":"Nothing pending"}),c.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:t?"Adjust the search or event filter above.":"No photos waiting for review."})]})}),zY=({photos:e,index:t,onClose:n,onIndex:a,onApprove:s,onDeny:l,busy:u})=>{const f=x.useRef(null),h=x.useRef(null),m=e[t],v=x.useRef(!1);x.useEffect(()=>{v.current=!0},[]);const g=x.useCallback(()=>a((t-1+e.length)%e.length),[t,e.length,a]),b=x.useCallback(()=>a((t+1)%e.length),[t,e.length,a]);return x.useEffect(()=>{const w=E=>{E.target instanceof HTMLElement&&["INPUT","TEXTAREA","SELECT"].includes(E.target.tagName)||(E.key==="ArrowLeft"?g():E.key==="ArrowRight"?b():E.key==="a"||E.key==="A"?(E.preventDefault(),u||s()):(E.key==="d"||E.key==="D")&&(E.preventDefault(),u||l()))};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[n,g,b,s,l,u]),m?c.jsx(Tf,{open:!0,onOpenChange:w=>{w||n()},children:c.jsx(tA,{asChild:!0,"aria-describedby":void 0,onOpenAutoFocus:w=>{var E;w.preventDefault(),document.activeElement instanceof HTMLElement&&(h.current=document.activeElement),(E=f.current)==null||E.focus()},onCloseAutoFocus:w=>{var E;w.preventDefault(),(E=h.current)==null||E.focus()},children:c.jsxs(st.div,{initial:{opacity:0}
398,animate:{opacity:1},exit:{opacity:0,pointerEvents:"none",transition:{duration:.12}},transition:{duration:.18},className:"fixed inset-0 z-[100] bg-black/95 flex items-center justify-center p-4",onClick:n,children:[c.jsx(Af,{className:"sr-only",children:"Review photo"}),e.length>1&&c.jsxs("div",{className:"fixed top-4 left-4 z-10 text-white/70 text-sm bg-black/40 backdrop-blur-sm rounded-full px-3 py-1.5 tnums",children:[t+1," / ",e.length]}),c.jsx("button",{ref:f,onClick:w=>{w.stopPropagation(),n()},"aria-label":"Close",className:"fixed top-4 right-4 z-10 text-white/80 hover:text-white bg-black/40 hover:bg-black/60 rounded-full p-2 backdrop-blur-sm",children:c.jsx(Yr,{size:20})}),e.length>1&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:w=>{w.stopPropagation(),g()},"aria-label":"Previous photo",className:"fixed left-4 top-1/2 -translate-y-1/2 text-white/80 hover:text-white z-10 bg-black/40 hover:bg-black/60 rounded-full p-2 backdrop-blur-sm",children:c.jsx(oo,{size:28})}),c.jsx("button",{onClick:w=>{w.stopPropagation(),b()},"aria-label":"Next photo",className:"fixed right-4 top-1/2 -translate-y-1/2 text-white/80 hover:text-white z-10 bg-black/40 hover:bg-black/60 rounded-full p-2 backdrop-blur-sm",children:c.jsx(Ur,{size:28})})]}),c.jsx(st.img,{initial:v.current?!1:{opacity:0},animate:{opacity:1},transition:{duration:.12,ease:"easeOut"},src:m.full_url,alt:m.caption??"Photo for review",className:"max-w-full max-h-[80vh] object-contain rounded-xl shadow-2xl select-none",onClick:w=>w.stopPropagation(),draggable:!1},m.id),c.jsx("div",{className:"fixed inset-x-0 bottom-0 z-10 bg-gradient-to-t from-black/85 via-black/70 to-transparent text-white px-6 py-5",onClick:w=>w.stopPropagation(),children:c.jsxs("div",{className:"max-w-3xl mx-auto flex items-center justify-between gap-4 flex-wrap",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("p",{className:"font-bold truncate",children:m.event_title}),c.jsxs("p",{className:"text-white/70 text-sm truncate",children:[m.submitter_name?`Submitted by ${m.submitter_name}`:"Anonymous submitter"," · ",Xo(m.created_at)]}),m.caption&&c.jsxs("p",{className:"text-white/80 italic mt-1 line-clamp-2",children:['"',m.caption,'"']})]}),c.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c.jsxs("button",{onClick:()=>l(),disabled:u,className:"flex items-center gap-1.5 bg-red-700 hover:bg-red-800 text-white font-bold text-sm px-4 py-2.5 rounded-lg disabled:opacity-40",children:[c.jsx(LE,{size:15})," Deny ",c.jsx("kbd",{className:"ml-1 text-[10px] bg-black/30 px-1.5 py-0.5 rounded",children:"D"})]}),c.jsxs("button",{onClick:()=>s(),disabled:u,className:"flex items-center gap-1.5 bg-green-700 hover:bg-green-800 text-white font-bold text-sm px-4 py-2.5 rounded-lg disabled:opacity-40",children:[c.jsx(so,{size:15})," Approve ",c.jsx("kbd",{className:"ml-1 text-[10px] bg-black/30 px-1.5 py-0.5 rounded",children:"A"})]})]})]})})]})})}):null};function BY(e){return e<12?"Good morning":e<17?"Good afternoon":"Good evening"}const FY=({greetingName:e,onGoModeration:t,onOpenEvent:n,onNewEvent:a})=>{const[s,l]=x.useState(null),[u,f]=x.useState(null),[h,m]=x.useState(null),[v,g]=x.useState([]);x.useEffect(()=>{let A=!0;return it.admin.stats().then(k=>{A&&l(k)}).catch(()=>{A&&l(null)}),it.admin.events.list().then(k=>{A&&f(k.events)}).catch(()=>{A&&f([])}),it.admin.recent(12).then(k=>{A&&m(k.items)}).catch(()=>{A&&m([])}),it.admin.photos.pending().then(k=>{A&&g(k.photos.slice(0,5))}).catch(()=>{}),()=>{A=!1}},[]);const b=(s==null?void 0:s.totals.pending_photos)??0,w=x.useMemo(()=>(u??[]).filter(k=>k.status==="upcoming").sort((k,T)=>k.date.localeCompare(T.date))[0]??null,[u]),E=x.useMemo(()=>(u??[]).filter(k=>k.status==="past").sort((k,T)=>T.date.localeCompare(k.date))[0]??null,[u]),S=(s==null?void 0:s.uploads_14d)??[],j=S.reduce((A,k)=>A+k.count,0),N=Math.max(1,...S.map(A=>A.count));return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-end justify-between gap-4 flex-wrap pb-5 border-b border-border mb-6",children:[c.jsxs("div",{children:[c.jsxs("h1",{className:"text-2xl md:text-3xl font-black text-foreground tracking-tight",children:[BY(new Date().getHours()),", ",e]}),c.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:new Date().toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"})})]}),c.jsxs(nt,{onClick:a,children:[c.jsx(Gl,{})," New Event"]})]}),b>0?c.jsx(st.div,{initial:{opacity:0,y:8}
398,animate:{opacity:1,y:0},transition:{type:"spring",duration:.3,bounce:0},children:c.jsx("button",{type:"button",onClick:t,className:"w-full text-left bg-primary hover:bg-primary/90 transition-colors rounded-2xl p-5 md:p-6 mb-8 group focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",children:c.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[c.jsx("div",{className:"flex -space-x-3",children:v.length>0?v.map(A=>c.jsx("img",{src:A.thumb_url,alt:"",className:"w-11 h-11 rounded-lg object-cover border-2 border-primary shadow-md"},A.id)):c.jsx("span",{className:"w-11 h-11 rounded-lg bg-primary-foreground/15 border-2 border-primary flex items-center justify-center",children:c.jsx(Wl,{size:18,className:"text-primary-foreground"})})}),c.jsxs("div",{className:"flex-1 min-w-[180px]",children:[c.jsxs("p",{className:"text-primary-foreground font-black text-lg leading-tight",children:[c.jsx("span",{className:"tnums",children:b})," photo",b!==1?"s":""," waiting for review"]}),c.jsx("p",{className:"text-primary-foreground/75 text-sm mt-0.5",children:"Parishioners shared memories â publish them so everyone can relive the day."})]}),c.jsxs("span",{className:"flex items-center gap-2 text-primary-foreground text-xs font-black tracking-widest uppercase",children:["Review now ",c.jsx(si,{size:14,className:"group-hover:translate-x-1 transition-transform"})]})]})})}):s&&c.jsxs("div",{className:"flex items-center gap-2.5 pb-5 border-b border-border mb-8",children:[c.jsx(so,{size:16,className:"text-green-700 shrink-0"}),c.jsx("p",{className:"text-ink-mid text-sm",children:"Moderation queue is clear â nothing waiting for review."})]}),c.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-[minmax(0,1fr)_360px] 2xl:grid-cols-[minmax(0,1fr)_420px] gap-x-14 gap-y-12",children:[c.jsxs("div",{className:"min-w-0 space-y-12",children:[c.jsxs("section",{children:[c.jsx(Rp,{children:"This week"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[c.jsx(WS,{label:"Next up",loading:u===null,empty:u!==null&&!w,emptyText:"Nothing on the calendar. Plan the next zabava?",onEmptyAction:a,emptyActionText:"Create an event",children:w&&c.jsx(GS,{event:w,note:Xo(w.date),actionText:"Open workspace",onClick:()=>n(w.id)})}),c.jsx(WS,{label:"Latest memory",loading:u===null,empty:u!==null&&!E,emptyText:"No past events yet â memories will gather here.",children:E&&c.jsx(GS,{event:E,note:`${E.approved_count??0} photos published`,actionText:"Curate photos",onClick:()=>n(E.id)})})]})]}),c.jsxs("section",{children:[c.jsx(Rp,{children:"Parish ledger"}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-[repeat(4,minmax(0,1fr))_minmax(180px,1.6fr)] gap-y-6",children:[c.jsx(nd,{icon:c.jsx($r,{size:14}),label:"Events",value:s==null?void 0:s.totals.events}),c.jsx(nd,{icon:c.jsx(Kd,{size:14}),label:"Photos live",value:s==null?void 0:s.totals.approved_photos}),c.jsx(nd,{icon:c.jsx(Wl,{size:14}),label:"Pending",value:s==null?void 0:s.totals.pending_photos,warn:((s==null?void 0:s.totals.pending_photos)??0)>0}),c.jsx(nd,{icon:c.jsx(Qd,{size:14}),label:"Subscribers",value:s==null?void 0:s.totals.subscribers}),c.jsxs("div",{className:"col-span-2 md:col-span-4 lg:col-span-1 lg:border-l lg:border-border lg:pl-6",children:[c.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[c.jsx("p",{className:"text-muted-foreground text-[10px] font-bold tracking-[0.18em] uppercase",children:"14-day uploads"}),c.jsx("p",{className:"text-muted-foreground text-xs tnums",children:j})]}),S.length===0?c.jsx("p",{className:"text-muted-foreground text-sm mt-2",children:"No uploads yet."}):c.jsx("div",{className:"flex items-end gap-1 h-10 mt-2",role:"img","aria-label":`Photo uploads over the last 14 days: ${j} total`,children:S.map(A=>c.jsx("div",{className:"flex-1 flex flex-col justify-end",children:c.jsx("div",{className:be("rounded-sm",A.count>0?"bg-primary":"bg-secondary"),style:{height:A.count>0?`${Math.max(16,A.count/N*100)}%`:"5px"},title:`${A.date}: ${A.count}`})},A.date))})]})]})]})]}),c.jsxs("aside",{className:"min-w-0",children:[c.jsx(Rp,{children:"Recent activity"}),h===null?c.jsx("div",{className:"space-y-2",children:Array.from({length:4}).map((A,k)=>c.jsx("div",{className:"h-10 rounded-lg bg-secondary animate-pulse"},k))}):h.length===0?c.jsxs("div",{className:"py-6",children:[c.jsx(IE,{className:"text-muted-foreground mb-2",size:18}),c.jsx("p",{className:"text-muted-foreground text-sm",children:"Qu
398iet so far â activity will appear as photos come in."})]}):c.jsx(VY,{items:h,onOpenEvent:n})]})]})]})},Rp=({children:e})=>c.jsx("div",{className:"border-b border-border pb-2 mb-4",children:c.jsx("h2",{className:"text-foreground text-xs font-bold tracking-[0.2em] uppercase",children:e})}),WS=({label:e,loading:t,empty:n,emptyText:a,onEmptyAction:s,emptyActionText:l,children:u})=>c.jsxs("div",{children:[c.jsx("p",{className:"text-muted-foreground text-[10px] font-bold tracking-[0.2em] uppercase mb-2.5",children:e}),t?c.jsxs("div",{children:[c.jsx("div",{className:"aspect-[16/9] rounded-2xl bg-secondary animate-pulse"}),c.jsx("div",{className:"h-5 w-1/2 rounded bg-secondary animate-pulse mt-3.5"}),c.jsx("div",{className:"h-3.5 w-1/3 rounded bg-secondary animate-pulse mt-2"})]}):n?c.jsxs("div",{className:"aspect-[16/9] rounded-2xl border border-dashed border-black/12 flex flex-col items-center justify-center text-center px-6",children:[c.jsx("p",{className:"text-ink-mid text-sm",children:a}),s&&c.jsxs(nt,{variant:"link",onClick:s,className:"text-primary h-auto p-0 mt-2 text-xs font-bold",children:[c.jsx(Gl,{})," ",l]})]}):u]}),GS=({event:e,note:t,actionText:n,onClick:a})=>{const s=Sc(e.type);return c.jsxs("button",{type:"button",onClick:a,className:"w-full text-left group rounded-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:[c.jsx("div",{className:"aspect-[16/9] rounded-2xl overflow-hidden img-outline bg-secondary text-muted-foreground flex items-center justify-center",children:e.cover_image?c.jsx("img",{src:e.cover_image,alt:"",className:"w-full h-full object-cover group-hover:scale-[1.03] transition-transform duration-300 ease-out"}):c.jsx(s.Icon,{size:36,strokeWidth:1.5})}),c.jsxs("div",{className:"mt-3.5",children:[c.jsx("p",{className:"text-foreground font-black text-lg md:text-xl leading-snug tracking-tight line-clamp-2 group-hover:text-primary transition-colors",children:e.title}),c.jsxs("div",{className:"mt-1 flex items-baseline justify-between gap-4",children:[c.jsxs("p",{className:"text-muted-foreground text-sm tnums truncate",children:[lx(e.date),t&&c.jsxs(c.Fragment,{children:[" · ",c.jsx("span",{className:"text-ink-mid",children:t})]})]}),c.jsxs("span",{className:"shrink-0 flex items-center gap-1.5 text-primary text-[11px] font-black tracking-widest uppercase whitespace-nowrap",children:[n," ",c.jsx(si,{size:12,className:"group-hover:translate-x-1 transition-transform"})]})]})]})]})},nd=({icon:e,label:t,value:n,warn:a})=>c.jsxs("div",{className:"pr-4 lg:pr-6 lg:border-l lg:border-border lg:pl-6 lg:first:border-l-0 lg:first:pl-0",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[c.jsx("span",{className:a?"text-amber-700":"text-primary",children:e}),c.jsx("p",{className:"text-[10px] font-bold tracking-[0.18em] uppercase",children:t})]}),c.jsx("p",{className:be("text-3xl font-black tracking-tight mt-1 tnums",a?"text-amber-700":"text-foreground"),children:n===void 0?"â":n})]}),VY=({items:e,onOpenEvent:t})=>{const n=x.useMemo(()=>{const s=new Map;return e.forEach(l=>{const u=oV(l.at);s.set(u,[...s.get(u)??[],l])}),["today","yesterday","this_week","older"].filter(l=>s.has(l)).map(l=>({bucket:l,items:s.get(l)}))},[e]),a=s=>s==="submission"?"shared photos for":s==="approval"?"photos published to":"event created:";return c.jsx("div",{className:"space-y-5",children:n.map(s=>c.jsxs("div",{children:[c.jsx("p",{className:"text-muted-foreground text-[10px] font-bold tracking-[0.18em] uppercase mb-1.5",children:sV[s.bucket]}),c.jsx("div",{className:"space-y-0.5",children:s.items.map((l,u)=>c.jsxs("button",{type:"button",onClick:()=>t(l.event_id),className:"w-full flex items-center gap-3 rounded-lg px-2 py-1.5 -mx-2 hover:bg-card transition-colors text-left group focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",children:[l.thumb_url?c.jsx("img",{src:l.thumb_url,alt:"",className:"w-8 h-8 rounded-md object-cover img-outline shrink-0"}):c.jsx("span",{className:"w-8 h-8 rounded-md bg-secondary flex items-center justify-center shrink-0",children:c.jsx($r,{size:13,className:"text-muted-foreground"})}),c.jsxs("p",{className:"text-sm text-ink-mid truncate flex-1",children:[l.submitter_name&&c.jsxs("span",{className:"font-semibold text-foreground",children:[l.submitter_name," "]}),a(l.kind)," ",c.jsx("span",{className:"font-semibold text-foreground group-hover:text-primary transition-colors",children:l.event_title})]}),c.jsx("span",{className:"text-muted-foreground text-[11px] shrink-0",children:Xo(l.at)})]},`${l.kind}-${l.photo_id??l.event_id}-${u}`))})]},s.bucket))})},UY=({eventId:e,currentUrl:t,onPick:n,onClose:a})=>
398{const[s,l]=x.useState(null),[u,f]=x.useState("");x.useEffect(()=>{let m=!1;return(async()=>{try{const v=await it.admin.photos.list(e,"approved");m||l(v.photos)}catch(v){m||(We.error(dn(v)),l([]))}})(),()=>{m=!0}},[e]);const h=m=>{m&&(n(m),We.success("Cover image set"),a())};return c.jsx(Tf,{open:!0,onOpenChange:m=>{m||a()},children:c.jsxs(eA,{className:"max-w-3xl max-h-[88vh] overflow-y-auto overscroll-contain",children:[c.jsxs(nA,{children:[c.jsx(Af,{className:"text-xl font-black text-foreground",children:"Choose a cover image"}),c.jsx(rA,{children:"Pick from this event's approved photos, or paste a URL."})]}),s===null?c.jsx("div",{className:"columns-3 md:columns-4 gap-3 space-y-3",children:Array.from({length:8}).map((m,v)=>c.jsx("div",{className:"break-inside-avoid rounded-xl bg-secondary animate-pulse",style:{aspectRatio:v%2?"3 / 4":"4 / 3"}},v))}):s.length===0?c.jsxs("div",{className:"bg-background border border-dashed border-border rounded-2xl p-8 text-center",children:[c.jsx(Vo,{className:"mx-auto text-muted-foreground mb-3",size:24}),c.jsx("p",{className:"text-foreground font-semibold",children:"No approved photos yet for this event."}),c.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Upload some, or paste a URL below."})]}):c.jsx("div",{className:"columns-3 md:columns-4 gap-3 space-y-3",children:s.map(m=>{const v=t&&t===m.full_url,g=m.width&&m.height?`${m.width} / ${m.height}`:"4 / 3";return c.jsxs("button",{onClick:()=>h(m.full_url),className:be("break-inside-avoid relative block w-full overflow-hidden rounded-xl border-2 transition-colors duration-150 img-outline",v?"border-primary":"border-transparent hover:border-primary/40"),style:{aspectRatio:g},"aria-label":m.caption??`Use photo ${m.id} as cover`,children:[c.jsx("img",{src:m.thumb_url,alt:m.caption??"",loading:"lazy",className:"w-full h-full object-cover"}),v&&c.jsx("div",{className:"absolute top-2 right-2 bg-primary text-primary-foreground rounded-full p-1",children:c.jsx(PE,{size:12})})]},m.id)})}),c.jsx(sA,{className:"my-4"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-foreground text-xs font-bold tracking-widest uppercase mb-2",children:"Or paste a CDN URL"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Hn,{type:"url","aria-label":"Cover image URL",value:u,onChange:m=>f(m.target.value),placeholder:"https://res.cloudinary.com/â¦",className:"flex-1"}),c.jsx(nt,{onClick:()=>h(u.trim()),disabled:!u.trim(),children:"Use"})]})]})]})})};var qS=1,IY=.9,HY=.8,$Y=.17,Op=.1,_p=.999,YY=.9999,WY=.99,GY=/[\\\/_+.#"@\[\(\{&]/,qY=/[\\\/_+.#"@\[\(\{&]/g,XY=/[\s-]/,hM=/[\s-]/g;function Pg(e,t,n,a,s,l,u){if(l===t.length)return s===e.length?qS:WY;var f=`${s},${l}`;if(u[f]!==void 0)return u[f];for(var h=a.charAt(l),m=n.indexOf(h,s),v=0,g,b,w,E;m>=0;)g=Pg(e,t,n,a,m+1,l+1,u),g>v&&(m===s?g*=qS:GY.test(e.charAt(m-1))?(g*=HY,w=e.slice(s,m-1).match(qY),w&&s>0&&(g*=Math.pow(_p,w.length))):XY.test(e.charAt(m-1))?(g*=IY,E=e.slice(s,m-1).match(hM),E&&s>0&&(g*=Math.pow(_p,E.length))):(g*=$Y,s>0&&(g*=Math.pow(_p,m-s))),e.charAt(m)!==t.charAt(l)&&(g*=YY)),(g<Op&&n.charAt(m-1)===a.charAt(l+1)||a.charAt(l+1)===a.charAt(l)&&n.charAt(m-1)!==a.charAt(l))&&(b=Pg(e,t,n,a,m+1,l+2,u),b*Op>g&&(g=b*Op)),g>v&&(v=g),m=n.indexOf(h,m+1);return u[f]=v,v}function XS(e){return e.toLowerCase().replace(hM," ")}function KY(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Pg(e,t,XS(e),XS(t),0,0,{})}var Cl='[cmdk-group=""]',Pp='[cmdk-group-items=""]',ZY='[cmdk-group-heading=""]',mM='[cmdk-item=""]',KS=`${mM}:not([aria-disabled="true"])`,Lg="cmdk-item-select",zs="data-value",QY=(e,t,n)=>KY(e,t,n),pM=x.createContext(void 0),kc=()=>x.useContext(pM),gM=x.createContext(void 0),bx=()=>x.useContext(gM),vM=x.createContext(void 0),xM=x.forwardRef((e,t)=>{let n=Bs(()=>{var Y,G;return{search:"",value:(G=(Y=e.value)!=null?Y:e.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=Bs(()=>new Set),s=Bs(()=>new Map),l=Bs(()=>new Map),u=Bs(()=>new Set),f=yM(e),{label:h,children:m,value:v,onValueChange:g,filter:b,shouldFilter:w,loop:E,disablePointerSelection:S=!1,vimBindings:j=!0,...
vendor: 8,369 bytes, line 398
398N}=e,A=tn(),k=tn(),T=tn(),M=x.useRef(null),_=cW();Yo(()=>{if(v!==void 0){let Y=v.trim();n.current.value=Y,O.emit()}},[v]),Yo(()=>{_(6,U)},[]);let O=x.useMemo(()=>({subscribe:Y=>(u.current.add(Y),()=>u.current.delete(Y)),snapshot:()=>n.current,setState:(Y,G,X)=>{var ne,se,re,ie;if(!Object.is(n.current[Y],G)){if(n.current[Y]=G,Y==="search")ce(),I(),_(1,Z);else if(Y==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let pe=document.getElementById(T);pe?pe.focus():(ne=document.getElementById(A))==null||ne.focus()}if(_(7,()=>{var pe;n.current.selectedItemId=(pe=Q())==null?void 0:pe.id,O.emit()}),X||_(5,U),((se=f.current)==null?void 0:se.value)!==void 0){let pe=G??"";(ie=(re=f.current).onValueChange)==null||ie.call(re,pe);return}}O.emit()}},emit:()=>{u.current.forEach(Y=>Y())}}),[]),D=x.useMemo(()=>({value:(Y,G,X)=>{var ne;G!==((ne=l.current.get(Y))==null?void 0:ne.value)&&(l.current.set(Y,{value:G,keywords:X}),n.current.filtered.items.set(Y,L(G,X)),_(2,()=>{I(),O.emit()}))},item:(Y,G)=>(a.current.add(Y),G&&(s.current.has(G)?s.current.get(G).add(Y):s.current.set(G,new Set([Y]))),_(3,()=>{ce(),I(),n.current.value||Z(),O.emit()}),()=>{l.current.delete(Y),a.current.delete(Y),n.current.filtered.items.delete(Y);let X=Q();_(4,()=>{ce(),(X==null?void 0:X.getAttribute("id"))===Y&&Z(),O.emit()})}),group:Y=>(s.current.has(Y)||s.current.set(Y,new Set),()=>{l.current.delete(Y),s.current.delete(Y)}),filter:()=>f.current.shouldFilter,label:h||e["aria-label"],getDisablePointerSelection:()=>f.current.disablePointerSelection,listId:A,inputId:T,labelId:k,listInnerRef:M}),[]);function L(Y,G){var X,ne;let se=(ne=(X=f.current)==null?void 0:X.filter)!=null?ne:QY;return Y?se(Y,n.current.search,G):0}function I(){if(!n.current.search||f.current.shouldFilter===!1)return;let Y=n.current.filtered.items,G=[];n.current.filtered.groups.forEach(ne=>{let se=s.current.get(ne),re=0;se.forEach(ie=>{let pe=Y.get(ie);re=Math.max(pe,re)}),G.push([ne,re])});let X=M.current;le().sort((ne,se)=>{var re,ie;let pe=ne.getAttribute("id"),fe=se.getAttribute("id");return((re=Y.get(fe))!=null?re:0)-((ie=Y.get(pe))!=null?ie:0)}).forEach(ne=>{let se=ne.closest(Pp);se?se.appendChild(ne.parentElement===se?ne:ne.closest(`${Pp} > *`)):X.appendChild(ne.parentElement===X?ne:ne.closest(`${Pp} > *`))}),G.sort((ne,se)=>se[1]-ne[1]).forEach(ne=>{var se;let re=(se=M.current)==null?void 0:se.querySelector(`${Cl}[${zs}="${encodeURIComponent(ne[0])}"]`);re==null||re.parentElement.appendChild(re)})}function Z(){let Y=le().find(X=>X.getAttribute("aria-disabled")!=="true"),G=Y==null?void 0:Y.getAttribute(zs);O.setState("value",G||void 0)}function ce(){var Y,G,X,ne;if(!n.current.search||f.current.shouldFilter===!1){n.current.filtered.count=a.current.size;return}n.current.filtered.groups=new Set;let se=0;for(let re of a.current){let ie=(G=(Y=l.current.get(re))==null?void 0:Y.value)!=null?G:"",pe=(ne=(X=l.current.get(re))==null?void 0:X.keywords)!=null?ne:[],fe=L(ie,pe);n.current.filtered.items.set(re,fe),fe>0&&se++}for(let[re,ie]of s.current)for(let pe of ie)if(n.current.filtered.items.get(pe)>0){n.current.filtered.groups.add(re);break}n.current.filtered.count=se}function U(){var Y,G,X;let ne=Q();ne&&(((Y=ne.parentElement)==null?void 0:Y.firstChild)===ne&&((X=(G=ne.closest(Cl))==null?void 0:G.querySelector(ZY))==null||X.scrollIntoView({block:"nearest"})),ne.scrollIntoView({block:"nearest"}))}function Q(){var Y;return(Y=M.current)==null?void 0:Y.querySelector(`${mM}[aria-selected="true"]`)}function le(){var Y;return Array.from(((Y=M.current)==null?void 0:Y.querySelectorAll(KS))||[])}function F(Y){let G=le()[Y];G&&O.setState("value",G.getAttribute(zs))}function H(Y){var G;let X=Q(),ne=le(),se=ne.findIndex(ie=>ie===X),re=ne[se+Y];(G=f.current)!=null&&G.loop&&(re=se+Y<0?ne[ne.length-1]:se+Y===ne.length?ne[0]:ne[se+Y]),re&&O.setState("value",re.getAttribute(zs))}function V(Y){let G=Q(),X=G==null?void 0:G.closest(Cl),ne;for(;X&&!ne;)X=Y>0?iW(X,Cl):lW(X,Cl),ne=X==null?void 0:X.querySelector(KS);ne?O.setState("value",ne.getAttribute(zs)):H(Y)}let J=()=>F(le().length-1),P=Y=>{Y.preventDefault(),Y.metaKey?J():Y.altKey?V(1):H(1)},te=Y=>{Y.preventDefault(),Y.metaKey?F(0):Y.altKey?V(-1):H(-1)};return x.createElement(Ce.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:Y=>{var G;(G=N.onKeyDown)==null||G.call(N,Y);let X=Y.nativeEvent.isComposing||Y.keyCode===229;if(!(Y.defaultPrevented||X))switch(Y.key){case"n":case"j":{j&&Y.ctrlKey&&P(Y);break}case"ArrowDown":{P(Y);break}case"p":case"k":{j&&Y.ctrlKey&&te(Y);break}case"ArrowUp":{te(Y);break}case"Home":{Y.preventDefault(),F(0);break}case"End":{Y.preventDefault(),J();break}case"Enter":{Y.preventDefault();let ne=Q();if(ne){let se=new Event(Lg);ne.dispatchEvent(se)}}}}},x.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:dW},h),Lf(e,Y=>x.createElement(gM.Provider,{value:O},x.createElement(pM.Provider,{value:D},Y))))}),JY=x.forwardRef((e,t)=>{var n,a;let s=tn(),l=x.useRef(null),u=x.useContext(vM),f=kc(),h=yM(e),m=(a=(n=h.current)==null?void 0:n.forceMount)!=null?a:u==null?void 0:u.forceMount;Yo(()=>{if(!m)return f.item(s,u==null?void 0:u.id)},[m]);let v=bM(s,l,[e.value,e.children,l],e.keywords),g=bx(),b=ro(_=>_.value&&_.value===v.current),w=ro(_=>m||f.filter()===!1?!0:_.search?_.filtered.items.get(s)>0:!0);x.useEffect(()=>{let _=l.current;if(!(!_||e.disabled))return _.addEventListener(Lg,E),()=>_.removeEventListener(Lg,E)},[w,e.onSelect,e.disabled]);function E(){var _,O;S(),(O=(_=h.current).onSelect)==null||O.call(_,v.current)}function S(){g.setState("value",v.current,!0)}if(!w)return null;let{disabled:j,value:N,onSelect:A,forceMount:k,keywords:T,...M}=e;return x.createElement(Ce.div,{ref:ya(l,t),...M,id:s,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!b,"data-disabled":!!j,"data-selected":!!b,onPointerMove:j||f.getDisablePointerSelection()?void 0:S,onClick:j?void 0:E},e.children)}),eW=x.forwardRef((e,t)=>{let{heading:n,children:a,forceMount:s,...l}=e,u=tn(),f=x.useRef(null),h=x.useRef(null),m=tn(),v=kc(),g=ro(w=>s||v.filter()===!1?!0:w.search?w.filtered.groups.has(u):!0);Yo(()=>v.group(u),[]),bM(u,f,[e.value,e.heading,h]);let b=x.useMemo(()=>({id:u,forceMount:s}),[s]);return x.createElement(Ce.div,{ref:ya(f,t),...l,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},n&&x.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:m},n),Lf(e,w=>x.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?m:void 0},x.createElement(vM.Provider,{value:b},w))))}),tW=x.forwardRef((e,t)=>{let{alwaysRender:n,...a}=e,s=x.useRef(null),l=ro(u=>!u.search);return!n&&!l?null:x.createElement(Ce.div,{ref:ya(s,t),...a,"cmdk-separator":"",role:"separator"})}),nW=x.forwardRef((e,t)=>{let{onValueChange:n,...a}=e,s=e.value!=null,l=bx(),u=ro(m=>m.search),f=ro(m=>m.selectedItemId),h=kc();return x.useEffect(()=>{e.value!=null&&l.setState("search",e.value)},[e.value]),x.createElement(Ce.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":f,id:h.inputId,type:"text",value:s?e.value:u,onChange:m=>{s||l.setState("search",m.target.value),n==null||n(m.target.value)}})}),rW=x.forwardRef((e,t)=>{let{children:n,label:a="Suggestions",...s}=e,l=x.useRef(null),u=x.useRef(null),f=ro(m=>m.selectedItemId),h=kc();return x.useEffect(()=>{if(u.current&&l.current){let m=u.current,v=l.current,g,b=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let w=m.offsetHeight;v.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return b.observe(m),()=>{cancelAnimationFrame(g),b.unobserve(m)}}},[]),x.createElement(Ce.div,{ref:ya(l,t),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":f,"aria-label":a,id:h.listId},Lf(e,m=>x.createElement("div",{ref:ya(u,h.listInnerRef),"cmdk-list-sizer":""},m)))}),aW=x.forwardRef((e,t)=>{let{open:n,onOpenChange:a,overlayClassName:s,contentClassName:l,container:u,...f}=e;return x.createElement(dc,{open:n,onOpenChange:a},x.createElement(fc,{container:u},x.createElement(hc,{"cmdk-overlay":"",className:s}),x.createElement(ci,{"aria-label":e.label,"cmdk-dialog":"",className:l},x.createElement(xM,{ref:t,...f}))))}),oW=x.forwardRef((e,t)=>
398ro(n=>n.filtered.count===0)?x.createElement(Ce.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),sW=x.forwardRef((e,t)=>{let{progress:n,children:a,label:s="Loading...",...l}=e;return x.createElement(Ce.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},Lf(e,u=>x.createElement("div",{"aria-hidden":!0},u)))}),Ko=Object.assign(xM,{List:rW,Item:JY,Input:nW,Group:eW,Separator:tW,Dialog:aW,Empty:oW,Loading:sW});function iW(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function lW(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function yM(e){let t=x.useRef(e);return Yo(()=>{t.current=e}),t}var Yo=typeof window>"u"?x.useEffect:x.useLayoutEffect;function Bs(e){let t=x.useRef();return t.current===void 0&&(t.current=e()),t}function ro(e){let t=bx(),n=()=>e(t.snapshot());return x.useSyncExternalStore(t.subscribe,n,n)}function bM(e,t,n,a=[]){let s=x.useRef(),l=kc();return Yo(()=>{var u;let f=(()=>{var m;for(let v of n){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(m=v.current.textContent)==null?void 0:m.trim():s.current}})(),h=a.map(m=>m.trim());l.value(e,f,h),(u=t.current)==null||u.setAttribute(zs,f),s.current=f}),s}var cW=()=>{let[e,t]=x.useState(),n=Bs(()=>new Map);return Yo(()=>{n.current.forEach(a=>a()),n.current=new Map},[e]),(a,s)=>{n.current.set(a,s),t({})}};function uW(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Lf({asChild:e,children:t},n){return e&&x.isValidElement(t)?x.cloneElement(uW(t),{ref:t.ref},n(t.props.children)):n(t)}var dW={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function fW({className:e,...t}){return c.jsx(Ko,{"data-slot":"command",className:be("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})}function hW({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:a,showCloseButton:s=!0,...l}){return c.jsxs(Tf,{...l,children:[c.jsxs(nA,{className:"sr-only",children:[c.jsx(Af,{children:e}),c.jsx(rA,{children:t})]}),c.jsx(eA,{className:be("overflow-hidden p-0",a),showCloseButton:s,children:c.jsx(fW,{className:"**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function mW({className:e,...t}){return c.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[c.jsx(lc,{className:"size-4 shrink-0 opacity-50"}),c.jsx(Ko.Input,{"data-slot":"command-input",className:be("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function pW({className:e,...t}){return c.jsx(Ko.List,{"data-slot":"command-list",className:be("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function gW({...e}){return c.jsx(Ko.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function ZS({className:e,...t}){return c.jsx(Ko.Group,{"data-slot":"command-group",className:be("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})}function vW({className:e,...t}){return c.jsx(Ko.Separator,{"data-slot":"command-separator",className:be("-mx-1 h-px bg-border",e),...t})}function wM({className:e,...t}){return c.jsx(Ko.Item,{"data-slot":"command-item",className:be("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...t})}function xW({className:e,...t}){return c.jsx("span",{"data-slot":"command-shortcut",className:be("ml-auto text-xs tracking-widest text-muted-foreground",e),...t})}const yW=({open:e,onClose:t,onNavigate:n,onOpenEvent:a})=>{const[s,l]=x.useState([]);return x.useEffect(()=>{!e||s.length||it.admin.events.list().then(u=>l(u.events)).catch(()=>{})},[e,s.length]),c.jsxs(hW,{open:e,onOpenChange:u=>{u||t()},title:"Admin commands",description:"Jump to a section or event",className:"data-[state=open]:animate-none data-[state=closed]:animate-none",children:[c.jsx(mW,{placeholder:"Jump to an event or sectionâ¦"}),c.jsxs(pW,{className:"max-h-[60vh]",children:[c.jsx(gW,{children:"No matches."}),c.jsxs(ZS,{heading:"Navigate",children:[c.jsx(Lp,{icon:c.jsx(Sv,{size:14}),label:"Dashboard",onSelect:()=>{n("dashboard"),t()}}),c.jsx(Lp,{icon:c.jsx($r,{size:14}),label:"Events & Memories",onSelect:()=>{n("events"),t()}}),c.jsx(Lp,{icon:c.jsx(Wl,{size:14}),label:"Moderation",onSelect:()=>{n("moderation"),t()}})]}),s.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(vW,{}),c.jsx(ZS,{heading:"Events",children:s.map(u=>{const f=Sc(u.type);return c.jsxs(wM,{value:`${u.title} ${u.type} ${u.date} ${u.subtitle??""}`,onSelect:()=>{a(u.id),t()},className:"gap-3",children:[c.jsx("div",{className:be("shrink-0 w-9 h-9 rounded-lg overflow-hidden flex items-center justify-center",f.placeholder),children:u.cover_image?c.jsx("img",{src:u.cover_image,alt:"",className:"w-full h-full object-cover"}):c.jsx(f.Icon,{size:16})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("p",{className:"font-semibold truncate text-foreground",children:u.title}),c.jsxs("p",{className:"text-muted-foreground text-xs",children:[lx(u.date)," · ",f.label]})]}),c.jsx(si,{size:12,className:"text-muted-foreground"})]},u.id)})})]})]}),c.jsxs("div",{className:"border-t border-border px-4 py-2 text-muted-foreground text-[11px] flex items-center justify-between",children:[c.jsx("span",{children:"Enter to open · Esc to close"}),c.jsx(xW,{children:"âK"})]})]})},Lp=({icon:e,label:t,onSelect:n})=>c.jsxs(wM,{value:`nav ${t}`,onSelect:n,className:"gap-2.5",children:[c.jsx("span",{className:"text-primary",children:e})," ",t]}),bW=()=>
398{const[e,t]=x.useState(null),[n,a]=x.useState(!0);return x.useEffect(()=>{(async()=>{try{const s=await it.admin.me();t(s.admin)}catch{t(null)}finally{a(!1)}})()},[]),n?c.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center text-muted-foreground text-sm",children:"Loading adminâ¦"}):c.jsx(YD,{reducedMotion:"user",children:c.jsxs(pV,{delayDuration:300,children:[e?c.jsx(SW,{admin:e,onLogout:()=>t(null)}):c.jsx(wW,{onLogin:t}),c.jsx(nV,{})]})})},wW=({onLogin:e})=>{const[t,n]=x.useState(""),[a,s]=x.useState(""),[l,u]=x.useState(!1),f=x.useRef(null);x.useEffect(()=>{var m;(m=f.current)==null||m.focus()},[]);const h=async m=>{m.preventDefault(),u(!0);try{const v=await it.admin.login(t.trim(),a);We.success(`Welcome, ${v.admin.name??v.admin.email}`),e(v.admin)}catch(v){We.error(dn(v,"Login failed"))}finally{u(!1)}};return c.jsx("div",{className:"admin-root min-h-screen bg-background flex items-center justify-center px-6",children:c.jsx(st.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{type:"spring",duration:.35,bounce:0},className:"w-full max-w-md",children:c.jsx(dV,{className:"border-border shadow-[0_18px_50px_-24px_rgba(44,34,24,0.35)]",children:c.jsx(fV,{className:"p-8",children:c.jsxs("form",{onSubmit:h,children:[c.jsx("div",{className:"w-10 h-10 bg-primary rounded-lg flex items-center justify-center text-primary-foreground mb-5",children:c.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 22 22",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round","aria-hidden":!0,children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"20"}),c.jsx("line",{x1:"4",y1:"7",x2:"18",y2:"7"})]})}),c.jsx("h1",{className:"text-2xl font-black text-foreground tracking-tight mb-1",children:"St. Mary's Admin"}),c.jsx("p",{className:"text-muted-foreground text-sm mb-6",children:"Events, Memories & photo moderation â parish staff only."}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx(ni,{htmlFor:"login-email",className:"text-foreground text-xs font-bold tracking-widest uppercase mb-1.5",children:"Email"}),c.jsx(Hn,{id:"login-email",ref:f,type:"email",required:!0,spellCheck:!1,value:t,onChange:m=>n(m.target.value),autoComplete:"username"})]}),c.jsxs("div",{children:[c.jsx(ni,{htmlFor:"login-password",className:"text-foreground text-xs font-bold tracking-widest uppercase mb-1.5",children:"Password"}),c.jsx(Hn,{id:"login-password",type:"password",required:!0,value:a,onChange:m=>s(m.target.value),autoComplete:"current-password"})]})]}),c.jsx(nt,{type:"submit",disabled:l,size:"lg",className:"mt-6 w-full font-black tracking-widest uppercase",children:l?"Signing inâ¦":"Sign In"})]})})})})})},SW=({admin:e,onLogout:t})=>{var k;const[n,a]=x.useState({t:"dashboard"}),[s,l]=x.useState(null),[u,f]=x.useState(0),[h,m]=x.useState(!1),[v,g]=x.useState(!1),b=x.useCallback(async()=>{try{const T=await it.admin.events.list();l(T.events)}catch(T){We.error(dn(T)),l([])}},[]);x.useEffect(()=>{b()},[b]),x.useEffect(()=>{let T=!0;const M=()=>it.admin.stats().then(O=>{T&&f(O.totals.pending_photos)}).catch(()=>{});M();const _=window.setInterval(M,3e4);return()=>{T=!1,window.clearInterval(_)}},[n]),x.useEffect(()=>{const T=M=>{(M.metaKey||M.ctrlKey)&&M.key.toLowerCase()==="k"&&(M.preventDefault(),g(_=>!_))};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[]);const w=async()=>{try{await it.admin.logout(),We.success("Signed out")}catch{}t()},E=T=>{a(T),m(!1)},S=n.t==="event"?(s??[]).find(T=>T.id===n.id)??null:null,j=n.t==="event-edit"?(s??[]).find(T=>T.id===n.id)??null:null,N=c.jsx(EW,{admin:e,view:n,pendingCount:u,onNavigate:E,onLogout:w,onOpenPalette:()=>g(!0)}),A=n.t==="event"?`event-${n.id}`:n.t==="event-edit"?`event-edit-${n.id}`:n.t;return c.jsxs("div",{className:"admin-root min-h-screen bg-background",children:[c.jsx("a",{href:"#admin-main",className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[200] focus:bg-foreground focus:text-background focus:px-3 focus:py-1.5 focus:rounded-lg focus:text-sm",children:"Skip to content"}),c.jsx("header",{className:"md:hidden border-b border-border bg-card sticky top-0 z-30",children:c.jsxs("div",{className:"px-4 py-3 flex items-center justify-between gap-3",children:[c.jsxs(nt,{variant:"ghost",size:"icon",onClick:()=>m(!0),"aria-label":"Open menu",className:"relative",children:[c.jsx(UE,{}),u>
3980&&c.jsx("span",{"aria-hidden":!0,className:"absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-amber-600"})]}),c.jsx("span",{className:"text-primary font-black tracking-widest text-xs uppercase",children:"St. Mary's · Admin"}),c.jsx(nt,{variant:"ghost",size:"icon",onClick:()=>g(!0),"aria-label":"Open command palette",children:c.jsx(u3,{})})]})}),c.jsx(gV,{open:h,onOpenChange:m,children:c.jsxs(yV,{side:"left",className:"w-72 p-0 bg-sidebar",children:[c.jsx(bV,{className:"sr-only",children:"Navigation"}),N]})}),c.jsxs("div",{className:"md:flex",children:[c.jsx("aside",{className:"hidden md:flex xl:hidden md:flex-col md:sticky md:top-0 md:h-screen md:w-16 md:shrink-0 bg-sidebar border-r border-sidebar-border",children:c.jsx(CW,{view:n,pendingCount:u,onNavigate:E,onLogout:w,onOpenPalette:()=>g(!0)})}),c.jsx("aside",{className:"hidden xl:flex xl:flex-col xl:sticky xl:top-0 xl:h-screen xl:w-60 xl:shrink-0 bg-sidebar border-r border-sidebar-border",children:N}),c.jsx("main",{id:"admin-main",className:"flex-1 min-w-0",children:c.jsx("div",{className:"px-4 sm:px-6 lg:px-10 2xl:px-14 py-6 md:py-8 lg:py-10",children:c.jsxs(st.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{type:"spring",duration:.18,bounce:0},children:[n.t==="dashboard"&&c.jsx(FY,{greetingName:((k=e.name)==null?void 0:k.trim())||e.email.split("@")[0],onGoModeration:()=>E({t:"moderation"}),onOpenEvent:T=>E({t:"event",id:T}),onNewEvent:()=>E({t:"event-new"})}),n.t==="events"&&c.jsx(TW,{events:s,onOpenEvent:T=>E({t:"event",id:T}),onNewEvent:()=>E({t:"event-new"})}),n.t==="event"&&(S?c.jsx(MW,{event:S,onBack:()=>E({t:"events"}),onEdit:()=>E({t:"event-edit",id:S.id}),onChanged:b,onDeleted:()=>{E({t:"events"}),b()},onReviewPending:()=>E({t:"moderation",eventId:S.id})},S.id):s===null?c.jsx("div",{className:"h-40 rounded-2xl bg-card border border-border animate-pulse"}):c.jsx("p",{className:"text-muted-foreground text-sm",children:"That event no longer exists."})),n.t==="event-new"&&c.jsx(JS,{draft:{...jW},backLabel:"All events",onBack:()=>E({t:"events"}),onSaved:T=>{b(),T?(E({t:"event",id:T.id}),We.message("Event created",{description:"Add a cover and photos from the workspace."})):E({t:"events"})}}),n.t==="event-edit"&&(j?c.jsx(JS,{draft:j,backLabel:j.title,onBack:()=>E({t:"event",id:j.id}),onSaved:T=>{b(),E({t:"event",id:(T==null?void 0:T.id)??j.id})}},j.id):s===null?c.jsx("div",{className:"h-40 rounded-2xl bg-card border border-border animate-pulse"}):c.jsx("p",{className:"text-muted-foreground text-sm",children:"That event no longer exists."})),n.t==="moderation"&&c.jsx(OY,{initialEventId:n.eventId},n.eventId??"all")]},A)})})]}),c.jsx(yW,{open:v,onClose:()=>g(!1),onNavigate:T=>E({t:T}),onOpenEvent:T=>E({t:"event",id:T})})]})},EW=({admin:e,view:t,pendingCount:n,onNavigate:a,onLogout:s,onOpenPalette:l})=>{var u;return c.jsxs("div",{className:"flex flex-col h-full xl:h-screen",children:[c.jsxs("div",{className:"px-4 pt-5 pb-4 flex items-center gap-3",children:[c.jsx("div",{className:"w-9 h-9 shrink-0 bg-primary rounded-lg flex items-center justify-center text-primary-foreground","aria-hidden":!0,children:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 22 22",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"20"}),c.jsx("line",{x1:"4",y1:"7",x2:"18",y2:"7"})]})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("p",{className:"text-foreground font-black tracking-widest text-xs uppercase",children:"St. Mary's"}),c.jsx("p",{className:"text-muted-foreground text-[10px] tracking-widest uppercase mt-0.5",children:"Memories · Admin"})]})]}),c.jsxs("button",{onClick:l,className:"mx-3 mb-4 flex items-center gap-2 px-3 py-2 text-sm text-muted-foreground bg-card/70 hover:bg-card rounded-lg border border-black/5 shadow-xs transition-colors",children:[c.jsx(lc,{size:14})," ",c.jsx("span",{className:"flex-1 text-left",children:"Searchâ¦"}),c.jsx("kbd",{className:"text-[10px] text-muted-foreground tracking-wider bg-sidebar border border-black/8 rounded px-1.5 py-0.5",children:"âK"})]}),c.jsx(hV,{className:"flex-1 px-3 pb-4",children:c.jsxs("div",{className:"space-y-0.5",children:[c.jsx(zp,{active:t.t==="dashboard",icon:c.jsx(Sv,{size:16}),label:"Dashboard",onClick:()=>a({t:"dashboard"})}),c.jsx(zp,{active:t.t==="events"||t.t==="event"||t.t==="event-new"||t.t==="event-edit",icon:c.jsx($r,{size:16}),label:"Events & Memories",onClick:()=>a({t:"events"})}),c.jsx(zp,{active:t.t==="moderation",icon:c.jsx(Wl,{size:16}),label:"Moderation",badge:n>0?n:void 0,onClick:()=>a({t:"moderation"})})]})}),c.jsx("div",{className:"px-3 pb-3",children:c.jsxs("a",{href:"/",target:"_blank",rel:"noopener",className:"flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-semibold text-ink-mid hover:bg-card hover:text-foreground transition-colors group",children:[c.jsx(zE,{size:15,className:"text-muted-foreground group-hover:text-primary transition-colors"}),c.jsx("span",{className:"flex-1 text-left",children:"View public site"})]})}),c.jsx(sA,{className:"bg-black/6"}),c.jsxs("div",{className:"px-4 py-3",children:[c.jsx("p",{className:"text-foreground text-sm font-semibold truncate",children:((u=e.name)==null?void 0:u.trim())||e.email.split("@")[0]}),c.jsx("p",{className:"text-muted-foreground text-xs truncate",children:e.email}),c.jsxs(nt,{variant:"ghost",size:"sm",onClick:s,className:"mt-3 w-full text-ink-mid hover:text-foreground hover:bg-card font-bold tracking-widest uppercase text-xs",children:[c.jsx(FE,{})," Sign out"]})]})]})},zp=({active:e,icon:t,label:n,onClick:a,badge:s})=>c.jsxs("button",{onClick:a,"aria-current":e?"page":void 0,className:be("w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-semibold transition-colors",e?"bg-card text-foreground shadow-sm":"text-ink-mid hover:bg-card/60 hover:text-foreground"),children:[c.jsx("span",{className:e?"text-primary":"text-muted-foreground",children:t}),c.jsx("span",{className:"flex-1 text-left",children:n}),typeof s=="number"&&c.jsx(oA,{className:"bg-amber-700 text-white border-0 min-w-[20px] h-5 px-1.5 text-[10px] font-black tnums",children:s>99?"99+":s})]}),CW=({view:e,pendingCount:t,onNavigate:n,onLogout:a,onOpenPalette:s})=>c.jsxs("div",{className:"flex flex-col items-center h-full py-4",children:[c.jsx("div",{className:"w-9 h-9 bg-primary rounded-lg flex items-center justify-center text-primary-foreground mb-4","aria-hidden":!0,
398children:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 22 22",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:[c.jsx("line",{x1:"11",y1:"2",x2:"11",y2:"20"}),c.jsx("line",{x1:"4",y1:"7",x2:"18",y2:"7"})]})}),c.jsx(jl,{label:"Search (âK)",onClick:s,children:c.jsx(lc,{size:17})}),c.jsx("div",{className:"w-8 border-t border-border my-3","aria-hidden":!0}),c.jsxs("nav",{className:"flex flex-col items-center gap-1","aria-label":"Admin sections",children:[c.jsx(jl,{label:"Dashboard",active:e.t==="dashboard",onClick:()=>n({t:"dashboard"}),children:c.jsx(Sv,{size:17})}),c.jsx(jl,{label:"Events & Memories",active:e.t==="events"||e.t==="event"||e.t==="event-new"||e.t==="event-edit",onClick:()=>n({t:"events"}),children:c.jsx($r,{size:17})}),c.jsxs(jl,{label:t>0?`Moderation â ${t} pending`:"Moderation",active:e.t==="moderation",onClick:()=>n({t:"moderation"}),children:[c.jsx(Wl,{size:17}),t>0&&c.jsx("span",{className:"absolute -top-0.5 -right-0.5 min-w-[16px] h-4 px-1 rounded-full bg-amber-700 text-white text-[9px] font-black leading-4 text-center tnums",children:t>99?"99+":t})]})]}),c.jsxs("div",{className:"mt-auto flex flex-col items-center gap-1",children:[c.jsxs(Pd,{children:[c.jsx(Ld,{asChild:!0,children:c.jsx("a",{href:"/",target:"_blank",rel:"noopener","aria-label":"View public site",className:"relative w-11 h-11 rounded-lg flex items-center justify-center text-muted-foreground hover:bg-card hover:text-foreground transition-colors",children:c.jsx(zE,{size:17})})}),c.jsx(zd,{side:"right",children:"View public site"})]}),c.jsx(jl,{label:"Sign out",onClick:a,children:c.jsx(FE,{size:17})})]})]}),jl=({label:e,active:t,onClick:n,children:a})=>c.jsxs(Pd,{children:[c.jsx(Ld,{asChild:!0,children:c.jsx("button",{onClick:n,"aria-label":e,"aria-current":t?"page":void 0,className:be("relative w-11 h-11 rounded-lg flex items-center justify-center transition-colors",t?"bg-card text-primary shadow-sm":"text-muted-foreground hover:bg-card/60 hover:text-foreground"),children:a})}),c.jsx(zd,{side:"right",children:e})]}),jW={title:"",subtitle:"",type:"zabava",date:"",time:"",location:"",hero_blurb:"",description:"",ticket_tiers:[],ticket_mode:"free",featured:!1,is_published:!0,cover_image:""},NW={paid:"Paid · call to reserve",free:"Free entry",community:"All are welcome"},TW=({events:e,onOpenEvent:t,onNewEvent:n})=>{const[a,s]=x.useState(""),l=x.useMemo(()=>{if(!e)return null;const h=a.trim().toLowerCase();return h?e.filter(m=>`${m.title} ${m.subtitle??""} ${m.type} ${m.date}`.toLowerCase().includes(h)):e},[e,a]),u=(l??[]).filter(h=>h.status==="upcoming").sort((h,m)=>h.date.localeCompare(m.date)),f=(l??[]).filter(h=>h.status==="past").sort((h,m)=>m.date.localeCompare(h.date));return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-end justify-between gap-3 flex-wrap pb-5 border-b border-border mb-8",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl md:text-3xl font-black text-foreground tracking-tight",children:"Events & Memories"}),c.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Everything for an event â details, photos, uploads â lives in its workspace."})]}),c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.jsxs("div",{className:"relative",children:[c.jsx(lc,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"}),c.jsx(Hn,{type:"search","aria-label":"Search events",value:a,onChange:h=>s(h.target.value),placeholder:"Search eventsâ¦",className:"pl-9 w-48 sm:w-64 bg-card"})]}),c.jsxs(nt,{onClick:n,children:[c.jsx(Gl,{})," New Event"]})]})]}),l===null?c.jsx("div",{className:"space-y-px",children:Array.from({length:4}).map((h,m)=>c.jsx("div",{className:"h-20 rounded-xl bg-secondary animate-pulse mb-2"},m))}):l.length===0?c.jsxs("div",{className:"py-20 text-center",children:[c.jsx($r,{className:"mx-auto text-muted-foreground mb-3",size:26}),c.jsx("p",{className:"text-foreground font-semibold",children:(e==null?void 0:e.length)===0?"No events yet.":"No events match your search."}),(e==null?void 0:e.length)===0&&c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Create the first one â it takes under a minute."}),c.jsxs(nt,{onClick:n,className:"mt-4",children:[c.jsx(Gl,{})," New Event"]})]})]}):c.jsxs("div",{className:"space-y-12",children:[c.jsx(QS,{title:"Upcoming",events:u,onOpen:t}),c.jsx(QS,{title:"Memories",events:f,onOpen:t})]})]})},QS=({title:e,events:t,onOpen:n})=>t.length===0?null:c.jsxs("section",{children:[c.jsxs("div",{className:"flex items-baseline gap-3 border-b border-border pb-2 mb-1",children:[c.jsx("h2",{className:"text-foreground text-xs font-bold tracking-[0.2em] uppercase",children:e}),c.jsx("span",{className:"text-muted-foreground text-xs ml-auto tnums",children:t.length})]}),c.jsx("div",{children:t.map((a,s)=>c.jsx(st.div,{initial:{opacity:0,y:6}
398,animate:{opacity:1,y:0},transition:{type:"spring",duration:.3,bounce:0,delay:Math.min(s,6)*.03},children:c.jsx(AW,{event:a,onOpen:()=>n(a.id)})},a.id))})]}),AW=({event:e,onOpen:t})=>{const n=Sc(e.type),a=aV(e.date),s=Xo(e.date);return c.jsx("button",{type:"button",onClick:t,className:"w-full text-left border-b border-border hover:bg-card rounded-xl hover:border-transparent transition-colors group focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:relative",children:c.jsxs("div",{className:"py-3.5 px-2 sm:px-3 flex items-center gap-3 sm:gap-4",children:[c.jsxs("div",{className:"shrink-0 w-14 text-center",children:[c.jsx("p",{className:"text-[10px] font-black tracking-widest uppercase leading-none text-primary",children:a.month}),c.jsx("p",{className:"text-xl font-black text-foreground leading-tight mt-0.5 tnums",children:a.day}),c.jsx("p",{className:"text-[9px] text-muted-foreground tracking-wider leading-none mt-0.5 tnums",children:a.year})]}),c.jsx("div",{className:"shrink-0 hidden sm:flex items-center justify-center w-20 h-[56px] rounded-lg overflow-hidden img-outline bg-secondary text-muted-foreground",children:e.cover_image?c.jsx("img",{src:e.cover_image,alt:"",loading:"lazy",className:"w-full h-full object-cover group-hover:scale-[1.04] transition-transform duration-200 ease-out"}):c.jsx(n.Icon,{size:20})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.jsx("p",{className:"text-foreground font-bold truncate",children:e.title}),!e.is_published&&c.jsx(oA,{variant:"secondary",className:"bg-secondary text-muted-foreground font-bold uppercase tracking-widest text-[9px]",children:"Hidden"})]}),c.jsxs("p",{className:"text-muted-foreground text-xs mt-0.5 truncate",children:[c.jsx("span",{className:"font-bold tracking-[0.14em] uppercase text-[10px]",children:n.label}),s&&c.jsxs(c.Fragment,{children:[" · ",c.jsx("span",{className:e.status==="upcoming"?"text-primary font-semibold":"",children:s})]}),e.location&&c.jsxs(c.Fragment,{children:[" · ",e.location.split(",")[0]]}),c.jsxs(c.Fragment,{children:[" · ",NW[e.ticket_mode??"free"]]})]}),c.jsxs("p",{className:"text-xs mt-1 text-ink-mid lg:hidden",children:[c.jsx("span",{className:"text-foreground font-bold tnums",children:e.approved_count??0})," photos",(e.pending_count??0)>0&&c.jsxs(c.Fragment,{children:[" · ",c.jsxs("span",{className:"text-amber-700 font-bold tnums",children:[e.pending_count," awaiting review"]})]})]})]}),c.jsxs("div",{className:"shrink-0 hidden lg:flex flex-col items-end gap-0.5 w-40",children:[c.jsxs("p",{className:"text-xs text-ink-mid",children:[c.jsx("span",{className:"text-foreground font-bold tnums",children:e.approved_count??0})," photos"]}),(e.pending_count??0)>0&&c.jsxs("p",{className:"text-xs text-amber-700 font-bold tnums",children:[e.pending_count," awaiting review"]})]}),c.jsx("span",{className:"shrink-0 text-muted-foreground group-hover:text-primary text-[11px] font-bold tracking-widest uppercase transition-colors hidden md:block",children:"Open â"})]})})},MW=({event:e,onBack:t,onEdit:n,onChanged:a,onDeleted:s,onReviewPending:l})=>{const[u,f]=x.useState("photos"),[h,m]=x.useState(0),v=Sc(e.type),g=Xo(e.date),b=async()=>{const S=!e.is_published;try{await it.admin.events.save({...e,is_published:S}),We.success(S?"Published â visible on the public site":"Hidden from the public site"),a()}catch(j){We.error(dn(j,"Could not update"))}},w=async()=>{if(await ix(`Delete â${e.title}â?`,{description:"This also deletes all its photos. Cannot be undone.",danger:!0}))try{await it.admin.events.delete(e.id),We.success("Event deleted"),s()}catch(j){We.error(dn(j))}},E=e.pending_count??0;return c.jsxs("div",{children:[c.jsxs("button",{onClick:t,className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors text-sm font-medium mb-6 group",children:[c.jsx(bv,{size:15,className:"group-hover:-translate-x-0.5 transition-transform"}),c.jsx("span",{children:"All events"})]}),c.jsxs("header",{className:"flex flex-col md:flex-row gap-5 md:gap-7 pb-6 border-b border-border",children:[c.jsx("div",{className:"shrink-0 w-full max-w-sm md:w-60 lg:w-72 md:max-w-none aspect-[16/10] rounded-2xl overflow-hidden img-outline bg-secondary flex items-center justify-center text-muted-foreground",children:e.cover_image?c.jsx("img",{src:e.cover_image,alt:"",className:"w-full h-full object-cover"}):c.jsx(v.Icon,{size:30})}),c.jsxs("div",{className:"flex-1 min-w-0 flex flex-col",children:[c.jsxs("p",{className:"text-muted-foreground text-[10px] font-bold tracking-[0.2em] uppercase",children:[v.label," · ",e.status==="past"?"Memory":"Upcoming"]}),c.jsx("h1",{className:"text-2xl md:text-3xl font-black text-foreground tracking-tight mt-1 truncate",children:e.title}),e.subtitle&&c.jsx("p",{className:"text-muted-foreground text-sm mt-0.5 truncate",children:e.subt
398itle}),c.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 mt-3 text-xs text-ink-mid",children:[c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx($r,{size:12,className:"text-primary"}),lx(e.date),g&&c.jsxs("span",{className:"text-muted-foreground",children:[" · ",g]})]}),e.time&&c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(l3,{size:12,className:"text-primary"}),e.time]}),e.location&&c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(ag,{size:12,className:"text-primary"}),e.location.split(",")[0]]}),c.jsx(kW,{event:e})]}),c.jsxs("div",{className:"flex items-center justify-between gap-x-4 gap-y-3 mt-auto pt-5 flex-wrap",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(nt,{variant:"outline",size:"sm",onClick:n,children:[c.jsx($3,{})," Edit"]}),c.jsxs(nt,{variant:"outline",size:"sm",onClick:w,className:"text-ink-mid hover:text-red-800 hover:bg-red-50 hover:border-red-200",children:[c.jsx(wd,{})," Delete"]})]}),c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(Tg,{id:`publish-${e.id}`,checked:e.is_published,onCheckedChange:b}),c.jsx(ni,{htmlFor:`publish-${e.id}`,className:"text-xs text-ink-mid cursor-pointer flex items-center gap-1.5",children:e.is_published?c.jsxs(c.Fragment,{children:[c.jsx(b3,{size:13,className:"text-green-700"})," Live on public site"]}):c.jsxs(c.Fragment,{children:[c.jsx(x3,{size:13})," Hidden"]})})]})]})]})]}),c.jsxs(jV,{value:u,onValueChange:S=>f(S),className:"gap-0",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3 flex-wrap py-4 mb-4",children:[c.jsx(TV,{className:"h-auto gap-1 bg-card border border-border rounded-xl p-1 w-fit","aria-label":"Workspace sections",children:["photos","upload"].map(S=>c.jsxs(AV,{value:S,className:be("relative flex-none h-auto border-0 px-5 py-2 rounded-lg text-xs font-bold tracking-widest uppercase transition-colors","focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-0","data-[state=active]:bg-transparent data-[state=active]:shadow-none data-[state=active]:text-primary-foreground","data-[state=inactive]:text-muted-foreground data-[state=inactive]:hover:text-ink-mid","[&_svg]:size-[13px]"),children:[u===S&&c.jsx(st.span,{layoutId:"workspace-tab",className:"absolute inset-0 bg-primary rounded-lg",transition:{type:"spring",stiffness:420,damping:32}}),c.jsx("span",{className:"relative z-10 flex items-center gap-1.5",children:S==="photos"?c.jsxs(c.Fragment,{children:[c.jsx(BE,{size:13})," Photos"]}):c.jsxs(c.Fragment,{children:[c.jsx(Zd,{size:13})," Upload"]})})]},S))}),c.jsxs("div",{className:"flex items-center gap-3 text-xs text-ink-mid flex-wrap",children:[c.jsxs("span",{children:[c.jsx("span",{className:"text-foreground font-bold tnums",children:e.approved_count??0})," published"]}),E>0&&c.jsxs("button",{type:"button",onClick:l,className:"flex items-center gap-1 text-amber-700 font-bold hover:text-amber-900 transition-colors rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",children:[c.jsx("span",{className:"tnums",children:E})," awaiting review ",c.jsx(si,{size:12})]})]})]}),c.jsx(vS,{value:"photos",children:c.jsx(st.div,{initial:{opacity:0}
398,animate:{opacity:1},transition:{duration:.15,ease:[.23,1,.32,1]},children:c.jsx(kY,{eventId:e.id,onOpenBulkUpload:()=>f("upload")},h)})}),c.jsx(vS,{value:"upload",children:c.jsx(st.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15,ease:[.23,1,.32,1]},children:c.jsx(LW,{event:e,onUploaded:()=>{a(),m(S=>S+1)}})})})]})]})},kW=({event:e})=>{var a;const t=e.ticket_mode??"free";if(t==="community")return c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(Qd,{size:12,className:"text-primary"}),"All are welcome"]});if(t==="free")return c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(so,{size:12,className:"text-primary"}),"Free entry"]});const n=((a=e.ticket_tiers)==null?void 0:a.length)??0;return c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(bd,{size:12,className:"text-primary"}),"Paid · ",n," tier",n!==1?"s":""," · phone reservations"]})},DW=["9:00 AM â 11:00 AM","10:00 AM â 1:00 PM","10:00 AM â 4:00 PM","4:00 PM â 6:00 PM","6:00 PM â 9:00 PM","7:00 PM â 10:00 PM","7:00 PM â 1:00 AM"],Bp=["zabava","bazaar","concert","vyshyvanka","other"],Fp=200,rd=180,Vp=500,RW=[{mode:"community",title:"Community",blurb:'"All are welcome" â no ticket info shown.',Icon:Qd},{mode:"free",title:"Free entry",blurb:'Shows a small "Free entry" pill.',Icon:so},{mode:"paid",title:"Paid",blurb:'Price tiers + "Call (905) 354-2033 to reserve".',Icon:bd}],OW=e=>{if(!e)return;const[t,n,a]=e.split("-").map(Number);if(!(!t||!n||!a))return new Date(t,n-1,a)},_W=({id:e,value:t,onChange:n})=>{const[a,s]=x.useState(!1),l=OW(t);return c.jsxs(RV,{open:a,onOpenChange:s,children:[c.jsx(OV,{asChild:!0,children:c.jsxs("button",{id:e,type:"button","data-empty":!l,className:"flex h-9 w-full items-center gap-2 rounded-md border border-input bg-card px-3 text-left text-sm shadow-xs transition-colors outline-none hover:bg-secondary/50 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[empty=true]:text-muted-foreground",children:[c.jsx($r,{size:15,className:"shrink-0 text-primary"}),c.jsx("span",{className:"flex-1 truncate",children:l?Dg(l,"EEEE, MMMM d, yyyy"):"Pick a date"})]})}),c.jsx(_V,{className:"w-auto p-0",align:"start",children:c.jsx(LH,{mode:"single",selected:l,defaultMonth:l,onSelect:u=>{u&&(n(Dg(u,"yyyy-MM-dd")),s(!1))},autoFocus:!0})})]})},JS=({draft:e,backLabel:t,onBack:n,onSaved:a})=>{const[s,l]=x.useState(e),[u,f]=x.useState(!1),[h,m]=x.useState(!1),[v,g]=x.useState(!1),b=x.useRef(null),w=s.ticket_tiers??[],E=s.ticket_mode??"free",S=!!s.id,j=s.type&&!Bp.includes(s.type)?[s.type,...Bp]:Bp,N=async()=>{if(!s.title||!s.date){We.error("Title and date are required.");return}f(!0);try{const D=await it.admin.events.save({...s,title:s.title,date:s.date,ticket_mode:E,ticket_tiers:E==="paid"?w:[]});We.success(S?"Event updated":"Event created"),a(D.event)}catch(D){We.error(dn(D,"Save failed"))}finally{f(!1)}},A=async D=>{if(!s.id){We.error("Save the event first, then you can upload a cover.");return}g(!0);try{await it.admin.photos.bulkUpload(s.id,[D]);const I=(await it.admin.photos.list(s.id,"approved")).photos.slice().sort((Z,ce)=>ce.id-Z.id)[0];I!=null&&I.full_url?(l(Z=>({...Z,cover_image:I.full_url})),We.success("Cover image uploaded")):(We.message("Uploaded â pick the cover from event photos."),m(!0))}catch(L){We.error(dn(L,"Cover upload failed"))}finally{g(!1)}},k=(s.title??"").length,T=(s.hero_blurb??"").length,M=(s.description??"").length,_=()=>{const D=cV(s.description,rd);if(!D){We.message("Paste the full description first.");return}l({...s,hero_blurb:D})},O=c.jsxs(c.Fragment,{children:[c.jsx(nt,{variant:"outline",onClick:n,className:"min-w-[110px]",children:"Cancel"}),c.jsx(nt,{onClick:N,disabled:u,className:"min-w-[150px] font-black tracking-widest uppercase",children:u?"Savingâ¦":S?"Save changes":"Create event"})]});return c.jsxs("div",{className:"max-w-3xl",children:[c.jsxs("button",{onClick:n,className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors text-sm font-medium mb-6 group",children:[c.jsx(bv,{size:15,className:"group-hover:-translate-x-0.5 transition-transform"}),c.jsx("span",{className:"truncate max-w-[240px]",children:t})]}),c.jsxs("header",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-4 pb-6 border-b border-border",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("h1",{className:"text-2xl md:text-3xl font-black text-foreground tracking-tight",children:S?"Edit event":"New event"}),c.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:S?"Update the details the public listing shows.":"Everything the public listing shows â details, admission, and a cover."})]}),c.jsx("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:O})]}),c.jsx(ad,{title:"Basics",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-5 gap-y-4",children:[c.jsx(Ga,{label:"Title",htmlFor:"ev-title",required:!0,counter:`${k}/${Fp}`,counterWarn:k>Fp,children:c.jsx(Hn,{id:"ev-title",autoFocus:!0,maxLength:Fp,value:s.title??"",onChange:D=>l({...s,title:D.target.value}),className:"bg-card"})}),c.jsx(Ga,{label:"Subtitle",htmlFor:"ev-subtitle",children:c.jsx(Hn,{id:"ev-subtitle",value:s.subtitle??"",onChange:D=>l({...s,subtitle:D.target.value}),placeholder:"Optional one-liner",className:"bg-card"})}),c.jsx(Ga,{label:"Date",htmlFor:"ev-date",required:!0,children:c.jsx(_W,{id:"ev-date",value:s.date,onChange:D=>l({...s,date:D})})}),c.jsx(Ga,{label:"Type",htmlFor:"ev-type",children:c.jsxs(iA,{value:s.type||"",onValueChange:D=>l({...s,type:D}),children:[c.jsx(cA,{id:"ev-type",className:"w-full bg-card",children:c.jsx(lA,{placeholder:"Choose a typeâ¦"})}),c.jsx(uA,{children:j.map(D=>c.jsx(Ag,{value:D,children:Sc(D).label},D))})]})}),c.jsx(Ga,{label:"Time",htmlFor:"ev-time",full:!0,children:c.jsxs("div",{className:"flex gap-2 flex-wrap",children:[c.jsx(Hn,{id:"ev-time",value:s.time??"",onChange:D=>l({...s,time:D.target.value}),placeholder:"7:00 PM â 1:00 AM",className:"flex-1 min-w-[200px] bg-card"}),c.jsxs(dA,{children:[c.jsx(fA,{asChild:!0,children:c.jsxs(nt,{type:"button",variant:"outline",className:"max-w-[200px] justify-between bg-card font-normal text-muted-foreground",children:["Quick preset⦠",c.jsx(wv,{className:"text-muted-foreground"})]})}),c.jsx(hA,{align:"end",children:DW.map(D=>c.jsx(Mg,{onClick:()=>l({...s,time:D}),children:D},D))})]})]})}),c.jsx(Ga,{label:"Location",htmlFor:"ev-location",full:!0,children:c.jsx(Hn,{id:"ev-location",value:s.location??"",onChange:D=>l({...s,location:D.target.value}),placeholder:"Parish hall, 4 Ontario Ave, Niagara Falls",className:"bg-card"})}),c.jsxs(Ga,{label:"Full description",htmlFor:"ev-desc",full:!0,counter:`${M}/${Vp}`,counterWarn:M>Vp,children:[c.jsx(gS,{id:"ev-desc",rows:5,maxLength:Vp,value:s.description??"",onChange:D=>l({...s,description:D.target.value}),placeholder:"Paste the full Facebook announcement here. It appears in the exp
398anded event details.",className:"bg-card"}),c.jsx("p",{className:"text-ink-mid text-xs mt-1.5",children:"Paste-friendly: dates, times, locations, and emoji can stay here."})]}),c.jsxs(Ga,{label:"Hero blurb",htmlFor:"ev-hero-blurb",full:!0,counter:`${T}/${rd}`,counterWarn:T>rd,children:[c.jsx(gS,{id:"ev-hero-blurb",rows:2,maxLength:rd,value:s.hero_blurb??"",onChange:D=>l({...s,hero_blurb:D.target.value}),placeholder:"One warm sentence for the homepage â what the gathering meant to the parish.",className:"bg-card"}),c.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 mt-1.5",children:[c.jsx("p",{className:"text-ink-mid text-xs",children:"Shown in the Memories hero. Emoji are removed in this display context."}),c.jsx(nt,{type:"button",variant:"link",size:"sm",onClick:_,className:"h-auto p-0 self-start sm:self-auto text-primary",children:"Shape from full description"})]})]})]})}),c.jsxs(ad,{title:"Admission",children:[c.jsx(EV,{value:E,onValueChange:D=>l({...s,ticket_mode:D}),"aria-label":"Admission mode",className:"grid grid-cols-1 sm:grid-cols-3 gap-2.5",children:RW.map(D=>{const L=E===D.mode;return c.jsxs(CV,{value:D.mode,children:[c.jsx(D.Icon,{size:18,className:L?"text-primary":"text-muted-foreground"}),c.jsx("p",{className:be("text-sm font-bold mt-2.5",L?"text-foreground":"text-ink-mid"),children:D.title}),c.jsx("p",{className:"text-muted-foreground text-[11px] leading-snug mt-0.5",children:D.blurb})]},D.mode)})}),c.jsx("p",{className:"text-muted-foreground text-[11px] mt-2.5",children:'There is no online ticketing â paid events always say "call to reserve or pay at the door."'}),E==="paid"&&c.jsxs("div",{className:"mt-5 rounded-xl border border-black/8 bg-secondary/30 p-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsx("p",{className:"text-foreground text-xs font-bold tracking-widest uppercase",children:"Price tiers"}),c.jsxs(nt,{type:"button",variant:"link",size:"sm",onClick:()=>l({...s,ticket_tiers:[...w,{label:"",price:"",description:""}]}),className:"text-primary h-auto p-0",children:[c.jsx(Gl,{})," Add tier"]})]}),c.jsxs("div",{className:"space-y-2",children:[w.length===0&&c.jsx("p",{className:"text-muted-foreground text-xs italic",children:'No tiers yet â e.g. "General Admission · $35" and "Children 12 & under · FREE".'}),w.map((D,L)=>c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-2 items-center",children:[c.jsx(Hn,{placeholder:"Label (General Admission)",value:D.label,onChange:I=>{const Z=[...w];Z[L]={...D,label:I.target.value},l({...s,ticket_tiers:Z})},className:"md:col-span-4 bg-card"}),c.jsx(Hn,{placeholder:"Price ($35 / FREE)",value:D.price,onChange:I=>{const Z=[...w];Z[L]={...D,price:I.target.value},l({...s,ticket_tiers:Z})},className:"md:col-span-3 bg-card"}),c.jsx(Hn,{placeholder:"Description",value:D.description??"",onChange:I=>{const Z=[...w];Z[L]={...D,description:I.target.value},l({...s,ticket_tiers:Z})},className:"md:col-span-4 bg-card"}),c.jsx(nt,{type:"button",variant:"ghost",size:"icon-sm",onClick:()=>{const I=w.filter((Z,ce)=>ce!==L);l({...s,ticket_tiers:I})},"aria-label":"Remove tier",className:"md:col-span-1 text-muted-foreground hover:text-red-800 hover:bg-red-50 justify-self-start md:justify-self-center",children:c.jsx(wd,{})})]},L))]})]})]}),c.jsx(ad,{title:"Cover image",children:c.jsxs("div",{className:"flex items-start gap-5 flex-wrap sm:flex-nowrap",children:[c.jsx("div",{className:"shrink-0",children:s.cover_image?c.jsx("img",{src:s.cover_image,alt:"",className:"h-28 w-44 rounded-xl img-outline object-cover"}):c.jsxs("div",{className:"h-28 w-44 rounded-xl border border-dashed border-black/15 bg-secondary/40 flex flex-col items-center justify-center gap-1 text-muted-foreground",children:[c.jsx(Vo,{size:22}),c.jsx("span",{className:"text-[10px] tracking-wider uppercase font-bold",children:"No cover"})]})}),c.jsxs("div",{className:"flex-1 min-w-[220px] space-y-2.5",children:[c.jsx(Hn,{value:s.cover_image??"",onChange:D=>l({...s,cover_image:D.target.value}),placeholder:"Paste an image URLâ¦",className:"bg-card"}),S?c.jsxs("div",{role:"button",tabIndex:0,"aria-label":"Upload a cover image",className:"relative border border-dashed border-black/15 rounded-lg px-3 py-2.5 text-xs flex items-center gap-2 transition-colors hover:border-primary/40 hover:bg-secondary/40 cursor-pointer text-ink-mid focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",onClick:()=>{var D;return(D=b.current)==null?void 0:D.click()},onKeyDown:D=>{var L;(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),(L=b.current)==null||L.click())},onDragOver:D=>D.preventDefault(),onDrop:D=>{var I;D.preventDefault();const L=(I=D.dataTransfer.files)==null?void 0:I[0];L&&A(L)},children:[c.jsx(Zd,{size:14,className:"text-primary"}),c.jsx("span",{children:v?"Uploadingâ¦":"Drag-and-drop or click to upload a new cover"}),c.jsx("input",{ref:b,type:"file",accept:"image/*",className:"hidden",onChange:D=>{var I;const L=(I=D.target.files)==null?void 0:I[0];L&&A(L),D.target.value=""}})]}):c.jsx("p",{className:"text-muted-foreground text-xs leading-relaxed",children:"Paste a URL now, or skip it â once the event is created you can upload a cover or pick one from its photos."}),c.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[S&&c.jsxs(nt,{type:"button",variant:"link",onClick:()=>m(!0),className:"text-primary hover:text-[#553C22] text-xs font-bold h-auto p-0",children:[c.jsx(BE,{})," Pick from event photos"]}),s.cover_image&&c.jsx(nt,{type:"button",variant:"link",onClick:()=>l({...s,cover_image:""}),className:"text-red-700 hover:text-red-900 text-xs font-bold h-auto p-0",children:"Clear"})]})]})]})}),c.jsx(ad,{title:"Visibility",children:c.jsxs("div",{className:"flex items-center gap-x-8 gap-y-4 flex-wrap",children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(Tg,{id:"featured",checked:!!s.featured,onCheckedChange:D=>l({...s,featured:D})}),c.jsxs(ni,{htmlFor:"featured",className:"text-sm text-foreground cursor-pointer",children:["Featured ",c.jsx("span",{className:"text-muted-foreground font-normal",children:"â preferred as the Memories hero"})]})]}),c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(Tg,{id:"published",checked:s.is_published!==!1,onCheckedChange:D=>l({...s,is_published:D})}),c.jsxs(ni,{htmlFor:"published",className:"text-sm text-foreground cursor-pointer",children:["Published ",c.jsx("span",{className:"text-muted-foreground font-normal",children:"â visible on public site"})]})]})]})}),c.jsx("div",{className:"mt-8 pt-5 border-t border-border flex items-center justify-end gap-2",children:O}),h&&s.id&&c.jsx(UY,{eventId:s.id,currentUrl:s.cover_image,onPick:D=>l({...s,cover_image:D}),onClose:()=>m(!1)})]})},ad=({title:e,action:t,children:n})=>c.jsxs("section",{className:"mt-5 first:mt-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2.5 text-foreground text-xs font-bold tracking-widest uppercase border-t border-black/5 pt-4 first:border-t-0 first:pt-0",children:[c.jsx("span",{children:e}),t&&c.jsx("span",{className:"ml-auto",children:t})]}),n]}
398),Ga=({label:e,htmlFor:t,required:n,full:a,counter:s,counterWarn:l,children:u})=>c.jsxs("div",{className:a?"md:col-span-2":"",children:[c.jsxs("div",{className:"flex items-baseline justify-between mb-1.5",children:[c.jsxs(ni,{htmlFor:t,className:"text-foreground text-xs font-bold tracking-widest uppercase",children:[e,n&&c.jsx("span",{className:"text-red-600","aria-label":"required",children:" *"})]}),s&&c.jsx("span",{className:be("text-[10px]",l?"text-red-600 font-bold":"text-muted-foreground"),children:s})]}),u]}),e2=20*1024*1024;function PW(e){return`${e.name}::${e.size}::${e.lastModified}`}const LW=({event:e,onUploaded:t})=>{const[n,a]=x.useState([]),[s,l]=x.useState(0),[u,f]=x.useState(!1),[h,m]=x.useState(!1),v=x.useRef(null);x.useEffect(()=>()=>{n.forEach(T=>URL.revokeObjectURL(T.preview))},[n]);const g=x.useCallback(T=>{if(!T)return;const M=Array.from(T).filter(_=>_.type.startsWith("image/")||/\.(heic|heif)$/i.test(_.name));M.length!==0&&a(_=>{const O=new Set(_.map(L=>L.key)),D=[];for(const L of M){const I=PW(L);O.has(I)||(O.add(I),D.push({key:I,file:L,preview:URL.createObjectURL(L)}))}return[..._,...D]})},[]),b=T=>{a(M=>{const _=M.find(O=>O.key===T);return _&&URL.revokeObjectURL(_.preview),M.filter(O=>O.key!==T)})},w=()=>{n.forEach(T=>URL.revokeObjectURL(T.preview)),a([])},E=async()=>{if(n.length!==0){f(!0),l(0);try{const T=n.map(_=>_.file),M=await it.admin.photos.bulkUploadChunked(e.id,T,l);if(M.uploaded>0&&We.success(`Uploaded ${M.uploaded} of ${T.length}`),M.failed>0){const _=M.errors[0]??"See server logs for details.";We.error(`${M.failed} failed`,{description:_})}M.uploaded>0&&w(),t==null||t()}catch(T){We.error(dn(T,"Upload failed"))}finally{f(!1)}}},S=n.reduce((T,M)=>T+M.file.size,0),j=n.filter(T=>T.file.size>e2),N=T=>{T.preventDefault(),m(!0)},A=T=>{T.currentTarget.contains(T.relatedTarget)||m(!1)},k=T=>{T.preventDefault(),m(!1),g(T.dataTransfer.files)};return c.jsxs("div",{onDragOver:N,onDragLeave:A,onDrop:k,className:"space-y-6",children:[c.jsxs("div",{role:"button",tabIndex:0,"aria-label":"Add photos",className:be("border-2 border-dashed rounded-2xl px-6 py-10 flex flex-col items-center gap-3 cursor-pointer transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",h?"border-primary bg-secondary/60":"border-black/10 hover:border-primary/40 bg-card/50"),onClick:()=>{var T;return(T=v.current)==null?void 0:T.click()},onKeyDown:T=>{var M;(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),(M=v.current)==null||M.click())},children:[c.jsx(Zd,{className:"text-primary",size:24}),c.jsx("p",{className:"text-foreground font-semibold text-sm",children:h?"Drop to add photos":"Drag photos here or click to browse"}),c.jsx("p",{className:"text-muted-foreground text-xs tnums text-center",children:n.length>0?`${n.length} file${n.length!==1?"s":""} selected · ${(S/1024/1024).toFixed(1)} MB total`:"JPG, PNG, HEIC up to 20MB each"}),c.jsxs("p",{className:"text-muted-foreground text-xs text-center",children:["Photos publish ",c.jsx("strong",{className:"text-ink-mid font-semibold",children:"immediately"}),' to "',e.title,'" â no review step.']}),c.jsx("input",{ref:v,type:"file",accept:"image/*,.heic,.heif",multiple:!0,className:"hidden",onChange:T=>{g(T.target.files),T.target.value=""}})]}),n.length>0&&c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-baseline justify-between border-b border-border pb-2",children:[c.jsx("p",{className:"text-foreground text-xs font-bold tracking-[0.2em] uppercase",children:"Selected photos"}),c.jsx(nt,{type:"button",variant:"link",size:"sm",onClick:w,className:"text-red-700 hover:text-red-900 text-xs font-bold h-auto p-0",children:"Clear all"})]}),c.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(110px,1fr))] gap-2.5",children:n.map(T=>{const M=T.file.size>e2;return c.jsxs("div",{className:be("relative group rounded-lg overflow-hidden border bg-background img-outline",M?"border-red-400":"border-border"),children:[c.jsx("img",{src:T.preview,alt:T.file.name,className:"aspect-square w-full object-cover"}),c.jsx("button",{type:"button",onClick:()=>b(T.key),"aria-label":`Remove ${T.file.name}`,className:"absolute top-1.5 right-1.5 bg-black/60 hover:bg-red-600 text-white rounded-full p-1 opacity-100 md:opacity-0 md:group-hover:opacity-100 focus:opacity-100 transition-[opacity,transform] duration-100 active:scale-[0.92]",children:c.jsx(Yr,{size:12})}),c.jsxs("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent text-white text-[10px] px-1.5 py-1",children:[c.jsx("p",{className:"truncate font-semibold",children:T.file.name}),c.jsxs("p",{className:be("text-white/70 tnums",M&&"text-red-300 font-bold"),children:[(T.file.size/1024/1024).toFixed(1)," MB"]})]})]},T.key)})}),j.length>0&&c.jsxs("div",{className:"flex items-start gap-2 text-xs text-red-700 bg-red-50 border border-red-200 rounded-lg px-3 py-2",children:[c.jsx(o6,{size:14,className:"shrink-0 mt-0.5"}),c.jsxs("span",{children:[j.length," file",j.length!==1?"s":""," over the 20 MB limit will likely fail. Remove or compress before uploading."]})]})]}),u&&c.jsxs("div",{children:[c.jsx(MV,{value:s,className:"h-1.5","aria-label":"Upload progress"}),c.jsxs("p",{className:"text-muted-foreground text-xs text-center mt-2 tnums",children:["Uploading ",s,"%â¦"]})]}),n.length>0&&c.jsx("div",{className:"flex justify-end",children:c.jsxs(nt,{onClick:E,disabled:u,size:"lg",className:"w-full sm:w-auto
398sm:min-w-[260px] font-black tracking-widest uppercase",children:[c.jsx(Kd,{})," ",u?"Uploadingâ¦":`Publish ${n.length} Photo${n.length!==1?"s":""}`]})})]})},Up="https://stmarysukrainian.com",zW="Ukrainian Catholic parish at 6248 Main St, Niagara Falls, ON. Sunday Divine Liturgy (Mass) at 11:00 AM in Ukrainian & English. All are welcome. (905) 354-7876",BW={home:{path:"/",title:"St. Mary's Ukrainian Catholic Church | Niagara Falls, ON",description:zW,canonical:`${Up}/`,robots:null},gallery:{path:"/gallery",title:"Parish Photos & Memories | St. Mary's Ukrainian Church, Niagara Falls",description:"Photos from feasts, bazaars and community events at St. Mary's Ukrainian Catholic Church in Niagara Falls, Ontario.",canonical:`${Up}/gallery`,robots:"noindex, follow"},subscribe:{path:"/subscribe",title:"Parish Email Updates | St. Mary's Ukrainian Catholic Church",description:"Sign up for email updates from St. Mary's Ukrainian Catholic Church in Niagara Falls, Ontario.",canonical:`${Up}/subscribe`,robots:"noindex, follow"},admin:{path:"/admin",title:"Admin · St. Mary's Ukrainian Catholic Church",description:"Parish admin panel for St. Mary's Ukrainian Catholic Church.",canonical:null,robots:"noindex, nofollow"}};function FW(){function e(v){document.documentElement.classList.remove("dark")}e();const[t,n]=x.useState(window.location.hash),[a,s]=x.useState(window.location.pathname);x.useEffect(()=>{const v=()=>n(window.location.hash),g=()=>s(window.location.pathname);return window.addEventListener("hashchange",v),window.addEventListener("popstate",g),()=>{window.removeEventListener("hashchange",v),window.removeEventListener("popstate",g)}},[]);const l=a==="/subscribe"||t==="#subscribe",u=a==="/gallery"||t==="#full-gallery",f=a.startsWith("/admin")||t.startsWith("#admin");x.useEffect(()=>{const v=f?"admin":u?"gallery":l?"subscribe":"home";document.title=BW[v].title},[f,u,l]);const m=x.useMemo(()=>f?c.jsx(bW,{}):u?c.jsx(Y9,{}):l?c.jsx(T6,{}):c.jsx(p6,{}),[f,u,l]);return c.jsxs(c.Fragment,{children:[m,c.jsx(F_,{richColors:!0,position:"top-right",closeButton:!0,theme:"light",toastOptions:{style:{fontFamily:"inherit"}}})]})}const SM=new URLSearchParams(window.location.search),VW=SM.get("shouldSkipAnimations")==="true",UW=SM.get("mode"),IW=UW==="editable";(VW||IW)&&(Ug.skipAnimations=!0);document.documentElement.classList.remove("dark");const wx=()=>{document.documentElement.classList.toggle("dark",!1)},HW=()=>{document.addEventListener("error",function(e){if(e.target instanceof HTMLImageElement){const t=e.target;if(!t.dataset.fallbackApplied){t.dataset.fallbackApplied="true";const n="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E";t.src=n,t.classList.add("broken-image-fallback"),(!t.alt||t.alt.trim()==="")&&(t.alt="Image not available")}}},!0)};wx();HW();document.addEventListener("DOMContentLoaded",wx);const $W=window.matchMedia("(prefers-color-scheme: dark)");$W.addEventListener("change",wx);f_.createRoot(document.getElementById("root")).render(c.jsx(x.StrictMode,{children:c.jsx(FW,{})}));
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.