@xpert-ai/plugin-live-dashboard 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.xpertai-plugin/plugin.json +1 -1
- package/README.md +2 -2
- package/dist/lib/agent.schema.d.ts +11 -11
- package/dist/lib/agent.schema.js +3 -3
- package/dist/lib/analytics-source.d.ts +3 -0
- package/dist/lib/analytics-source.js +11 -0
- package/dist/lib/dashboard-icon.d.ts +2 -1
- package/dist/lib/dashboard-icon.js +10 -2
- package/dist/lib/dashboard-sharing.js +2 -1
- package/dist/lib/dashboard-view.schema.d.ts +1249 -0
- package/dist/lib/dashboard-view.schema.js +19 -0
- package/dist/lib/dashboard.schema.d.ts +12 -12
- package/dist/lib/dashboard.schema.js +1 -1
- package/dist/lib/dashboard.service.d.ts +3 -3
- package/dist/lib/dashboard.service.js +3 -6
- package/dist/lib/definition-tools.d.ts +56 -0
- package/dist/lib/definition-tools.js +42 -0
- package/dist/lib/document-package.d.ts +1 -1
- package/dist/lib/document-package.js +2 -2
- package/dist/lib/middleware.js +12 -8
- package/dist/lib/presentation.provider.d.ts +1 -1
- package/dist/lib/resource-card.js +1 -1
- package/dist/lib/view.provider.d.ts +2 -2
- package/dist/lib/view.provider.js +3 -2
- package/dist/remote/app.js +11 -11
- package/dist/remote/build-manifest.json +17 -14
- package/docs/frontend-libraries.mdx +1 -1
- package/docs/html-mode.md +2 -2
- package/docs/index.mdx +14 -0
- package/docs/verification.mdx +1 -1
- package/examples/data-xpert-sales.json +6 -3
- package/examples/postgres-sales.json +5 -3
- package/package.json +5 -5
package/dist/remote/app.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(){"use strict";function qg(n,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in n)){const u=Object.getOwnPropertyDescriptor(s,l);u&&Object.defineProperty(n,l,u.get?u:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Kg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dl={exports:{}},Ae={};var Ad;function Gg(){if(Ad)return Ae;Ad=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=x&&P[x]||P["@@iterator"],typeof P=="function"?P:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,b={};function S(P,C,Q){this.props=P,this.context=C,this.refs=b,this.updater=Q||E}S.prototype.isReactComponent={},S.prototype.setState=function(P,C){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,C,"setState")},S.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function A(){}A.prototype=S.prototype;function D(P,C,Q){this.props=P,this.context=C,this.refs=b,this.updater=Q||E}var T=D.prototype=new A;T.constructor=D,_(T,S.prototype),T.isPureReactComponent=!0;var N=Array.isArray,U=Object.prototype.hasOwnProperty,L={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function F(P,C,Q){var ne,H={},V=null,te=null;if(C!=null)for(ne in C.ref!==void 0&&(te=C.ref),C.key!==void 0&&(V=""+C.key),C)U.call(C,ne)&&!W.hasOwnProperty(ne)&&(H[ne]=C[ne]);var Z=arguments.length-2;if(Z===1)H.children=Q;else if(1<Z){for(var K=Array(Z),Ce=0;Ce<Z;Ce++)K[Ce]=arguments[Ce+2];H.children=K}if(P&&P.defaultProps)for(ne in Z=P.defaultProps,Z)H[ne]===void 0&&(H[ne]=Z[ne]);return{$$typeof:n,type:P,key:V,ref:te,props:H,_owner:L.current}}function re(P,C){return{$$typeof:n,type:P.type,key:C,ref:P.ref,props:P.props,_owner:P._owner}}function me(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function ke(P){var C={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(Q){return C[Q]})}var oe=/\/+/g;function he(P,C){return typeof P=="object"&&P!==null&&P.key!=null?ke(""+P.key):C.toString(36)}function ve(P,C,Q,ne,H){var V=typeof P;(V==="undefined"||V==="boolean")&&(P=null);var te=!1;if(P===null)te=!0;else switch(V){case"string":case"number":te=!0;break;case"object":switch(P.$$typeof){case n:case r:te=!0}}if(te)return te=P,H=H(te),P=ne===""?"."+he(te,0):ne,N(H)?(Q="",P!=null&&(Q=P.replace(oe,"$&/")+"/"),ve(H,C,Q,"",function(Ce){return Ce})):H!=null&&(me(H)&&(H=re(H,Q+(!H.key||te&&te.key===H.key?"":(""+H.key).replace(oe,"$&/")+"/")+P)),C.push(H)),1;if(te=0,ne=ne===""?".":ne+":",N(P))for(var Z=0;Z<P.length;Z++){V=P[Z];var K=ne+he(V,Z);te+=ve(V,C,Q,K,H)}else if(K=w(P),typeof K=="function")for(P=K.call(P),Z=0;!(V=P.next()).done;)V=V.value,K=ne+he(V,Z++),te+=ve(V,C,Q,K,H);else if(V==="object")throw C=String(P),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.");return te}function Se(P,C,Q){if(P==null)return P;var ne=[],H=0;return ve(P,ne,"","",function(V){return C.call(Q,V,H++)}),ne}function ue(P){if(P._status===-1){var C=P._result;C=C(),C.then(function(Q){(P._status===0||P._status===-1)&&(P._status=1,P._result=Q)},function(Q){(P._status===0||P._status===-1)&&(P._status=2,P._result=Q)}),P._status===-1&&(P._status=0,P._result=C)}if(P._status===1)return P._result.default;throw P._result}var ie={current:null},B={transition:null},X={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:B,ReactCurrentOwner:L};function z(){throw Error("act(...) is not supported in production builds of React.")}return Ae.Children={map:Se,forEach:function(P,C,Q){Se(P,function(){C.apply(this,arguments)},Q)},count:function(P){var C=0;return Se(P,function(){C++}),C},toArray:function(P){return Se(P,function(C){return C})||[]},only:function(P){if(!me(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ae.Component=S,Ae.Fragment=o,Ae.Profiler=l,Ae.PureComponent=D,Ae.StrictMode=s,Ae.Suspense=h,Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,Ae.act=z,Ae.cloneElement=function(P,C,Q){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var ne=_({},P.props),H=P.key,V=P.ref,te=P._owner;if(C!=null){if(C.ref!==void 0&&(V=C.ref,te=L.current),C.key!==void 0&&(H=""+C.key),P.type&&P.type.defaultProps)var Z=P.type.defaultProps;for(K in C)U.call(C,K)&&!W.hasOwnProperty(K)&&(ne[K]=C[K]===void 0&&Z!==void 0?Z[K]:C[K])}var K=arguments.length-2;if(K===1)ne.children=Q;else if(1<K){Z=Array(K);for(var Ce=0;Ce<K;Ce++)Z[Ce]=arguments[Ce+2];ne.children=Z}return{$$typeof:n,type:P.type,key:H,ref:V,props:ne,_owner:te}},Ae.createContext=function(P){return P={$$typeof:d,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:u,_context:P},P.Consumer=P},Ae.createElement=F,Ae.createFactory=function(P){var C=F.bind(null,P);return C.type=P,C},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(P){return{$$typeof:p,render:P}},Ae.isValidElement=me,Ae.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:ue}},Ae.memo=function(P,C){return{$$typeof:v,type:P,compare:C===void 0?null:C}},Ae.startTransition=function(P){var C=B.transition;B.transition={};try{P()}finally{B.transition=C}},Ae.unstable_act=z,Ae.useCallback=function(P,C){return ie.current.useCallback(P,C)},Ae.useContext=function(P){return ie.current.useContext(P)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(P){return ie.current.useDeferredValue(P)},Ae.useEffect=function(P,C){return ie.current.useEffect(P,C)},Ae.useId=function(){return ie.current.useId()},Ae.useImperativeHandle=function(P,C,Q){return ie.current.useImperativeHandle(P,C,Q)},Ae.useInsertionEffect=function(P,C){return ie.current.useInsertionEffect(P,C)},Ae.useLayoutEffect=function(P,C){return ie.current.useLayoutEffect(P,C)},Ae.useMemo=function(P,C){return ie.current.useMemo(P,C)},Ae.useReducer=function(P,C,Q){return ie.current.useReducer(P,C,Q)},Ae.useRef=function(P){return ie.current.useRef(P)},Ae.useState=function(P){return ie.current.useState(P)},Ae.useSyncExternalStore=function(P,C,Q){return ie.current.useSyncExternalStore(P,C,Q)},Ae.useTransition=function(){return ie.current.useTransition()},Ae.version="18.3.1",Ae}var Dd;function fl(){return Dd||(Dd=1,dl.exports=Gg()),dl.exports}var m=fl();const ti=qg({__proto__:null,default:Kg(m)},[m]);var us={},pl={exports:{}},It={},ml={exports:{}},hl={};var Md;function Qg(){return Md||(Md=1,(function(n){function r(B,X){var z=B.length;B.push(X);e:for(;0<z;){var P=z-1>>>1,C=B[P];if(0<l(C,X))B[P]=X,B[z]=C,z=P;else break e}}function o(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var X=B[0],z=B.pop();if(z!==X){B[0]=z;e:for(var P=0,C=B.length,Q=C>>>1;P<Q;){var ne=2*(P+1)-1,H=B[ne],V=ne+1,te=B[V];if(0>l(H,z))V<C&&0>l(te,H)?(B[P]=te,B[V]=z,P=V):(B[P]=H,B[ne]=z,P=ne);else if(V<C&&0>l(te,z))B[P]=te,B[V]=z,P=V;else break e}}return X}function l(B,X){var z=B.sortIndex-X.sortIndex;return z!==0?z:B.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var h=[],v=[],y=1,x=null,w=3,E=!1,_=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(B){for(var X=o(v);X!==null;){if(X.callback===null)s(v);else if(X.startTime<=B)s(v),X.sortIndex=X.expirationTime,r(h,X);else break;X=o(v)}}function N(B){if(b=!1,T(B),!_)if(o(h)!==null)_=!0,ue(U);else{var X=o(v);X!==null&&ie(N,X.startTime-B)}}function U(B,X){_=!1,b&&(b=!1,A(F),F=-1),E=!0;var z=w;try{for(T(X),x=o(h);x!==null&&(!(x.expirationTime>X)||B&&!ke());){var P=x.callback;if(typeof P=="function"){x.callback=null,w=x.priorityLevel;var C=P(x.expirationTime<=X);X=n.unstable_now(),typeof C=="function"?x.callback=C:x===o(h)&&s(h),T(X)}else s(h);x=o(h)}if(x!==null)var Q=!0;else{var ne=o(v);ne!==null&&ie(N,ne.startTime-X),Q=!1}return Q}finally{x=null,w=z,E=!1}}var L=!1,W=null,F=-1,re=5,me=-1;function ke(){return!(n.unstable_now()-me<re)}function oe(){if(W!==null){var B=n.unstable_now();me=B;var X=!0;try{X=W(!0,B)}finally{X?he():(L=!1,W=null)}}else L=!1}var he;if(typeof D=="function")he=function(){D(oe)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Se=ve.port2;ve.port1.onmessage=oe,he=function(){Se.postMessage(null)}}else he=function(){S(oe,0)};function ue(B){W=B,L||(L=!0,he())}function ie(B,X){F=S(function(){B(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_continueExecution=function(){_||E||(_=!0,ue(U))},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_getFirstCallbackNode=function(){return o(h)},n.unstable_next=function(B){switch(w){case 1:case 2:case 3:var X=3;break;default:X=w}var z=w;w=X;try{return B()}finally{w=z}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var z=w;w=B;try{return X()}finally{w=z}},n.unstable_scheduleCallback=function(B,X,z){var P=n.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?P+z:P):z=P,B){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=z+C,B={id:y++,callback:X,priorityLevel:B,startTime:z,expirationTime:C,sortIndex:-1},z>P?(B.sortIndex=z,r(v,B),o(h)===null&&B===o(v)&&(b?(A(F),F=-1):b=!0,ie(N,z-P))):(B.sortIndex=C,r(h,B),_||E||(_=!0,ue(U))),B},n.unstable_shouldYield=ke,n.unstable_wrapCallback=function(B){var X=w;return function(){var z=w;w=X;try{return B.apply(this,arguments)}finally{w=z}}}})(hl)),hl}var Ld;function Yg(){return Ld||(Ld=1,ml.exports=Qg()),ml.exports}var jd;function Xg(){if(jd)return It;jd=1;var n=fl(),r=Yg();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,v=/^[: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]*$/,y={},x={};function w(e){return h.call(x,e)?!0:h.call(y,e)?!1:v.test(e)?x[e]=!0:(y[e]=!0,!1)}function E(e,t,i,a){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,i,a){if(t===null||typeof t>"u"||E(e,t,i,a))return!0;if(a)return!1;if(i!==null)switch(i.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function b(e,t,i,a,c,f,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=g}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new b(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A,D);S[t]=new b(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A,D);S[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A,D);S[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function T(e,t,i,a){var c=S.hasOwnProperty(t)?S[t]:null;(c!==null?c.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,i,c,a)&&(i=null),a||c===null?w(t)&&(i===null?e.removeAttribute(t):e.setAttribute(t,""+i)):c.mustUseProperty?e[c.propertyName]=i===null?c.type===3?!1:"":i:(t=c.attributeName,a=c.attributeNamespace,i===null?e.removeAttribute(t):(c=c.type,i=c===3||c===4&&i===!0?"":""+i,a?e.setAttributeNS(a,t,i):e.setAttribute(t,i))))}var N=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),L=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),ke=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),B=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var z=Object.assign,P;function C(e){if(P===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
|
|
1
|
+
(function(){"use strict";function Gg(n,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in n)){const u=Object.getOwnPropertyDescriptor(s,l);u&&Object.defineProperty(n,l,u.get?u:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Qg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dl={exports:{}},Ae={};var Dd;function Yg(){if(Dd)return Ae;Dd=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=x&&P[x]||P["@@iterator"],typeof P=="function"?P:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,E={};function S(P,C,Q){this.props=P,this.context=C,this.refs=E,this.updater=Q||b}S.prototype.isReactComponent={},S.prototype.setState=function(P,C){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,C,"setState")},S.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function A(){}A.prototype=S.prototype;function D(P,C,Q){this.props=P,this.context=C,this.refs=E,this.updater=Q||b}var T=D.prototype=new A;T.constructor=D,_(T,S.prototype),T.isPureReactComponent=!0;var N=Array.isArray,U=Object.prototype.hasOwnProperty,L={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function F(P,C,Q){var ne,H={},V=null,te=null;if(C!=null)for(ne in C.ref!==void 0&&(te=C.ref),C.key!==void 0&&(V=""+C.key),C)U.call(C,ne)&&!W.hasOwnProperty(ne)&&(H[ne]=C[ne]);var Z=arguments.length-2;if(Z===1)H.children=Q;else if(1<Z){for(var K=Array(Z),Ce=0;Ce<Z;Ce++)K[Ce]=arguments[Ce+2];H.children=K}if(P&&P.defaultProps)for(ne in Z=P.defaultProps,Z)H[ne]===void 0&&(H[ne]=Z[ne]);return{$$typeof:n,type:P,key:V,ref:te,props:H,_owner:L.current}}function re(P,C){return{$$typeof:n,type:P.type,key:C,ref:P.ref,props:P.props,_owner:P._owner}}function me(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function ke(P){var C={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(Q){return C[Q]})}var oe=/\/+/g;function he(P,C){return typeof P=="object"&&P!==null&&P.key!=null?ke(""+P.key):C.toString(36)}function ve(P,C,Q,ne,H){var V=typeof P;(V==="undefined"||V==="boolean")&&(P=null);var te=!1;if(P===null)te=!0;else switch(V){case"string":case"number":te=!0;break;case"object":switch(P.$$typeof){case n:case r:te=!0}}if(te)return te=P,H=H(te),P=ne===""?"."+he(te,0):ne,N(H)?(Q="",P!=null&&(Q=P.replace(oe,"$&/")+"/"),ve(H,C,Q,"",function(Ce){return Ce})):H!=null&&(me(H)&&(H=re(H,Q+(!H.key||te&&te.key===H.key?"":(""+H.key).replace(oe,"$&/")+"/")+P)),C.push(H)),1;if(te=0,ne=ne===""?".":ne+":",N(P))for(var Z=0;Z<P.length;Z++){V=P[Z];var K=ne+he(V,Z);te+=ve(V,C,Q,K,H)}else if(K=w(P),typeof K=="function")for(P=K.call(P),Z=0;!(V=P.next()).done;)V=V.value,K=ne+he(V,Z++),te+=ve(V,C,Q,K,H);else if(V==="object")throw C=String(P),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.");return te}function _e(P,C,Q){if(P==null)return P;var ne=[],H=0;return ve(P,ne,"","",function(V){return C.call(Q,V,H++)}),ne}function ue(P){if(P._status===-1){var C=P._result;C=C(),C.then(function(Q){(P._status===0||P._status===-1)&&(P._status=1,P._result=Q)},function(Q){(P._status===0||P._status===-1)&&(P._status=2,P._result=Q)}),P._status===-1&&(P._status=0,P._result=C)}if(P._status===1)return P._result.default;throw P._result}var se={current:null},B={transition:null},X={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:B,ReactCurrentOwner:L};function z(){throw Error("act(...) is not supported in production builds of React.")}return Ae.Children={map:_e,forEach:function(P,C,Q){_e(P,function(){C.apply(this,arguments)},Q)},count:function(P){var C=0;return _e(P,function(){C++}),C},toArray:function(P){return _e(P,function(C){return C})||[]},only:function(P){if(!me(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ae.Component=S,Ae.Fragment=o,Ae.Profiler=l,Ae.PureComponent=D,Ae.StrictMode=s,Ae.Suspense=h,Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,Ae.act=z,Ae.cloneElement=function(P,C,Q){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var ne=_({},P.props),H=P.key,V=P.ref,te=P._owner;if(C!=null){if(C.ref!==void 0&&(V=C.ref,te=L.current),C.key!==void 0&&(H=""+C.key),P.type&&P.type.defaultProps)var Z=P.type.defaultProps;for(K in C)U.call(C,K)&&!W.hasOwnProperty(K)&&(ne[K]=C[K]===void 0&&Z!==void 0?Z[K]:C[K])}var K=arguments.length-2;if(K===1)ne.children=Q;else if(1<K){Z=Array(K);for(var Ce=0;Ce<K;Ce++)Z[Ce]=arguments[Ce+2];ne.children=Z}return{$$typeof:n,type:P.type,key:H,ref:V,props:ne,_owner:te}},Ae.createContext=function(P){return P={$$typeof:d,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:u,_context:P},P.Consumer=P},Ae.createElement=F,Ae.createFactory=function(P){var C=F.bind(null,P);return C.type=P,C},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(P){return{$$typeof:p,render:P}},Ae.isValidElement=me,Ae.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:ue}},Ae.memo=function(P,C){return{$$typeof:v,type:P,compare:C===void 0?null:C}},Ae.startTransition=function(P){var C=B.transition;B.transition={};try{P()}finally{B.transition=C}},Ae.unstable_act=z,Ae.useCallback=function(P,C){return se.current.useCallback(P,C)},Ae.useContext=function(P){return se.current.useContext(P)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(P){return se.current.useDeferredValue(P)},Ae.useEffect=function(P,C){return se.current.useEffect(P,C)},Ae.useId=function(){return se.current.useId()},Ae.useImperativeHandle=function(P,C,Q){return se.current.useImperativeHandle(P,C,Q)},Ae.useInsertionEffect=function(P,C){return se.current.useInsertionEffect(P,C)},Ae.useLayoutEffect=function(P,C){return se.current.useLayoutEffect(P,C)},Ae.useMemo=function(P,C){return se.current.useMemo(P,C)},Ae.useReducer=function(P,C,Q){return se.current.useReducer(P,C,Q)},Ae.useRef=function(P){return se.current.useRef(P)},Ae.useState=function(P){return se.current.useState(P)},Ae.useSyncExternalStore=function(P,C,Q){return se.current.useSyncExternalStore(P,C,Q)},Ae.useTransition=function(){return se.current.useTransition()},Ae.version="18.3.1",Ae}var Md;function fl(){return Md||(Md=1,dl.exports=Yg()),dl.exports}var m=fl();const ti=Gg({__proto__:null,default:Qg(m)},[m]);var us={},pl={exports:{}},It={},ml={exports:{}},hl={};var Ld;function Xg(){return Ld||(Ld=1,(function(n){function r(B,X){var z=B.length;B.push(X);e:for(;0<z;){var P=z-1>>>1,C=B[P];if(0<l(C,X))B[P]=X,B[z]=C,z=P;else break e}}function o(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var X=B[0],z=B.pop();if(z!==X){B[0]=z;e:for(var P=0,C=B.length,Q=C>>>1;P<Q;){var ne=2*(P+1)-1,H=B[ne],V=ne+1,te=B[V];if(0>l(H,z))V<C&&0>l(te,H)?(B[P]=te,B[V]=z,P=V):(B[P]=H,B[ne]=z,P=ne);else if(V<C&&0>l(te,z))B[P]=te,B[V]=z,P=V;else break e}}return X}function l(B,X){var z=B.sortIndex-X.sortIndex;return z!==0?z:B.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var h=[],v=[],y=1,x=null,w=3,b=!1,_=!1,E=!1,S=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(B){for(var X=o(v);X!==null;){if(X.callback===null)s(v);else if(X.startTime<=B)s(v),X.sortIndex=X.expirationTime,r(h,X);else break;X=o(v)}}function N(B){if(E=!1,T(B),!_)if(o(h)!==null)_=!0,ue(U);else{var X=o(v);X!==null&&se(N,X.startTime-B)}}function U(B,X){_=!1,E&&(E=!1,A(F),F=-1),b=!0;var z=w;try{for(T(X),x=o(h);x!==null&&(!(x.expirationTime>X)||B&&!ke());){var P=x.callback;if(typeof P=="function"){x.callback=null,w=x.priorityLevel;var C=P(x.expirationTime<=X);X=n.unstable_now(),typeof C=="function"?x.callback=C:x===o(h)&&s(h),T(X)}else s(h);x=o(h)}if(x!==null)var Q=!0;else{var ne=o(v);ne!==null&&se(N,ne.startTime-X),Q=!1}return Q}finally{x=null,w=z,b=!1}}var L=!1,W=null,F=-1,re=5,me=-1;function ke(){return!(n.unstable_now()-me<re)}function oe(){if(W!==null){var B=n.unstable_now();me=B;var X=!0;try{X=W(!0,B)}finally{X?he():(L=!1,W=null)}}else L=!1}var he;if(typeof D=="function")he=function(){D(oe)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,_e=ve.port2;ve.port1.onmessage=oe,he=function(){_e.postMessage(null)}}else he=function(){S(oe,0)};function ue(B){W=B,L||(L=!0,he())}function se(B,X){F=S(function(){B(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_continueExecution=function(){_||b||(_=!0,ue(U))},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_getFirstCallbackNode=function(){return o(h)},n.unstable_next=function(B){switch(w){case 1:case 2:case 3:var X=3;break;default:X=w}var z=w;w=X;try{return B()}finally{w=z}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var z=w;w=B;try{return X()}finally{w=z}},n.unstable_scheduleCallback=function(B,X,z){var P=n.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?P+z:P):z=P,B){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=z+C,B={id:y++,callback:X,priorityLevel:B,startTime:z,expirationTime:C,sortIndex:-1},z>P?(B.sortIndex=z,r(v,B),o(h)===null&&B===o(v)&&(E?(A(F),F=-1):E=!0,se(N,z-P))):(B.sortIndex=C,r(h,B),_||b||(_=!0,ue(U))),B},n.unstable_shouldYield=ke,n.unstable_wrapCallback=function(B){var X=w;return function(){var z=w;w=X;try{return B.apply(this,arguments)}finally{w=z}}}})(hl)),hl}var jd;function Jg(){return jd||(jd=1,ml.exports=Xg()),ml.exports}var zd;function ey(){if(zd)return It;zd=1;var n=fl(),r=Jg();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,v=/^[: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]*$/,y={},x={};function w(e){return h.call(x,e)?!0:h.call(y,e)?!1:v.test(e)?x[e]=!0:(y[e]=!0,!1)}function b(e,t,i,a){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,i,a){if(t===null||typeof t>"u"||b(e,t,i,a))return!0;if(a)return!1;if(i!==null)switch(i.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function E(e,t,i,a,c,f,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=g}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new E(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new E(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A,D);S[t]=new E(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A,D);S[t]=new E(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A,D);S[t]=new E(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function T(e,t,i,a){var c=S.hasOwnProperty(t)?S[t]:null;(c!==null?c.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,i,c,a)&&(i=null),a||c===null?w(t)&&(i===null?e.removeAttribute(t):e.setAttribute(t,""+i)):c.mustUseProperty?e[c.propertyName]=i===null?c.type===3?!1:"":i:(t=c.attributeName,a=c.attributeNamespace,i===null?e.removeAttribute(t):(c=c.type,i=c===3||c===4&&i===!0?"":""+i,a?e.setAttributeNS(a,t,i):e.setAttribute(t,i))))}var N=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),L=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),ke=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),B=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var z=Object.assign,P;function C(e){if(P===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
|
|
2
2
|
`+P+e}var Q=!1;function ne(e,t){if(!e||Q)return"";Q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch($){var a=$}Reflect.construct(e,[],t)}else{try{t.call()}catch($){a=$}e.call(t.prototype)}else{try{throw Error()}catch($){a=$}e()}}catch($){if($&&a&&typeof $.stack=="string"){for(var c=$.stack.split(`
|
|
3
3
|
`),f=a.stack.split(`
|
|
4
4
|
`),g=c.length-1,k=f.length-1;1<=g&&0<=k&&c[g]!==f[k];)k--;for(;1<=g&&0<=k;g--,k--)if(c[g]!==f[k]){if(g!==1||k!==1)do if(g--,k--,0>k||c[g]!==f[k]){var R=`
|
|
5
|
-
`+c[g].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=g&&0<=k);break}}}finally{Q=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?C(e):""}function H(e){switch(e.tag){case 5:return C(e.type);case 16:return C("Lazy");case 13:return C("Suspense");case 19:return C("SuspenseList");case 0:case 2:case 15:return e=ne(e.type,!1),e;case 11:return e=ne(e.type.render,!1),e;case 1:return e=ne(e.type,!0),e;default:return""}}function V(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case L:return"Portal";case re:return"Profiler";case F:return"StrictMode";case he:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ke:return(e.displayName||"Context")+".Consumer";case me:return(e._context.displayName||"Context")+".Provider";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Se:return t=e.displayName||null,t!==null?t:V(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return V(e(t))}catch{}}return null}function te(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===F?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=K(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,f=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){e._valueTracker||(e._valueTracker=Ce(e))}function Me(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),a="";return e&&(a=K(e)?e.checked?"true":"false":e.value),e=a,e!==i?(t.setValue(e),!0):!1}function Le(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ft(e,t){var i=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function bt(e,t){var i=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;i=Z(t.value!=null?t.value:i),e._wrapperState={initialChecked:a,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Io(e,t){t=t.checked,t!=null&&T(e,"checked",t,!1)}function qr(e,t){Io(e,t);var i=Z(t.value),a=t.type;if(i!=null)a==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Uu(e,t.type,i):t.hasOwnProperty("defaultValue")&&Uu(e,t.type,Z(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Po(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function Uu(e,t,i){(t!=="number"||Le(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Ei=Array.isArray;function No(e,t,i,a){if(e=e.options,t){t={};for(var c=0;c<i.length;c++)t["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=t.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&a&&(e[i].defaultSelected=!0)}else{for(i=""+Z(i),t=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Bu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rh(e,t){var i=t.value;if(i==null){if(i=t.children,t=t.defaultValue,i!=null){if(t!=null)throw Error(o(92));if(Ei(i)){if(1<i.length)throw Error(o(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:Z(i)}}function oh(e,t){var i=Z(t.value),a=Z(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),a!=null&&(e.defaultValue=""+a)}function ih(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function sh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Wu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ra,ah=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,a,c){MSApp.execUnsafeLocalFunction(function(){return e(t,i,a,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ra=ra||document.createElement("div"),ra.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ra.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bi(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Ci={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$k=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(e){$k.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ci[t]=Ci[e]})});function lh(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Ci.hasOwnProperty(e)&&Ci[e]?(""+t).trim():t+"px"}function uh(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var a=i.indexOf("--")===0,c=lh(i,t[i],a);i==="float"&&(i="cssFloat"),a?e.setProperty(i,c):e[i]=c}}var Vk=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hu(e,t){if(t){if(Vk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Zu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qu=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gu=null,Oo=null,To=null;function ch(e){if(e=Ki(e)){if(typeof Gu!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Ca(t),Gu(e.stateNode,e.type,t))}}function dh(e){Oo?To?To.push(e):To=[e]:Oo=e}function fh(){if(Oo){var e=Oo,t=To;if(To=Oo=null,ch(e),t)for(e=0;e<t.length;e++)ch(t[e])}}function ph(e,t){return e(t)}function mh(){}var Qu=!1;function hh(e,t,i){if(Qu)return e(t,i);Qu=!0;try{return ph(e,t,i)}finally{Qu=!1,(Oo!==null||To!==null)&&(mh(),fh())}}function Ri(e,t){var i=e.stateNode;if(i===null)return null;var a=Ca(i);if(a===null)return null;i=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var Yu=!1;if(p)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{Yu=!1}function Uk(e,t,i,a,c,f,g,k,R){var $=Array.prototype.slice.call(arguments,3);try{t.apply(i,$)}catch(G){this.onError(G)}}var Pi=!1,oa=null,ia=!1,Xu=null,Bk={onError:function(e){Pi=!0,oa=e}};function Wk(e,t,i,a,c,f,g,k,R){Pi=!1,oa=null,Uk.apply(Bk,arguments)}function Hk(e,t,i,a,c,f,g,k,R){if(Wk.apply(this,arguments),Pi){if(Pi){var $=oa;Pi=!1,oa=null}else throw Error(o(198));ia||(ia=!0,Xu=$)}}function Kr(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function vh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function gh(e){if(Kr(e)!==e)throw Error(o(188))}function Zk(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(o(188));return t!==e?null:e}for(var i=e,a=t;;){var c=i.return;if(c===null)break;var f=c.alternate;if(f===null){if(a=c.return,a!==null){i=a;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===i)return gh(c),e;if(f===a)return gh(c),t;f=f.sibling}throw Error(o(188))}if(i.return!==a.return)i=c,a=f;else{for(var g=!1,k=c.child;k;){if(k===i){g=!0,i=c,a=f;break}if(k===a){g=!0,a=c,i=f;break}k=k.sibling}if(!g){for(k=f.child;k;){if(k===i){g=!0,i=f,a=c;break}if(k===a){g=!0,a=f,i=c;break}k=k.sibling}if(!g)throw Error(o(189))}}if(i.alternate!==a)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:t}function yh(e){return e=Zk(e),e!==null?xh(e):null}function xh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xh(e);if(t!==null)return t;e=e.sibling}return null}var wh=r.unstable_scheduleCallback,Sh=r.unstable_cancelCallback,qk=r.unstable_shouldYield,Kk=r.unstable_requestPaint,tt=r.unstable_now,Gk=r.unstable_getCurrentPriorityLevel,Ju=r.unstable_ImmediatePriority,_h=r.unstable_UserBlockingPriority,sa=r.unstable_NormalPriority,Qk=r.unstable_LowPriority,kh=r.unstable_IdlePriority,aa=null,wn=null;function Yk(e){if(wn&&typeof wn.onCommitFiberRoot=="function")try{wn.onCommitFiberRoot(aa,e,void 0,(e.current.flags&128)===128)}catch{}}var tn=Math.clz32?Math.clz32:eE,Xk=Math.log,Jk=Math.LN2;function eE(e){return e>>>=0,e===0?32:31-(Xk(e)/Jk|0)|0}var la=64,ua=4194304;function Ni(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ca(e,t){var i=e.pendingLanes;if(i===0)return 0;var a=0,c=e.suspendedLanes,f=e.pingedLanes,g=i&268435455;if(g!==0){var k=g&~c;k!==0?a=Ni(k):(f&=g,f!==0&&(a=Ni(f)))}else g=i&~c,g!==0?a=Ni(g):f!==0&&(a=Ni(f));if(a===0)return 0;if(t!==0&&t!==a&&(t&c)===0&&(c=a&-a,f=t&-t,c>=f||c===16&&(f&4194240)!==0))return t;if((a&4)!==0&&(a|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)i=31-tn(t),c=1<<i,a|=e[i],t&=~c;return a}function tE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nE(e,t){for(var i=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes;0<f;){var g=31-tn(f),k=1<<g,R=c[g];R===-1?((k&i)===0||(k&a)!==0)&&(c[g]=tE(k,t)):R<=t&&(e.expiredLanes|=k),f&=~k}}function ec(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Eh(){var e=la;return la<<=1,(la&4194240)===0&&(la=64),e}function tc(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Oi(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tn(t),e[t]=i}function rE(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<i;){var c=31-tn(i),f=1<<c;t[c]=0,a[c]=-1,e[c]=-1,i&=~f}}function nc(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var a=31-tn(i),c=1<<a;c&t|e[a]&t&&(e[a]|=t),i&=~c}}var We=0;function bh(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ch,rc,Rh,Ih,Ph,oc=!1,da=[],dr=null,fr=null,pr=null,Ti=new Map,Ai=new Map,mr=[],oE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nh(e,t){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":Ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ai.delete(t.pointerId)}}function Di(e,t,i,a,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:i,eventSystemFlags:a,nativeEvent:f,targetContainers:[c]},t!==null&&(t=Ki(t),t!==null&&rc(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function iE(e,t,i,a,c){switch(t){case"focusin":return dr=Di(dr,e,t,i,a,c),!0;case"dragenter":return fr=Di(fr,e,t,i,a,c),!0;case"mouseover":return pr=Di(pr,e,t,i,a,c),!0;case"pointerover":var f=c.pointerId;return Ti.set(f,Di(Ti.get(f)||null,e,t,i,a,c)),!0;case"gotpointercapture":return f=c.pointerId,Ai.set(f,Di(Ai.get(f)||null,e,t,i,a,c)),!0}return!1}function Oh(e){var t=Gr(e.target);if(t!==null){var i=Kr(t);if(i!==null){if(t=i.tag,t===13){if(t=vh(i),t!==null){e.blockedOn=t,Ph(e.priority,function(){Rh(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=sc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var a=new i.constructor(i.type,i);qu=a,i.target.dispatchEvent(a),qu=null}else return t=Ki(i),t!==null&&rc(t),e.blockedOn=i,!1;t.shift()}return!0}function Th(e,t,i){fa(e)&&i.delete(t)}function sE(){oc=!1,dr!==null&&fa(dr)&&(dr=null),fr!==null&&fa(fr)&&(fr=null),pr!==null&&fa(pr)&&(pr=null),Ti.forEach(Th),Ai.forEach(Th)}function Mi(e,t){e.blockedOn===t&&(e.blockedOn=null,oc||(oc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,sE)))}function Li(e){function t(c){return Mi(c,e)}if(0<da.length){Mi(da[0],e);for(var i=1;i<da.length;i++){var a=da[i];a.blockedOn===e&&(a.blockedOn=null)}}for(dr!==null&&Mi(dr,e),fr!==null&&Mi(fr,e),pr!==null&&Mi(pr,e),Ti.forEach(t),Ai.forEach(t),i=0;i<mr.length;i++)a=mr[i],a.blockedOn===e&&(a.blockedOn=null);for(;0<mr.length&&(i=mr[0],i.blockedOn===null);)Oh(i),i.blockedOn===null&&mr.shift()}var Ao=N.ReactCurrentBatchConfig,pa=!0;function aE(e,t,i,a){var c=We,f=Ao.transition;Ao.transition=null;try{We=1,ic(e,t,i,a)}finally{We=c,Ao.transition=f}}function lE(e,t,i,a){var c=We,f=Ao.transition;Ao.transition=null;try{We=4,ic(e,t,i,a)}finally{We=c,Ao.transition=f}}function ic(e,t,i,a){if(pa){var c=sc(e,t,i,a);if(c===null)kc(e,t,a,ma,i),Nh(e,a);else if(iE(c,e,t,i,a))a.stopPropagation();else if(Nh(e,a),t&4&&-1<oE.indexOf(e)){for(;c!==null;){var f=Ki(c);if(f!==null&&Ch(f),f=sc(e,t,i,a),f===null&&kc(e,t,a,ma,i),f===c)break;c=f}c!==null&&a.stopPropagation()}else kc(e,t,a,null,i)}}var ma=null;function sc(e,t,i,a){if(ma=null,e=Ku(a),e=Gr(e),e!==null)if(t=Kr(e),t===null)e=null;else if(i=t.tag,i===13){if(e=vh(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ma=e,null}function Ah(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Gk()){case Ju:return 1;case _h:return 4;case sa:case Qk:return 16;case kh:return 536870912;default:return 16}default:return 16}}var hr=null,ac=null,ha=null;function Dh(){if(ha)return ha;var e,t=ac,i=t.length,a,c="value"in hr?hr.value:hr.textContent,f=c.length;for(e=0;e<i&&t[e]===c[e];e++);var g=i-e;for(a=1;a<=g&&t[i-a]===c[f-a];a++);return ha=c.slice(e,1<a?1-a:void 0)}function va(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ga(){return!0}function Mh(){return!1}function Ft(e){function t(i,a,c,f,g){this._reactName=i,this._targetInst=c,this.type=a,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(i=e[k],this[k]=i?i(f):f[k]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ga:Mh,this.isPropagationStopped=Mh,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ga)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ga)},persist:function(){},isPersistent:ga}),t}var Do={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lc=Ft(Do),ji=z({},Do,{view:0,detail:0}),uE=Ft(ji),uc,cc,zi,ya=z({},ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zi&&(zi&&e.type==="mousemove"?(uc=e.screenX-zi.screenX,cc=e.screenY-zi.screenY):cc=uc=0,zi=e),uc)},movementY:function(e){return"movementY"in e?e.movementY:cc}}),Lh=Ft(ya),cE=z({},ya,{dataTransfer:0}),dE=Ft(cE),fE=z({},ji,{relatedTarget:0}),dc=Ft(fE),pE=z({},Do,{animationName:0,elapsedTime:0,pseudoElement:0}),mE=Ft(pE),hE=z({},Do,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vE=Ft(hE),gE=z({},Do,{data:0}),jh=Ft(gE),yE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xE={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"},wE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wE[e])?!!t[e]:!1}function fc(){return SE}var _E=z({},ji,{key:function(e){if(e.key){var t=yE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=va(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fc,charCode:function(e){return e.type==="keypress"?va(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?va(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kE=Ft(_E),EE=z({},ya,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zh=Ft(EE),bE=z({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fc}),CE=Ft(bE),RE=z({},Do,{propertyName:0,elapsedTime:0,pseudoElement:0}),IE=Ft(RE),PE=z({},ya,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),NE=Ft(PE),OE=[9,13,27,32],pc=p&&"CompositionEvent"in window,Fi=null;p&&"documentMode"in document&&(Fi=document.documentMode);var TE=p&&"TextEvent"in window&&!Fi,Fh=p&&(!pc||Fi&&8<Fi&&11>=Fi),$h=" ",Vh=!1;function Uh(e,t){switch(e){case"keyup":return OE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mo=!1;function AE(e,t){switch(e){case"compositionend":return Bh(t);case"keypress":return t.which!==32?null:(Vh=!0,$h);case"textInput":return e=t.data,e===$h&&Vh?null:e;default:return null}}function DE(e,t){if(Mo)return e==="compositionend"||!pc&&Uh(e,t)?(e=Dh(),ha=ac=hr=null,Mo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fh&&t.locale!=="ko"?null:t.data;default:return null}}var ME={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 Wh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ME[e.type]:t==="textarea"}function Hh(e,t,i,a){dh(a),t=ka(t,"onChange"),0<t.length&&(i=new lc("onChange","change",null,i,a),e.push({event:i,listeners:t}))}var $i=null,Vi=null;function LE(e){uv(e,0)}function xa(e){var t=$o(e);if(Me(t))return e}function jE(e,t){if(e==="change")return t}var Zh=!1;if(p){var mc;if(p){var hc="oninput"in document;if(!hc){var qh=document.createElement("div");qh.setAttribute("oninput","return;"),hc=typeof qh.oninput=="function"}mc=hc}else mc=!1;Zh=mc&&(!document.documentMode||9<document.documentMode)}function Kh(){$i&&($i.detachEvent("onpropertychange",Gh),Vi=$i=null)}function Gh(e){if(e.propertyName==="value"&&xa(Vi)){var t=[];Hh(t,Vi,e,Ku(e)),hh(LE,t)}}function zE(e,t,i){e==="focusin"?(Kh(),$i=t,Vi=i,$i.attachEvent("onpropertychange",Gh)):e==="focusout"&&Kh()}function FE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xa(Vi)}function $E(e,t){if(e==="click")return xa(t)}function VE(e,t){if(e==="input"||e==="change")return xa(t)}function UE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:UE;function Ui(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var c=i[a];if(!h.call(t,c)||!nn(e[c],t[c]))return!1}return!0}function Qh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yh(e,t){var i=Qh(e);e=0;for(var a;i;){if(i.nodeType===3){if(a=e+i.textContent.length,e<=t&&a>=t)return{node:i,offset:t-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Qh(i)}}function Xh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jh(){for(var e=window,t=Le();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Le(e.document)}return t}function vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function BE(e){var t=Jh(),i=e.focusedElem,a=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&Xh(i.ownerDocument.documentElement,i)){if(a!==null&&vc(i)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=i.textContent.length,f=Math.min(a.start,c);a=a.end===void 0?f:Math.min(a.end,c),!e.extend&&f>a&&(c=a,a=f,f=c),c=Yh(i,f);var g=Yh(i,a);c&&g&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),f>a?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)e=t[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var WE=p&&"documentMode"in document&&11>=document.documentMode,Lo=null,gc=null,Bi=null,yc=!1;function ev(e,t,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;yc||Lo==null||Lo!==Le(a)||(a=Lo,"selectionStart"in a&&vc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Bi&&Ui(Bi,a)||(Bi=a,a=ka(gc,"onSelect"),0<a.length&&(t=new lc("onSelect","select",null,t,i),e.push({event:t,listeners:a}),t.target=Lo)))}function wa(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var jo={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionend:wa("Transition","TransitionEnd")},xc={},tv={};p&&(tv=document.createElement("div").style,"AnimationEvent"in window||(delete jo.animationend.animation,delete jo.animationiteration.animation,delete jo.animationstart.animation),"TransitionEvent"in window||delete jo.transitionend.transition);function Sa(e){if(xc[e])return xc[e];if(!jo[e])return e;var t=jo[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in tv)return xc[e]=t[i];return e}var nv=Sa("animationend"),rv=Sa("animationiteration"),ov=Sa("animationstart"),iv=Sa("transitionend"),sv=new Map,av="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vr(e,t){sv.set(e,t),u(t,[e])}for(var wc=0;wc<av.length;wc++){var Sc=av[wc],HE=Sc.toLowerCase(),ZE=Sc[0].toUpperCase()+Sc.slice(1);vr(HE,"on"+ZE)}vr(nv,"onAnimationEnd"),vr(rv,"onAnimationIteration"),vr(ov,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(iv,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wi="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(" "),qE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wi));function lv(e,t,i){var a=e.type||"unknown-event";e.currentTarget=i,Hk(a,t,void 0,e),e.currentTarget=null}function uv(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var a=e[i],c=a.event;a=a.listeners;e:{var f=void 0;if(t)for(var g=a.length-1;0<=g;g--){var k=a[g],R=k.instance,$=k.currentTarget;if(k=k.listener,R!==f&&c.isPropagationStopped())break e;lv(c,k,$),f=R}else for(g=0;g<a.length;g++){if(k=a[g],R=k.instance,$=k.currentTarget,k=k.listener,R!==f&&c.isPropagationStopped())break e;lv(c,k,$),f=R}}}if(ia)throw e=Xu,ia=!1,Xu=null,e}function qe(e,t){var i=t[Pc];i===void 0&&(i=t[Pc]=new Set);var a=e+"__bubble";i.has(a)||(cv(t,e,2,!1),i.add(a))}function _c(e,t,i){var a=0;t&&(a|=4),cv(i,e,a,t)}var _a="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[_a]){e[_a]=!0,s.forEach(function(i){i!=="selectionchange"&&(qE.has(i)||_c(i,!1,e),_c(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_a]||(t[_a]=!0,_c("selectionchange",!1,t))}}function cv(e,t,i,a){switch(Ah(t)){case 1:var c=aE;break;case 4:c=lE;break;default:c=ic}i=c.bind(null,t,i,e),c=void 0,!Yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?c!==void 0?e.addEventListener(t,i,{capture:!0,passive:c}):e.addEventListener(t,i,!0):c!==void 0?e.addEventListener(t,i,{passive:c}):e.addEventListener(t,i,!1)}function kc(e,t,i,a,c){var f=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var k=a.stateNode.containerInfo;if(k===c||k.nodeType===8&&k.parentNode===c)break;if(g===4)for(g=a.return;g!==null;){var R=g.tag;if((R===3||R===4)&&(R=g.stateNode.containerInfo,R===c||R.nodeType===8&&R.parentNode===c))return;g=g.return}for(;k!==null;){if(g=Gr(k),g===null)return;if(R=g.tag,R===5||R===6){a=f=g;continue e}k=k.parentNode}}a=a.return}hh(function(){var $=f,G=Ku(i),Y=[];e:{var q=sv.get(e);if(q!==void 0){var le=lc,ge=e;switch(e){case"keypress":if(va(i)===0)break e;case"keydown":case"keyup":le=kE;break;case"focusin":ge="focus",le=dc;break;case"focusout":ge="blur",le=dc;break;case"beforeblur":case"afterblur":le=dc;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":le=Lh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=dE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=CE;break;case nv:case rv:case ov:le=mE;break;case iv:le=IE;break;case"scroll":le=uE;break;case"wheel":le=NE;break;case"copy":case"cut":case"paste":le=vE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=zh}var ye=(t&4)!==0,nt=!ye&&e==="scroll",M=ye?q!==null?q+"Capture":null:q;ye=[];for(var I=$,j;I!==null;){j=I;var ee=j.stateNode;if(j.tag===5&&ee!==null&&(j=ee,M!==null&&(ee=Ri(I,M),ee!=null&&ye.push(Zi(I,ee,j)))),nt)break;I=I.return}0<ye.length&&(q=new le(q,ge,null,i,G),Y.push({event:q,listeners:ye}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",le=e==="mouseout"||e==="pointerout",q&&i!==qu&&(ge=i.relatedTarget||i.fromElement)&&(Gr(ge)||ge[Bn]))break e;if((le||q)&&(q=G.window===G?G:(q=G.ownerDocument)?q.defaultView||q.parentWindow:window,le?(ge=i.relatedTarget||i.toElement,le=$,ge=ge?Gr(ge):null,ge!==null&&(nt=Kr(ge),ge!==nt||ge.tag!==5&&ge.tag!==6)&&(ge=null)):(le=null,ge=$),le!==ge)){if(ye=Lh,ee="onMouseLeave",M="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(ye=zh,ee="onPointerLeave",M="onPointerEnter",I="pointer"),nt=le==null?q:$o(le),j=ge==null?q:$o(ge),q=new ye(ee,I+"leave",le,i,G),q.target=nt,q.relatedTarget=j,ee=null,Gr(G)===$&&(ye=new ye(M,I+"enter",ge,i,G),ye.target=j,ye.relatedTarget=nt,ee=ye),nt=ee,le&&ge)t:{for(ye=le,M=ge,I=0,j=ye;j;j=zo(j))I++;for(j=0,ee=M;ee;ee=zo(ee))j++;for(;0<I-j;)ye=zo(ye),I--;for(;0<j-I;)M=zo(M),j--;for(;I--;){if(ye===M||M!==null&&ye===M.alternate)break t;ye=zo(ye),M=zo(M)}ye=null}else ye=null;le!==null&&dv(Y,q,le,ye,!1),ge!==null&&nt!==null&&dv(Y,nt,ge,ye,!0)}}e:{if(q=$?$o($):window,le=q.nodeName&&q.nodeName.toLowerCase(),le==="select"||le==="input"&&q.type==="file")var we=jE;else if(Wh(q))if(Zh)we=VE;else{we=FE;var Ee=zE}else(le=q.nodeName)&&le.toLowerCase()==="input"&&(q.type==="checkbox"||q.type==="radio")&&(we=$E);if(we&&(we=we(e,$))){Hh(Y,we,i,G);break e}Ee&&Ee(e,q,$),e==="focusout"&&(Ee=q._wrapperState)&&Ee.controlled&&q.type==="number"&&Uu(q,"number",q.value)}switch(Ee=$?$o($):window,e){case"focusin":(Wh(Ee)||Ee.contentEditable==="true")&&(Lo=Ee,gc=$,Bi=null);break;case"focusout":Bi=gc=Lo=null;break;case"mousedown":yc=!0;break;case"contextmenu":case"mouseup":case"dragend":yc=!1,ev(Y,i,G);break;case"selectionchange":if(WE)break;case"keydown":case"keyup":ev(Y,i,G)}var be;if(pc)e:{switch(e){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else Mo?Uh(e,i)&&(Pe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Pe="onCompositionStart");Pe&&(Fh&&i.locale!=="ko"&&(Mo||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&Mo&&(be=Dh()):(hr=G,ac="value"in hr?hr.value:hr.textContent,Mo=!0)),Ee=ka($,Pe),0<Ee.length&&(Pe=new jh(Pe,e,null,i,G),Y.push({event:Pe,listeners:Ee}),be?Pe.data=be:(be=Bh(i),be!==null&&(Pe.data=be)))),(be=TE?AE(e,i):DE(e,i))&&($=ka($,"onBeforeInput"),0<$.length&&(G=new jh("onBeforeInput","beforeinput",null,i,G),Y.push({event:G,listeners:$}),G.data=be))}uv(Y,t)})}function Zi(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ka(e,t){for(var i=t+"Capture",a=[];e!==null;){var c=e,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=Ri(e,i),f!=null&&a.unshift(Zi(e,f,c)),f=Ri(e,t),f!=null&&a.push(Zi(e,f,c))),e=e.return}return a}function zo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function dv(e,t,i,a,c){for(var f=t._reactName,g=[];i!==null&&i!==a;){var k=i,R=k.alternate,$=k.stateNode;if(R!==null&&R===a)break;k.tag===5&&$!==null&&(k=$,c?(R=Ri(i,f),R!=null&&g.unshift(Zi(i,R,k))):c||(R=Ri(i,f),R!=null&&g.push(Zi(i,R,k)))),i=i.return}g.length!==0&&e.push({event:t,listeners:g})}var KE=/\r\n?/g,GE=/\u0000|\uFFFD/g;function fv(e){return(typeof e=="string"?e:""+e).replace(KE,`
|
|
6
|
-
`).replace(GE,"")}function Ea(e,t,i){if(t=fv(t),fv(e)!==t&&i)throw Error(o(425))}function ba(){}var Ec=null,bc=null;function Cc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rc=typeof setTimeout=="function"?setTimeout:void 0,QE=typeof clearTimeout=="function"?clearTimeout:void 0,pv=typeof Promise=="function"?Promise:void 0,YE=typeof queueMicrotask=="function"?queueMicrotask:typeof pv<"u"?function(e){return pv.resolve(null).then(e).catch(XE)}:Rc;function XE(e){setTimeout(function(){throw e})}function Ic(e,t){var i=t,a=0;do{var c=i.nextSibling;if(e.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(a===0){e.removeChild(c),Li(t);return}a--}else i!=="$"&&i!=="$?"&&i!=="$!"||a++;i=c}while(i);Li(t)}function gr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function mv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}var Fo=Math.random().toString(36).slice(2),Sn="__reactFiber$"+Fo,qi="__reactProps$"+Fo,Bn="__reactContainer$"+Fo,Pc="__reactEvents$"+Fo,JE="__reactListeners$"+Fo,eb="__reactHandles$"+Fo;function Gr(e){var t=e[Sn];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Bn]||i[Sn]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=mv(e);e!==null;){if(i=e[Sn])return i;e=mv(e)}return t}e=i,i=e.parentNode}return null}function Ki(e){return e=e[Sn]||e[Bn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $o(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ca(e){return e[qi]||null}var Nc=[],Vo=-1;function yr(e){return{current:e}}function Ke(e){0>Vo||(e.current=Nc[Vo],Nc[Vo]=null,Vo--)}function Ze(e,t){Vo++,Nc[Vo]=e.current,e.current=t}var xr={},xt=yr(xr),Ot=yr(!1),Qr=xr;function Uo(e,t){var i=e.type.contextTypes;if(!i)return xr;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in i)c[f]=t[f];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function Tt(e){return e=e.childContextTypes,e!=null}function Ra(){Ke(Ot),Ke(xt)}function hv(e,t,i){if(xt.current!==xr)throw Error(o(168));Ze(xt,t),Ze(Ot,i)}function vv(e,t,i){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var c in a)if(!(c in t))throw Error(o(108,te(e)||"Unknown",c));return z({},i,a)}function Ia(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xr,Qr=xt.current,Ze(xt,e),Ze(Ot,Ot.current),!0}function gv(e,t,i){var a=e.stateNode;if(!a)throw Error(o(169));i?(e=vv(e,t,Qr),a.__reactInternalMemoizedMergedChildContext=e,Ke(Ot),Ke(xt),Ze(xt,e)):Ke(Ot),Ze(Ot,i)}var Wn=null,Pa=!1,Oc=!1;function yv(e){Wn===null?Wn=[e]:Wn.push(e)}function tb(e){Pa=!0,yv(e)}function wr(){if(!Oc&&Wn!==null){Oc=!0;var e=0,t=We;try{var i=Wn;for(We=1;e<i.length;e++){var a=i[e];do a=a(!0);while(a!==null)}Wn=null,Pa=!1}catch(c){throw Wn!==null&&(Wn=Wn.slice(e+1)),wh(Ju,wr),c}finally{We=t,Oc=!1}}return null}var Bo=[],Wo=0,Na=null,Oa=0,Ht=[],Zt=0,Yr=null,Hn=1,Zn="";function Xr(e,t){Bo[Wo++]=Oa,Bo[Wo++]=Na,Na=e,Oa=t}function xv(e,t,i){Ht[Zt++]=Hn,Ht[Zt++]=Zn,Ht[Zt++]=Yr,Yr=e;var a=Hn;e=Zn;var c=32-tn(a)-1;a&=~(1<<c),i+=1;var f=32-tn(t)+c;if(30<f){var g=c-c%5;f=(a&(1<<g)-1).toString(32),a>>=g,c-=g,Hn=1<<32-tn(t)+c|i<<c|a,Zn=f+e}else Hn=1<<f|i<<c|a,Zn=e}function Tc(e){e.return!==null&&(Xr(e,1),xv(e,1,0))}function Ac(e){for(;e===Na;)Na=Bo[--Wo],Bo[Wo]=null,Oa=Bo[--Wo],Bo[Wo]=null;for(;e===Yr;)Yr=Ht[--Zt],Ht[Zt]=null,Zn=Ht[--Zt],Ht[Zt]=null,Hn=Ht[--Zt],Ht[Zt]=null}var $t=null,Vt=null,Ge=!1,rn=null;function wv(e,t){var i=Qt(5,null,null,0);i.elementType="DELETED",i.stateNode=t,i.return=e,t=e.deletions,t===null?(e.deletions=[i],e.flags|=16):t.push(i)}function Sv(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$t=e,Vt=gr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$t=e,Vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(i=Yr!==null?{id:Hn,overflow:Zn}:null,e.memoizedState={dehydrated:t,treeContext:i,retryLane:1073741824},i=Qt(18,null,null,0),i.stateNode=t,i.return=e,e.child=i,$t=e,Vt=null,!0):!1;default:return!1}}function Dc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mc(e){if(Ge){var t=Vt;if(t){var i=t;if(!Sv(e,t)){if(Dc(e))throw Error(o(418));t=gr(i.nextSibling);var a=$t;t&&Sv(e,t)?wv(a,i):(e.flags=e.flags&-4097|2,Ge=!1,$t=e)}}else{if(Dc(e))throw Error(o(418));e.flags=e.flags&-4097|2,Ge=!1,$t=e}}}function _v(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$t=e}function Ta(e){if(e!==$t)return!1;if(!Ge)return _v(e),Ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Cc(e.type,e.memoizedProps)),t&&(t=Vt)){if(Dc(e))throw kv(),Error(o(418));for(;t;)wv(e,t),t=gr(t.nextSibling)}if(_v(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){Vt=gr(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}Vt=null}}else Vt=$t?gr(e.stateNode.nextSibling):null;return!0}function kv(){for(var e=Vt;e;)e=gr(e.nextSibling)}function Ho(){Vt=$t=null,Ge=!1}function Lc(e){rn===null?rn=[e]:rn.push(e)}var nb=N.ReactCurrentBatchConfig;function Gi(e,t,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(o(309));var a=i.stateNode}if(!a)throw Error(o(147,e));var c=a,f=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f?t.ref:(t=function(g){var k=c.refs;g===null?delete k[f]:k[f]=g},t._stringRef=f,t)}if(typeof e!="string")throw Error(o(284));if(!i._owner)throw Error(o(290,e))}return e}function Aa(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ev(e){var t=e._init;return t(e._payload)}function bv(e){function t(M,I){if(e){var j=M.deletions;j===null?(M.deletions=[I],M.flags|=16):j.push(I)}}function i(M,I){if(!e)return null;for(;I!==null;)t(M,I),I=I.sibling;return null}function a(M,I){for(M=new Map;I!==null;)I.key!==null?M.set(I.key,I):M.set(I.index,I),I=I.sibling;return M}function c(M,I){return M=Ir(M,I),M.index=0,M.sibling=null,M}function f(M,I,j){return M.index=j,e?(j=M.alternate,j!==null?(j=j.index,j<I?(M.flags|=2,I):j):(M.flags|=2,I)):(M.flags|=1048576,I)}function g(M){return e&&M.alternate===null&&(M.flags|=2),M}function k(M,I,j,ee){return I===null||I.tag!==6?(I=Rd(j,M.mode,ee),I.return=M,I):(I=c(I,j),I.return=M,I)}function R(M,I,j,ee){var we=j.type;return we===W?G(M,I,j.props.children,ee,j.key):I!==null&&(I.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===ue&&Ev(we)===I.type)?(ee=c(I,j.props),ee.ref=Gi(M,I,j),ee.return=M,ee):(ee=rl(j.type,j.key,j.props,null,M.mode,ee),ee.ref=Gi(M,I,j),ee.return=M,ee)}function $(M,I,j,ee){return I===null||I.tag!==4||I.stateNode.containerInfo!==j.containerInfo||I.stateNode.implementation!==j.implementation?(I=Id(j,M.mode,ee),I.return=M,I):(I=c(I,j.children||[]),I.return=M,I)}function G(M,I,j,ee,we){return I===null||I.tag!==7?(I=so(j,M.mode,ee,we),I.return=M,I):(I=c(I,j),I.return=M,I)}function Y(M,I,j){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Rd(""+I,M.mode,j),I.return=M,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case U:return j=rl(I.type,I.key,I.props,null,M.mode,j),j.ref=Gi(M,null,I),j.return=M,j;case L:return I=Id(I,M.mode,j),I.return=M,I;case ue:var ee=I._init;return Y(M,ee(I._payload),j)}if(Ei(I)||X(I))return I=so(I,M.mode,j,null),I.return=M,I;Aa(M,I)}return null}function q(M,I,j,ee){var we=I!==null?I.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return we!==null?null:k(M,I,""+j,ee);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return j.key===we?R(M,I,j,ee):null;case L:return j.key===we?$(M,I,j,ee):null;case ue:return we=j._init,q(M,I,we(j._payload),ee)}if(Ei(j)||X(j))return we!==null?null:G(M,I,j,ee,null);Aa(M,j)}return null}function le(M,I,j,ee,we){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return M=M.get(j)||null,k(I,M,""+ee,we);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case U:return M=M.get(ee.key===null?j:ee.key)||null,R(I,M,ee,we);case L:return M=M.get(ee.key===null?j:ee.key)||null,$(I,M,ee,we);case ue:var Ee=ee._init;return le(M,I,j,Ee(ee._payload),we)}if(Ei(ee)||X(ee))return M=M.get(j)||null,G(I,M,ee,we,null);Aa(I,ee)}return null}function ge(M,I,j,ee){for(var we=null,Ee=null,be=I,Pe=I=0,ht=null;be!==null&&Pe<j.length;Pe++){be.index>Pe?(ht=be,be=null):ht=be.sibling;var $e=q(M,be,j[Pe],ee);if($e===null){be===null&&(be=ht);break}e&&be&&$e.alternate===null&&t(M,be),I=f($e,I,Pe),Ee===null?we=$e:Ee.sibling=$e,Ee=$e,be=ht}if(Pe===j.length)return i(M,be),Ge&&Xr(M,Pe),we;if(be===null){for(;Pe<j.length;Pe++)be=Y(M,j[Pe],ee),be!==null&&(I=f(be,I,Pe),Ee===null?we=be:Ee.sibling=be,Ee=be);return Ge&&Xr(M,Pe),we}for(be=a(M,be);Pe<j.length;Pe++)ht=le(be,M,Pe,j[Pe],ee),ht!==null&&(e&&ht.alternate!==null&&be.delete(ht.key===null?Pe:ht.key),I=f(ht,I,Pe),Ee===null?we=ht:Ee.sibling=ht,Ee=ht);return e&&be.forEach(function(Pr){return t(M,Pr)}),Ge&&Xr(M,Pe),we}function ye(M,I,j,ee){var we=X(j);if(typeof we!="function")throw Error(o(150));if(j=we.call(j),j==null)throw Error(o(151));for(var Ee=we=null,be=I,Pe=I=0,ht=null,$e=j.next();be!==null&&!$e.done;Pe++,$e=j.next()){be.index>Pe?(ht=be,be=null):ht=be.sibling;var Pr=q(M,be,$e.value,ee);if(Pr===null){be===null&&(be=ht);break}e&&be&&Pr.alternate===null&&t(M,be),I=f(Pr,I,Pe),Ee===null?we=Pr:Ee.sibling=Pr,Ee=Pr,be=ht}if($e.done)return i(M,be),Ge&&Xr(M,Pe),we;if(be===null){for(;!$e.done;Pe++,$e=j.next())$e=Y(M,$e.value,ee),$e!==null&&(I=f($e,I,Pe),Ee===null?we=$e:Ee.sibling=$e,Ee=$e);return Ge&&Xr(M,Pe),we}for(be=a(M,be);!$e.done;Pe++,$e=j.next())$e=le(be,M,Pe,$e.value,ee),$e!==null&&(e&&$e.alternate!==null&&be.delete($e.key===null?Pe:$e.key),I=f($e,I,Pe),Ee===null?we=$e:Ee.sibling=$e,Ee=$e);return e&&be.forEach(function(Mb){return t(M,Mb)}),Ge&&Xr(M,Pe),we}function nt(M,I,j,ee){if(typeof j=="object"&&j!==null&&j.type===W&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case U:e:{for(var we=j.key,Ee=I;Ee!==null;){if(Ee.key===we){if(we=j.type,we===W){if(Ee.tag===7){i(M,Ee.sibling),I=c(Ee,j.props.children),I.return=M,M=I;break e}}else if(Ee.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===ue&&Ev(we)===Ee.type){i(M,Ee.sibling),I=c(Ee,j.props),I.ref=Gi(M,Ee,j),I.return=M,M=I;break e}i(M,Ee);break}else t(M,Ee);Ee=Ee.sibling}j.type===W?(I=so(j.props.children,M.mode,ee,j.key),I.return=M,M=I):(ee=rl(j.type,j.key,j.props,null,M.mode,ee),ee.ref=Gi(M,I,j),ee.return=M,M=ee)}return g(M);case L:e:{for(Ee=j.key;I!==null;){if(I.key===Ee)if(I.tag===4&&I.stateNode.containerInfo===j.containerInfo&&I.stateNode.implementation===j.implementation){i(M,I.sibling),I=c(I,j.children||[]),I.return=M,M=I;break e}else{i(M,I);break}else t(M,I);I=I.sibling}I=Id(j,M.mode,ee),I.return=M,M=I}return g(M);case ue:return Ee=j._init,nt(M,I,Ee(j._payload),ee)}if(Ei(j))return ge(M,I,j,ee);if(X(j))return ye(M,I,j,ee);Aa(M,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,I!==null&&I.tag===6?(i(M,I.sibling),I=c(I,j),I.return=M,M=I):(i(M,I),I=Rd(j,M.mode,ee),I.return=M,M=I),g(M)):i(M,I)}return nt}var Zo=bv(!0),Cv=bv(!1),Da=yr(null),Ma=null,qo=null,jc=null;function zc(){jc=qo=Ma=null}function Fc(e){var t=Da.current;Ke(Da),e._currentValue=t}function $c(e,t,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===i)break;e=e.return}}function Ko(e,t){Ma=e,jc=qo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(At=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(jc!==e)if(e={context:e,memoizedValue:t,next:null},qo===null){if(Ma===null)throw Error(o(308));qo=e,Ma.dependencies={lanes:0,firstContext:e}}else qo=qo.next=e;return t}var Jr=null;function Vc(e){Jr===null?Jr=[e]:Jr.push(e)}function Rv(e,t,i,a){var c=t.interleaved;return c===null?(i.next=i,Vc(t)):(i.next=c.next,c.next=i),t.interleaved=i,qn(e,a)}function qn(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var Sr=!1;function Uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Iv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _r(e,t,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Fe&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,qn(e,i)}return c=a.interleaved,c===null?(t.next=t,Vc(a)):(t.next=c.next,c.next=t),a.interleaved=t,qn(e,i)}function La(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,i|=a,t.lanes=i,nc(e,i)}}function Pv(e,t){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var c=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var g={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};f===null?c=f=g:f=f.next=g,i=i.next}while(i!==null);f===null?c=f=t:f=f.next=t}else c=f=t;i={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function ja(e,t,i,a){var c=e.updateQueue;Sr=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,k=c.shared.pending;if(k!==null){c.shared.pending=null;var R=k,$=R.next;R.next=null,g===null?f=$:g.next=$,g=R;var G=e.alternate;G!==null&&(G=G.updateQueue,k=G.lastBaseUpdate,k!==g&&(k===null?G.firstBaseUpdate=$:k.next=$,G.lastBaseUpdate=R))}if(f!==null){var Y=c.baseState;g=0,G=$=R=null,k=f;do{var q=k.lane,le=k.eventTime;if((a&q)===q){G!==null&&(G=G.next={eventTime:le,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var ge=e,ye=k;switch(q=t,le=i,ye.tag){case 1:if(ge=ye.payload,typeof ge=="function"){Y=ge.call(le,Y,q);break e}Y=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=ye.payload,q=typeof ge=="function"?ge.call(le,Y,q):ge,q==null)break e;Y=z({},Y,q);break e;case 2:Sr=!0}}k.callback!==null&&k.lane!==0&&(e.flags|=64,q=c.effects,q===null?c.effects=[k]:q.push(k))}else le={eventTime:le,lane:q,tag:k.tag,payload:k.payload,callback:k.callback,next:null},G===null?($=G=le,R=Y):G=G.next=le,g|=q;if(k=k.next,k===null){if(k=c.shared.pending,k===null)break;q=k,k=q.next,q.next=null,c.lastBaseUpdate=q,c.shared.pending=null}}while(!0);if(G===null&&(R=Y),c.baseState=R,c.firstBaseUpdate=$,c.lastBaseUpdate=G,t=c.shared.interleaved,t!==null){c=t;do g|=c.lane,c=c.next;while(c!==t)}else f===null&&(c.shared.lanes=0);no|=g,e.lanes=g,e.memoizedState=Y}}function Nv(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],c=a.callback;if(c!==null){if(a.callback=null,a=i,typeof c!="function")throw Error(o(191,c));c.call(a)}}}var Qi={},_n=yr(Qi),Yi=yr(Qi),Xi=yr(Qi);function eo(e){if(e===Qi)throw Error(o(174));return e}function Bc(e,t){switch(Ze(Xi,t),Ze(Yi,e),Ze(_n,Qi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wu(t,e)}Ke(_n),Ze(_n,t)}function Go(){Ke(_n),Ke(Yi),Ke(Xi)}function Ov(e){eo(Xi.current);var t=eo(_n.current),i=Wu(t,e.type);t!==i&&(Ze(Yi,e),Ze(_n,i))}function Wc(e){Yi.current===e&&(Ke(_n),Ke(Yi))}var Ye=yr(0);function za(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Hc=[];function Zc(){for(var e=0;e<Hc.length;e++)Hc[e]._workInProgressVersionPrimary=null;Hc.length=0}var Fa=N.ReactCurrentDispatcher,qc=N.ReactCurrentBatchConfig,to=0,Xe=null,at=null,pt=null,$a=!1,Ji=!1,es=0,rb=0;function wt(){throw Error(o(321))}function Kc(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!nn(e[i],t[i]))return!1;return!0}function Gc(e,t,i,a,c,f){if(to=f,Xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fa.current=e===null||e.memoizedState===null?ab:lb,e=i(a,c),Ji){f=0;do{if(Ji=!1,es=0,25<=f)throw Error(o(301));f+=1,pt=at=null,t.updateQueue=null,Fa.current=ub,e=i(a,c)}while(Ji)}if(Fa.current=Ba,t=at!==null&&at.next!==null,to=0,pt=at=Xe=null,$a=!1,t)throw Error(o(300));return e}function Qc(){var e=es!==0;return es=0,e}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Xe.memoizedState=pt=e:pt=pt.next=e,pt}function Kt(){if(at===null){var e=Xe.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=pt===null?Xe.memoizedState:pt.next;if(t!==null)pt=t,at=e;else{if(e===null)throw Error(o(310));at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},pt===null?Xe.memoizedState=pt=e:pt=pt.next=e}return pt}function ts(e,t){return typeof t=="function"?t(e):t}function Yc(e){var t=Kt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var a=at,c=a.baseQueue,f=i.pending;if(f!==null){if(c!==null){var g=c.next;c.next=f.next,f.next=g}a.baseQueue=c=f,i.pending=null}if(c!==null){f=c.next,a=a.baseState;var k=g=null,R=null,$=f;do{var G=$.lane;if((to&G)===G)R!==null&&(R=R.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),a=$.hasEagerState?$.eagerState:e(a,$.action);else{var Y={lane:G,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};R===null?(k=R=Y,g=a):R=R.next=Y,Xe.lanes|=G,no|=G}$=$.next}while($!==null&&$!==f);R===null?g=a:R.next=k,nn(a,t.memoizedState)||(At=!0),t.memoizedState=a,t.baseState=g,t.baseQueue=R,i.lastRenderedState=a}if(e=i.interleaved,e!==null){c=e;do f=c.lane,Xe.lanes|=f,no|=f,c=c.next;while(c!==e)}else c===null&&(i.lanes=0);return[t.memoizedState,i.dispatch]}function Xc(e){var t=Kt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var a=i.dispatch,c=i.pending,f=t.memoizedState;if(c!==null){i.pending=null;var g=c=c.next;do f=e(f,g.action),g=g.next;while(g!==c);nn(f,t.memoizedState)||(At=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),i.lastRenderedState=f}return[f,a]}function Tv(){}function Av(e,t){var i=Xe,a=Kt(),c=t(),f=!nn(a.memoizedState,c);if(f&&(a.memoizedState=c,At=!0),a=a.queue,Jc(Lv.bind(null,i,a,e),[e]),a.getSnapshot!==t||f||pt!==null&&pt.memoizedState.tag&1){if(i.flags|=2048,ns(9,Mv.bind(null,i,a,c,t),void 0,null),mt===null)throw Error(o(349));(to&30)!==0||Dv(i,t,c)}return c}function Dv(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Xe.updateQueue,t===null?(t={lastEffect:null,stores:null},Xe.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Mv(e,t,i,a){t.value=i,t.getSnapshot=a,jv(t)&&zv(e)}function Lv(e,t,i){return i(function(){jv(t)&&zv(e)})}function jv(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!nn(e,i)}catch{return!0}}function zv(e){var t=qn(e,1);t!==null&&ln(t,e,1,-1)}function Fv(e){var t=kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:e},t.queue=e,e=e.dispatch=sb.bind(null,Xe,e),[t.memoizedState,e]}function ns(e,t,i,a){return e={tag:e,create:t,destroy:i,deps:a,next:null},t=Xe.updateQueue,t===null?(t={lastEffect:null,stores:null},Xe.updateQueue=t,t.lastEffect=e.next=e):(i=t.lastEffect,i===null?t.lastEffect=e.next=e:(a=i.next,i.next=e,e.next=a,t.lastEffect=e)),e}function $v(){return Kt().memoizedState}function Va(e,t,i,a){var c=kn();Xe.flags|=e,c.memoizedState=ns(1|t,i,void 0,a===void 0?null:a)}function Ua(e,t,i,a){var c=Kt();a=a===void 0?null:a;var f=void 0;if(at!==null){var g=at.memoizedState;if(f=g.destroy,a!==null&&Kc(a,g.deps)){c.memoizedState=ns(t,i,f,a);return}}Xe.flags|=e,c.memoizedState=ns(1|t,i,f,a)}function Vv(e,t){return Va(8390656,8,e,t)}function Jc(e,t){return Ua(2048,8,e,t)}function Uv(e,t){return Ua(4,2,e,t)}function Bv(e,t){return Ua(4,4,e,t)}function Wv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hv(e,t,i){return i=i!=null?i.concat([e]):null,Ua(4,4,Wv.bind(null,t,e),i)}function ed(){}function Zv(e,t){var i=Kt();t=t===void 0?null:t;var a=i.memoizedState;return a!==null&&t!==null&&Kc(t,a[1])?a[0]:(i.memoizedState=[e,t],e)}function qv(e,t){var i=Kt();t=t===void 0?null:t;var a=i.memoizedState;return a!==null&&t!==null&&Kc(t,a[1])?a[0]:(e=e(),i.memoizedState=[e,t],e)}function Kv(e,t,i){return(to&21)===0?(e.baseState&&(e.baseState=!1,At=!0),e.memoizedState=i):(nn(i,t)||(i=Eh(),Xe.lanes|=i,no|=i,e.baseState=!0),t)}function ob(e,t){var i=We;We=i!==0&&4>i?i:4,e(!0);var a=qc.transition;qc.transition={};try{e(!1),t()}finally{We=i,qc.transition=a}}function Gv(){return Kt().memoizedState}function ib(e,t,i){var a=Cr(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},Qv(e))Yv(t,i);else if(i=Rv(e,t,i,a),i!==null){var c=Rt();ln(i,e,a,c),Xv(i,t,a)}}function sb(e,t,i){var a=Cr(e),c={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(Qv(e))Yv(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,k=f(g,i);if(c.hasEagerState=!0,c.eagerState=k,nn(k,g)){var R=t.interleaved;R===null?(c.next=c,Vc(t)):(c.next=R.next,R.next=c),t.interleaved=c;return}}catch{}i=Rv(e,t,c,a),i!==null&&(c=Rt(),ln(i,e,a,c),Xv(i,t,a))}}function Qv(e){var t=e.alternate;return e===Xe||t!==null&&t===Xe}function Yv(e,t){Ji=$a=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Xv(e,t,i){if((i&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,i|=a,t.lanes=i,nc(e,i)}}var Ba={readContext:qt,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},ab={readContext:qt,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Vv,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,Va(4194308,4,Wv.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Va(4194308,4,e,t)},useInsertionEffect:function(e,t){return Va(4,2,e,t)},useMemo:function(e,t){var i=kn();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var a=kn();return t=i!==void 0?i(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=ib.bind(null,Xe,e),[a.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:Fv,useDebugValue:ed,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=Fv(!1),t=e[0];return e=ob.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var a=Xe,c=kn();if(Ge){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),mt===null)throw Error(o(349));(to&30)!==0||Dv(a,t,i)}c.memoizedState=i;var f={value:i,getSnapshot:t};return c.queue=f,Vv(Lv.bind(null,a,f,e),[e]),a.flags|=2048,ns(9,Mv.bind(null,a,f,i,t),void 0,null),i},useId:function(){var e=kn(),t=mt.identifierPrefix;if(Ge){var i=Zn,a=Hn;i=(a&~(1<<32-tn(a)-1)).toString(32)+i,t=":"+t+"R"+i,i=es++,0<i&&(t+="H"+i.toString(32)),t+=":"}else i=rb++,t=":"+t+"r"+i.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lb={readContext:qt,useCallback:Zv,useContext:qt,useEffect:Jc,useImperativeHandle:Hv,useInsertionEffect:Uv,useLayoutEffect:Bv,useMemo:qv,useReducer:Yc,useRef:$v,useState:function(){return Yc(ts)},useDebugValue:ed,useDeferredValue:function(e){var t=Kt();return Kv(t,at.memoizedState,e)},useTransition:function(){var e=Yc(ts)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:Tv,useSyncExternalStore:Av,useId:Gv,unstable_isNewReconciler:!1},ub={readContext:qt,useCallback:Zv,useContext:qt,useEffect:Jc,useImperativeHandle:Hv,useInsertionEffect:Uv,useLayoutEffect:Bv,useMemo:qv,useReducer:Xc,useRef:$v,useState:function(){return Xc(ts)},useDebugValue:ed,useDeferredValue:function(e){var t=Kt();return at===null?t.memoizedState=e:Kv(t,at.memoizedState,e)},useTransition:function(){var e=Xc(ts)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:Tv,useSyncExternalStore:Av,useId:Gv,unstable_isNewReconciler:!1};function on(e,t){if(e&&e.defaultProps){t=z({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i]);return t}return t}function td(e,t,i,a){t=e.memoizedState,i=i(a,t),i=i==null?t:z({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Wa={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternals;var a=Rt(),c=Cr(e),f=Kn(a,c);f.payload=t,i!=null&&(f.callback=i),t=_r(e,f,c),t!==null&&(ln(t,e,c,a),La(t,e,c))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var a=Rt(),c=Cr(e),f=Kn(a,c);f.tag=1,f.payload=t,i!=null&&(f.callback=i),t=_r(e,f,c),t!==null&&(ln(t,e,c,a),La(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Rt(),a=Cr(e),c=Kn(i,a);c.tag=2,t!=null&&(c.callback=t),t=_r(e,c,a),t!==null&&(ln(t,e,a,i),La(t,e,a))}};function Jv(e,t,i,a,c,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,f,g):t.prototype&&t.prototype.isPureReactComponent?!Ui(i,a)||!Ui(c,f):!0}function eg(e,t,i){var a=!1,c=xr,f=t.contextType;return typeof f=="object"&&f!==null?f=qt(f):(c=Tt(t)?Qr:xt.current,a=t.contextTypes,f=(a=a!=null)?Uo(e,c):xr),t=new t(i,f),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=f),t}function tg(e,t,i,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,a),t.state!==e&&Wa.enqueueReplaceState(t,t.state,null)}function nd(e,t,i,a){var c=e.stateNode;c.props=i,c.state=e.memoizedState,c.refs={},Uc(e);var f=t.contextType;typeof f=="object"&&f!==null?c.context=qt(f):(f=Tt(t)?Qr:xt.current,c.context=Uo(e,f)),c.state=e.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(td(e,t,f,i),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&Wa.enqueueReplaceState(c,c.state,null),ja(e,i,c,a),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function Qo(e,t){try{var i="",a=t;do i+=H(a),a=a.return;while(a);var c=i}catch(f){c=`
|
|
5
|
+
`+c[g].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=g&&0<=k);break}}}finally{Q=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?C(e):""}function H(e){switch(e.tag){case 5:return C(e.type);case 16:return C("Lazy");case 13:return C("Suspense");case 19:return C("SuspenseList");case 0:case 2:case 15:return e=ne(e.type,!1),e;case 11:return e=ne(e.type.render,!1),e;case 1:return e=ne(e.type,!0),e;default:return""}}function V(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case L:return"Portal";case re:return"Profiler";case F:return"StrictMode";case he:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ke:return(e.displayName||"Context")+".Consumer";case me:return(e._context.displayName||"Context")+".Provider";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return t=e.displayName||null,t!==null?t:V(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return V(e(t))}catch{}}return null}function te(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===F?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ce(e){var t=K(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,f=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ne(e){e._valueTracker||(e._valueTracker=Ce(e))}function Me(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),a="";return e&&(a=K(e)?e.checked?"true":"false":e.value),e=a,e!==i?(t.setValue(e),!0):!1}function Le(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ft(e,t){var i=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function Et(e,t){var i=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;i=Z(t.value!=null?t.value:i),e._wrapperState={initialChecked:a,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Io(e,t){t=t.checked,t!=null&&T(e,"checked",t,!1)}function qr(e,t){Io(e,t);var i=Z(t.value),a=t.type;if(i!=null)a==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bu(e,t.type,i):t.hasOwnProperty("defaultValue")&&Bu(e,t.type,Z(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Po(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function Bu(e,t,i){(t!=="number"||Le(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var bi=Array.isArray;function No(e,t,i,a){if(e=e.options,t){t={};for(var c=0;c<i.length;c++)t["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=t.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&a&&(e[i].defaultSelected=!0)}else{for(i=""+Z(i),t=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Wu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ih(e,t){var i=t.value;if(i==null){if(i=t.children,t=t.defaultValue,i!=null){if(t!=null)throw Error(o(92));if(bi(i)){if(1<i.length)throw Error(o(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:Z(i)}}function sh(e,t){var i=Z(t.value),a=Z(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),a!=null&&(e.defaultValue=""+a)}function ah(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function lh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Hu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ra,uh=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,a,c){MSApp.execUnsafeLocalFunction(function(){return e(t,i,a,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ra=ra||document.createElement("div"),ra.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ra.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ei(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Ci={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wk=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(e){Wk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ci[t]=Ci[e]})});function ch(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Ci.hasOwnProperty(e)&&Ci[e]?(""+t).trim():t+"px"}function dh(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var a=i.indexOf("--")===0,c=ch(i,t[i],a);i==="float"&&(i="cssFloat"),a?e.setProperty(i,c):e[i]=c}}var Hk=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zu(e,t){if(t){if(Hk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function qu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ku=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qu=null,Oo=null,To=null;function fh(e){if(e=Ki(e)){if(typeof Qu!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Ca(t),Qu(e.stateNode,e.type,t))}}function ph(e){Oo?To?To.push(e):To=[e]:Oo=e}function mh(){if(Oo){var e=Oo,t=To;if(To=Oo=null,fh(e),t)for(e=0;e<t.length;e++)fh(t[e])}}function hh(e,t){return e(t)}function vh(){}var Yu=!1;function gh(e,t,i){if(Yu)return e(t,i);Yu=!0;try{return hh(e,t,i)}finally{Yu=!1,(Oo!==null||To!==null)&&(vh(),mh())}}function Ri(e,t){var i=e.stateNode;if(i===null)return null;var a=Ca(i);if(a===null)return null;i=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var Xu=!1;if(p)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){Xu=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{Xu=!1}function Zk(e,t,i,a,c,f,g,k,R){var $=Array.prototype.slice.call(arguments,3);try{t.apply(i,$)}catch(G){this.onError(G)}}var Pi=!1,oa=null,ia=!1,Ju=null,qk={onError:function(e){Pi=!0,oa=e}};function Kk(e,t,i,a,c,f,g,k,R){Pi=!1,oa=null,Zk.apply(qk,arguments)}function Gk(e,t,i,a,c,f,g,k,R){if(Kk.apply(this,arguments),Pi){if(Pi){var $=oa;Pi=!1,oa=null}else throw Error(o(198));ia||(ia=!0,Ju=$)}}function Kr(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function yh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function xh(e){if(Kr(e)!==e)throw Error(o(188))}function Qk(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(o(188));return t!==e?null:e}for(var i=e,a=t;;){var c=i.return;if(c===null)break;var f=c.alternate;if(f===null){if(a=c.return,a!==null){i=a;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===i)return xh(c),e;if(f===a)return xh(c),t;f=f.sibling}throw Error(o(188))}if(i.return!==a.return)i=c,a=f;else{for(var g=!1,k=c.child;k;){if(k===i){g=!0,i=c,a=f;break}if(k===a){g=!0,a=c,i=f;break}k=k.sibling}if(!g){for(k=f.child;k;){if(k===i){g=!0,i=f,a=c;break}if(k===a){g=!0,a=f,i=c;break}k=k.sibling}if(!g)throw Error(o(189))}}if(i.alternate!==a)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:t}function wh(e){return e=Qk(e),e!==null?Sh(e):null}function Sh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Sh(e);if(t!==null)return t;e=e.sibling}return null}var _h=r.unstable_scheduleCallback,kh=r.unstable_cancelCallback,Yk=r.unstable_shouldYield,Xk=r.unstable_requestPaint,tt=r.unstable_now,Jk=r.unstable_getCurrentPriorityLevel,ec=r.unstable_ImmediatePriority,bh=r.unstable_UserBlockingPriority,sa=r.unstable_NormalPriority,eb=r.unstable_LowPriority,Eh=r.unstable_IdlePriority,aa=null,wn=null;function tb(e){if(wn&&typeof wn.onCommitFiberRoot=="function")try{wn.onCommitFiberRoot(aa,e,void 0,(e.current.flags&128)===128)}catch{}}var tn=Math.clz32?Math.clz32:ob,nb=Math.log,rb=Math.LN2;function ob(e){return e>>>=0,e===0?32:31-(nb(e)/rb|0)|0}var la=64,ua=4194304;function Ni(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ca(e,t){var i=e.pendingLanes;if(i===0)return 0;var a=0,c=e.suspendedLanes,f=e.pingedLanes,g=i&268435455;if(g!==0){var k=g&~c;k!==0?a=Ni(k):(f&=g,f!==0&&(a=Ni(f)))}else g=i&~c,g!==0?a=Ni(g):f!==0&&(a=Ni(f));if(a===0)return 0;if(t!==0&&t!==a&&(t&c)===0&&(c=a&-a,f=t&-t,c>=f||c===16&&(f&4194240)!==0))return t;if((a&4)!==0&&(a|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)i=31-tn(t),c=1<<i,a|=e[i],t&=~c;return a}function ib(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sb(e,t){for(var i=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes;0<f;){var g=31-tn(f),k=1<<g,R=c[g];R===-1?((k&i)===0||(k&a)!==0)&&(c[g]=ib(k,t)):R<=t&&(e.expiredLanes|=k),f&=~k}}function tc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ch(){var e=la;return la<<=1,(la&4194240)===0&&(la=64),e}function nc(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Oi(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tn(t),e[t]=i}function ab(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<i;){var c=31-tn(i),f=1<<c;t[c]=0,a[c]=-1,e[c]=-1,i&=~f}}function rc(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var a=31-tn(i),c=1<<a;c&t|e[a]&t&&(e[a]|=t),i&=~c}}var We=0;function Rh(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ih,oc,Ph,Nh,Oh,ic=!1,da=[],dr=null,fr=null,pr=null,Ti=new Map,Ai=new Map,mr=[],lb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Th(e,t){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":Ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ai.delete(t.pointerId)}}function Di(e,t,i,a,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:i,eventSystemFlags:a,nativeEvent:f,targetContainers:[c]},t!==null&&(t=Ki(t),t!==null&&oc(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function ub(e,t,i,a,c){switch(t){case"focusin":return dr=Di(dr,e,t,i,a,c),!0;case"dragenter":return fr=Di(fr,e,t,i,a,c),!0;case"mouseover":return pr=Di(pr,e,t,i,a,c),!0;case"pointerover":var f=c.pointerId;return Ti.set(f,Di(Ti.get(f)||null,e,t,i,a,c)),!0;case"gotpointercapture":return f=c.pointerId,Ai.set(f,Di(Ai.get(f)||null,e,t,i,a,c)),!0}return!1}function Ah(e){var t=Gr(e.target);if(t!==null){var i=Kr(t);if(i!==null){if(t=i.tag,t===13){if(t=yh(i),t!==null){e.blockedOn=t,Oh(e.priority,function(){Ph(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=ac(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var a=new i.constructor(i.type,i);Ku=a,i.target.dispatchEvent(a),Ku=null}else return t=Ki(i),t!==null&&oc(t),e.blockedOn=i,!1;t.shift()}return!0}function Dh(e,t,i){fa(e)&&i.delete(t)}function cb(){ic=!1,dr!==null&&fa(dr)&&(dr=null),fr!==null&&fa(fr)&&(fr=null),pr!==null&&fa(pr)&&(pr=null),Ti.forEach(Dh),Ai.forEach(Dh)}function Mi(e,t){e.blockedOn===t&&(e.blockedOn=null,ic||(ic=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,cb)))}function Li(e){function t(c){return Mi(c,e)}if(0<da.length){Mi(da[0],e);for(var i=1;i<da.length;i++){var a=da[i];a.blockedOn===e&&(a.blockedOn=null)}}for(dr!==null&&Mi(dr,e),fr!==null&&Mi(fr,e),pr!==null&&Mi(pr,e),Ti.forEach(t),Ai.forEach(t),i=0;i<mr.length;i++)a=mr[i],a.blockedOn===e&&(a.blockedOn=null);for(;0<mr.length&&(i=mr[0],i.blockedOn===null);)Ah(i),i.blockedOn===null&&mr.shift()}var Ao=N.ReactCurrentBatchConfig,pa=!0;function db(e,t,i,a){var c=We,f=Ao.transition;Ao.transition=null;try{We=1,sc(e,t,i,a)}finally{We=c,Ao.transition=f}}function fb(e,t,i,a){var c=We,f=Ao.transition;Ao.transition=null;try{We=4,sc(e,t,i,a)}finally{We=c,Ao.transition=f}}function sc(e,t,i,a){if(pa){var c=ac(e,t,i,a);if(c===null)bc(e,t,a,ma,i),Th(e,a);else if(ub(c,e,t,i,a))a.stopPropagation();else if(Th(e,a),t&4&&-1<lb.indexOf(e)){for(;c!==null;){var f=Ki(c);if(f!==null&&Ih(f),f=ac(e,t,i,a),f===null&&bc(e,t,a,ma,i),f===c)break;c=f}c!==null&&a.stopPropagation()}else bc(e,t,a,null,i)}}var ma=null;function ac(e,t,i,a){if(ma=null,e=Gu(a),e=Gr(e),e!==null)if(t=Kr(e),t===null)e=null;else if(i=t.tag,i===13){if(e=yh(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ma=e,null}function Mh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Jk()){case ec:return 1;case bh:return 4;case sa:case eb:return 16;case Eh:return 536870912;default:return 16}default:return 16}}var hr=null,lc=null,ha=null;function Lh(){if(ha)return ha;var e,t=lc,i=t.length,a,c="value"in hr?hr.value:hr.textContent,f=c.length;for(e=0;e<i&&t[e]===c[e];e++);var g=i-e;for(a=1;a<=g&&t[i-a]===c[f-a];a++);return ha=c.slice(e,1<a?1-a:void 0)}function va(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ga(){return!0}function jh(){return!1}function Ft(e){function t(i,a,c,f,g){this._reactName=i,this._targetInst=c,this.type=a,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(i=e[k],this[k]=i?i(f):f[k]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ga:jh,this.isPropagationStopped=jh,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ga)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ga)},persist:function(){},isPersistent:ga}),t}var Do={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uc=Ft(Do),ji=z({},Do,{view:0,detail:0}),pb=Ft(ji),cc,dc,zi,ya=z({},ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zi&&(zi&&e.type==="mousemove"?(cc=e.screenX-zi.screenX,dc=e.screenY-zi.screenY):dc=cc=0,zi=e),cc)},movementY:function(e){return"movementY"in e?e.movementY:dc}}),zh=Ft(ya),mb=z({},ya,{dataTransfer:0}),hb=Ft(mb),vb=z({},ji,{relatedTarget:0}),fc=Ft(vb),gb=z({},Do,{animationName:0,elapsedTime:0,pseudoElement:0}),yb=Ft(gb),xb=z({},Do,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wb=Ft(xb),Sb=z({},Do,{data:0}),Fh=Ft(Sb),_b={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kb={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"},bb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bb[e])?!!t[e]:!1}function pc(){return Eb}var Cb=z({},ji,{key:function(e){if(e.key){var t=_b[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=va(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,charCode:function(e){return e.type==="keypress"?va(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?va(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rb=Ft(Cb),Ib=z({},ya,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$h=Ft(Ib),Pb=z({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),Nb=Ft(Pb),Ob=z({},Do,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tb=Ft(Ob),Ab=z({},ya,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Db=Ft(Ab),Mb=[9,13,27,32],mc=p&&"CompositionEvent"in window,Fi=null;p&&"documentMode"in document&&(Fi=document.documentMode);var Lb=p&&"TextEvent"in window&&!Fi,Vh=p&&(!mc||Fi&&8<Fi&&11>=Fi),Uh=" ",Bh=!1;function Wh(e,t){switch(e){case"keyup":return Mb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mo=!1;function jb(e,t){switch(e){case"compositionend":return Hh(t);case"keypress":return t.which!==32?null:(Bh=!0,Uh);case"textInput":return e=t.data,e===Uh&&Bh?null:e;default:return null}}function zb(e,t){if(Mo)return e==="compositionend"||!mc&&Wh(e,t)?(e=Lh(),ha=lc=hr=null,Mo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vh&&t.locale!=="ko"?null:t.data;default:return null}}var Fb={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 Zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fb[e.type]:t==="textarea"}function qh(e,t,i,a){ph(a),t=ka(t,"onChange"),0<t.length&&(i=new uc("onChange","change",null,i,a),e.push({event:i,listeners:t}))}var $i=null,Vi=null;function $b(e){dv(e,0)}function xa(e){var t=$o(e);if(Me(t))return e}function Vb(e,t){if(e==="change")return t}var Kh=!1;if(p){var hc;if(p){var vc="oninput"in document;if(!vc){var Gh=document.createElement("div");Gh.setAttribute("oninput","return;"),vc=typeof Gh.oninput=="function"}hc=vc}else hc=!1;Kh=hc&&(!document.documentMode||9<document.documentMode)}function Qh(){$i&&($i.detachEvent("onpropertychange",Yh),Vi=$i=null)}function Yh(e){if(e.propertyName==="value"&&xa(Vi)){var t=[];qh(t,Vi,e,Gu(e)),gh($b,t)}}function Ub(e,t,i){e==="focusin"?(Qh(),$i=t,Vi=i,$i.attachEvent("onpropertychange",Yh)):e==="focusout"&&Qh()}function Bb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xa(Vi)}function Wb(e,t){if(e==="click")return xa(t)}function Hb(e,t){if(e==="input"||e==="change")return xa(t)}function Zb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:Zb;function Ui(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(a=0;a<i.length;a++){var c=i[a];if(!h.call(t,c)||!nn(e[c],t[c]))return!1}return!0}function Xh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jh(e,t){var i=Xh(e);e=0;for(var a;i;){if(i.nodeType===3){if(a=e+i.textContent.length,e<=t&&a>=t)return{node:i,offset:t-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Xh(i)}}function ev(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ev(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tv(){for(var e=window,t=Le();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Le(e.document)}return t}function gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function qb(e){var t=tv(),i=e.focusedElem,a=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&ev(i.ownerDocument.documentElement,i)){if(a!==null&&gc(i)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=i.textContent.length,f=Math.min(a.start,c);a=a.end===void 0?f:Math.min(a.end,c),!e.extend&&f>a&&(c=a,a=f,f=c),c=Jh(i,f);var g=Jh(i,a);c&&g&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),f>a?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)e=t[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Kb=p&&"documentMode"in document&&11>=document.documentMode,Lo=null,yc=null,Bi=null,xc=!1;function nv(e,t,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;xc||Lo==null||Lo!==Le(a)||(a=Lo,"selectionStart"in a&&gc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Bi&&Ui(Bi,a)||(Bi=a,a=ka(yc,"onSelect"),0<a.length&&(t=new uc("onSelect","select",null,t,i),e.push({event:t,listeners:a}),t.target=Lo)))}function wa(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var jo={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionend:wa("Transition","TransitionEnd")},wc={},rv={};p&&(rv=document.createElement("div").style,"AnimationEvent"in window||(delete jo.animationend.animation,delete jo.animationiteration.animation,delete jo.animationstart.animation),"TransitionEvent"in window||delete jo.transitionend.transition);function Sa(e){if(wc[e])return wc[e];if(!jo[e])return e;var t=jo[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in rv)return wc[e]=t[i];return e}var ov=Sa("animationend"),iv=Sa("animationiteration"),sv=Sa("animationstart"),av=Sa("transitionend"),lv=new Map,uv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vr(e,t){lv.set(e,t),u(t,[e])}for(var Sc=0;Sc<uv.length;Sc++){var _c=uv[Sc],Gb=_c.toLowerCase(),Qb=_c[0].toUpperCase()+_c.slice(1);vr(Gb,"on"+Qb)}vr(ov,"onAnimationEnd"),vr(iv,"onAnimationIteration"),vr(sv,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(av,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wi="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(" "),Yb=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wi));function cv(e,t,i){var a=e.type||"unknown-event";e.currentTarget=i,Gk(a,t,void 0,e),e.currentTarget=null}function dv(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var a=e[i],c=a.event;a=a.listeners;e:{var f=void 0;if(t)for(var g=a.length-1;0<=g;g--){var k=a[g],R=k.instance,$=k.currentTarget;if(k=k.listener,R!==f&&c.isPropagationStopped())break e;cv(c,k,$),f=R}else for(g=0;g<a.length;g++){if(k=a[g],R=k.instance,$=k.currentTarget,k=k.listener,R!==f&&c.isPropagationStopped())break e;cv(c,k,$),f=R}}}if(ia)throw e=Ju,ia=!1,Ju=null,e}function qe(e,t){var i=t[Nc];i===void 0&&(i=t[Nc]=new Set);var a=e+"__bubble";i.has(a)||(fv(t,e,2,!1),i.add(a))}function kc(e,t,i){var a=0;t&&(a|=4),fv(i,e,a,t)}var _a="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[_a]){e[_a]=!0,s.forEach(function(i){i!=="selectionchange"&&(Yb.has(i)||kc(i,!1,e),kc(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_a]||(t[_a]=!0,kc("selectionchange",!1,t))}}function fv(e,t,i,a){switch(Mh(t)){case 1:var c=db;break;case 4:c=fb;break;default:c=sc}i=c.bind(null,t,i,e),c=void 0,!Xu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?c!==void 0?e.addEventListener(t,i,{capture:!0,passive:c}):e.addEventListener(t,i,!0):c!==void 0?e.addEventListener(t,i,{passive:c}):e.addEventListener(t,i,!1)}function bc(e,t,i,a,c){var f=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var k=a.stateNode.containerInfo;if(k===c||k.nodeType===8&&k.parentNode===c)break;if(g===4)for(g=a.return;g!==null;){var R=g.tag;if((R===3||R===4)&&(R=g.stateNode.containerInfo,R===c||R.nodeType===8&&R.parentNode===c))return;g=g.return}for(;k!==null;){if(g=Gr(k),g===null)return;if(R=g.tag,R===5||R===6){a=f=g;continue e}k=k.parentNode}}a=a.return}gh(function(){var $=f,G=Gu(i),Y=[];e:{var q=lv.get(e);if(q!==void 0){var le=uc,ge=e;switch(e){case"keypress":if(va(i)===0)break e;case"keydown":case"keyup":le=Rb;break;case"focusin":ge="focus",le=fc;break;case"focusout":ge="blur",le=fc;break;case"beforeblur":case"afterblur":le=fc;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":le=zh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=hb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=Nb;break;case ov:case iv:case sv:le=yb;break;case av:le=Tb;break;case"scroll":le=pb;break;case"wheel":le=Db;break;case"copy":case"cut":case"paste":le=wb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=$h}var ye=(t&4)!==0,nt=!ye&&e==="scroll",M=ye?q!==null?q+"Capture":null:q;ye=[];for(var I=$,j;I!==null;){j=I;var ee=j.stateNode;if(j.tag===5&&ee!==null&&(j=ee,M!==null&&(ee=Ri(I,M),ee!=null&&ye.push(Zi(I,ee,j)))),nt)break;I=I.return}0<ye.length&&(q=new le(q,ge,null,i,G),Y.push({event:q,listeners:ye}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",le=e==="mouseout"||e==="pointerout",q&&i!==Ku&&(ge=i.relatedTarget||i.fromElement)&&(Gr(ge)||ge[Bn]))break e;if((le||q)&&(q=G.window===G?G:(q=G.ownerDocument)?q.defaultView||q.parentWindow:window,le?(ge=i.relatedTarget||i.toElement,le=$,ge=ge?Gr(ge):null,ge!==null&&(nt=Kr(ge),ge!==nt||ge.tag!==5&&ge.tag!==6)&&(ge=null)):(le=null,ge=$),le!==ge)){if(ye=zh,ee="onMouseLeave",M="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(ye=$h,ee="onPointerLeave",M="onPointerEnter",I="pointer"),nt=le==null?q:$o(le),j=ge==null?q:$o(ge),q=new ye(ee,I+"leave",le,i,G),q.target=nt,q.relatedTarget=j,ee=null,Gr(G)===$&&(ye=new ye(M,I+"enter",ge,i,G),ye.target=j,ye.relatedTarget=nt,ee=ye),nt=ee,le&&ge)t:{for(ye=le,M=ge,I=0,j=ye;j;j=zo(j))I++;for(j=0,ee=M;ee;ee=zo(ee))j++;for(;0<I-j;)ye=zo(ye),I--;for(;0<j-I;)M=zo(M),j--;for(;I--;){if(ye===M||M!==null&&ye===M.alternate)break t;ye=zo(ye),M=zo(M)}ye=null}else ye=null;le!==null&&pv(Y,q,le,ye,!1),ge!==null&&nt!==null&&pv(Y,nt,ge,ye,!0)}}e:{if(q=$?$o($):window,le=q.nodeName&&q.nodeName.toLowerCase(),le==="select"||le==="input"&&q.type==="file")var we=Vb;else if(Zh(q))if(Kh)we=Hb;else{we=Bb;var be=Ub}else(le=q.nodeName)&&le.toLowerCase()==="input"&&(q.type==="checkbox"||q.type==="radio")&&(we=Wb);if(we&&(we=we(e,$))){qh(Y,we,i,G);break e}be&&be(e,q,$),e==="focusout"&&(be=q._wrapperState)&&be.controlled&&q.type==="number"&&Bu(q,"number",q.value)}switch(be=$?$o($):window,e){case"focusin":(Zh(be)||be.contentEditable==="true")&&(Lo=be,yc=$,Bi=null);break;case"focusout":Bi=yc=Lo=null;break;case"mousedown":xc=!0;break;case"contextmenu":case"mouseup":case"dragend":xc=!1,nv(Y,i,G);break;case"selectionchange":if(Kb)break;case"keydown":case"keyup":nv(Y,i,G)}var Ee;if(mc)e:{switch(e){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else Mo?Wh(e,i)&&(Pe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Pe="onCompositionStart");Pe&&(Vh&&i.locale!=="ko"&&(Mo||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&Mo&&(Ee=Lh()):(hr=G,lc="value"in hr?hr.value:hr.textContent,Mo=!0)),be=ka($,Pe),0<be.length&&(Pe=new Fh(Pe,e,null,i,G),Y.push({event:Pe,listeners:be}),Ee?Pe.data=Ee:(Ee=Hh(i),Ee!==null&&(Pe.data=Ee)))),(Ee=Lb?jb(e,i):zb(e,i))&&($=ka($,"onBeforeInput"),0<$.length&&(G=new Fh("onBeforeInput","beforeinput",null,i,G),Y.push({event:G,listeners:$}),G.data=Ee))}dv(Y,t)})}function Zi(e,t,i){return{instance:e,listener:t,currentTarget:i}}function ka(e,t){for(var i=t+"Capture",a=[];e!==null;){var c=e,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=Ri(e,i),f!=null&&a.unshift(Zi(e,f,c)),f=Ri(e,t),f!=null&&a.push(Zi(e,f,c))),e=e.return}return a}function zo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pv(e,t,i,a,c){for(var f=t._reactName,g=[];i!==null&&i!==a;){var k=i,R=k.alternate,$=k.stateNode;if(R!==null&&R===a)break;k.tag===5&&$!==null&&(k=$,c?(R=Ri(i,f),R!=null&&g.unshift(Zi(i,R,k))):c||(R=Ri(i,f),R!=null&&g.push(Zi(i,R,k)))),i=i.return}g.length!==0&&e.push({event:t,listeners:g})}var Xb=/\r\n?/g,Jb=/\u0000|\uFFFD/g;function mv(e){return(typeof e=="string"?e:""+e).replace(Xb,`
|
|
6
|
+
`).replace(Jb,"")}function ba(e,t,i){if(t=mv(t),mv(e)!==t&&i)throw Error(o(425))}function Ea(){}var Ec=null,Cc=null;function Rc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ic=typeof setTimeout=="function"?setTimeout:void 0,eE=typeof clearTimeout=="function"?clearTimeout:void 0,hv=typeof Promise=="function"?Promise:void 0,tE=typeof queueMicrotask=="function"?queueMicrotask:typeof hv<"u"?function(e){return hv.resolve(null).then(e).catch(nE)}:Ic;function nE(e){setTimeout(function(){throw e})}function Pc(e,t){var i=t,a=0;do{var c=i.nextSibling;if(e.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(a===0){e.removeChild(c),Li(t);return}a--}else i!=="$"&&i!=="$?"&&i!=="$!"||a++;i=c}while(i);Li(t)}function gr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}var Fo=Math.random().toString(36).slice(2),Sn="__reactFiber$"+Fo,qi="__reactProps$"+Fo,Bn="__reactContainer$"+Fo,Nc="__reactEvents$"+Fo,rE="__reactListeners$"+Fo,oE="__reactHandles$"+Fo;function Gr(e){var t=e[Sn];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Bn]||i[Sn]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=vv(e);e!==null;){if(i=e[Sn])return i;e=vv(e)}return t}e=i,i=e.parentNode}return null}function Ki(e){return e=e[Sn]||e[Bn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $o(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ca(e){return e[qi]||null}var Oc=[],Vo=-1;function yr(e){return{current:e}}function Ke(e){0>Vo||(e.current=Oc[Vo],Oc[Vo]=null,Vo--)}function Ze(e,t){Vo++,Oc[Vo]=e.current,e.current=t}var xr={},xt=yr(xr),Ot=yr(!1),Qr=xr;function Uo(e,t){var i=e.type.contextTypes;if(!i)return xr;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in i)c[f]=t[f];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function Tt(e){return e=e.childContextTypes,e!=null}function Ra(){Ke(Ot),Ke(xt)}function gv(e,t,i){if(xt.current!==xr)throw Error(o(168));Ze(xt,t),Ze(Ot,i)}function yv(e,t,i){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var c in a)if(!(c in t))throw Error(o(108,te(e)||"Unknown",c));return z({},i,a)}function Ia(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xr,Qr=xt.current,Ze(xt,e),Ze(Ot,Ot.current),!0}function xv(e,t,i){var a=e.stateNode;if(!a)throw Error(o(169));i?(e=yv(e,t,Qr),a.__reactInternalMemoizedMergedChildContext=e,Ke(Ot),Ke(xt),Ze(xt,e)):Ke(Ot),Ze(Ot,i)}var Wn=null,Pa=!1,Tc=!1;function wv(e){Wn===null?Wn=[e]:Wn.push(e)}function iE(e){Pa=!0,wv(e)}function wr(){if(!Tc&&Wn!==null){Tc=!0;var e=0,t=We;try{var i=Wn;for(We=1;e<i.length;e++){var a=i[e];do a=a(!0);while(a!==null)}Wn=null,Pa=!1}catch(c){throw Wn!==null&&(Wn=Wn.slice(e+1)),_h(ec,wr),c}finally{We=t,Tc=!1}}return null}var Bo=[],Wo=0,Na=null,Oa=0,Ht=[],Zt=0,Yr=null,Hn=1,Zn="";function Xr(e,t){Bo[Wo++]=Oa,Bo[Wo++]=Na,Na=e,Oa=t}function Sv(e,t,i){Ht[Zt++]=Hn,Ht[Zt++]=Zn,Ht[Zt++]=Yr,Yr=e;var a=Hn;e=Zn;var c=32-tn(a)-1;a&=~(1<<c),i+=1;var f=32-tn(t)+c;if(30<f){var g=c-c%5;f=(a&(1<<g)-1).toString(32),a>>=g,c-=g,Hn=1<<32-tn(t)+c|i<<c|a,Zn=f+e}else Hn=1<<f|i<<c|a,Zn=e}function Ac(e){e.return!==null&&(Xr(e,1),Sv(e,1,0))}function Dc(e){for(;e===Na;)Na=Bo[--Wo],Bo[Wo]=null,Oa=Bo[--Wo],Bo[Wo]=null;for(;e===Yr;)Yr=Ht[--Zt],Ht[Zt]=null,Zn=Ht[--Zt],Ht[Zt]=null,Hn=Ht[--Zt],Ht[Zt]=null}var $t=null,Vt=null,Qe=!1,rn=null;function _v(e,t){var i=Qt(5,null,null,0);i.elementType="DELETED",i.stateNode=t,i.return=e,t=e.deletions,t===null?(e.deletions=[i],e.flags|=16):t.push(i)}function kv(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$t=e,Vt=gr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$t=e,Vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(i=Yr!==null?{id:Hn,overflow:Zn}:null,e.memoizedState={dehydrated:t,treeContext:i,retryLane:1073741824},i=Qt(18,null,null,0),i.stateNode=t,i.return=e,e.child=i,$t=e,Vt=null,!0):!1;default:return!1}}function Mc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Lc(e){if(Qe){var t=Vt;if(t){var i=t;if(!kv(e,t)){if(Mc(e))throw Error(o(418));t=gr(i.nextSibling);var a=$t;t&&kv(e,t)?_v(a,i):(e.flags=e.flags&-4097|2,Qe=!1,$t=e)}}else{if(Mc(e))throw Error(o(418));e.flags=e.flags&-4097|2,Qe=!1,$t=e}}}function bv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$t=e}function Ta(e){if(e!==$t)return!1;if(!Qe)return bv(e),Qe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Rc(e.type,e.memoizedProps)),t&&(t=Vt)){if(Mc(e))throw Ev(),Error(o(418));for(;t;)_v(e,t),t=gr(t.nextSibling)}if(bv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){Vt=gr(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}Vt=null}}else Vt=$t?gr(e.stateNode.nextSibling):null;return!0}function Ev(){for(var e=Vt;e;)e=gr(e.nextSibling)}function Ho(){Vt=$t=null,Qe=!1}function jc(e){rn===null?rn=[e]:rn.push(e)}var sE=N.ReactCurrentBatchConfig;function Gi(e,t,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(o(309));var a=i.stateNode}if(!a)throw Error(o(147,e));var c=a,f=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f?t.ref:(t=function(g){var k=c.refs;g===null?delete k[f]:k[f]=g},t._stringRef=f,t)}if(typeof e!="string")throw Error(o(284));if(!i._owner)throw Error(o(290,e))}return e}function Aa(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cv(e){var t=e._init;return t(e._payload)}function Rv(e){function t(M,I){if(e){var j=M.deletions;j===null?(M.deletions=[I],M.flags|=16):j.push(I)}}function i(M,I){if(!e)return null;for(;I!==null;)t(M,I),I=I.sibling;return null}function a(M,I){for(M=new Map;I!==null;)I.key!==null?M.set(I.key,I):M.set(I.index,I),I=I.sibling;return M}function c(M,I){return M=Ir(M,I),M.index=0,M.sibling=null,M}function f(M,I,j){return M.index=j,e?(j=M.alternate,j!==null?(j=j.index,j<I?(M.flags|=2,I):j):(M.flags|=2,I)):(M.flags|=1048576,I)}function g(M){return e&&M.alternate===null&&(M.flags|=2),M}function k(M,I,j,ee){return I===null||I.tag!==6?(I=Id(j,M.mode,ee),I.return=M,I):(I=c(I,j),I.return=M,I)}function R(M,I,j,ee){var we=j.type;return we===W?G(M,I,j.props.children,ee,j.key):I!==null&&(I.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===ue&&Cv(we)===I.type)?(ee=c(I,j.props),ee.ref=Gi(M,I,j),ee.return=M,ee):(ee=rl(j.type,j.key,j.props,null,M.mode,ee),ee.ref=Gi(M,I,j),ee.return=M,ee)}function $(M,I,j,ee){return I===null||I.tag!==4||I.stateNode.containerInfo!==j.containerInfo||I.stateNode.implementation!==j.implementation?(I=Pd(j,M.mode,ee),I.return=M,I):(I=c(I,j.children||[]),I.return=M,I)}function G(M,I,j,ee,we){return I===null||I.tag!==7?(I=so(j,M.mode,ee,we),I.return=M,I):(I=c(I,j),I.return=M,I)}function Y(M,I,j){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Id(""+I,M.mode,j),I.return=M,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case U:return j=rl(I.type,I.key,I.props,null,M.mode,j),j.ref=Gi(M,null,I),j.return=M,j;case L:return I=Pd(I,M.mode,j),I.return=M,I;case ue:var ee=I._init;return Y(M,ee(I._payload),j)}if(bi(I)||X(I))return I=so(I,M.mode,j,null),I.return=M,I;Aa(M,I)}return null}function q(M,I,j,ee){var we=I!==null?I.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return we!==null?null:k(M,I,""+j,ee);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return j.key===we?R(M,I,j,ee):null;case L:return j.key===we?$(M,I,j,ee):null;case ue:return we=j._init,q(M,I,we(j._payload),ee)}if(bi(j)||X(j))return we!==null?null:G(M,I,j,ee,null);Aa(M,j)}return null}function le(M,I,j,ee,we){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return M=M.get(j)||null,k(I,M,""+ee,we);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case U:return M=M.get(ee.key===null?j:ee.key)||null,R(I,M,ee,we);case L:return M=M.get(ee.key===null?j:ee.key)||null,$(I,M,ee,we);case ue:var be=ee._init;return le(M,I,j,be(ee._payload),we)}if(bi(ee)||X(ee))return M=M.get(j)||null,G(I,M,ee,we,null);Aa(I,ee)}return null}function ge(M,I,j,ee){for(var we=null,be=null,Ee=I,Pe=I=0,ht=null;Ee!==null&&Pe<j.length;Pe++){Ee.index>Pe?(ht=Ee,Ee=null):ht=Ee.sibling;var $e=q(M,Ee,j[Pe],ee);if($e===null){Ee===null&&(Ee=ht);break}e&&Ee&&$e.alternate===null&&t(M,Ee),I=f($e,I,Pe),be===null?we=$e:be.sibling=$e,be=$e,Ee=ht}if(Pe===j.length)return i(M,Ee),Qe&&Xr(M,Pe),we;if(Ee===null){for(;Pe<j.length;Pe++)Ee=Y(M,j[Pe],ee),Ee!==null&&(I=f(Ee,I,Pe),be===null?we=Ee:be.sibling=Ee,be=Ee);return Qe&&Xr(M,Pe),we}for(Ee=a(M,Ee);Pe<j.length;Pe++)ht=le(Ee,M,Pe,j[Pe],ee),ht!==null&&(e&&ht.alternate!==null&&Ee.delete(ht.key===null?Pe:ht.key),I=f(ht,I,Pe),be===null?we=ht:be.sibling=ht,be=ht);return e&&Ee.forEach(function(Pr){return t(M,Pr)}),Qe&&Xr(M,Pe),we}function ye(M,I,j,ee){var we=X(j);if(typeof we!="function")throw Error(o(150));if(j=we.call(j),j==null)throw Error(o(151));for(var be=we=null,Ee=I,Pe=I=0,ht=null,$e=j.next();Ee!==null&&!$e.done;Pe++,$e=j.next()){Ee.index>Pe?(ht=Ee,Ee=null):ht=Ee.sibling;var Pr=q(M,Ee,$e.value,ee);if(Pr===null){Ee===null&&(Ee=ht);break}e&&Ee&&Pr.alternate===null&&t(M,Ee),I=f(Pr,I,Pe),be===null?we=Pr:be.sibling=Pr,be=Pr,Ee=ht}if($e.done)return i(M,Ee),Qe&&Xr(M,Pe),we;if(Ee===null){for(;!$e.done;Pe++,$e=j.next())$e=Y(M,$e.value,ee),$e!==null&&(I=f($e,I,Pe),be===null?we=$e:be.sibling=$e,be=$e);return Qe&&Xr(M,Pe),we}for(Ee=a(M,Ee);!$e.done;Pe++,$e=j.next())$e=le(Ee,M,Pe,$e.value,ee),$e!==null&&(e&&$e.alternate!==null&&Ee.delete($e.key===null?Pe:$e.key),I=f($e,I,Pe),be===null?we=$e:be.sibling=$e,be=$e);return e&&Ee.forEach(function(FE){return t(M,FE)}),Qe&&Xr(M,Pe),we}function nt(M,I,j,ee){if(typeof j=="object"&&j!==null&&j.type===W&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case U:e:{for(var we=j.key,be=I;be!==null;){if(be.key===we){if(we=j.type,we===W){if(be.tag===7){i(M,be.sibling),I=c(be,j.props.children),I.return=M,M=I;break e}}else if(be.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===ue&&Cv(we)===be.type){i(M,be.sibling),I=c(be,j.props),I.ref=Gi(M,be,j),I.return=M,M=I;break e}i(M,be);break}else t(M,be);be=be.sibling}j.type===W?(I=so(j.props.children,M.mode,ee,j.key),I.return=M,M=I):(ee=rl(j.type,j.key,j.props,null,M.mode,ee),ee.ref=Gi(M,I,j),ee.return=M,M=ee)}return g(M);case L:e:{for(be=j.key;I!==null;){if(I.key===be)if(I.tag===4&&I.stateNode.containerInfo===j.containerInfo&&I.stateNode.implementation===j.implementation){i(M,I.sibling),I=c(I,j.children||[]),I.return=M,M=I;break e}else{i(M,I);break}else t(M,I);I=I.sibling}I=Pd(j,M.mode,ee),I.return=M,M=I}return g(M);case ue:return be=j._init,nt(M,I,be(j._payload),ee)}if(bi(j))return ge(M,I,j,ee);if(X(j))return ye(M,I,j,ee);Aa(M,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,I!==null&&I.tag===6?(i(M,I.sibling),I=c(I,j),I.return=M,M=I):(i(M,I),I=Id(j,M.mode,ee),I.return=M,M=I),g(M)):i(M,I)}return nt}var Zo=Rv(!0),Iv=Rv(!1),Da=yr(null),Ma=null,qo=null,zc=null;function Fc(){zc=qo=Ma=null}function $c(e){var t=Da.current;Ke(Da),e._currentValue=t}function Vc(e,t,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===i)break;e=e.return}}function Ko(e,t){Ma=e,zc=qo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(At=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(zc!==e)if(e={context:e,memoizedValue:t,next:null},qo===null){if(Ma===null)throw Error(o(308));qo=e,Ma.dependencies={lanes:0,firstContext:e}}else qo=qo.next=e;return t}var Jr=null;function Uc(e){Jr===null?Jr=[e]:Jr.push(e)}function Pv(e,t,i,a){var c=t.interleaved;return c===null?(i.next=i,Uc(t)):(i.next=c.next,c.next=i),t.interleaved=i,qn(e,a)}function qn(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var Sr=!1;function Bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _r(e,t,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Fe&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,qn(e,i)}return c=a.interleaved,c===null?(t.next=t,Uc(a)):(t.next=c.next,c.next=t),a.interleaved=t,qn(e,i)}function La(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,i|=a,t.lanes=i,rc(e,i)}}function Ov(e,t){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var c=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var g={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};f===null?c=f=g:f=f.next=g,i=i.next}while(i!==null);f===null?c=f=t:f=f.next=t}else c=f=t;i={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function ja(e,t,i,a){var c=e.updateQueue;Sr=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,k=c.shared.pending;if(k!==null){c.shared.pending=null;var R=k,$=R.next;R.next=null,g===null?f=$:g.next=$,g=R;var G=e.alternate;G!==null&&(G=G.updateQueue,k=G.lastBaseUpdate,k!==g&&(k===null?G.firstBaseUpdate=$:k.next=$,G.lastBaseUpdate=R))}if(f!==null){var Y=c.baseState;g=0,G=$=R=null,k=f;do{var q=k.lane,le=k.eventTime;if((a&q)===q){G!==null&&(G=G.next={eventTime:le,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var ge=e,ye=k;switch(q=t,le=i,ye.tag){case 1:if(ge=ye.payload,typeof ge=="function"){Y=ge.call(le,Y,q);break e}Y=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=ye.payload,q=typeof ge=="function"?ge.call(le,Y,q):ge,q==null)break e;Y=z({},Y,q);break e;case 2:Sr=!0}}k.callback!==null&&k.lane!==0&&(e.flags|=64,q=c.effects,q===null?c.effects=[k]:q.push(k))}else le={eventTime:le,lane:q,tag:k.tag,payload:k.payload,callback:k.callback,next:null},G===null?($=G=le,R=Y):G=G.next=le,g|=q;if(k=k.next,k===null){if(k=c.shared.pending,k===null)break;q=k,k=q.next,q.next=null,c.lastBaseUpdate=q,c.shared.pending=null}}while(!0);if(G===null&&(R=Y),c.baseState=R,c.firstBaseUpdate=$,c.lastBaseUpdate=G,t=c.shared.interleaved,t!==null){c=t;do g|=c.lane,c=c.next;while(c!==t)}else f===null&&(c.shared.lanes=0);no|=g,e.lanes=g,e.memoizedState=Y}}function Tv(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],c=a.callback;if(c!==null){if(a.callback=null,a=i,typeof c!="function")throw Error(o(191,c));c.call(a)}}}var Qi={},_n=yr(Qi),Yi=yr(Qi),Xi=yr(Qi);function eo(e){if(e===Qi)throw Error(o(174));return e}function Wc(e,t){switch(Ze(Xi,t),Ze(Yi,e),Ze(_n,Qi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hu(t,e)}Ke(_n),Ze(_n,t)}function Go(){Ke(_n),Ke(Yi),Ke(Xi)}function Av(e){eo(Xi.current);var t=eo(_n.current),i=Hu(t,e.type);t!==i&&(Ze(Yi,e),Ze(_n,i))}function Hc(e){Yi.current===e&&(Ke(_n),Ke(Yi))}var Ye=yr(0);function za(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zc=[];function qc(){for(var e=0;e<Zc.length;e++)Zc[e]._workInProgressVersionPrimary=null;Zc.length=0}var Fa=N.ReactCurrentDispatcher,Kc=N.ReactCurrentBatchConfig,to=0,Xe=null,at=null,pt=null,$a=!1,Ji=!1,es=0,aE=0;function wt(){throw Error(o(321))}function Gc(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!nn(e[i],t[i]))return!1;return!0}function Qc(e,t,i,a,c,f){if(to=f,Xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fa.current=e===null||e.memoizedState===null?dE:fE,e=i(a,c),Ji){f=0;do{if(Ji=!1,es=0,25<=f)throw Error(o(301));f+=1,pt=at=null,t.updateQueue=null,Fa.current=pE,e=i(a,c)}while(Ji)}if(Fa.current=Ba,t=at!==null&&at.next!==null,to=0,pt=at=Xe=null,$a=!1,t)throw Error(o(300));return e}function Yc(){var e=es!==0;return es=0,e}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Xe.memoizedState=pt=e:pt=pt.next=e,pt}function Kt(){if(at===null){var e=Xe.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=pt===null?Xe.memoizedState:pt.next;if(t!==null)pt=t,at=e;else{if(e===null)throw Error(o(310));at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},pt===null?Xe.memoizedState=pt=e:pt=pt.next=e}return pt}function ts(e,t){return typeof t=="function"?t(e):t}function Xc(e){var t=Kt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var a=at,c=a.baseQueue,f=i.pending;if(f!==null){if(c!==null){var g=c.next;c.next=f.next,f.next=g}a.baseQueue=c=f,i.pending=null}if(c!==null){f=c.next,a=a.baseState;var k=g=null,R=null,$=f;do{var G=$.lane;if((to&G)===G)R!==null&&(R=R.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),a=$.hasEagerState?$.eagerState:e(a,$.action);else{var Y={lane:G,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};R===null?(k=R=Y,g=a):R=R.next=Y,Xe.lanes|=G,no|=G}$=$.next}while($!==null&&$!==f);R===null?g=a:R.next=k,nn(a,t.memoizedState)||(At=!0),t.memoizedState=a,t.baseState=g,t.baseQueue=R,i.lastRenderedState=a}if(e=i.interleaved,e!==null){c=e;do f=c.lane,Xe.lanes|=f,no|=f,c=c.next;while(c!==e)}else c===null&&(i.lanes=0);return[t.memoizedState,i.dispatch]}function Jc(e){var t=Kt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var a=i.dispatch,c=i.pending,f=t.memoizedState;if(c!==null){i.pending=null;var g=c=c.next;do f=e(f,g.action),g=g.next;while(g!==c);nn(f,t.memoizedState)||(At=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),i.lastRenderedState=f}return[f,a]}function Dv(){}function Mv(e,t){var i=Xe,a=Kt(),c=t(),f=!nn(a.memoizedState,c);if(f&&(a.memoizedState=c,At=!0),a=a.queue,ed(zv.bind(null,i,a,e),[e]),a.getSnapshot!==t||f||pt!==null&&pt.memoizedState.tag&1){if(i.flags|=2048,ns(9,jv.bind(null,i,a,c,t),void 0,null),mt===null)throw Error(o(349));(to&30)!==0||Lv(i,t,c)}return c}function Lv(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Xe.updateQueue,t===null?(t={lastEffect:null,stores:null},Xe.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function jv(e,t,i,a){t.value=i,t.getSnapshot=a,Fv(t)&&$v(e)}function zv(e,t,i){return i(function(){Fv(t)&&$v(e)})}function Fv(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!nn(e,i)}catch{return!0}}function $v(e){var t=qn(e,1);t!==null&&ln(t,e,1,-1)}function Vv(e){var t=kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:e},t.queue=e,e=e.dispatch=cE.bind(null,Xe,e),[t.memoizedState,e]}function ns(e,t,i,a){return e={tag:e,create:t,destroy:i,deps:a,next:null},t=Xe.updateQueue,t===null?(t={lastEffect:null,stores:null},Xe.updateQueue=t,t.lastEffect=e.next=e):(i=t.lastEffect,i===null?t.lastEffect=e.next=e:(a=i.next,i.next=e,e.next=a,t.lastEffect=e)),e}function Uv(){return Kt().memoizedState}function Va(e,t,i,a){var c=kn();Xe.flags|=e,c.memoizedState=ns(1|t,i,void 0,a===void 0?null:a)}function Ua(e,t,i,a){var c=Kt();a=a===void 0?null:a;var f=void 0;if(at!==null){var g=at.memoizedState;if(f=g.destroy,a!==null&&Gc(a,g.deps)){c.memoizedState=ns(t,i,f,a);return}}Xe.flags|=e,c.memoizedState=ns(1|t,i,f,a)}function Bv(e,t){return Va(8390656,8,e,t)}function ed(e,t){return Ua(2048,8,e,t)}function Wv(e,t){return Ua(4,2,e,t)}function Hv(e,t){return Ua(4,4,e,t)}function Zv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qv(e,t,i){return i=i!=null?i.concat([e]):null,Ua(4,4,Zv.bind(null,t,e),i)}function td(){}function Kv(e,t){var i=Kt();t=t===void 0?null:t;var a=i.memoizedState;return a!==null&&t!==null&&Gc(t,a[1])?a[0]:(i.memoizedState=[e,t],e)}function Gv(e,t){var i=Kt();t=t===void 0?null:t;var a=i.memoizedState;return a!==null&&t!==null&&Gc(t,a[1])?a[0]:(e=e(),i.memoizedState=[e,t],e)}function Qv(e,t,i){return(to&21)===0?(e.baseState&&(e.baseState=!1,At=!0),e.memoizedState=i):(nn(i,t)||(i=Ch(),Xe.lanes|=i,no|=i,e.baseState=!0),t)}function lE(e,t){var i=We;We=i!==0&&4>i?i:4,e(!0);var a=Kc.transition;Kc.transition={};try{e(!1),t()}finally{We=i,Kc.transition=a}}function Yv(){return Kt().memoizedState}function uE(e,t,i){var a=Cr(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},Xv(e))Jv(t,i);else if(i=Pv(e,t,i,a),i!==null){var c=Rt();ln(i,e,a,c),eg(i,t,a)}}function cE(e,t,i){var a=Cr(e),c={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(Xv(e))Jv(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,k=f(g,i);if(c.hasEagerState=!0,c.eagerState=k,nn(k,g)){var R=t.interleaved;R===null?(c.next=c,Uc(t)):(c.next=R.next,R.next=c),t.interleaved=c;return}}catch{}i=Pv(e,t,c,a),i!==null&&(c=Rt(),ln(i,e,a,c),eg(i,t,a))}}function Xv(e){var t=e.alternate;return e===Xe||t!==null&&t===Xe}function Jv(e,t){Ji=$a=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function eg(e,t,i){if((i&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,i|=a,t.lanes=i,rc(e,i)}}var Ba={readContext:qt,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},dE={readContext:qt,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Bv,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,Va(4194308,4,Zv.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Va(4194308,4,e,t)},useInsertionEffect:function(e,t){return Va(4,2,e,t)},useMemo:function(e,t){var i=kn();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var a=kn();return t=i!==void 0?i(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=uE.bind(null,Xe,e),[a.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:Vv,useDebugValue:td,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=Vv(!1),t=e[0];return e=lE.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var a=Xe,c=kn();if(Qe){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),mt===null)throw Error(o(349));(to&30)!==0||Lv(a,t,i)}c.memoizedState=i;var f={value:i,getSnapshot:t};return c.queue=f,Bv(zv.bind(null,a,f,e),[e]),a.flags|=2048,ns(9,jv.bind(null,a,f,i,t),void 0,null),i},useId:function(){var e=kn(),t=mt.identifierPrefix;if(Qe){var i=Zn,a=Hn;i=(a&~(1<<32-tn(a)-1)).toString(32)+i,t=":"+t+"R"+i,i=es++,0<i&&(t+="H"+i.toString(32)),t+=":"}else i=aE++,t=":"+t+"r"+i.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fE={readContext:qt,useCallback:Kv,useContext:qt,useEffect:ed,useImperativeHandle:qv,useInsertionEffect:Wv,useLayoutEffect:Hv,useMemo:Gv,useReducer:Xc,useRef:Uv,useState:function(){return Xc(ts)},useDebugValue:td,useDeferredValue:function(e){var t=Kt();return Qv(t,at.memoizedState,e)},useTransition:function(){var e=Xc(ts)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:Dv,useSyncExternalStore:Mv,useId:Yv,unstable_isNewReconciler:!1},pE={readContext:qt,useCallback:Kv,useContext:qt,useEffect:ed,useImperativeHandle:qv,useInsertionEffect:Wv,useLayoutEffect:Hv,useMemo:Gv,useReducer:Jc,useRef:Uv,useState:function(){return Jc(ts)},useDebugValue:td,useDeferredValue:function(e){var t=Kt();return at===null?t.memoizedState=e:Qv(t,at.memoizedState,e)},useTransition:function(){var e=Jc(ts)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:Dv,useSyncExternalStore:Mv,useId:Yv,unstable_isNewReconciler:!1};function on(e,t){if(e&&e.defaultProps){t=z({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i]);return t}return t}function nd(e,t,i,a){t=e.memoizedState,i=i(a,t),i=i==null?t:z({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Wa={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternals;var a=Rt(),c=Cr(e),f=Kn(a,c);f.payload=t,i!=null&&(f.callback=i),t=_r(e,f,c),t!==null&&(ln(t,e,c,a),La(t,e,c))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var a=Rt(),c=Cr(e),f=Kn(a,c);f.tag=1,f.payload=t,i!=null&&(f.callback=i),t=_r(e,f,c),t!==null&&(ln(t,e,c,a),La(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Rt(),a=Cr(e),c=Kn(i,a);c.tag=2,t!=null&&(c.callback=t),t=_r(e,c,a),t!==null&&(ln(t,e,a,i),La(t,e,a))}};function tg(e,t,i,a,c,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,f,g):t.prototype&&t.prototype.isPureReactComponent?!Ui(i,a)||!Ui(c,f):!0}function ng(e,t,i){var a=!1,c=xr,f=t.contextType;return typeof f=="object"&&f!==null?f=qt(f):(c=Tt(t)?Qr:xt.current,a=t.contextTypes,f=(a=a!=null)?Uo(e,c):xr),t=new t(i,f),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=f),t}function rg(e,t,i,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,a),t.state!==e&&Wa.enqueueReplaceState(t,t.state,null)}function rd(e,t,i,a){var c=e.stateNode;c.props=i,c.state=e.memoizedState,c.refs={},Bc(e);var f=t.contextType;typeof f=="object"&&f!==null?c.context=qt(f):(f=Tt(t)?Qr:xt.current,c.context=Uo(e,f)),c.state=e.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(nd(e,t,f,i),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&Wa.enqueueReplaceState(c,c.state,null),ja(e,i,c,a),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function Qo(e,t){try{var i="",a=t;do i+=H(a),a=a.return;while(a);var c=i}catch(f){c=`
|
|
7
7
|
Error generating stack: `+f.message+`
|
|
8
|
-
`+f.stack}return{value:e,source:t,stack:c,digest:null}}function rd(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function od(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var cb=typeof WeakMap=="function"?WeakMap:Map;function ng(e,t,i){i=Kn(-1,i),i.tag=3,i.payload={element:null};var a=t.value;return i.callback=function(){Ya||(Ya=!0,xd=a),od(e,t)},i}function rg(e,t,i){i=Kn(-1,i),i.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var c=t.value;i.payload=function(){return a(c)},i.callback=function(){od(e,t)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(i.callback=function(){od(e,t),typeof a!="function"&&(Er===null?Er=new Set([this]):Er.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),i}function og(e,t,i){var a=e.pingCache;if(a===null){a=e.pingCache=new cb;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));c.has(i)||(c.add(i),e=Eb.bind(null,e,t,i),t.then(e,e))}function ig(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sg(e,t,i,a,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=Kn(-1,1),t.tag=2,_r(i,t,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var db=N.ReactCurrentOwner,At=!1;function Ct(e,t,i,a){t.child=e===null?Cv(t,null,i,a):Zo(t,e.child,i,a)}function ag(e,t,i,a,c){i=i.render;var f=t.ref;return Ko(t,c),a=Gc(e,t,i,a,f,c),i=Qc(),e!==null&&!At?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Gn(e,t,c)):(Ge&&i&&Tc(t),t.flags|=1,Ct(e,t,a,c),t.child)}function lg(e,t,i,a,c){if(e===null){var f=i.type;return typeof f=="function"&&!Cd(f)&&f.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=f,ug(e,t,f,a,c)):(e=rl(i.type,null,a,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,(e.lanes&c)===0){var g=f.memoizedProps;if(i=i.compare,i=i!==null?i:Ui,i(g,a)&&e.ref===t.ref)return Gn(e,t,c)}return t.flags|=1,e=Ir(f,a),e.ref=t.ref,e.return=t,t.child=e}function ug(e,t,i,a,c){if(e!==null){var f=e.memoizedProps;if(Ui(f,a)&&e.ref===t.ref)if(At=!1,t.pendingProps=a=f,(e.lanes&c)!==0)(e.flags&131072)!==0&&(At=!0);else return t.lanes=e.lanes,Gn(e,t,c)}return id(e,t,i,a,c)}function cg(e,t,i){var a=t.pendingProps,c=a.children,f=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ze(Xo,Ut),Ut|=i;else{if((i&1073741824)===0)return e=f!==null?f.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ze(Xo,Ut),Ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=f!==null?f.baseLanes:i,Ze(Xo,Ut),Ut|=a}else f!==null?(a=f.baseLanes|i,t.memoizedState=null):a=i,Ze(Xo,Ut),Ut|=a;return Ct(e,t,c,i),t.child}function dg(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function id(e,t,i,a,c){var f=Tt(i)?Qr:xt.current;return f=Uo(t,f),Ko(t,c),i=Gc(e,t,i,a,f,c),a=Qc(),e!==null&&!At?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Gn(e,t,c)):(Ge&&a&&Tc(t),t.flags|=1,Ct(e,t,i,c),t.child)}function fg(e,t,i,a,c){if(Tt(i)){var f=!0;Ia(t)}else f=!1;if(Ko(t,c),t.stateNode===null)Za(e,t),eg(t,i,a),nd(t,i,a,c),a=!0;else if(e===null){var g=t.stateNode,k=t.memoizedProps;g.props=k;var R=g.context,$=i.contextType;typeof $=="object"&&$!==null?$=qt($):($=Tt(i)?Qr:xt.current,$=Uo(t,$));var G=i.getDerivedStateFromProps,Y=typeof G=="function"||typeof g.getSnapshotBeforeUpdate=="function";Y||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(k!==a||R!==$)&&tg(t,g,a,$),Sr=!1;var q=t.memoizedState;g.state=q,ja(t,a,g,c),R=t.memoizedState,k!==a||q!==R||Ot.current||Sr?(typeof G=="function"&&(td(t,i,G,a),R=t.memoizedState),(k=Sr||Jv(t,i,k,a,q,R,$))?(Y||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=R),g.props=a,g.state=R,g.context=$,a=k):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{g=t.stateNode,Iv(e,t),k=t.memoizedProps,$=t.type===t.elementType?k:on(t.type,k),g.props=$,Y=t.pendingProps,q=g.context,R=i.contextType,typeof R=="object"&&R!==null?R=qt(R):(R=Tt(i)?Qr:xt.current,R=Uo(t,R));var le=i.getDerivedStateFromProps;(G=typeof le=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(k!==Y||q!==R)&&tg(t,g,a,R),Sr=!1,q=t.memoizedState,g.state=q,ja(t,a,g,c);var ge=t.memoizedState;k!==Y||q!==ge||Ot.current||Sr?(typeof le=="function"&&(td(t,i,le,a),ge=t.memoizedState),($=Sr||Jv(t,i,$,a,q,ge,R)||!1)?(G||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,ge,R),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,ge,R)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||k===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||k===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=ge),g.props=a,g.state=ge,g.context=R,a=$):(typeof g.componentDidUpdate!="function"||k===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||k===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),a=!1)}return sd(e,t,i,a,f,c)}function sd(e,t,i,a,c,f){dg(e,t);var g=(t.flags&128)!==0;if(!a&&!g)return c&&gv(t,i,!1),Gn(e,t,f);a=t.stateNode,db.current=t;var k=g&&typeof i.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&g?(t.child=Zo(t,e.child,null,f),t.child=Zo(t,null,k,f)):Ct(e,t,k,f),t.memoizedState=a.state,c&&gv(t,i,!0),t.child}function pg(e){var t=e.stateNode;t.pendingContext?hv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hv(e,t.context,!1),Bc(e,t.containerInfo)}function mg(e,t,i,a,c){return Ho(),Lc(c),t.flags|=256,Ct(e,t,i,a),t.child}var ad={dehydrated:null,treeContext:null,retryLane:0};function ld(e){return{baseLanes:e,cachePool:null,transitions:null}}function hg(e,t,i){var a=t.pendingProps,c=Ye.current,f=!1,g=(t.flags&128)!==0,k;if((k=g)||(k=e!==null&&e.memoizedState===null?!1:(c&2)!==0),k?(f=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Ze(Ye,c&1),e===null)return Mc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(g=a.children,e=a.fallback,f?(a=t.mode,f=t.child,g={mode:"hidden",children:g},(a&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=g):f=ol(g,a,0,null),e=so(e,a,i,null),f.return=t,e.return=t,f.sibling=e,t.child=f,t.child.memoizedState=ld(i),t.memoizedState=ad,e):ud(t,g));if(c=e.memoizedState,c!==null&&(k=c.dehydrated,k!==null))return fb(e,t,g,a,k,c,i);if(f){f=a.fallback,g=t.mode,c=e.child,k=c.sibling;var R={mode:"hidden",children:a.children};return(g&1)===0&&t.child!==c?(a=t.child,a.childLanes=0,a.pendingProps=R,t.deletions=null):(a=Ir(c,R),a.subtreeFlags=c.subtreeFlags&14680064),k!==null?f=Ir(k,f):(f=so(f,g,i,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,a=f,f=t.child,g=e.child.memoizedState,g=g===null?ld(i):{baseLanes:g.baseLanes|i,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=e.childLanes&~i,t.memoizedState=ad,a}return f=e.child,e=f.sibling,a=Ir(f,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=i),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a}function ud(e,t){return t=ol({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ha(e,t,i,a){return a!==null&&Lc(a),Zo(t,e.child,null,i),e=ud(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fb(e,t,i,a,c,f,g){if(i)return t.flags&256?(t.flags&=-257,a=rd(Error(o(422))),Ha(e,t,g,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(f=a.fallback,c=t.mode,a=ol({mode:"visible",children:a.children},c,0,null),f=so(f,c,g,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,(t.mode&1)!==0&&Zo(t,e.child,null,g),t.child.memoizedState=ld(g),t.memoizedState=ad,f);if((t.mode&1)===0)return Ha(e,t,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var k=a.dgst;return a=k,f=Error(o(419)),a=rd(f,a,void 0),Ha(e,t,g,a)}if(k=(g&e.childLanes)!==0,At||k){if(a=mt,a!==null){switch(g&-g){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(a.suspendedLanes|g))!==0?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,qn(e,c),ln(a,e,c,-1))}return bd(),a=rd(Error(o(421))),Ha(e,t,g,a)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=bb.bind(null,e),c._reactRetry=t,null):(e=f.treeContext,Vt=gr(c.nextSibling),$t=t,Ge=!0,rn=null,e!==null&&(Ht[Zt++]=Hn,Ht[Zt++]=Zn,Ht[Zt++]=Yr,Hn=e.id,Zn=e.overflow,Yr=t),t=ud(t,a.children),t.flags|=4096,t)}function vg(e,t,i){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),$c(e.return,t,i)}function cd(e,t,i,a,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=i,f.tailMode=c)}function gg(e,t,i){var a=t.pendingProps,c=a.revealOrder,f=a.tail;if(Ct(e,t,a.children,i),a=Ye.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vg(e,i,t);else if(e.tag===19)vg(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Ze(Ye,a),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(i=t.child,c=null;i!==null;)e=i.alternate,e!==null&&za(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=t.child,t.child=null):(c=i.sibling,i.sibling=null),cd(t,!1,c,i,f);break;case"backwards":for(i=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&za(e)===null){t.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}cd(t,!0,i,null,f);break;case"together":cd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Za(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),no|=t.lanes,(i&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=Ir(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Ir(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function pb(e,t,i){switch(t.tag){case 3:pg(t),Ho();break;case 5:Ov(t);break;case 1:Tt(t.type)&&Ia(t);break;case 4:Bc(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,c=t.memoizedProps.value;Ze(Da,a._currentValue),a._currentValue=c;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Ze(Ye,Ye.current&1),t.flags|=128,null):(i&t.child.childLanes)!==0?hg(e,t,i):(Ze(Ye,Ye.current&1),e=Gn(e,t,i),e!==null?e.sibling:null);Ze(Ye,Ye.current&1);break;case 19:if(a=(i&t.childLanes)!==0,(e.flags&128)!==0){if(a)return gg(e,t,i);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ze(Ye,Ye.current),a)break;return null;case 22:case 23:return t.lanes=0,cg(e,t,i)}return Gn(e,t,i)}var yg,dd,xg,wg;yg=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},dd=function(){},xg=function(e,t,i,a){var c=e.memoizedProps;if(c!==a){e=t.stateNode,eo(_n.current);var f=null;switch(i){case"input":c=ft(e,c),a=ft(e,a),f=[];break;case"select":c=z({},c,{value:void 0}),a=z({},a,{value:void 0}),f=[];break;case"textarea":c=Bu(e,c),a=Bu(e,a),f=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=ba)}Hu(i,a);var g;i=null;for($ in c)if(!a.hasOwnProperty($)&&c.hasOwnProperty($)&&c[$]!=null)if($==="style"){var k=c[$];for(g in k)k.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(l.hasOwnProperty($)?f||(f=[]):(f=f||[]).push($,null));for($ in a){var R=a[$];if(k=c?.[$],a.hasOwnProperty($)&&R!==k&&(R!=null||k!=null))if($==="style")if(k){for(g in k)!k.hasOwnProperty(g)||R&&R.hasOwnProperty(g)||(i||(i={}),i[g]="");for(g in R)R.hasOwnProperty(g)&&k[g]!==R[g]&&(i||(i={}),i[g]=R[g])}else i||(f||(f=[]),f.push($,i)),i=R;else $==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,k=k?k.__html:void 0,R!=null&&k!==R&&(f=f||[]).push($,R)):$==="children"?typeof R!="string"&&typeof R!="number"||(f=f||[]).push($,""+R):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(l.hasOwnProperty($)?(R!=null&&$==="onScroll"&&qe("scroll",e),f||k===R||(f=[])):(f=f||[]).push($,R))}i&&(f=f||[]).push("style",i);var $=f;(t.updateQueue=$)&&(t.flags|=4)}},wg=function(e,t,i,a){i!==a&&(t.flags|=4)};function rs(e,t){if(!Ge)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function St(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,a=0;if(t)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=i,t}function mb(e,t,i){var a=t.pendingProps;switch(Ac(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(t),null;case 1:return Tt(t.type)&&Ra(),St(t),null;case 3:return a=t.stateNode,Go(),Ke(Ot),Ke(xt),Zc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ta(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rn!==null&&(_d(rn),rn=null))),dd(e,t),St(t),null;case 5:Wc(t);var c=eo(Xi.current);if(i=t.type,e!==null&&t.stateNode!=null)xg(e,t,i,a,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(o(166));return St(t),null}if(e=eo(_n.current),Ta(t)){a=t.stateNode,i=t.type;var f=t.memoizedProps;switch(a[Sn]=t,a[qi]=f,e=(t.mode&1)!==0,i){case"dialog":qe("cancel",a),qe("close",a);break;case"iframe":case"object":case"embed":qe("load",a);break;case"video":case"audio":for(c=0;c<Wi.length;c++)qe(Wi[c],a);break;case"source":qe("error",a);break;case"img":case"image":case"link":qe("error",a),qe("load",a);break;case"details":qe("toggle",a);break;case"input":bt(a,f),qe("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!f.multiple},qe("invalid",a);break;case"textarea":rh(a,f),qe("invalid",a)}Hu(i,f),c=null;for(var g in f)if(f.hasOwnProperty(g)){var k=f[g];g==="children"?typeof k=="string"?a.textContent!==k&&(f.suppressHydrationWarning!==!0&&Ea(a.textContent,k,e),c=["children",k]):typeof k=="number"&&a.textContent!==""+k&&(f.suppressHydrationWarning!==!0&&Ea(a.textContent,k,e),c=["children",""+k]):l.hasOwnProperty(g)&&k!=null&&g==="onScroll"&&qe("scroll",a)}switch(i){case"input":Ne(a),Po(a,f,!0);break;case"textarea":Ne(a),ih(a);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(a.onclick=ba)}a=c,t.updateQueue=a,a!==null&&(t.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=sh(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=g.createElement(i,{is:a.is}):(e=g.createElement(i),i==="select"&&(g=e,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):e=g.createElementNS(e,i),e[Sn]=t,e[qi]=a,yg(e,t,!1,!1),t.stateNode=e;e:{switch(g=Zu(i,a),i){case"dialog":qe("cancel",e),qe("close",e),c=a;break;case"iframe":case"object":case"embed":qe("load",e),c=a;break;case"video":case"audio":for(c=0;c<Wi.length;c++)qe(Wi[c],e);c=a;break;case"source":qe("error",e),c=a;break;case"img":case"image":case"link":qe("error",e),qe("load",e),c=a;break;case"details":qe("toggle",e),c=a;break;case"input":bt(e,a),c=ft(e,a),qe("invalid",e);break;case"option":c=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},c=z({},a,{value:void 0}),qe("invalid",e);break;case"textarea":rh(e,a),c=Bu(e,a),qe("invalid",e);break;default:c=a}Hu(i,c),k=c;for(f in k)if(k.hasOwnProperty(f)){var R=k[f];f==="style"?uh(e,R):f==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&ah(e,R)):f==="children"?typeof R=="string"?(i!=="textarea"||R!=="")&&bi(e,R):typeof R=="number"&&bi(e,""+R):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(l.hasOwnProperty(f)?R!=null&&f==="onScroll"&&qe("scroll",e):R!=null&&T(e,f,R,g))}switch(i){case"input":Ne(e),Po(e,a,!1);break;case"textarea":Ne(e),ih(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Z(a.value));break;case"select":e.multiple=!!a.multiple,f=a.value,f!=null?No(e,!!a.multiple,f,!1):a.defaultValue!=null&&No(e,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=ba)}switch(i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return St(t),null;case 6:if(e&&t.stateNode!=null)wg(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(i=eo(Xi.current),eo(_n.current),Ta(t)){if(a=t.stateNode,i=t.memoizedProps,a[Sn]=t,(f=a.nodeValue!==i)&&(e=$t,e!==null))switch(e.tag){case 3:Ea(a.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ea(a.nodeValue,i,(e.mode&1)!==0)}f&&(t.flags|=4)}else a=(i.nodeType===9?i:i.ownerDocument).createTextNode(a),a[Sn]=t,t.stateNode=a}return St(t),null;case 13:if(Ke(Ye),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ge&&Vt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)kv(),Ho(),t.flags|=98560,f=!1;else if(f=Ta(t),a!==null&&a.dehydrated!==null){if(e===null){if(!f)throw Error(o(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[Sn]=t}else Ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;St(t),f=!1}else rn!==null&&(_d(rn),rn=null),f=!0;if(!f)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=i,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ye.current&1)!==0?lt===0&&(lt=3):bd())),t.updateQueue!==null&&(t.flags|=4),St(t),null);case 4:return Go(),dd(e,t),e===null&&Hi(t.stateNode.containerInfo),St(t),null;case 10:return Fc(t.type._context),St(t),null;case 17:return Tt(t.type)&&Ra(),St(t),null;case 19:if(Ke(Ye),f=t.memoizedState,f===null)return St(t),null;if(a=(t.flags&128)!==0,g=f.rendering,g===null)if(a)rs(f,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(g=za(e),g!==null){for(t.flags|=128,rs(f,!1),a=g.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=i,i=t.child;i!==null;)f=i,e=a,f.flags&=14680066,g=f.alternate,g===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,e=g.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return Ze(Ye,Ye.current&1|2),t.child}e=e.sibling}f.tail!==null&&tt()>Jo&&(t.flags|=128,a=!0,rs(f,!1),t.lanes=4194304)}else{if(!a)if(e=za(g),e!==null){if(t.flags|=128,a=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),rs(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Ge)return St(t),null}else 2*tt()-f.renderingStartTime>Jo&&i!==1073741824&&(t.flags|=128,a=!0,rs(f,!1),t.lanes=4194304);f.isBackwards?(g.sibling=t.child,t.child=g):(i=f.last,i!==null?i.sibling=g:t.child=g,f.last=g)}return f.tail!==null?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=tt(),t.sibling=null,i=Ye.current,Ze(Ye,a?i&1|2:i&1),t):(St(t),null);case 22:case 23:return Ed(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(Ut&1073741824)!==0&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function hb(e,t){switch(Ac(t),t.tag){case 1:return Tt(t.type)&&Ra(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),Ke(Ot),Ke(xt),Zc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Wc(t),null;case 13:if(Ke(Ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(Ye),null;case 4:return Go(),null;case 10:return Fc(t.type._context),null;case 22:case 23:return Ed(),null;case 24:return null;default:return null}}var qa=!1,_t=!1,vb=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Yo(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){et(e,t,a)}else i.current=null}function fd(e,t,i){try{i()}catch(a){et(e,t,a)}}var Sg=!1;function gb(e,t){if(Ec=pa,e=Jh(),vc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var c=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var g=0,k=-1,R=-1,$=0,G=0,Y=e,q=null;t:for(;;){for(var le;Y!==i||c!==0&&Y.nodeType!==3||(k=g+c),Y!==f||a!==0&&Y.nodeType!==3||(R=g+a),Y.nodeType===3&&(g+=Y.nodeValue.length),(le=Y.firstChild)!==null;)q=Y,Y=le;for(;;){if(Y===e)break t;if(q===i&&++$===c&&(k=g),q===f&&++G===a&&(R=g),(le=Y.nextSibling)!==null)break;Y=q,q=Y.parentNode}Y=le}i=k===-1||R===-1?null:{start:k,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(bc={focusedElem:e,selectionRange:i},pa=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){t=pe;try{var ge=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ge!==null){var ye=ge.memoizedProps,nt=ge.memoizedState,M=t.stateNode,I=M.getSnapshotBeforeUpdate(t.elementType===t.type?ye:on(t.type,ye),nt);M.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var j=t.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ee){et(t,t.return,ee)}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}return ge=Sg,Sg=!1,ge}function os(e,t,i){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&e)===e){var f=c.destroy;c.destroy=void 0,f!==void 0&&fd(t,i,f)}c=c.next}while(c!==a)}}function Ka(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==t)}}function pd(e){var t=e.ref;if(t!==null){var i=e.stateNode;e.tag,e=i,typeof t=="function"?t(e):t.current=e}}function _g(e){var t=e.alternate;t!==null&&(e.alternate=null,_g(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Sn],delete t[qi],delete t[Pc],delete t[JE],delete t[eb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kg(e){return e.tag===5||e.tag===3||e.tag===4}function Eg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function md(e,t,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=ba));else if(a!==4&&(e=e.child,e!==null))for(md(e,t,i),e=e.sibling;e!==null;)md(e,t,i),e=e.sibling}function hd(e,t,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(hd(e,t,i),e=e.sibling;e!==null;)hd(e,t,i),e=e.sibling}var gt=null,sn=!1;function kr(e,t,i){for(i=i.child;i!==null;)bg(e,t,i),i=i.sibling}function bg(e,t,i){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(aa,i)}catch{}switch(i.tag){case 5:_t||Yo(i,t);case 6:var a=gt,c=sn;gt=null,kr(e,t,i),gt=a,sn=c,gt!==null&&(sn?(e=gt,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):gt.removeChild(i.stateNode));break;case 18:gt!==null&&(sn?(e=gt,i=i.stateNode,e.nodeType===8?Ic(e.parentNode,i):e.nodeType===1&&Ic(e,i),Li(e)):Ic(gt,i.stateNode));break;case 4:a=gt,c=sn,gt=i.stateNode.containerInfo,sn=!0,kr(e,t,i),gt=a,sn=c;break;case 0:case 11:case 14:case 15:if(!_t&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var f=c,g=f.destroy;f=f.tag,g!==void 0&&((f&2)!==0||(f&4)!==0)&&fd(i,t,g),c=c.next}while(c!==a)}kr(e,t,i);break;case 1:if(!_t&&(Yo(i,t),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(k){et(i,t,k)}kr(e,t,i);break;case 21:kr(e,t,i);break;case 22:i.mode&1?(_t=(a=_t)||i.memoizedState!==null,kr(e,t,i),_t=a):kr(e,t,i);break;default:kr(e,t,i)}}function Cg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new vb),t.forEach(function(a){var c=Cb.bind(null,e,a);i.has(a)||(i.add(a),a.then(c,c))})}}function an(e,t){var i=t.deletions;if(i!==null)for(var a=0;a<i.length;a++){var c=i[a];try{var f=e,g=t,k=g;e:for(;k!==null;){switch(k.tag){case 5:gt=k.stateNode,sn=!1;break e;case 3:gt=k.stateNode.containerInfo,sn=!0;break e;case 4:gt=k.stateNode.containerInfo,sn=!0;break e}k=k.return}if(gt===null)throw Error(o(160));bg(f,g,c),gt=null,sn=!1;var R=c.alternate;R!==null&&(R.return=null),c.return=null}catch($){et(c,t,$)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rg(t,e),t=t.sibling}function Rg(e,t){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(an(t,e),En(e),a&4){try{os(3,e,e.return),Ka(3,e)}catch(ye){et(e,e.return,ye)}try{os(5,e,e.return)}catch(ye){et(e,e.return,ye)}}break;case 1:an(t,e),En(e),a&512&&i!==null&&Yo(i,i.return);break;case 5:if(an(t,e),En(e),a&512&&i!==null&&Yo(i,i.return),e.flags&32){var c=e.stateNode;try{bi(c,"")}catch(ye){et(e,e.return,ye)}}if(a&4&&(c=e.stateNode,c!=null)){var f=e.memoizedProps,g=i!==null?i.memoizedProps:f,k=e.type,R=e.updateQueue;if(e.updateQueue=null,R!==null)try{k==="input"&&f.type==="radio"&&f.name!=null&&Io(c,f),Zu(k,g);var $=Zu(k,f);for(g=0;g<R.length;g+=2){var G=R[g],Y=R[g+1];G==="style"?uh(c,Y):G==="dangerouslySetInnerHTML"?ah(c,Y):G==="children"?bi(c,Y):T(c,G,Y,$)}switch(k){case"input":qr(c,f);break;case"textarea":oh(c,f);break;case"select":var q=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var le=f.value;le!=null?No(c,!!f.multiple,le,!1):q!==!!f.multiple&&(f.defaultValue!=null?No(c,!!f.multiple,f.defaultValue,!0):No(c,!!f.multiple,f.multiple?[]:"",!1))}c[qi]=f}catch(ye){et(e,e.return,ye)}}break;case 6:if(an(t,e),En(e),a&4){if(e.stateNode===null)throw Error(o(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(ye){et(e,e.return,ye)}}break;case 3:if(an(t,e),En(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Li(t.containerInfo)}catch(ye){et(e,e.return,ye)}break;case 4:an(t,e),En(e);break;case 13:an(t,e),En(e),c=e.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(yd=tt())),a&4&&Cg(e);break;case 22:if(G=i!==null&&i.memoizedState!==null,e.mode&1?(_t=($=_t)||G,an(t,e),_t=$):an(t,e),En(e),a&8192){if($=e.memoizedState!==null,(e.stateNode.isHidden=$)&&!G&&(e.mode&1)!==0)for(pe=e,G=e.child;G!==null;){for(Y=pe=G;pe!==null;){switch(q=pe,le=q.child,q.tag){case 0:case 11:case 14:case 15:os(4,q,q.return);break;case 1:Yo(q,q.return);var ge=q.stateNode;if(typeof ge.componentWillUnmount=="function"){a=q,i=q.return;try{t=a,ge.props=t.memoizedProps,ge.state=t.memoizedState,ge.componentWillUnmount()}catch(ye){et(a,i,ye)}}break;case 5:Yo(q,q.return);break;case 22:if(q.memoizedState!==null){Ng(Y);continue}}le!==null?(le.return=q,pe=le):Ng(Y)}G=G.sibling}e:for(G=null,Y=e;;){if(Y.tag===5){if(G===null){G=Y;try{c=Y.stateNode,$?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(k=Y.stateNode,R=Y.memoizedProps.style,g=R!=null&&R.hasOwnProperty("display")?R.display:null,k.style.display=lh("display",g))}catch(ye){et(e,e.return,ye)}}}else if(Y.tag===6){if(G===null)try{Y.stateNode.nodeValue=$?"":Y.memoizedProps}catch(ye){et(e,e.return,ye)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===e)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===e)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===e)break e;G===Y&&(G=null),Y=Y.return}G===Y&&(G=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:an(t,e),En(e),a&4&&Cg(e);break;case 21:break;default:an(t,e),En(e)}}function En(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(kg(i)){var a=i;break e}i=i.return}throw Error(o(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(bi(c,""),a.flags&=-33);var f=Eg(e);hd(e,f,c);break;case 3:case 4:var g=a.stateNode.containerInfo,k=Eg(e);md(e,k,g);break;default:throw Error(o(161))}}catch(R){et(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yb(e,t,i){pe=e,Ig(e)}function Ig(e,t,i){for(var a=(e.mode&1)!==0;pe!==null;){var c=pe,f=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||qa;if(!g){var k=c.alternate,R=k!==null&&k.memoizedState!==null||_t;k=qa;var $=_t;if(qa=g,(_t=R)&&!$)for(pe=c;pe!==null;)g=pe,R=g.child,g.tag===22&&g.memoizedState!==null?Og(c):R!==null?(R.return=g,pe=R):Og(c);for(;f!==null;)pe=f,Ig(f),f=f.sibling;pe=c,qa=k,_t=$}Pg(e)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,pe=f):Pg(e)}}function Pg(e){for(;pe!==null;){var t=pe;if((t.flags&8772)!==0){var i=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:_t||Ka(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!_t)if(i===null)a.componentDidMount();else{var c=t.elementType===t.type?i.memoizedProps:on(t.type,i.memoizedProps);a.componentDidUpdate(c,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var f=t.updateQueue;f!==null&&Nv(t,f,a);break;case 3:var g=t.updateQueue;if(g!==null){if(i=null,t.child!==null)switch(t.child.tag){case 5:i=t.child.stateNode;break;case 1:i=t.child.stateNode}Nv(t,g,i)}break;case 5:var k=t.stateNode;if(i===null&&t.flags&4){i=k;var R=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&i.focus();break;case"img":R.src&&(i.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var $=t.alternate;if($!==null){var G=$.memoizedState;if(G!==null){var Y=G.dehydrated;Y!==null&&Li(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}_t||t.flags&512&&pd(t)}catch(q){et(t,t.return,q)}}if(t===e){pe=null;break}if(i=t.sibling,i!==null){i.return=t.return,pe=i;break}pe=t.return}}function Ng(e){for(;pe!==null;){var t=pe;if(t===e){pe=null;break}var i=t.sibling;if(i!==null){i.return=t.return,pe=i;break}pe=t.return}}function Og(e){for(;pe!==null;){var t=pe;try{switch(t.tag){case 0:case 11:case 15:var i=t.return;try{Ka(4,t)}catch(R){et(t,i,R)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var c=t.return;try{a.componentDidMount()}catch(R){et(t,c,R)}}var f=t.return;try{pd(t)}catch(R){et(t,f,R)}break;case 5:var g=t.return;try{pd(t)}catch(R){et(t,g,R)}}}catch(R){et(t,t.return,R)}if(t===e){pe=null;break}var k=t.sibling;if(k!==null){k.return=t.return,pe=k;break}pe=t.return}}var xb=Math.ceil,Ga=N.ReactCurrentDispatcher,vd=N.ReactCurrentOwner,Gt=N.ReactCurrentBatchConfig,Fe=0,mt=null,it=null,yt=0,Ut=0,Xo=yr(0),lt=0,is=null,no=0,Qa=0,gd=0,ss=null,Dt=null,yd=0,Jo=1/0,Qn=null,Ya=!1,xd=null,Er=null,Xa=!1,br=null,Ja=0,as=0,wd=null,el=-1,tl=0;function Rt(){return(Fe&6)!==0?tt():el!==-1?el:el=tt()}function Cr(e){return(e.mode&1)===0?1:(Fe&2)!==0&&yt!==0?yt&-yt:nb.transition!==null?(tl===0&&(tl=Eh()),tl):(e=We,e!==0||(e=window.event,e=e===void 0?16:Ah(e.type)),e)}function ln(e,t,i,a){if(50<as)throw as=0,wd=null,Error(o(185));Oi(e,i,a),((Fe&2)===0||e!==mt)&&(e===mt&&((Fe&2)===0&&(Qa|=i),lt===4&&Rr(e,yt)),Mt(e,a),i===1&&Fe===0&&(t.mode&1)===0&&(Jo=tt()+500,Pa&&wr()))}function Mt(e,t){var i=e.callbackNode;nE(e,t);var a=ca(e,e===mt?yt:0);if(a===0)i!==null&&Sh(i),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(i!=null&&Sh(i),t===1)e.tag===0?tb(Ag.bind(null,e)):yv(Ag.bind(null,e)),YE(function(){(Fe&6)===0&&wr()}),i=null;else{switch(bh(a)){case 1:i=Ju;break;case 4:i=_h;break;case 16:i=sa;break;case 536870912:i=kh;break;default:i=sa}i=Vg(i,Tg.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function Tg(e,t){if(el=-1,tl=0,(Fe&6)!==0)throw Error(o(327));var i=e.callbackNode;if(ei()&&e.callbackNode!==i)return null;var a=ca(e,e===mt?yt:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=nl(e,a);else{t=a;var c=Fe;Fe|=2;var f=Mg();(mt!==e||yt!==t)&&(Qn=null,Jo=tt()+500,oo(e,t));do try{_b();break}catch(k){Dg(e,k)}while(!0);zc(),Ga.current=f,Fe=c,it!==null?t=0:(mt=null,yt=0,t=lt)}if(t!==0){if(t===2&&(c=ec(e),c!==0&&(a=c,t=Sd(e,c))),t===1)throw i=is,oo(e,0),Rr(e,a),Mt(e,tt()),i;if(t===6)Rr(e,a);else{if(c=e.current.alternate,(a&30)===0&&!wb(c)&&(t=nl(e,a),t===2&&(f=ec(e),f!==0&&(a=f,t=Sd(e,f))),t===1))throw i=is,oo(e,0),Rr(e,a),Mt(e,tt()),i;switch(e.finishedWork=c,e.finishedLanes=a,t){case 0:case 1:throw Error(o(345));case 2:io(e,Dt,Qn);break;case 3:if(Rr(e,a),(a&130023424)===a&&(t=yd+500-tt(),10<t)){if(ca(e,0)!==0)break;if(c=e.suspendedLanes,(c&a)!==a){Rt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Rc(io.bind(null,e,Dt,Qn),t);break}io(e,Dt,Qn);break;case 4:if(Rr(e,a),(a&4194240)===a)break;for(t=e.eventTimes,c=-1;0<a;){var g=31-tn(a);f=1<<g,g=t[g],g>c&&(c=g),a&=~f}if(a=c,a=tt()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*xb(a/1960))-a,10<a){e.timeoutHandle=Rc(io.bind(null,e,Dt,Qn),a);break}io(e,Dt,Qn);break;case 5:io(e,Dt,Qn);break;default:throw Error(o(329))}}}return Mt(e,tt()),e.callbackNode===i?Tg.bind(null,e):null}function Sd(e,t){var i=ss;return e.current.memoizedState.isDehydrated&&(oo(e,t).flags|=256),e=nl(e,t),e!==2&&(t=Dt,Dt=i,t!==null&&_d(t)),e}function _d(e){Dt===null?Dt=e:Dt.push.apply(Dt,e)}function wb(e){for(var t=e;;){if(t.flags&16384){var i=t.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var a=0;a<i.length;a++){var c=i[a],f=c.getSnapshot;c=c.value;try{if(!nn(f(),c))return!1}catch{return!1}}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rr(e,t){for(t&=~gd,t&=~Qa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var i=31-tn(t),a=1<<i;e[i]=-1,t&=~a}}function Ag(e){if((Fe&6)!==0)throw Error(o(327));ei();var t=ca(e,0);if((t&1)===0)return Mt(e,tt()),null;var i=nl(e,t);if(e.tag!==0&&i===2){var a=ec(e);a!==0&&(t=a,i=Sd(e,a))}if(i===1)throw i=is,oo(e,0),Rr(e,t),Mt(e,tt()),i;if(i===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,io(e,Dt,Qn),Mt(e,tt()),null}function kd(e,t){var i=Fe;Fe|=1;try{return e(t)}finally{Fe=i,Fe===0&&(Jo=tt()+500,Pa&&wr())}}function ro(e){br!==null&&br.tag===0&&(Fe&6)===0&&ei();var t=Fe;Fe|=1;var i=Gt.transition,a=We;try{if(Gt.transition=null,We=1,e)return e()}finally{We=a,Gt.transition=i,Fe=t,(Fe&6)===0&&wr()}}function Ed(){Ut=Xo.current,Ke(Xo)}function oo(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,QE(i)),it!==null)for(i=it.return;i!==null;){var a=i;switch(Ac(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Ra();break;case 3:Go(),Ke(Ot),Ke(xt),Zc();break;case 5:Wc(a);break;case 4:Go();break;case 13:Ke(Ye);break;case 19:Ke(Ye);break;case 10:Fc(a.type._context);break;case 22:case 23:Ed()}i=i.return}if(mt=e,it=e=Ir(e.current,null),yt=Ut=t,lt=0,is=null,gd=Qa=no=0,Dt=ss=null,Jr!==null){for(t=0;t<Jr.length;t++)if(i=Jr[t],a=i.interleaved,a!==null){i.interleaved=null;var c=a.next,f=i.pending;if(f!==null){var g=f.next;f.next=c,a.next=g}i.pending=a}Jr=null}return e}function Dg(e,t){do{var i=it;try{if(zc(),Fa.current=Ba,$a){for(var a=Xe.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}$a=!1}if(to=0,pt=at=Xe=null,Ji=!1,es=0,vd.current=null,i===null||i.return===null){lt=1,is=t,it=null;break}e:{var f=e,g=i.return,k=i,R=t;if(t=yt,k.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=R,G=k,Y=G.tag;if((G.mode&1)===0&&(Y===0||Y===11||Y===15)){var q=G.alternate;q?(G.updateQueue=q.updateQueue,G.memoizedState=q.memoizedState,G.lanes=q.lanes):(G.updateQueue=null,G.memoizedState=null)}var le=ig(g);if(le!==null){le.flags&=-257,sg(le,g,k,f,t),le.mode&1&&og(f,$,t),t=le,R=$;var ge=t.updateQueue;if(ge===null){var ye=new Set;ye.add(R),t.updateQueue=ye}else ge.add(R);break e}else{if((t&1)===0){og(f,$,t),bd();break e}R=Error(o(426))}}else if(Ge&&k.mode&1){var nt=ig(g);if(nt!==null){(nt.flags&65536)===0&&(nt.flags|=256),sg(nt,g,k,f,t),Lc(Qo(R,k));break e}}f=R=Qo(R,k),lt!==4&&(lt=2),ss===null?ss=[f]:ss.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,t&=-t,f.lanes|=t;var M=ng(f,R,t);Pv(f,M);break e;case 1:k=R;var I=f.type,j=f.stateNode;if((f.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(Er===null||!Er.has(j)))){f.flags|=65536,t&=-t,f.lanes|=t;var ee=rg(f,k,t);Pv(f,ee);break e}}f=f.return}while(f!==null)}jg(i)}catch(we){t=we,it===i&&i!==null&&(it=i=i.return);continue}break}while(!0)}function Mg(){var e=Ga.current;return Ga.current=Ba,e===null?Ba:e}function bd(){(lt===0||lt===3||lt===2)&&(lt=4),mt===null||(no&268435455)===0&&(Qa&268435455)===0||Rr(mt,yt)}function nl(e,t){var i=Fe;Fe|=2;var a=Mg();(mt!==e||yt!==t)&&(Qn=null,oo(e,t));do try{Sb();break}catch(c){Dg(e,c)}while(!0);if(zc(),Fe=i,Ga.current=a,it!==null)throw Error(o(261));return mt=null,yt=0,lt}function Sb(){for(;it!==null;)Lg(it)}function _b(){for(;it!==null&&!qk();)Lg(it)}function Lg(e){var t=$g(e.alternate,e,Ut);e.memoizedProps=e.pendingProps,t===null?jg(e):it=t,vd.current=null}function jg(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&32768)===0){if(i=mb(i,t,Ut),i!==null){it=i;return}}else{if(i=hb(i,t),i!==null){i.flags&=32767,it=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lt=6,it=null;return}}if(t=t.sibling,t!==null){it=t;return}it=t=e}while(t!==null);lt===0&&(lt=5)}function io(e,t,i){var a=We,c=Gt.transition;try{Gt.transition=null,We=1,kb(e,t,i,a)}finally{Gt.transition=c,We=a}return null}function kb(e,t,i,a){do ei();while(br!==null);if((Fe&6)!==0)throw Error(o(327));i=e.finishedWork;var c=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var f=i.lanes|i.childLanes;if(rE(e,f),e===mt&&(it=mt=null,yt=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||Xa||(Xa=!0,Vg(sa,function(){return ei(),null})),f=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||f){f=Gt.transition,Gt.transition=null;var g=We;We=1;var k=Fe;Fe|=4,vd.current=null,gb(e,i),Rg(i,e),BE(bc),pa=!!Ec,bc=Ec=null,e.current=i,yb(i),Kk(),Fe=k,We=g,Gt.transition=f}else e.current=i;if(Xa&&(Xa=!1,br=e,Ja=c),f=e.pendingLanes,f===0&&(Er=null),Yk(i.stateNode),Mt(e,tt()),t!==null)for(a=e.onRecoverableError,i=0;i<t.length;i++)c=t[i],a(c.value,{componentStack:c.stack,digest:c.digest});if(Ya)throw Ya=!1,e=xd,xd=null,e;return(Ja&1)!==0&&e.tag!==0&&ei(),f=e.pendingLanes,(f&1)!==0?e===wd?as++:(as=0,wd=e):as=0,wr(),null}function ei(){if(br!==null){var e=bh(Ja),t=Gt.transition,i=We;try{if(Gt.transition=null,We=16>e?16:e,br===null)var a=!1;else{if(e=br,br=null,Ja=0,(Fe&6)!==0)throw Error(o(331));var c=Fe;for(Fe|=4,pe=e.current;pe!==null;){var f=pe,g=f.child;if((pe.flags&16)!==0){var k=f.deletions;if(k!==null){for(var R=0;R<k.length;R++){var $=k[R];for(pe=$;pe!==null;){var G=pe;switch(G.tag){case 0:case 11:case 15:os(8,G,f)}var Y=G.child;if(Y!==null)Y.return=G,pe=Y;else for(;pe!==null;){G=pe;var q=G.sibling,le=G.return;if(_g(G),G===$){pe=null;break}if(q!==null){q.return=le,pe=q;break}pe=le}}}var ge=f.alternate;if(ge!==null){var ye=ge.child;if(ye!==null){ge.child=null;do{var nt=ye.sibling;ye.sibling=null,ye=nt}while(ye!==null)}}pe=f}}if((f.subtreeFlags&2064)!==0&&g!==null)g.return=f,pe=g;else e:for(;pe!==null;){if(f=pe,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:os(9,f,f.return)}var M=f.sibling;if(M!==null){M.return=f.return,pe=M;break e}pe=f.return}}var I=e.current;for(pe=I;pe!==null;){g=pe;var j=g.child;if((g.subtreeFlags&2064)!==0&&j!==null)j.return=g,pe=j;else e:for(g=I;pe!==null;){if(k=pe,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:Ka(9,k)}}catch(we){et(k,k.return,we)}if(k===g){pe=null;break e}var ee=k.sibling;if(ee!==null){ee.return=k.return,pe=ee;break e}pe=k.return}}if(Fe=c,wr(),wn&&typeof wn.onPostCommitFiberRoot=="function")try{wn.onPostCommitFiberRoot(aa,e)}catch{}a=!0}return a}finally{We=i,Gt.transition=t}}return!1}function zg(e,t,i){t=Qo(i,t),t=ng(e,t,1),e=_r(e,t,1),t=Rt(),e!==null&&(Oi(e,1,t),Mt(e,t))}function et(e,t,i){if(e.tag===3)zg(e,e,i);else for(;t!==null;){if(t.tag===3){zg(t,e,i);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Er===null||!Er.has(a))){e=Qo(i,e),e=rg(t,e,1),t=_r(t,e,1),e=Rt(),t!==null&&(Oi(t,1,e),Mt(t,e));break}}t=t.return}}function Eb(e,t,i){var a=e.pingCache;a!==null&&a.delete(t),t=Rt(),e.pingedLanes|=e.suspendedLanes&i,mt===e&&(yt&i)===i&&(lt===4||lt===3&&(yt&130023424)===yt&&500>tt()-yd?oo(e,0):gd|=i),Mt(e,t)}function Fg(e,t){t===0&&((e.mode&1)===0?t=1:(t=ua,ua<<=1,(ua&130023424)===0&&(ua=4194304)));var i=Rt();e=qn(e,t),e!==null&&(Oi(e,t,i),Mt(e,i))}function bb(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Fg(e,i)}function Cb(e,t){var i=0;switch(e.tag){case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(o(314))}a!==null&&a.delete(t),Fg(e,i)}var $g;$g=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ot.current)At=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return At=!1,pb(e,t,i);At=(e.flags&131072)!==0}else At=!1,Ge&&(t.flags&1048576)!==0&&xv(t,Oa,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Za(e,t),e=t.pendingProps;var c=Uo(t,xt.current);Ko(t,i),c=Gc(null,t,a,e,c,i);var f=Qc();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(a)?(f=!0,Ia(t)):f=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Uc(t),c.updater=Wa,t.stateNode=c,c._reactInternals=t,nd(t,a,e,i),t=sd(null,t,a,!0,f,i)):(t.tag=0,Ge&&f&&Tc(t),Ct(null,t,c,i),t=t.child),t;case 16:a=t.elementType;e:{switch(Za(e,t),e=t.pendingProps,c=a._init,a=c(a._payload),t.type=a,c=t.tag=Ib(a),e=on(a,e),c){case 0:t=id(null,t,a,e,i);break e;case 1:t=fg(null,t,a,e,i);break e;case 11:t=ag(null,t,a,e,i);break e;case 14:t=lg(null,t,a,on(a.type,e),i);break e}throw Error(o(306,a,""))}return t;case 0:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:on(a,c),id(e,t,a,c,i);case 1:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:on(a,c),fg(e,t,a,c,i);case 3:e:{if(pg(t),e===null)throw Error(o(387));a=t.pendingProps,f=t.memoizedState,c=f.element,Iv(e,t),ja(t,a,null,i);var g=t.memoizedState;if(a=g.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){c=Qo(Error(o(423)),t),t=mg(e,t,a,i,c);break e}else if(a!==c){c=Qo(Error(o(424)),t),t=mg(e,t,a,i,c);break e}else for(Vt=gr(t.stateNode.containerInfo.firstChild),$t=t,Ge=!0,rn=null,i=Cv(t,null,a,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ho(),a===c){t=Gn(e,t,i);break e}Ct(e,t,a,i)}t=t.child}return t;case 5:return Ov(t),e===null&&Mc(t),a=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,g=c.children,Cc(a,c)?g=null:f!==null&&Cc(a,f)&&(t.flags|=32),dg(e,t),Ct(e,t,g,i),t.child;case 6:return e===null&&Mc(t),null;case 13:return hg(e,t,i);case 4:return Bc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Zo(t,null,a,i):Ct(e,t,a,i),t.child;case 11:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:on(a,c),ag(e,t,a,c,i);case 7:return Ct(e,t,t.pendingProps,i),t.child;case 8:return Ct(e,t,t.pendingProps.children,i),t.child;case 12:return Ct(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(a=t.type._context,c=t.pendingProps,f=t.memoizedProps,g=c.value,Ze(Da,a._currentValue),a._currentValue=g,f!==null)if(nn(f.value,g)){if(f.children===c.children&&!Ot.current){t=Gn(e,t,i);break e}}else for(f=t.child,f!==null&&(f.return=t);f!==null;){var k=f.dependencies;if(k!==null){g=f.child;for(var R=k.firstContext;R!==null;){if(R.context===a){if(f.tag===1){R=Kn(-1,i&-i),R.tag=2;var $=f.updateQueue;if($!==null){$=$.shared;var G=$.pending;G===null?R.next=R:(R.next=G.next,G.next=R),$.pending=R}}f.lanes|=i,R=f.alternate,R!==null&&(R.lanes|=i),$c(f.return,i,t),k.lanes|=i;break}R=R.next}}else if(f.tag===10)g=f.type===t.type?null:f.child;else if(f.tag===18){if(g=f.return,g===null)throw Error(o(341));g.lanes|=i,k=g.alternate,k!==null&&(k.lanes|=i),$c(g,i,t),g=f.sibling}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===t){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}Ct(e,t,c.children,i),t=t.child}return t;case 9:return c=t.type,a=t.pendingProps.children,Ko(t,i),c=qt(c),a=a(c),t.flags|=1,Ct(e,t,a,i),t.child;case 14:return a=t.type,c=on(a,t.pendingProps),c=on(a.type,c),lg(e,t,a,c,i);case 15:return ug(e,t,t.type,t.pendingProps,i);case 17:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:on(a,c),Za(e,t),t.tag=1,Tt(a)?(e=!0,Ia(t)):e=!1,Ko(t,i),eg(t,a,c),nd(t,a,c,i),sd(null,t,a,!0,e,i);case 19:return gg(e,t,i);case 22:return cg(e,t,i)}throw Error(o(156,t.tag))};function Vg(e,t){return wh(e,t)}function Rb(e,t,i,a){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,t,i,a){return new Rb(e,t,i,a)}function Cd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ib(e){if(typeof e=="function")return Cd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oe)return 11;if(e===Se)return 14}return 2}function Ir(e,t){var i=e.alternate;return i===null?(i=Qt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function rl(e,t,i,a,c,f){var g=2;if(a=e,typeof e=="function")Cd(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case W:return so(i.children,c,f,t);case F:g=8,c|=8;break;case re:return e=Qt(12,i,t,c|2),e.elementType=re,e.lanes=f,e;case he:return e=Qt(13,i,t,c),e.elementType=he,e.lanes=f,e;case ve:return e=Qt(19,i,t,c),e.elementType=ve,e.lanes=f,e;case ie:return ol(i,c,f,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case me:g=10;break e;case ke:g=9;break e;case oe:g=11;break e;case Se:g=14;break e;case ue:g=16,a=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Qt(g,i,t,c),t.elementType=e,t.type=a,t.lanes=f,t}function so(e,t,i,a){return e=Qt(7,e,a,t),e.lanes=i,e}function ol(e,t,i,a){return e=Qt(22,e,a,t),e.elementType=ie,e.lanes=i,e.stateNode={isHidden:!1},e}function Rd(e,t,i){return e=Qt(6,e,null,t),e.lanes=i,e}function Id(e,t,i){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pb(e,t,i,a,c){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tc(0),this.expirationTimes=tc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tc(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Pd(e,t,i,a,c,f,g,k,R){return e=new Pb(e,t,i,k,R),t===1?(t=1,f===!0&&(t|=8)):t=0,f=Qt(3,null,null,t),e.current=f,f.stateNode=e,f.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uc(f),e}function Nb(e,t,i){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:a==null?null:""+a,children:e,containerInfo:t,implementation:i}}function Ug(e){if(!e)return xr;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var i=e.type;if(Tt(i))return vv(e,i,t)}return t}function Bg(e,t,i,a,c,f,g,k,R){return e=Pd(i,a,!0,e,c,f,g,k,R),e.context=Ug(null),i=e.current,a=Rt(),c=Cr(i),f=Kn(a,c),f.callback=t??null,_r(i,f,c),e.current.lanes=c,Oi(e,c,a),Mt(e,a),e}function il(e,t,i,a){var c=t.current,f=Rt(),g=Cr(c);return i=Ug(i),t.context===null?t.context=i:t.pendingContext=i,t=Kn(f,g),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=_r(c,t,g),e!==null&&(ln(e,c,g,f),La(e,c,g)),g}function sl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Wg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Nd(e,t){Wg(e,t),(e=e.alternate)&&Wg(e,t)}function Ob(){return null}var Hg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Od(e){this._internalRoot=e}al.prototype.render=Od.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));il(e,t,null,null)},al.prototype.unmount=Od.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ro(function(){il(null,e,null,null)}),t[Bn]=null}};function al(e){this._internalRoot=e}al.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ih();e={blockedOn:null,target:e,priority:t};for(var i=0;i<mr.length&&t!==0&&t<mr[i].priority;i++);mr.splice(i,0,e),i===0&&Oh(e)}};function Td(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ll(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Zg(){}function Tb(e,t,i,a,c){if(c){if(typeof a=="function"){var f=a;a=function(){var $=sl(g);f.call($)}}var g=Bg(t,a,e,0,null,!1,!1,"",Zg);return e._reactRootContainer=g,e[Bn]=g.current,Hi(e.nodeType===8?e.parentNode:e),ro(),g}for(;c=e.lastChild;)e.removeChild(c);if(typeof a=="function"){var k=a;a=function(){var $=sl(R);k.call($)}}var R=Pd(e,0,!1,null,null,!1,!1,"",Zg);return e._reactRootContainer=R,e[Bn]=R.current,Hi(e.nodeType===8?e.parentNode:e),ro(function(){il(t,R,i,a)}),R}function ul(e,t,i,a,c){var f=i._reactRootContainer;if(f){var g=f;if(typeof c=="function"){var k=c;c=function(){var R=sl(g);k.call(R)}}il(t,g,e,c)}else g=Tb(i,t,e,c,a);return sl(g)}Ch=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=Ni(t.pendingLanes);i!==0&&(nc(t,i|1),Mt(t,tt()),(Fe&6)===0&&(Jo=tt()+500,wr()))}break;case 13:ro(function(){var a=qn(e,1);if(a!==null){var c=Rt();ln(a,e,1,c)}}),Nd(e,1)}},rc=function(e){if(e.tag===13){var t=qn(e,134217728);if(t!==null){var i=Rt();ln(t,e,134217728,i)}Nd(e,134217728)}},Rh=function(e){if(e.tag===13){var t=Cr(e),i=qn(e,t);if(i!==null){var a=Rt();ln(i,e,t,a)}Nd(e,t)}},Ih=function(){return We},Ph=function(e,t){var i=We;try{return We=e,t()}finally{We=i}},Gu=function(e,t,i){switch(t){case"input":if(qr(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var a=i[t];if(a!==e&&a.form===e.form){var c=Ca(a);if(!c)throw Error(o(90));Me(a),qr(a,c)}}}break;case"textarea":oh(e,i);break;case"select":t=i.value,t!=null&&No(e,!!i.multiple,t,!1)}},ph=kd,mh=ro;var Ab={usingClientEntryPoint:!1,Events:[Ki,$o,Ca,dh,fh,kd]},ls={findFiberByHostInstance:Gr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Db={bundleType:ls.bundleType,version:ls.version,rendererPackageName:ls.rendererPackageName,rendererConfig:ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yh(e),e===null?null:e.stateNode},findFiberByHostInstance:ls.findFiberByHostInstance||Ob,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cl.isDisabled&&cl.supportsFiber)try{aa=cl.inject(Db),wn=cl}catch{}}return It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ab,It.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Td(t))throw Error(o(200));return Nb(e,t,null,i)},It.createRoot=function(e,t){if(!Td(e))throw Error(o(299));var i=!1,a="",c=Hg;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Pd(e,1,!1,null,null,i,!1,a,c),e[Bn]=t.current,Hi(e.nodeType===8?e.parentNode:e),new Od(t)},It.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=yh(t),e=e===null?null:e.stateNode,e},It.flushSync=function(e){return ro(e)},It.hydrate=function(e,t,i){if(!ll(t))throw Error(o(200));return ul(null,e,t,!0,i)},It.hydrateRoot=function(e,t,i){if(!Td(e))throw Error(o(405));var a=i!=null&&i.hydratedSources||null,c=!1,f="",g=Hg;if(i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),t=Bg(t,null,e,1,i??null,c,!1,f,g),e[Bn]=t.current,Hi(e),a)for(e=0;e<a.length;e++)i=a[e],c=i._getVersion,c=c(i._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,c]:t.mutableSourceEagerHydrationData.push(i,c);return new al(t)},It.render=function(e,t,i){if(!ll(t))throw Error(o(200));return ul(null,e,t,!1,i)},It.unmountComponentAtNode=function(e){if(!ll(e))throw Error(o(40));return e._reactRootContainer?(ro(function(){ul(null,null,e,!1,function(){e._reactRootContainer=null,e[Bn]=null})}),!0):!1},It.unstable_batchedUpdates=kd,It.unstable_renderSubtreeIntoContainer=function(e,t,i,a){if(!ll(i))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return ul(e,t,i,!1,a)},It.version="18.3.1-next-f1338f8080-20240426",It}var zd;function Fd(){if(zd)return pl.exports;zd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),pl.exports=Xg(),pl.exports}var $d;function Jg(){if($d)return us;$d=1;var n=Fd();return us.createRoot=n.createRoot,us.hydrateRoot=n.hydrateRoot,us}var ey=Jg(),je;(function(n){n.assertEqual=l=>{};function r(l){}n.assertIs=r;function o(l){throw new Error}n.assertNever=o,n.arrayToEnum=l=>{const u={};for(const d of l)u[d]=d;return u},n.getValidEnumValues=l=>{const u=n.objectKeys(l).filter(p=>typeof l[l[p]]!="number"),d={};for(const p of u)d[p]=l[p];return n.objectValues(d)},n.objectValues=l=>n.objectKeys(l).map(function(u){return l[u]}),n.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const u=[];for(const d in l)Object.prototype.hasOwnProperty.call(l,d)&&u.push(d);return u},n.find=(l,u)=>{for(const d of l)if(u(d))return d},n.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function s(l,u=" | "){return l.map(d=>typeof d=="string"?`'${d}'`:d).join(u)}n.joinValues=s,n.jsonStringifyReplacer=(l,u)=>typeof u=="bigint"?u.toString():u})(je||(je={}));var Vd;(function(n){n.mergeShapes=(r,o)=>({...r,...o})})(Vd||(Vd={}));const de=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yn=n=>{switch(typeof n){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(n)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(n)?de.array:n===null?de.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?de.promise:typeof Map<"u"&&n instanceof Map?de.map:typeof Set<"u"&&n instanceof Set?de.set:typeof Date<"u"&&n instanceof Date?de.date:de.object;default:return de.unknown}},J=je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class bn extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const o=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,o):this.__proto__=o,this.name="ZodError",this.issues=r}format(r){const o=r||function(u){return u.message},s={_errors:[]},l=u=>{for(const d of u.issues)if(d.code==="invalid_union")d.unionErrors.map(l);else if(d.code==="invalid_return_type")l(d.returnTypeError);else if(d.code==="invalid_arguments")l(d.argumentsError);else if(d.path.length===0)s._errors.push(o(d));else{let p=s,h=0;for(;h<d.path.length;){const v=d.path[h];h===d.path.length-1?(p[v]=p[v]||{_errors:[]},p[v]._errors.push(o(d))):p[v]=p[v]||{_errors:[]},p=p[v],h++}}};return l(this),s}static assert(r){if(!(r instanceof bn))throw new Error(`Not a ZodError: ${r}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(r=o=>o.message){const o={},s=[];for(const l of this.issues)l.path.length>0?(o[l.path[0]]=o[l.path[0]]||[],o[l.path[0]].push(r(l))):s.push(r(l));return{formErrors:s,fieldErrors:o}}get formErrors(){return this.flatten()}}bn.create=n=>new bn(n);const vl=(n,r)=>{let o;switch(n.code){case J.invalid_type:n.received===de.undefined?o="Required":o=`Expected ${n.expected}, received ${n.received}`;break;case J.invalid_literal:o=`Invalid literal value, expected ${JSON.stringify(n.expected,je.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:o=`Unrecognized key(s) in object: ${je.joinValues(n.keys,", ")}`;break;case J.invalid_union:o="Invalid input";break;case J.invalid_union_discriminator:o=`Invalid discriminator value. Expected ${je.joinValues(n.options)}`;break;case J.invalid_enum_value:o=`Invalid enum value. Expected ${je.joinValues(n.options)}, received '${n.received}'`;break;case J.invalid_arguments:o="Invalid function arguments";break;case J.invalid_return_type:o="Invalid function return type";break;case J.invalid_date:o="Invalid date";break;case J.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(o=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(o=`${o} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?o=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?o=`Invalid input: must end with "${n.validation.endsWith}"`:je.assertNever(n.validation):n.validation!=="regex"?o=`Invalid ${n.validation}`:o="Invalid";break;case J.too_small:n.type==="array"?o=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?o=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?o=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?o=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:o="Invalid input";break;case J.too_big:n.type==="array"?o=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?o=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?o=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?o=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?o=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:o="Invalid input";break;case J.custom:o="Invalid input";break;case J.invalid_intersection_types:o="Intersection results could not be merged";break;case J.not_multiple_of:o=`Number must be a multiple of ${n.multipleOf}`;break;case J.not_finite:o="Number must be finite";break;default:o=r.defaultError,je.assertNever(n)}return{message:o}};let ty=vl;function ny(){return ty}const ry=n=>{const{data:r,path:o,errorMaps:s,issueData:l}=n,u=[...o,...l.path||[]],d={...l,path:u};if(l.message!==void 0)return{...l,path:u,message:l.message};let p="";const h=s.filter(v=>!!v).slice().reverse();for(const v of h)p=v(d,{data:r,defaultError:p}).message;return{...l,path:u,message:p}};function se(n,r){const o=ny(),s=ry({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,o,o===vl?void 0:vl].filter(l=>!!l)});n.common.issues.push(s)}class kt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,o){const s=[];for(const l of o){if(l.status==="aborted")return Re;l.status==="dirty"&&r.dirty(),s.push(l.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,o){const s=[];for(const l of o){const u=await l.key,d=await l.value;s.push({key:u,value:d})}return kt.mergeObjectSync(r,s)}static mergeObjectSync(r,o){const s={};for(const l of o){const{key:u,value:d}=l;if(u.status==="aborted"||d.status==="aborted")return Re;u.status==="dirty"&&r.dirty(),d.status==="dirty"&&r.dirty(),u.value!=="__proto__"&&(typeof d.value<"u"||l.alwaysSet)&&(s[u.value]=d.value)}return{status:r.value,value:s}}}const Re=Object.freeze({status:"aborted"}),ni=n=>({status:"dirty",value:n}),Bt=n=>({status:"valid",value:n}),Ud=n=>n.status==="aborted",Bd=n=>n.status==="dirty",ao=n=>n.status==="valid",cs=n=>typeof Promise<"u"&&n instanceof Promise;var xe;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r?.message})(xe||(xe={}));class un{constructor(r,o,s,l){this._cachedPath=[],this.parent=r,this.data=o,this._path=s,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Wd=(n,r)=>{if(ao(r))return{success:!0,data:r.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const o=new bn(n.common.issues);return this._error=o,this._error}}};function Oe(n){if(!n)return{};const{errorMap:r,invalid_type_error:o,required_error:s,description:l}=n;if(r&&(o||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:l}:{errorMap:(d,p)=>{const{message:h}=n;return d.code==="invalid_enum_value"?{message:h??p.defaultError}:typeof p.data>"u"?{message:h??s??p.defaultError}:d.code!=="invalid_type"?{message:p.defaultError}:{message:h??o??p.defaultError}},description:l}}class De{get description(){return this._def.description}_getType(r){return Yn(r.data)}_getOrReturnCtx(r,o){return o||{common:r.parent.common,data:r.data,parsedType:Yn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new kt,ctx:{common:r.parent.common,data:r.data,parsedType:Yn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const o=this._parse(r);if(cs(o))throw new Error("Synchronous parse encountered promise.");return o}_parseAsync(r){const o=this._parse(r);return Promise.resolve(o)}parse(r,o){const s=this.safeParse(r,o);if(s.success)return s.data;throw s.error}safeParse(r,o){const s={common:{issues:[],async:o?.async??!1,contextualErrorMap:o?.errorMap},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Yn(r)},l=this._parseSync({data:r,path:s.path,parent:s});return Wd(s,l)}"~validate"(r){const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Yn(r)};if(!this["~standard"].async)try{const s=this._parseSync({data:r,path:[],parent:o});return ao(s)?{value:s.value}:{issues:o.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:o}).then(s=>ao(s)?{value:s.value}:{issues:o.common.issues})}async parseAsync(r,o){const s=await this.safeParseAsync(r,o);if(s.success)return s.data;throw s.error}async safeParseAsync(r,o){const s={common:{issues:[],contextualErrorMap:o?.errorMap,async:!0},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Yn(r)},l=this._parse({data:r,path:s.path,parent:s}),u=await(cs(l)?l:Promise.resolve(l));return Wd(s,u)}refine(r,o){const s=l=>typeof o=="string"||typeof o>"u"?{message:o}:typeof o=="function"?o(l):o;return this._refinement((l,u)=>{const d=r(l),p=()=>u.addIssue({code:J.custom,...s(l)});return typeof Promise<"u"&&d instanceof Promise?d.then(h=>h?!0:(p(),!1)):d?!0:(p(),!1)})}refinement(r,o){return this._refinement((s,l)=>r(s)?!0:(l.addIssue(typeof o=="function"?o(s,l):o),!1))}_refinement(r){return new Ar({schema:this,typeName:Ie.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:o=>this["~validate"](o)}}optional(){return In.create(this,this._def)}nullable(){return Dr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return cn.create(this)}promise(){return ys.create(this,this._def)}or(r){return ps.create([this,r],this._def)}and(r){return ms.create(this,r,this._def)}transform(r){return new Ar({...Oe(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const o=typeof r=="function"?r:()=>r;return new xs({...Oe(this._def),innerType:this,defaultValue:o,typeName:Ie.ZodDefault})}brand(){return new Jd({typeName:Ie.ZodBranded,type:this,...Oe(this._def)})}catch(r){const o=typeof r=="function"?r:()=>r;return new ws({...Oe(this._def),innerType:this,catchValue:o,typeName:Ie.ZodCatch})}describe(r){const o=this.constructor;return new o({...this._def,description:r})}pipe(r){return El.create(this,r)}readonly(){return Ss.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oy=/^c[^\s-]{8,}$/i,iy=/^[0-9a-z]+$/,sy=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ay=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ly=/^[a-z0-9_-]{21}$/i,uy=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cy=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,dy=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let gl;const py=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,my=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,hy=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,vy=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gy=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yy=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Hd="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",xy=new RegExp(`^${Hd}$`);function Zd(n){let r="[0-5]\\d";n.precision?r=`${r}\\.\\d{${n.precision}}`:n.precision==null&&(r=`${r}(\\.\\d+)?`);const o=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${o}`}function wy(n){return new RegExp(`^${Zd(n)}$`)}function Sy(n){let r=`${Hd}T${Zd(n)}`;const o=[];return o.push(n.local?"Z?":"Z"),n.offset&&o.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${o.join("|")})`,new RegExp(`^${r}$`)}function _y(n,r){return!!((r==="v4"||!r)&&py.test(n)||(r==="v6"||!r)&&hy.test(n))}function ky(n,r){if(!uy.test(n))return!1;try{const[o]=n.split("."),s=o.replace(/-/g,"+").replace(/_/g,"/").padEnd(o.length+(4-o.length%4)%4,"="),l=JSON.parse(atob(s));return!(typeof l!="object"||l===null||"typ"in l&&l?.typ!=="JWT"||!l.alg||r&&l.alg!==r)}catch{return!1}}function Ey(n,r){return!!((r==="v4"||!r)&&my.test(n)||(r==="v6"||!r)&&vy.test(n))}class Cn extends De{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==de.string){const u=this._getOrReturnCtx(r);return se(u,{code:J.invalid_type,expected:de.string,received:u.parsedType}),Re}const s=new kt;let l;for(const u of this._def.checks)if(u.kind==="min")r.data.length<u.value&&(l=this._getOrReturnCtx(r,l),se(l,{code:J.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if(u.kind==="max")r.data.length>u.value&&(l=this._getOrReturnCtx(r,l),se(l,{code:J.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if(u.kind==="length"){const d=r.data.length>u.value,p=r.data.length<u.value;(d||p)&&(l=this._getOrReturnCtx(r,l),d?se(l,{code:J.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):p&&se(l,{code:J.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),s.dirty())}else if(u.kind==="email")dy.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"email",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="emoji")gl||(gl=new RegExp(fy,"u")),gl.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"emoji",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="uuid")ay.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"uuid",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="nanoid")ly.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"nanoid",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="cuid")oy.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"cuid",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="cuid2")iy.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"cuid2",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="ulid")sy.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"ulid",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="url")try{new URL(r.data)}catch{l=this._getOrReturnCtx(r,l),se(l,{validation:"url",code:J.invalid_string,message:u.message}),s.dirty()}else u.kind==="regex"?(u.regex.lastIndex=0,u.regex.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"regex",code:J.invalid_string,message:u.message}),s.dirty())):u.kind==="trim"?r.data=r.data.trim():u.kind==="includes"?r.data.includes(u.value,u.position)||(l=this._getOrReturnCtx(r,l),se(l,{code:J.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),s.dirty()):u.kind==="toLowerCase"?r.data=r.data.toLowerCase():u.kind==="toUpperCase"?r.data=r.data.toUpperCase():u.kind==="startsWith"?r.data.startsWith(u.value)||(l=this._getOrReturnCtx(r,l),se(l,{code:J.invalid_string,validation:{startsWith:u.value},message:u.message}),s.dirty()):u.kind==="endsWith"?r.data.endsWith(u.value)||(l=this._getOrReturnCtx(r,l),se(l,{code:J.invalid_string,validation:{endsWith:u.value},message:u.message}),s.dirty()):u.kind==="datetime"?Sy(u).test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{code:J.invalid_string,validation:"datetime",message:u.message}),s.dirty()):u.kind==="date"?xy.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{code:J.invalid_string,validation:"date",message:u.message}),s.dirty()):u.kind==="time"?wy(u).test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{code:J.invalid_string,validation:"time",message:u.message}),s.dirty()):u.kind==="duration"?cy.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"duration",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="ip"?_y(r.data,u.version)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"ip",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="jwt"?ky(r.data,u.alg)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"jwt",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="cidr"?Ey(r.data,u.version)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"cidr",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="base64"?gy.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"base64",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="base64url"?yy.test(r.data)||(l=this._getOrReturnCtx(r,l),se(l,{validation:"base64url",code:J.invalid_string,message:u.message}),s.dirty()):je.assertNever(u);return{status:s.value,value:r.data}}_regex(r,o,s){return this.refinement(l=>r.test(l),{validation:o,code:J.invalid_string,...xe.errToObj(s)})}_addCheck(r){return new Cn({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...xe.errToObj(r)})}url(r){return this._addCheck({kind:"url",...xe.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...xe.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...xe.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...xe.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...xe.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...xe.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...xe.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...xe.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...xe.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...xe.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...xe.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...xe.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof r?.precision>"u"?null:r?.precision,offset:r?.offset??!1,local:r?.local??!1,...xe.errToObj(r?.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof r?.precision>"u"?null:r?.precision,...xe.errToObj(r?.message)})}duration(r){return this._addCheck({kind:"duration",...xe.errToObj(r)})}regex(r,o){return this._addCheck({kind:"regex",regex:r,...xe.errToObj(o)})}includes(r,o){return this._addCheck({kind:"includes",value:r,position:o?.position,...xe.errToObj(o?.message)})}startsWith(r,o){return this._addCheck({kind:"startsWith",value:r,...xe.errToObj(o)})}endsWith(r,o){return this._addCheck({kind:"endsWith",value:r,...xe.errToObj(o)})}min(r,o){return this._addCheck({kind:"min",value:r,...xe.errToObj(o)})}max(r,o){return this._addCheck({kind:"max",value:r,...xe.errToObj(o)})}length(r,o){return this._addCheck({kind:"length",value:r,...xe.errToObj(o)})}nonempty(r){return this.min(1,xe.errToObj(r))}trim(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(const o of this._def.checks)o.kind==="min"&&(r===null||o.value>r)&&(r=o.value);return r}get maxLength(){let r=null;for(const o of this._def.checks)o.kind==="max"&&(r===null||o.value<r)&&(r=o.value);return r}}Cn.create=n=>new Cn({checks:[],typeName:Ie.ZodString,coerce:n?.coerce??!1,...Oe(n)});function by(n,r){const o=(n.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,l=o>s?o:s,u=Number.parseInt(n.toFixed(l).replace(".","")),d=Number.parseInt(r.toFixed(l).replace(".",""));return u%d/10**l}class lo extends De{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==de.number){const u=this._getOrReturnCtx(r);return se(u,{code:J.invalid_type,expected:de.number,received:u.parsedType}),Re}let s;const l=new kt;for(const u of this._def.checks)u.kind==="int"?je.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),se(s,{code:J.invalid_type,expected:"integer",received:"float",message:u.message}),l.dirty()):u.kind==="min"?(u.inclusive?r.data<u.value:r.data<=u.value)&&(s=this._getOrReturnCtx(r,s),se(s,{code:J.too_small,minimum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),l.dirty()):u.kind==="max"?(u.inclusive?r.data>u.value:r.data>=u.value)&&(s=this._getOrReturnCtx(r,s),se(s,{code:J.too_big,maximum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),l.dirty()):u.kind==="multipleOf"?by(r.data,u.value)!==0&&(s=this._getOrReturnCtx(r,s),se(s,{code:J.not_multiple_of,multipleOf:u.value,message:u.message}),l.dirty()):u.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),se(s,{code:J.not_finite,message:u.message}),l.dirty()):je.assertNever(u);return{status:l.value,value:r.data}}gte(r,o){return this.setLimit("min",r,!0,xe.toString(o))}gt(r,o){return this.setLimit("min",r,!1,xe.toString(o))}lte(r,o){return this.setLimit("max",r,!0,xe.toString(o))}lt(r,o){return this.setLimit("max",r,!1,xe.toString(o))}setLimit(r,o,s,l){return new lo({...this._def,checks:[...this._def.checks,{kind:r,value:o,inclusive:s,message:xe.toString(l)}]})}_addCheck(r){return new lo({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:xe.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:xe.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:xe.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:xe.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:xe.toString(r)})}multipleOf(r,o){return this._addCheck({kind:"multipleOf",value:r,message:xe.toString(o)})}finite(r){return this._addCheck({kind:"finite",message:xe.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:xe.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:xe.toString(r)})}get minValue(){let r=null;for(const o of this._def.checks)o.kind==="min"&&(r===null||o.value>r)&&(r=o.value);return r}get maxValue(){let r=null;for(const o of this._def.checks)o.kind==="max"&&(r===null||o.value<r)&&(r=o.value);return r}get isInt(){return!!this._def.checks.find(r=>r.kind==="int"||r.kind==="multipleOf"&&je.isInteger(r.value))}get isFinite(){let r=null,o=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(o===null||s.value>o)&&(o=s.value):s.kind==="max"&&(r===null||s.value<r)&&(r=s.value)}return Number.isFinite(o)&&Number.isFinite(r)}}lo.create=n=>new lo({checks:[],typeName:Ie.ZodNumber,coerce:n?.coerce||!1,...Oe(n)});class ri extends De{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==de.bigint)return this._getInvalidInput(r);let s;const l=new kt;for(const u of this._def.checks)u.kind==="min"?(u.inclusive?r.data<u.value:r.data<=u.value)&&(s=this._getOrReturnCtx(r,s),se(s,{code:J.too_small,type:"bigint",minimum:u.value,inclusive:u.inclusive,message:u.message}),l.dirty()):u.kind==="max"?(u.inclusive?r.data>u.value:r.data>=u.value)&&(s=this._getOrReturnCtx(r,s),se(s,{code:J.too_big,type:"bigint",maximum:u.value,inclusive:u.inclusive,message:u.message}),l.dirty()):u.kind==="multipleOf"?r.data%u.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),se(s,{code:J.not_multiple_of,multipleOf:u.value,message:u.message}),l.dirty()):je.assertNever(u);return{status:l.value,value:r.data}}_getInvalidInput(r){const o=this._getOrReturnCtx(r);return se(o,{code:J.invalid_type,expected:de.bigint,received:o.parsedType}),Re}gte(r,o){return this.setLimit("min",r,!0,xe.toString(o))}gt(r,o){return this.setLimit("min",r,!1,xe.toString(o))}lte(r,o){return this.setLimit("max",r,!0,xe.toString(o))}lt(r,o){return this.setLimit("max",r,!1,xe.toString(o))}setLimit(r,o,s,l){return new ri({...this._def,checks:[...this._def.checks,{kind:r,value:o,inclusive:s,message:xe.toString(l)}]})}_addCheck(r){return new ri({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:xe.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:xe.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:xe.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:xe.toString(r)})}multipleOf(r,o){return this._addCheck({kind:"multipleOf",value:r,message:xe.toString(o)})}get minValue(){let r=null;for(const o of this._def.checks)o.kind==="min"&&(r===null||o.value>r)&&(r=o.value);return r}get maxValue(){let r=null;for(const o of this._def.checks)o.kind==="max"&&(r===null||o.value<r)&&(r=o.value);return r}}ri.create=n=>new ri({checks:[],typeName:Ie.ZodBigInt,coerce:n?.coerce??!1,...Oe(n)});class yl extends De{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==de.boolean){const s=this._getOrReturnCtx(r);return se(s,{code:J.invalid_type,expected:de.boolean,received:s.parsedType}),Re}return Bt(r.data)}}yl.create=n=>new yl({typeName:Ie.ZodBoolean,coerce:n?.coerce||!1,...Oe(n)});class ds extends De{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==de.date){const u=this._getOrReturnCtx(r);return se(u,{code:J.invalid_type,expected:de.date,received:u.parsedType}),Re}if(Number.isNaN(r.data.getTime())){const u=this._getOrReturnCtx(r);return se(u,{code:J.invalid_date}),Re}const s=new kt;let l;for(const u of this._def.checks)u.kind==="min"?r.data.getTime()<u.value&&(l=this._getOrReturnCtx(r,l),se(l,{code:J.too_small,message:u.message,inclusive:!0,exact:!1,minimum:u.value,type:"date"}),s.dirty()):u.kind==="max"?r.data.getTime()>u.value&&(l=this._getOrReturnCtx(r,l),se(l,{code:J.too_big,message:u.message,inclusive:!0,exact:!1,maximum:u.value,type:"date"}),s.dirty()):je.assertNever(u);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new ds({...this._def,checks:[...this._def.checks,r]})}min(r,o){return this._addCheck({kind:"min",value:r.getTime(),message:xe.toString(o)})}max(r,o){return this._addCheck({kind:"max",value:r.getTime(),message:xe.toString(o)})}get minDate(){let r=null;for(const o of this._def.checks)o.kind==="min"&&(r===null||o.value>r)&&(r=o.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const o of this._def.checks)o.kind==="max"&&(r===null||o.value<r)&&(r=o.value);return r!=null?new Date(r):null}}ds.create=n=>new ds({checks:[],coerce:n?.coerce||!1,typeName:Ie.ZodDate,...Oe(n)});class qd extends De{_parse(r){if(this._getType(r)!==de.symbol){const s=this._getOrReturnCtx(r);return se(s,{code:J.invalid_type,expected:de.symbol,received:s.parsedType}),Re}return Bt(r.data)}}qd.create=n=>new qd({typeName:Ie.ZodSymbol,...Oe(n)});class xl extends De{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return se(s,{code:J.invalid_type,expected:de.undefined,received:s.parsedType}),Re}return Bt(r.data)}}xl.create=n=>new xl({typeName:Ie.ZodUndefined,...Oe(n)});class fs extends De{_parse(r){if(this._getType(r)!==de.null){const s=this._getOrReturnCtx(r);return se(s,{code:J.invalid_type,expected:de.null,received:s.parsedType}),Re}return Bt(r.data)}}fs.create=n=>new fs({typeName:Ie.ZodNull,...Oe(n)});class Kd extends De{constructor(){super(...arguments),this._any=!0}_parse(r){return Bt(r.data)}}Kd.create=n=>new Kd({typeName:Ie.ZodAny,...Oe(n)});class wl extends De{constructor(){super(...arguments),this._unknown=!0}_parse(r){return Bt(r.data)}}wl.create=n=>new wl({typeName:Ie.ZodUnknown,...Oe(n)});class Xn extends De{_parse(r){const o=this._getOrReturnCtx(r);return se(o,{code:J.invalid_type,expected:de.never,received:o.parsedType}),Re}}Xn.create=n=>new Xn({typeName:Ie.ZodNever,...Oe(n)});class Gd extends De{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return se(s,{code:J.invalid_type,expected:de.void,received:s.parsedType}),Re}return Bt(r.data)}}Gd.create=n=>new Gd({typeName:Ie.ZodVoid,...Oe(n)});class cn extends De{_parse(r){const{ctx:o,status:s}=this._processInputParams(r),l=this._def;if(o.parsedType!==de.array)return se(o,{code:J.invalid_type,expected:de.array,received:o.parsedType}),Re;if(l.exactLength!==null){const d=o.data.length>l.exactLength.value,p=o.data.length<l.exactLength.value;(d||p)&&(se(o,{code:d?J.too_big:J.too_small,minimum:p?l.exactLength.value:void 0,maximum:d?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),s.dirty())}if(l.minLength!==null&&o.data.length<l.minLength.value&&(se(o,{code:J.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),s.dirty()),l.maxLength!==null&&o.data.length>l.maxLength.value&&(se(o,{code:J.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),s.dirty()),o.common.async)return Promise.all([...o.data].map((d,p)=>l.type._parseAsync(new un(o,d,o.path,p)))).then(d=>kt.mergeArray(s,d));const u=[...o.data].map((d,p)=>l.type._parseSync(new un(o,d,o.path,p)));return kt.mergeArray(s,u)}get element(){return this._def.type}min(r,o){return new cn({...this._def,minLength:{value:r,message:xe.toString(o)}})}max(r,o){return new cn({...this._def,maxLength:{value:r,message:xe.toString(o)}})}length(r,o){return new cn({...this._def,exactLength:{value:r,message:xe.toString(o)}})}nonempty(r){return this.min(1,r)}}cn.create=(n,r)=>new cn({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...Oe(r)});function uo(n){if(n instanceof rt){const r={};for(const o in n.shape){const s=n.shape[o];r[o]=In.create(uo(s))}return new rt({...n._def,shape:()=>r})}else return n instanceof cn?new cn({...n._def,type:uo(n.element)}):n instanceof In?In.create(uo(n.unwrap())):n instanceof Dr?Dr.create(uo(n.unwrap())):n instanceof Or?Or.create(n.items.map(r=>uo(r))):n}class rt extends De{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),o=je.objectKeys(r);return this._cached={shape:r,keys:o},this._cached}_parse(r){if(this._getType(r)!==de.object){const v=this._getOrReturnCtx(r);return se(v,{code:J.invalid_type,expected:de.object,received:v.parsedType}),Re}const{status:s,ctx:l}=this._processInputParams(r),{shape:u,keys:d}=this._getCached(),p=[];if(!(this._def.catchall instanceof Xn&&this._def.unknownKeys==="strip"))for(const v in l.data)d.includes(v)||p.push(v);const h=[];for(const v of d){const y=u[v],x=l.data[v];h.push({key:{status:"valid",value:v},value:y._parse(new un(l,x,l.path,v)),alwaysSet:v in l.data})}if(this._def.catchall instanceof Xn){const v=this._def.unknownKeys;if(v==="passthrough")for(const y of p)h.push({key:{status:"valid",value:y},value:{status:"valid",value:l.data[y]}});else if(v==="strict")p.length>0&&(se(l,{code:J.unrecognized_keys,keys:p}),s.dirty());else if(v!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const v=this._def.catchall;for(const y of p){const x=l.data[y];h.push({key:{status:"valid",value:y},value:v._parse(new un(l,x,l.path,y)),alwaysSet:y in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const v=[];for(const y of h){const x=await y.key,w=await y.value;v.push({key:x,value:w,alwaysSet:y.alwaysSet})}return v}).then(v=>kt.mergeObjectSync(s,v)):kt.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(r){return xe.errToObj,new rt({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(o,s)=>{const l=this._def.errorMap?.(o,s).message??s.defaultError;return o.code==="unrecognized_keys"?{message:xe.errToObj(r).message??l}:{message:l}}}:{}})}strip(){return new rt({...this._def,unknownKeys:"strip"})}passthrough(){return new rt({...this._def,unknownKeys:"passthrough"})}extend(r){return new rt({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new rt({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Ie.ZodObject})}setKey(r,o){return this.augment({[r]:o})}catchall(r){return new rt({...this._def,catchall:r})}pick(r){const o={};for(const s of je.objectKeys(r))r[s]&&this.shape[s]&&(o[s]=this.shape[s]);return new rt({...this._def,shape:()=>o})}omit(r){const o={};for(const s of je.objectKeys(this.shape))r[s]||(o[s]=this.shape[s]);return new rt({...this._def,shape:()=>o})}deepPartial(){return uo(this)}partial(r){const o={};for(const s of je.objectKeys(this.shape)){const l=this.shape[s];r&&!r[s]?o[s]=l:o[s]=l.optional()}return new rt({...this._def,shape:()=>o})}required(r){const o={};for(const s of je.objectKeys(this.shape))if(r&&!r[s])o[s]=this.shape[s];else{let u=this.shape[s];for(;u instanceof In;)u=u._def.innerType;o[s]=u}return new rt({...this._def,shape:()=>o})}keyof(){return Yd(je.objectKeys(this.shape))}}rt.create=(n,r)=>new rt({shape:()=>n,unknownKeys:"strip",catchall:Xn.create(),typeName:Ie.ZodObject,...Oe(r)}),rt.strictCreate=(n,r)=>new rt({shape:()=>n,unknownKeys:"strict",catchall:Xn.create(),typeName:Ie.ZodObject,...Oe(r)}),rt.lazycreate=(n,r)=>new rt({shape:n,unknownKeys:"strip",catchall:Xn.create(),typeName:Ie.ZodObject,...Oe(r)});class ps extends De{_parse(r){const{ctx:o}=this._processInputParams(r),s=this._def.options;function l(u){for(const p of u)if(p.result.status==="valid")return p.result;for(const p of u)if(p.result.status==="dirty")return o.common.issues.push(...p.ctx.common.issues),p.result;const d=u.map(p=>new bn(p.ctx.common.issues));return se(o,{code:J.invalid_union,unionErrors:d}),Re}if(o.common.async)return Promise.all(s.map(async u=>{const d={...o,common:{...o.common,issues:[]},parent:null};return{result:await u._parseAsync({data:o.data,path:o.path,parent:d}),ctx:d}})).then(l);{let u;const d=[];for(const h of s){const v={...o,common:{...o.common,issues:[]},parent:null},y=h._parseSync({data:o.data,path:o.path,parent:v});if(y.status==="valid")return y;y.status==="dirty"&&!u&&(u={result:y,ctx:v}),v.common.issues.length&&d.push(v.common.issues)}if(u)return o.common.issues.push(...u.ctx.common.issues),u.result;const p=d.map(h=>new bn(h));return se(o,{code:J.invalid_union,unionErrors:p}),Re}}get options(){return this._def.options}}ps.create=(n,r)=>new ps({options:n,typeName:Ie.ZodUnion,...Oe(r)});const Rn=n=>n instanceof vs?Rn(n.schema):n instanceof Ar?Rn(n.innerType()):n instanceof gs?[n.value]:n instanceof Tr?n.options:n instanceof kl?je.objectValues(n.enum):n instanceof xs?Rn(n._def.innerType):n instanceof xl?[void 0]:n instanceof fs?[null]:n instanceof In?[void 0,...Rn(n.unwrap())]:n instanceof Dr?[null,...Rn(n.unwrap())]:n instanceof Jd||n instanceof Ss?Rn(n.unwrap()):n instanceof ws?Rn(n._def.innerType):[];class Sl extends De{_parse(r){const{ctx:o}=this._processInputParams(r);if(o.parsedType!==de.object)return se(o,{code:J.invalid_type,expected:de.object,received:o.parsedType}),Re;const s=this.discriminator,l=o.data[s],u=this.optionsMap.get(l);return u?o.common.async?u._parseAsync({data:o.data,path:o.path,parent:o}):u._parseSync({data:o.data,path:o.path,parent:o}):(se(o,{code:J.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(r,o,s){const l=new Map;for(const u of o){const d=Rn(u.shape[r]);if(!d.length)throw new Error(`A discriminator value for key \`${r}\` could not be extracted from all schema options`);for(const p of d){if(l.has(p))throw new Error(`Discriminator property ${String(r)} has duplicate value ${String(p)}`);l.set(p,u)}}return new Sl({typeName:Ie.ZodDiscriminatedUnion,discriminator:r,options:o,optionsMap:l,...Oe(s)})}}function _l(n,r){const o=Yn(n),s=Yn(r);if(n===r)return{valid:!0,data:n};if(o===de.object&&s===de.object){const l=je.objectKeys(r),u=je.objectKeys(n).filter(p=>l.indexOf(p)!==-1),d={...n,...r};for(const p of u){const h=_l(n[p],r[p]);if(!h.valid)return{valid:!1};d[p]=h.data}return{valid:!0,data:d}}else if(o===de.array&&s===de.array){if(n.length!==r.length)return{valid:!1};const l=[];for(let u=0;u<n.length;u++){const d=n[u],p=r[u],h=_l(d,p);if(!h.valid)return{valid:!1};l.push(h.data)}return{valid:!0,data:l}}else return o===de.date&&s===de.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}class ms extends De{_parse(r){const{status:o,ctx:s}=this._processInputParams(r),l=(u,d)=>{if(Ud(u)||Ud(d))return Re;const p=_l(u.value,d.value);return p.valid?((Bd(u)||Bd(d))&&o.dirty(),{status:o.value,value:p.data}):(se(s,{code:J.invalid_intersection_types}),Re)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([u,d])=>l(u,d)):l(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ms.create=(n,r,o)=>new ms({left:n,right:r,typeName:Ie.ZodIntersection,...Oe(o)});class Or extends De{_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.array)return se(s,{code:J.invalid_type,expected:de.array,received:s.parsedType}),Re;if(s.data.length<this._def.items.length)return se(s,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&s.data.length>this._def.items.length&&(se(s,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),o.dirty());const u=[...s.data].map((d,p)=>{const h=this._def.items[p]||this._def.rest;return h?h._parse(new un(s,d,s.path,p)):null}).filter(d=>!!d);return s.common.async?Promise.all(u).then(d=>kt.mergeArray(o,d)):kt.mergeArray(o,u)}get items(){return this._def.items}rest(r){return new Or({...this._def,rest:r})}}Or.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Or({items:n,typeName:Ie.ZodTuple,rest:null,...Oe(r)})};class hs extends De{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.object)return se(s,{code:J.invalid_type,expected:de.object,received:s.parsedType}),Re;const l=[],u=this._def.keyType,d=this._def.valueType;for(const p in s.data)l.push({key:u._parse(new un(s,p,s.path,p)),value:d._parse(new un(s,s.data[p],s.path,p)),alwaysSet:p in s.data});return s.common.async?kt.mergeObjectAsync(o,l):kt.mergeObjectSync(o,l)}get element(){return this._def.valueType}static create(r,o,s){return o instanceof De?new hs({keyType:r,valueType:o,typeName:Ie.ZodRecord,...Oe(s)}):new hs({keyType:Cn.create(),valueType:r,typeName:Ie.ZodRecord,...Oe(o)})}}class Qd extends De{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.map)return se(s,{code:J.invalid_type,expected:de.map,received:s.parsedType}),Re;const l=this._def.keyType,u=this._def.valueType,d=[...s.data.entries()].map(([p,h],v)=>({key:l._parse(new un(s,p,s.path,[v,"key"])),value:u._parse(new un(s,h,s.path,[v,"value"]))}));if(s.common.async){const p=new Map;return Promise.resolve().then(async()=>{for(const h of d){const v=await h.key,y=await h.value;if(v.status==="aborted"||y.status==="aborted")return Re;(v.status==="dirty"||y.status==="dirty")&&o.dirty(),p.set(v.value,y.value)}return{status:o.value,value:p}})}else{const p=new Map;for(const h of d){const v=h.key,y=h.value;if(v.status==="aborted"||y.status==="aborted")return Re;(v.status==="dirty"||y.status==="dirty")&&o.dirty(),p.set(v.value,y.value)}return{status:o.value,value:p}}}}Qd.create=(n,r,o)=>new Qd({valueType:r,keyType:n,typeName:Ie.ZodMap,...Oe(o)});class oi extends De{_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.set)return se(s,{code:J.invalid_type,expected:de.set,received:s.parsedType}),Re;const l=this._def;l.minSize!==null&&s.data.size<l.minSize.value&&(se(s,{code:J.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),o.dirty()),l.maxSize!==null&&s.data.size>l.maxSize.value&&(se(s,{code:J.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),o.dirty());const u=this._def.valueType;function d(h){const v=new Set;for(const y of h){if(y.status==="aborted")return Re;y.status==="dirty"&&o.dirty(),v.add(y.value)}return{status:o.value,value:v}}const p=[...s.data.values()].map((h,v)=>u._parse(new un(s,h,s.path,v)));return s.common.async?Promise.all(p).then(h=>d(h)):d(p)}min(r,o){return new oi({...this._def,minSize:{value:r,message:xe.toString(o)}})}max(r,o){return new oi({...this._def,maxSize:{value:r,message:xe.toString(o)}})}size(r,o){return this.min(r,o).max(r,o)}nonempty(r){return this.min(1,r)}}oi.create=(n,r)=>new oi({valueType:n,minSize:null,maxSize:null,typeName:Ie.ZodSet,...Oe(r)});class vs extends De{get schema(){return this._def.getter()}_parse(r){const{ctx:o}=this._processInputParams(r);return this._def.getter()._parse({data:o.data,path:o.path,parent:o})}}vs.create=(n,r)=>new vs({getter:n,typeName:Ie.ZodLazy,...Oe(r)});class gs extends De{_parse(r){if(r.data!==this._def.value){const o=this._getOrReturnCtx(r);return se(o,{received:o.data,code:J.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:r.data}}get value(){return this._def.value}}gs.create=(n,r)=>new gs({value:n,typeName:Ie.ZodLiteral,...Oe(r)});function Yd(n,r){return new Tr({values:n,typeName:Ie.ZodEnum,...Oe(r)})}class Tr extends De{_parse(r){if(typeof r.data!="string"){const o=this._getOrReturnCtx(r),s=this._def.values;return se(o,{expected:je.joinValues(s),received:o.parsedType,code:J.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){const o=this._getOrReturnCtx(r),s=this._def.values;return se(o,{received:o.data,code:J.invalid_enum_value,options:s}),Re}return Bt(r.data)}get options(){return this._def.values}get enum(){const r={};for(const o of this._def.values)r[o]=o;return r}get Values(){const r={};for(const o of this._def.values)r[o]=o;return r}get Enum(){const r={};for(const o of this._def.values)r[o]=o;return r}extract(r,o=this._def){return Tr.create(r,{...this._def,...o})}exclude(r,o=this._def){return Tr.create(this.options.filter(s=>!r.includes(s)),{...this._def,...o})}}Tr.create=Yd;class kl extends De{_parse(r){const o=je.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==de.string&&s.parsedType!==de.number){const l=je.objectValues(o);return se(s,{expected:je.joinValues(l),received:s.parsedType,code:J.invalid_type}),Re}if(this._cache||(this._cache=new Set(je.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){const l=je.objectValues(o);return se(s,{received:s.data,code:J.invalid_enum_value,options:l}),Re}return Bt(r.data)}get enum(){return this._def.values}}kl.create=(n,r)=>new kl({values:n,typeName:Ie.ZodNativeEnum,...Oe(r)});class ys extends De{unwrap(){return this._def.type}_parse(r){const{ctx:o}=this._processInputParams(r);if(o.parsedType!==de.promise&&o.common.async===!1)return se(o,{code:J.invalid_type,expected:de.promise,received:o.parsedType}),Re;const s=o.parsedType===de.promise?o.data:Promise.resolve(o.data);return Bt(s.then(l=>this._def.type.parseAsync(l,{path:o.path,errorMap:o.common.contextualErrorMap})))}}ys.create=(n,r)=>new ys({type:n,typeName:Ie.ZodPromise,...Oe(r)});class Ar extends De{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){const{status:o,ctx:s}=this._processInputParams(r),l=this._def.effect||null,u={addIssue:d=>{se(s,d),d.fatal?o.abort():o.dirty()},get path(){return s.path}};if(u.addIssue=u.addIssue.bind(u),l.type==="preprocess"){const d=l.transform(s.data,u);if(s.common.async)return Promise.resolve(d).then(async p=>{if(o.value==="aborted")return Re;const h=await this._def.schema._parseAsync({data:p,path:s.path,parent:s});return h.status==="aborted"?Re:h.status==="dirty"||o.value==="dirty"?ni(h.value):h});{if(o.value==="aborted")return Re;const p=this._def.schema._parseSync({data:d,path:s.path,parent:s});return p.status==="aborted"?Re:p.status==="dirty"||o.value==="dirty"?ni(p.value):p}}if(l.type==="refinement"){const d=p=>{const h=l.refinement(p,u);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return p};if(s.common.async===!1){const p=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return p.status==="aborted"?Re:(p.status==="dirty"&&o.dirty(),d(p.value),{status:o.value,value:p.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(p=>p.status==="aborted"?Re:(p.status==="dirty"&&o.dirty(),d(p.value).then(()=>({status:o.value,value:p.value}))))}if(l.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!ao(d))return Re;const p=l.transform(d.value,u);if(p instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:o.value,value:p}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>ao(d)?Promise.resolve(l.transform(d.value,u)).then(p=>({status:o.value,value:p})):Re);je.assertNever(l)}}Ar.create=(n,r,o)=>new Ar({schema:n,typeName:Ie.ZodEffects,effect:r,...Oe(o)}),Ar.createWithPreprocess=(n,r,o)=>new Ar({schema:r,effect:{type:"preprocess",transform:n},typeName:Ie.ZodEffects,...Oe(o)});class In extends De{_parse(r){return this._getType(r)===de.undefined?Bt(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}In.create=(n,r)=>new In({innerType:n,typeName:Ie.ZodOptional,...Oe(r)});class Dr extends De{_parse(r){return this._getType(r)===de.null?Bt(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Dr.create=(n,r)=>new Dr({innerType:n,typeName:Ie.ZodNullable,...Oe(r)});class xs extends De{_parse(r){const{ctx:o}=this._processInputParams(r);let s=o.data;return o.parsedType===de.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:o.path,parent:o})}removeDefault(){return this._def.innerType}}xs.create=(n,r)=>new xs({innerType:n,typeName:Ie.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...Oe(r)});class ws extends De{_parse(r){const{ctx:o}=this._processInputParams(r),s={...o,common:{...o.common,issues:[]}},l=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return cs(l)?l.then(u=>({status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new bn(s.common.issues)},input:s.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new bn(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ws.create=(n,r)=>new ws({innerType:n,typeName:Ie.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...Oe(r)});class Xd extends De{_parse(r){if(this._getType(r)!==de.nan){const s=this._getOrReturnCtx(r);return se(s,{code:J.invalid_type,expected:de.nan,received:s.parsedType}),Re}return{status:"valid",value:r.data}}}Xd.create=n=>new Xd({typeName:Ie.ZodNaN,...Oe(n)});class Jd extends De{_parse(r){const{ctx:o}=this._processInputParams(r),s=o.data;return this._def.type._parse({data:s,path:o.path,parent:o})}unwrap(){return this._def.type}}class El extends De{_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{const u=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?Re:u.status==="dirty"?(o.dirty(),ni(u.value)):this._def.out._parseAsync({data:u.value,path:s.path,parent:s})})();{const l=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?Re:l.status==="dirty"?(o.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:s.path,parent:s})}}static create(r,o){return new El({in:r,out:o,typeName:Ie.ZodPipeline})}}class Ss extends De{_parse(r){const o=this._def.innerType._parse(r),s=l=>(ao(l)&&(l.value=Object.freeze(l.value)),l);return cs(o)?o.then(l=>s(l)):s(o)}unwrap(){return this._def.innerType}}Ss.create=(n,r)=>new Ss({innerType:n,typeName:Ie.ZodReadonly,...Oe(r)});var Ie;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Ie||(Ie={}));const ae=Cn.create,vt=lo.create,Lt=yl.create,Jn=fs.create,co=wl.create;Xn.create;const Je=cn.create,_e=rt.create,Pn=ps.create,Cy=Sl.create;ms.create,Or.create;const Mr=hs.create,Ry=vs.create,Qe=gs.create,Nn=Tr.create;ys.create,In.create,Dr.create;function ef(n){var r,o,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(r=0;r<l;r++)n[r]&&(o=ef(n[r]))&&(s&&(s+=" "),s+=o)}else for(o in n)n[o]&&(s&&(s+=" "),s+=o);return s}function tf(){for(var n,r,o=0,s="",l=arguments.length;o<l;o++)(n=arguments[o])&&(r=ef(n))&&(s&&(s+=" "),s+=r);return s}const Iy=(n,r)=>{const o=new Array(n.length+r.length);for(let s=0;s<n.length;s++)o[s]=n[s];for(let s=0;s<r.length;s++)o[n.length+s]=r[s];return o},Py=(n,r)=>({classGroupId:n,validator:r}),nf=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),_s="-",rf=[],Ny="arbitrary..",Oy=n=>{const r=Ay(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return Ty(d);const p=d.split(_s),h=p[0]===""&&p.length>1?1:0;return of(p,h,r)},getConflictingClassGroupIds:(d,p)=>{if(p){const h=s[d],v=o[d];return h?v?Iy(v,h):h:v||rf}return o[d]||rf}}},of=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const l=n[r],u=o.nextPart.get(l);if(u){const v=of(n,r+1,u);if(v)return v}const d=o.validators;if(d===null)return;const p=r===0?n.join(_s):n.slice(r).join(_s),h=d.length;for(let v=0;v<h;v++){const y=d[v];if(y.validator(p))return y.classGroupId}},Ty=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),o=r.indexOf(":"),s=r.slice(0,o);return s?Ny+s:void 0})(),Ay=n=>{const{theme:r,classGroups:o}=n;return Dy(o,r)},Dy=(n,r)=>{const o=nf();for(const s in n){const l=n[s];bl(l,o,s,r)}return o},bl=(n,r,o,s)=>{const l=n.length;for(let u=0;u<l;u++){const d=n[u];My(d,r,o,s)}},My=(n,r,o,s)=>{if(typeof n=="string"){Ly(n,r,o);return}if(typeof n=="function"){jy(n,r,o,s);return}zy(n,r,o,s)},Ly=(n,r,o)=>{const s=n===""?r:sf(r,n);s.classGroupId=o},jy=(n,r,o,s)=>{if(Fy(n)){bl(n(s),r,o,s);return}r.validators===null&&(r.validators=[]),r.validators.push(Py(o,n))},zy=(n,r,o,s)=>{const l=Object.entries(n),u=l.length;for(let d=0;d<u;d++){const[p,h]=l[d];bl(h,sf(r,p),o,s)}},sf=(n,r)=>{let o=n;const s=r.split(_s),l=s.length;for(let u=0;u<l;u++){const d=s[u];let p=o.nextPart.get(d);p||(p=nf(),o.nextPart.set(d,p)),o=p}return o},Fy=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,$y=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),s=Object.create(null);const l=(u,d)=>{o[u]=d,r++,r>n&&(r=0,s=o,o=Object.create(null))};return{get(u){let d=o[u];if(d!==void 0)return d;if((d=s[u])!==void 0)return l(u,d),d},set(u,d){u in o?o[u]=d:l(u,d)}}},Cl="!",af=":",Vy=[],lf=(n,r,o,s,l)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:s,isExternal:l}),Uy=n=>{const{prefix:r,experimentalParseClassName:o}=n;let s=l=>{const u=[];let d=0,p=0,h=0,v;const y=l.length;for(let b=0;b<y;b++){const S=l[b];if(d===0&&p===0){if(S===af){u.push(l.slice(h,b)),h=b+1;continue}if(S==="/"){v=b;continue}}S==="["?d++:S==="]"?d--:S==="("?p++:S===")"&&p--}const x=u.length===0?l:l.slice(h);let w=x,E=!1;x.endsWith(Cl)?(w=x.slice(0,-1),E=!0):x.startsWith(Cl)&&(w=x.slice(1),E=!0);const _=v&&v>h?v-h:void 0;return lf(u,E,w,_)};if(r){const l=r+af,u=s;s=d=>d.startsWith(l)?u(d.slice(l.length)):lf(Vy,!1,d,void 0,!0)}if(o){const l=s;s=u=>o({className:u,parseClassName:l})}return s},By=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,s)=>{r.set(o,1e6+s)}),o=>{const s=[];let l=[];for(let u=0;u<o.length;u++){const d=o[u],p=d[0]==="[",h=r.has(d);p||h?(l.length>0&&(l.sort(),s.push(...l),l=[]),s.push(d)):l.push(d)}return l.length>0&&(l.sort(),s.push(...l)),s}},Wy=n=>({cache:$y(n.cacheSize),parseClassName:Uy(n),sortModifiers:By(n),postfixLookupClassGroupIds:Hy(n),...Oy(n)}),Hy=n=>{const r=Object.create(null),o=n.postfixLookupClassGroups;if(o)for(let s=0;s<o.length;s++)r[o[s]]=!0;return r},Zy=/\s+/,qy=(n,r)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:u,postfixLookupClassGroupIds:d}=r,p=[],h=n.trim().split(Zy);let v="";for(let y=h.length-1;y>=0;y-=1){const x=h[y],{isExternal:w,modifiers:E,hasImportantModifier:_,baseClassName:b,maybePostfixModifierPosition:S}=o(x);if(w){v=x+(v.length>0?" "+v:v);continue}let A=!!S,D;if(A){const W=b.substring(0,S);D=s(W);const F=D&&d[D]?s(b):void 0;F&&F!==D&&(D=F,A=!1)}else D=s(b);if(!D){if(!A){v=x+(v.length>0?" "+v:v);continue}if(D=s(b),!D){v=x+(v.length>0?" "+v:v);continue}A=!1}const T=E.length===0?"":E.length===1?E[0]:u(E).join(":"),N=_?T+Cl:T,U=N+D;if(p.indexOf(U)>-1)continue;p.push(U);const L=l(D,A);for(let W=0;W<L.length;++W){const F=L[W];p.push(N+F)}v=x+(v.length>0?" "+v:v)}return v},Ky=(...n)=>{let r=0,o,s,l="";for(;r<n.length;)(o=n[r++])&&(s=uf(o))&&(l&&(l+=" "),l+=s);return l},uf=n=>{if(typeof n=="string")return n;let r,o="";for(let s=0;s<n.length;s++)n[s]&&(r=uf(n[s]))&&(o&&(o+=" "),o+=r);return o},Gy=(n,...r)=>{let o,s,l,u;const d=h=>{const v=r.reduce((y,x)=>x(y),n());return o=Wy(v),s=o.cache.get,l=o.cache.set,u=p,p(h)},p=h=>{const v=s(h);if(v)return v;const y=qy(h,o);return l(h,y),y};return u=d,(...h)=>u(Ky(...h))},Qy=[],st=n=>{const r=o=>o[n]||Qy;return r.isThemeGetter=!0,r},cf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,df=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Xy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jy=/\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$/,e0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,t0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,n0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,er=n=>Yy.test(n),Te=n=>!!n&&!Number.isNaN(Number(n)),dn=n=>!!n&&Number.isInteger(Number(n)),Rl=n=>n.endsWith("%")&&Te(n.slice(0,-1)),On=n=>Xy.test(n),ff=()=>!0,r0=n=>Jy.test(n)&&!e0.test(n),Il=()=>!1,o0=n=>t0.test(n),i0=n=>n0.test(n),s0=n=>!ce(n)&&!fe(n),a0=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),l0=n=>tr(n,yf,Il),ce=n=>cf.test(n),Lr=n=>tr(n,xf,r0),pf=n=>tr(n,v0,Te),u0=n=>tr(n,Sf,ff),c0=n=>tr(n,wf,Il),mf=n=>tr(n,vf,Il),d0=n=>tr(n,gf,i0),ks=n=>tr(n,_f,o0),fe=n=>df.test(n),ii=n=>jr(n,xf),f0=n=>jr(n,wf),hf=n=>jr(n,vf),p0=n=>jr(n,yf),m0=n=>jr(n,gf),Es=n=>jr(n,_f,!0),h0=n=>jr(n,Sf,!0),tr=(n,r,o)=>{const s=cf.exec(n);return s?s[1]?r(s[1]):o(s[2]):!1},jr=(n,r,o=!1)=>{const s=df.exec(n);return s?s[1]?r(s[1]):o:!1},vf=n=>n==="position"||n==="percentage",gf=n=>n==="image"||n==="url",yf=n=>n==="length"||n==="size"||n==="bg-size",xf=n=>n==="length",v0=n=>n==="number",wf=n=>n==="family-name",Sf=n=>n==="number"||n==="weight",_f=n=>n==="shadow",g0=Gy(()=>{const n=st("color"),r=st("font"),o=st("text"),s=st("font-weight"),l=st("tracking"),u=st("leading"),d=st("breakpoint"),p=st("container"),h=st("spacing"),v=st("radius"),y=st("shadow"),x=st("inset-shadow"),w=st("text-shadow"),E=st("drop-shadow"),_=st("blur"),b=st("perspective"),S=st("aspect"),A=st("ease"),D=st("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...N(),fe,ce],L=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],F=()=>[fe,ce,h],re=()=>[er,"full","auto",...F()],me=()=>[dn,"none","subgrid",fe,ce],ke=()=>["auto",{span:["full",dn,fe,ce]},dn,fe,ce],oe=()=>[dn,"auto",fe,ce],he=()=>["auto","min","max","fr",fe,ce],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],ue=()=>["auto",...F()],ie=()=>[er,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],B=()=>[er,"screen","full","dvw","lvw","svw","min","max","fit",...F()],X=()=>[er,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],z=()=>[n,fe,ce],P=()=>[...N(),hf,mf,{position:[fe,ce]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",p0,l0,{size:[fe,ce]}],ne=()=>[Rl,ii,Lr],H=()=>["","none","full",v,fe,ce],V=()=>["",Te,ii,Lr],te=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[Te,Rl,hf,mf],Ce=()=>["","none",_,fe,ce],Ne=()=>["none",Te,fe,ce],Me=()=>["none",Te,fe,ce],Le=()=>[Te,fe,ce],ft=()=>[er,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[On],breakpoint:[On],color:[ff],container:[On],"drop-shadow":[On],ease:["in","out","in-out"],font:[s0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[On],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[On],shadow:[On],spacing:["px",Te],text:[On],"text-shadow":[On],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",er,ce,fe,S]}],container:["container"],"container-type":[{"@container":["","normal","size",fe,ce]}],"container-named":[a0],columns:[{columns:[Te,ce,fe,p]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:U()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:re()}],"inset-x":[{"inset-x":re()}],"inset-y":[{"inset-y":re()}],start:[{"inset-s":re(),start:re()}],end:[{"inset-e":re(),end:re()}],"inset-bs":[{"inset-bs":re()}],"inset-be":[{"inset-be":re()}],top:[{top:re()}],right:[{right:re()}],bottom:[{bottom:re()}],left:[{left:re()}],visibility:["visible","invisible","collapse"],z:[{z:[dn,"auto",fe,ce]}],basis:[{basis:[er,"full","auto",p,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,er,"auto","initial","none",ce]}],grow:[{grow:["",Te,fe,ce]}],shrink:[{shrink:["",Te,fe,ce]}],order:[{order:[dn,"first","last","none",fe,ce]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pbs:[{pbs:F()}],pbe:[{pbe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:ue()}],mx:[{mx:ue()}],my:[{my:ue()}],ms:[{ms:ue()}],me:[{me:ue()}],mbs:[{mbs:ue()}],mbe:[{mbe:ue()}],mt:[{mt:ue()}],mr:[{mr:ue()}],mb:[{mb:ue()}],ml:[{ml:ue()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[p,"screen",...ie()]}],"min-w":[{"min-w":[p,"screen","none",...ie()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",o,ii,Lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,h0,u0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rl,ce]}],"font-family":[{font:[f0,c0,r]}],"font-features":[{"font-features":[ce]}],"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:[l,fe,ce]}],"line-clamp":[{"line-clamp":[Te,"none",fe,pf]}],leading:[{leading:[u,...F()]}],"list-image":[{"list-image":["none",fe,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",fe,Lr]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Te,"auto",fe,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"tab-size":[{tab:[dn,fe,ce]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,ce]}],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",fe,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dn,fe,ce],radial:["",fe,ce],conic:[dn,fe,ce]},m0,d0]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,fe,ce]}],"outline-w":[{outline:["",Te,ii,Lr]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",y,Es,ks]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",x,Es,ks]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Te,Lr]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",w,Es,ks]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Te,fe,ce]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"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":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[fe,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,ce]}],filter:[{filter:["","none",fe,ce]}],blur:[{blur:Ce()}],brightness:[{brightness:[Te,fe,ce]}],contrast:[{contrast:[Te,fe,ce]}],"drop-shadow":[{"drop-shadow":["","none",E,Es,ks]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Te,fe,ce]}],"hue-rotate":[{"hue-rotate":[Te,fe,ce]}],invert:[{invert:["",Te,fe,ce]}],saturate:[{saturate:[Te,fe,ce]}],sepia:[{sepia:["",Te,fe,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,ce]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Te,fe,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Te,fe,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,fe,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,fe,ce]}],"backdrop-invert":[{"backdrop-invert":["",Te,fe,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Te,fe,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Te,fe,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,fe,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",fe,ce]}],ease:[{ease:["linear","initial",A,fe,ce]}],delay:[{delay:[Te,fe,ce]}],animate:[{animate:["none",D,fe,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,fe,ce]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[fe,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ft()}],"translate-x":[{"translate-x":ft()}],"translate-y":[{"translate-y":ft()}],"translate-z":[{"translate-z":ft()}],"translate-none":["translate-none"],zoom:[{zoom:[dn,fe,ce]}],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",fe,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":z()}],"scrollbar-track-color":[{"scrollbar-track":z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mbs":[{"scroll-mbs":F()}],"scroll-mbe":[{"scroll-mbe":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pbs":[{"scroll-pbs":F()}],"scroll-pbe":[{"scroll-pbe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",fe,ce]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Te,ii,Lr,pf]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function y0(n={}){const r=n.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;n.density==="compact"?document.documentElement.dataset.xuiDensity="compact":n.density==="default"&&delete document.documentElement.dataset.xuiDensity;let o=document.getElementById(r);o||(o=document.createElement("style"),o.id=r,document.head.appendChild(o)),o.textContent=`
|
|
8
|
+
`+f.stack}return{value:e,source:t,stack:c,digest:null}}function od(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function id(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var mE=typeof WeakMap=="function"?WeakMap:Map;function og(e,t,i){i=Kn(-1,i),i.tag=3,i.payload={element:null};var a=t.value;return i.callback=function(){Ya||(Ya=!0,wd=a),id(e,t)},i}function ig(e,t,i){i=Kn(-1,i),i.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var c=t.value;i.payload=function(){return a(c)},i.callback=function(){id(e,t)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(i.callback=function(){id(e,t),typeof a!="function"&&(br===null?br=new Set([this]):br.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),i}function sg(e,t,i){var a=e.pingCache;if(a===null){a=e.pingCache=new mE;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));c.has(i)||(c.add(i),e=IE.bind(null,e,t,i),t.then(e,e))}function ag(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lg(e,t,i,a,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=Kn(-1,1),t.tag=2,_r(i,t,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var hE=N.ReactCurrentOwner,At=!1;function Ct(e,t,i,a){t.child=e===null?Iv(t,null,i,a):Zo(t,e.child,i,a)}function ug(e,t,i,a,c){i=i.render;var f=t.ref;return Ko(t,c),a=Qc(e,t,i,a,f,c),i=Yc(),e!==null&&!At?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Gn(e,t,c)):(Qe&&i&&Ac(t),t.flags|=1,Ct(e,t,a,c),t.child)}function cg(e,t,i,a,c){if(e===null){var f=i.type;return typeof f=="function"&&!Rd(f)&&f.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=f,dg(e,t,f,a,c)):(e=rl(i.type,null,a,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,(e.lanes&c)===0){var g=f.memoizedProps;if(i=i.compare,i=i!==null?i:Ui,i(g,a)&&e.ref===t.ref)return Gn(e,t,c)}return t.flags|=1,e=Ir(f,a),e.ref=t.ref,e.return=t,t.child=e}function dg(e,t,i,a,c){if(e!==null){var f=e.memoizedProps;if(Ui(f,a)&&e.ref===t.ref)if(At=!1,t.pendingProps=a=f,(e.lanes&c)!==0)(e.flags&131072)!==0&&(At=!0);else return t.lanes=e.lanes,Gn(e,t,c)}return sd(e,t,i,a,c)}function fg(e,t,i){var a=t.pendingProps,c=a.children,f=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ze(Xo,Ut),Ut|=i;else{if((i&1073741824)===0)return e=f!==null?f.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ze(Xo,Ut),Ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=f!==null?f.baseLanes:i,Ze(Xo,Ut),Ut|=a}else f!==null?(a=f.baseLanes|i,t.memoizedState=null):a=i,Ze(Xo,Ut),Ut|=a;return Ct(e,t,c,i),t.child}function pg(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function sd(e,t,i,a,c){var f=Tt(i)?Qr:xt.current;return f=Uo(t,f),Ko(t,c),i=Qc(e,t,i,a,f,c),a=Yc(),e!==null&&!At?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Gn(e,t,c)):(Qe&&a&&Ac(t),t.flags|=1,Ct(e,t,i,c),t.child)}function mg(e,t,i,a,c){if(Tt(i)){var f=!0;Ia(t)}else f=!1;if(Ko(t,c),t.stateNode===null)Za(e,t),ng(t,i,a),rd(t,i,a,c),a=!0;else if(e===null){var g=t.stateNode,k=t.memoizedProps;g.props=k;var R=g.context,$=i.contextType;typeof $=="object"&&$!==null?$=qt($):($=Tt(i)?Qr:xt.current,$=Uo(t,$));var G=i.getDerivedStateFromProps,Y=typeof G=="function"||typeof g.getSnapshotBeforeUpdate=="function";Y||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(k!==a||R!==$)&&rg(t,g,a,$),Sr=!1;var q=t.memoizedState;g.state=q,ja(t,a,g,c),R=t.memoizedState,k!==a||q!==R||Ot.current||Sr?(typeof G=="function"&&(nd(t,i,G,a),R=t.memoizedState),(k=Sr||tg(t,i,k,a,q,R,$))?(Y||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=R),g.props=a,g.state=R,g.context=$,a=k):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{g=t.stateNode,Nv(e,t),k=t.memoizedProps,$=t.type===t.elementType?k:on(t.type,k),g.props=$,Y=t.pendingProps,q=g.context,R=i.contextType,typeof R=="object"&&R!==null?R=qt(R):(R=Tt(i)?Qr:xt.current,R=Uo(t,R));var le=i.getDerivedStateFromProps;(G=typeof le=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(k!==Y||q!==R)&&rg(t,g,a,R),Sr=!1,q=t.memoizedState,g.state=q,ja(t,a,g,c);var ge=t.memoizedState;k!==Y||q!==ge||Ot.current||Sr?(typeof le=="function"&&(nd(t,i,le,a),ge=t.memoizedState),($=Sr||tg(t,i,$,a,q,ge,R)||!1)?(G||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,ge,R),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,ge,R)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||k===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||k===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=ge),g.props=a,g.state=ge,g.context=R,a=$):(typeof g.componentDidUpdate!="function"||k===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||k===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),a=!1)}return ad(e,t,i,a,f,c)}function ad(e,t,i,a,c,f){pg(e,t);var g=(t.flags&128)!==0;if(!a&&!g)return c&&xv(t,i,!1),Gn(e,t,f);a=t.stateNode,hE.current=t;var k=g&&typeof i.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&g?(t.child=Zo(t,e.child,null,f),t.child=Zo(t,null,k,f)):Ct(e,t,k,f),t.memoizedState=a.state,c&&xv(t,i,!0),t.child}function hg(e){var t=e.stateNode;t.pendingContext?gv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gv(e,t.context,!1),Wc(e,t.containerInfo)}function vg(e,t,i,a,c){return Ho(),jc(c),t.flags|=256,Ct(e,t,i,a),t.child}var ld={dehydrated:null,treeContext:null,retryLane:0};function ud(e){return{baseLanes:e,cachePool:null,transitions:null}}function gg(e,t,i){var a=t.pendingProps,c=Ye.current,f=!1,g=(t.flags&128)!==0,k;if((k=g)||(k=e!==null&&e.memoizedState===null?!1:(c&2)!==0),k?(f=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),Ze(Ye,c&1),e===null)return Lc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(g=a.children,e=a.fallback,f?(a=t.mode,f=t.child,g={mode:"hidden",children:g},(a&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=g):f=ol(g,a,0,null),e=so(e,a,i,null),f.return=t,e.return=t,f.sibling=e,t.child=f,t.child.memoizedState=ud(i),t.memoizedState=ld,e):cd(t,g));if(c=e.memoizedState,c!==null&&(k=c.dehydrated,k!==null))return vE(e,t,g,a,k,c,i);if(f){f=a.fallback,g=t.mode,c=e.child,k=c.sibling;var R={mode:"hidden",children:a.children};return(g&1)===0&&t.child!==c?(a=t.child,a.childLanes=0,a.pendingProps=R,t.deletions=null):(a=Ir(c,R),a.subtreeFlags=c.subtreeFlags&14680064),k!==null?f=Ir(k,f):(f=so(f,g,i,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,a=f,f=t.child,g=e.child.memoizedState,g=g===null?ud(i):{baseLanes:g.baseLanes|i,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=e.childLanes&~i,t.memoizedState=ld,a}return f=e.child,e=f.sibling,a=Ir(f,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=i),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a}function cd(e,t){return t=ol({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ha(e,t,i,a){return a!==null&&jc(a),Zo(t,e.child,null,i),e=cd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vE(e,t,i,a,c,f,g){if(i)return t.flags&256?(t.flags&=-257,a=od(Error(o(422))),Ha(e,t,g,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(f=a.fallback,c=t.mode,a=ol({mode:"visible",children:a.children},c,0,null),f=so(f,c,g,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,(t.mode&1)!==0&&Zo(t,e.child,null,g),t.child.memoizedState=ud(g),t.memoizedState=ld,f);if((t.mode&1)===0)return Ha(e,t,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var k=a.dgst;return a=k,f=Error(o(419)),a=od(f,a,void 0),Ha(e,t,g,a)}if(k=(g&e.childLanes)!==0,At||k){if(a=mt,a!==null){switch(g&-g){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(a.suspendedLanes|g))!==0?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,qn(e,c),ln(a,e,c,-1))}return Cd(),a=od(Error(o(421))),Ha(e,t,g,a)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=PE.bind(null,e),c._reactRetry=t,null):(e=f.treeContext,Vt=gr(c.nextSibling),$t=t,Qe=!0,rn=null,e!==null&&(Ht[Zt++]=Hn,Ht[Zt++]=Zn,Ht[Zt++]=Yr,Hn=e.id,Zn=e.overflow,Yr=t),t=cd(t,a.children),t.flags|=4096,t)}function yg(e,t,i){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Vc(e.return,t,i)}function dd(e,t,i,a,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:i,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=i,f.tailMode=c)}function xg(e,t,i){var a=t.pendingProps,c=a.revealOrder,f=a.tail;if(Ct(e,t,a.children,i),a=Ye.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yg(e,i,t);else if(e.tag===19)yg(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Ze(Ye,a),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(i=t.child,c=null;i!==null;)e=i.alternate,e!==null&&za(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=t.child,t.child=null):(c=i.sibling,i.sibling=null),dd(t,!1,c,i,f);break;case"backwards":for(i=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&za(e)===null){t.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}dd(t,!0,i,null,f);break;case"together":dd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Za(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),no|=t.lanes,(i&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=Ir(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Ir(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function gE(e,t,i){switch(t.tag){case 3:hg(t),Ho();break;case 5:Av(t);break;case 1:Tt(t.type)&&Ia(t);break;case 4:Wc(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,c=t.memoizedProps.value;Ze(Da,a._currentValue),a._currentValue=c;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Ze(Ye,Ye.current&1),t.flags|=128,null):(i&t.child.childLanes)!==0?gg(e,t,i):(Ze(Ye,Ye.current&1),e=Gn(e,t,i),e!==null?e.sibling:null);Ze(Ye,Ye.current&1);break;case 19:if(a=(i&t.childLanes)!==0,(e.flags&128)!==0){if(a)return xg(e,t,i);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ze(Ye,Ye.current),a)break;return null;case 22:case 23:return t.lanes=0,fg(e,t,i)}return Gn(e,t,i)}var wg,fd,Sg,_g;wg=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},fd=function(){},Sg=function(e,t,i,a){var c=e.memoizedProps;if(c!==a){e=t.stateNode,eo(_n.current);var f=null;switch(i){case"input":c=ft(e,c),a=ft(e,a),f=[];break;case"select":c=z({},c,{value:void 0}),a=z({},a,{value:void 0}),f=[];break;case"textarea":c=Wu(e,c),a=Wu(e,a),f=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Ea)}Zu(i,a);var g;i=null;for($ in c)if(!a.hasOwnProperty($)&&c.hasOwnProperty($)&&c[$]!=null)if($==="style"){var k=c[$];for(g in k)k.hasOwnProperty(g)&&(i||(i={}),i[g]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(l.hasOwnProperty($)?f||(f=[]):(f=f||[]).push($,null));for($ in a){var R=a[$];if(k=c?.[$],a.hasOwnProperty($)&&R!==k&&(R!=null||k!=null))if($==="style")if(k){for(g in k)!k.hasOwnProperty(g)||R&&R.hasOwnProperty(g)||(i||(i={}),i[g]="");for(g in R)R.hasOwnProperty(g)&&k[g]!==R[g]&&(i||(i={}),i[g]=R[g])}else i||(f||(f=[]),f.push($,i)),i=R;else $==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,k=k?k.__html:void 0,R!=null&&k!==R&&(f=f||[]).push($,R)):$==="children"?typeof R!="string"&&typeof R!="number"||(f=f||[]).push($,""+R):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(l.hasOwnProperty($)?(R!=null&&$==="onScroll"&&qe("scroll",e),f||k===R||(f=[])):(f=f||[]).push($,R))}i&&(f=f||[]).push("style",i);var $=f;(t.updateQueue=$)&&(t.flags|=4)}},_g=function(e,t,i,a){i!==a&&(t.flags|=4)};function rs(e,t){if(!Qe)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function St(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,a=0;if(t)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=i,t}function yE(e,t,i){var a=t.pendingProps;switch(Dc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(t),null;case 1:return Tt(t.type)&&Ra(),St(t),null;case 3:return a=t.stateNode,Go(),Ke(Ot),Ke(xt),qc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ta(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rn!==null&&(kd(rn),rn=null))),fd(e,t),St(t),null;case 5:Hc(t);var c=eo(Xi.current);if(i=t.type,e!==null&&t.stateNode!=null)Sg(e,t,i,a,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(o(166));return St(t),null}if(e=eo(_n.current),Ta(t)){a=t.stateNode,i=t.type;var f=t.memoizedProps;switch(a[Sn]=t,a[qi]=f,e=(t.mode&1)!==0,i){case"dialog":qe("cancel",a),qe("close",a);break;case"iframe":case"object":case"embed":qe("load",a);break;case"video":case"audio":for(c=0;c<Wi.length;c++)qe(Wi[c],a);break;case"source":qe("error",a);break;case"img":case"image":case"link":qe("error",a),qe("load",a);break;case"details":qe("toggle",a);break;case"input":Et(a,f),qe("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!f.multiple},qe("invalid",a);break;case"textarea":ih(a,f),qe("invalid",a)}Zu(i,f),c=null;for(var g in f)if(f.hasOwnProperty(g)){var k=f[g];g==="children"?typeof k=="string"?a.textContent!==k&&(f.suppressHydrationWarning!==!0&&ba(a.textContent,k,e),c=["children",k]):typeof k=="number"&&a.textContent!==""+k&&(f.suppressHydrationWarning!==!0&&ba(a.textContent,k,e),c=["children",""+k]):l.hasOwnProperty(g)&&k!=null&&g==="onScroll"&&qe("scroll",a)}switch(i){case"input":Ne(a),Po(a,f,!0);break;case"textarea":Ne(a),ah(a);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(a.onclick=Ea)}a=c,t.updateQueue=a,a!==null&&(t.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=lh(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=g.createElement(i,{is:a.is}):(e=g.createElement(i),i==="select"&&(g=e,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):e=g.createElementNS(e,i),e[Sn]=t,e[qi]=a,wg(e,t,!1,!1),t.stateNode=e;e:{switch(g=qu(i,a),i){case"dialog":qe("cancel",e),qe("close",e),c=a;break;case"iframe":case"object":case"embed":qe("load",e),c=a;break;case"video":case"audio":for(c=0;c<Wi.length;c++)qe(Wi[c],e);c=a;break;case"source":qe("error",e),c=a;break;case"img":case"image":case"link":qe("error",e),qe("load",e),c=a;break;case"details":qe("toggle",e),c=a;break;case"input":Et(e,a),c=ft(e,a),qe("invalid",e);break;case"option":c=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},c=z({},a,{value:void 0}),qe("invalid",e);break;case"textarea":ih(e,a),c=Wu(e,a),qe("invalid",e);break;default:c=a}Zu(i,c),k=c;for(f in k)if(k.hasOwnProperty(f)){var R=k[f];f==="style"?dh(e,R):f==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&uh(e,R)):f==="children"?typeof R=="string"?(i!=="textarea"||R!=="")&&Ei(e,R):typeof R=="number"&&Ei(e,""+R):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(l.hasOwnProperty(f)?R!=null&&f==="onScroll"&&qe("scroll",e):R!=null&&T(e,f,R,g))}switch(i){case"input":Ne(e),Po(e,a,!1);break;case"textarea":Ne(e),ah(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Z(a.value));break;case"select":e.multiple=!!a.multiple,f=a.value,f!=null?No(e,!!a.multiple,f,!1):a.defaultValue!=null&&No(e,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Ea)}switch(i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return St(t),null;case 6:if(e&&t.stateNode!=null)_g(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(i=eo(Xi.current),eo(_n.current),Ta(t)){if(a=t.stateNode,i=t.memoizedProps,a[Sn]=t,(f=a.nodeValue!==i)&&(e=$t,e!==null))switch(e.tag){case 3:ba(a.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ba(a.nodeValue,i,(e.mode&1)!==0)}f&&(t.flags|=4)}else a=(i.nodeType===9?i:i.ownerDocument).createTextNode(a),a[Sn]=t,t.stateNode=a}return St(t),null;case 13:if(Ke(Ye),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Qe&&Vt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ev(),Ho(),t.flags|=98560,f=!1;else if(f=Ta(t),a!==null&&a.dehydrated!==null){if(e===null){if(!f)throw Error(o(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[Sn]=t}else Ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;St(t),f=!1}else rn!==null&&(kd(rn),rn=null),f=!0;if(!f)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=i,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ye.current&1)!==0?lt===0&&(lt=3):Cd())),t.updateQueue!==null&&(t.flags|=4),St(t),null);case 4:return Go(),fd(e,t),e===null&&Hi(t.stateNode.containerInfo),St(t),null;case 10:return $c(t.type._context),St(t),null;case 17:return Tt(t.type)&&Ra(),St(t),null;case 19:if(Ke(Ye),f=t.memoizedState,f===null)return St(t),null;if(a=(t.flags&128)!==0,g=f.rendering,g===null)if(a)rs(f,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(g=za(e),g!==null){for(t.flags|=128,rs(f,!1),a=g.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=i,i=t.child;i!==null;)f=i,e=a,f.flags&=14680066,g=f.alternate,g===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,e=g.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return Ze(Ye,Ye.current&1|2),t.child}e=e.sibling}f.tail!==null&&tt()>Jo&&(t.flags|=128,a=!0,rs(f,!1),t.lanes=4194304)}else{if(!a)if(e=za(g),e!==null){if(t.flags|=128,a=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),rs(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Qe)return St(t),null}else 2*tt()-f.renderingStartTime>Jo&&i!==1073741824&&(t.flags|=128,a=!0,rs(f,!1),t.lanes=4194304);f.isBackwards?(g.sibling=t.child,t.child=g):(i=f.last,i!==null?i.sibling=g:t.child=g,f.last=g)}return f.tail!==null?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=tt(),t.sibling=null,i=Ye.current,Ze(Ye,a?i&1|2:i&1),t):(St(t),null);case 22:case 23:return Ed(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(Ut&1073741824)!==0&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function xE(e,t){switch(Dc(t),t.tag){case 1:return Tt(t.type)&&Ra(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),Ke(Ot),Ke(xt),qc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Hc(t),null;case 13:if(Ke(Ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(Ye),null;case 4:return Go(),null;case 10:return $c(t.type._context),null;case 22:case 23:return Ed(),null;case 24:return null;default:return null}}var qa=!1,_t=!1,wE=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Yo(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){et(e,t,a)}else i.current=null}function pd(e,t,i){try{i()}catch(a){et(e,t,a)}}var kg=!1;function SE(e,t){if(Ec=pa,e=tv(),gc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var c=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var g=0,k=-1,R=-1,$=0,G=0,Y=e,q=null;t:for(;;){for(var le;Y!==i||c!==0&&Y.nodeType!==3||(k=g+c),Y!==f||a!==0&&Y.nodeType!==3||(R=g+a),Y.nodeType===3&&(g+=Y.nodeValue.length),(le=Y.firstChild)!==null;)q=Y,Y=le;for(;;){if(Y===e)break t;if(q===i&&++$===c&&(k=g),q===f&&++G===a&&(R=g),(le=Y.nextSibling)!==null)break;Y=q,q=Y.parentNode}Y=le}i=k===-1||R===-1?null:{start:k,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(Cc={focusedElem:e,selectionRange:i},pa=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){t=pe;try{var ge=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ge!==null){var ye=ge.memoizedProps,nt=ge.memoizedState,M=t.stateNode,I=M.getSnapshotBeforeUpdate(t.elementType===t.type?ye:on(t.type,ye),nt);M.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var j=t.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ee){et(t,t.return,ee)}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}return ge=kg,kg=!1,ge}function os(e,t,i){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&e)===e){var f=c.destroy;c.destroy=void 0,f!==void 0&&pd(t,i,f)}c=c.next}while(c!==a)}}function Ka(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==t)}}function md(e){var t=e.ref;if(t!==null){var i=e.stateNode;e.tag,e=i,typeof t=="function"?t(e):t.current=e}}function bg(e){var t=e.alternate;t!==null&&(e.alternate=null,bg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Sn],delete t[qi],delete t[Nc],delete t[rE],delete t[oE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Eg(e){return e.tag===5||e.tag===3||e.tag===4}function Cg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hd(e,t,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Ea));else if(a!==4&&(e=e.child,e!==null))for(hd(e,t,i),e=e.sibling;e!==null;)hd(e,t,i),e=e.sibling}function vd(e,t,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(vd(e,t,i),e=e.sibling;e!==null;)vd(e,t,i),e=e.sibling}var gt=null,sn=!1;function kr(e,t,i){for(i=i.child;i!==null;)Rg(e,t,i),i=i.sibling}function Rg(e,t,i){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(aa,i)}catch{}switch(i.tag){case 5:_t||Yo(i,t);case 6:var a=gt,c=sn;gt=null,kr(e,t,i),gt=a,sn=c,gt!==null&&(sn?(e=gt,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):gt.removeChild(i.stateNode));break;case 18:gt!==null&&(sn?(e=gt,i=i.stateNode,e.nodeType===8?Pc(e.parentNode,i):e.nodeType===1&&Pc(e,i),Li(e)):Pc(gt,i.stateNode));break;case 4:a=gt,c=sn,gt=i.stateNode.containerInfo,sn=!0,kr(e,t,i),gt=a,sn=c;break;case 0:case 11:case 14:case 15:if(!_t&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var f=c,g=f.destroy;f=f.tag,g!==void 0&&((f&2)!==0||(f&4)!==0)&&pd(i,t,g),c=c.next}while(c!==a)}kr(e,t,i);break;case 1:if(!_t&&(Yo(i,t),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(k){et(i,t,k)}kr(e,t,i);break;case 21:kr(e,t,i);break;case 22:i.mode&1?(_t=(a=_t)||i.memoizedState!==null,kr(e,t,i),_t=a):kr(e,t,i);break;default:kr(e,t,i)}}function Ig(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new wE),t.forEach(function(a){var c=NE.bind(null,e,a);i.has(a)||(i.add(a),a.then(c,c))})}}function an(e,t){var i=t.deletions;if(i!==null)for(var a=0;a<i.length;a++){var c=i[a];try{var f=e,g=t,k=g;e:for(;k!==null;){switch(k.tag){case 5:gt=k.stateNode,sn=!1;break e;case 3:gt=k.stateNode.containerInfo,sn=!0;break e;case 4:gt=k.stateNode.containerInfo,sn=!0;break e}k=k.return}if(gt===null)throw Error(o(160));Rg(f,g,c),gt=null,sn=!1;var R=c.alternate;R!==null&&(R.return=null),c.return=null}catch($){et(c,t,$)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pg(t,e),t=t.sibling}function Pg(e,t){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(an(t,e),bn(e),a&4){try{os(3,e,e.return),Ka(3,e)}catch(ye){et(e,e.return,ye)}try{os(5,e,e.return)}catch(ye){et(e,e.return,ye)}}break;case 1:an(t,e),bn(e),a&512&&i!==null&&Yo(i,i.return);break;case 5:if(an(t,e),bn(e),a&512&&i!==null&&Yo(i,i.return),e.flags&32){var c=e.stateNode;try{Ei(c,"")}catch(ye){et(e,e.return,ye)}}if(a&4&&(c=e.stateNode,c!=null)){var f=e.memoizedProps,g=i!==null?i.memoizedProps:f,k=e.type,R=e.updateQueue;if(e.updateQueue=null,R!==null)try{k==="input"&&f.type==="radio"&&f.name!=null&&Io(c,f),qu(k,g);var $=qu(k,f);for(g=0;g<R.length;g+=2){var G=R[g],Y=R[g+1];G==="style"?dh(c,Y):G==="dangerouslySetInnerHTML"?uh(c,Y):G==="children"?Ei(c,Y):T(c,G,Y,$)}switch(k){case"input":qr(c,f);break;case"textarea":sh(c,f);break;case"select":var q=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var le=f.value;le!=null?No(c,!!f.multiple,le,!1):q!==!!f.multiple&&(f.defaultValue!=null?No(c,!!f.multiple,f.defaultValue,!0):No(c,!!f.multiple,f.multiple?[]:"",!1))}c[qi]=f}catch(ye){et(e,e.return,ye)}}break;case 6:if(an(t,e),bn(e),a&4){if(e.stateNode===null)throw Error(o(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(ye){et(e,e.return,ye)}}break;case 3:if(an(t,e),bn(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Li(t.containerInfo)}catch(ye){et(e,e.return,ye)}break;case 4:an(t,e),bn(e);break;case 13:an(t,e),bn(e),c=e.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(xd=tt())),a&4&&Ig(e);break;case 22:if(G=i!==null&&i.memoizedState!==null,e.mode&1?(_t=($=_t)||G,an(t,e),_t=$):an(t,e),bn(e),a&8192){if($=e.memoizedState!==null,(e.stateNode.isHidden=$)&&!G&&(e.mode&1)!==0)for(pe=e,G=e.child;G!==null;){for(Y=pe=G;pe!==null;){switch(q=pe,le=q.child,q.tag){case 0:case 11:case 14:case 15:os(4,q,q.return);break;case 1:Yo(q,q.return);var ge=q.stateNode;if(typeof ge.componentWillUnmount=="function"){a=q,i=q.return;try{t=a,ge.props=t.memoizedProps,ge.state=t.memoizedState,ge.componentWillUnmount()}catch(ye){et(a,i,ye)}}break;case 5:Yo(q,q.return);break;case 22:if(q.memoizedState!==null){Tg(Y);continue}}le!==null?(le.return=q,pe=le):Tg(Y)}G=G.sibling}e:for(G=null,Y=e;;){if(Y.tag===5){if(G===null){G=Y;try{c=Y.stateNode,$?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(k=Y.stateNode,R=Y.memoizedProps.style,g=R!=null&&R.hasOwnProperty("display")?R.display:null,k.style.display=ch("display",g))}catch(ye){et(e,e.return,ye)}}}else if(Y.tag===6){if(G===null)try{Y.stateNode.nodeValue=$?"":Y.memoizedProps}catch(ye){et(e,e.return,ye)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===e)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===e)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===e)break e;G===Y&&(G=null),Y=Y.return}G===Y&&(G=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:an(t,e),bn(e),a&4&&Ig(e);break;case 21:break;default:an(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(Eg(i)){var a=i;break e}i=i.return}throw Error(o(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(Ei(c,""),a.flags&=-33);var f=Cg(e);vd(e,f,c);break;case 3:case 4:var g=a.stateNode.containerInfo,k=Cg(e);hd(e,k,g);break;default:throw Error(o(161))}}catch(R){et(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _E(e,t,i){pe=e,Ng(e)}function Ng(e,t,i){for(var a=(e.mode&1)!==0;pe!==null;){var c=pe,f=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||qa;if(!g){var k=c.alternate,R=k!==null&&k.memoizedState!==null||_t;k=qa;var $=_t;if(qa=g,(_t=R)&&!$)for(pe=c;pe!==null;)g=pe,R=g.child,g.tag===22&&g.memoizedState!==null?Ag(c):R!==null?(R.return=g,pe=R):Ag(c);for(;f!==null;)pe=f,Ng(f),f=f.sibling;pe=c,qa=k,_t=$}Og(e)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,pe=f):Og(e)}}function Og(e){for(;pe!==null;){var t=pe;if((t.flags&8772)!==0){var i=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:_t||Ka(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!_t)if(i===null)a.componentDidMount();else{var c=t.elementType===t.type?i.memoizedProps:on(t.type,i.memoizedProps);a.componentDidUpdate(c,i.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var f=t.updateQueue;f!==null&&Tv(t,f,a);break;case 3:var g=t.updateQueue;if(g!==null){if(i=null,t.child!==null)switch(t.child.tag){case 5:i=t.child.stateNode;break;case 1:i=t.child.stateNode}Tv(t,g,i)}break;case 5:var k=t.stateNode;if(i===null&&t.flags&4){i=k;var R=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&i.focus();break;case"img":R.src&&(i.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var $=t.alternate;if($!==null){var G=$.memoizedState;if(G!==null){var Y=G.dehydrated;Y!==null&&Li(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}_t||t.flags&512&&md(t)}catch(q){et(t,t.return,q)}}if(t===e){pe=null;break}if(i=t.sibling,i!==null){i.return=t.return,pe=i;break}pe=t.return}}function Tg(e){for(;pe!==null;){var t=pe;if(t===e){pe=null;break}var i=t.sibling;if(i!==null){i.return=t.return,pe=i;break}pe=t.return}}function Ag(e){for(;pe!==null;){var t=pe;try{switch(t.tag){case 0:case 11:case 15:var i=t.return;try{Ka(4,t)}catch(R){et(t,i,R)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var c=t.return;try{a.componentDidMount()}catch(R){et(t,c,R)}}var f=t.return;try{md(t)}catch(R){et(t,f,R)}break;case 5:var g=t.return;try{md(t)}catch(R){et(t,g,R)}}}catch(R){et(t,t.return,R)}if(t===e){pe=null;break}var k=t.sibling;if(k!==null){k.return=t.return,pe=k;break}pe=t.return}}var kE=Math.ceil,Ga=N.ReactCurrentDispatcher,gd=N.ReactCurrentOwner,Gt=N.ReactCurrentBatchConfig,Fe=0,mt=null,it=null,yt=0,Ut=0,Xo=yr(0),lt=0,is=null,no=0,Qa=0,yd=0,ss=null,Dt=null,xd=0,Jo=1/0,Qn=null,Ya=!1,wd=null,br=null,Xa=!1,Er=null,Ja=0,as=0,Sd=null,el=-1,tl=0;function Rt(){return(Fe&6)!==0?tt():el!==-1?el:el=tt()}function Cr(e){return(e.mode&1)===0?1:(Fe&2)!==0&&yt!==0?yt&-yt:sE.transition!==null?(tl===0&&(tl=Ch()),tl):(e=We,e!==0||(e=window.event,e=e===void 0?16:Mh(e.type)),e)}function ln(e,t,i,a){if(50<as)throw as=0,Sd=null,Error(o(185));Oi(e,i,a),((Fe&2)===0||e!==mt)&&(e===mt&&((Fe&2)===0&&(Qa|=i),lt===4&&Rr(e,yt)),Mt(e,a),i===1&&Fe===0&&(t.mode&1)===0&&(Jo=tt()+500,Pa&&wr()))}function Mt(e,t){var i=e.callbackNode;sb(e,t);var a=ca(e,e===mt?yt:0);if(a===0)i!==null&&kh(i),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(i!=null&&kh(i),t===1)e.tag===0?iE(Mg.bind(null,e)):wv(Mg.bind(null,e)),tE(function(){(Fe&6)===0&&wr()}),i=null;else{switch(Rh(a)){case 1:i=ec;break;case 4:i=bh;break;case 16:i=sa;break;case 536870912:i=Eh;break;default:i=sa}i=Bg(i,Dg.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function Dg(e,t){if(el=-1,tl=0,(Fe&6)!==0)throw Error(o(327));var i=e.callbackNode;if(ei()&&e.callbackNode!==i)return null;var a=ca(e,e===mt?yt:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=nl(e,a);else{t=a;var c=Fe;Fe|=2;var f=jg();(mt!==e||yt!==t)&&(Qn=null,Jo=tt()+500,oo(e,t));do try{CE();break}catch(k){Lg(e,k)}while(!0);Fc(),Ga.current=f,Fe=c,it!==null?t=0:(mt=null,yt=0,t=lt)}if(t!==0){if(t===2&&(c=tc(e),c!==0&&(a=c,t=_d(e,c))),t===1)throw i=is,oo(e,0),Rr(e,a),Mt(e,tt()),i;if(t===6)Rr(e,a);else{if(c=e.current.alternate,(a&30)===0&&!bE(c)&&(t=nl(e,a),t===2&&(f=tc(e),f!==0&&(a=f,t=_d(e,f))),t===1))throw i=is,oo(e,0),Rr(e,a),Mt(e,tt()),i;switch(e.finishedWork=c,e.finishedLanes=a,t){case 0:case 1:throw Error(o(345));case 2:io(e,Dt,Qn);break;case 3:if(Rr(e,a),(a&130023424)===a&&(t=xd+500-tt(),10<t)){if(ca(e,0)!==0)break;if(c=e.suspendedLanes,(c&a)!==a){Rt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Ic(io.bind(null,e,Dt,Qn),t);break}io(e,Dt,Qn);break;case 4:if(Rr(e,a),(a&4194240)===a)break;for(t=e.eventTimes,c=-1;0<a;){var g=31-tn(a);f=1<<g,g=t[g],g>c&&(c=g),a&=~f}if(a=c,a=tt()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*kE(a/1960))-a,10<a){e.timeoutHandle=Ic(io.bind(null,e,Dt,Qn),a);break}io(e,Dt,Qn);break;case 5:io(e,Dt,Qn);break;default:throw Error(o(329))}}}return Mt(e,tt()),e.callbackNode===i?Dg.bind(null,e):null}function _d(e,t){var i=ss;return e.current.memoizedState.isDehydrated&&(oo(e,t).flags|=256),e=nl(e,t),e!==2&&(t=Dt,Dt=i,t!==null&&kd(t)),e}function kd(e){Dt===null?Dt=e:Dt.push.apply(Dt,e)}function bE(e){for(var t=e;;){if(t.flags&16384){var i=t.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var a=0;a<i.length;a++){var c=i[a],f=c.getSnapshot;c=c.value;try{if(!nn(f(),c))return!1}catch{return!1}}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rr(e,t){for(t&=~yd,t&=~Qa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var i=31-tn(t),a=1<<i;e[i]=-1,t&=~a}}function Mg(e){if((Fe&6)!==0)throw Error(o(327));ei();var t=ca(e,0);if((t&1)===0)return Mt(e,tt()),null;var i=nl(e,t);if(e.tag!==0&&i===2){var a=tc(e);a!==0&&(t=a,i=_d(e,a))}if(i===1)throw i=is,oo(e,0),Rr(e,t),Mt(e,tt()),i;if(i===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,io(e,Dt,Qn),Mt(e,tt()),null}function bd(e,t){var i=Fe;Fe|=1;try{return e(t)}finally{Fe=i,Fe===0&&(Jo=tt()+500,Pa&&wr())}}function ro(e){Er!==null&&Er.tag===0&&(Fe&6)===0&&ei();var t=Fe;Fe|=1;var i=Gt.transition,a=We;try{if(Gt.transition=null,We=1,e)return e()}finally{We=a,Gt.transition=i,Fe=t,(Fe&6)===0&&wr()}}function Ed(){Ut=Xo.current,Ke(Xo)}function oo(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,eE(i)),it!==null)for(i=it.return;i!==null;){var a=i;switch(Dc(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Ra();break;case 3:Go(),Ke(Ot),Ke(xt),qc();break;case 5:Hc(a);break;case 4:Go();break;case 13:Ke(Ye);break;case 19:Ke(Ye);break;case 10:$c(a.type._context);break;case 22:case 23:Ed()}i=i.return}if(mt=e,it=e=Ir(e.current,null),yt=Ut=t,lt=0,is=null,yd=Qa=no=0,Dt=ss=null,Jr!==null){for(t=0;t<Jr.length;t++)if(i=Jr[t],a=i.interleaved,a!==null){i.interleaved=null;var c=a.next,f=i.pending;if(f!==null){var g=f.next;f.next=c,a.next=g}i.pending=a}Jr=null}return e}function Lg(e,t){do{var i=it;try{if(Fc(),Fa.current=Ba,$a){for(var a=Xe.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}$a=!1}if(to=0,pt=at=Xe=null,Ji=!1,es=0,gd.current=null,i===null||i.return===null){lt=1,is=t,it=null;break}e:{var f=e,g=i.return,k=i,R=t;if(t=yt,k.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=R,G=k,Y=G.tag;if((G.mode&1)===0&&(Y===0||Y===11||Y===15)){var q=G.alternate;q?(G.updateQueue=q.updateQueue,G.memoizedState=q.memoizedState,G.lanes=q.lanes):(G.updateQueue=null,G.memoizedState=null)}var le=ag(g);if(le!==null){le.flags&=-257,lg(le,g,k,f,t),le.mode&1&&sg(f,$,t),t=le,R=$;var ge=t.updateQueue;if(ge===null){var ye=new Set;ye.add(R),t.updateQueue=ye}else ge.add(R);break e}else{if((t&1)===0){sg(f,$,t),Cd();break e}R=Error(o(426))}}else if(Qe&&k.mode&1){var nt=ag(g);if(nt!==null){(nt.flags&65536)===0&&(nt.flags|=256),lg(nt,g,k,f,t),jc(Qo(R,k));break e}}f=R=Qo(R,k),lt!==4&&(lt=2),ss===null?ss=[f]:ss.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,t&=-t,f.lanes|=t;var M=og(f,R,t);Ov(f,M);break e;case 1:k=R;var I=f.type,j=f.stateNode;if((f.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(br===null||!br.has(j)))){f.flags|=65536,t&=-t,f.lanes|=t;var ee=ig(f,k,t);Ov(f,ee);break e}}f=f.return}while(f!==null)}Fg(i)}catch(we){t=we,it===i&&i!==null&&(it=i=i.return);continue}break}while(!0)}function jg(){var e=Ga.current;return Ga.current=Ba,e===null?Ba:e}function Cd(){(lt===0||lt===3||lt===2)&&(lt=4),mt===null||(no&268435455)===0&&(Qa&268435455)===0||Rr(mt,yt)}function nl(e,t){var i=Fe;Fe|=2;var a=jg();(mt!==e||yt!==t)&&(Qn=null,oo(e,t));do try{EE();break}catch(c){Lg(e,c)}while(!0);if(Fc(),Fe=i,Ga.current=a,it!==null)throw Error(o(261));return mt=null,yt=0,lt}function EE(){for(;it!==null;)zg(it)}function CE(){for(;it!==null&&!Yk();)zg(it)}function zg(e){var t=Ug(e.alternate,e,Ut);e.memoizedProps=e.pendingProps,t===null?Fg(e):it=t,gd.current=null}function Fg(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&32768)===0){if(i=yE(i,t,Ut),i!==null){it=i;return}}else{if(i=xE(i,t),i!==null){i.flags&=32767,it=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lt=6,it=null;return}}if(t=t.sibling,t!==null){it=t;return}it=t=e}while(t!==null);lt===0&&(lt=5)}function io(e,t,i){var a=We,c=Gt.transition;try{Gt.transition=null,We=1,RE(e,t,i,a)}finally{Gt.transition=c,We=a}return null}function RE(e,t,i,a){do ei();while(Er!==null);if((Fe&6)!==0)throw Error(o(327));i=e.finishedWork;var c=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var f=i.lanes|i.childLanes;if(ab(e,f),e===mt&&(it=mt=null,yt=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||Xa||(Xa=!0,Bg(sa,function(){return ei(),null})),f=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||f){f=Gt.transition,Gt.transition=null;var g=We;We=1;var k=Fe;Fe|=4,gd.current=null,SE(e,i),Pg(i,e),qb(Cc),pa=!!Ec,Cc=Ec=null,e.current=i,_E(i),Xk(),Fe=k,We=g,Gt.transition=f}else e.current=i;if(Xa&&(Xa=!1,Er=e,Ja=c),f=e.pendingLanes,f===0&&(br=null),tb(i.stateNode),Mt(e,tt()),t!==null)for(a=e.onRecoverableError,i=0;i<t.length;i++)c=t[i],a(c.value,{componentStack:c.stack,digest:c.digest});if(Ya)throw Ya=!1,e=wd,wd=null,e;return(Ja&1)!==0&&e.tag!==0&&ei(),f=e.pendingLanes,(f&1)!==0?e===Sd?as++:(as=0,Sd=e):as=0,wr(),null}function ei(){if(Er!==null){var e=Rh(Ja),t=Gt.transition,i=We;try{if(Gt.transition=null,We=16>e?16:e,Er===null)var a=!1;else{if(e=Er,Er=null,Ja=0,(Fe&6)!==0)throw Error(o(331));var c=Fe;for(Fe|=4,pe=e.current;pe!==null;){var f=pe,g=f.child;if((pe.flags&16)!==0){var k=f.deletions;if(k!==null){for(var R=0;R<k.length;R++){var $=k[R];for(pe=$;pe!==null;){var G=pe;switch(G.tag){case 0:case 11:case 15:os(8,G,f)}var Y=G.child;if(Y!==null)Y.return=G,pe=Y;else for(;pe!==null;){G=pe;var q=G.sibling,le=G.return;if(bg(G),G===$){pe=null;break}if(q!==null){q.return=le,pe=q;break}pe=le}}}var ge=f.alternate;if(ge!==null){var ye=ge.child;if(ye!==null){ge.child=null;do{var nt=ye.sibling;ye.sibling=null,ye=nt}while(ye!==null)}}pe=f}}if((f.subtreeFlags&2064)!==0&&g!==null)g.return=f,pe=g;else e:for(;pe!==null;){if(f=pe,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:os(9,f,f.return)}var M=f.sibling;if(M!==null){M.return=f.return,pe=M;break e}pe=f.return}}var I=e.current;for(pe=I;pe!==null;){g=pe;var j=g.child;if((g.subtreeFlags&2064)!==0&&j!==null)j.return=g,pe=j;else e:for(g=I;pe!==null;){if(k=pe,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:Ka(9,k)}}catch(we){et(k,k.return,we)}if(k===g){pe=null;break e}var ee=k.sibling;if(ee!==null){ee.return=k.return,pe=ee;break e}pe=k.return}}if(Fe=c,wr(),wn&&typeof wn.onPostCommitFiberRoot=="function")try{wn.onPostCommitFiberRoot(aa,e)}catch{}a=!0}return a}finally{We=i,Gt.transition=t}}return!1}function $g(e,t,i){t=Qo(i,t),t=og(e,t,1),e=_r(e,t,1),t=Rt(),e!==null&&(Oi(e,1,t),Mt(e,t))}function et(e,t,i){if(e.tag===3)$g(e,e,i);else for(;t!==null;){if(t.tag===3){$g(t,e,i);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(br===null||!br.has(a))){e=Qo(i,e),e=ig(t,e,1),t=_r(t,e,1),e=Rt(),t!==null&&(Oi(t,1,e),Mt(t,e));break}}t=t.return}}function IE(e,t,i){var a=e.pingCache;a!==null&&a.delete(t),t=Rt(),e.pingedLanes|=e.suspendedLanes&i,mt===e&&(yt&i)===i&&(lt===4||lt===3&&(yt&130023424)===yt&&500>tt()-xd?oo(e,0):yd|=i),Mt(e,t)}function Vg(e,t){t===0&&((e.mode&1)===0?t=1:(t=ua,ua<<=1,(ua&130023424)===0&&(ua=4194304)));var i=Rt();e=qn(e,t),e!==null&&(Oi(e,t,i),Mt(e,i))}function PE(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Vg(e,i)}function NE(e,t){var i=0;switch(e.tag){case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(o(314))}a!==null&&a.delete(t),Vg(e,i)}var Ug;Ug=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ot.current)At=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return At=!1,gE(e,t,i);At=(e.flags&131072)!==0}else At=!1,Qe&&(t.flags&1048576)!==0&&Sv(t,Oa,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Za(e,t),e=t.pendingProps;var c=Uo(t,xt.current);Ko(t,i),c=Qc(null,t,a,e,c,i);var f=Yc();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(a)?(f=!0,Ia(t)):f=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Bc(t),c.updater=Wa,t.stateNode=c,c._reactInternals=t,rd(t,a,e,i),t=ad(null,t,a,!0,f,i)):(t.tag=0,Qe&&f&&Ac(t),Ct(null,t,c,i),t=t.child),t;case 16:a=t.elementType;e:{switch(Za(e,t),e=t.pendingProps,c=a._init,a=c(a._payload),t.type=a,c=t.tag=TE(a),e=on(a,e),c){case 0:t=sd(null,t,a,e,i);break e;case 1:t=mg(null,t,a,e,i);break e;case 11:t=ug(null,t,a,e,i);break e;case 14:t=cg(null,t,a,on(a.type,e),i);break e}throw Error(o(306,a,""))}return t;case 0:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:on(a,c),sd(e,t,a,c,i);case 1:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:on(a,c),mg(e,t,a,c,i);case 3:e:{if(hg(t),e===null)throw Error(o(387));a=t.pendingProps,f=t.memoizedState,c=f.element,Nv(e,t),ja(t,a,null,i);var g=t.memoizedState;if(a=g.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){c=Qo(Error(o(423)),t),t=vg(e,t,a,i,c);break e}else if(a!==c){c=Qo(Error(o(424)),t),t=vg(e,t,a,i,c);break e}else for(Vt=gr(t.stateNode.containerInfo.firstChild),$t=t,Qe=!0,rn=null,i=Iv(t,null,a,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ho(),a===c){t=Gn(e,t,i);break e}Ct(e,t,a,i)}t=t.child}return t;case 5:return Av(t),e===null&&Lc(t),a=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,g=c.children,Rc(a,c)?g=null:f!==null&&Rc(a,f)&&(t.flags|=32),pg(e,t),Ct(e,t,g,i),t.child;case 6:return e===null&&Lc(t),null;case 13:return gg(e,t,i);case 4:return Wc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Zo(t,null,a,i):Ct(e,t,a,i),t.child;case 11:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:on(a,c),ug(e,t,a,c,i);case 7:return Ct(e,t,t.pendingProps,i),t.child;case 8:return Ct(e,t,t.pendingProps.children,i),t.child;case 12:return Ct(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(a=t.type._context,c=t.pendingProps,f=t.memoizedProps,g=c.value,Ze(Da,a._currentValue),a._currentValue=g,f!==null)if(nn(f.value,g)){if(f.children===c.children&&!Ot.current){t=Gn(e,t,i);break e}}else for(f=t.child,f!==null&&(f.return=t);f!==null;){var k=f.dependencies;if(k!==null){g=f.child;for(var R=k.firstContext;R!==null;){if(R.context===a){if(f.tag===1){R=Kn(-1,i&-i),R.tag=2;var $=f.updateQueue;if($!==null){$=$.shared;var G=$.pending;G===null?R.next=R:(R.next=G.next,G.next=R),$.pending=R}}f.lanes|=i,R=f.alternate,R!==null&&(R.lanes|=i),Vc(f.return,i,t),k.lanes|=i;break}R=R.next}}else if(f.tag===10)g=f.type===t.type?null:f.child;else if(f.tag===18){if(g=f.return,g===null)throw Error(o(341));g.lanes|=i,k=g.alternate,k!==null&&(k.lanes|=i),Vc(g,i,t),g=f.sibling}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===t){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}Ct(e,t,c.children,i),t=t.child}return t;case 9:return c=t.type,a=t.pendingProps.children,Ko(t,i),c=qt(c),a=a(c),t.flags|=1,Ct(e,t,a,i),t.child;case 14:return a=t.type,c=on(a,t.pendingProps),c=on(a.type,c),cg(e,t,a,c,i);case 15:return dg(e,t,t.type,t.pendingProps,i);case 17:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:on(a,c),Za(e,t),t.tag=1,Tt(a)?(e=!0,Ia(t)):e=!1,Ko(t,i),ng(t,a,c),rd(t,a,c,i),ad(null,t,a,!0,e,i);case 19:return xg(e,t,i);case 22:return fg(e,t,i)}throw Error(o(156,t.tag))};function Bg(e,t){return _h(e,t)}function OE(e,t,i,a){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,t,i,a){return new OE(e,t,i,a)}function Rd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TE(e){if(typeof e=="function")return Rd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oe)return 11;if(e===_e)return 14}return 2}function Ir(e,t){var i=e.alternate;return i===null?(i=Qt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function rl(e,t,i,a,c,f){var g=2;if(a=e,typeof e=="function")Rd(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case W:return so(i.children,c,f,t);case F:g=8,c|=8;break;case re:return e=Qt(12,i,t,c|2),e.elementType=re,e.lanes=f,e;case he:return e=Qt(13,i,t,c),e.elementType=he,e.lanes=f,e;case ve:return e=Qt(19,i,t,c),e.elementType=ve,e.lanes=f,e;case se:return ol(i,c,f,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case me:g=10;break e;case ke:g=9;break e;case oe:g=11;break e;case _e:g=14;break e;case ue:g=16,a=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Qt(g,i,t,c),t.elementType=e,t.type=a,t.lanes=f,t}function so(e,t,i,a){return e=Qt(7,e,a,t),e.lanes=i,e}function ol(e,t,i,a){return e=Qt(22,e,a,t),e.elementType=se,e.lanes=i,e.stateNode={isHidden:!1},e}function Id(e,t,i){return e=Qt(6,e,null,t),e.lanes=i,e}function Pd(e,t,i){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AE(e,t,i,a,c){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nc(0),this.expirationTimes=nc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nc(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Nd(e,t,i,a,c,f,g,k,R){return e=new AE(e,t,i,k,R),t===1?(t=1,f===!0&&(t|=8)):t=0,f=Qt(3,null,null,t),e.current=f,f.stateNode=e,f.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bc(f),e}function DE(e,t,i){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:a==null?null:""+a,children:e,containerInfo:t,implementation:i}}function Wg(e){if(!e)return xr;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var i=e.type;if(Tt(i))return yv(e,i,t)}return t}function Hg(e,t,i,a,c,f,g,k,R){return e=Nd(i,a,!0,e,c,f,g,k,R),e.context=Wg(null),i=e.current,a=Rt(),c=Cr(i),f=Kn(a,c),f.callback=t??null,_r(i,f,c),e.current.lanes=c,Oi(e,c,a),Mt(e,a),e}function il(e,t,i,a){var c=t.current,f=Rt(),g=Cr(c);return i=Wg(i),t.context===null?t.context=i:t.pendingContext=i,t=Kn(f,g),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=_r(c,t,g),e!==null&&(ln(e,c,g,f),La(e,c,g)),g}function sl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Zg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Od(e,t){Zg(e,t),(e=e.alternate)&&Zg(e,t)}function ME(){return null}var qg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Td(e){this._internalRoot=e}al.prototype.render=Td.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));il(e,t,null,null)},al.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ro(function(){il(null,e,null,null)}),t[Bn]=null}};function al(e){this._internalRoot=e}al.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nh();e={blockedOn:null,target:e,priority:t};for(var i=0;i<mr.length&&t!==0&&t<mr[i].priority;i++);mr.splice(i,0,e),i===0&&Ah(e)}};function Ad(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ll(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Kg(){}function LE(e,t,i,a,c){if(c){if(typeof a=="function"){var f=a;a=function(){var $=sl(g);f.call($)}}var g=Hg(t,a,e,0,null,!1,!1,"",Kg);return e._reactRootContainer=g,e[Bn]=g.current,Hi(e.nodeType===8?e.parentNode:e),ro(),g}for(;c=e.lastChild;)e.removeChild(c);if(typeof a=="function"){var k=a;a=function(){var $=sl(R);k.call($)}}var R=Nd(e,0,!1,null,null,!1,!1,"",Kg);return e._reactRootContainer=R,e[Bn]=R.current,Hi(e.nodeType===8?e.parentNode:e),ro(function(){il(t,R,i,a)}),R}function ul(e,t,i,a,c){var f=i._reactRootContainer;if(f){var g=f;if(typeof c=="function"){var k=c;c=function(){var R=sl(g);k.call(R)}}il(t,g,e,c)}else g=LE(i,t,e,c,a);return sl(g)}Ih=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=Ni(t.pendingLanes);i!==0&&(rc(t,i|1),Mt(t,tt()),(Fe&6)===0&&(Jo=tt()+500,wr()))}break;case 13:ro(function(){var a=qn(e,1);if(a!==null){var c=Rt();ln(a,e,1,c)}}),Od(e,1)}},oc=function(e){if(e.tag===13){var t=qn(e,134217728);if(t!==null){var i=Rt();ln(t,e,134217728,i)}Od(e,134217728)}},Ph=function(e){if(e.tag===13){var t=Cr(e),i=qn(e,t);if(i!==null){var a=Rt();ln(i,e,t,a)}Od(e,t)}},Nh=function(){return We},Oh=function(e,t){var i=We;try{return We=e,t()}finally{We=i}},Qu=function(e,t,i){switch(t){case"input":if(qr(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var a=i[t];if(a!==e&&a.form===e.form){var c=Ca(a);if(!c)throw Error(o(90));Me(a),qr(a,c)}}}break;case"textarea":sh(e,i);break;case"select":t=i.value,t!=null&&No(e,!!i.multiple,t,!1)}},hh=bd,vh=ro;var jE={usingClientEntryPoint:!1,Events:[Ki,$o,Ca,ph,mh,bd]},ls={findFiberByHostInstance:Gr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zE={bundleType:ls.bundleType,version:ls.version,rendererPackageName:ls.rendererPackageName,rendererConfig:ls.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wh(e),e===null?null:e.stateNode},findFiberByHostInstance:ls.findFiberByHostInstance||ME,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cl.isDisabled&&cl.supportsFiber)try{aa=cl.inject(zE),wn=cl}catch{}}return It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jE,It.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ad(t))throw Error(o(200));return DE(e,t,null,i)},It.createRoot=function(e,t){if(!Ad(e))throw Error(o(299));var i=!1,a="",c=qg;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Nd(e,1,!1,null,null,i,!1,a,c),e[Bn]=t.current,Hi(e.nodeType===8?e.parentNode:e),new Td(t)},It.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=wh(t),e=e===null?null:e.stateNode,e},It.flushSync=function(e){return ro(e)},It.hydrate=function(e,t,i){if(!ll(t))throw Error(o(200));return ul(null,e,t,!0,i)},It.hydrateRoot=function(e,t,i){if(!Ad(e))throw Error(o(405));var a=i!=null&&i.hydratedSources||null,c=!1,f="",g=qg;if(i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),t=Hg(t,null,e,1,i??null,c,!1,f,g),e[Bn]=t.current,Hi(e),a)for(e=0;e<a.length;e++)i=a[e],c=i._getVersion,c=c(i._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,c]:t.mutableSourceEagerHydrationData.push(i,c);return new al(t)},It.render=function(e,t,i){if(!ll(t))throw Error(o(200));return ul(null,e,t,!1,i)},It.unmountComponentAtNode=function(e){if(!ll(e))throw Error(o(40));return e._reactRootContainer?(ro(function(){ul(null,null,e,!1,function(){e._reactRootContainer=null,e[Bn]=null})}),!0):!1},It.unstable_batchedUpdates=bd,It.unstable_renderSubtreeIntoContainer=function(e,t,i,a){if(!ll(i))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return ul(e,t,i,!1,a)},It.version="18.3.1-next-f1338f8080-20240426",It}var Fd;function $d(){if(Fd)return pl.exports;Fd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),pl.exports=ey(),pl.exports}var Vd;function ty(){if(Vd)return us;Vd=1;var n=$d();return us.createRoot=n.createRoot,us.hydrateRoot=n.hydrateRoot,us}var ny=ty(),je;(function(n){n.assertEqual=l=>{};function r(l){}n.assertIs=r;function o(l){throw new Error}n.assertNever=o,n.arrayToEnum=l=>{const u={};for(const d of l)u[d]=d;return u},n.getValidEnumValues=l=>{const u=n.objectKeys(l).filter(p=>typeof l[l[p]]!="number"),d={};for(const p of u)d[p]=l[p];return n.objectValues(d)},n.objectValues=l=>n.objectKeys(l).map(function(u){return l[u]}),n.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const u=[];for(const d in l)Object.prototype.hasOwnProperty.call(l,d)&&u.push(d);return u},n.find=(l,u)=>{for(const d of l)if(u(d))return d},n.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function s(l,u=" | "){return l.map(d=>typeof d=="string"?`'${d}'`:d).join(u)}n.joinValues=s,n.jsonStringifyReplacer=(l,u)=>typeof u=="bigint"?u.toString():u})(je||(je={}));var Ud;(function(n){n.mergeShapes=(r,o)=>({...r,...o})})(Ud||(Ud={}));const de=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yn=n=>{switch(typeof n){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(n)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(n)?de.array:n===null?de.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?de.promise:typeof Map<"u"&&n instanceof Map?de.map:typeof Set<"u"&&n instanceof Set?de.set:typeof Date<"u"&&n instanceof Date?de.date:de.object;default:return de.unknown}},J=je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class En extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const o=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,o):this.__proto__=o,this.name="ZodError",this.issues=r}format(r){const o=r||function(u){return u.message},s={_errors:[]},l=u=>{for(const d of u.issues)if(d.code==="invalid_union")d.unionErrors.map(l);else if(d.code==="invalid_return_type")l(d.returnTypeError);else if(d.code==="invalid_arguments")l(d.argumentsError);else if(d.path.length===0)s._errors.push(o(d));else{let p=s,h=0;for(;h<d.path.length;){const v=d.path[h];h===d.path.length-1?(p[v]=p[v]||{_errors:[]},p[v]._errors.push(o(d))):p[v]=p[v]||{_errors:[]},p=p[v],h++}}};return l(this),s}static assert(r){if(!(r instanceof En))throw new Error(`Not a ZodError: ${r}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(r=o=>o.message){const o={},s=[];for(const l of this.issues)l.path.length>0?(o[l.path[0]]=o[l.path[0]]||[],o[l.path[0]].push(r(l))):s.push(r(l));return{formErrors:s,fieldErrors:o}}get formErrors(){return this.flatten()}}En.create=n=>new En(n);const vl=(n,r)=>{let o;switch(n.code){case J.invalid_type:n.received===de.undefined?o="Required":o=`Expected ${n.expected}, received ${n.received}`;break;case J.invalid_literal:o=`Invalid literal value, expected ${JSON.stringify(n.expected,je.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:o=`Unrecognized key(s) in object: ${je.joinValues(n.keys,", ")}`;break;case J.invalid_union:o="Invalid input";break;case J.invalid_union_discriminator:o=`Invalid discriminator value. Expected ${je.joinValues(n.options)}`;break;case J.invalid_enum_value:o=`Invalid enum value. Expected ${je.joinValues(n.options)}, received '${n.received}'`;break;case J.invalid_arguments:o="Invalid function arguments";break;case J.invalid_return_type:o="Invalid function return type";break;case J.invalid_date:o="Invalid date";break;case J.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(o=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(o=`${o} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?o=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?o=`Invalid input: must end with "${n.validation.endsWith}"`:je.assertNever(n.validation):n.validation!=="regex"?o=`Invalid ${n.validation}`:o="Invalid";break;case J.too_small:n.type==="array"?o=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?o=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?o=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?o=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:o="Invalid input";break;case J.too_big:n.type==="array"?o=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?o=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?o=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?o=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?o=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:o="Invalid input";break;case J.custom:o="Invalid input";break;case J.invalid_intersection_types:o="Intersection results could not be merged";break;case J.not_multiple_of:o=`Number must be a multiple of ${n.multipleOf}`;break;case J.not_finite:o="Number must be finite";break;default:o=r.defaultError,je.assertNever(n)}return{message:o}};let ry=vl;function oy(){return ry}const iy=n=>{const{data:r,path:o,errorMaps:s,issueData:l}=n,u=[...o,...l.path||[]],d={...l,path:u};if(l.message!==void 0)return{...l,path:u,message:l.message};let p="";const h=s.filter(v=>!!v).slice().reverse();for(const v of h)p=v(d,{data:r,defaultError:p}).message;return{...l,path:u,message:p}};function ae(n,r){const o=oy(),s=iy({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,o,o===vl?void 0:vl].filter(l=>!!l)});n.common.issues.push(s)}class kt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,o){const s=[];for(const l of o){if(l.status==="aborted")return Re;l.status==="dirty"&&r.dirty(),s.push(l.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,o){const s=[];for(const l of o){const u=await l.key,d=await l.value;s.push({key:u,value:d})}return kt.mergeObjectSync(r,s)}static mergeObjectSync(r,o){const s={};for(const l of o){const{key:u,value:d}=l;if(u.status==="aborted"||d.status==="aborted")return Re;u.status==="dirty"&&r.dirty(),d.status==="dirty"&&r.dirty(),u.value!=="__proto__"&&(typeof d.value<"u"||l.alwaysSet)&&(s[u.value]=d.value)}return{status:r.value,value:s}}}const Re=Object.freeze({status:"aborted"}),ni=n=>({status:"dirty",value:n}),Bt=n=>({status:"valid",value:n}),Bd=n=>n.status==="aborted",Wd=n=>n.status==="dirty",ao=n=>n.status==="valid",cs=n=>typeof Promise<"u"&&n instanceof Promise;var xe;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r?.message})(xe||(xe={}));class un{constructor(r,o,s,l){this._cachedPath=[],this.parent=r,this.data=o,this._path=s,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Hd=(n,r)=>{if(ao(r))return{success:!0,data:r.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const o=new En(n.common.issues);return this._error=o,this._error}}};function Oe(n){if(!n)return{};const{errorMap:r,invalid_type_error:o,required_error:s,description:l}=n;if(r&&(o||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:l}:{errorMap:(d,p)=>{const{message:h}=n;return d.code==="invalid_enum_value"?{message:h??p.defaultError}:typeof p.data>"u"?{message:h??s??p.defaultError}:d.code!=="invalid_type"?{message:p.defaultError}:{message:h??o??p.defaultError}},description:l}}class De{get description(){return this._def.description}_getType(r){return Yn(r.data)}_getOrReturnCtx(r,o){return o||{common:r.parent.common,data:r.data,parsedType:Yn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new kt,ctx:{common:r.parent.common,data:r.data,parsedType:Yn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const o=this._parse(r);if(cs(o))throw new Error("Synchronous parse encountered promise.");return o}_parseAsync(r){const o=this._parse(r);return Promise.resolve(o)}parse(r,o){const s=this.safeParse(r,o);if(s.success)return s.data;throw s.error}safeParse(r,o){const s={common:{issues:[],async:o?.async??!1,contextualErrorMap:o?.errorMap},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Yn(r)},l=this._parseSync({data:r,path:s.path,parent:s});return Hd(s,l)}"~validate"(r){const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Yn(r)};if(!this["~standard"].async)try{const s=this._parseSync({data:r,path:[],parent:o});return ao(s)?{value:s.value}:{issues:o.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:o}).then(s=>ao(s)?{value:s.value}:{issues:o.common.issues})}async parseAsync(r,o){const s=await this.safeParseAsync(r,o);if(s.success)return s.data;throw s.error}async safeParseAsync(r,o){const s={common:{issues:[],contextualErrorMap:o?.errorMap,async:!0},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Yn(r)},l=this._parse({data:r,path:s.path,parent:s}),u=await(cs(l)?l:Promise.resolve(l));return Hd(s,u)}refine(r,o){const s=l=>typeof o=="string"||typeof o>"u"?{message:o}:typeof o=="function"?o(l):o;return this._refinement((l,u)=>{const d=r(l),p=()=>u.addIssue({code:J.custom,...s(l)});return typeof Promise<"u"&&d instanceof Promise?d.then(h=>h?!0:(p(),!1)):d?!0:(p(),!1)})}refinement(r,o){return this._refinement((s,l)=>r(s)?!0:(l.addIssue(typeof o=="function"?o(s,l):o),!1))}_refinement(r){return new Ar({schema:this,typeName:Ie.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:o=>this["~validate"](o)}}optional(){return In.create(this,this._def)}nullable(){return Dr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return cn.create(this)}promise(){return ys.create(this,this._def)}or(r){return ps.create([this,r],this._def)}and(r){return ms.create(this,r,this._def)}transform(r){return new Ar({...Oe(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const o=typeof r=="function"?r:()=>r;return new xs({...Oe(this._def),innerType:this,defaultValue:o,typeName:Ie.ZodDefault})}brand(){return new ef({typeName:Ie.ZodBranded,type:this,...Oe(this._def)})}catch(r){const o=typeof r=="function"?r:()=>r;return new ws({...Oe(this._def),innerType:this,catchValue:o,typeName:Ie.ZodCatch})}describe(r){const o=this.constructor;return new o({...this._def,description:r})}pipe(r){return bl.create(this,r)}readonly(){return Ss.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sy=/^c[^\s-]{8,}$/i,ay=/^[0-9a-z]+$/,ly=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uy=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cy=/^[a-z0-9_-]{21}$/i,dy=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,fy=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,py=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,my="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let gl;const hy=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vy=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,gy=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,yy=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xy=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,wy=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Zd="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Sy=new RegExp(`^${Zd}$`);function qd(n){let r="[0-5]\\d";n.precision?r=`${r}\\.\\d{${n.precision}}`:n.precision==null&&(r=`${r}(\\.\\d+)?`);const o=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${o}`}function _y(n){return new RegExp(`^${qd(n)}$`)}function ky(n){let r=`${Zd}T${qd(n)}`;const o=[];return o.push(n.local?"Z?":"Z"),n.offset&&o.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${o.join("|")})`,new RegExp(`^${r}$`)}function by(n,r){return!!((r==="v4"||!r)&&hy.test(n)||(r==="v6"||!r)&&gy.test(n))}function Ey(n,r){if(!dy.test(n))return!1;try{const[o]=n.split("."),s=o.replace(/-/g,"+").replace(/_/g,"/").padEnd(o.length+(4-o.length%4)%4,"="),l=JSON.parse(atob(s));return!(typeof l!="object"||l===null||"typ"in l&&l?.typ!=="JWT"||!l.alg||r&&l.alg!==r)}catch{return!1}}function Cy(n,r){return!!((r==="v4"||!r)&&vy.test(n)||(r==="v6"||!r)&&yy.test(n))}class Cn extends De{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==de.string){const u=this._getOrReturnCtx(r);return ae(u,{code:J.invalid_type,expected:de.string,received:u.parsedType}),Re}const s=new kt;let l;for(const u of this._def.checks)if(u.kind==="min")r.data.length<u.value&&(l=this._getOrReturnCtx(r,l),ae(l,{code:J.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if(u.kind==="max")r.data.length>u.value&&(l=this._getOrReturnCtx(r,l),ae(l,{code:J.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if(u.kind==="length"){const d=r.data.length>u.value,p=r.data.length<u.value;(d||p)&&(l=this._getOrReturnCtx(r,l),d?ae(l,{code:J.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):p&&ae(l,{code:J.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),s.dirty())}else if(u.kind==="email")py.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"email",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="emoji")gl||(gl=new RegExp(my,"u")),gl.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"emoji",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="uuid")uy.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"uuid",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="nanoid")cy.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"nanoid",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="cuid")sy.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"cuid",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="cuid2")ay.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"cuid2",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="ulid")ly.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"ulid",code:J.invalid_string,message:u.message}),s.dirty());else if(u.kind==="url")try{new URL(r.data)}catch{l=this._getOrReturnCtx(r,l),ae(l,{validation:"url",code:J.invalid_string,message:u.message}),s.dirty()}else u.kind==="regex"?(u.regex.lastIndex=0,u.regex.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"regex",code:J.invalid_string,message:u.message}),s.dirty())):u.kind==="trim"?r.data=r.data.trim():u.kind==="includes"?r.data.includes(u.value,u.position)||(l=this._getOrReturnCtx(r,l),ae(l,{code:J.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),s.dirty()):u.kind==="toLowerCase"?r.data=r.data.toLowerCase():u.kind==="toUpperCase"?r.data=r.data.toUpperCase():u.kind==="startsWith"?r.data.startsWith(u.value)||(l=this._getOrReturnCtx(r,l),ae(l,{code:J.invalid_string,validation:{startsWith:u.value},message:u.message}),s.dirty()):u.kind==="endsWith"?r.data.endsWith(u.value)||(l=this._getOrReturnCtx(r,l),ae(l,{code:J.invalid_string,validation:{endsWith:u.value},message:u.message}),s.dirty()):u.kind==="datetime"?ky(u).test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{code:J.invalid_string,validation:"datetime",message:u.message}),s.dirty()):u.kind==="date"?Sy.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{code:J.invalid_string,validation:"date",message:u.message}),s.dirty()):u.kind==="time"?_y(u).test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{code:J.invalid_string,validation:"time",message:u.message}),s.dirty()):u.kind==="duration"?fy.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"duration",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="ip"?by(r.data,u.version)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"ip",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="jwt"?Ey(r.data,u.alg)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"jwt",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="cidr"?Cy(r.data,u.version)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"cidr",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="base64"?xy.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"base64",code:J.invalid_string,message:u.message}),s.dirty()):u.kind==="base64url"?wy.test(r.data)||(l=this._getOrReturnCtx(r,l),ae(l,{validation:"base64url",code:J.invalid_string,message:u.message}),s.dirty()):je.assertNever(u);return{status:s.value,value:r.data}}_regex(r,o,s){return this.refinement(l=>r.test(l),{validation:o,code:J.invalid_string,...xe.errToObj(s)})}_addCheck(r){return new Cn({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...xe.errToObj(r)})}url(r){return this._addCheck({kind:"url",...xe.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...xe.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...xe.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...xe.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...xe.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...xe.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...xe.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...xe.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...xe.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...xe.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...xe.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...xe.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof r?.precision>"u"?null:r?.precision,offset:r?.offset??!1,local:r?.local??!1,...xe.errToObj(r?.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof r?.precision>"u"?null:r?.precision,...xe.errToObj(r?.message)})}duration(r){return this._addCheck({kind:"duration",...xe.errToObj(r)})}regex(r,o){return this._addCheck({kind:"regex",regex:r,...xe.errToObj(o)})}includes(r,o){return this._addCheck({kind:"includes",value:r,position:o?.position,...xe.errToObj(o?.message)})}startsWith(r,o){return this._addCheck({kind:"startsWith",value:r,...xe.errToObj(o)})}endsWith(r,o){return this._addCheck({kind:"endsWith",value:r,...xe.errToObj(o)})}min(r,o){return this._addCheck({kind:"min",value:r,...xe.errToObj(o)})}max(r,o){return this._addCheck({kind:"max",value:r,...xe.errToObj(o)})}length(r,o){return this._addCheck({kind:"length",value:r,...xe.errToObj(o)})}nonempty(r){return this.min(1,xe.errToObj(r))}trim(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(const o of this._def.checks)o.kind==="min"&&(r===null||o.value>r)&&(r=o.value);return r}get maxLength(){let r=null;for(const o of this._def.checks)o.kind==="max"&&(r===null||o.value<r)&&(r=o.value);return r}}Cn.create=n=>new Cn({checks:[],typeName:Ie.ZodString,coerce:n?.coerce??!1,...Oe(n)});function Ry(n,r){const o=(n.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,l=o>s?o:s,u=Number.parseInt(n.toFixed(l).replace(".","")),d=Number.parseInt(r.toFixed(l).replace(".",""));return u%d/10**l}class lo extends De{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==de.number){const u=this._getOrReturnCtx(r);return ae(u,{code:J.invalid_type,expected:de.number,received:u.parsedType}),Re}let s;const l=new kt;for(const u of this._def.checks)u.kind==="int"?je.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),ae(s,{code:J.invalid_type,expected:"integer",received:"float",message:u.message}),l.dirty()):u.kind==="min"?(u.inclusive?r.data<u.value:r.data<=u.value)&&(s=this._getOrReturnCtx(r,s),ae(s,{code:J.too_small,minimum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),l.dirty()):u.kind==="max"?(u.inclusive?r.data>u.value:r.data>=u.value)&&(s=this._getOrReturnCtx(r,s),ae(s,{code:J.too_big,maximum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),l.dirty()):u.kind==="multipleOf"?Ry(r.data,u.value)!==0&&(s=this._getOrReturnCtx(r,s),ae(s,{code:J.not_multiple_of,multipleOf:u.value,message:u.message}),l.dirty()):u.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),ae(s,{code:J.not_finite,message:u.message}),l.dirty()):je.assertNever(u);return{status:l.value,value:r.data}}gte(r,o){return this.setLimit("min",r,!0,xe.toString(o))}gt(r,o){return this.setLimit("min",r,!1,xe.toString(o))}lte(r,o){return this.setLimit("max",r,!0,xe.toString(o))}lt(r,o){return this.setLimit("max",r,!1,xe.toString(o))}setLimit(r,o,s,l){return new lo({...this._def,checks:[...this._def.checks,{kind:r,value:o,inclusive:s,message:xe.toString(l)}]})}_addCheck(r){return new lo({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:xe.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:xe.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:xe.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:xe.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:xe.toString(r)})}multipleOf(r,o){return this._addCheck({kind:"multipleOf",value:r,message:xe.toString(o)})}finite(r){return this._addCheck({kind:"finite",message:xe.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:xe.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:xe.toString(r)})}get minValue(){let r=null;for(const o of this._def.checks)o.kind==="min"&&(r===null||o.value>r)&&(r=o.value);return r}get maxValue(){let r=null;for(const o of this._def.checks)o.kind==="max"&&(r===null||o.value<r)&&(r=o.value);return r}get isInt(){return!!this._def.checks.find(r=>r.kind==="int"||r.kind==="multipleOf"&&je.isInteger(r.value))}get isFinite(){let r=null,o=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(o===null||s.value>o)&&(o=s.value):s.kind==="max"&&(r===null||s.value<r)&&(r=s.value)}return Number.isFinite(o)&&Number.isFinite(r)}}lo.create=n=>new lo({checks:[],typeName:Ie.ZodNumber,coerce:n?.coerce||!1,...Oe(n)});class ri extends De{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==de.bigint)return this._getInvalidInput(r);let s;const l=new kt;for(const u of this._def.checks)u.kind==="min"?(u.inclusive?r.data<u.value:r.data<=u.value)&&(s=this._getOrReturnCtx(r,s),ae(s,{code:J.too_small,type:"bigint",minimum:u.value,inclusive:u.inclusive,message:u.message}),l.dirty()):u.kind==="max"?(u.inclusive?r.data>u.value:r.data>=u.value)&&(s=this._getOrReturnCtx(r,s),ae(s,{code:J.too_big,type:"bigint",maximum:u.value,inclusive:u.inclusive,message:u.message}),l.dirty()):u.kind==="multipleOf"?r.data%u.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),ae(s,{code:J.not_multiple_of,multipleOf:u.value,message:u.message}),l.dirty()):je.assertNever(u);return{status:l.value,value:r.data}}_getInvalidInput(r){const o=this._getOrReturnCtx(r);return ae(o,{code:J.invalid_type,expected:de.bigint,received:o.parsedType}),Re}gte(r,o){return this.setLimit("min",r,!0,xe.toString(o))}gt(r,o){return this.setLimit("min",r,!1,xe.toString(o))}lte(r,o){return this.setLimit("max",r,!0,xe.toString(o))}lt(r,o){return this.setLimit("max",r,!1,xe.toString(o))}setLimit(r,o,s,l){return new ri({...this._def,checks:[...this._def.checks,{kind:r,value:o,inclusive:s,message:xe.toString(l)}]})}_addCheck(r){return new ri({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:xe.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:xe.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:xe.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:xe.toString(r)})}multipleOf(r,o){return this._addCheck({kind:"multipleOf",value:r,message:xe.toString(o)})}get minValue(){let r=null;for(const o of this._def.checks)o.kind==="min"&&(r===null||o.value>r)&&(r=o.value);return r}get maxValue(){let r=null;for(const o of this._def.checks)o.kind==="max"&&(r===null||o.value<r)&&(r=o.value);return r}}ri.create=n=>new ri({checks:[],typeName:Ie.ZodBigInt,coerce:n?.coerce??!1,...Oe(n)});class yl extends De{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==de.boolean){const s=this._getOrReturnCtx(r);return ae(s,{code:J.invalid_type,expected:de.boolean,received:s.parsedType}),Re}return Bt(r.data)}}yl.create=n=>new yl({typeName:Ie.ZodBoolean,coerce:n?.coerce||!1,...Oe(n)});class ds extends De{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==de.date){const u=this._getOrReturnCtx(r);return ae(u,{code:J.invalid_type,expected:de.date,received:u.parsedType}),Re}if(Number.isNaN(r.data.getTime())){const u=this._getOrReturnCtx(r);return ae(u,{code:J.invalid_date}),Re}const s=new kt;let l;for(const u of this._def.checks)u.kind==="min"?r.data.getTime()<u.value&&(l=this._getOrReturnCtx(r,l),ae(l,{code:J.too_small,message:u.message,inclusive:!0,exact:!1,minimum:u.value,type:"date"}),s.dirty()):u.kind==="max"?r.data.getTime()>u.value&&(l=this._getOrReturnCtx(r,l),ae(l,{code:J.too_big,message:u.message,inclusive:!0,exact:!1,maximum:u.value,type:"date"}),s.dirty()):je.assertNever(u);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new ds({...this._def,checks:[...this._def.checks,r]})}min(r,o){return this._addCheck({kind:"min",value:r.getTime(),message:xe.toString(o)})}max(r,o){return this._addCheck({kind:"max",value:r.getTime(),message:xe.toString(o)})}get minDate(){let r=null;for(const o of this._def.checks)o.kind==="min"&&(r===null||o.value>r)&&(r=o.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const o of this._def.checks)o.kind==="max"&&(r===null||o.value<r)&&(r=o.value);return r!=null?new Date(r):null}}ds.create=n=>new ds({checks:[],coerce:n?.coerce||!1,typeName:Ie.ZodDate,...Oe(n)});class Kd extends De{_parse(r){if(this._getType(r)!==de.symbol){const s=this._getOrReturnCtx(r);return ae(s,{code:J.invalid_type,expected:de.symbol,received:s.parsedType}),Re}return Bt(r.data)}}Kd.create=n=>new Kd({typeName:Ie.ZodSymbol,...Oe(n)});class xl extends De{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return ae(s,{code:J.invalid_type,expected:de.undefined,received:s.parsedType}),Re}return Bt(r.data)}}xl.create=n=>new xl({typeName:Ie.ZodUndefined,...Oe(n)});class fs extends De{_parse(r){if(this._getType(r)!==de.null){const s=this._getOrReturnCtx(r);return ae(s,{code:J.invalid_type,expected:de.null,received:s.parsedType}),Re}return Bt(r.data)}}fs.create=n=>new fs({typeName:Ie.ZodNull,...Oe(n)});class Gd extends De{constructor(){super(...arguments),this._any=!0}_parse(r){return Bt(r.data)}}Gd.create=n=>new Gd({typeName:Ie.ZodAny,...Oe(n)});class wl extends De{constructor(){super(...arguments),this._unknown=!0}_parse(r){return Bt(r.data)}}wl.create=n=>new wl({typeName:Ie.ZodUnknown,...Oe(n)});class Xn extends De{_parse(r){const o=this._getOrReturnCtx(r);return ae(o,{code:J.invalid_type,expected:de.never,received:o.parsedType}),Re}}Xn.create=n=>new Xn({typeName:Ie.ZodNever,...Oe(n)});class Qd extends De{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return ae(s,{code:J.invalid_type,expected:de.void,received:s.parsedType}),Re}return Bt(r.data)}}Qd.create=n=>new Qd({typeName:Ie.ZodVoid,...Oe(n)});class cn extends De{_parse(r){const{ctx:o,status:s}=this._processInputParams(r),l=this._def;if(o.parsedType!==de.array)return ae(o,{code:J.invalid_type,expected:de.array,received:o.parsedType}),Re;if(l.exactLength!==null){const d=o.data.length>l.exactLength.value,p=o.data.length<l.exactLength.value;(d||p)&&(ae(o,{code:d?J.too_big:J.too_small,minimum:p?l.exactLength.value:void 0,maximum:d?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),s.dirty())}if(l.minLength!==null&&o.data.length<l.minLength.value&&(ae(o,{code:J.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),s.dirty()),l.maxLength!==null&&o.data.length>l.maxLength.value&&(ae(o,{code:J.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),s.dirty()),o.common.async)return Promise.all([...o.data].map((d,p)=>l.type._parseAsync(new un(o,d,o.path,p)))).then(d=>kt.mergeArray(s,d));const u=[...o.data].map((d,p)=>l.type._parseSync(new un(o,d,o.path,p)));return kt.mergeArray(s,u)}get element(){return this._def.type}min(r,o){return new cn({...this._def,minLength:{value:r,message:xe.toString(o)}})}max(r,o){return new cn({...this._def,maxLength:{value:r,message:xe.toString(o)}})}length(r,o){return new cn({...this._def,exactLength:{value:r,message:xe.toString(o)}})}nonempty(r){return this.min(1,r)}}cn.create=(n,r)=>new cn({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...Oe(r)});function uo(n){if(n instanceof rt){const r={};for(const o in n.shape){const s=n.shape[o];r[o]=In.create(uo(s))}return new rt({...n._def,shape:()=>r})}else return n instanceof cn?new cn({...n._def,type:uo(n.element)}):n instanceof In?In.create(uo(n.unwrap())):n instanceof Dr?Dr.create(uo(n.unwrap())):n instanceof Or?Or.create(n.items.map(r=>uo(r))):n}class rt extends De{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),o=je.objectKeys(r);return this._cached={shape:r,keys:o},this._cached}_parse(r){if(this._getType(r)!==de.object){const v=this._getOrReturnCtx(r);return ae(v,{code:J.invalid_type,expected:de.object,received:v.parsedType}),Re}const{status:s,ctx:l}=this._processInputParams(r),{shape:u,keys:d}=this._getCached(),p=[];if(!(this._def.catchall instanceof Xn&&this._def.unknownKeys==="strip"))for(const v in l.data)d.includes(v)||p.push(v);const h=[];for(const v of d){const y=u[v],x=l.data[v];h.push({key:{status:"valid",value:v},value:y._parse(new un(l,x,l.path,v)),alwaysSet:v in l.data})}if(this._def.catchall instanceof Xn){const v=this._def.unknownKeys;if(v==="passthrough")for(const y of p)h.push({key:{status:"valid",value:y},value:{status:"valid",value:l.data[y]}});else if(v==="strict")p.length>0&&(ae(l,{code:J.unrecognized_keys,keys:p}),s.dirty());else if(v!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const v=this._def.catchall;for(const y of p){const x=l.data[y];h.push({key:{status:"valid",value:y},value:v._parse(new un(l,x,l.path,y)),alwaysSet:y in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const v=[];for(const y of h){const x=await y.key,w=await y.value;v.push({key:x,value:w,alwaysSet:y.alwaysSet})}return v}).then(v=>kt.mergeObjectSync(s,v)):kt.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(r){return xe.errToObj,new rt({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(o,s)=>{const l=this._def.errorMap?.(o,s).message??s.defaultError;return o.code==="unrecognized_keys"?{message:xe.errToObj(r).message??l}:{message:l}}}:{}})}strip(){return new rt({...this._def,unknownKeys:"strip"})}passthrough(){return new rt({...this._def,unknownKeys:"passthrough"})}extend(r){return new rt({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new rt({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Ie.ZodObject})}setKey(r,o){return this.augment({[r]:o})}catchall(r){return new rt({...this._def,catchall:r})}pick(r){const o={};for(const s of je.objectKeys(r))r[s]&&this.shape[s]&&(o[s]=this.shape[s]);return new rt({...this._def,shape:()=>o})}omit(r){const o={};for(const s of je.objectKeys(this.shape))r[s]||(o[s]=this.shape[s]);return new rt({...this._def,shape:()=>o})}deepPartial(){return uo(this)}partial(r){const o={};for(const s of je.objectKeys(this.shape)){const l=this.shape[s];r&&!r[s]?o[s]=l:o[s]=l.optional()}return new rt({...this._def,shape:()=>o})}required(r){const o={};for(const s of je.objectKeys(this.shape))if(r&&!r[s])o[s]=this.shape[s];else{let u=this.shape[s];for(;u instanceof In;)u=u._def.innerType;o[s]=u}return new rt({...this._def,shape:()=>o})}keyof(){return Xd(je.objectKeys(this.shape))}}rt.create=(n,r)=>new rt({shape:()=>n,unknownKeys:"strip",catchall:Xn.create(),typeName:Ie.ZodObject,...Oe(r)}),rt.strictCreate=(n,r)=>new rt({shape:()=>n,unknownKeys:"strict",catchall:Xn.create(),typeName:Ie.ZodObject,...Oe(r)}),rt.lazycreate=(n,r)=>new rt({shape:n,unknownKeys:"strip",catchall:Xn.create(),typeName:Ie.ZodObject,...Oe(r)});class ps extends De{_parse(r){const{ctx:o}=this._processInputParams(r),s=this._def.options;function l(u){for(const p of u)if(p.result.status==="valid")return p.result;for(const p of u)if(p.result.status==="dirty")return o.common.issues.push(...p.ctx.common.issues),p.result;const d=u.map(p=>new En(p.ctx.common.issues));return ae(o,{code:J.invalid_union,unionErrors:d}),Re}if(o.common.async)return Promise.all(s.map(async u=>{const d={...o,common:{...o.common,issues:[]},parent:null};return{result:await u._parseAsync({data:o.data,path:o.path,parent:d}),ctx:d}})).then(l);{let u;const d=[];for(const h of s){const v={...o,common:{...o.common,issues:[]},parent:null},y=h._parseSync({data:o.data,path:o.path,parent:v});if(y.status==="valid")return y;y.status==="dirty"&&!u&&(u={result:y,ctx:v}),v.common.issues.length&&d.push(v.common.issues)}if(u)return o.common.issues.push(...u.ctx.common.issues),u.result;const p=d.map(h=>new En(h));return ae(o,{code:J.invalid_union,unionErrors:p}),Re}}get options(){return this._def.options}}ps.create=(n,r)=>new ps({options:n,typeName:Ie.ZodUnion,...Oe(r)});const Rn=n=>n instanceof vs?Rn(n.schema):n instanceof Ar?Rn(n.innerType()):n instanceof gs?[n.value]:n instanceof Tr?n.options:n instanceof kl?je.objectValues(n.enum):n instanceof xs?Rn(n._def.innerType):n instanceof xl?[void 0]:n instanceof fs?[null]:n instanceof In?[void 0,...Rn(n.unwrap())]:n instanceof Dr?[null,...Rn(n.unwrap())]:n instanceof ef||n instanceof Ss?Rn(n.unwrap()):n instanceof ws?Rn(n._def.innerType):[];class Sl extends De{_parse(r){const{ctx:o}=this._processInputParams(r);if(o.parsedType!==de.object)return ae(o,{code:J.invalid_type,expected:de.object,received:o.parsedType}),Re;const s=this.discriminator,l=o.data[s],u=this.optionsMap.get(l);return u?o.common.async?u._parseAsync({data:o.data,path:o.path,parent:o}):u._parseSync({data:o.data,path:o.path,parent:o}):(ae(o,{code:J.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(r,o,s){const l=new Map;for(const u of o){const d=Rn(u.shape[r]);if(!d.length)throw new Error(`A discriminator value for key \`${r}\` could not be extracted from all schema options`);for(const p of d){if(l.has(p))throw new Error(`Discriminator property ${String(r)} has duplicate value ${String(p)}`);l.set(p,u)}}return new Sl({typeName:Ie.ZodDiscriminatedUnion,discriminator:r,options:o,optionsMap:l,...Oe(s)})}}function _l(n,r){const o=Yn(n),s=Yn(r);if(n===r)return{valid:!0,data:n};if(o===de.object&&s===de.object){const l=je.objectKeys(r),u=je.objectKeys(n).filter(p=>l.indexOf(p)!==-1),d={...n,...r};for(const p of u){const h=_l(n[p],r[p]);if(!h.valid)return{valid:!1};d[p]=h.data}return{valid:!0,data:d}}else if(o===de.array&&s===de.array){if(n.length!==r.length)return{valid:!1};const l=[];for(let u=0;u<n.length;u++){const d=n[u],p=r[u],h=_l(d,p);if(!h.valid)return{valid:!1};l.push(h.data)}return{valid:!0,data:l}}else return o===de.date&&s===de.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}class ms extends De{_parse(r){const{status:o,ctx:s}=this._processInputParams(r),l=(u,d)=>{if(Bd(u)||Bd(d))return Re;const p=_l(u.value,d.value);return p.valid?((Wd(u)||Wd(d))&&o.dirty(),{status:o.value,value:p.data}):(ae(s,{code:J.invalid_intersection_types}),Re)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([u,d])=>l(u,d)):l(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ms.create=(n,r,o)=>new ms({left:n,right:r,typeName:Ie.ZodIntersection,...Oe(o)});class Or extends De{_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.array)return ae(s,{code:J.invalid_type,expected:de.array,received:s.parsedType}),Re;if(s.data.length<this._def.items.length)return ae(s,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&s.data.length>this._def.items.length&&(ae(s,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),o.dirty());const u=[...s.data].map((d,p)=>{const h=this._def.items[p]||this._def.rest;return h?h._parse(new un(s,d,s.path,p)):null}).filter(d=>!!d);return s.common.async?Promise.all(u).then(d=>kt.mergeArray(o,d)):kt.mergeArray(o,u)}get items(){return this._def.items}rest(r){return new Or({...this._def,rest:r})}}Or.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Or({items:n,typeName:Ie.ZodTuple,rest:null,...Oe(r)})};class hs extends De{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.object)return ae(s,{code:J.invalid_type,expected:de.object,received:s.parsedType}),Re;const l=[],u=this._def.keyType,d=this._def.valueType;for(const p in s.data)l.push({key:u._parse(new un(s,p,s.path,p)),value:d._parse(new un(s,s.data[p],s.path,p)),alwaysSet:p in s.data});return s.common.async?kt.mergeObjectAsync(o,l):kt.mergeObjectSync(o,l)}get element(){return this._def.valueType}static create(r,o,s){return o instanceof De?new hs({keyType:r,valueType:o,typeName:Ie.ZodRecord,...Oe(s)}):new hs({keyType:Cn.create(),valueType:r,typeName:Ie.ZodRecord,...Oe(o)})}}class Yd extends De{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.map)return ae(s,{code:J.invalid_type,expected:de.map,received:s.parsedType}),Re;const l=this._def.keyType,u=this._def.valueType,d=[...s.data.entries()].map(([p,h],v)=>({key:l._parse(new un(s,p,s.path,[v,"key"])),value:u._parse(new un(s,h,s.path,[v,"value"]))}));if(s.common.async){const p=new Map;return Promise.resolve().then(async()=>{for(const h of d){const v=await h.key,y=await h.value;if(v.status==="aborted"||y.status==="aborted")return Re;(v.status==="dirty"||y.status==="dirty")&&o.dirty(),p.set(v.value,y.value)}return{status:o.value,value:p}})}else{const p=new Map;for(const h of d){const v=h.key,y=h.value;if(v.status==="aborted"||y.status==="aborted")return Re;(v.status==="dirty"||y.status==="dirty")&&o.dirty(),p.set(v.value,y.value)}return{status:o.value,value:p}}}}Yd.create=(n,r,o)=>new Yd({valueType:r,keyType:n,typeName:Ie.ZodMap,...Oe(o)});class oi extends De{_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.set)return ae(s,{code:J.invalid_type,expected:de.set,received:s.parsedType}),Re;const l=this._def;l.minSize!==null&&s.data.size<l.minSize.value&&(ae(s,{code:J.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),o.dirty()),l.maxSize!==null&&s.data.size>l.maxSize.value&&(ae(s,{code:J.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),o.dirty());const u=this._def.valueType;function d(h){const v=new Set;for(const y of h){if(y.status==="aborted")return Re;y.status==="dirty"&&o.dirty(),v.add(y.value)}return{status:o.value,value:v}}const p=[...s.data.values()].map((h,v)=>u._parse(new un(s,h,s.path,v)));return s.common.async?Promise.all(p).then(h=>d(h)):d(p)}min(r,o){return new oi({...this._def,minSize:{value:r,message:xe.toString(o)}})}max(r,o){return new oi({...this._def,maxSize:{value:r,message:xe.toString(o)}})}size(r,o){return this.min(r,o).max(r,o)}nonempty(r){return this.min(1,r)}}oi.create=(n,r)=>new oi({valueType:n,minSize:null,maxSize:null,typeName:Ie.ZodSet,...Oe(r)});class vs extends De{get schema(){return this._def.getter()}_parse(r){const{ctx:o}=this._processInputParams(r);return this._def.getter()._parse({data:o.data,path:o.path,parent:o})}}vs.create=(n,r)=>new vs({getter:n,typeName:Ie.ZodLazy,...Oe(r)});class gs extends De{_parse(r){if(r.data!==this._def.value){const o=this._getOrReturnCtx(r);return ae(o,{received:o.data,code:J.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:r.data}}get value(){return this._def.value}}gs.create=(n,r)=>new gs({value:n,typeName:Ie.ZodLiteral,...Oe(r)});function Xd(n,r){return new Tr({values:n,typeName:Ie.ZodEnum,...Oe(r)})}class Tr extends De{_parse(r){if(typeof r.data!="string"){const o=this._getOrReturnCtx(r),s=this._def.values;return ae(o,{expected:je.joinValues(s),received:o.parsedType,code:J.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){const o=this._getOrReturnCtx(r),s=this._def.values;return ae(o,{received:o.data,code:J.invalid_enum_value,options:s}),Re}return Bt(r.data)}get options(){return this._def.values}get enum(){const r={};for(const o of this._def.values)r[o]=o;return r}get Values(){const r={};for(const o of this._def.values)r[o]=o;return r}get Enum(){const r={};for(const o of this._def.values)r[o]=o;return r}extract(r,o=this._def){return Tr.create(r,{...this._def,...o})}exclude(r,o=this._def){return Tr.create(this.options.filter(s=>!r.includes(s)),{...this._def,...o})}}Tr.create=Xd;class kl extends De{_parse(r){const o=je.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==de.string&&s.parsedType!==de.number){const l=je.objectValues(o);return ae(s,{expected:je.joinValues(l),received:s.parsedType,code:J.invalid_type}),Re}if(this._cache||(this._cache=new Set(je.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){const l=je.objectValues(o);return ae(s,{received:s.data,code:J.invalid_enum_value,options:l}),Re}return Bt(r.data)}get enum(){return this._def.values}}kl.create=(n,r)=>new kl({values:n,typeName:Ie.ZodNativeEnum,...Oe(r)});class ys extends De{unwrap(){return this._def.type}_parse(r){const{ctx:o}=this._processInputParams(r);if(o.parsedType!==de.promise&&o.common.async===!1)return ae(o,{code:J.invalid_type,expected:de.promise,received:o.parsedType}),Re;const s=o.parsedType===de.promise?o.data:Promise.resolve(o.data);return Bt(s.then(l=>this._def.type.parseAsync(l,{path:o.path,errorMap:o.common.contextualErrorMap})))}}ys.create=(n,r)=>new ys({type:n,typeName:Ie.ZodPromise,...Oe(r)});class Ar extends De{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){const{status:o,ctx:s}=this._processInputParams(r),l=this._def.effect||null,u={addIssue:d=>{ae(s,d),d.fatal?o.abort():o.dirty()},get path(){return s.path}};if(u.addIssue=u.addIssue.bind(u),l.type==="preprocess"){const d=l.transform(s.data,u);if(s.common.async)return Promise.resolve(d).then(async p=>{if(o.value==="aborted")return Re;const h=await this._def.schema._parseAsync({data:p,path:s.path,parent:s});return h.status==="aborted"?Re:h.status==="dirty"||o.value==="dirty"?ni(h.value):h});{if(o.value==="aborted")return Re;const p=this._def.schema._parseSync({data:d,path:s.path,parent:s});return p.status==="aborted"?Re:p.status==="dirty"||o.value==="dirty"?ni(p.value):p}}if(l.type==="refinement"){const d=p=>{const h=l.refinement(p,u);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return p};if(s.common.async===!1){const p=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return p.status==="aborted"?Re:(p.status==="dirty"&&o.dirty(),d(p.value),{status:o.value,value:p.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(p=>p.status==="aborted"?Re:(p.status==="dirty"&&o.dirty(),d(p.value).then(()=>({status:o.value,value:p.value}))))}if(l.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!ao(d))return Re;const p=l.transform(d.value,u);if(p instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:o.value,value:p}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>ao(d)?Promise.resolve(l.transform(d.value,u)).then(p=>({status:o.value,value:p})):Re);je.assertNever(l)}}Ar.create=(n,r,o)=>new Ar({schema:n,typeName:Ie.ZodEffects,effect:r,...Oe(o)}),Ar.createWithPreprocess=(n,r,o)=>new Ar({schema:r,effect:{type:"preprocess",transform:n},typeName:Ie.ZodEffects,...Oe(o)});class In extends De{_parse(r){return this._getType(r)===de.undefined?Bt(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}In.create=(n,r)=>new In({innerType:n,typeName:Ie.ZodOptional,...Oe(r)});class Dr extends De{_parse(r){return this._getType(r)===de.null?Bt(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Dr.create=(n,r)=>new Dr({innerType:n,typeName:Ie.ZodNullable,...Oe(r)});class xs extends De{_parse(r){const{ctx:o}=this._processInputParams(r);let s=o.data;return o.parsedType===de.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:o.path,parent:o})}removeDefault(){return this._def.innerType}}xs.create=(n,r)=>new xs({innerType:n,typeName:Ie.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...Oe(r)});class ws extends De{_parse(r){const{ctx:o}=this._processInputParams(r),s={...o,common:{...o.common,issues:[]}},l=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return cs(l)?l.then(u=>({status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new En(s.common.issues)},input:s.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new En(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ws.create=(n,r)=>new ws({innerType:n,typeName:Ie.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...Oe(r)});class Jd extends De{_parse(r){if(this._getType(r)!==de.nan){const s=this._getOrReturnCtx(r);return ae(s,{code:J.invalid_type,expected:de.nan,received:s.parsedType}),Re}return{status:"valid",value:r.data}}}Jd.create=n=>new Jd({typeName:Ie.ZodNaN,...Oe(n)});class ef extends De{_parse(r){const{ctx:o}=this._processInputParams(r),s=o.data;return this._def.type._parse({data:s,path:o.path,parent:o})}unwrap(){return this._def.type}}class bl extends De{_parse(r){const{status:o,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{const u=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?Re:u.status==="dirty"?(o.dirty(),ni(u.value)):this._def.out._parseAsync({data:u.value,path:s.path,parent:s})})();{const l=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?Re:l.status==="dirty"?(o.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:s.path,parent:s})}}static create(r,o){return new bl({in:r,out:o,typeName:Ie.ZodPipeline})}}class Ss extends De{_parse(r){const o=this._def.innerType._parse(r),s=l=>(ao(l)&&(l.value=Object.freeze(l.value)),l);return cs(o)?o.then(l=>s(l)):s(o)}unwrap(){return this._def.innerType}}Ss.create=(n,r)=>new Ss({innerType:n,typeName:Ie.ZodReadonly,...Oe(r)});var Ie;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Ie||(Ie={}));const ie=Cn.create,vt=lo.create,Lt=yl.create,Jn=fs.create,co=wl.create;Xn.create;const Je=cn.create,Se=rt.create,Pn=ps.create,tf=Sl.create;ms.create,Or.create;const Mr=hs.create,Iy=vs.create,Ge=gs.create,Nn=Tr.create;ys.create,In.create,Dr.create;function nf(n){var r,o,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(r=0;r<l;r++)n[r]&&(o=nf(n[r]))&&(s&&(s+=" "),s+=o)}else for(o in n)n[o]&&(s&&(s+=" "),s+=o);return s}function rf(){for(var n,r,o=0,s="",l=arguments.length;o<l;o++)(n=arguments[o])&&(r=nf(n))&&(s&&(s+=" "),s+=r);return s}const Py=(n,r)=>{const o=new Array(n.length+r.length);for(let s=0;s<n.length;s++)o[s]=n[s];for(let s=0;s<r.length;s++)o[n.length+s]=r[s];return o},Ny=(n,r)=>({classGroupId:n,validator:r}),of=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),_s="-",sf=[],Oy="arbitrary..",Ty=n=>{const r=Dy(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return Ay(d);const p=d.split(_s),h=p[0]===""&&p.length>1?1:0;return af(p,h,r)},getConflictingClassGroupIds:(d,p)=>{if(p){const h=s[d],v=o[d];return h?v?Py(v,h):h:v||sf}return o[d]||sf}}},af=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const l=n[r],u=o.nextPart.get(l);if(u){const v=af(n,r+1,u);if(v)return v}const d=o.validators;if(d===null)return;const p=r===0?n.join(_s):n.slice(r).join(_s),h=d.length;for(let v=0;v<h;v++){const y=d[v];if(y.validator(p))return y.classGroupId}},Ay=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),o=r.indexOf(":"),s=r.slice(0,o);return s?Oy+s:void 0})(),Dy=n=>{const{theme:r,classGroups:o}=n;return My(o,r)},My=(n,r)=>{const o=of();for(const s in n){const l=n[s];El(l,o,s,r)}return o},El=(n,r,o,s)=>{const l=n.length;for(let u=0;u<l;u++){const d=n[u];Ly(d,r,o,s)}},Ly=(n,r,o,s)=>{if(typeof n=="string"){jy(n,r,o);return}if(typeof n=="function"){zy(n,r,o,s);return}Fy(n,r,o,s)},jy=(n,r,o)=>{const s=n===""?r:lf(r,n);s.classGroupId=o},zy=(n,r,o,s)=>{if($y(n)){El(n(s),r,o,s);return}r.validators===null&&(r.validators=[]),r.validators.push(Ny(o,n))},Fy=(n,r,o,s)=>{const l=Object.entries(n),u=l.length;for(let d=0;d<u;d++){const[p,h]=l[d];El(h,lf(r,p),o,s)}},lf=(n,r)=>{let o=n;const s=r.split(_s),l=s.length;for(let u=0;u<l;u++){const d=s[u];let p=o.nextPart.get(d);p||(p=of(),o.nextPart.set(d,p)),o=p}return o},$y=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,Vy=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),s=Object.create(null);const l=(u,d)=>{o[u]=d,r++,r>n&&(r=0,s=o,o=Object.create(null))};return{get(u){let d=o[u];if(d!==void 0)return d;if((d=s[u])!==void 0)return l(u,d),d},set(u,d){u in o?o[u]=d:l(u,d)}}},Cl="!",uf=":",Uy=[],cf=(n,r,o,s,l)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:s,isExternal:l}),By=n=>{const{prefix:r,experimentalParseClassName:o}=n;let s=l=>{const u=[];let d=0,p=0,h=0,v;const y=l.length;for(let E=0;E<y;E++){const S=l[E];if(d===0&&p===0){if(S===uf){u.push(l.slice(h,E)),h=E+1;continue}if(S==="/"){v=E;continue}}S==="["?d++:S==="]"?d--:S==="("?p++:S===")"&&p--}const x=u.length===0?l:l.slice(h);let w=x,b=!1;x.endsWith(Cl)?(w=x.slice(0,-1),b=!0):x.startsWith(Cl)&&(w=x.slice(1),b=!0);const _=v&&v>h?v-h:void 0;return cf(u,b,w,_)};if(r){const l=r+uf,u=s;s=d=>d.startsWith(l)?u(d.slice(l.length)):cf(Uy,!1,d,void 0,!0)}if(o){const l=s;s=u=>o({className:u,parseClassName:l})}return s},Wy=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,s)=>{r.set(o,1e6+s)}),o=>{const s=[];let l=[];for(let u=0;u<o.length;u++){const d=o[u],p=d[0]==="[",h=r.has(d);p||h?(l.length>0&&(l.sort(),s.push(...l),l=[]),s.push(d)):l.push(d)}return l.length>0&&(l.sort(),s.push(...l)),s}},Hy=n=>({cache:Vy(n.cacheSize),parseClassName:By(n),sortModifiers:Wy(n),postfixLookupClassGroupIds:Zy(n),...Ty(n)}),Zy=n=>{const r=Object.create(null),o=n.postfixLookupClassGroups;if(o)for(let s=0;s<o.length;s++)r[o[s]]=!0;return r},qy=/\s+/,Ky=(n,r)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:u,postfixLookupClassGroupIds:d}=r,p=[],h=n.trim().split(qy);let v="";for(let y=h.length-1;y>=0;y-=1){const x=h[y],{isExternal:w,modifiers:b,hasImportantModifier:_,baseClassName:E,maybePostfixModifierPosition:S}=o(x);if(w){v=x+(v.length>0?" "+v:v);continue}let A=!!S,D;if(A){const W=E.substring(0,S);D=s(W);const F=D&&d[D]?s(E):void 0;F&&F!==D&&(D=F,A=!1)}else D=s(E);if(!D){if(!A){v=x+(v.length>0?" "+v:v);continue}if(D=s(E),!D){v=x+(v.length>0?" "+v:v);continue}A=!1}const T=b.length===0?"":b.length===1?b[0]:u(b).join(":"),N=_?T+Cl:T,U=N+D;if(p.indexOf(U)>-1)continue;p.push(U);const L=l(D,A);for(let W=0;W<L.length;++W){const F=L[W];p.push(N+F)}v=x+(v.length>0?" "+v:v)}return v},Gy=(...n)=>{let r=0,o,s,l="";for(;r<n.length;)(o=n[r++])&&(s=df(o))&&(l&&(l+=" "),l+=s);return l},df=n=>{if(typeof n=="string")return n;let r,o="";for(let s=0;s<n.length;s++)n[s]&&(r=df(n[s]))&&(o&&(o+=" "),o+=r);return o},Qy=(n,...r)=>{let o,s,l,u;const d=h=>{const v=r.reduce((y,x)=>x(y),n());return o=Hy(v),s=o.cache.get,l=o.cache.set,u=p,p(h)},p=h=>{const v=s(h);if(v)return v;const y=Ky(h,o);return l(h,y),y};return u=d,(...h)=>u(Gy(...h))},Yy=[],st=n=>{const r=o=>o[n]||Yy;return r.isThemeGetter=!0,r},ff=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Jy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,e0=/\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$/,t0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,n0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,r0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,er=n=>Xy.test(n),Te=n=>!!n&&!Number.isNaN(Number(n)),dn=n=>!!n&&Number.isInteger(Number(n)),Rl=n=>n.endsWith("%")&&Te(n.slice(0,-1)),On=n=>Jy.test(n),mf=()=>!0,o0=n=>e0.test(n)&&!t0.test(n),Il=()=>!1,i0=n=>n0.test(n),s0=n=>r0.test(n),a0=n=>!ce(n)&&!fe(n),l0=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),u0=n=>tr(n,wf,Il),ce=n=>ff.test(n),Lr=n=>tr(n,Sf,o0),hf=n=>tr(n,g0,Te),c0=n=>tr(n,kf,mf),d0=n=>tr(n,_f,Il),vf=n=>tr(n,yf,Il),f0=n=>tr(n,xf,s0),ks=n=>tr(n,bf,i0),fe=n=>pf.test(n),ii=n=>jr(n,Sf),p0=n=>jr(n,_f),gf=n=>jr(n,yf),m0=n=>jr(n,wf),h0=n=>jr(n,xf),bs=n=>jr(n,bf,!0),v0=n=>jr(n,kf,!0),tr=(n,r,o)=>{const s=ff.exec(n);return s?s[1]?r(s[1]):o(s[2]):!1},jr=(n,r,o=!1)=>{const s=pf.exec(n);return s?s[1]?r(s[1]):o:!1},yf=n=>n==="position"||n==="percentage",xf=n=>n==="image"||n==="url",wf=n=>n==="length"||n==="size"||n==="bg-size",Sf=n=>n==="length",g0=n=>n==="number",_f=n=>n==="family-name",kf=n=>n==="number"||n==="weight",bf=n=>n==="shadow",y0=Qy(()=>{const n=st("color"),r=st("font"),o=st("text"),s=st("font-weight"),l=st("tracking"),u=st("leading"),d=st("breakpoint"),p=st("container"),h=st("spacing"),v=st("radius"),y=st("shadow"),x=st("inset-shadow"),w=st("text-shadow"),b=st("drop-shadow"),_=st("blur"),E=st("perspective"),S=st("aspect"),A=st("ease"),D=st("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...N(),fe,ce],L=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],F=()=>[fe,ce,h],re=()=>[er,"full","auto",...F()],me=()=>[dn,"none","subgrid",fe,ce],ke=()=>["auto",{span:["full",dn,fe,ce]},dn,fe,ce],oe=()=>[dn,"auto",fe,ce],he=()=>["auto","min","max","fr",fe,ce],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_e=()=>["start","end","center","stretch","center-safe","end-safe"],ue=()=>["auto",...F()],se=()=>[er,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],B=()=>[er,"screen","full","dvw","lvw","svw","min","max","fit",...F()],X=()=>[er,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],z=()=>[n,fe,ce],P=()=>[...N(),gf,vf,{position:[fe,ce]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",m0,u0,{size:[fe,ce]}],ne=()=>[Rl,ii,Lr],H=()=>["","none","full",v,fe,ce],V=()=>["",Te,ii,Lr],te=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[Te,Rl,gf,vf],Ce=()=>["","none",_,fe,ce],Ne=()=>["none",Te,fe,ce],Me=()=>["none",Te,fe,ce],Le=()=>[Te,fe,ce],ft=()=>[er,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[On],breakpoint:[On],color:[mf],container:[On],"drop-shadow":[On],ease:["in","out","in-out"],font:[a0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[On],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[On],shadow:[On],spacing:["px",Te],text:[On],"text-shadow":[On],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",er,ce,fe,S]}],container:["container"],"container-type":[{"@container":["","normal","size",fe,ce]}],"container-named":[l0],columns:[{columns:[Te,ce,fe,p]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:U()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:re()}],"inset-x":[{"inset-x":re()}],"inset-y":[{"inset-y":re()}],start:[{"inset-s":re(),start:re()}],end:[{"inset-e":re(),end:re()}],"inset-bs":[{"inset-bs":re()}],"inset-be":[{"inset-be":re()}],top:[{top:re()}],right:[{right:re()}],bottom:[{bottom:re()}],left:[{left:re()}],visibility:["visible","invisible","collapse"],z:[{z:[dn,"auto",fe,ce]}],basis:[{basis:[er,"full","auto",p,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,er,"auto","initial","none",ce]}],grow:[{grow:["",Te,fe,ce]}],shrink:[{shrink:["",Te,fe,ce]}],order:[{order:[dn,"first","last","none",fe,ce]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[..._e(),"normal"]}],"justify-self":[{"justify-self":["auto",..._e()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[..._e(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._e(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[..._e(),"baseline"]}],"place-self":[{"place-self":["auto",..._e()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pbs:[{pbs:F()}],pbe:[{pbe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:ue()}],mx:[{mx:ue()}],my:[{my:ue()}],ms:[{ms:ue()}],me:[{me:ue()}],mbs:[{mbs:ue()}],mbe:[{mbe:ue()}],mt:[{mt:ue()}],mr:[{mr:ue()}],mb:[{mb:ue()}],ml:[{ml:ue()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[p,"screen",...se()]}],"min-w":[{"min-w":[p,"screen","none",...se()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",o,ii,Lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,v0,c0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rl,ce]}],"font-family":[{font:[p0,d0,r]}],"font-features":[{"font-features":[ce]}],"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:[l,fe,ce]}],"line-clamp":[{"line-clamp":[Te,"none",fe,hf]}],leading:[{leading:[u,...F()]}],"list-image":[{"list-image":["none",fe,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",fe,Lr]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Te,"auto",fe,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"tab-size":[{tab:[dn,fe,ce]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,ce]}],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",fe,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dn,fe,ce],radial:["",fe,ce],conic:[dn,fe,ce]},h0,f0]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-bs":[{"border-bs":V()}],"border-w-be":[{"border-be":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,fe,ce]}],"outline-w":[{outline:["",Te,ii,Lr]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",y,bs,ks]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",x,bs,ks]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Te,Lr]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",w,bs,ks]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Te,fe,ce]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"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":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[fe,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,ce]}],filter:[{filter:["","none",fe,ce]}],blur:[{blur:Ce()}],brightness:[{brightness:[Te,fe,ce]}],contrast:[{contrast:[Te,fe,ce]}],"drop-shadow":[{"drop-shadow":["","none",b,bs,ks]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Te,fe,ce]}],"hue-rotate":[{"hue-rotate":[Te,fe,ce]}],invert:[{invert:["",Te,fe,ce]}],saturate:[{saturate:[Te,fe,ce]}],sepia:[{sepia:["",Te,fe,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,ce]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Te,fe,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Te,fe,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,fe,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,fe,ce]}],"backdrop-invert":[{"backdrop-invert":["",Te,fe,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Te,fe,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Te,fe,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,fe,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",fe,ce]}],ease:[{ease:["linear","initial",A,fe,ce]}],delay:[{delay:[Te,fe,ce]}],animate:[{animate:["none",D,fe,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,fe,ce]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[fe,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ft()}],"translate-x":[{"translate-x":ft()}],"translate-y":[{"translate-y":ft()}],"translate-z":[{"translate-z":ft()}],"translate-none":["translate-none"],zoom:[{zoom:[dn,fe,ce]}],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",fe,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":z()}],"scrollbar-track-color":[{"scrollbar-track":z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mbs":[{"scroll-mbs":F()}],"scroll-mbe":[{"scroll-mbe":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pbs":[{"scroll-pbs":F()}],"scroll-pbe":[{"scroll-pbe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",fe,ce]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Te,ii,Lr,hf]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function x0(n={}){const r=n.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;n.density==="compact"?document.documentElement.dataset.xuiDensity="compact":n.density==="default"&&delete document.documentElement.dataset.xuiDensity;let o=document.getElementById(r);o||(o=document.createElement("style"),o.id=r,document.head.appendChild(o)),o.textContent=`
|
|
9
9
|
:root {
|
|
10
10
|
--background: var(--xui-color-background, #ffffff);
|
|
11
11
|
--foreground: var(--xui-color-foreground, #18181b);
|
|
@@ -60,8 +60,8 @@ Error generating stack: `+f.message+`
|
|
|
60
60
|
--border: var(--xui-color-border, #27272a);
|
|
61
61
|
--input: var(--xui-color-input, var(--border));
|
|
62
62
|
}
|
|
63
|
-
`}const kf=(...n)=>n.filter((r,o,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===o).join(" ").trim();const x0=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const w0=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,s)=>s?s.toUpperCase():o.toLowerCase());const Ef=n=>{const r=w0(n);return r.charAt(0).toUpperCase()+r.slice(1)};var Pl={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"};const S0=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},_0=m.createContext({}),k0=()=>m.useContext(_0),E0=m.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:s,className:l="",children:u,iconNode:d,...p},h)=>{const{size:v=24,strokeWidth:y=2,absoluteStrokeWidth:x=!1,color:w="currentColor",className:E=""}=k0()??{},_=s??x?Number(o??y)*24/Number(r??v):o??y;return m.createElement("svg",{ref:h,...Pl,width:r??v??Pl.width,height:r??v??Pl.height,stroke:n??w,strokeWidth:_,className:kf("lucide",E,l),...!u&&!S0(p)&&{"aria-hidden":"true"},...p},[...d.map(([b,S])=>m.createElement(b,S)),...Array.isArray(u)?u:[u]])});const Yt=(n,r)=>{const o=m.forwardRef(({className:s,...l},u)=>m.createElement(E0,{ref:u,iconNode:r,className:kf(`lucide-${x0(Ef(n))}`,`lucide-${n}`,s),...l}));return o.displayName=Ef(n),o};const bf=Yt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Nl=Yt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Cf=Yt("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const b0=Yt("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);const C0=Yt("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);const R0=Yt("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Ol=Yt("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const Rf=Yt("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);const I0=Yt("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const P0=Yt("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const N0=Yt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Tl={exports:{}},si={};var If;function O0(){if(If)return si;If=1;var n=fl(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(p,h,v){var y,x={},w=null,E=null;v!==void 0&&(w=""+v),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(E=h.ref);for(y in h)s.call(h,y)&&!u.hasOwnProperty(y)&&(x[y]=h[y]);if(p&&p.defaultProps)for(y in h=p.defaultProps,h)x[y]===void 0&&(x[y]=h[y]);return{$$typeof:r,type:p,key:w,ref:E,props:x,_owner:l.current}}return si.Fragment=o,si.jsx=d,si.jsxs=d,si}var Pf;function T0(){return Pf||(Pf=1,Tl.exports=O0()),Tl.exports}var O=T0(),ai=Fd(),A0=Object.defineProperty,Al=(n,r)=>A0(n,"name",{value:r,configurable:!0});function Dl(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}Al(Dl,"setRef");function zr(...n){return r=>{let o=!1;const s=n.map(l=>{const u=Dl(l,r);return!o&&typeof u=="function"&&(o=!0),u});if(o)return()=>{for(let l=0;l<s.length;l++){const u=s[l];typeof u=="function"?u():Dl(n[l],null)}}}}Al(zr,"composeRefs");function He(...n){return m.useCallback(zr(...n),n)}Al(He,"useComposedRefs");var D0=Object.defineProperty,Xt=(n,r)=>D0(n,"name",{value:r,configurable:!0});function fn(n){const r=m.forwardRef((o,s)=>{let{children:l,...u}=o,d=null,p=!1;const h=[];Ml(l)&&typeof bs=="function"&&(l=bs(l._payload)),m.Children.forEach(l,w=>{if(Af(w)){p=!0;const E=w;let _="child"in E.props?E.props.child:E.props.children;Ml(_)&&typeof bs=="function"&&(_=bs(_._payload)),d=j0(E,_),h.push(d?.props?.children)}else h.push(w)}),d?d=m.cloneElement(d,void 0,h):!p&&m.Children.count(l)===1&&m.isValidElement(l)&&(d=l);const v=d?Tf(d):void 0,y=He(s,v);if(!d){if(l||l===0)throw new Error(p?$0(n):F0(n));return l}const x=Of(u,d.props??{});return d.type!==m.Fragment&&(x.ref=s?y:v),m.cloneElement(d,x)});return r.displayName=`${n}.Slot`,r}Xt(fn,"createSlot");var M0=fn("Slot"),Nf=Symbol.for("radix.slottable");function L0(n){const r=Xt(o=>"child"in o?o.children(o.child):o.children,"Slottable");return r.displayName=`${n}.Slottable`,r.__radixId=Nf,r}Xt(L0,"createSlottable");var j0=Xt((n,r)=>{if("child"in n.props){const o=n.props.child;return m.isValidElement(o)?m.cloneElement(o,void 0,n.props.children(o.props.children)):null}return m.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function Of(n,r){const o={...r};for(const s in r){const l=n[s],u=r[s];/^on[A-Z]/.test(s)?l&&u?o[s]=(...p)=>{const h=u(...p);return l(...p),h}:l&&(o[s]=l):s==="style"?o[s]={...l,...u}:s==="className"&&(o[s]=[l,u].filter(Boolean).join(" "))}return{...n,...o}}Xt(Of,"mergeProps");function Tf(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}Xt(Tf,"getElementRef");function Af(n){return m.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Nf}Xt(Af,"isSlottable");var z0=Symbol.for("react.lazy");function Ml(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===z0&&"_payload"in n&&Df(n._payload)}Xt(Ml,"isLazyComponent");function Df(n){return typeof n=="object"&&n!==null&&"then"in n}Xt(Df,"isPromiseLike");var F0=Xt(n=>`${n} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),$0=Xt(n=>`${n} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),bs=ti[" use ".trim().toString()],V0=Object.defineProperty,U0=(n,r)=>V0(n,"name",{value:r,configurable:!0}),B0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=B0.reduce((n,r)=>{const o=fn(`Primitive.${r}`),s=m.forwardRef((l,u)=>{const{asChild:d,...p}=l,h=d?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(h,{...p,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function Mf(n,r){n&&ai.flushSync(()=>n.dispatchEvent(r))}U0(Mf,"dispatchDiscreteCustomEvent");var W0=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"}),H0=Object.defineProperty,Wt=(n,r)=>H0(n,"name",{value:r,configurable:!0});function Z0(n,r){const o=m.createContext(r);o.displayName=n+"Context";const s=Wt(u=>{const{children:d,...p}=u,h=m.useMemo(()=>p,Object.values(p));return O.jsx(o.Provider,{value:h,children:d})},"Provider");s.displayName=n+"Provider";function l(u,d={}){const{optional:p=!1}=d,h=m.useContext(o);if(h)return h;if(r!==void 0)return r;if(!p)throw new Error(`\`${u}\` must be used within \`${n}\``)}return Wt(l,"useContext"),[s,l]}Wt(Z0,"createContext");function nr(n,r=[]){let o=[];function s(u,d){const p=m.createContext(d);p.displayName=u+"Context";const h=o.length;o=[...o,d];const v=Wt(x=>{const{scope:w,children:E,..._}=x,b=w?.[n]?.[h]||p,S=m.useMemo(()=>_,Object.values(_));return O.jsx(b.Provider,{value:S,children:E})},"Provider");v.displayName=u+"Provider";function y(x,w,E={}){const{optional:_=!1}=E,b=w?.[n]?.[h]||p,S=m.useContext(b);if(S)return S;if(d!==void 0)return d;if(!_)throw new Error(`\`${x}\` must be used within \`${u}\``)}return Wt(y,"useContext"),[v,y]}Wt(s,"createContext");const l=Wt(()=>{const u=o.map(d=>m.createContext(d));return Wt(function(p){const h=p?.[n]||u;return m.useMemo(()=>({[`__scope${n}`]:{...p,[n]:h}}),[p,h])},"useScope")},"createScope");return l.scopeName=n,[s,Lf(l,...r)]}Wt(nr,"createContextScope");function Lf(...n){const r=n[0];if(n.length===1)return r;const o=Wt(()=>{const s=n.map(l=>({useScope:l(),scopeName:l.scopeName}));return Wt(function(u){const d=s.reduce((p,{useScope:h,scopeName:v})=>{const x=h(u)[`__scope${v}`];return{...p,...x}},{});return m.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])},"useComposedScopes")},"createScope");return o.scopeName=r.scopeName,o}Wt(Lf,"composeContextScopes");var q0=Object.defineProperty,ut=(n,r)=>q0(n,"name",{value:r,configurable:!0});function jf(n){const r=n+"CollectionProvider",[o,s]=nr(r),[l,u]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=ut(b=>{const{scope:S,children:A}=b,D=m.useRef(null),T=m.useRef(new Map).current;return O.jsx(l,{scope:S,itemMap:T,collectionRef:D,children:A})},"CollectionProvider");d.displayName=r;const p=n+"CollectionSlot",h=fn(p),v=m.forwardRef((b,S)=>{const{scope:A,children:D}=b,T=u(p,A),N=He(S,T.collectionRef);return O.jsx(h,{ref:N,children:D})});v.displayName=p;const y=n+"CollectionItemSlot",x="data-radix-collection-item",w=fn(y),E=m.forwardRef((b,S)=>{const{scope:A,children:D,...T}=b,N=m.useRef(null),U=He(S,N),L=u(y,A);return m.useEffect(()=>(L.itemMap.set(N,{ref:N,...T}),()=>{L.itemMap.delete(N)})),O.jsx(w,{[x]:"",ref:U,children:D})});E.displayName=y;function _(b){const S=u(n+"CollectionConsumer",b);return m.useCallback(()=>{const D=S.collectionRef.current;if(!D)return[];const T=Array.from(D.querySelectorAll(`[${x}]`));return Array.from(S.itemMap.values()).sort((L,W)=>T.indexOf(L.ref.current)-T.indexOf(W.ref.current))},[S.collectionRef,S.itemMap])}return ut(_,"useCollection"),[{Provider:d,Slot:v,ItemSlot:E},_,s]}ut(jf,"createCollection");var zf=new WeakMap,Ll=class Nr extends Map{static{ut(this,"OrderedDict")}#e;constructor(r){super(r),this.#e=[...super.keys()],zf.set(this,!0)}set(r,o){return zf.get(this)&&(this.has(r)?this.#e[this.#e.indexOf(r)]=r:this.#e.push(r)),super.set(r,o),this}insert(r,o,s){const l=this.has(o),u=this.#e.length,d=jl(r);let p=d>=0?d:u+d;const h=p<0||p>=u?-1:p;if(h===this.size||l&&h===this.size-1||h===-1)return this.set(o,s),this;const v=this.size+(l?0:1);d<0&&p++;const y=[...this.#e];let x,w=!1;for(let E=p;E<v;E++)if(p===E){let _=y[E];y[E]===o&&(_=y[E+1]),l&&this.delete(o),x=this.get(_),this.set(o,s)}else{!w&&y[E-1]===o&&(w=!0);const _=y[w?E:E-1],b=x;x=this.get(_),this.delete(_),this.set(_,b)}return this}with(r,o,s){const l=new Nr(this);return l.insert(r,o,s),l}before(r){const o=this.#e.indexOf(r)-1;if(!(o<0))return this.entryAt(o)}setBefore(r,o,s){const l=this.#e.indexOf(r);return l===-1?this:this.insert(l,o,s)}after(r){let o=this.#e.indexOf(r);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(r,o,s){const l=this.#e.indexOf(r);return l===-1?this:this.insert(l+1,o,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(r){const o=super.delete(r);return o&&this.#e.splice(this.#e.indexOf(r),1),o}deleteAt(r){const o=this.keyAt(r);return o!==void 0?this.delete(o):!1}at(r){const o=Cs(this.#e,r);if(o!==void 0)return this.get(o)}entryAt(r){const o=Cs(this.#e,r);if(o!==void 0)return[o,this.get(o)]}indexOf(r){return this.#e.indexOf(r)}keyAt(r){return Cs(this.#e,r)}from(r,o){const s=this.indexOf(r);if(s===-1)return;let l=s+o;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(r,o){const s=this.indexOf(r);if(s===-1)return;let l=s+o;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(r,o){let s=0;for(const l of this){if(Reflect.apply(r,o,[l,s,this]))return l;s++}}findIndex(r,o){let s=0;for(const l of this){if(Reflect.apply(r,o,[l,s,this]))return s;s++}return-1}filter(r,o){const s=[];let l=0;for(const u of this)Reflect.apply(r,o,[u,l,this])&&s.push(u),l++;return new Nr(s)}map(r,o){const s=[];let l=0;for(const u of this)s.push([u[0],Reflect.apply(r,o,[u,l,this])]),l++;return new Nr(s)}reduce(...r){const[o,s]=r;let l=0,u=s??this.at(0);for(const d of this)l===0&&r.length===1?u=d:u=Reflect.apply(o,this,[u,d,l,this]),l++;return u}reduceRight(...r){const[o,s]=r;let l=s??this.at(-1);for(let u=this.size-1;u>=0;u--){const d=this.at(u);u===this.size-1&&r.length===1?l=d:l=Reflect.apply(o,this,[l,d,u,this])}return l}toSorted(r){const o=[...this.entries()].sort(r);return new Nr(o)}toReversed(){const r=new Nr;for(let o=this.size-1;o>=0;o--){const s=this.keyAt(o),l=this.get(s);r.set(s,l)}return r}toSpliced(...r){const o=[...this.entries()];return o.splice(...r),new Nr(o)}slice(r,o){const s=new Nr;let l=this.size-1;if(r===void 0)return s;r<0&&(r=r+this.size),o!==void 0&&o>0&&(l=o-1);for(let u=r;u<=l;u++){const d=this.keyAt(u),p=this.get(d);s.set(d,p)}return s}every(r,o){let s=0;for(const l of this){if(!Reflect.apply(r,o,[l,s,this]))return!1;s++}return!0}some(r,o){let s=0;for(const l of this){if(Reflect.apply(r,o,[l,s,this]))return!0;s++}return!1}};function Cs(n,r){if("at"in Array.prototype)return Array.prototype.at.call(n,r);const o=Ff(n,r);return o===-1?void 0:n[o]}ut(Cs,"at");function Ff(n,r){const o=n.length,s=jl(r),l=s>=0?s:o+s;return l<0||l>=o?-1:l}ut(Ff,"toSafeIndex");function jl(n){return n!==n||n===0?0:Math.trunc(n)}ut(jl,"toSafeInteger");function K0(n){const r=n+"CollectionProvider",[o,s]=nr(r),[l,u]=o(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Ll,setItemMap:ut(()=>{},"setItemMap")}),d=ut(({state:T,...N})=>T?O.jsx(h,{...N,state:T}):O.jsx(p,{...N}),"CollectionProvider");d.displayName=r;const p=ut(T=>{const N=S();return O.jsx(h,{...T,state:N})},"CollectionInit");p.displayName=r+"Init";const h=ut(T=>{const{scope:N,children:U,state:L}=T,W=m.useRef(null),[F,re]=m.useState(null),me=He(W,re),[ke,oe]=L;return m.useEffect(()=>{if(!F)return;const he=Uf(()=>{});return he.observe(F,{childList:!0,subtree:!0}),()=>{he.disconnect()}},[F]),O.jsx(l,{scope:N,itemMap:ke,setItemMap:oe,collectionRef:me,collectionRefObject:W,collectionElement:F,children:U})},"CollectionProviderImpl");h.displayName=r+"Impl";const v=n+"CollectionSlot",y=fn(v),x=m.forwardRef((T,N)=>{const{scope:U,children:L}=T,W=u(v,U),F=He(N,W.collectionRef);return O.jsx(y,{ref:F,children:L})});x.displayName=v;const w=n+"CollectionItemSlot",E="data-radix-collection-item",_=fn(w),b=m.forwardRef((T,N)=>{const{scope:U,children:L,...W}=T,F=m.useRef(null),[re,me]=m.useState(null),ke=He(N,F,me),oe=u(w,U),{setItemMap:he}=oe,ve=m.useRef(W);$f(ve.current,W)||(ve.current=W);const Se=ve.current;return m.useEffect(()=>{const ue=Se;return he(ie=>re?ie.has(re)?ie.set(re,{...ue,element:re}).toSorted(zl):(ie.set(re,{...ue,element:re}),ie.toSorted(zl)):ie),()=>{he(ie=>!re||!ie.has(re)?ie:(ie.delete(re),new Ll(ie)))}},[re,Se,he]),O.jsx(_,{[E]:"",ref:ke,children:L})});b.displayName=w;function S(){return m.useState(new Ll)}ut(S,"useInitCollection");function A(T){const{itemMap:N}=u(n+"CollectionConsumer",T);return N}return ut(A,"useCollection"),[{Provider:d,Slot:x,ItemSlot:b},{createCollectionScope:s,useCollection:A,useInitCollection:S}]}ut(K0,"createCollection");function $f(n,r){if(n===r)return!0;if(typeof n!="object"||typeof r!="object"||n==null||r==null)return!1;const o=Object.keys(n),s=Object.keys(r);if(o.length!==s.length)return!1;for(const l of o)if(!Object.prototype.hasOwnProperty.call(r,l)||n[l]!==r[l])return!1;return!0}ut($f,"shallowEqual");function Vf(n,r){return!!(r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)}ut(Vf,"isElementPreceding");function zl(n,r){return!n[1].element||!r[1].element?0:Vf(n[1].element,r[1].element)?-1:1}ut(zl,"sortByDocumentPosition");function Uf(n){return new MutationObserver(o=>{for(const s of o)if(s.type==="childList"){n();return}})}ut(Uf,"getChildListObserver");var G0=Object.defineProperty,fo=(n,r)=>G0(n,"name",{value:r,configurable:!0}),Bf=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ve(n,r,{checkForDefaultPrevented:o=!0}={}){return fo(function(l){if(n?.(l),o===!1||!l||!l.defaultPrevented)return r?.(l)},"handleEvent")}fo(Ve,"composeEventHandlers");function Q0(n){if(!Bf)throw new Error("Cannot access window outside of the DOM");return n?.ownerDocument?.defaultView??window}fo(Q0,"getOwnerWindow");function Fl(n){if(!Bf)throw new Error("Cannot access document outside of the DOM");return n?.ownerDocument??document}fo(Fl,"getOwnerDocument");function Wf(n,r=!1){const{activeElement:o}=Fl(n);if(!o?.nodeName)return null;if(Hf(o)&&o.contentDocument)return Wf(o.contentDocument.body,r);if(r){const s=o.getAttribute("aria-activedescendant");if(s){const l=Fl(o).getElementById(s);if(l)return l}}return o}fo(Wf,"getActiveElement");function Hf(n){return n.tagName==="IFRAME"}fo(Hf,"isFrame");var ot=globalThis?.document?m.useLayoutEffect:()=>{},Y0=Object.defineProperty,X0=(n,r)=>Y0(n,"name",{value:r,configurable:!0}),Zf=ti[" useEffectEvent ".trim().toString()],qf=ti[" useInsertionEffect ".trim().toString()];function Kf(n){if(typeof Zf=="function")return Zf(n);const r=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof qf=="function"?qf(()=>{r.current=n}):ot(()=>{r.current=n}),m.useMemo(()=>((...o)=>r.current?.(...o)),[])}X0(Kf,"useEffectEvent");var J0=Object.defineProperty,li=(n,r)=>J0(n,"name",{value:r,configurable:!0}),ex=ti[" useInsertionEffect ".trim().toString()]||ot;function ui({prop:n,defaultProp:r,onChange:o=li(()=>{},"onChange"),caller:s}){const[l,u,d]=Gf({defaultProp:r,onChange:o}),p=n!==void 0,h=p?n:l,v=m.useCallback(y=>{if(p){const x=Qf(y)?y(n):y;x!==n&&d.current?.(x)}else u(y)},[p,n,u,d]);return[h,v]}li(ui,"useControllableState");function Gf({defaultProp:n,onChange:r}){const[o,s]=m.useState(n),l=m.useRef(o),u=m.useRef(r);return ex(()=>{u.current=r},[r]),m.useEffect(()=>{l.current!==o&&(u.current?.(o),l.current=o)},[o,l]),[o,s,u]}li(Gf,"useUncontrolledState");function Qf(n){return typeof n=="function"}li(Qf,"isFunction");var Yf=Symbol("RADIX:SYNC_STATE");function tx(n,r,o,s){const{prop:l,defaultProp:u,onChange:d,caller:p}=r,h=l!==void 0,v=Kf(d),y=[{...o,state:u}];s&&y.push(s);const[x,w]=m.useReducer((S,A)=>{if(A.type===Yf)return{...S,state:A.state};const D=n(S,A);return h&&!Object.is(D.state,S.state)&&v(D.state),D},...y),E=x.state,_=m.useRef(E);m.useEffect(()=>{_.current!==E&&(_.current=E,h||v(E))},[E,_,h]);const b=m.useMemo(()=>l!==void 0?{...x,state:l}:x,[x,l]);return m.useEffect(()=>{h&&!Object.is(l,x.state)&&w({type:Yf,state:l})},[l,x.state,h]),[b,w]}li(tx,"useControllableStateReducer");var nx=Object.defineProperty,Tn=(n,r)=>nx(n,"name",{value:r,configurable:!0});function Xf(n,r){return m.useReducer((o,s)=>r[o][s]??o,n)}Tn(Xf,"useStateMachine");var po=Tn(n=>{const{present:r,children:o}=n,s=Jf(r),l=typeof o=="function"?o({present:s.isPresent}):m.Children.only(o),u=ep(s.ref,tp(l));return typeof o=="function"||s.isPresent?m.cloneElement(l,{ref:u}):null},"Presence");function Jf(n){const[r,o]=m.useState(),s=m.useRef(null),l=m.useRef(n),u=m.useRef("none"),d=m.useRef(void 0),p=n?"mounted":"unmounted",[h,v]=Xf(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{h==="mounted"?(u.current=d.current??mo(s.current),d.current=void 0):u.current="none"},[h]),ot(()=>{const y=s.current,x=l.current;if(x!==n){const E=u.current,_=mo(y);n?(d.current=_,v("MOUNT")):_==="none"||y?.display==="none"?v("UNMOUNT"):v(x&&E!==_?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,v]),ot(()=>{if(r){let y;const x=r.ownerDocument.defaultView??window,w=Tn(_=>{const S=mo(s.current).includes(CSS.escape(_.animationName));if(_.target===r&&S&&(v("ANIMATION_END"),!l.current)){const A=r.style.animationFillMode;r.style.animationFillMode="forwards",y=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=A)})}},"handleAnimationEnd"),E=Tn(_=>{_.target===r&&(u.current=mo(s.current))},"handleAnimationStart");return r.addEventListener("animationstart",E),r.addEventListener("animationcancel",w),r.addEventListener("animationend",w),()=>{x.clearTimeout(y),r.removeEventListener("animationstart",E),r.removeEventListener("animationcancel",w),r.removeEventListener("animationend",w)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:m.useCallback(y=>{if(y){const x=getComputedStyle(y);s.current=x,d.current=mo(x)}else s.current=null;o(y)},[])}}Tn(Jf,"usePresence");function $l(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}Tn($l,"setRef");function ep(...n){const r=m.useRef(n);return r.current=n,m.useCallback(o=>{const s=r.current;let l=!1;const u=s.map(d=>{const p=$l(d,o);return!l&&typeof p=="function"&&(l=!0),p});if(l)return()=>{for(let d=0;d<u.length;d++){const p=u[d];typeof p=="function"?p():$l(s[d],null)}}},[])}Tn(ep,"useStableComposedRefs");function mo(n){return n?.animationName||"none"}Tn(mo,"getAnimationName");function tp(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}Tn(tp,"getElementRef");var rx=Object.defineProperty,ox=(n,r)=>rx(n,"name",{value:r,configurable:!0}),ix=ti[" useId ".trim().toString()]||(()=>{}),sx=0;function jt(n){const[r,o]=m.useState(ix());return ot(()=>{n||o(s=>s??String(sx++))},[n]),n||(r?`radix-${r}`:"")}ox(jt,"useId");var ax=Object.defineProperty,lx=(n,r)=>ax(n,"name",{value:r,configurable:!0}),ux=m.createContext(void 0);function np(n){const r=m.useContext(ux);return n||r||"ltr"}lx(np,"useDirection");var cx=Object.defineProperty,dx=(n,r)=>cx(n,"name",{value:r,configurable:!0});function pn(n){const r=m.useRef(n);return m.useEffect(()=>{r.current=n}),m.useMemo(()=>((...o)=>r.current?.(...o)),[])}dx(pn,"useCallbackRef");var fx=Object.defineProperty,ct=(n,r)=>fx(n,"name",{value:r,configurable:!0}),Vl="dismissableLayer.update",px="dismissableLayer.pointerDownOutside",mx="dismissableLayer.focusOutside",rp,op=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ul=m.forwardRef(ct(function(r,o){const{disableOutsidePointerEvents:s=!1,deferPointerDownOutside:l=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,onDismiss:v,...y}=r,x=m.useContext(op),[w,E]=m.useState(null),_=w?.ownerDocument??globalThis?.document,[,b]=m.useState({}),S=He(o,E),A=Array.from(x.layers),[D]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),T=D?A.indexOf(D):-1,N=w?A.indexOf(w):-1,U=x.layersWithOutsidePointerEventsDisabled.size>0,L=N>=T,W=m.useRef(!1),F=sp(oe=>{d?.(oe),h?.(oe),oe.defaultPrevented||v?.()},{ownerDocument:_,deferPointerDownOutside:l,isDeferredPointerDownOutsideRef:W,dismissableSurfaces:x.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(oe=>{if(!(oe instanceof Node))return!1;const he=[...x.branches].some(ve=>ve.contains(oe));return L&&!he},[x.branches,L])}),re=ap(oe=>{if(l&&W.current)return;const he=oe.target;[...x.branches].some(Se=>Se.contains(he))||(p?.(oe),h?.(oe),oe.defaultPrevented||v?.())},_),me=w?N===A.length-1:!1,ke=pn(oe=>{oe.key==="Escape"&&(u?.(oe),!oe.defaultPrevented&&v&&(oe.preventDefault(),v()))});return m.useEffect(()=>{if(me)return _.addEventListener("keydown",ke,{capture:!0}),()=>_.removeEventListener("keydown",ke,{capture:!0})},[_,me,ke]),m.useEffect(()=>{if(w)return s&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(rp=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),Bl(),()=>{s&&(x.layersWithOutsidePointerEventsDisabled.delete(w),x.layersWithOutsidePointerEventsDisabled.size===0&&(_.body.style.pointerEvents=rp))}},[w,_,s,x]),m.useEffect(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),Bl())},[w,x]),m.useEffect(()=>{const oe=ct(()=>b({}),"handleUpdate");return document.addEventListener(Vl,oe),()=>document.removeEventListener(Vl,oe)},[]),O.jsx(Be.div,{...y,ref:S,style:{pointerEvents:U?L?"auto":"none":void 0,...r.style},onFocusCapture:Ve(r.onFocusCapture,re.onFocusCapture),onBlurCapture:Ve(r.onBlurCapture,re.onBlurCapture),onPointerDownCapture:Ve(r.onPointerDownCapture,F.onPointerDownCapture)})},"DismissableLayer"));function ip(){const n=m.useContext(op),[r,o]=m.useState(null);return m.useEffect(()=>{if(r)return n.dismissableSurfaces.add(r),()=>{n.dismissableSurfaces.delete(r)}},[r,n.dismissableSurfaces]),o}ct(ip,"useDismissableLayerSurface");var hx=ct(()=>!0,"IS_TRUE");function sp(n,r){const{ownerDocument:o=globalThis?.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:l,dismissableSurfaces:u,shouldHandlePointerDownOutside:d=hx}=r,p=pn(n),h=m.useRef(!1),v=m.useRef(!1),y=m.useRef(new Map),x=m.useRef(()=>{});return m.useEffect(()=>{function w(){v.current=!1,l.current=!1,y.current.clear()}ct(w,"resetOutsideInteraction");function E(){return Array.from(y.current.values()).some(Boolean)}ct(E,"isOutsideInteractionIntercepted");function _(T){if(!v.current)return;const N=T.target;N instanceof Node&&[...u].some(L=>L.contains(N))||y.current.set(T.type,!0),T.type==="click"&&window.setTimeout(()=>{v.current&&x.current()},0)}ct(_,"handleInteractionCapture");function b(T){v.current&&y.current.set(T.type,!1)}ct(b,"handleInteractionBubble");const S=ct(T=>{if(T.target&&!h.current){let N=function(){o.removeEventListener("click",x.current);const L=E();w(),L||Wl(px,p,U,{discrete:!0})};if(ct(N,"handleAndDispatchPointerDownOutsideEvent"),!d(T.target)){o.removeEventListener("click",x.current),w(),h.current=!1;return}const U={originalEvent:T};v.current=!0,l.current=s&&T.button===0,y.current.clear(),!s||T.button!==0?N():(o.removeEventListener("click",x.current),x.current=N,o.addEventListener("click",x.current,{once:!0}))}else o.removeEventListener("click",x.current),w();h.current=!1},"handlePointerDown"),A=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const T of A)o.addEventListener(T,_,!0),o.addEventListener(T,b);const D=window.setTimeout(()=>{o.addEventListener("pointerdown",S)},0);return()=>{window.clearTimeout(D),o.removeEventListener("pointerdown",S),o.removeEventListener("click",x.current);for(const T of A)o.removeEventListener(T,_,!0),o.removeEventListener(T,b)}},[o,p,s,l,u,d]),{onPointerDownCapture:ct(()=>h.current=!0,"onPointerDownCapture")}}ct(sp,"usePointerDownOutside");function ap(n,r=globalThis?.document){const o=pn(n),s=m.useRef(!1);return m.useEffect(()=>{const l=ct(u=>{u.target&&!s.current&&Wl(mx,o,{originalEvent:u},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",l),()=>r.removeEventListener("focusin",l)},[r,o]),{onFocusCapture:ct(()=>s.current=!0,"onFocusCapture"),onBlurCapture:ct(()=>s.current=!1,"onBlurCapture")}}ct(ap,"useFocusOutside");function Bl(){const n=new CustomEvent(Vl);document.dispatchEvent(n)}ct(Bl,"dispatchUpdate");function Wl(n,r,o,{discrete:s}){const l=o.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&l.addEventListener(n,r,{once:!0}),s?Mf(l,u):l.dispatchEvent(u)}ct(Wl,"handleAndDispatchCustomEvent");var vx=Object.defineProperty,Et=(n,r)=>vx(n,"name",{value:r,configurable:!0}),Hl="focusScope.autoFocusOnMount",Zl="focusScope.autoFocusOnUnmount",lp={bubbles:!1,cancelable:!0},ql=m.forwardRef(Et(function(r,o){const{loop:s=!1,trapped:l=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...p}=r,[h,v]=m.useState(null),y=pn(u),x=pn(d),w=m.useRef(null),E=He(o,v),_=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(l){let S=function(N){if(_.paused||!h)return;const U=N.target;h.contains(U)?w.current=U:An(w.current,{select:!0})},A=function(N){if(_.paused||!h)return;const U=N.relatedTarget;U!==null&&(h.contains(U)||An(w.current,{select:!0}))},D=function(N){if(document.activeElement===document.body)for(const L of N)L.removedNodes.length>0&&An(h)};Et(S,"handleFocusIn"),Et(A,"handleFocusOut"),Et(D,"handleMutations"),document.addEventListener("focusin",S),document.addEventListener("focusout",A);const T=new MutationObserver(D);return h&&T.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",A),T.disconnect()}}},[l,h,_.paused]),m.useEffect(()=>{if(h){pp.add(_);const S=document.activeElement;if(!h.contains(S)){const D=new CustomEvent(Hl,lp);h.addEventListener(Hl,y),h.dispatchEvent(D),D.defaultPrevented||(up(hp(Kl(h)),{select:!0}),document.activeElement===S&&An(h))}return()=>{h.removeEventListener(Hl,y),setTimeout(()=>{const D=new CustomEvent(Zl,lp);h.addEventListener(Zl,x),h.dispatchEvent(D),D.defaultPrevented||An(S??document.body,{select:!0}),h.removeEventListener(Zl,x),pp.remove(_)},0)}}},[h,y,x,_]);const b=m.useCallback(S=>{if(!s&&!l||_.paused)return;const A=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,D=document.activeElement;if(A&&D){const T=S.currentTarget,[N,U]=cp(T);N&&U?!S.shiftKey&&D===U?(S.preventDefault(),s&&An(N,{select:!0})):S.shiftKey&&D===N&&(S.preventDefault(),s&&An(U,{select:!0})):D===T&&S.preventDefault()}},[s,l,_.paused]);return O.jsx(Be.div,{tabIndex:-1,...p,ref:E,onKeyDown:b})},"FocusScope"));function up(n,{select:r=!1}={}){const o=document.activeElement;for(const s of n)if(An(s,{select:r}),document.activeElement!==o)return}Et(up,"focusFirst");function cp(n){const r=Kl(n),o=Gl(r,n),s=Gl(r.reverse(),n);return[o,s]}Et(cp,"getTabbableEdges");function Kl(n){const r=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:Et(s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)r.push(o.currentNode);return r}Et(Kl,"getTabbableCandidates");function Gl(n,r){const o=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const s of n)if(!(o?!s.checkVisibility({checkVisibilityCSS:!0}):dp(s,{upTo:r})))return s}Et(Gl,"findVisible");function dp(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}Et(dp,"isHidden");function fp(n){return n instanceof HTMLInputElement&&"select"in n}Et(fp,"isSelectableInput");function An(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&fp(n)&&r&&n.select()}}Et(An,"focus");var pp=mp();function mp(){let n=[];return{add(r){const o=n[0];r!==o&&o?.pause(),n=Ql(n,r),n.unshift(r)},remove(r){n=Ql(n,r),n[0]?.resume()}}}Et(mp,"createFocusScopesStack");function Ql(n,r){const o=[...n],s=o.indexOf(r);return s!==-1&&o.splice(s,1),o}Et(Ql,"arrayRemove");function hp(n){return n.filter(r=>r.tagName!=="A")}Et(hp,"removeLinks");var gx=Object.defineProperty,yx=(n,r)=>gx(n,"name",{value:r,configurable:!0}),Yl=m.forwardRef(yx(function(r,o){const{container:s,...l}=r,[u,d]=m.useState(!1);ot(()=>d(!0),[]);const p=s||u&&globalThis?.document?.body;return p?ai.createPortal(O.jsx(Be.div,{...l,ref:o}),p):null},"Portal")),xx=Object.defineProperty,Xl=(n,r)=>xx(n,"name",{value:r,configurable:!0}),Rs=0,ho=null;function wx(n){return ci(),n.children}Xl(wx,"FocusGuards");function ci(){m.useEffect(()=>{ho||(ho={start:Jl(),end:Jl()});const{start:n,end:r}=ho;return document.body.firstElementChild!==n&&document.body.insertAdjacentElement("afterbegin",n),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),Rs++,()=>{Rs===1&&(ho?.start.remove(),ho?.end.remove(),ho=null),Rs=Math.max(0,Rs-1)}},[])}Xl(ci,"useFocusGuards");function Jl(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}Xl(Jl,"createFocusGuard");var mn=function(){return mn=Object.assign||function(r){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},mn.apply(this,arguments)};function vp(n,r){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(n);l<s.length;l++)r.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(n,s[l])&&(o[s[l]]=n[s[l]]);return o}function Sx(n,r,o){if(o||arguments.length===2)for(var s=0,l=r.length,u;s<l;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return n.concat(u||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var Is="right-scroll-bar-position",Ps="width-before-scroll-bar",_x="with-scroll-bars-hidden",kx="--removed-body-scroll-bar-size";function eu(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function Ex(n,r){var o=m.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(s){var l=o.value;l!==s&&(o.value=s,o.callback(s,l))}}}})[0];return o.callback=r,o.facade}var bx=typeof window<"u"?m.useLayoutEffect:m.useEffect,gp=new WeakMap;function Cx(n,r){var o=Ex(null,function(s){return n.forEach(function(l){return eu(l,s)})});return bx(function(){var s=gp.get(o);if(s){var l=new Set(s),u=new Set(n),d=o.current;l.forEach(function(p){u.has(p)||eu(p,null)}),u.forEach(function(p){l.has(p)||eu(p,d)})}gp.set(o,n)},[n]),o}function Rx(n){return n}function Ix(n,r){r===void 0&&(r=Rx);var o=[],s=!1,l={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(u){var d=r(u,s);return o.push(d),function(){o=o.filter(function(p){return p!==d})}},assignSyncMedium:function(u){for(s=!0;o.length;){var d=o;o=[],d.forEach(u)}o={push:function(p){return u(p)},filter:function(){return o}}},assignMedium:function(u){s=!0;var d=[];if(o.length){var p=o;o=[],p.forEach(u),d=o}var h=function(){var y=d;d=[],y.forEach(u)},v=function(){return Promise.resolve().then(h)};v(),o={push:function(y){d.push(y),v()},filter:function(y){return d=d.filter(y),o}}}};return l}function Px(n){n===void 0&&(n={});var r=Ix(null);return r.options=mn({async:!0,ssr:!1},n),r}var yp=function(n){var r=n.sideCar,o=vp(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return m.createElement(s,mn({},o))};yp.isSideCarExport=!0;function Nx(n,r){return n.useMedium(r),yp}var xp=Px(),tu=function(){},Ns=m.forwardRef(function(n,r){var o=m.useRef(null),s=m.useState({onScrollCapture:tu,onWheelCapture:tu,onTouchMoveCapture:tu}),l=s[0],u=s[1],d=n.forwardProps,p=n.children,h=n.className,v=n.removeScrollBar,y=n.enabled,x=n.shards,w=n.sideCar,E=n.noRelative,_=n.noIsolation,b=n.inert,S=n.allowPinchZoom,A=n.as,D=A===void 0?"div":A,T=n.gapMode,N=vp(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=w,L=Cx([o,r]),W=mn(mn({},N),l);return m.createElement(m.Fragment,null,y&&m.createElement(U,{sideCar:xp,removeScrollBar:v,shards:x,noRelative:E,noIsolation:_,inert:b,setCallbacks:u,allowPinchZoom:!!S,lockRef:o,gapMode:T}),d?m.cloneElement(m.Children.only(p),mn(mn({},W),{ref:L})):m.createElement(D,mn({},W,{className:h,ref:L}),p))});Ns.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ns.classNames={fullWidth:Ps,zeroRight:Is};var Ox=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tx(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=Ox();return r&&n.setAttribute("nonce",r),n}function Ax(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function Dx(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var Mx=function(){var n=0,r=null;return{add:function(o){n==0&&(r=Tx())&&(Ax(r,o),Dx(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Lx=function(){var n=Mx();return function(r,o){m.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},wp=function(){var n=Lx(),r=function(o){var s=o.styles,l=o.dynamic;return n(s,l),null};return r},jx={left:0,top:0,right:0,gap:0},nu=function(n){return parseInt(n||"",10)||0},zx=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],l=r[n==="padding"?"paddingRight":"marginRight"];return[nu(o),nu(s),nu(l)]},Fx=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return jx;var r=zx(n),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-o+r[2]-r[0])}},$x=wp(),vo="data-scroll-locked",Vx=function(n,r,o,s){var l=n.left,u=n.top,d=n.right,p=n.gap;return o===void 0&&(o="margin"),`
|
|
64
|
-
.`.concat(
|
|
63
|
+
`}const Ef=(...n)=>n.filter((r,o,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===o).join(" ").trim();const w0=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const S0=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,s)=>s?s.toUpperCase():o.toLowerCase());const Cf=n=>{const r=S0(n);return r.charAt(0).toUpperCase()+r.slice(1)};var Pl={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"};const _0=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},k0=m.createContext({}),b0=()=>m.useContext(k0),E0=m.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:s,className:l="",children:u,iconNode:d,...p},h)=>{const{size:v=24,strokeWidth:y=2,absoluteStrokeWidth:x=!1,color:w="currentColor",className:b=""}=b0()??{},_=s??x?Number(o??y)*24/Number(r??v):o??y;return m.createElement("svg",{ref:h,...Pl,width:r??v??Pl.width,height:r??v??Pl.height,stroke:n??w,strokeWidth:_,className:Ef("lucide",b,l),...!u&&!_0(p)&&{"aria-hidden":"true"},...p},[...d.map(([E,S])=>m.createElement(E,S)),...Array.isArray(u)?u:[u]])});const Yt=(n,r)=>{const o=m.forwardRef(({className:s,...l},u)=>m.createElement(E0,{ref:u,iconNode:r,className:Ef(`lucide-${w0(Cf(n))}`,`lucide-${n}`,s),...l}));return o.displayName=Cf(n),o};const Rf=Yt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Nl=Yt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const If=Yt("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const C0=Yt("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);const R0=Yt("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);const I0=Yt("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Ol=Yt("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const Pf=Yt("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);const P0=Yt("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const N0=Yt("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const O0=Yt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Tl={exports:{}},si={};var Nf;function T0(){if(Nf)return si;Nf=1;var n=fl(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(p,h,v){var y,x={},w=null,b=null;v!==void 0&&(w=""+v),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(b=h.ref);for(y in h)s.call(h,y)&&!u.hasOwnProperty(y)&&(x[y]=h[y]);if(p&&p.defaultProps)for(y in h=p.defaultProps,h)x[y]===void 0&&(x[y]=h[y]);return{$$typeof:r,type:p,key:w,ref:b,props:x,_owner:l.current}}return si.Fragment=o,si.jsx=d,si.jsxs=d,si}var Of;function A0(){return Of||(Of=1,Tl.exports=T0()),Tl.exports}var O=A0(),ai=$d(),D0=Object.defineProperty,Al=(n,r)=>D0(n,"name",{value:r,configurable:!0});function Dl(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}Al(Dl,"setRef");function zr(...n){return r=>{let o=!1;const s=n.map(l=>{const u=Dl(l,r);return!o&&typeof u=="function"&&(o=!0),u});if(o)return()=>{for(let l=0;l<s.length;l++){const u=s[l];typeof u=="function"?u():Dl(n[l],null)}}}}Al(zr,"composeRefs");function He(...n){return m.useCallback(zr(...n),n)}Al(He,"useComposedRefs");var M0=Object.defineProperty,Xt=(n,r)=>M0(n,"name",{value:r,configurable:!0});function fn(n){const r=m.forwardRef((o,s)=>{let{children:l,...u}=o,d=null,p=!1;const h=[];Ml(l)&&typeof Es=="function"&&(l=Es(l._payload)),m.Children.forEach(l,w=>{if(Mf(w)){p=!0;const b=w;let _="child"in b.props?b.props.child:b.props.children;Ml(_)&&typeof Es=="function"&&(_=Es(_._payload)),d=z0(b,_),h.push(d?.props?.children)}else h.push(w)}),d?d=m.cloneElement(d,void 0,h):!p&&m.Children.count(l)===1&&m.isValidElement(l)&&(d=l);const v=d?Df(d):void 0,y=He(s,v);if(!d){if(l||l===0)throw new Error(p?V0(n):$0(n));return l}const x=Af(u,d.props??{});return d.type!==m.Fragment&&(x.ref=s?y:v),m.cloneElement(d,x)});return r.displayName=`${n}.Slot`,r}Xt(fn,"createSlot");var L0=fn("Slot"),Tf=Symbol.for("radix.slottable");function j0(n){const r=Xt(o=>"child"in o?o.children(o.child):o.children,"Slottable");return r.displayName=`${n}.Slottable`,r.__radixId=Tf,r}Xt(j0,"createSlottable");var z0=Xt((n,r)=>{if("child"in n.props){const o=n.props.child;return m.isValidElement(o)?m.cloneElement(o,void 0,n.props.children(o.props.children)):null}return m.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function Af(n,r){const o={...r};for(const s in r){const l=n[s],u=r[s];/^on[A-Z]/.test(s)?l&&u?o[s]=(...p)=>{const h=u(...p);return l(...p),h}:l&&(o[s]=l):s==="style"?o[s]={...l,...u}:s==="className"&&(o[s]=[l,u].filter(Boolean).join(" "))}return{...n,...o}}Xt(Af,"mergeProps");function Df(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}Xt(Df,"getElementRef");function Mf(n){return m.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Tf}Xt(Mf,"isSlottable");var F0=Symbol.for("react.lazy");function Ml(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===F0&&"_payload"in n&&Lf(n._payload)}Xt(Ml,"isLazyComponent");function Lf(n){return typeof n=="object"&&n!==null&&"then"in n}Xt(Lf,"isPromiseLike");var $0=Xt(n=>`${n} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),V0=Xt(n=>`${n} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Es=ti[" use ".trim().toString()],U0=Object.defineProperty,B0=(n,r)=>U0(n,"name",{value:r,configurable:!0}),W0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=W0.reduce((n,r)=>{const o=fn(`Primitive.${r}`),s=m.forwardRef((l,u)=>{const{asChild:d,...p}=l,h=d?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(h,{...p,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function jf(n,r){n&&ai.flushSync(()=>n.dispatchEvent(r))}B0(jf,"dispatchDiscreteCustomEvent");var H0=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"}),Z0=Object.defineProperty,Wt=(n,r)=>Z0(n,"name",{value:r,configurable:!0});function q0(n,r){const o=m.createContext(r);o.displayName=n+"Context";const s=Wt(u=>{const{children:d,...p}=u,h=m.useMemo(()=>p,Object.values(p));return O.jsx(o.Provider,{value:h,children:d})},"Provider");s.displayName=n+"Provider";function l(u,d={}){const{optional:p=!1}=d,h=m.useContext(o);if(h)return h;if(r!==void 0)return r;if(!p)throw new Error(`\`${u}\` must be used within \`${n}\``)}return Wt(l,"useContext"),[s,l]}Wt(q0,"createContext");function nr(n,r=[]){let o=[];function s(u,d){const p=m.createContext(d);p.displayName=u+"Context";const h=o.length;o=[...o,d];const v=Wt(x=>{const{scope:w,children:b,..._}=x,E=w?.[n]?.[h]||p,S=m.useMemo(()=>_,Object.values(_));return O.jsx(E.Provider,{value:S,children:b})},"Provider");v.displayName=u+"Provider";function y(x,w,b={}){const{optional:_=!1}=b,E=w?.[n]?.[h]||p,S=m.useContext(E);if(S)return S;if(d!==void 0)return d;if(!_)throw new Error(`\`${x}\` must be used within \`${u}\``)}return Wt(y,"useContext"),[v,y]}Wt(s,"createContext");const l=Wt(()=>{const u=o.map(d=>m.createContext(d));return Wt(function(p){const h=p?.[n]||u;return m.useMemo(()=>({[`__scope${n}`]:{...p,[n]:h}}),[p,h])},"useScope")},"createScope");return l.scopeName=n,[s,zf(l,...r)]}Wt(nr,"createContextScope");function zf(...n){const r=n[0];if(n.length===1)return r;const o=Wt(()=>{const s=n.map(l=>({useScope:l(),scopeName:l.scopeName}));return Wt(function(u){const d=s.reduce((p,{useScope:h,scopeName:v})=>{const x=h(u)[`__scope${v}`];return{...p,...x}},{});return m.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])},"useComposedScopes")},"createScope");return o.scopeName=r.scopeName,o}Wt(zf,"composeContextScopes");var K0=Object.defineProperty,ut=(n,r)=>K0(n,"name",{value:r,configurable:!0});function Ff(n){const r=n+"CollectionProvider",[o,s]=nr(r),[l,u]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=ut(E=>{const{scope:S,children:A}=E,D=m.useRef(null),T=m.useRef(new Map).current;return O.jsx(l,{scope:S,itemMap:T,collectionRef:D,children:A})},"CollectionProvider");d.displayName=r;const p=n+"CollectionSlot",h=fn(p),v=m.forwardRef((E,S)=>{const{scope:A,children:D}=E,T=u(p,A),N=He(S,T.collectionRef);return O.jsx(h,{ref:N,children:D})});v.displayName=p;const y=n+"CollectionItemSlot",x="data-radix-collection-item",w=fn(y),b=m.forwardRef((E,S)=>{const{scope:A,children:D,...T}=E,N=m.useRef(null),U=He(S,N),L=u(y,A);return m.useEffect(()=>(L.itemMap.set(N,{ref:N,...T}),()=>{L.itemMap.delete(N)})),O.jsx(w,{[x]:"",ref:U,children:D})});b.displayName=y;function _(E){const S=u(n+"CollectionConsumer",E);return m.useCallback(()=>{const D=S.collectionRef.current;if(!D)return[];const T=Array.from(D.querySelectorAll(`[${x}]`));return Array.from(S.itemMap.values()).sort((L,W)=>T.indexOf(L.ref.current)-T.indexOf(W.ref.current))},[S.collectionRef,S.itemMap])}return ut(_,"useCollection"),[{Provider:d,Slot:v,ItemSlot:b},_,s]}ut(Ff,"createCollection");var $f=new WeakMap,Ll=class Nr extends Map{static{ut(this,"OrderedDict")}#e;constructor(r){super(r),this.#e=[...super.keys()],$f.set(this,!0)}set(r,o){return $f.get(this)&&(this.has(r)?this.#e[this.#e.indexOf(r)]=r:this.#e.push(r)),super.set(r,o),this}insert(r,o,s){const l=this.has(o),u=this.#e.length,d=jl(r);let p=d>=0?d:u+d;const h=p<0||p>=u?-1:p;if(h===this.size||l&&h===this.size-1||h===-1)return this.set(o,s),this;const v=this.size+(l?0:1);d<0&&p++;const y=[...this.#e];let x,w=!1;for(let b=p;b<v;b++)if(p===b){let _=y[b];y[b]===o&&(_=y[b+1]),l&&this.delete(o),x=this.get(_),this.set(o,s)}else{!w&&y[b-1]===o&&(w=!0);const _=y[w?b:b-1],E=x;x=this.get(_),this.delete(_),this.set(_,E)}return this}with(r,o,s){const l=new Nr(this);return l.insert(r,o,s),l}before(r){const o=this.#e.indexOf(r)-1;if(!(o<0))return this.entryAt(o)}setBefore(r,o,s){const l=this.#e.indexOf(r);return l===-1?this:this.insert(l,o,s)}after(r){let o=this.#e.indexOf(r);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(r,o,s){const l=this.#e.indexOf(r);return l===-1?this:this.insert(l+1,o,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(r){const o=super.delete(r);return o&&this.#e.splice(this.#e.indexOf(r),1),o}deleteAt(r){const o=this.keyAt(r);return o!==void 0?this.delete(o):!1}at(r){const o=Cs(this.#e,r);if(o!==void 0)return this.get(o)}entryAt(r){const o=Cs(this.#e,r);if(o!==void 0)return[o,this.get(o)]}indexOf(r){return this.#e.indexOf(r)}keyAt(r){return Cs(this.#e,r)}from(r,o){const s=this.indexOf(r);if(s===-1)return;let l=s+o;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(r,o){const s=this.indexOf(r);if(s===-1)return;let l=s+o;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(r,o){let s=0;for(const l of this){if(Reflect.apply(r,o,[l,s,this]))return l;s++}}findIndex(r,o){let s=0;for(const l of this){if(Reflect.apply(r,o,[l,s,this]))return s;s++}return-1}filter(r,o){const s=[];let l=0;for(const u of this)Reflect.apply(r,o,[u,l,this])&&s.push(u),l++;return new Nr(s)}map(r,o){const s=[];let l=0;for(const u of this)s.push([u[0],Reflect.apply(r,o,[u,l,this])]),l++;return new Nr(s)}reduce(...r){const[o,s]=r;let l=0,u=s??this.at(0);for(const d of this)l===0&&r.length===1?u=d:u=Reflect.apply(o,this,[u,d,l,this]),l++;return u}reduceRight(...r){const[o,s]=r;let l=s??this.at(-1);for(let u=this.size-1;u>=0;u--){const d=this.at(u);u===this.size-1&&r.length===1?l=d:l=Reflect.apply(o,this,[l,d,u,this])}return l}toSorted(r){const o=[...this.entries()].sort(r);return new Nr(o)}toReversed(){const r=new Nr;for(let o=this.size-1;o>=0;o--){const s=this.keyAt(o),l=this.get(s);r.set(s,l)}return r}toSpliced(...r){const o=[...this.entries()];return o.splice(...r),new Nr(o)}slice(r,o){const s=new Nr;let l=this.size-1;if(r===void 0)return s;r<0&&(r=r+this.size),o!==void 0&&o>0&&(l=o-1);for(let u=r;u<=l;u++){const d=this.keyAt(u),p=this.get(d);s.set(d,p)}return s}every(r,o){let s=0;for(const l of this){if(!Reflect.apply(r,o,[l,s,this]))return!1;s++}return!0}some(r,o){let s=0;for(const l of this){if(Reflect.apply(r,o,[l,s,this]))return!0;s++}return!1}};function Cs(n,r){if("at"in Array.prototype)return Array.prototype.at.call(n,r);const o=Vf(n,r);return o===-1?void 0:n[o]}ut(Cs,"at");function Vf(n,r){const o=n.length,s=jl(r),l=s>=0?s:o+s;return l<0||l>=o?-1:l}ut(Vf,"toSafeIndex");function jl(n){return n!==n||n===0?0:Math.trunc(n)}ut(jl,"toSafeInteger");function G0(n){const r=n+"CollectionProvider",[o,s]=nr(r),[l,u]=o(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Ll,setItemMap:ut(()=>{},"setItemMap")}),d=ut(({state:T,...N})=>T?O.jsx(h,{...N,state:T}):O.jsx(p,{...N}),"CollectionProvider");d.displayName=r;const p=ut(T=>{const N=S();return O.jsx(h,{...T,state:N})},"CollectionInit");p.displayName=r+"Init";const h=ut(T=>{const{scope:N,children:U,state:L}=T,W=m.useRef(null),[F,re]=m.useState(null),me=He(W,re),[ke,oe]=L;return m.useEffect(()=>{if(!F)return;const he=Wf(()=>{});return he.observe(F,{childList:!0,subtree:!0}),()=>{he.disconnect()}},[F]),O.jsx(l,{scope:N,itemMap:ke,setItemMap:oe,collectionRef:me,collectionRefObject:W,collectionElement:F,children:U})},"CollectionProviderImpl");h.displayName=r+"Impl";const v=n+"CollectionSlot",y=fn(v),x=m.forwardRef((T,N)=>{const{scope:U,children:L}=T,W=u(v,U),F=He(N,W.collectionRef);return O.jsx(y,{ref:F,children:L})});x.displayName=v;const w=n+"CollectionItemSlot",b="data-radix-collection-item",_=fn(w),E=m.forwardRef((T,N)=>{const{scope:U,children:L,...W}=T,F=m.useRef(null),[re,me]=m.useState(null),ke=He(N,F,me),oe=u(w,U),{setItemMap:he}=oe,ve=m.useRef(W);Uf(ve.current,W)||(ve.current=W);const _e=ve.current;return m.useEffect(()=>{const ue=_e;return he(se=>re?se.has(re)?se.set(re,{...ue,element:re}).toSorted(zl):(se.set(re,{...ue,element:re}),se.toSorted(zl)):se),()=>{he(se=>!re||!se.has(re)?se:(se.delete(re),new Ll(se)))}},[re,_e,he]),O.jsx(_,{[b]:"",ref:ke,children:L})});E.displayName=w;function S(){return m.useState(new Ll)}ut(S,"useInitCollection");function A(T){const{itemMap:N}=u(n+"CollectionConsumer",T);return N}return ut(A,"useCollection"),[{Provider:d,Slot:x,ItemSlot:E},{createCollectionScope:s,useCollection:A,useInitCollection:S}]}ut(G0,"createCollection");function Uf(n,r){if(n===r)return!0;if(typeof n!="object"||typeof r!="object"||n==null||r==null)return!1;const o=Object.keys(n),s=Object.keys(r);if(o.length!==s.length)return!1;for(const l of o)if(!Object.prototype.hasOwnProperty.call(r,l)||n[l]!==r[l])return!1;return!0}ut(Uf,"shallowEqual");function Bf(n,r){return!!(r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)}ut(Bf,"isElementPreceding");function zl(n,r){return!n[1].element||!r[1].element?0:Bf(n[1].element,r[1].element)?-1:1}ut(zl,"sortByDocumentPosition");function Wf(n){return new MutationObserver(o=>{for(const s of o)if(s.type==="childList"){n();return}})}ut(Wf,"getChildListObserver");var Q0=Object.defineProperty,fo=(n,r)=>Q0(n,"name",{value:r,configurable:!0}),Hf=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ve(n,r,{checkForDefaultPrevented:o=!0}={}){return fo(function(l){if(n?.(l),o===!1||!l||!l.defaultPrevented)return r?.(l)},"handleEvent")}fo(Ve,"composeEventHandlers");function Y0(n){if(!Hf)throw new Error("Cannot access window outside of the DOM");return n?.ownerDocument?.defaultView??window}fo(Y0,"getOwnerWindow");function Fl(n){if(!Hf)throw new Error("Cannot access document outside of the DOM");return n?.ownerDocument??document}fo(Fl,"getOwnerDocument");function Zf(n,r=!1){const{activeElement:o}=Fl(n);if(!o?.nodeName)return null;if(qf(o)&&o.contentDocument)return Zf(o.contentDocument.body,r);if(r){const s=o.getAttribute("aria-activedescendant");if(s){const l=Fl(o).getElementById(s);if(l)return l}}return o}fo(Zf,"getActiveElement");function qf(n){return n.tagName==="IFRAME"}fo(qf,"isFrame");var ot=globalThis?.document?m.useLayoutEffect:()=>{},X0=Object.defineProperty,J0=(n,r)=>X0(n,"name",{value:r,configurable:!0}),Kf=ti[" useEffectEvent ".trim().toString()],Gf=ti[" useInsertionEffect ".trim().toString()];function Qf(n){if(typeof Kf=="function")return Kf(n);const r=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Gf=="function"?Gf(()=>{r.current=n}):ot(()=>{r.current=n}),m.useMemo(()=>((...o)=>r.current?.(...o)),[])}J0(Qf,"useEffectEvent");var ex=Object.defineProperty,li=(n,r)=>ex(n,"name",{value:r,configurable:!0}),tx=ti[" useInsertionEffect ".trim().toString()]||ot;function ui({prop:n,defaultProp:r,onChange:o=li(()=>{},"onChange"),caller:s}){const[l,u,d]=Yf({defaultProp:r,onChange:o}),p=n!==void 0,h=p?n:l,v=m.useCallback(y=>{if(p){const x=Xf(y)?y(n):y;x!==n&&d.current?.(x)}else u(y)},[p,n,u,d]);return[h,v]}li(ui,"useControllableState");function Yf({defaultProp:n,onChange:r}){const[o,s]=m.useState(n),l=m.useRef(o),u=m.useRef(r);return tx(()=>{u.current=r},[r]),m.useEffect(()=>{l.current!==o&&(u.current?.(o),l.current=o)},[o,l]),[o,s,u]}li(Yf,"useUncontrolledState");function Xf(n){return typeof n=="function"}li(Xf,"isFunction");var Jf=Symbol("RADIX:SYNC_STATE");function nx(n,r,o,s){const{prop:l,defaultProp:u,onChange:d,caller:p}=r,h=l!==void 0,v=Qf(d),y=[{...o,state:u}];s&&y.push(s);const[x,w]=m.useReducer((S,A)=>{if(A.type===Jf)return{...S,state:A.state};const D=n(S,A);return h&&!Object.is(D.state,S.state)&&v(D.state),D},...y),b=x.state,_=m.useRef(b);m.useEffect(()=>{_.current!==b&&(_.current=b,h||v(b))},[b,_,h]);const E=m.useMemo(()=>l!==void 0?{...x,state:l}:x,[x,l]);return m.useEffect(()=>{h&&!Object.is(l,x.state)&&w({type:Jf,state:l})},[l,x.state,h]),[E,w]}li(nx,"useControllableStateReducer");var rx=Object.defineProperty,Tn=(n,r)=>rx(n,"name",{value:r,configurable:!0});function ep(n,r){return m.useReducer((o,s)=>r[o][s]??o,n)}Tn(ep,"useStateMachine");var po=Tn(n=>{const{present:r,children:o}=n,s=tp(r),l=typeof o=="function"?o({present:s.isPresent}):m.Children.only(o),u=np(s.ref,rp(l));return typeof o=="function"||s.isPresent?m.cloneElement(l,{ref:u}):null},"Presence");function tp(n){const[r,o]=m.useState(),s=m.useRef(null),l=m.useRef(n),u=m.useRef("none"),d=m.useRef(void 0),p=n?"mounted":"unmounted",[h,v]=ep(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{h==="mounted"?(u.current=d.current??mo(s.current),d.current=void 0):u.current="none"},[h]),ot(()=>{const y=s.current,x=l.current;if(x!==n){const b=u.current,_=mo(y);n?(d.current=_,v("MOUNT")):_==="none"||y?.display==="none"?v("UNMOUNT"):v(x&&b!==_?"ANIMATION_OUT":"UNMOUNT"),l.current=n}},[n,v]),ot(()=>{if(r){let y;const x=r.ownerDocument.defaultView??window,w=Tn(_=>{const S=mo(s.current).includes(CSS.escape(_.animationName));if(_.target===r&&S&&(v("ANIMATION_END"),!l.current)){const A=r.style.animationFillMode;r.style.animationFillMode="forwards",y=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=A)})}},"handleAnimationEnd"),b=Tn(_=>{_.target===r&&(u.current=mo(s.current))},"handleAnimationStart");return r.addEventListener("animationstart",b),r.addEventListener("animationcancel",w),r.addEventListener("animationend",w),()=>{x.clearTimeout(y),r.removeEventListener("animationstart",b),r.removeEventListener("animationcancel",w),r.removeEventListener("animationend",w)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:m.useCallback(y=>{if(y){const x=getComputedStyle(y);s.current=x,d.current=mo(x)}else s.current=null;o(y)},[])}}Tn(tp,"usePresence");function $l(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}Tn($l,"setRef");function np(...n){const r=m.useRef(n);return r.current=n,m.useCallback(o=>{const s=r.current;let l=!1;const u=s.map(d=>{const p=$l(d,o);return!l&&typeof p=="function"&&(l=!0),p});if(l)return()=>{for(let d=0;d<u.length;d++){const p=u[d];typeof p=="function"?p():$l(s[d],null)}}},[])}Tn(np,"useStableComposedRefs");function mo(n){return n?.animationName||"none"}Tn(mo,"getAnimationName");function rp(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}Tn(rp,"getElementRef");var ox=Object.defineProperty,ix=(n,r)=>ox(n,"name",{value:r,configurable:!0}),sx=ti[" useId ".trim().toString()]||(()=>{}),ax=0;function jt(n){const[r,o]=m.useState(sx());return ot(()=>{n||o(s=>s??String(ax++))},[n]),n||(r?`radix-${r}`:"")}ix(jt,"useId");var lx=Object.defineProperty,ux=(n,r)=>lx(n,"name",{value:r,configurable:!0}),cx=m.createContext(void 0);function op(n){const r=m.useContext(cx);return n||r||"ltr"}ux(op,"useDirection");var dx=Object.defineProperty,fx=(n,r)=>dx(n,"name",{value:r,configurable:!0});function pn(n){const r=m.useRef(n);return m.useEffect(()=>{r.current=n}),m.useMemo(()=>((...o)=>r.current?.(...o)),[])}fx(pn,"useCallbackRef");var px=Object.defineProperty,ct=(n,r)=>px(n,"name",{value:r,configurable:!0}),Vl="dismissableLayer.update",mx="dismissableLayer.pointerDownOutside",hx="dismissableLayer.focusOutside",ip,sp=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ul=m.forwardRef(ct(function(r,o){const{disableOutsidePointerEvents:s=!1,deferPointerDownOutside:l=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,onDismiss:v,...y}=r,x=m.useContext(sp),[w,b]=m.useState(null),_=w?.ownerDocument??globalThis?.document,[,E]=m.useState({}),S=He(o,b),A=Array.from(x.layers),[D]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),T=D?A.indexOf(D):-1,N=w?A.indexOf(w):-1,U=x.layersWithOutsidePointerEventsDisabled.size>0,L=N>=T,W=m.useRef(!1),F=lp(oe=>{d?.(oe),h?.(oe),oe.defaultPrevented||v?.()},{ownerDocument:_,deferPointerDownOutside:l,isDeferredPointerDownOutsideRef:W,dismissableSurfaces:x.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(oe=>{if(!(oe instanceof Node))return!1;const he=[...x.branches].some(ve=>ve.contains(oe));return L&&!he},[x.branches,L])}),re=up(oe=>{if(l&&W.current)return;const he=oe.target;[...x.branches].some(_e=>_e.contains(he))||(p?.(oe),h?.(oe),oe.defaultPrevented||v?.())},_),me=w?N===A.length-1:!1,ke=pn(oe=>{oe.key==="Escape"&&(u?.(oe),!oe.defaultPrevented&&v&&(oe.preventDefault(),v()))});return m.useEffect(()=>{if(me)return _.addEventListener("keydown",ke,{capture:!0}),()=>_.removeEventListener("keydown",ke,{capture:!0})},[_,me,ke]),m.useEffect(()=>{if(w)return s&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(ip=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),Bl(),()=>{s&&(x.layersWithOutsidePointerEventsDisabled.delete(w),x.layersWithOutsidePointerEventsDisabled.size===0&&(_.body.style.pointerEvents=ip))}},[w,_,s,x]),m.useEffect(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),Bl())},[w,x]),m.useEffect(()=>{const oe=ct(()=>E({}),"handleUpdate");return document.addEventListener(Vl,oe),()=>document.removeEventListener(Vl,oe)},[]),O.jsx(Be.div,{...y,ref:S,style:{pointerEvents:U?L?"auto":"none":void 0,...r.style},onFocusCapture:Ve(r.onFocusCapture,re.onFocusCapture),onBlurCapture:Ve(r.onBlurCapture,re.onBlurCapture),onPointerDownCapture:Ve(r.onPointerDownCapture,F.onPointerDownCapture)})},"DismissableLayer"));function ap(){const n=m.useContext(sp),[r,o]=m.useState(null);return m.useEffect(()=>{if(r)return n.dismissableSurfaces.add(r),()=>{n.dismissableSurfaces.delete(r)}},[r,n.dismissableSurfaces]),o}ct(ap,"useDismissableLayerSurface");var vx=ct(()=>!0,"IS_TRUE");function lp(n,r){const{ownerDocument:o=globalThis?.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:l,dismissableSurfaces:u,shouldHandlePointerDownOutside:d=vx}=r,p=pn(n),h=m.useRef(!1),v=m.useRef(!1),y=m.useRef(new Map),x=m.useRef(()=>{});return m.useEffect(()=>{function w(){v.current=!1,l.current=!1,y.current.clear()}ct(w,"resetOutsideInteraction");function b(){return Array.from(y.current.values()).some(Boolean)}ct(b,"isOutsideInteractionIntercepted");function _(T){if(!v.current)return;const N=T.target;N instanceof Node&&[...u].some(L=>L.contains(N))||y.current.set(T.type,!0),T.type==="click"&&window.setTimeout(()=>{v.current&&x.current()},0)}ct(_,"handleInteractionCapture");function E(T){v.current&&y.current.set(T.type,!1)}ct(E,"handleInteractionBubble");const S=ct(T=>{if(T.target&&!h.current){let N=function(){o.removeEventListener("click",x.current);const L=b();w(),L||Wl(mx,p,U,{discrete:!0})};if(ct(N,"handleAndDispatchPointerDownOutsideEvent"),!d(T.target)){o.removeEventListener("click",x.current),w(),h.current=!1;return}const U={originalEvent:T};v.current=!0,l.current=s&&T.button===0,y.current.clear(),!s||T.button!==0?N():(o.removeEventListener("click",x.current),x.current=N,o.addEventListener("click",x.current,{once:!0}))}else o.removeEventListener("click",x.current),w();h.current=!1},"handlePointerDown"),A=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const T of A)o.addEventListener(T,_,!0),o.addEventListener(T,E);const D=window.setTimeout(()=>{o.addEventListener("pointerdown",S)},0);return()=>{window.clearTimeout(D),o.removeEventListener("pointerdown",S),o.removeEventListener("click",x.current);for(const T of A)o.removeEventListener(T,_,!0),o.removeEventListener(T,E)}},[o,p,s,l,u,d]),{onPointerDownCapture:ct(()=>h.current=!0,"onPointerDownCapture")}}ct(lp,"usePointerDownOutside");function up(n,r=globalThis?.document){const o=pn(n),s=m.useRef(!1);return m.useEffect(()=>{const l=ct(u=>{u.target&&!s.current&&Wl(hx,o,{originalEvent:u},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",l),()=>r.removeEventListener("focusin",l)},[r,o]),{onFocusCapture:ct(()=>s.current=!0,"onFocusCapture"),onBlurCapture:ct(()=>s.current=!1,"onBlurCapture")}}ct(up,"useFocusOutside");function Bl(){const n=new CustomEvent(Vl);document.dispatchEvent(n)}ct(Bl,"dispatchUpdate");function Wl(n,r,o,{discrete:s}){const l=o.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&l.addEventListener(n,r,{once:!0}),s?jf(l,u):l.dispatchEvent(u)}ct(Wl,"handleAndDispatchCustomEvent");var gx=Object.defineProperty,bt=(n,r)=>gx(n,"name",{value:r,configurable:!0}),Hl="focusScope.autoFocusOnMount",Zl="focusScope.autoFocusOnUnmount",cp={bubbles:!1,cancelable:!0},ql=m.forwardRef(bt(function(r,o){const{loop:s=!1,trapped:l=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...p}=r,[h,v]=m.useState(null),y=pn(u),x=pn(d),w=m.useRef(null),b=He(o,v),_=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(l){let S=function(N){if(_.paused||!h)return;const U=N.target;h.contains(U)?w.current=U:An(w.current,{select:!0})},A=function(N){if(_.paused||!h)return;const U=N.relatedTarget;U!==null&&(h.contains(U)||An(w.current,{select:!0}))},D=function(N){if(document.activeElement===document.body)for(const L of N)L.removedNodes.length>0&&An(h)};bt(S,"handleFocusIn"),bt(A,"handleFocusOut"),bt(D,"handleMutations"),document.addEventListener("focusin",S),document.addEventListener("focusout",A);const T=new MutationObserver(D);return h&&T.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",A),T.disconnect()}}},[l,h,_.paused]),m.useEffect(()=>{if(h){hp.add(_);const S=document.activeElement;if(!h.contains(S)){const D=new CustomEvent(Hl,cp);h.addEventListener(Hl,y),h.dispatchEvent(D),D.defaultPrevented||(dp(gp(Kl(h)),{select:!0}),document.activeElement===S&&An(h))}return()=>{h.removeEventListener(Hl,y),setTimeout(()=>{const D=new CustomEvent(Zl,cp);h.addEventListener(Zl,x),h.dispatchEvent(D),D.defaultPrevented||An(S??document.body,{select:!0}),h.removeEventListener(Zl,x),hp.remove(_)},0)}}},[h,y,x,_]);const E=m.useCallback(S=>{if(!s&&!l||_.paused)return;const A=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,D=document.activeElement;if(A&&D){const T=S.currentTarget,[N,U]=fp(T);N&&U?!S.shiftKey&&D===U?(S.preventDefault(),s&&An(N,{select:!0})):S.shiftKey&&D===N&&(S.preventDefault(),s&&An(U,{select:!0})):D===T&&S.preventDefault()}},[s,l,_.paused]);return O.jsx(Be.div,{tabIndex:-1,...p,ref:b,onKeyDown:E})},"FocusScope"));function dp(n,{select:r=!1}={}){const o=document.activeElement;for(const s of n)if(An(s,{select:r}),document.activeElement!==o)return}bt(dp,"focusFirst");function fp(n){const r=Kl(n),o=Gl(r,n),s=Gl(r.reverse(),n);return[o,s]}bt(fp,"getTabbableEdges");function Kl(n){const r=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:bt(s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)r.push(o.currentNode);return r}bt(Kl,"getTabbableCandidates");function Gl(n,r){const o=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const s of n)if(!(o?!s.checkVisibility({checkVisibilityCSS:!0}):pp(s,{upTo:r})))return s}bt(Gl,"findVisible");function pp(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}bt(pp,"isHidden");function mp(n){return n instanceof HTMLInputElement&&"select"in n}bt(mp,"isSelectableInput");function An(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&mp(n)&&r&&n.select()}}bt(An,"focus");var hp=vp();function vp(){let n=[];return{add(r){const o=n[0];r!==o&&o?.pause(),n=Ql(n,r),n.unshift(r)},remove(r){n=Ql(n,r),n[0]?.resume()}}}bt(vp,"createFocusScopesStack");function Ql(n,r){const o=[...n],s=o.indexOf(r);return s!==-1&&o.splice(s,1),o}bt(Ql,"arrayRemove");function gp(n){return n.filter(r=>r.tagName!=="A")}bt(gp,"removeLinks");var yx=Object.defineProperty,xx=(n,r)=>yx(n,"name",{value:r,configurable:!0}),Yl=m.forwardRef(xx(function(r,o){const{container:s,...l}=r,[u,d]=m.useState(!1);ot(()=>d(!0),[]);const p=s||u&&globalThis?.document?.body;return p?ai.createPortal(O.jsx(Be.div,{...l,ref:o}),p):null},"Portal")),wx=Object.defineProperty,Xl=(n,r)=>wx(n,"name",{value:r,configurable:!0}),Rs=0,ho=null;function Sx(n){return ci(),n.children}Xl(Sx,"FocusGuards");function ci(){m.useEffect(()=>{ho||(ho={start:Jl(),end:Jl()});const{start:n,end:r}=ho;return document.body.firstElementChild!==n&&document.body.insertAdjacentElement("afterbegin",n),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),Rs++,()=>{Rs===1&&(ho?.start.remove(),ho?.end.remove(),ho=null),Rs=Math.max(0,Rs-1)}},[])}Xl(ci,"useFocusGuards");function Jl(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}Xl(Jl,"createFocusGuard");var mn=function(){return mn=Object.assign||function(r){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},mn.apply(this,arguments)};function yp(n,r){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&r.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(n);l<s.length;l++)r.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(n,s[l])&&(o[s[l]]=n[s[l]]);return o}function _x(n,r,o){if(o||arguments.length===2)for(var s=0,l=r.length,u;s<l;s++)(u||!(s in r))&&(u||(u=Array.prototype.slice.call(r,0,s)),u[s]=r[s]);return n.concat(u||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var Is="right-scroll-bar-position",Ps="width-before-scroll-bar",kx="with-scroll-bars-hidden",bx="--removed-body-scroll-bar-size";function eu(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function Ex(n,r){var o=m.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(s){var l=o.value;l!==s&&(o.value=s,o.callback(s,l))}}}})[0];return o.callback=r,o.facade}var Cx=typeof window<"u"?m.useLayoutEffect:m.useEffect,xp=new WeakMap;function Rx(n,r){var o=Ex(null,function(s){return n.forEach(function(l){return eu(l,s)})});return Cx(function(){var s=xp.get(o);if(s){var l=new Set(s),u=new Set(n),d=o.current;l.forEach(function(p){u.has(p)||eu(p,null)}),u.forEach(function(p){l.has(p)||eu(p,d)})}xp.set(o,n)},[n]),o}function Ix(n){return n}function Px(n,r){r===void 0&&(r=Ix);var o=[],s=!1,l={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(u){var d=r(u,s);return o.push(d),function(){o=o.filter(function(p){return p!==d})}},assignSyncMedium:function(u){for(s=!0;o.length;){var d=o;o=[],d.forEach(u)}o={push:function(p){return u(p)},filter:function(){return o}}},assignMedium:function(u){s=!0;var d=[];if(o.length){var p=o;o=[],p.forEach(u),d=o}var h=function(){var y=d;d=[],y.forEach(u)},v=function(){return Promise.resolve().then(h)};v(),o={push:function(y){d.push(y),v()},filter:function(y){return d=d.filter(y),o}}}};return l}function Nx(n){n===void 0&&(n={});var r=Px(null);return r.options=mn({async:!0,ssr:!1},n),r}var wp=function(n){var r=n.sideCar,o=yp(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return m.createElement(s,mn({},o))};wp.isSideCarExport=!0;function Ox(n,r){return n.useMedium(r),wp}var Sp=Nx(),tu=function(){},Ns=m.forwardRef(function(n,r){var o=m.useRef(null),s=m.useState({onScrollCapture:tu,onWheelCapture:tu,onTouchMoveCapture:tu}),l=s[0],u=s[1],d=n.forwardProps,p=n.children,h=n.className,v=n.removeScrollBar,y=n.enabled,x=n.shards,w=n.sideCar,b=n.noRelative,_=n.noIsolation,E=n.inert,S=n.allowPinchZoom,A=n.as,D=A===void 0?"div":A,T=n.gapMode,N=yp(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=w,L=Rx([o,r]),W=mn(mn({},N),l);return m.createElement(m.Fragment,null,y&&m.createElement(U,{sideCar:Sp,removeScrollBar:v,shards:x,noRelative:b,noIsolation:_,inert:E,setCallbacks:u,allowPinchZoom:!!S,lockRef:o,gapMode:T}),d?m.cloneElement(m.Children.only(p),mn(mn({},W),{ref:L})):m.createElement(D,mn({},W,{className:h,ref:L}),p))});Ns.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ns.classNames={fullWidth:Ps,zeroRight:Is};var Tx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ax(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=Tx();return r&&n.setAttribute("nonce",r),n}function Dx(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function Mx(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var Lx=function(){var n=0,r=null;return{add:function(o){n==0&&(r=Ax())&&(Dx(r,o),Mx(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},jx=function(){var n=Lx();return function(r,o){m.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},_p=function(){var n=jx(),r=function(o){var s=o.styles,l=o.dynamic;return n(s,l),null};return r},zx={left:0,top:0,right:0,gap:0},nu=function(n){return parseInt(n||"",10)||0},Fx=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],s=r[n==="padding"?"paddingTop":"marginTop"],l=r[n==="padding"?"paddingRight":"marginRight"];return[nu(o),nu(s),nu(l)]},$x=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return zx;var r=Fx(n),o=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-o+r[2]-r[0])}},Vx=_p(),vo="data-scroll-locked",Ux=function(n,r,o,s){var l=n.left,u=n.top,d=n.right,p=n.gap;return o===void 0&&(o="margin"),`
|
|
64
|
+
.`.concat(kx,` {
|
|
65
65
|
overflow: hidden `).concat(s,`;
|
|
66
66
|
padding-right: `).concat(p,"px ").concat(s,`;
|
|
67
67
|
}
|
|
@@ -95,12 +95,12 @@ Error generating stack: `+f.message+`
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
body[`).concat(vo,`] {
|
|
98
|
-
`).concat(
|
|
98
|
+
`).concat(bx,": ").concat(p,`px;
|
|
99
99
|
}
|
|
100
|
-
`)},
|
|
100
|
+
`)},kp=function(){var n=parseInt(document.body.getAttribute(vo)||"0",10);return isFinite(n)?n:0},Bx=function(){m.useEffect(function(){return document.body.setAttribute(vo,(kp()+1).toString()),function(){var n=kp()-1;n<=0?document.body.removeAttribute(vo):document.body.setAttribute(vo,n.toString())}},[])},Wx=function(n){var r=n.noRelative,o=n.noImportant,s=n.gapMode,l=s===void 0?"margin":s;Bx();var u=m.useMemo(function(){return $x(l)},[l]);return m.createElement(Vx,{styles:Ux(u,!r,l,o?"":"!important")})},ru=!1;if(typeof window<"u")try{var Os=Object.defineProperty({},"passive",{get:function(){return ru=!0,!0}});window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{ru=!1}var go=ru?{passive:!1}:!1,Hx=function(n){return n.tagName==="TEXTAREA"},bp=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!Hx(n)&&o[r]==="visible")},Zx=function(n){return bp(n,"overflowY")},qx=function(n){return bp(n,"overflowX")},Ep=function(n,r){var o=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=Cp(n,s);if(l){var u=Rp(n,s),d=u[1],p=u[2];if(d>p)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},Kx=function(n){var r=n.scrollTop,o=n.scrollHeight,s=n.clientHeight;return[r,o,s]},Gx=function(n){var r=n.scrollLeft,o=n.scrollWidth,s=n.clientWidth;return[r,o,s]},Cp=function(n,r){return n==="v"?Zx(r):qx(r)},Rp=function(n,r){return n==="v"?Kx(r):Gx(r)},Qx=function(n,r){return n==="h"&&r==="rtl"?-1:1},Yx=function(n,r,o,s,l){var u=Qx(n,window.getComputedStyle(r).direction),d=u*s,p=o.target,h=r.contains(p),v=!1,y=d>0,x=0,w=0;do{if(!p)break;var b=Rp(n,p),_=b[0],E=b[1],S=b[2],A=E-S-u*_;(_||A)&&Cp(n,p)&&(x+=A,w+=_);var D=p.parentNode;p=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!h&&p!==document.body||h&&(r.contains(p)||r===p));return(y&&Math.abs(x)<1||!y&&Math.abs(w)<1)&&(v=!0),v},Ts=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Ip=function(n){return[n.deltaX,n.deltaY]},Pp=function(n){return n&&"current"in n?n.current:n},Xx=function(n,r){return n[0]===r[0]&&n[1]===r[1]},Jx=function(n){return`
|
|
101
101
|
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
102
102
|
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
103
|
-
`)},Jx=0,yo=[];function ew(n){var r=m.useRef([]),o=m.useRef([0,0]),s=m.useRef(),l=m.useState(Jx++)[0],u=m.useState(wp)[0],d=m.useRef(n);m.useEffect(function(){d.current=n},[n]),m.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(l));var b=Sx([n.lockRef.current],(n.shards||[]).map(Rp),!0).filter(Boolean);return b.forEach(function(S){return S.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),b.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(l))})}}},[n.inert,n.lockRef.current,n.shards]);var p=m.useCallback(function(b,S){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!d.current.allowPinchZoom;var A=Ts(b),D=o.current,T="deltaX"in b?b.deltaX:D[0]-A[0],N="deltaY"in b?b.deltaY:D[1]-A[1],U,L=b.target,W=Math.abs(T)>Math.abs(N)?"h":"v";if("touches"in b&&W==="h"&&L.type==="range")return!1;var F=window.getSelection(),re=F&&F.anchorNode,me=re?re===L||re.contains(L):!1;if(me)return!1;var ke=kp(W,L);if(!ke)return!0;if(ke?U=W:(U=W==="v"?"h":"v",ke=kp(W,L)),!ke)return!1;if(!s.current&&"changedTouches"in b&&(T||N)&&(s.current=U),!U)return!0;var oe=s.current||U;return Qx(oe,S,b,oe==="h"?T:N)},[]),h=m.useCallback(function(b){var S=b;if(!(!yo.length||yo[yo.length-1]!==u)){var A="deltaY"in S?Cp(S):Ts(S),D=r.current.filter(function(U){return U.name===S.type&&(U.target===S.target||S.target===U.shadowParent)&&Yx(U.delta,A)})[0];if(D&&D.should){S.cancelable&&S.preventDefault();return}if(!D){var T=(d.current.shards||[]).map(Rp).filter(Boolean).filter(function(U){return U.contains(S.target)}),N=T.length>0?p(S,T[0]):!d.current.noIsolation;N&&S.cancelable&&S.preventDefault()}}},[]),v=m.useCallback(function(b,S,A,D){var T={name:b,delta:S,target:A,should:D,shadowParent:tw(A)};r.current.push(T),setTimeout(function(){r.current=r.current.filter(function(N){return N!==T})},1)},[]),y=m.useCallback(function(b){o.current=Ts(b),s.current=void 0},[]),x=m.useCallback(function(b){v(b.type,Cp(b),b.target,p(b,n.lockRef.current))},[]),w=m.useCallback(function(b){v(b.type,Ts(b),b.target,p(b,n.lockRef.current))},[]);m.useEffect(function(){return yo.push(u),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:w}),document.addEventListener("wheel",h,go),document.addEventListener("touchmove",h,go),document.addEventListener("touchstart",y,go),function(){yo=yo.filter(function(b){return b!==u}),document.removeEventListener("wheel",h,go),document.removeEventListener("touchmove",h,go),document.removeEventListener("touchstart",y,go)}},[]);var E=n.removeScrollBar,_=n.inert;return m.createElement(m.Fragment,null,_?m.createElement(u,{styles:Xx(l)}):null,E?m.createElement(Bx,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function tw(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const nw=Nx(xp,ew);var As=m.forwardRef(function(n,r){return m.createElement(Ns,mn({},n,{ref:r,sideCar:nw}))});As.classNames=Ns.classNames;var rw=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},xo=new WeakMap,Ds=new WeakMap,Ms={},ou=0,Ip=function(n){return n&&(n.host||Ip(n.parentNode))},ow=function(n,r){return r.map(function(o){if(n.contains(o))return o;var s=Ip(o);return s&&n.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},iw=function(n,r,o,s){var l=ow(r,Array.isArray(n)?n:[n]);Ms[o]||(Ms[o]=new WeakMap);var u=Ms[o],d=[],p=new Set,h=new Set(l),v=function(x){!x||p.has(x)||(p.add(x),v(x.parentNode))};l.forEach(v);var y=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(w){if(p.has(w))y(w);else try{var E=w.getAttribute(s),_=E!==null&&E!=="false",b=(xo.get(w)||0)+1,S=(u.get(w)||0)+1;xo.set(w,b),u.set(w,S),d.push(w),b===1&&_&&Ds.set(w,!0),S===1&&w.setAttribute(o,"true"),_||w.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return y(r),p.clear(),ou++,function(){d.forEach(function(x){var w=xo.get(x)-1,E=u.get(x)-1;xo.set(x,w),u.set(x,E),w||(Ds.has(x)||x.removeAttribute(s),Ds.delete(x)),E||x.removeAttribute(o)}),ou--,ou||(xo=new WeakMap,xo=new WeakMap,Ds=new WeakMap,Ms={})}},iu=function(n,r,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),l=rw(n);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),iw(s,l,o,"aria-hidden")):function(){return null}},sw=Object.defineProperty,zt=(n,r)=>sw(n,"name",{value:r,configurable:!0}),su="Dialog",[Pp,Np]=nr(su),[aw,Jt]=Pp(su),au=zt(n=>{const{__scopeDialog:r,children:o,open:s,defaultOpen:l,onOpenChange:u,modal:d=!0}=n,p=m.useRef(null),h=m.useRef(null),[v,y]=ui({prop:s,defaultProp:l??!1,onChange:u,caller:su}),[x,w]=m.useState(0),[E,_]=m.useState(0);return O.jsx(aw,{scope:r,triggerRef:p,contentRef:h,contentId:jt(),titleId:jt(),descriptionId:jt(),titlePresent:x>0,descriptionPresent:E>0,setTitleCount:w,setDescriptionCount:_,open:v,onOpenChange:y,onOpenToggle:m.useCallback(()=>y(b=>!b),[y]),modal:d,children:o})},"Dialog"),lw="DialogTrigger",uw=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(lw,s),d=He(o,u.triggerRef);return O.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":js(u.open),...l,ref:d,onClick:Ve(r.onClick,u.onOpenToggle)})},"DialogTrigger")),Op="DialogPortal",[cw,Tp]=Pp(Op,{forceMount:void 0}),lu=zt(n=>{const{__scopeDialog:r,forceMount:o,children:s,container:l}=n,u=Jt(Op,r);return O.jsx(cw,{scope:r,forceMount:o,children:m.Children.map(s,d=>O.jsx(po,{present:o||u.open,children:O.jsx(Yl,{asChild:!0,container:l,children:d})}))})},"DialogPortal"),uu="DialogOverlay",cu=m.forwardRef(zt(function(r,o){const s=Tp(uu,r.__scopeDialog),{forceMount:l=s.forceMount,...u}=r,d=Jt(uu,r.__scopeDialog);return d.modal?O.jsx(po,{present:l||d.open,children:O.jsx(fw,{...u,ref:o})}):null},"DialogOverlay")),dw=fn("DialogOverlay.RemoveScroll"),fw=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(uu,s),d=ip(),p=He(o,d);return O.jsx(As,{as:dw,allowPinchZoom:!0,shards:[u.contentRef],children:O.jsx(Be.div,{"data-state":js(u.open),...l,ref:p,style:{pointerEvents:"auto",...l.style}})})},"DialogOverlayImpl")),di="DialogContent",du=m.forwardRef(zt(function(r,o){const s=Tp(di,r.__scopeDialog),{forceMount:l=s.forceMount,...u}=r,d=Jt(di,r.__scopeDialog);return O.jsx(po,{present:l||d.open,children:d.modal?O.jsx(pw,{...u,ref:o}):O.jsx(mw,{...u,ref:o})})},"DialogContent")),pw=m.forwardRef(zt(function(r,o){const s=Jt(di,r.__scopeDialog),l=m.useRef(null),u=He(o,s.contentRef,l);return m.useEffect(()=>{const d=l.current;if(d)return iu(d)},[]),O.jsx(Ap,{...r,ref:u,trapFocus:s.open,disableOutsidePointerEvents:s.open,onCloseAutoFocus:Ve(r.onCloseAutoFocus,d=>{d.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:Ve(r.onPointerDownOutside,d=>{const p=d.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0;(p.button===2||h)&&d.preventDefault()}),onFocusOutside:Ve(r.onFocusOutside,d=>d.preventDefault())})},"DialogContentModal")),mw=m.forwardRef(zt(function(r,o){const s=Jt(di,r.__scopeDialog),l=m.useRef(!1),u=m.useRef(!1);return O.jsx(Ap,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{r.onCloseAutoFocus?.(d),d.defaultPrevented||(l.current||s.triggerRef.current?.focus(),d.preventDefault()),l.current=!1,u.current=!1},onInteractOutside:d=>{r.onInteractOutside?.(d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const p=d.target;s.triggerRef.current?.contains(p)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.current&&d.preventDefault()}})},"DialogContentNonModal")),Ap=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:d,...p}=r,h=Jt(di,s);return ci(),O.jsx(O.Fragment,{children:O.jsx(ql,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:u,onUnmountAutoFocus:d,children:O.jsx(Ul,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":js(h.open),...p,ref:o,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),hw="DialogTitle",Dp=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(hw,s),{setTitleCount:d}=u;return ot(()=>(d(p=>p+1),()=>d(p=>p-1)),[d]),O.jsx(Be.h2,{id:u.titleId,...l,ref:o})},"DialogTitle")),vw="DialogDescription",Mp=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(vw,s),{setDescriptionCount:d}=u;return ot(()=>(d(p=>p+1),()=>d(p=>p-1)),[d]),O.jsx(Be.p,{id:u.descriptionId,...l,ref:o})},"DialogDescription")),gw="DialogClose",Ls=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(gw,s);return O.jsx(Be.button,{type:"button",...l,ref:o,onClick:Ve(r.onClick,()=>u.onOpenChange(!1))})},"DialogClose"));function js(n){return n?"open":"closed"}zt(js,"getState");var yw=Object.defineProperty,Dn=(n,r)=>yw(n,"name",{value:r,configurable:!0}),xw="AlertDialog",[ww,Gb]=nr(xw,[Np]),Mn=Np(),Sw=Dn(n=>{const{__scopeAlertDialog:r,...o}=n,s=Mn(r);return O.jsx(au,{...s,...o,modal:!0})},"AlertDialog");m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(uw,{...u,...l,ref:o})},"AlertDialogTrigger"));var _w=Dn(n=>{const{__scopeAlertDialog:r,...o}=n,s=Mn(r);return O.jsx(lu,{...s,...o})},"AlertDialogPortal"),kw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(cu,{...u,...l,ref:o})},"AlertDialogOverlay")),Ew="AlertDialogContent",[bw,Cw]=ww(Ew),Rw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,children:l,...u}=r,d=Mn(s),p=m.useRef(null),h=He(o,p),v=m.useRef(null);return O.jsx(bw,{scope:s,cancelRef:v,children:O.jsx(du,{role:"alertdialog",...d,...u,ref:h,onOpenAutoFocus:Ve(u.onOpenAutoFocus,y=>{y.preventDefault(),v.current?.focus({preventScroll:!0})}),onPointerDownOutside:y=>y.preventDefault(),onInteractOutside:y=>y.preventDefault(),children:l})})},"AlertDialogContent")),Iw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(Dp,{...u,...l,ref:o})},"AlertDialogTitle")),Pw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(Mp,{...u,...l,ref:o})},"AlertDialogDescription"));m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(Ls,{...u,...l,ref:o})},"AlertDialogAction"));var Nw="AlertDialogCancel",Ow=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,{cancelRef:u}=Cw(Nw,s),d=Mn(s),p=He(o,u);return O.jsx(Ls,{...d,...l,ref:p})},"AlertDialogCancel")),Tw=Sw,Aw=_w,Dw=kw,Mw=Rw,Lw=Ow,jw=Iw,zw=Pw,Fw=Object.defineProperty,$w=(n,r)=>Fw(n,"name",{value:r,configurable:!0});function Lp(n){const[r,o]=m.useState(void 0);return ot(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let d,p;if("borderBoxSize"in u){const h=u.borderBoxSize,v=Array.isArray(h)?h[0]:h;d=v.inlineSize,p=v.blockSize}else d=n.offsetWidth,p=n.offsetHeight;o({width:d,height:p})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else o(void 0)},[n]),r}$w(Lp,"useSize");const Vw=["top","right","bottom","left"],rr=Math.min,Ln=Math.max,zs=Math.round,Fs=Math.floor,jn=n=>({x:n,y:n}),Uw={left:"right",right:"left",bottom:"top",top:"bottom"};function jp(n,r,o){return Ln(n,rr(r,o))}function zn(n,r){return typeof n=="function"?n(r):n}function or(n){return n.split("-")[0]}function wo(n){return n.split("-")[1]}function fu(n){return n==="x"?"y":"x"}function pu(n){return n==="y"?"height":"width"}function hn(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function mu(n){return fu(hn(n))}function Bw(n,r,o){o===void 0&&(o=!1);const s=wo(n),l=mu(n),u=pu(l);let d=l==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(d=$s(d)),[d,$s(d)]}function Ww(n){const r=$s(n);return[hu(n),r,hu(r)]}function hu(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const zp=["left","right"],Fp=["right","left"],Hw=["top","bottom"],Zw=["bottom","top"];function qw(n,r,o){switch(n){case"top":case"bottom":return o?r?Fp:zp:r?zp:Fp;case"left":case"right":return r?Hw:Zw;default:return[]}}function Kw(n,r,o,s){const l=wo(n);let u=qw(or(n),o==="start",s);return l&&(u=u.map(d=>d+"-"+l),r&&(u=u.concat(u.map(hu)))),u}function $s(n){const r=or(n);return Uw[r]+n.slice(r.length)}function Gw(n){var r,o,s,l;return{top:(r=n.top)!=null?r:0,right:(o=n.right)!=null?o:0,bottom:(s=n.bottom)!=null?s:0,left:(l=n.left)!=null?l:0}}function $p(n){return typeof n!="number"?Gw(n):{top:n,right:n,bottom:n,left:n}}function Vs(n){const{x:r,y:o,width:s,height:l}=n;return{width:s,height:l,top:o,left:r,right:r+s,bottom:o+l,x:r,y:o}}function Vp(n,r,o){let{reference:s,floating:l}=n;const u=hn(r),d=mu(r),p=pu(d),h=or(r),v=u==="y",y=s.x+s.width/2-l.width/2,x=s.y+s.height/2-l.height/2,w=s[p]/2-l[p]/2;let E;switch(h){case"top":E={x:y,y:s.y-l.height};break;case"bottom":E={x:y,y:s.y+s.height};break;case"right":E={x:s.x+s.width,y:x};break;case"left":E={x:s.x-l.width,y:x};break;default:E={x:s.x,y:s.y}}const _=wo(r);return _&&(E[d]+=w*(_==="end"?1:-1)*(o&&v?-1:1)),E}async function Qw(n,r){var o;r===void 0&&(r={});const{x:s,y:l,platform:u,rects:d,elements:p,strategy:h}=n,{boundary:v="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:w=!1,padding:E=0}=zn(r,n),_=$p(E),S=p[w?x==="floating"?"reference":"floating":x],A=Vs(await u.getClippingRect({element:(o=await(u.isElement==null?void 0:u.isElement(S)))==null||o?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(p.floating)),boundary:v,rootBoundary:y,strategy:h})),D=x==="floating"?{x:s,y:l,width:d.floating.width,height:d.floating.height}:d.reference,T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),N=await(u.isElement==null?void 0:u.isElement(T))&&await(u.getScale==null?void 0:u.getScale(T))||{x:1,y:1},U=Vs(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:D,offsetParent:T,strategy:h}):D);return{top:(A.top-U.top+_.top)/N.y,bottom:(U.bottom-A.bottom+_.bottom)/N.y,left:(A.left-U.left+_.left)/N.x,right:(U.right-A.right+_.right)/N.x}}const Yw=50,Xw=async(n,r,o)=>{const{placement:s="bottom",strategy:l="absolute",middleware:u=[],platform:d}=o,p=d.detectOverflow?d:{...d,detectOverflow:Qw},h=await(d.isRTL==null?void 0:d.isRTL(r));let v=await d.getElementRects({reference:n,floating:r,strategy:l}),{x:y,y:x}=Vp(v,s,h),w=s,E=0;const _={};for(let b=0;b<u.length;b++){const S=u[b];if(!S)continue;const{name:A,fn:D}=S,{x:T,y:N,data:U,reset:L}=await D({x:y,y:x,initialPlacement:s,placement:w,strategy:l,middlewareData:_,rects:v,platform:p,elements:{reference:n,floating:r}});y=T??y,x=N??x,_[A]={..._[A],...U},L&&E<Yw&&(E++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(v=L.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:l}):L.rects),{x:y,y:x}=Vp(v,w,h)),b=-1)}return{x:y,y:x,placement:w,strategy:l,middlewareData:_}},Jw=n=>({name:"arrow",options:n,async fn(r){const{x:o,y:s,placement:l,rects:u,platform:d,elements:p,middlewareData:h}=r,{element:v,padding:y=0}=zn(n,r)||{};if(v==null)return{};const x=$p(y),w={x:o,y:s},E=mu(l),_=pu(E),b=await d.getDimensions(v),S=E==="y",A=S?"top":"left",D=S?"bottom":"right",T=S?"clientHeight":"clientWidth",N=u.reference[_]+u.reference[E]-w[E]-u.floating[_],U=w[E]-u.reference[E],L=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v));let W=L?L[T]:0;(!W||!await(d.isElement==null?void 0:d.isElement(L)))&&(W=p.floating[T]||u.floating[_]);const F=N/2-U/2,re=W/2-b[_]/2-1,me=rr(x[A],re),ke=rr(x[D],re),oe=W-b[_]-ke,he=W/2-b[_]/2+F,ve=jp(me,he,oe),Se=!h.arrow&&wo(l)!=null&&he!==ve&&u.reference[_]/2-(he<me?me:ke)-b[_]/2<0,ue=Se?he<me?he-me:he-oe:0;return{[E]:w[E]+ue,data:{[E]:ve,centerOffset:he-ve-ue,...Se&&{alignmentOffset:ue}},reset:Se}}}),eS=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,s;const{placement:l,middlewareData:u,rects:d,initialPlacement:p,platform:h,elements:v}=r,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:b=!0,...S}=zn(n,r);if((o=u.arrow)!=null&&o.alignmentOffset)return{};const A=or(l),D=hn(p),T=or(p)===p,N=await(h.isRTL==null?void 0:h.isRTL(v.floating)),U=w||(T||!b?[$s(p)]:Ww(p)),L=_!=="none";!w&&L&&U.push(...Kw(p,b,_,N));const W=[p,...U],F=await h.detectOverflow(r,S),re=[];let me=((s=u.flip)==null?void 0:s.overflows)||[];if(y&&re.push(F[A]),x){const ve=Bw(l,d,N);re.push(F[ve[0]],F[ve[1]])}if(me=[...me,{placement:l,overflows:re}],!re.every(ve=>ve<=0)){var ke,oe;const ve=(((ke=u.flip)==null?void 0:ke.index)||0)+1,Se=W[ve];if(Se&&(!(x==="alignment"?D!==hn(Se):!1)||me.every(B=>hn(B.placement)===D?B.overflows[0]>0:!0)))return{data:{index:ve,overflows:me},reset:{placement:Se}};let ue=(oe=me.filter(ie=>ie.overflows[0]<=0).sort((ie,B)=>ie.overflows[1]-B.overflows[1])[0])==null?void 0:oe.placement;if(!ue)switch(E){case"bestFit":{var he;const ie=(he=me.filter(B=>{if(L){const X=hn(B.placement);return X===D||X==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(X=>X>0).reduce((X,z)=>X+z,0)]).sort((B,X)=>B[1]-X[1])[0])==null?void 0:he[0];ie&&(ue=ie);break}case"initialPlacement":ue=p;break}if(l!==ue)return{reset:{placement:ue}}}return{}}}};function Up(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function Bp(n){return Vw.some(r=>n[r]>=0)}const tS=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,platform:s}=r,{strategy:l="referenceHidden",...u}=zn(n,r);switch(l){case"referenceHidden":{const d=await s.detectOverflow(r,{...u,elementContext:"reference"}),p=Up(d,o.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Bp(p)}}}case"escaped":{const d=await s.detectOverflow(r,{...u,altBoundary:!0}),p=Up(d,o.floating);return{data:{escapedOffsets:p,escaped:Bp(p)}}}default:return{}}}}},Wp=new Set(["left","top"]);async function nS(n,r){const{placement:o,platform:s,elements:l}=n,u=await(s.isRTL==null?void 0:s.isRTL(l.floating)),d=or(o),p=wo(o),h=hn(o)==="y",v=Wp.has(d)?-1:1,y=u&&h?-1:1,x=zn(r,n);let{mainAxis:w,crossAxis:E,alignmentAxis:_}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return p&&typeof _=="number"&&(E=p==="end"?_*-1:_),h?{x:E*y,y:w*v}:{x:w*v,y:E*y}}const rS=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,s;const{x:l,y:u,placement:d,middlewareData:p}=r,h=await nS(r,n);return d===((o=p.offset)==null?void 0:o.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:l+h.x,y:u+h.y,data:{...h,placement:d}}}}},oS=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,y:s,placement:l,platform:u}=r,{mainAxis:d=!0,crossAxis:p=!1,limiter:h={fn:D=>{let{x:T,y:N}=D;return{x:T,y:N}}},...v}=zn(n,r),y={x:o,y:s},x=await u.detectOverflow(r,v),w=hn(l),E=fu(w);let _=y[E],b=y[w];const S=(D,T)=>jp(T+x[D==="y"?"top":"left"],T,T-x[D==="y"?"bottom":"right"]);d&&(_=S(E,_)),p&&(b=S(w,b));const A=h.fn({...r,[E]:_,[w]:b});return{...A,data:{x:A.x-o,y:A.y-s,enabled:{[E]:d,[w]:p}}}}}},iS=function(n){return n===void 0&&(n={}),{options:n,fn(r){var o,s;const{x:l,y:u,placement:d,rects:p,middlewareData:h}=r,{offset:v=0,mainAxis:y=!0,crossAxis:x=!0}=zn(n,r),w={x:l,y:u},E=hn(d),_=fu(E);let b=w[_],S=w[E];const A=zn(v,r),D=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:(o=A.mainAxis)!=null?o:0,crossAxis:(s=A.crossAxis)!=null?s:0};if(y){const U=_==="y"?"height":"width",L=p.reference[_]-p.floating[U]+D.mainAxis,W=p.reference[_]+p.reference[U]-D.mainAxis;b<L?b=L:b>W&&(b=W)}if(x){var T,N;const U=_==="y"?"width":"height",L=Wp.has(or(d)),W=p.reference[E]-p.floating[U]+(L&&((T=h.offset)==null?void 0:T[E])||0)+(L?0:D.crossAxis),F=p.reference[E]+p.reference[U]+(L?0:((N=h.offset)==null?void 0:N[E])||0)-(L?D.crossAxis:0);S<W?S=W:S>F&&(S=F)}return{[_]:b,[E]:S}}}},sS=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){const{placement:o,rects:s,platform:l,elements:u}=r,{apply:d=()=>{},...p}=zn(n,r),h=await l.detectOverflow(r,p),v=or(o),y=wo(o),x=hn(o)==="y",{width:w,height:E}=s.floating;let _,b;v==="top"||v==="bottom"?(_=v,b=y===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(b=v,_=y==="end"?"top":"bottom");const S=E-h.top-h.bottom,A=w-h.left-h.right,D=rr(E-h[_],S),T=rr(w-h[b],A),N=r.middlewareData.shift,U=!N;let L=D,W=T;N!=null&&N.enabled.x&&(W=A),N!=null&&N.enabled.y&&(L=S),U&&!y&&(x?W=w-2*Ln(h.left,h.right):L=E-2*Ln(h.top,h.bottom)),await d({...r,availableWidth:W,availableHeight:L});const F=await l.getDimensions(u.floating);return w!==F.width||E!==F.height?{reset:{rects:!0}}:{}}}};function Us(){return typeof window<"u"}function So(n){return Hp(n)?(n.nodeName||"").toLowerCase():"#document"}function Pt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Fn(n){var r;return(r=(Hp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function Hp(n){return Us()?n instanceof Node||n instanceof Pt(n).Node:!1}function vn(n){return Us()?n instanceof Element||n instanceof Pt(n).Element:!1}function ir(n){return Us()?n instanceof HTMLElement||n instanceof Pt(n).HTMLElement:!1}function Zp(n){return!Us()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Pt(n).ShadowRoot}function Bs(n){const{overflow:r,overflowX:o,overflowY:s,display:l}=gn(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+o)&&l!=="inline"&&l!=="contents"}function aS(n){return/^(table|td|th)$/.test(So(n))}function Ws(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const lS=/transform|translate|scale|rotate|perspective|filter/,uS=/paint|layout|strict|content/,Fr=n=>!!n&&n!=="none";let vu;function gu(n){const r=vn(n)?gn(n):n;return Fr(r.transform)||Fr(r.translate)||Fr(r.scale)||Fr(r.rotate)||Fr(r.perspective)||!yu()&&(Fr(r.backdropFilter)||Fr(r.filter))||lS.test(r.willChange||"")||uS.test(r.contain||"")}function cS(n){let r=$r(n);for(;ir(r)&&!fi(r);){if(gu(r))return r;if(Ws(r))return null;r=$r(r)}return null}function yu(){return vu==null&&(vu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vu}function fi(n){return/^(html|body|#document)$/.test(So(n))}function gn(n){return Pt(n).getComputedStyle(n)}function Hs(n){return vn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function $r(n){if(So(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Zp(n)&&n.host||Fn(n);return Zp(r)?r.host:r}function qp(n){const r=$r(n);return fi(r)?(n.ownerDocument||n).body:ir(r)&&Bs(r)?r:qp(r)}function pi(n,r,o){var s;r===void 0&&(r=[]),o===void 0&&(o=!0);const l=qp(n),u=l===((s=n.ownerDocument)==null?void 0:s.body),d=Pt(l);if(u){const p=xu(d);return r.concat(d,d.visualViewport||[],Bs(l)?l:[],p&&o?pi(p):[])}else return r.concat(l,pi(l,[],o))}function xu(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Kp(n){const r=gn(n);let o=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const l=ir(n),u=l?n.offsetWidth:o,d=l?n.offsetHeight:s,p=zs(o)!==u||zs(s)!==d;return p&&(o=u,s=d),{width:o,height:s,$:p}}function wu(n){return vn(n)?n:n.contextElement}function _o(n){const r=wu(n);if(!ir(r))return jn(1);const o=r.getBoundingClientRect(),{width:s,height:l,$:u}=Kp(r);let d=(u?zs(o.width):o.width)/s,p=(u?zs(o.height):o.height)/l;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}const dS=jn(0);function Gp(n){const r=Pt(n);return!yu()||!r.visualViewport?dS:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function fS(n,r,o){return r===void 0&&(r=!1),!!o&&r&&o===Pt(n)}function Vr(n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!1);const l=n.getBoundingClientRect(),u=wu(n);let d=jn(1);r&&(s?vn(s)&&(d=_o(s)):d=_o(n));const p=fS(u,o,s)?Gp(u):jn(0);let h=(l.left+p.x)/d.x,v=(l.top+p.y)/d.y,y=l.width/d.x,x=l.height/d.y;if(u&&s){const w=Pt(u),E=vn(s)?Pt(s):s;let _=w,b=xu(_);for(;b&&E!==_;){const S=_o(b),A=b.getBoundingClientRect(),D=gn(b),T=A.left+(b.clientLeft+parseFloat(D.paddingLeft))*S.x,N=A.top+(b.clientTop+parseFloat(D.paddingTop))*S.y;h*=S.x,v*=S.y,y*=S.x,x*=S.y,h+=T,v+=N,_=Pt(b),b=xu(_)}}return Vs({width:y,height:x,x:h,y:v})}function Zs(n,r){const o=Hs(n).scrollLeft;return r?r.left+o:Vr(Fn(n)).left+o}function Qp(n,r){const o=n.getBoundingClientRect(),s=o.left+r.scrollLeft-Zs(n,o),l=o.top+r.scrollTop;return{x:s,y:l}}function pS(n){let{elements:r,rect:o,offsetParent:s,strategy:l}=n;const u=l==="fixed",d=Fn(s),p=r?Ws(r.floating):!1;if(s===d||p&&u)return o;let h={scrollLeft:0,scrollTop:0},v=jn(1);const y=jn(0),x=ir(s);if((x||!u)&&((So(s)!=="body"||Bs(d))&&(h=Hs(s)),x)){const E=Vr(s);v=_o(s),y.x=E.x+s.clientLeft,y.y=E.y+s.clientTop}const w=d&&!x&&!u?Qp(d,h):jn(0);return{width:o.width*v.x,height:o.height*v.y,x:o.x*v.x-h.scrollLeft*v.x+y.x+w.x,y:o.y*v.y-h.scrollTop*v.y+y.y+w.y}}function mS(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function hS(n){const r=Hs(n),o=n.ownerDocument.body,s=Ln(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),l=Ln(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let u=-r.scrollLeft+Zs(n);const d=-r.scrollTop;return gn(o).direction==="rtl"&&(u+=Ln(n.clientWidth,o.clientWidth)-s),{width:s,height:l,x:u,y:d}}const vS=25;function gS(n,r,o){o===void 0&&(o="viewport");const s=o==="layoutViewport",l=Pt(n),u=Fn(n),d=l.visualViewport;let p=u.clientWidth,h=u.clientHeight,v=0,y=0;if(d){const w=!yu()||r==="fixed";s?w||(v=-d.offsetLeft,y=-d.offsetTop):(p=d.width,h=d.height,w&&(v=d.offsetLeft,y=d.offsetTop))}if(Zs(u)<=0){const w=u.ownerDocument,E=w.body,_=getComputedStyle(E),b=w.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,S=Math.abs(u.clientWidth-E.clientWidth-b),A=getComputedStyle(u).scrollbarGutter==="stable both-edges"?S/2:S;A<=vS&&(p-=A)}return{width:p,height:h,x:v,y}}function yS(n,r){const o=Vr(n,!0,r==="fixed"),s=o.top+n.clientTop,l=o.left+n.clientLeft,u=_o(n),d=n.clientWidth*u.x,p=n.clientHeight*u.y,h=l*u.x,v=s*u.y;return{width:d,height:p,x:h,y:v}}function Yp(n,r,o){let s;if(r==="viewport"||r==="layoutViewport")s=gS(n,o,r);else if(r==="document")s=hS(Fn(n));else if(vn(r))s=yS(r,o);else{const l=Gp(n);s={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return Vs(s)}function xS(n,r){const o=r.get(n);if(o)return o;let s=pi(n,[],!1).filter(p=>vn(p)&&So(p)!=="body"),l=null;const u=gn(n).position==="fixed";let d=u?$r(n):n;for(;vn(d)&&!fi(d);){const p=gn(d),h=gu(d),v=l?l.position:u?"fixed":"";!h&&(v==="fixed"||v==="absolute"&&p.position==="static")?s=s.filter(x=>x!==d):l=p,d=$r(d)}return r.set(n,s),s}function wS(n){let{element:r,boundary:o,rootBoundary:s,strategy:l}=n;const d=[...o==="clippingAncestors"?Ws(r)?[]:xS(r,this._c):[].concat(o),s],p=Yp(r,d[0],l);let h=p.top,v=p.right,y=p.bottom,x=p.left;for(let w=1;w<d.length;w++){const E=Yp(r,d[w],l);h=Ln(E.top,h),v=rr(E.right,v),y=rr(E.bottom,y),x=Ln(E.left,x)}return{width:v-x,height:y-h,x,y:h}}function SS(n){const{width:r,height:o}=Kp(n);return{width:r,height:o}}function _S(n,r,o){const s=ir(r),l=Fn(r),u=o==="fixed",d=Vr(n,!0,u,r);let p={scrollLeft:0,scrollTop:0};const h=jn(0);if((s||!u)&&((So(r)!=="body"||Bs(l))&&(p=Hs(r)),s)){const w=Vr(r,!0,u,r);h.x=w.x+r.clientLeft,h.y=w.y+r.clientTop}!s&&l&&(h.x=Zs(l));const v=l&&!s&&!u?Qp(l,p):jn(0),y=d.left+p.scrollLeft-h.x-v.x,x=d.top+p.scrollTop-h.y-v.y;return{x:y,y:x,width:d.width,height:d.height}}function Su(n){return gn(n).position==="static"}function Xp(n,r){if(!ir(n)||gn(n).position==="fixed")return null;if(r)return r(n);let o=n.offsetParent;return Fn(n)===o&&(o=o.ownerDocument.body),o}function Jp(n,r){const o=Pt(n);if(Ws(n))return o;if(!ir(n)){let l=$r(n);for(;l&&!fi(l);){if(vn(l)&&!Su(l))return l;l=$r(l)}return o}let s=Xp(n,r);for(;s&&aS(s)&&Su(s);)s=Xp(s,r);return s&&fi(s)&&Su(s)&&!gu(s)?o:s||cS(n)||o}const kS=async function(n){const r=this.getOffsetParent||Jp,o=this.getDimensions,s=await o(n.floating);return{reference:_S(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function ES(n){return gn(n).direction==="rtl"}const bS={convertOffsetParentRelativeRectToViewportRelativeRect:pS,getDocumentElement:Fn,getClippingRect:wS,getOffsetParent:Jp,getElementRects:kS,getClientRects:mS,getDimensions:SS,getScale:_o,isElement:vn,isRTL:ES};function em(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function CS(n,r,o){let s=null,l;const u=Fn(n);function d(){var y;clearTimeout(l),(y=s)==null||y.disconnect(),s=null}function p(y,x){y===void 0&&(y=!1),x===void 0&&(x=1),d();const w=n.getBoundingClientRect(),{left:E,top:_,width:b,height:S}=w;if(y||r(),!b||!S)return;const A=Fs(_),D=Fs(u.clientWidth-(E+b)),T=Fs(u.clientHeight-(_+S)),N=Fs(E),L={rootMargin:-A+"px "+-D+"px "+-T+"px "+-N+"px",threshold:Ln(0,rr(1,x))||1};let W=!0;function F(re){const me=re[0].intersectionRatio;if(!em(w,n.getBoundingClientRect()))return p();if(me!==x){if(!W)return p();me?p(!1,me):l=setTimeout(()=>{p(!1,1e-7)},1e3)}W=!1}try{s=new IntersectionObserver(F,{...L,root:u.ownerDocument})}catch{s=new IntersectionObserver(F,L)}s.observe(n)}const h=Pt(n),v=()=>p(o);return h.addEventListener("resize",v),p(!0),()=>{h.removeEventListener("resize",v),d()}}function RS(n,r,o,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,v=wu(n),y=l||u?[...v?pi(v):[],...r?pi(r):[]]:[];y.forEach(A=>{l&&A.addEventListener("scroll",o),u&&A.addEventListener("resize",o)});const x=v&&p?CS(v,o,u):null;let w=-1,E=null;d&&(E=new ResizeObserver(A=>{let[D]=A;D&&D.target===v&&E&&r&&(E.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=E)==null||T.observe(r)})),o()}),v&&!h&&E.observe(v),r&&E.observe(r));let _,b=h?Vr(n):null;h&&S();function S(){const A=Vr(n);b&&!em(b,A)&&o(),b=A,_=requestAnimationFrame(S)}return o(),()=>{var A;y.forEach(D=>{l&&D.removeEventListener("scroll",o),u&&D.removeEventListener("resize",o)}),x?.(),(A=E)==null||A.disconnect(),E=null,h&&cancelAnimationFrame(_)}}const IS=rS,PS=oS,NS=eS,OS=sS,TS=tS,tm=Jw,AS=iS,DS=(n,r,o)=>{const s=new Map,l=o??{},u={...bS,...l.platform,_c:s};return Xw(n,r,{...l,platform:u})};var MS=typeof document<"u",LS=function(){},qs=MS?m.useLayoutEffect:LS;function Ks(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let o,s,l;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==r.length)return!1;for(s=o;s--!==0;)if(!Ks(n[s],r[s]))return!1;return!0}if(l=Object.keys(n),o=l.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(r,l[s]))return!1;for(s=o;s--!==0;){const u=l[s];if(!(u==="_owner"&&n.$$typeof)&&!Ks(n[u],r[u]))return!1}return!0}return n!==n&&r!==r}function nm(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function rm(n,r){const o=nm(n);return Math.round(r*o)/o}function _u(n){const r=m.useRef(n);return qs(()=>{r.current=n}),r}function jS(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l,elements:{reference:u,floating:d}={},transform:p=!0,whileElementsMounted:h,open:v}=n,[y,x]=m.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,E]=m.useState(s);Ks(w,s)||E(s);const[_,b]=m.useState(null),[S,A]=m.useState(null),D=m.useCallback(B=>{B!==L.current&&(L.current=B,b(B))},[]),T=m.useCallback(B=>{B!==W.current&&(W.current=B,A(B))},[]),N=u||_,U=d||S,L=m.useRef(null),W=m.useRef(null),F=m.useRef(y),re=h!=null,me=_u(h),ke=_u(l),oe=_u(v),he=m.useCallback(()=>{if(!L.current||!W.current)return;const B={placement:r,strategy:o,middleware:w};ke.current&&(B.platform=ke.current),DS(L.current,W.current,B).then(X=>{const z={...X,isPositioned:oe.current!==!1};ve.current&&!Ks(F.current,z)&&(F.current=z,ai.flushSync(()=>{x(z)}))})},[w,r,o,ke,oe]);qs(()=>{v===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,x(B=>({...B,isPositioned:!1})))},[v]);const ve=m.useRef(!1);qs(()=>(ve.current=!0,()=>{ve.current=!1}),[]),qs(()=>{if(N&&(L.current=N),U&&(W.current=U),N&&U){if(me.current)return me.current(N,U,he);he()}},[N,U,he,me,re]);const Se=m.useMemo(()=>({reference:L,floating:W,setReference:D,setFloating:T}),[D,T]),ue=m.useMemo(()=>({reference:N,floating:U}),[N,U]),ie=m.useMemo(()=>{const B={position:o,left:0,top:0};if(!ue.floating)return B;const X=rm(ue.floating,y.x),z=rm(ue.floating,y.y);return p?{...B,transform:"translate("+X+"px, "+z+"px)",...nm(ue.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:X,top:z}},[o,p,ue.floating,y.x,y.y]);return m.useMemo(()=>({...y,update:he,refs:Se,elements:ue,floatingStyles:ie}),[y,he,Se,ue,ie])}const zS=n=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:s,padding:l}=typeof n=="function"?n(o):n;return s&&r(s)?s.current!=null?tm({element:s.current,padding:l}).fn(o):{}:s?tm({element:s,padding:l}).fn(o):{}}}},FS=(n,r)=>{const o=IS(n);return{name:o.name,fn:o.fn,options:[n,r]}},$S=(n,r)=>{const o=PS(n);return{name:o.name,fn:o.fn,options:[n,r]}},VS=(n,r)=>({fn:AS(n).fn,options:[n,r]}),US=(n,r)=>{const o=NS(n);return{name:o.name,fn:o.fn,options:[n,r]}},BS=(n,r)=>{const o=OS(n);return{name:o.name,fn:o.fn,options:[n,r]}},WS=(n,r)=>{const o=TS(n);return{name:o.name,fn:o.fn,options:[n,r]}},HS=(n,r)=>{const o=zS(n);return{name:o.name,fn:o.fn,options:[n,r]}};var ZS=Object.defineProperty,sr=(n,r)=>ZS(n,"name",{value:r,configurable:!0}),om="Popper",[im,Gs]=nr(om),[qS,sm]=im(om),KS=sr(n=>{const{__scopePopper:r,children:o}=n,[s,l]=m.useState(null),[u,d]=m.useState(void 0);return O.jsx(qS,{scope:r,anchor:s,onAnchorChange:l,placementState:u,setPlacementState:d,children:o})},"Popper"),GS="PopperAnchor",QS=m.forwardRef(sr(function(r,o){const{__scopePopper:s,virtualRef:l,...u}=r,d=sm(GS,s),p=m.useRef(null),h=d.onAnchorChange,v=m.useCallback(b=>{p.current=b,b&&h(b)},[h]),y=He(o,v),x=m.useRef(null);m.useEffect(()=>{if(!l)return;const b=x.current;x.current=l.current,b!==x.current&&h(x.current)});const w=d.placementState&&Qs(d.placementState),E=w?.[0],_=w?.[1];return l?null:O.jsx(Be.div,{"data-radix-popper-side":E,"data-radix-popper-align":_,...u,ref:y})},"PopperAnchor")),am="PopperContent",[YS,Qb]=im(am),XS=m.forwardRef(sr(function(r,o){const{__scopePopper:s,side:l="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:x=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:_="optimized",onPlaced:b,...S}=r,A=sm(am,s),[D,T]=m.useState(null),N=He(o,T),[U,L]=m.useState(null),W=Lp(U),F=W?.width??0,re=W?.height??0,me=l+(d!=="center"?"-"+d:""),ke=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},oe=Array.isArray(y)?y:[y],he=oe.length>0,ve={padding:ke,boundary:oe.filter(lm),altBoundary:he},{refs:Se,floatingStyles:ue,placement:ie,isPositioned:B,middlewareData:X}=jS({strategy:"fixed",placement:me,whileElementsMounted:sr((...K)=>RS(...K,{animationFrame:_==="always"}),"whileElementsMounted"),elements:{reference:A.anchor},middleware:[FS({mainAxis:u+re,alignmentAxis:p}),v&&$S({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?VS():void 0,...ve}),v&&US({...ve}),BS({...ve,apply:sr(({elements:K,rects:Ce,availableWidth:Ne,availableHeight:Me})=>{const{width:Le,height:ft}=Ce.reference,bt=K.floating.style;bt.setProperty("--radix-popper-available-width",`${Ne}px`),bt.setProperty("--radix-popper-available-height",`${Me}px`),bt.setProperty("--radix-popper-anchor-width",`${Le}px`),bt.setProperty("--radix-popper-anchor-height",`${ft}px`)},"apply")}),U&&HS({element:U,padding:h}),JS({arrowWidth:F,arrowHeight:re}),E&&WS({strategy:"referenceHidden",...ve,boundary:he?ve.boundary:void 0})]}),z=A.setPlacementState;ot(()=>(z(ie),()=>{z(void 0)}),[ie,z]);const[P,C]=Qs(ie),Q=pn(b);ot(()=>{B&&Q?.()},[B,Q]);const ne=X.arrow?.x,H=X.arrow?.y,V=X.arrow?.centerOffset!==0,[te,Z]=m.useState();return ot(()=>{D&&Z(window.getComputedStyle(D).zIndex)},[D]),O.jsx("div",{ref:Se.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:B?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:r.dir,children:O.jsx(YS,{scope:s,placedSide:P,placedAlign:C,onArrowChange:L,arrowX:ne,arrowY:H,shouldHideArrow:V,children:O.jsx(Be.div,{"data-side":P,"data-align":C,...S,ref:N,style:{...S.style,animation:B?S.style?.animation:"none"}})})})},"PopperContent"));function lm(n){return n!==null}sr(lm,"isNotNull");var JS=sr(n=>({name:"transformOrigin",options:n,fn(r){const{placement:o,rects:s,middlewareData:l}=r,d=l.arrow?.centerOffset!==0,p=d?0:n.arrowWidth,h=d?0:n.arrowHeight,[v,y]=Qs(o),x={start:"0%",center:"50%",end:"100%"}[y],w=(l.arrow?.x??0)+p/2,E=(l.arrow?.y??0)+h/2;let _="",b="";return v==="bottom"?(_=d?x:`${w}px`,b=`${-h}px`):v==="top"?(_=d?x:`${w}px`,b=`${s.floating.height+h}px`):v==="right"?(_=`${-h}px`,b=d?x:`${E}px`):v==="left"&&(_=`${s.floating.width+h}px`,b=d?x:`${E}px`),{data:{x:_,y:b}}}}),"transformOrigin");function Qs(n){const[r,o="center"]=n.split("-");return[r,o]}sr(Qs,"getSideAndAlignFromPlacement");var um=KS,cm=QS,dm=XS,e1=Object.defineProperty,t1=(n,r)=>e1(n,"name",{value:r,configurable:!0});function fm(n){const r=m.useRef({value:n,previous:n});return m.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}t1(fm,"usePrevious");var n1=Object.defineProperty,r1=(n,r)=>n1(n,"name",{value:r,configurable:!0});function ku(n,[r,o]){return Math.min(o,Math.max(r,n))}r1(ku,"clamp");var o1=Object.defineProperty,ar=(n,r)=>o1(n,"name",{value:r,configurable:!0}),Eu="Popover",[pm,Yb]=nr(Eu,[Gs]),bu=Gs(),[i1,ko]=pm(Eu),s1=ar(n=>{const{__scopePopover:r,children:o,open:s,defaultOpen:l,onOpenChange:u,modal:d=!1}=n,p=bu(r),h=m.useRef(null),[v,y]=m.useState(!1),[x,w]=ui({prop:s,defaultProp:l??!1,onChange:u,caller:Eu});return O.jsx(um,{...p,children:O.jsx(i1,{scope:r,contentId:jt(),triggerRef:h,open:x,onOpenChange:w,onOpenToggle:m.useCallback(()=>w(E=>!E),[w]),hasCustomAnchor:v,onCustomAnchorAdd:m.useCallback(()=>y(!0),[]),onCustomAnchorRemove:m.useCallback(()=>y(!1),[]),modal:d,children:o})})},"Popover"),a1="PopoverTrigger",l1=m.forwardRef(ar(function(r,o){const{__scopePopover:s,...l}=r,u=ko(a1,s),d=bu(s),p=He(o,u.triggerRef),h=O.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":Cu(u.open),...l,ref:p,onClick:Ve(r.onClick,u.onOpenToggle)});return u.hasCustomAnchor?h:O.jsx(cm,{asChild:!0,...d,children:h})},"PopoverTrigger")),mm="PopoverPortal",[u1,c1]=pm(mm,{forceMount:void 0}),d1=ar(n=>{const{__scopePopover:r,forceMount:o,children:s,container:l}=n,u=ko(mm,r);return O.jsx(u1,{scope:r,forceMount:o,children:O.jsx(po,{present:o||u.open,children:O.jsx(Yl,{asChild:!0,container:l,children:s})})})},"PopoverPortal"),mi="PopoverContent",f1=m.forwardRef(ar(function(r,o){const s=c1(mi,r.__scopePopover),{forceMount:l=s.forceMount,...u}=r,d=ko(mi,r.__scopePopover);return O.jsx(po,{present:l||d.open,children:d.modal?O.jsx(m1,{...u,ref:o}):O.jsx(h1,{...u,ref:o})})},"PopoverContent")),p1=fn("PopoverContent.RemoveScroll"),m1=m.forwardRef(ar(function(r,o){const s=ko(mi,r.__scopePopover),l=m.useRef(null),u=He(o,l),d=m.useRef(!1);return m.useEffect(()=>{const p=l.current;if(p)return iu(p)},[]),O.jsx(As,{as:p1,allowPinchZoom:!0,children:O.jsx(hm,{...r,ref:u,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ve(r.onCloseAutoFocus,p=>{p.preventDefault(),d.current||s.triggerRef.current?.focus()}),onPointerDownOutside:Ve(r.onPointerDownOutside,p=>{const h=p.detail.originalEvent,v=h.button===0&&h.ctrlKey===!0,y=h.button===2||v;d.current=y},{checkForDefaultPrevented:!1}),onFocusOutside:Ve(r.onFocusOutside,p=>p.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),h1=m.forwardRef(ar(function(r,o){const s=ko(mi,r.__scopePopover),l=m.useRef(!1),u=m.useRef(!1);return O.jsx(hm,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{r.onCloseAutoFocus?.(d),d.defaultPrevented||(l.current||s.triggerRef.current?.focus(),d.preventDefault()),l.current=!1,u.current=!1},onInteractOutside:d=>{r.onInteractOutside?.(d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const p=d.target;s.triggerRef.current?.contains(p)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.current&&d.preventDefault()}})},"PopoverContentNonModal")),hm=m.forwardRef(ar(function(r,o){const{__scopePopover:s,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:d,disableOutsidePointerEvents:p,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:x,...w}=r,E=ko(mi,s),_=bu(s);return ci(),O.jsx(ql,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:u,onUnmountAutoFocus:d,children:O.jsx(Ul,{asChild:!0,disableOutsidePointerEvents:p,onInteractOutside:x,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:y,onDismiss:()=>E.onOpenChange(!1),deferPointerDownOutside:!0,children:O.jsx(dm,{"data-state":Cu(E.open),role:"dialog",id:E.contentId,..._,...w,ref:o,style:{...w.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)"}})})})},"PopoverContentImpl"));function Cu(n){return n?"open":"closed"}ar(Cu,"getState");var v1=s1,g1=l1,y1=d1,x1=f1,w1=Object.defineProperty,ze=(n,r)=>w1(n,"name",{value:r,configurable:!0}),S1=[" ","Enter","ArrowUp","ArrowDown"],_1=[" ","Enter"],Eo="Select",[Ys,Xs,k1]=jf(Eo),[Ur,Xb]=nr(Eo,[k1,Gs]),Ru=Gs(),[E1,lr]=Ur(Eo),[b1,C1]=Ur(Eo);function vm(n){const{__scopeSelect:r,children:o,open:s,defaultOpen:l,onOpenChange:u,value:d,defaultValue:p,onValueChange:h,dir:v,name:y,autoComplete:x,disabled:w,required:E,form:_,internal_do_not_use_render:b}=n,S=Ru(r),[A,D]=m.useState(null),[T,N]=m.useState(null),[U,L]=m.useState(!1),W=np(v),[F,re]=ui({prop:s,defaultProp:l??!1,onChange:u,caller:Eo}),[me,ke]=ui({prop:d,defaultProp:p,onChange:h,caller:Eo}),oe=m.useRef(null),he=m.useRef(me);m.useEffect(()=>{const C=_?A?.ownerDocument.getElementById(_):A?.form;if(C instanceof HTMLFormElement){const Q=ze(()=>ke(he.current),"reset");return C.addEventListener("reset",Q),()=>C.removeEventListener("reset",Q)}},[_,A,ke]);const ve=A?!!_||!!A.closest("form"):!0,[Se,ue]=m.useState(new Set),ie=jt(),B=Array.from(Se).map(C=>C.props.value).join(";"),X=m.useCallback(C=>{ue(Q=>new Set(Q).add(C))},[]),z=m.useCallback(C=>{ue(Q=>{const ne=new Set(Q);return ne.delete(C),ne})},[]),P={required:E,trigger:A,onTriggerChange:D,valueNode:T,onValueNodeChange:N,valueNodeHasChildren:U,onValueNodeHasChildrenChange:L,contentId:ie,value:me,onValueChange:ke,open:F,onOpenChange:re,dir:W,triggerPointerDownPosRef:oe,disabled:w,name:y,autoComplete:x,form:_,nativeOptions:Se,nativeSelectKey:B,isFormControl:ve};return O.jsx(um,{...S,children:O.jsx(E1,{scope:r,...P,children:O.jsx(Ys.Provider,{scope:r,children:O.jsx(b1,{scope:r,onNativeOptionAdd:X,onNativeOptionRemove:z,children:Em(b)?b(P):o})})})})}ze(vm,"SelectProvider");var R1=ze(n=>{const{__scopeSelect:r,children:o,...s}=n;return O.jsx(vm,{__scopeSelect:r,...s,internal_do_not_use_render:({isFormControl:l})=>O.jsxs(O.Fragment,{children:[o,l?O.jsx(J1,{__scopeSelect:r}):null]})})},"Select"),I1="SelectTrigger",P1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,disabled:l=!1,...u}=r,d=Ru(s),p=lr(I1,s),h=p.disabled||l,v=He(o,p.onTriggerChange),y=Xs(s),x=m.useRef("touch"),[w,E,_]=Nu(S=>{const A=y().filter(N=>!N.disabled),D=A.find(N=>N.value===p.value),T=Ou(A,S,D);T!==void 0&&p.onValueChange(T.value)}),b=ze(S=>{h||(p.onOpenChange(!0),_()),S&&(p.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})},"handleOpen");return O.jsx(cm,{asChild:!0,...d,children:O.jsx(Be.button,{type:"button",role:"combobox","aria-controls":p.open?p.contentId:void 0,"aria-expanded":p.open,"aria-required":p.required,"aria-autocomplete":"none",dir:p.dir,"data-state":p.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":hi(p.value)?"":void 0,...u,ref:v,onClick:Ve(u.onClick,S=>{S.currentTarget.focus(),x.current!=="mouse"&&b(S)}),onPointerDown:Ve(u.onPointerDown,S=>{x.current=S.pointerType;const A=S.target;A.hasPointerCapture(S.pointerId)&&A.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(b(S),S.preventDefault())}),onKeyDown:Ve(u.onKeyDown,S=>{const A=w.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&E(S.key),!(A&&S.key===" ")&&S1.includes(S.key)&&(b(),S.preventDefault())})})})},"SelectTrigger")),N1="SelectValue",O1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,className:l,style:u,children:d,placeholder:p="",...h}=r,v=lr(N1,s),{onValueNodeHasChildrenChange:y}=v,x=d!==void 0,w=He(o,v.onValueNodeChange);ot(()=>{y(x)},[y,x]);const E=hi(v.value);return O.jsx(Be.span,{...h,asChild:E?!1:h.asChild,ref:w,style:{pointerEvents:"none"},children:O.jsx(m.Fragment,{children:E?p:d},E?"placeholder":"value")})},"SelectValue")),T1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,children:l,...u}=r;return O.jsx(Be.span,{"aria-hidden":!0,...u,ref:o,children:l||"▼"})},"SelectIcon")),A1="SelectPortal",[D1,M1]=Ur(A1,{forceMount:void 0}),L1=ze(n=>{const{__scopeSelect:r,forceMount:o,...s}=n;return O.jsx(D1,{scope:n.__scopeSelect,forceMount:o,children:O.jsx(Yl,{asChild:!0,...s})})},"SelectPortal"),Br="SelectContent",j1=m.forwardRef(ze(function(r,o){const s=M1(Br,r.__scopeSelect),{forceMount:l=s.forceMount,...u}=r,d=lr(Br,r.__scopeSelect),[p,h]=m.useState();return ot(()=>{h(new DocumentFragment)},[]),O.jsx(po,{present:l||d.open,children:({present:v})=>v?O.jsx($1,{...u,ref:o}):O.jsx(z1,{...u,fragment:p})})},"SelectContent")),z1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,children:l,fragment:u}=r;return u?ai.createPortal(O.jsx(gm,{scope:s,children:O.jsx(Ys.Slot,{scope:s,children:O.jsx("div",{ref:o,children:l})})}),u):null},"SelectContentFragment")),en=10,[gm,Wr]=Ur(Br),F1=fn("SelectContent.RemoveScroll"),$1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s}=r,{position:l="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:p,side:h,sideOffset:v,align:y,alignOffset:x,arrowPadding:w,collisionBoundary:E,collisionPadding:_,sticky:b,hideWhenDetached:S,avoidCollisions:A,...D}=r,T=lr(Br,s),[N,U]=m.useState(null),[L,W]=m.useState(null),F=He(o,U),[re,me]=m.useState(null),[ke,oe]=m.useState(null),he=Xs(s),[ve,Se]=m.useState(!1),ue=m.useRef(!1);m.useEffect(()=>{if(N)return iu(N)},[N]),ci();const ie=m.useCallback(Z=>{const[K,...Ce]=he().map(Le=>Le.ref.current),[Ne]=Ce.slice(-1),Me=document.activeElement;for(const Le of Z)if(Le===Me||(Le?.scrollIntoView({block:"nearest"}),Le===K&&L&&(L.scrollTop=0),Le===Ne&&L&&(L.scrollTop=L.scrollHeight),Le?.focus(),document.activeElement!==Me))return},[he,L]),B=m.useCallback(()=>ie([re,N]),[ie,re,N]);m.useEffect(()=>{ve&&B()},[ve,B]);const{onOpenChange:X,triggerPointerDownPosRef:z}=T;m.useEffect(()=>{if(N){let Z={x:0,y:0};const K=ze(Ne=>{Z={x:Math.abs(Math.round(Ne.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(Ne.pageY)-(z.current?.y??0))}},"handlePointerMove"),Ce=ze(Ne=>{Z.x<=10&&Z.y<=10?Ne.preventDefault():Ne.composedPath().includes(N)||X(!1),document.removeEventListener("pointermove",K),z.current=null},"handlePointerUp");return z.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[N,X,z]),m.useEffect(()=>{const Z=ze(()=>X(!1),"close");return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[X]);const[P,C]=Nu(Z=>{const K=he().filter(Me=>!Me.disabled),Ce=K.find(Me=>Me.ref.current===document.activeElement),Ne=Ou(K,Z,Ce);Ne&&setTimeout(()=>Ne.ref.current?.focus())}),Q=m.useCallback((Z,K,Ce)=>{const Ne=!ue.current&&!Ce;(T.value!==void 0&&T.value===K||Ne)&&(me(Z),Ne&&(ue.current=!0))},[T.value]),ne=m.useCallback(()=>N?.focus(),[N]),H=m.useCallback((Z,K,Ce)=>{const Ne=!ue.current&&!Ce;(T.value!==void 0&&T.value===K||Ne)&&oe(Z)},[T.value]),V=l==="popper"?ym:V1,te=V===ym?{side:h,sideOffset:v,align:y,alignOffset:x,arrowPadding:w,collisionBoundary:E,collisionPadding:_,sticky:b,hideWhenDetached:S,avoidCollisions:A}:{};return O.jsx(gm,{scope:s,content:N,viewport:L,onViewportChange:W,itemRefCallback:Q,selectedItem:re,onItemLeave:ne,itemTextRefCallback:H,focusSelectedItem:B,selectedItemText:ke,position:l,isPositioned:ve,searchRef:P,children:O.jsx(As,{as:F1,allowPinchZoom:!0,children:O.jsx(ql,{asChild:!0,trapped:T.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:Ve(u,Z=>{T.trigger?.focus({preventScroll:!0}),Z.preventDefault()}),children:O.jsx(Ul,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:O.jsx(V,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:Z=>Z.preventDefault(),...D,...te,onPlaced:()=>Se(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:Ve(D.onKeyDown,Z=>{const K=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!K&&Z.key.length===1&&C(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let Ne=he().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const Me=Z.target,Le=Ne.indexOf(Me);Ne=Ne.slice(Le+1)}setTimeout(()=>ie(Ne)),Z.preventDefault()}})})})})})})},"SelectContentImpl")),V1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,onPlaced:l,...u}=r,d=lr(Br,s),p=Wr(Br,s),[h,v]=m.useState(null),[y,x]=m.useState(null),w=He(o,x),E=Xs(s),_=m.useRef(!1),b=m.useRef(!0),{viewport:S,selectedItem:A,selectedItemText:D,focusSelectedItem:T}=p,N=m.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&y&&S&&A&&D){const F=d.trigger.getBoundingClientRect(),re=y.getBoundingClientRect(),me=d.valueNode.getBoundingClientRect(),ke=D.getBoundingClientRect();if(d.dir!=="rtl"){const Me=ke.left-re.left,Le=me.left-Me,ft=F.left-Le,bt=F.width+ft,Io=Math.max(bt,re.width),qr=window.innerWidth-en,Po=ku(Le,[en,Math.max(en,qr-Io)]);h.style.minWidth=bt+"px",h.style.left=Po+"px"}else{const Me=re.right-ke.right,Le=window.innerWidth-me.right-Me,ft=window.innerWidth-F.right-Le,bt=F.width+ft,Io=Math.max(bt,re.width),qr=window.innerWidth-en,Po=ku(Le,[en,Math.max(en,qr-Io)]);h.style.minWidth=bt+"px",h.style.right=Po+"px"}const oe=E(),he=window.innerHeight-en*2,ve=S.scrollHeight,Se=window.getComputedStyle(y),ue=parseInt(Se.borderTopWidth,10),ie=parseInt(Se.paddingTop,10),B=parseInt(Se.borderBottomWidth,10),X=parseInt(Se.paddingBottom,10),z=ue+ie+ve+X+B,P=Math.min(A.offsetHeight*5,z),C=window.getComputedStyle(S),Q=parseInt(C.paddingTop,10),ne=parseInt(C.paddingBottom,10),H=F.top+F.height/2-en,V=he-H,te=A.offsetHeight/2,Z=A.offsetTop+te,K=ue+ie+Z,Ce=z-K;if(K<=H){const Me=oe.length>0&&A===oe[oe.length-1].ref.current;h.style.bottom="0px";const Le=y.clientHeight-S.offsetTop-S.offsetHeight,ft=Math.max(V,te+(Me?ne:0)+Le+B),bt=K+ft;h.style.height=bt+"px"}else{const Me=oe.length>0&&A===oe[0].ref.current;h.style.top="0px";const ft=Math.max(H,ue+S.offsetTop+(Me?Q:0)+te)+Ce;h.style.height=ft+"px",S.scrollTop=K-H+S.offsetTop}h.style.margin=`${en}px 0`,h.style.minHeight=P+"px",h.style.maxHeight=he+"px",l?.(),requestAnimationFrame(()=>_.current=!0)}},[E,d.trigger,d.valueNode,h,y,S,A,D,d.dir,l]);ot(()=>N(),[N]);const[U,L]=m.useState();ot(()=>{y&&L(window.getComputedStyle(y).zIndex)},[y]);const W=m.useCallback(F=>{F&&b.current===!0&&(N(),T?.(),b.current=!1)},[N,T]);return O.jsx(U1,{scope:s,contentWrapper:h,shouldExpandOnScrollRef:_,onScrollButtonChange:W,children:O.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:O.jsx(Be.div,{...u,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})},"SelectItemAlignedPosition")),ym=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,align:l="start",collisionPadding:u=en,...d}=r,p=Ru(s);return O.jsx(dm,{...p,...d,ref:o,align:l,collisionPadding:u,style:{boxSizing:"border-box",...d.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)"}})},"SelectPopperPosition")),[U1,Iu]=Ur(Br,{}),xm="SelectViewport",B1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,nonce:l,...u}=r,d=Wr(xm,s),p=Iu(xm,s),h=He(o,d.onViewportChange),v=m.useRef(0);return O.jsxs(O.Fragment,{children:[O.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),O.jsx(Ys.Slot,{scope:s,children:O.jsx(Be.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Ve(u.onScroll,y=>{const x=y.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:E}=p;if(E?.current&&w){const _=Math.abs(v.current-x.scrollTop);if(_>0){const b=window.innerHeight-en*2,S=parseFloat(w.style.minHeight),A=parseFloat(w.style.height),D=Math.max(S,A);if(D<b){const T=D+_,N=Math.min(b,T),U=T-N;w.style.height=N+"px",w.style.bottom==="0px"&&(x.scrollTop=U>0?U:0,w.style.justifyContent="flex-end")}}}v.current=x.scrollTop})})})]})},"SelectViewport")),W1="SelectGroup",[Jb,eC]=Ur(W1),Pu="SelectItem",[H1,wm]=Ur(Pu),Z1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,value:l,disabled:u=!1,textValue:d,...p}=r,h=lr(Pu,s),v=Wr(Pu,s),y=h.value===l,[x,w]=m.useState(d??""),[E,_]=m.useState(!1),b=pn(N=>v.itemRefCallback?.(N,l,u)),S=He(o,b),A=jt(),D=m.useRef("touch"),T=ze(()=>{u||(h.onValueChange(l),h.onOpenChange(!1))},"handleSelect");return O.jsx(H1,{scope:s,value:l,disabled:u,textId:A,isSelected:y,onItemTextChange:m.useCallback(N=>{w(U=>U||(N?.textContent??"").trim())},[]),children:O.jsx(Ys.ItemSlot,{scope:s,value:l,disabled:u,textValue:x,children:O.jsx(Be.div,{role:"option","aria-labelledby":A,"data-highlighted":E?"":void 0,"aria-selected":y&&E,"data-state":y?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...p,ref:S,onFocus:Ve(p.onFocus,()=>_(!0)),onBlur:Ve(p.onBlur,()=>_(!1)),onClick:Ve(p.onClick,()=>{D.current!=="mouse"&&T()}),onPointerUp:Ve(p.onPointerUp,()=>{D.current==="mouse"&&T()}),onPointerDown:Ve(p.onPointerDown,N=>{D.current=N.pointerType}),onPointerMove:Ve(p.onPointerMove,N=>{D.current=N.pointerType,u?v.onItemLeave?.():D.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ve(p.onPointerLeave,N=>{N.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:Ve(p.onKeyDown,N=>{u||N.target!==N.currentTarget||v.searchRef?.current!==""&&N.key===" "||(_1.includes(N.key)&&T(),N.key===" "&&N.preventDefault())})})})})},"SelectItem")),Js="SelectItemText",q1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,className:l,style:u,...d}=r,p=lr(Js,s),h=Wr(Js,s),v=wm(Js,s),y=C1(Js,s),[x,w]=m.useState(null),E=pn(T=>h.itemTextRefCallback?.(T,v.value,v.disabled)),_=He(o,w,v.onItemTextChange,E),b=x?.textContent,S=m.useMemo(()=>O.jsx("option",{value:v.value,disabled:v.disabled,children:b},v.value),[v.disabled,v.value,b]),{onNativeOptionAdd:A,onNativeOptionRemove:D}=y;return ot(()=>(A(S),()=>D(S)),[A,D,S]),O.jsxs(O.Fragment,{children:[O.jsx(Be.span,{id:v.textId,...d,ref:_}),v.isSelected&&p.valueNode&&!p.valueNodeHasChildren&&!hi(p.value)?ai.createPortal(d.children,p.valueNode):null]})},"SelectItemText")),K1="SelectItemIndicator",G1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,...l}=r;return wm(K1,s).isSelected?O.jsx(Be.span,{"aria-hidden":!0,...l,ref:o}):null},"SelectItemIndicator")),Sm="SelectScrollUpButton",Q1=m.forwardRef(ze(function(r,o){const s=Wr(Sm,r.__scopeSelect),l=Iu(Sm,r.__scopeSelect),[u,d]=m.useState(!1),p=He(o,l.onScrollButtonChange);return ot(()=>{if(s.viewport&&s.isPositioned){let h=function(){const y=v.scrollTop>0;d(y)};ze(h,"handleScroll");const v=s.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[s.viewport,s.isPositioned]),u?O.jsx(km,{...r,ref:p,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=s;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null},"SelectScrollUpButton")),_m="SelectScrollDownButton",Y1=m.forwardRef(ze(function(r,o){const s=Wr(_m,r.__scopeSelect),l=Iu(_m,r.__scopeSelect),[u,d]=m.useState(!1),p=He(o,l.onScrollButtonChange);return ot(()=>{if(s.viewport&&s.isPositioned){let h=function(){const y=v.scrollHeight-v.clientHeight,x=Math.ceil(v.scrollTop)<y;d(x)};ze(h,"handleScroll");const v=s.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[s.viewport,s.isPositioned]),u?O.jsx(km,{...r,ref:p,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=s;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null},"SelectScrollDownButton")),km=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,onAutoScroll:l,...u}=r,d=Wr("SelectScrollButton",s),p=m.useRef(null),h=Xs(s),v=m.useCallback(()=>{p.current!==null&&(window.clearInterval(p.current),p.current=null)},[]);return m.useEffect(()=>()=>v(),[v]),ot(()=>{h().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),O.jsx(Be.div,{"aria-hidden":!0,...u,ref:o,style:{flexShrink:0,...u.style},onPointerDown:Ve(u.onPointerDown,()=>{p.current===null&&(p.current=window.setInterval(l,50))}),onPointerMove:Ve(u.onPointerMove,()=>{d.onItemLeave?.(),p.current===null&&(p.current=window.setInterval(l,50))}),onPointerLeave:Ve(u.onPointerLeave,()=>{v()})})},"SelectScrollButtonImpl")),X1="SelectBubbleInput",J1=m.forwardRef(ze(function({__scopeSelect:r,...o},s){const l=lr(X1,r),{value:u,onValueChange:d,required:p,disabled:h,name:v,autoComplete:y,form:x}=l,{nativeOptions:w,nativeSelectKey:E}=l,_=m.useRef(null),b=He(s,_),S=u??"",A=fm(S),D=Array.from(w).some(T=>(T.props.value??"")==="");return m.useEffect(()=>{const T=_.current;if(!T)return;const N=window.HTMLSelectElement.prototype,L=Object.getOwnPropertyDescriptor(N,"value").set;if(A!==S&&L){const W=new Event("change",{bubbles:!0});L.call(T,S),T.dispatchEvent(W)}},[A,S]),O.jsxs(Be.select,{"aria-hidden":!0,required:p,tabIndex:-1,name:v,autoComplete:y,disabled:h,form:x,onChange:T=>d(T.target.value),...o,style:{...W0,...o.style},ref:b,defaultValue:S,children:[hi(u)&&!D?O.jsx("option",{value:""}):null,Array.from(w)]},E)},"SelectBubbleInput"));function Em(n){return typeof n=="function"}ze(Em,"isFunction");function hi(n){return n===""||n===void 0}ze(hi,"shouldShowPlaceholder");function Nu(n){const r=pn(n),o=m.useRef(""),s=m.useRef(0),l=m.useCallback(d=>{const p=o.current+d;r(p),ze((function h(v){o.current=v,window.clearTimeout(s.current),v!==""&&(s.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(p)},[r]),u=m.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,l,u]}ze(Nu,"useTypeaheadSearch");function Ou(n,r,o){const l=r.length>1&&Array.from(r).every(v=>v===r[0])?r[0]:r,u=o?n.indexOf(o):-1;let d=bm(n,Math.max(u,0));l.length===1&&(d=d.filter(v=>v!==o));const h=d.find(v=>v.textValue.toLowerCase().startsWith(l.toLowerCase()));return h!==o?h:void 0}ze(Ou,"findNextItem");function bm(n,r){return n.map((o,s)=>n[(r+s)%n.length])}ze(bm,"wrapArray");const Cm=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Rm=tf,Im=(n,r)=>o=>{var s;if(r?.variants==null)return Rm(n,o?.class,o?.className);const{variants:l,defaultVariants:u}=r,d=Object.keys(l).map(v=>{const y=o?.[v],x=u?.[v];if(y===null)return null;const w=Cm(y)||Cm(x);return l[v][w]}),p=o&&Object.entries(o).reduce((v,y)=>{let[x,w]=y;return w===void 0||(v[x]=w),v},{}),h=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((v,y)=>{let{class:x,className:w,...E}=y;return Object.entries(E).every(_=>{let[b,S]=_;return Array.isArray(S)?S.includes({...u,...p}[b]):{...u,...p}[b]===S})?[...v,x,w]:v},[]);return Rm(n,d,h,o?.class,o?.className)};var Pm=1,e_=.9,t_=.8,n_=.17,Tu=.1,Au=.999,r_=.9999,o_=.99,i_=/[\\\/_+.#"@\[\(\{&]/,s_=/[\\\/_+.#"@\[\(\{&]/g,a_=/[\s-]/,Nm=/[\s-]/g;function Du(n,r,o,s,l,u,d){if(u===r.length)return l===n.length?Pm:o_;var p=`${l},${u}`;if(d[p]!==void 0)return d[p];for(var h=s.charAt(u),v=o.indexOf(h,l),y=0,x,w,E,_;v>=0;)x=Du(n,r,o,s,v+1,u+1,d),x>y&&(v===l?x*=Pm:i_.test(n.charAt(v-1))?(x*=t_,E=n.slice(l,v-1).match(s_),E&&l>0&&(x*=Math.pow(Au,E.length))):a_.test(n.charAt(v-1))?(x*=e_,_=n.slice(l,v-1).match(Nm),_&&l>0&&(x*=Math.pow(Au,_.length))):(x*=n_,l>0&&(x*=Math.pow(Au,v-l))),n.charAt(v)!==r.charAt(u)&&(x*=r_)),(x<Tu&&o.charAt(v-1)===s.charAt(u+1)||s.charAt(u+1)===s.charAt(u)&&o.charAt(v-1)!==s.charAt(u))&&(w=Du(n,r,o,s,v+1,u+2,d),w*Tu>x&&(x=w*Tu)),x>y&&(y=x),v=o.indexOf(h,v+1);return d[p]=y,y}function Om(n){return n.toLowerCase().replace(Nm," ")}function l_(n,r,o){return n=o&&o.length>0?`${n+" "+o.join(" ")}`:n,Du(n,r,Om(n),Om(r),0,0,{})}var vi='[cmdk-group=""]',Mu='[cmdk-group-items=""]',u_='[cmdk-group-heading=""]',Tm='[cmdk-item=""]',Am=`${Tm}:not([aria-disabled="true"])`,Lu="cmdk-item-select",bo="data-value",c_=(n,r,o)=>l_(n,r,o),Dm=m.createContext(void 0),gi=()=>m.useContext(Dm),Mm=m.createContext(void 0),ju=()=>m.useContext(Mm),Lm=m.createContext(void 0),jm=m.forwardRef((n,r)=>{let o=Co(()=>{var C,Q;return{search:"",value:(Q=(C=n.value)!=null?C:n.defaultValue)!=null?Q:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=Co(()=>new Set),l=Co(()=>new Map),u=Co(()=>new Map),d=Co(()=>new Set),p=zm(n),{label:h,children:v,value:y,onValueChange:x,filter:w,shouldFilter:E,loop:_,disablePointerSelection:b=!1,vimBindings:S=!0,...A}=n,D=jt(),T=jt(),N=jt(),U=m.useRef(null),L=S_();Hr(()=>{if(y!==void 0){let C=y.trim();o.current.value=C,W.emit()}},[y]),Hr(()=>{L(6,he)},[]);let W=m.useMemo(()=>({subscribe:C=>(d.current.add(C),()=>d.current.delete(C)),snapshot:()=>o.current,setState:(C,Q,ne)=>{var H,V,te,Z;if(!Object.is(o.current[C],Q)){if(o.current[C]=Q,C==="search")oe(),me(),L(1,ke);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let K=document.getElementById(N);K?K.focus():(H=document.getElementById(D))==null||H.focus()}if(L(7,()=>{var K;o.current.selectedItemId=(K=ve())==null?void 0:K.id,W.emit()}),ne||L(5,he),((V=p.current)==null?void 0:V.value)!==void 0){let K=Q??"";(Z=(te=p.current).onValueChange)==null||Z.call(te,K);return}}W.emit()}},emit:()=>{d.current.forEach(C=>C())}}),[]),F=m.useMemo(()=>({value:(C,Q,ne)=>{var H;Q!==((H=u.current.get(C))==null?void 0:H.value)&&(u.current.set(C,{value:Q,keywords:ne}),o.current.filtered.items.set(C,re(Q,ne)),L(2,()=>{me(),W.emit()}))},item:(C,Q)=>(s.current.add(C),Q&&(l.current.has(Q)?l.current.get(Q).add(C):l.current.set(Q,new Set([C]))),L(3,()=>{oe(),me(),o.current.value||ke(),W.emit()}),()=>{u.current.delete(C),s.current.delete(C),o.current.filtered.items.delete(C);let ne=ve();L(4,()=>{oe(),ne?.getAttribute("id")===C&&ke(),W.emit()})}),group:C=>(l.current.has(C)||l.current.set(C,new Set),()=>{u.current.delete(C),l.current.delete(C)}),filter:()=>p.current.shouldFilter,label:h||n["aria-label"],getDisablePointerSelection:()=>p.current.disablePointerSelection,listId:D,inputId:N,labelId:T,listInnerRef:U}),[]);function re(C,Q){var ne,H;let V=(H=(ne=p.current)==null?void 0:ne.filter)!=null?H:c_;return C?V(C,o.current.search,Q):0}function me(){if(!o.current.search||p.current.shouldFilter===!1)return;let C=o.current.filtered.items,Q=[];o.current.filtered.groups.forEach(H=>{let V=l.current.get(H),te=0;V.forEach(Z=>{let K=C.get(Z);te=Math.max(K,te)}),Q.push([H,te])});let ne=U.current;Se().sort((H,V)=>{var te,Z;let K=H.getAttribute("id"),Ce=V.getAttribute("id");return((te=C.get(Ce))!=null?te:0)-((Z=C.get(K))!=null?Z:0)}).forEach(H=>{let V=H.closest(Mu);V?V.appendChild(H.parentElement===V?H:H.closest(`${Mu} > *`)):ne.appendChild(H.parentElement===ne?H:H.closest(`${Mu} > *`))}),Q.sort((H,V)=>V[1]-H[1]).forEach(H=>{var V;let te=(V=U.current)==null?void 0:V.querySelector(`${vi}[${bo}="${encodeURIComponent(H[0])}"]`);te?.parentElement.appendChild(te)})}function ke(){let C=Se().find(ne=>ne.getAttribute("aria-disabled")!=="true"),Q=C?.getAttribute(bo);W.setState("value",Q||void 0)}function oe(){var C,Q,ne,H;if(!o.current.search||p.current.shouldFilter===!1){o.current.filtered.count=s.current.size;return}o.current.filtered.groups=new Set;let V=0;for(let te of s.current){let Z=(Q=(C=u.current.get(te))==null?void 0:C.value)!=null?Q:"",K=(H=(ne=u.current.get(te))==null?void 0:ne.keywords)!=null?H:[],Ce=re(Z,K);o.current.filtered.items.set(te,Ce),Ce>0&&V++}for(let[te,Z]of l.current)for(let K of Z)if(o.current.filtered.items.get(K)>0){o.current.filtered.groups.add(te);break}o.current.filtered.count=V}function he(){var C,Q,ne;let H=ve();H&&(((C=H.parentElement)==null?void 0:C.firstChild)===H&&((ne=(Q=H.closest(vi))==null?void 0:Q.querySelector(u_))==null||ne.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function ve(){var C;return(C=U.current)==null?void 0:C.querySelector(`${Tm}[aria-selected="true"]`)}function Se(){var C;return Array.from(((C=U.current)==null?void 0:C.querySelectorAll(Am))||[])}function ue(C){let Q=Se()[C];Q&&W.setState("value",Q.getAttribute(bo))}function ie(C){var Q;let ne=ve(),H=Se(),V=H.findIndex(Z=>Z===ne),te=H[V+C];(Q=p.current)!=null&&Q.loop&&(te=V+C<0?H[H.length-1]:V+C===H.length?H[0]:H[V+C]),te&&W.setState("value",te.getAttribute(bo))}function B(C){let Q=ve(),ne=Q?.closest(vi),H;for(;ne&&!H;)ne=C>0?x_(ne,vi):w_(ne,vi),H=ne?.querySelector(Am);H?W.setState("value",H.getAttribute(bo)):ie(C)}let X=()=>ue(Se().length-1),z=C=>{C.preventDefault(),C.metaKey?X():C.altKey?B(1):ie(1)},P=C=>{C.preventDefault(),C.metaKey?ue(0):C.altKey?B(-1):ie(-1)};return m.createElement(Be.div,{ref:r,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:C=>{var Q;(Q=A.onKeyDown)==null||Q.call(A,C);let ne=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||ne))switch(C.key){case"n":case"j":{S&&C.ctrlKey&&z(C);break}case"ArrowDown":{z(C);break}case"p":case"k":{S&&C.ctrlKey&&P(C);break}case"ArrowUp":{P(C);break}case"Home":{C.preventDefault(),ue(0);break}case"End":{C.preventDefault(),X();break}case"Enter":{C.preventDefault();let H=ve();if(H){let V=new Event(Lu);H.dispatchEvent(V)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:k_},h),ea(n,C=>m.createElement(Mm.Provider,{value:W},m.createElement(Dm.Provider,{value:F},C))))}),d_=m.forwardRef((n,r)=>{var o,s;let l=jt(),u=m.useRef(null),d=m.useContext(Lm),p=gi(),h=zm(n),v=(s=(o=h.current)==null?void 0:o.forceMount)!=null?s:d?.forceMount;Hr(()=>{if(!v)return p.item(l,d?.id)},[v]);let y=Fm(l,u,[n.value,n.children,u],n.keywords),x=ju(),w=ur(L=>L.value&&L.value===y.current),E=ur(L=>v||p.filter()===!1?!0:L.search?L.filtered.items.get(l)>0:!0);m.useEffect(()=>{let L=u.current;if(!(!L||n.disabled))return L.addEventListener(Lu,_),()=>L.removeEventListener(Lu,_)},[E,n.onSelect,n.disabled]);function _(){var L,W;b(),(W=(L=h.current).onSelect)==null||W.call(L,y.current)}function b(){x.setState("value",y.current,!0)}if(!E)return null;let{disabled:S,value:A,onSelect:D,forceMount:T,keywords:N,...U}=n;return m.createElement(Be.div,{ref:zr(u,r),...U,id:l,"cmdk-item":"",role:"option","aria-disabled":!!S,"aria-selected":!!w,"data-disabled":!!S,"data-selected":!!w,onPointerMove:S||p.getDisablePointerSelection()?void 0:b,onClick:S?void 0:_},n.children)}),f_=m.forwardRef((n,r)=>{let{heading:o,children:s,forceMount:l,...u}=n,d=jt(),p=m.useRef(null),h=m.useRef(null),v=jt(),y=gi(),x=ur(E=>l||y.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);Hr(()=>y.group(d),[]),Fm(d,p,[n.value,n.heading,h]);let w=m.useMemo(()=>({id:d,forceMount:l}),[l]);return m.createElement(Be.div,{ref:zr(p,r),...u,"cmdk-group":"",role:"presentation",hidden:x?void 0:!0},o&&m.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:v},o),ea(n,E=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?v:void 0},m.createElement(Lm.Provider,{value:w},E))))}),p_=m.forwardRef((n,r)=>{let{alwaysRender:o,...s}=n,l=m.useRef(null),u=ur(d=>!d.search);return!o&&!u?null:m.createElement(Be.div,{ref:zr(l,r),...s,"cmdk-separator":"",role:"separator"})}),m_=m.forwardRef((n,r)=>{let{onValueChange:o,...s}=n,l=n.value!=null,u=ju(),d=ur(v=>v.search),p=ur(v=>v.selectedItemId),h=gi();return m.useEffect(()=>{n.value!=null&&u.setState("search",n.value)},[n.value]),m.createElement(Be.input,{ref:r,...s,"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":p,id:h.inputId,type:"text",value:l?n.value:d,onChange:v=>{l||u.setState("search",v.target.value),o?.(v.target.value)}})}),h_=m.forwardRef((n,r)=>{let{children:o,label:s="Suggestions",...l}=n,u=m.useRef(null),d=m.useRef(null),p=ur(v=>v.selectedItemId),h=gi();return m.useEffect(()=>{if(d.current&&u.current){let v=d.current,y=u.current,x,w=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let E=v.offsetHeight;y.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return w.observe(v),()=>{cancelAnimationFrame(x),w.unobserve(v)}}},[]),m.createElement(Be.div,{ref:zr(u,r),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":p,"aria-label":s,id:h.listId},ea(n,v=>m.createElement("div",{ref:zr(d,h.listInnerRef),"cmdk-list-sizer":""},v)))}),v_=m.forwardRef((n,r)=>{let{open:o,onOpenChange:s,overlayClassName:l,contentClassName:u,container:d,...p}=n;return m.createElement(au,{open:o,onOpenChange:s},m.createElement(lu,{container:d},m.createElement(cu,{"cmdk-overlay":"",className:l}),m.createElement(du,{"aria-label":n.label,"cmdk-dialog":"",className:u},m.createElement(jm,{ref:r,...p}))))}),g_=m.forwardRef((n,r)=>ur(o=>o.filtered.count===0)?m.createElement(Be.div,{ref:r,...n,"cmdk-empty":"",role:"presentation"}):null),y_=m.forwardRef((n,r)=>{let{progress:o,children:s,label:l="Loading...",...u}=n;return m.createElement(Be.div,{ref:r,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},ea(n,d=>m.createElement("div",{"aria-hidden":!0},d)))}),yi=Object.assign(jm,{List:h_,Item:d_,Input:m_,Group:f_,Separator:p_,Dialog:v_,Empty:g_,Loading:y_});function x_(n,r){let o=n.nextElementSibling;for(;o;){if(o.matches(r))return o;o=o.nextElementSibling}}function w_(n,r){let o=n.previousElementSibling;for(;o;){if(o.matches(r))return o;o=o.previousElementSibling}}function zm(n){let r=m.useRef(n);return Hr(()=>{r.current=n}),r}var Hr=typeof window>"u"?m.useEffect:m.useLayoutEffect;function Co(n){let r=m.useRef();return r.current===void 0&&(r.current=n()),r}function ur(n){let r=ju(),o=()=>n(r.snapshot());return m.useSyncExternalStore(r.subscribe,o,o)}function Fm(n,r,o,s=[]){let l=m.useRef(),u=gi();return Hr(()=>{var d;let p=(()=>{var v;for(let y of o){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(v=y.current.textContent)==null?void 0:v.trim():l.current}})(),h=s.map(v=>v.trim());u.value(n,p,h),(d=r.current)==null||d.setAttribute(bo,p),l.current=p}),l}var S_=()=>{let[n,r]=m.useState(),o=Co(()=>new Map);return Hr(()=>{o.current.forEach(s=>s()),o.current=new Map},[n]),(s,l)=>{o.current.set(s,l),r({})}};function __(n){let r=n.type;return typeof r=="function"?r(n.props):"render"in r?r.render(n.props):n}function ea({asChild:n,children:r},o){return n&&m.isValidElement(r)?m.cloneElement(__(r),{ref:r.ref},o(r.props.children)):o(r)}var k_={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};m.createContext(null);function Ue(...n){return g0(tf(n))}const zu=Im("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 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/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function dt({className:n,variant:r="default",size:o="default",asChild:s=!1,...l}){const u=s?M0:"button";return O.jsx(u,{"data-slot":"button","data-variant":r,"data-size":o,className:Ue(zu({variant:r,size:o,className:n})),...l})}function E_({...n}){return O.jsx(Tw,{"data-slot":"alert-dialog",...n})}function b_({...n}){return O.jsx(Aw,{"data-slot":"alert-dialog-portal",...n})}function C_({className:n,...r}){return O.jsx(Dw,{"data-slot":"alert-dialog-overlay",className:Ue("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",n),...r})}function R_({className:n,size:r="default",...o}){return O.jsxs(b_,{children:[O.jsx(C_,{}),O.jsx(Mw,{"data-slot":"alert-dialog-content","data-size":r,className:Ue("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...o})]})}function I_({className:n,...r}){return O.jsx("div",{"data-slot":"alert-dialog-footer",className:Ue("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",n),...r})}function P_({className:n,...r}){return O.jsx(jw,{"data-slot":"alert-dialog-title",className:Ue("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",n),...r})}function N_({className:n,...r}){return O.jsx(zw,{"data-slot":"alert-dialog-description",className:Ue("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",n),...r})}function O_({className:n,variant:r="outline",size:o="default",...s}){return O.jsx(dt,{variant:r,size:o,asChild:!0,children:O.jsx(Lw,{"data-slot":"alert-dialog-cancel",className:Ue(n),...s})})}function T_({...n}){return O.jsx(au,{"data-slot":"dialog",...n})}function A_({...n}){return O.jsx(lu,{"data-slot":"dialog-portal",...n})}function D_({className:n,...r}){return O.jsx(cu,{"data-slot":"dialog-overlay",className:Ue("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",n),...r})}function M_({className:n,children:r,showCloseButton:o=!0,...s}){return O.jsxs(A_,{children:[O.jsx(D_,{}),O.jsxs(du,{"data-slot":"dialog-content",className:Ue("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...s,children:[r,o&&O.jsx(Ls,{"data-slot":"dialog-close",asChild:!0,children:O.jsxs(dt,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[O.jsx(N0,{}),O.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function L_({className:n,...r}){return O.jsx("div",{"data-slot":"dialog-header",className:Ue("flex flex-col gap-2",n),...r})}function j_({className:n,showCloseButton:r=!1,children:o,...s}){return O.jsxs("div",{"data-slot":"dialog-footer",className:Ue("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",n),...s,children:[o,r&&O.jsx(Ls,{asChild:!0,children:O.jsx(dt,{variant:"outline",children:"Close"})})]})}function z_({className:n,...r}){return O.jsx(Dp,{"data-slot":"dialog-title",className:Ue("text-base leading-none font-medium",n),...r})}function F_({className:n,...r}){return O.jsx(Mp,{"data-slot":"dialog-description",className:Ue("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",n),...r})}function $m({className:n,type:r,...o}){return O.jsx("input",{type:r,"data-slot":"input",className:Ue("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",n),...o})}function $_({className:n,...r}){return O.jsx("textarea",{"data-slot":"textarea",className:Ue("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",n),...r})}function V_({className:n,...r}){return O.jsx("div",{"data-slot":"input-group",role:"group",className:Ue("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",n),...r})}const U_=Im("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function B_({className:n,align:r="inline-start",...o}){return O.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":r,className:Ue(U_({align:r}),n),onClick:s=>{s.target.closest("button")||s.currentTarget.parentElement?.querySelector("input")?.focus()},...o})}function W_({className:n,...r}){return O.jsx(yi,{"data-slot":"command",className:Ue("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",n),...r})}function H_({className:n,...r}){return O.jsx("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:O.jsxs(V_,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[O.jsx(yi.Input,{"data-slot":"command-input",className:Ue("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",n),...r}),O.jsx(B_,{children:O.jsx(I0,{className:"size-4 shrink-0 opacity-50"})})]})})}function Z_({className:n,...r}){return O.jsx(yi.List,{"data-slot":"command-list",className:Ue("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",n),...r})}function q_({className:n,...r}){return O.jsx(yi.Empty,{"data-slot":"command-empty",className:Ue("py-6 text-center text-sm",n),...r})}function K_({className:n,children:r,...o}){return O.jsxs(yi.Item,{"data-slot":"command-item",className:Ue("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",n),...o,children:[r,O.jsx(bf,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function Vm({...n}){return O.jsx(v1,{"data-slot":"popover",...n})}function Um({...n}){return O.jsx(g1,{"data-slot":"popover-trigger",...n})}function Bm({className:n,align:r="center",sideOffset:o=4,...s}){return O.jsx(y1,{children:O.jsx(x1,{"data-slot":"popover-content",align:r,sideOffset:o,className:Ue("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...s})})}function xi({...n}){return O.jsx(R1,{"data-slot":"select",...n})}function wi({...n}){return O.jsx(O1,{"data-slot":"select-value",...n})}function Si({className:n,size:r="default",children:o,...s}){return O.jsxs(P1,{"data-slot":"select-trigger","data-size":r,className:Ue("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...s,children:[o,O.jsx(T1,{asChild:!0,children:O.jsx(Nl,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function _i({className:n,children:r,position:o="item-aligned",align:s="center",...l}){return O.jsx(L1,{children:O.jsxs(j1,{"data-slot":"select-content","data-align-trigger":o==="item-aligned",className:Ue("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o==="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",n),position:o,align:s,...l,children:[O.jsx(G_,{}),O.jsx(B1,{"data-position":o,className:Ue("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",o==="popper"&&""),children:r}),O.jsx(Q_,{})]})})}function cr({className:n,children:r,...o}){return O.jsxs(Z1,{"data-slot":"select-item",className:Ue("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]: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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...o,children:[O.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:O.jsx(G1,{children:O.jsx(bf,{className:"pointer-events-none"})})}),O.jsx(q1,{children:r})]})}function G_({className:n,...r}){return O.jsx(Q1,{"data-slot":"select-scroll-up-button",className:Ue("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",n),...r,children:O.jsx(Cf,{})})}function Q_({className:n,...r}){return O.jsx(Y1,{"data-slot":"select-scroll-down-button",className:Ue("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",n),...r,children:O.jsx(Nl,{})})}m.createContext(null),m.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});const $n=ae().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),Fu=Pn([ae().max(4e3),vt().finite(),Lt(),Jn()]),Vn=Ry(()=>Pn([ae().max(32e3),vt().finite(),Lt(),Jn(),Je(Vn).max(1e3),Mr(Vn)]));Mr(Vn);const Y_=_e({id:$n,sourceField:ae().min(1).max(256),label:ae().min(1).max(160),logicalType:Nn(["string","boolean","int64","float64","decimal","date","timestamp"]),nullable:Lt(),role:Nn(["dimension","measure","time","identifier"]),semanticRef:ae().max(512).optional(),unit:ae().max(80).optional()}).strict(),X_=_e({name:$n,controlId:$n,type:Nn(["string","number","boolean","date"]),required:Lt(),defaultValue:Fu.optional(),allowedValues:Je(Fu).max(200).optional()}).strict(),Wm=_e({schemaVersion:Qe(1),id:$n,dataSourceId:ae().uuid(),providerId:ae().min(1).max(160),operation:$n,contractVersion:vt().int().positive(),payload:Vn,parameters:Je(X_).max(24),output:_e({datasetId:$n,fields:Je(Y_).min(1).max(80),grain:Je($n).max(20)}).strict()}).strict().superRefine((n,r)=>{const o=n.output.fields.map(l=>l.id),s=n.parameters.map(l=>l.name);(new Set(o).size!==o.length||new Set(s).size!==s.length)&&r.addIssue({code:"custom",message:"Duplicate field or parameter identifier"}),(new Set(n.output.grain).size!==n.output.grain.length||n.output.grain.some(l=>!o.includes(l)))&&r.addIssue({code:"custom",message:"Grain references an undeclared field"}),new TextEncoder().encode(JSON.stringify(n.payload)).byteLength>64e3&&r.addIssue({code:"custom",message:"Query payload exceeds limit"})});_e({binding:Wm,controls:Mr($n,Fu).default({})}).strict(),_e({dataSourceId:ae().uuid(),providerId:ae().min(1).max(160),request:Vn.default({})}).strict().refine(n=>new TextEncoder().encode(JSON.stringify(n)).byteLength<=16e3,"Discovery request exceeds limit"),_e({schemaVersion:Qe(1),items:Je(_e({id:ae().min(1).max(512),name:ae().min(1).max(512),kind:Nn(["collection","dataset"]),description:ae().max(4e3).optional(),inspectRequest:Vn.optional(),metadata:Vn}).strict()).max(50),nextRequest:Vn.optional(),queryContract:_e({operation:$n,contractVersion:vt().int().positive(),payloadSchema:Vn,instructions:ae().max(8e3)}).strict()}).strict().refine(n=>new TextEncoder().encode(JSON.stringify(n)).byteLength<=128e3,"Discovery response exceeds limit");function J_(n,r){if(n==null)return{};var o={},s=Object.keys(n),l,u;for(u=0;u<s.length;u++)l=s[u],!(r.indexOf(l)>=0)&&(o[l]=n[l]);return o}const Hm="xpert.artifact-document",Zm=1,ta=ae().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),ek=Pn([ae().max(4e3),vt().finite(),Lt(),Jn()]),qm=Mr(ta,ek).refine(n=>Object.keys(n).length<=24,"Too many controls"),tk=_e({type:Qe("query"),requestId:ae().min(1).max(80),bindingId:ta,controls:qm}).strict(),nk=_e({bindingIds:Je(ta).max(64).refine(n=>new Set(n).size===n.length,"Duplicate binding IDs"),defaults:qm,theme:Nn(["light","dark"]),locale:ae().min(1).max(80)}).strict(),Km=ae().min(1).max(3e5).superRefine((n,r)=>{(new TextEncoder().encode(n).byteLength>3e5||!/<html[\s>]/i.test(n)||!/<body[\s>]/i.test(n))&&r.addIssue({code:"custom",message:"Supply a complete UTF-8 HTML document, at most 300 KB"})}),rk=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),yn=(n,r)=>n>>>r|n<<32-r;function ok(n){const r=new Uint8Array(Math.ceil((n.length+9)/64)*64);r.set(n),r[n.length]=128;const o=new DataView(r.buffer);o.setUint32(r.length-8,Math.floor(n.length/536870912)),o.setUint32(r.length-4,n.length*8>>>0);const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);for(let u=0;u<r.length;u+=64){for(let _=0;_<16;_++)l[_]=o.getUint32(u+_*4);for(let _=16;_<64;_++){const b=l[_-15],S=l[_-2],A=yn(b,7)^yn(b,18)^b>>>3,D=yn(S,17)^yn(S,19)^S>>>10;l[_]=l[_-16]+A+l[_-7]+D>>>0}let[d,p,h,v,y,x,w,E]=s;for(let _=0;_<64;_++){const b=yn(y,6)^yn(y,11)^yn(y,25),S=y&x^~y&w,A=E+b+S+rk[_]+l[_]>>>0,D=yn(d,2)^yn(d,13)^yn(d,22),T=d&p^d&h^p&h,N=D+T>>>0;E=w,w=x,x=y,y=v+A>>>0,v=h,h=p,p=d,d=A+N>>>0}s[0]=s[0]+d>>>0,s[1]=s[1]+p>>>0,s[2]=s[2]+h>>>0,s[3]=s[3]+v>>>0,s[4]=s[4]+y>>>0,s[5]=s[5]+x>>>0,s[6]=s[6]+w>>>0,s[7]=s[7]+E>>>0}return Array.from(s,u=>u.toString(16).padStart(8,"0")).join("")}const Gm=_e({id:ta,version:ae().regex(/^\d+\.\d+\.\d+(?:-[A-Za-z0-9.-]+)?$/),format:Qe("classic-script"),global:ae().regex(/^[A-Za-z_$][A-Za-z0-9_$]{0,79}$/).refine(n=>!["window","self","globalThis","document","parent","top","location","xpertLiveArtifact","__proto__","constructor","prototype"].includes(n)),sha256:ae().regex(/^[a-f0-9]{64}$/)}).strict(),ik=Gm.transform(n=>({id:n.id,version:n.version,format:"classic-script",global:n.global,sha256:n.sha256})),$u=Je(ik).max(8).superRefine((n,r)=>{(new Set(n.map(o=>o.id)).size!==n.length||new Set(n.map(o=>o.global)).size!==n.length)&&r.addIssue({code:"custom",message:"Duplicate dependency ID or global"})}),Qm=Je(Gm.extend({source:ae().min(1).max(4e6)}).strict().transform(n=>({id:n.id,version:n.version,format:"classic-script",global:n.global,sha256:n.sha256,source:n.source}))).max(8);function Ym(n,r){const o=Qm.parse(n),s=$u.parse(o.map(u=>{var{source:d}=u,p=J_(u,["source"]);return p}));let l=0;for(const u of o){const d=new TextEncoder().encode(u.source);if(l+=d.length,d.length>4e6||l>8e6)throw new Error("DOCUMENT_DEPENDENCY_TOO_LARGE");if(ok(d)!==u.sha256)throw new Error("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED")}if(r&&JSON.stringify($u.parse(r))!==JSON.stringify(s))throw new Error("DOCUMENT_DEPENDENCY_LOCK_MISMATCH");return o.map(u=>({id:u.id,version:u.version,global:u.global,sha256:u.sha256,source:u.source,format:"classic-script"}))}function sk(n){const r=o=>JSON.stringify(o).replace(/</g,"\\u003c").replace(/>/g,"\\u003e");return Ym(n).map(o=>`<script>(()=>{const s=document.createElement('script');s.textContent=${r(o.source)};document.head.appendChild(s);s.remove();if(typeof window[${r(o.global)}]==='undefined')throw new Error('DOCUMENT_DEPENDENCY_GLOBAL_MISSING');})();<\/script>`).join("")}const ak=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src 'none'","object-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function lk(n,r,o=[]){if(Km.parse(n),!/^[a-f0-9]{32}$/.test(r))throw new Error("Invalid Artifact document session ID");return`<!doctype html><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="${ak}"><script>${uk.replace("__XPERT_DOCUMENT_SESSION__",r)}<\/script>${sk(o)}${n}`}const uk=String.raw`
|
|
103
|
+
`)},ew=0,yo=[];function tw(n){var r=m.useRef([]),o=m.useRef([0,0]),s=m.useRef(),l=m.useState(ew++)[0],u=m.useState(_p)[0],d=m.useRef(n);m.useEffect(function(){d.current=n},[n]),m.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(l));var E=_x([n.lockRef.current],(n.shards||[]).map(Pp),!0).filter(Boolean);return E.forEach(function(S){return S.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),E.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(l))})}}},[n.inert,n.lockRef.current,n.shards]);var p=m.useCallback(function(E,S){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!d.current.allowPinchZoom;var A=Ts(E),D=o.current,T="deltaX"in E?E.deltaX:D[0]-A[0],N="deltaY"in E?E.deltaY:D[1]-A[1],U,L=E.target,W=Math.abs(T)>Math.abs(N)?"h":"v";if("touches"in E&&W==="h"&&L.type==="range")return!1;var F=window.getSelection(),re=F&&F.anchorNode,me=re?re===L||re.contains(L):!1;if(me)return!1;var ke=Ep(W,L);if(!ke)return!0;if(ke?U=W:(U=W==="v"?"h":"v",ke=Ep(W,L)),!ke)return!1;if(!s.current&&"changedTouches"in E&&(T||N)&&(s.current=U),!U)return!0;var oe=s.current||U;return Yx(oe,S,E,oe==="h"?T:N)},[]),h=m.useCallback(function(E){var S=E;if(!(!yo.length||yo[yo.length-1]!==u)){var A="deltaY"in S?Ip(S):Ts(S),D=r.current.filter(function(U){return U.name===S.type&&(U.target===S.target||S.target===U.shadowParent)&&Xx(U.delta,A)})[0];if(D&&D.should){S.cancelable&&S.preventDefault();return}if(!D){var T=(d.current.shards||[]).map(Pp).filter(Boolean).filter(function(U){return U.contains(S.target)}),N=T.length>0?p(S,T[0]):!d.current.noIsolation;N&&S.cancelable&&S.preventDefault()}}},[]),v=m.useCallback(function(E,S,A,D){var T={name:E,delta:S,target:A,should:D,shadowParent:nw(A)};r.current.push(T),setTimeout(function(){r.current=r.current.filter(function(N){return N!==T})},1)},[]),y=m.useCallback(function(E){o.current=Ts(E),s.current=void 0},[]),x=m.useCallback(function(E){v(E.type,Ip(E),E.target,p(E,n.lockRef.current))},[]),w=m.useCallback(function(E){v(E.type,Ts(E),E.target,p(E,n.lockRef.current))},[]);m.useEffect(function(){return yo.push(u),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:w}),document.addEventListener("wheel",h,go),document.addEventListener("touchmove",h,go),document.addEventListener("touchstart",y,go),function(){yo=yo.filter(function(E){return E!==u}),document.removeEventListener("wheel",h,go),document.removeEventListener("touchmove",h,go),document.removeEventListener("touchstart",y,go)}},[]);var b=n.removeScrollBar,_=n.inert;return m.createElement(m.Fragment,null,_?m.createElement(u,{styles:Jx(l)}):null,b?m.createElement(Wx,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function nw(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const rw=Ox(Sp,tw);var As=m.forwardRef(function(n,r){return m.createElement(Ns,mn({},n,{ref:r,sideCar:rw}))});As.classNames=Ns.classNames;var ow=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},xo=new WeakMap,Ds=new WeakMap,Ms={},ou=0,Np=function(n){return n&&(n.host||Np(n.parentNode))},iw=function(n,r){return r.map(function(o){if(n.contains(o))return o;var s=Np(o);return s&&n.contains(s)?s:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},sw=function(n,r,o,s){var l=iw(r,Array.isArray(n)?n:[n]);Ms[o]||(Ms[o]=new WeakMap);var u=Ms[o],d=[],p=new Set,h=new Set(l),v=function(x){!x||p.has(x)||(p.add(x),v(x.parentNode))};l.forEach(v);var y=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(w){if(p.has(w))y(w);else try{var b=w.getAttribute(s),_=b!==null&&b!=="false",E=(xo.get(w)||0)+1,S=(u.get(w)||0)+1;xo.set(w,E),u.set(w,S),d.push(w),E===1&&_&&Ds.set(w,!0),S===1&&w.setAttribute(o,"true"),_||w.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return y(r),p.clear(),ou++,function(){d.forEach(function(x){var w=xo.get(x)-1,b=u.get(x)-1;xo.set(x,w),u.set(x,b),w||(Ds.has(x)||x.removeAttribute(s),Ds.delete(x)),b||x.removeAttribute(o)}),ou--,ou||(xo=new WeakMap,xo=new WeakMap,Ds=new WeakMap,Ms={})}},iu=function(n,r,o){o===void 0&&(o="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),l=ow(n);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),sw(s,l,o,"aria-hidden")):function(){return null}},aw=Object.defineProperty,zt=(n,r)=>aw(n,"name",{value:r,configurable:!0}),su="Dialog",[Op,Tp]=nr(su),[lw,Jt]=Op(su),au=zt(n=>{const{__scopeDialog:r,children:o,open:s,defaultOpen:l,onOpenChange:u,modal:d=!0}=n,p=m.useRef(null),h=m.useRef(null),[v,y]=ui({prop:s,defaultProp:l??!1,onChange:u,caller:su}),[x,w]=m.useState(0),[b,_]=m.useState(0);return O.jsx(lw,{scope:r,triggerRef:p,contentRef:h,contentId:jt(),titleId:jt(),descriptionId:jt(),titlePresent:x>0,descriptionPresent:b>0,setTitleCount:w,setDescriptionCount:_,open:v,onOpenChange:y,onOpenToggle:m.useCallback(()=>y(E=>!E),[y]),modal:d,children:o})},"Dialog"),uw="DialogTrigger",cw=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(uw,s),d=He(o,u.triggerRef);return O.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":js(u.open),...l,ref:d,onClick:Ve(r.onClick,u.onOpenToggle)})},"DialogTrigger")),Ap="DialogPortal",[dw,Dp]=Op(Ap,{forceMount:void 0}),lu=zt(n=>{const{__scopeDialog:r,forceMount:o,children:s,container:l}=n,u=Jt(Ap,r);return O.jsx(dw,{scope:r,forceMount:o,children:m.Children.map(s,d=>O.jsx(po,{present:o||u.open,children:O.jsx(Yl,{asChild:!0,container:l,children:d})}))})},"DialogPortal"),uu="DialogOverlay",cu=m.forwardRef(zt(function(r,o){const s=Dp(uu,r.__scopeDialog),{forceMount:l=s.forceMount,...u}=r,d=Jt(uu,r.__scopeDialog);return d.modal?O.jsx(po,{present:l||d.open,children:O.jsx(pw,{...u,ref:o})}):null},"DialogOverlay")),fw=fn("DialogOverlay.RemoveScroll"),pw=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(uu,s),d=ap(),p=He(o,d);return O.jsx(As,{as:fw,allowPinchZoom:!0,shards:[u.contentRef],children:O.jsx(Be.div,{"data-state":js(u.open),...l,ref:p,style:{pointerEvents:"auto",...l.style}})})},"DialogOverlayImpl")),di="DialogContent",du=m.forwardRef(zt(function(r,o){const s=Dp(di,r.__scopeDialog),{forceMount:l=s.forceMount,...u}=r,d=Jt(di,r.__scopeDialog);return O.jsx(po,{present:l||d.open,children:d.modal?O.jsx(mw,{...u,ref:o}):O.jsx(hw,{...u,ref:o})})},"DialogContent")),mw=m.forwardRef(zt(function(r,o){const s=Jt(di,r.__scopeDialog),l=m.useRef(null),u=He(o,s.contentRef,l);return m.useEffect(()=>{const d=l.current;if(d)return iu(d)},[]),O.jsx(Mp,{...r,ref:u,trapFocus:s.open,disableOutsidePointerEvents:s.open,onCloseAutoFocus:Ve(r.onCloseAutoFocus,d=>{d.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:Ve(r.onPointerDownOutside,d=>{const p=d.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0;(p.button===2||h)&&d.preventDefault()}),onFocusOutside:Ve(r.onFocusOutside,d=>d.preventDefault())})},"DialogContentModal")),hw=m.forwardRef(zt(function(r,o){const s=Jt(di,r.__scopeDialog),l=m.useRef(!1),u=m.useRef(!1);return O.jsx(Mp,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{r.onCloseAutoFocus?.(d),d.defaultPrevented||(l.current||s.triggerRef.current?.focus(),d.preventDefault()),l.current=!1,u.current=!1},onInteractOutside:d=>{r.onInteractOutside?.(d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const p=d.target;s.triggerRef.current?.contains(p)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.current&&d.preventDefault()}})},"DialogContentNonModal")),Mp=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:d,...p}=r,h=Jt(di,s);return ci(),O.jsx(O.Fragment,{children:O.jsx(ql,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:u,onUnmountAutoFocus:d,children:O.jsx(Ul,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":js(h.open),...p,ref:o,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),vw="DialogTitle",Lp=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(vw,s),{setTitleCount:d}=u;return ot(()=>(d(p=>p+1),()=>d(p=>p-1)),[d]),O.jsx(Be.h2,{id:u.titleId,...l,ref:o})},"DialogTitle")),gw="DialogDescription",jp=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(gw,s),{setDescriptionCount:d}=u;return ot(()=>(d(p=>p+1),()=>d(p=>p-1)),[d]),O.jsx(Be.p,{id:u.descriptionId,...l,ref:o})},"DialogDescription")),yw="DialogClose",Ls=m.forwardRef(zt(function(r,o){const{__scopeDialog:s,...l}=r,u=Jt(yw,s);return O.jsx(Be.button,{type:"button",...l,ref:o,onClick:Ve(r.onClick,()=>u.onOpenChange(!1))})},"DialogClose"));function js(n){return n?"open":"closed"}zt(js,"getState");var xw=Object.defineProperty,Dn=(n,r)=>xw(n,"name",{value:r,configurable:!0}),ww="AlertDialog",[Sw,JE]=nr(ww,[Tp]),Mn=Tp(),_w=Dn(n=>{const{__scopeAlertDialog:r,...o}=n,s=Mn(r);return O.jsx(au,{...s,...o,modal:!0})},"AlertDialog");m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(cw,{...u,...l,ref:o})},"AlertDialogTrigger"));var kw=Dn(n=>{const{__scopeAlertDialog:r,...o}=n,s=Mn(r);return O.jsx(lu,{...s,...o})},"AlertDialogPortal"),bw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(cu,{...u,...l,ref:o})},"AlertDialogOverlay")),Ew="AlertDialogContent",[Cw,Rw]=Sw(Ew),Iw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,children:l,...u}=r,d=Mn(s),p=m.useRef(null),h=He(o,p),v=m.useRef(null);return O.jsx(Cw,{scope:s,cancelRef:v,children:O.jsx(du,{role:"alertdialog",...d,...u,ref:h,onOpenAutoFocus:Ve(u.onOpenAutoFocus,y=>{y.preventDefault(),v.current?.focus({preventScroll:!0})}),onPointerDownOutside:y=>y.preventDefault(),onInteractOutside:y=>y.preventDefault(),children:l})})},"AlertDialogContent")),Pw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(Lp,{...u,...l,ref:o})},"AlertDialogTitle")),Nw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(jp,{...u,...l,ref:o})},"AlertDialogDescription"));m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,u=Mn(s);return O.jsx(Ls,{...u,...l,ref:o})},"AlertDialogAction"));var Ow="AlertDialogCancel",Tw=m.forwardRef(Dn(function(r,o){const{__scopeAlertDialog:s,...l}=r,{cancelRef:u}=Rw(Ow,s),d=Mn(s),p=He(o,u);return O.jsx(Ls,{...d,...l,ref:p})},"AlertDialogCancel")),Aw=_w,Dw=kw,Mw=bw,Lw=Iw,jw=Tw,zw=Pw,Fw=Nw,$w=Object.defineProperty,Vw=(n,r)=>$w(n,"name",{value:r,configurable:!0});function zp(n){const[r,o]=m.useState(void 0);return ot(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let d,p;if("borderBoxSize"in u){const h=u.borderBoxSize,v=Array.isArray(h)?h[0]:h;d=v.inlineSize,p=v.blockSize}else d=n.offsetWidth,p=n.offsetHeight;o({width:d,height:p})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else o(void 0)},[n]),r}Vw(zp,"useSize");const Uw=["top","right","bottom","left"],rr=Math.min,Ln=Math.max,zs=Math.round,Fs=Math.floor,jn=n=>({x:n,y:n}),Bw={left:"right",right:"left",bottom:"top",top:"bottom"};function Fp(n,r,o){return Ln(n,rr(r,o))}function zn(n,r){return typeof n=="function"?n(r):n}function or(n){return n.split("-")[0]}function wo(n){return n.split("-")[1]}function fu(n){return n==="x"?"y":"x"}function pu(n){return n==="y"?"height":"width"}function hn(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function mu(n){return fu(hn(n))}function Ww(n,r,o){o===void 0&&(o=!1);const s=wo(n),l=mu(n),u=pu(l);let d=l==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(d=$s(d)),[d,$s(d)]}function Hw(n){const r=$s(n);return[hu(n),r,hu(r)]}function hu(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const $p=["left","right"],Vp=["right","left"],Zw=["top","bottom"],qw=["bottom","top"];function Kw(n,r,o){switch(n){case"top":case"bottom":return o?r?Vp:$p:r?$p:Vp;case"left":case"right":return r?Zw:qw;default:return[]}}function Gw(n,r,o,s){const l=wo(n);let u=Kw(or(n),o==="start",s);return l&&(u=u.map(d=>d+"-"+l),r&&(u=u.concat(u.map(hu)))),u}function $s(n){const r=or(n);return Bw[r]+n.slice(r.length)}function Qw(n){var r,o,s,l;return{top:(r=n.top)!=null?r:0,right:(o=n.right)!=null?o:0,bottom:(s=n.bottom)!=null?s:0,left:(l=n.left)!=null?l:0}}function Up(n){return typeof n!="number"?Qw(n):{top:n,right:n,bottom:n,left:n}}function Vs(n){const{x:r,y:o,width:s,height:l}=n;return{width:s,height:l,top:o,left:r,right:r+s,bottom:o+l,x:r,y:o}}function Bp(n,r,o){let{reference:s,floating:l}=n;const u=hn(r),d=mu(r),p=pu(d),h=or(r),v=u==="y",y=s.x+s.width/2-l.width/2,x=s.y+s.height/2-l.height/2,w=s[p]/2-l[p]/2;let b;switch(h){case"top":b={x:y,y:s.y-l.height};break;case"bottom":b={x:y,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:x};break;case"left":b={x:s.x-l.width,y:x};break;default:b={x:s.x,y:s.y}}const _=wo(r);return _&&(b[d]+=w*(_==="end"?1:-1)*(o&&v?-1:1)),b}async function Yw(n,r){var o;r===void 0&&(r={});const{x:s,y:l,platform:u,rects:d,elements:p,strategy:h}=n,{boundary:v="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:w=!1,padding:b=0}=zn(r,n),_=Up(b),S=p[w?x==="floating"?"reference":"floating":x],A=Vs(await u.getClippingRect({element:(o=await(u.isElement==null?void 0:u.isElement(S)))==null||o?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(p.floating)),boundary:v,rootBoundary:y,strategy:h})),D=x==="floating"?{x:s,y:l,width:d.floating.width,height:d.floating.height}:d.reference,T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),N=await(u.isElement==null?void 0:u.isElement(T))&&await(u.getScale==null?void 0:u.getScale(T))||{x:1,y:1},U=Vs(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:D,offsetParent:T,strategy:h}):D);return{top:(A.top-U.top+_.top)/N.y,bottom:(U.bottom-A.bottom+_.bottom)/N.y,left:(A.left-U.left+_.left)/N.x,right:(U.right-A.right+_.right)/N.x}}const Xw=50,Jw=async(n,r,o)=>{const{placement:s="bottom",strategy:l="absolute",middleware:u=[],platform:d}=o,p=d.detectOverflow?d:{...d,detectOverflow:Yw},h=await(d.isRTL==null?void 0:d.isRTL(r));let v=await d.getElementRects({reference:n,floating:r,strategy:l}),{x:y,y:x}=Bp(v,s,h),w=s,b=0;const _={};for(let E=0;E<u.length;E++){const S=u[E];if(!S)continue;const{name:A,fn:D}=S,{x:T,y:N,data:U,reset:L}=await D({x:y,y:x,initialPlacement:s,placement:w,strategy:l,middlewareData:_,rects:v,platform:p,elements:{reference:n,floating:r}});y=T??y,x=N??x,_[A]={..._[A],...U},L&&b<Xw&&(b++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(v=L.rects===!0?await d.getElementRects({reference:n,floating:r,strategy:l}):L.rects),{x:y,y:x}=Bp(v,w,h)),E=-1)}return{x:y,y:x,placement:w,strategy:l,middlewareData:_}},eS=n=>({name:"arrow",options:n,async fn(r){const{x:o,y:s,placement:l,rects:u,platform:d,elements:p,middlewareData:h}=r,{element:v,padding:y=0}=zn(n,r)||{};if(v==null)return{};const x=Up(y),w={x:o,y:s},b=mu(l),_=pu(b),E=await d.getDimensions(v),S=b==="y",A=S?"top":"left",D=S?"bottom":"right",T=S?"clientHeight":"clientWidth",N=u.reference[_]+u.reference[b]-w[b]-u.floating[_],U=w[b]-u.reference[b],L=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v));let W=L?L[T]:0;(!W||!await(d.isElement==null?void 0:d.isElement(L)))&&(W=p.floating[T]||u.floating[_]);const F=N/2-U/2,re=W/2-E[_]/2-1,me=rr(x[A],re),ke=rr(x[D],re),oe=W-E[_]-ke,he=W/2-E[_]/2+F,ve=Fp(me,he,oe),_e=!h.arrow&&wo(l)!=null&&he!==ve&&u.reference[_]/2-(he<me?me:ke)-E[_]/2<0,ue=_e?he<me?he-me:he-oe:0;return{[b]:w[b]+ue,data:{[b]:ve,centerOffset:he-ve-ue,..._e&&{alignmentOffset:ue}},reset:_e}}}),tS=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,s;const{placement:l,middlewareData:u,rects:d,initialPlacement:p,platform:h,elements:v}=r,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:E=!0,...S}=zn(n,r);if((o=u.arrow)!=null&&o.alignmentOffset)return{};const A=or(l),D=hn(p),T=or(p)===p,N=await(h.isRTL==null?void 0:h.isRTL(v.floating)),U=w||(T||!E?[$s(p)]:Hw(p)),L=_!=="none";!w&&L&&U.push(...Gw(p,E,_,N));const W=[p,...U],F=await h.detectOverflow(r,S),re=[];let me=((s=u.flip)==null?void 0:s.overflows)||[];if(y&&re.push(F[A]),x){const ve=Ww(l,d,N);re.push(F[ve[0]],F[ve[1]])}if(me=[...me,{placement:l,overflows:re}],!re.every(ve=>ve<=0)){var ke,oe;const ve=(((ke=u.flip)==null?void 0:ke.index)||0)+1,_e=W[ve];if(_e&&(!(x==="alignment"?D!==hn(_e):!1)||me.every(B=>hn(B.placement)===D?B.overflows[0]>0:!0)))return{data:{index:ve,overflows:me},reset:{placement:_e}};let ue=(oe=me.filter(se=>se.overflows[0]<=0).sort((se,B)=>se.overflows[1]-B.overflows[1])[0])==null?void 0:oe.placement;if(!ue)switch(b){case"bestFit":{var he;const se=(he=me.filter(B=>{if(L){const X=hn(B.placement);return X===D||X==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(X=>X>0).reduce((X,z)=>X+z,0)]).sort((B,X)=>B[1]-X[1])[0])==null?void 0:he[0];se&&(ue=se);break}case"initialPlacement":ue=p;break}if(l!==ue)return{reset:{placement:ue}}}return{}}}};function Wp(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function Hp(n){return Uw.some(r=>n[r]>=0)}const nS=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,platform:s}=r,{strategy:l="referenceHidden",...u}=zn(n,r);switch(l){case"referenceHidden":{const d=await s.detectOverflow(r,{...u,elementContext:"reference"}),p=Wp(d,o.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Hp(p)}}}case"escaped":{const d=await s.detectOverflow(r,{...u,altBoundary:!0}),p=Wp(d,o.floating);return{data:{escapedOffsets:p,escaped:Hp(p)}}}default:return{}}}}},Zp=new Set(["left","top"]);async function rS(n,r){const{placement:o,platform:s,elements:l}=n,u=await(s.isRTL==null?void 0:s.isRTL(l.floating)),d=or(o),p=wo(o),h=hn(o)==="y",v=Zp.has(d)?-1:1,y=u&&h?-1:1,x=zn(r,n);let{mainAxis:w,crossAxis:b,alignmentAxis:_}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return p&&typeof _=="number"&&(b=p==="end"?_*-1:_),h?{x:b*y,y:w*v}:{x:w*v,y:b*y}}const oS=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,s;const{x:l,y:u,placement:d,middlewareData:p}=r,h=await rS(r,n);return d===((o=p.offset)==null?void 0:o.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:l+h.x,y:u+h.y,data:{...h,placement:d}}}}},iS=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,y:s,placement:l,platform:u}=r,{mainAxis:d=!0,crossAxis:p=!1,limiter:h={fn:D=>{let{x:T,y:N}=D;return{x:T,y:N}}},...v}=zn(n,r),y={x:o,y:s},x=await u.detectOverflow(r,v),w=hn(l),b=fu(w);let _=y[b],E=y[w];const S=(D,T)=>Fp(T+x[D==="y"?"top":"left"],T,T-x[D==="y"?"bottom":"right"]);d&&(_=S(b,_)),p&&(E=S(w,E));const A=h.fn({...r,[b]:_,[w]:E});return{...A,data:{x:A.x-o,y:A.y-s,enabled:{[b]:d,[w]:p}}}}}},sS=function(n){return n===void 0&&(n={}),{options:n,fn(r){var o,s;const{x:l,y:u,placement:d,rects:p,middlewareData:h}=r,{offset:v=0,mainAxis:y=!0,crossAxis:x=!0}=zn(n,r),w={x:l,y:u},b=hn(d),_=fu(b);let E=w[_],S=w[b];const A=zn(v,r),D=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:(o=A.mainAxis)!=null?o:0,crossAxis:(s=A.crossAxis)!=null?s:0};if(y){const U=_==="y"?"height":"width",L=p.reference[_]-p.floating[U]+D.mainAxis,W=p.reference[_]+p.reference[U]-D.mainAxis;E<L?E=L:E>W&&(E=W)}if(x){var T,N;const U=_==="y"?"width":"height",L=Zp.has(or(d)),W=p.reference[b]-p.floating[U]+(L&&((T=h.offset)==null?void 0:T[b])||0)+(L?0:D.crossAxis),F=p.reference[b]+p.reference[U]+(L?0:((N=h.offset)==null?void 0:N[b])||0)-(L?D.crossAxis:0);S<W?S=W:S>F&&(S=F)}return{[_]:E,[b]:S}}}},aS=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){const{placement:o,rects:s,platform:l,elements:u}=r,{apply:d=()=>{},...p}=zn(n,r),h=await l.detectOverflow(r,p),v=or(o),y=wo(o),x=hn(o)==="y",{width:w,height:b}=s.floating;let _,E;v==="top"||v==="bottom"?(_=v,E=y===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(E=v,_=y==="end"?"top":"bottom");const S=b-h.top-h.bottom,A=w-h.left-h.right,D=rr(b-h[_],S),T=rr(w-h[E],A),N=r.middlewareData.shift,U=!N;let L=D,W=T;N!=null&&N.enabled.x&&(W=A),N!=null&&N.enabled.y&&(L=S),U&&!y&&(x?W=w-2*Ln(h.left,h.right):L=b-2*Ln(h.top,h.bottom)),await d({...r,availableWidth:W,availableHeight:L});const F=await l.getDimensions(u.floating);return w!==F.width||b!==F.height?{reset:{rects:!0}}:{}}}};function Us(){return typeof window<"u"}function So(n){return qp(n)?(n.nodeName||"").toLowerCase():"#document"}function Pt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Fn(n){var r;return(r=(qp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function qp(n){return Us()?n instanceof Node||n instanceof Pt(n).Node:!1}function vn(n){return Us()?n instanceof Element||n instanceof Pt(n).Element:!1}function ir(n){return Us()?n instanceof HTMLElement||n instanceof Pt(n).HTMLElement:!1}function Kp(n){return!Us()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Pt(n).ShadowRoot}function Bs(n){const{overflow:r,overflowX:o,overflowY:s,display:l}=gn(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+o)&&l!=="inline"&&l!=="contents"}function lS(n){return/^(table|td|th)$/.test(So(n))}function Ws(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const uS=/transform|translate|scale|rotate|perspective|filter/,cS=/paint|layout|strict|content/,Fr=n=>!!n&&n!=="none";let vu;function gu(n){const r=vn(n)?gn(n):n;return Fr(r.transform)||Fr(r.translate)||Fr(r.scale)||Fr(r.rotate)||Fr(r.perspective)||!yu()&&(Fr(r.backdropFilter)||Fr(r.filter))||uS.test(r.willChange||"")||cS.test(r.contain||"")}function dS(n){let r=$r(n);for(;ir(r)&&!fi(r);){if(gu(r))return r;if(Ws(r))return null;r=$r(r)}return null}function yu(){return vu==null&&(vu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vu}function fi(n){return/^(html|body|#document)$/.test(So(n))}function gn(n){return Pt(n).getComputedStyle(n)}function Hs(n){return vn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function $r(n){if(So(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Kp(n)&&n.host||Fn(n);return Kp(r)?r.host:r}function Gp(n){const r=$r(n);return fi(r)?(n.ownerDocument||n).body:ir(r)&&Bs(r)?r:Gp(r)}function pi(n,r,o){var s;r===void 0&&(r=[]),o===void 0&&(o=!0);const l=Gp(n),u=l===((s=n.ownerDocument)==null?void 0:s.body),d=Pt(l);if(u){const p=xu(d);return r.concat(d,d.visualViewport||[],Bs(l)?l:[],p&&o?pi(p):[])}else return r.concat(l,pi(l,[],o))}function xu(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Qp(n){const r=gn(n);let o=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const l=ir(n),u=l?n.offsetWidth:o,d=l?n.offsetHeight:s,p=zs(o)!==u||zs(s)!==d;return p&&(o=u,s=d),{width:o,height:s,$:p}}function wu(n){return vn(n)?n:n.contextElement}function _o(n){const r=wu(n);if(!ir(r))return jn(1);const o=r.getBoundingClientRect(),{width:s,height:l,$:u}=Qp(r);let d=(u?zs(o.width):o.width)/s,p=(u?zs(o.height):o.height)/l;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}const fS=jn(0);function Yp(n){const r=Pt(n);return!yu()||!r.visualViewport?fS:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function pS(n,r,o){return r===void 0&&(r=!1),!!o&&r&&o===Pt(n)}function Vr(n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!1);const l=n.getBoundingClientRect(),u=wu(n);let d=jn(1);r&&(s?vn(s)&&(d=_o(s)):d=_o(n));const p=pS(u,o,s)?Yp(u):jn(0);let h=(l.left+p.x)/d.x,v=(l.top+p.y)/d.y,y=l.width/d.x,x=l.height/d.y;if(u&&s){const w=Pt(u),b=vn(s)?Pt(s):s;let _=w,E=xu(_);for(;E&&b!==_;){const S=_o(E),A=E.getBoundingClientRect(),D=gn(E),T=A.left+(E.clientLeft+parseFloat(D.paddingLeft))*S.x,N=A.top+(E.clientTop+parseFloat(D.paddingTop))*S.y;h*=S.x,v*=S.y,y*=S.x,x*=S.y,h+=T,v+=N,_=Pt(E),E=xu(_)}}return Vs({width:y,height:x,x:h,y:v})}function Zs(n,r){const o=Hs(n).scrollLeft;return r?r.left+o:Vr(Fn(n)).left+o}function Xp(n,r){const o=n.getBoundingClientRect(),s=o.left+r.scrollLeft-Zs(n,o),l=o.top+r.scrollTop;return{x:s,y:l}}function mS(n){let{elements:r,rect:o,offsetParent:s,strategy:l}=n;const u=l==="fixed",d=Fn(s),p=r?Ws(r.floating):!1;if(s===d||p&&u)return o;let h={scrollLeft:0,scrollTop:0},v=jn(1);const y=jn(0),x=ir(s);if((x||!u)&&((So(s)!=="body"||Bs(d))&&(h=Hs(s)),x)){const b=Vr(s);v=_o(s),y.x=b.x+s.clientLeft,y.y=b.y+s.clientTop}const w=d&&!x&&!u?Xp(d,h):jn(0);return{width:o.width*v.x,height:o.height*v.y,x:o.x*v.x-h.scrollLeft*v.x+y.x+w.x,y:o.y*v.y-h.scrollTop*v.y+y.y+w.y}}function hS(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function vS(n){const r=Hs(n),o=n.ownerDocument.body,s=Ln(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),l=Ln(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let u=-r.scrollLeft+Zs(n);const d=-r.scrollTop;return gn(o).direction==="rtl"&&(u+=Ln(n.clientWidth,o.clientWidth)-s),{width:s,height:l,x:u,y:d}}const gS=25;function yS(n,r,o){o===void 0&&(o="viewport");const s=o==="layoutViewport",l=Pt(n),u=Fn(n),d=l.visualViewport;let p=u.clientWidth,h=u.clientHeight,v=0,y=0;if(d){const w=!yu()||r==="fixed";s?w||(v=-d.offsetLeft,y=-d.offsetTop):(p=d.width,h=d.height,w&&(v=d.offsetLeft,y=d.offsetTop))}if(Zs(u)<=0){const w=u.ownerDocument,b=w.body,_=getComputedStyle(b),E=w.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,S=Math.abs(u.clientWidth-b.clientWidth-E),A=getComputedStyle(u).scrollbarGutter==="stable both-edges"?S/2:S;A<=gS&&(p-=A)}return{width:p,height:h,x:v,y}}function xS(n,r){const o=Vr(n,!0,r==="fixed"),s=o.top+n.clientTop,l=o.left+n.clientLeft,u=_o(n),d=n.clientWidth*u.x,p=n.clientHeight*u.y,h=l*u.x,v=s*u.y;return{width:d,height:p,x:h,y:v}}function Jp(n,r,o){let s;if(r==="viewport"||r==="layoutViewport")s=yS(n,o,r);else if(r==="document")s=vS(Fn(n));else if(vn(r))s=xS(r,o);else{const l=Yp(n);s={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return Vs(s)}function wS(n,r){const o=r.get(n);if(o)return o;let s=pi(n,[],!1).filter(p=>vn(p)&&So(p)!=="body"),l=null;const u=gn(n).position==="fixed";let d=u?$r(n):n;for(;vn(d)&&!fi(d);){const p=gn(d),h=gu(d),v=l?l.position:u?"fixed":"";!h&&(v==="fixed"||v==="absolute"&&p.position==="static")?s=s.filter(x=>x!==d):l=p,d=$r(d)}return r.set(n,s),s}function SS(n){let{element:r,boundary:o,rootBoundary:s,strategy:l}=n;const d=[...o==="clippingAncestors"?Ws(r)?[]:wS(r,this._c):[].concat(o),s],p=Jp(r,d[0],l);let h=p.top,v=p.right,y=p.bottom,x=p.left;for(let w=1;w<d.length;w++){const b=Jp(r,d[w],l);h=Ln(b.top,h),v=rr(b.right,v),y=rr(b.bottom,y),x=Ln(b.left,x)}return{width:v-x,height:y-h,x,y:h}}function _S(n){const{width:r,height:o}=Qp(n);return{width:r,height:o}}function kS(n,r,o){const s=ir(r),l=Fn(r),u=o==="fixed",d=Vr(n,!0,u,r);let p={scrollLeft:0,scrollTop:0};const h=jn(0);if((s||!u)&&((So(r)!=="body"||Bs(l))&&(p=Hs(r)),s)){const w=Vr(r,!0,u,r);h.x=w.x+r.clientLeft,h.y=w.y+r.clientTop}!s&&l&&(h.x=Zs(l));const v=l&&!s&&!u?Xp(l,p):jn(0),y=d.left+p.scrollLeft-h.x-v.x,x=d.top+p.scrollTop-h.y-v.y;return{x:y,y:x,width:d.width,height:d.height}}function Su(n){return gn(n).position==="static"}function em(n,r){if(!ir(n)||gn(n).position==="fixed")return null;if(r)return r(n);let o=n.offsetParent;return Fn(n)===o&&(o=o.ownerDocument.body),o}function tm(n,r){const o=Pt(n);if(Ws(n))return o;if(!ir(n)){let l=$r(n);for(;l&&!fi(l);){if(vn(l)&&!Su(l))return l;l=$r(l)}return o}let s=em(n,r);for(;s&&lS(s)&&Su(s);)s=em(s,r);return s&&fi(s)&&Su(s)&&!gu(s)?o:s||dS(n)||o}const bS=async function(n){const r=this.getOffsetParent||tm,o=this.getDimensions,s=await o(n.floating);return{reference:kS(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function ES(n){return gn(n).direction==="rtl"}const CS={convertOffsetParentRelativeRectToViewportRelativeRect:mS,getDocumentElement:Fn,getClippingRect:SS,getOffsetParent:tm,getElementRects:bS,getClientRects:hS,getDimensions:_S,getScale:_o,isElement:vn,isRTL:ES};function nm(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function RS(n,r,o){let s=null,l;const u=Fn(n);function d(){var y;clearTimeout(l),(y=s)==null||y.disconnect(),s=null}function p(y,x){y===void 0&&(y=!1),x===void 0&&(x=1),d();const w=n.getBoundingClientRect(),{left:b,top:_,width:E,height:S}=w;if(y||r(),!E||!S)return;const A=Fs(_),D=Fs(u.clientWidth-(b+E)),T=Fs(u.clientHeight-(_+S)),N=Fs(b),L={rootMargin:-A+"px "+-D+"px "+-T+"px "+-N+"px",threshold:Ln(0,rr(1,x))||1};let W=!0;function F(re){const me=re[0].intersectionRatio;if(!nm(w,n.getBoundingClientRect()))return p();if(me!==x){if(!W)return p();me?p(!1,me):l=setTimeout(()=>{p(!1,1e-7)},1e3)}W=!1}try{s=new IntersectionObserver(F,{...L,root:u.ownerDocument})}catch{s=new IntersectionObserver(F,L)}s.observe(n)}const h=Pt(n),v=()=>p(o);return h.addEventListener("resize",v),p(!0),()=>{h.removeEventListener("resize",v),d()}}function IS(n,r,o,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,v=wu(n),y=l||u?[...v?pi(v):[],...r?pi(r):[]]:[];y.forEach(A=>{l&&A.addEventListener("scroll",o),u&&A.addEventListener("resize",o)});const x=v&&p?RS(v,o,u):null;let w=-1,b=null;d&&(b=new ResizeObserver(A=>{let[D]=A;D&&D.target===v&&b&&r&&(b.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=b)==null||T.observe(r)})),o()}),v&&!h&&b.observe(v),r&&b.observe(r));let _,E=h?Vr(n):null;h&&S();function S(){const A=Vr(n);E&&!nm(E,A)&&o(),E=A,_=requestAnimationFrame(S)}return o(),()=>{var A;y.forEach(D=>{l&&D.removeEventListener("scroll",o),u&&D.removeEventListener("resize",o)}),x?.(),(A=b)==null||A.disconnect(),b=null,h&&cancelAnimationFrame(_)}}const PS=oS,NS=iS,OS=tS,TS=aS,AS=nS,rm=eS,DS=sS,MS=(n,r,o)=>{const s=new Map,l=o??{},u={...CS,...l.platform,_c:s};return Jw(n,r,{...l,platform:u})};var LS=typeof document<"u",jS=function(){},qs=LS?m.useLayoutEffect:jS;function Ks(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let o,s,l;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==r.length)return!1;for(s=o;s--!==0;)if(!Ks(n[s],r[s]))return!1;return!0}if(l=Object.keys(n),o=l.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(r,l[s]))return!1;for(s=o;s--!==0;){const u=l[s];if(!(u==="_owner"&&n.$$typeof)&&!Ks(n[u],r[u]))return!1}return!0}return n!==n&&r!==r}function om(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function im(n,r){const o=om(n);return Math.round(r*o)/o}function _u(n){const r=m.useRef(n);return qs(()=>{r.current=n}),r}function zS(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l,elements:{reference:u,floating:d}={},transform:p=!0,whileElementsMounted:h,open:v}=n,[y,x]=m.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,b]=m.useState(s);Ks(w,s)||b(s);const[_,E]=m.useState(null),[S,A]=m.useState(null),D=m.useCallback(B=>{B!==L.current&&(L.current=B,E(B))},[]),T=m.useCallback(B=>{B!==W.current&&(W.current=B,A(B))},[]),N=u||_,U=d||S,L=m.useRef(null),W=m.useRef(null),F=m.useRef(y),re=h!=null,me=_u(h),ke=_u(l),oe=_u(v),he=m.useCallback(()=>{if(!L.current||!W.current)return;const B={placement:r,strategy:o,middleware:w};ke.current&&(B.platform=ke.current),MS(L.current,W.current,B).then(X=>{const z={...X,isPositioned:oe.current!==!1};ve.current&&!Ks(F.current,z)&&(F.current=z,ai.flushSync(()=>{x(z)}))})},[w,r,o,ke,oe]);qs(()=>{v===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,x(B=>({...B,isPositioned:!1})))},[v]);const ve=m.useRef(!1);qs(()=>(ve.current=!0,()=>{ve.current=!1}),[]),qs(()=>{if(N&&(L.current=N),U&&(W.current=U),N&&U){if(me.current)return me.current(N,U,he);he()}},[N,U,he,me,re]);const _e=m.useMemo(()=>({reference:L,floating:W,setReference:D,setFloating:T}),[D,T]),ue=m.useMemo(()=>({reference:N,floating:U}),[N,U]),se=m.useMemo(()=>{const B={position:o,left:0,top:0};if(!ue.floating)return B;const X=im(ue.floating,y.x),z=im(ue.floating,y.y);return p?{...B,transform:"translate("+X+"px, "+z+"px)",...om(ue.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:X,top:z}},[o,p,ue.floating,y.x,y.y]);return m.useMemo(()=>({...y,update:he,refs:_e,elements:ue,floatingStyles:se}),[y,he,_e,ue,se])}const FS=n=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:s,padding:l}=typeof n=="function"?n(o):n;return s&&r(s)?s.current!=null?rm({element:s.current,padding:l}).fn(o):{}:s?rm({element:s,padding:l}).fn(o):{}}}},$S=(n,r)=>{const o=PS(n);return{name:o.name,fn:o.fn,options:[n,r]}},VS=(n,r)=>{const o=NS(n);return{name:o.name,fn:o.fn,options:[n,r]}},US=(n,r)=>({fn:DS(n).fn,options:[n,r]}),BS=(n,r)=>{const o=OS(n);return{name:o.name,fn:o.fn,options:[n,r]}},WS=(n,r)=>{const o=TS(n);return{name:o.name,fn:o.fn,options:[n,r]}},HS=(n,r)=>{const o=AS(n);return{name:o.name,fn:o.fn,options:[n,r]}},ZS=(n,r)=>{const o=FS(n);return{name:o.name,fn:o.fn,options:[n,r]}};var qS=Object.defineProperty,sr=(n,r)=>qS(n,"name",{value:r,configurable:!0}),sm="Popper",[am,Gs]=nr(sm),[KS,lm]=am(sm),GS=sr(n=>{const{__scopePopper:r,children:o}=n,[s,l]=m.useState(null),[u,d]=m.useState(void 0);return O.jsx(KS,{scope:r,anchor:s,onAnchorChange:l,placementState:u,setPlacementState:d,children:o})},"Popper"),QS="PopperAnchor",YS=m.forwardRef(sr(function(r,o){const{__scopePopper:s,virtualRef:l,...u}=r,d=lm(QS,s),p=m.useRef(null),h=d.onAnchorChange,v=m.useCallback(E=>{p.current=E,E&&h(E)},[h]),y=He(o,v),x=m.useRef(null);m.useEffect(()=>{if(!l)return;const E=x.current;x.current=l.current,E!==x.current&&h(x.current)});const w=d.placementState&&Qs(d.placementState),b=w?.[0],_=w?.[1];return l?null:O.jsx(Be.div,{"data-radix-popper-side":b,"data-radix-popper-align":_,...u,ref:y})},"PopperAnchor")),um="PopperContent",[XS,eC]=am(um),JS=m.forwardRef(sr(function(r,o){const{__scopePopper:s,side:l="bottom",sideOffset:u=0,align:d="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:x=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:_="optimized",onPlaced:E,...S}=r,A=lm(um,s),[D,T]=m.useState(null),N=He(o,T),[U,L]=m.useState(null),W=zp(U),F=W?.width??0,re=W?.height??0,me=l+(d!=="center"?"-"+d:""),ke=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},oe=Array.isArray(y)?y:[y],he=oe.length>0,ve={padding:ke,boundary:oe.filter(cm),altBoundary:he},{refs:_e,floatingStyles:ue,placement:se,isPositioned:B,middlewareData:X}=zS({strategy:"fixed",placement:me,whileElementsMounted:sr((...K)=>IS(...K,{animationFrame:_==="always"}),"whileElementsMounted"),elements:{reference:A.anchor},middleware:[$S({mainAxis:u+re,alignmentAxis:p}),v&&VS({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?US():void 0,...ve}),v&&BS({...ve}),WS({...ve,apply:sr(({elements:K,rects:Ce,availableWidth:Ne,availableHeight:Me})=>{const{width:Le,height:ft}=Ce.reference,Et=K.floating.style;Et.setProperty("--radix-popper-available-width",`${Ne}px`),Et.setProperty("--radix-popper-available-height",`${Me}px`),Et.setProperty("--radix-popper-anchor-width",`${Le}px`),Et.setProperty("--radix-popper-anchor-height",`${ft}px`)},"apply")}),U&&ZS({element:U,padding:h}),e1({arrowWidth:F,arrowHeight:re}),b&&HS({strategy:"referenceHidden",...ve,boundary:he?ve.boundary:void 0})]}),z=A.setPlacementState;ot(()=>(z(se),()=>{z(void 0)}),[se,z]);const[P,C]=Qs(se),Q=pn(E);ot(()=>{B&&Q?.()},[B,Q]);const ne=X.arrow?.x,H=X.arrow?.y,V=X.arrow?.centerOffset!==0,[te,Z]=m.useState();return ot(()=>{D&&Z(window.getComputedStyle(D).zIndex)},[D]),O.jsx("div",{ref:_e.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:B?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:r.dir,children:O.jsx(XS,{scope:s,placedSide:P,placedAlign:C,onArrowChange:L,arrowX:ne,arrowY:H,shouldHideArrow:V,children:O.jsx(Be.div,{"data-side":P,"data-align":C,...S,ref:N,style:{...S.style,animation:B?S.style?.animation:"none"}})})})},"PopperContent"));function cm(n){return n!==null}sr(cm,"isNotNull");var e1=sr(n=>({name:"transformOrigin",options:n,fn(r){const{placement:o,rects:s,middlewareData:l}=r,d=l.arrow?.centerOffset!==0,p=d?0:n.arrowWidth,h=d?0:n.arrowHeight,[v,y]=Qs(o),x={start:"0%",center:"50%",end:"100%"}[y],w=(l.arrow?.x??0)+p/2,b=(l.arrow?.y??0)+h/2;let _="",E="";return v==="bottom"?(_=d?x:`${w}px`,E=`${-h}px`):v==="top"?(_=d?x:`${w}px`,E=`${s.floating.height+h}px`):v==="right"?(_=`${-h}px`,E=d?x:`${b}px`):v==="left"&&(_=`${s.floating.width+h}px`,E=d?x:`${b}px`),{data:{x:_,y:E}}}}),"transformOrigin");function Qs(n){const[r,o="center"]=n.split("-");return[r,o]}sr(Qs,"getSideAndAlignFromPlacement");var dm=GS,fm=YS,pm=JS,t1=Object.defineProperty,n1=(n,r)=>t1(n,"name",{value:r,configurable:!0});function mm(n){const r=m.useRef({value:n,previous:n});return m.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}n1(mm,"usePrevious");var r1=Object.defineProperty,o1=(n,r)=>r1(n,"name",{value:r,configurable:!0});function ku(n,[r,o]){return Math.min(o,Math.max(r,n))}o1(ku,"clamp");var i1=Object.defineProperty,ar=(n,r)=>i1(n,"name",{value:r,configurable:!0}),bu="Popover",[hm,tC]=nr(bu,[Gs]),Eu=Gs(),[s1,ko]=hm(bu),a1=ar(n=>{const{__scopePopover:r,children:o,open:s,defaultOpen:l,onOpenChange:u,modal:d=!1}=n,p=Eu(r),h=m.useRef(null),[v,y]=m.useState(!1),[x,w]=ui({prop:s,defaultProp:l??!1,onChange:u,caller:bu});return O.jsx(dm,{...p,children:O.jsx(s1,{scope:r,contentId:jt(),triggerRef:h,open:x,onOpenChange:w,onOpenToggle:m.useCallback(()=>w(b=>!b),[w]),hasCustomAnchor:v,onCustomAnchorAdd:m.useCallback(()=>y(!0),[]),onCustomAnchorRemove:m.useCallback(()=>y(!1),[]),modal:d,children:o})})},"Popover"),l1="PopoverTrigger",u1=m.forwardRef(ar(function(r,o){const{__scopePopover:s,...l}=r,u=ko(l1,s),d=Eu(s),p=He(o,u.triggerRef),h=O.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":Cu(u.open),...l,ref:p,onClick:Ve(r.onClick,u.onOpenToggle)});return u.hasCustomAnchor?h:O.jsx(fm,{asChild:!0,...d,children:h})},"PopoverTrigger")),vm="PopoverPortal",[c1,d1]=hm(vm,{forceMount:void 0}),f1=ar(n=>{const{__scopePopover:r,forceMount:o,children:s,container:l}=n,u=ko(vm,r);return O.jsx(c1,{scope:r,forceMount:o,children:O.jsx(po,{present:o||u.open,children:O.jsx(Yl,{asChild:!0,container:l,children:s})})})},"PopoverPortal"),mi="PopoverContent",p1=m.forwardRef(ar(function(r,o){const s=d1(mi,r.__scopePopover),{forceMount:l=s.forceMount,...u}=r,d=ko(mi,r.__scopePopover);return O.jsx(po,{present:l||d.open,children:d.modal?O.jsx(h1,{...u,ref:o}):O.jsx(v1,{...u,ref:o})})},"PopoverContent")),m1=fn("PopoverContent.RemoveScroll"),h1=m.forwardRef(ar(function(r,o){const s=ko(mi,r.__scopePopover),l=m.useRef(null),u=He(o,l),d=m.useRef(!1);return m.useEffect(()=>{const p=l.current;if(p)return iu(p)},[]),O.jsx(As,{as:m1,allowPinchZoom:!0,children:O.jsx(gm,{...r,ref:u,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ve(r.onCloseAutoFocus,p=>{p.preventDefault(),d.current||s.triggerRef.current?.focus()}),onPointerDownOutside:Ve(r.onPointerDownOutside,p=>{const h=p.detail.originalEvent,v=h.button===0&&h.ctrlKey===!0,y=h.button===2||v;d.current=y},{checkForDefaultPrevented:!1}),onFocusOutside:Ve(r.onFocusOutside,p=>p.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),v1=m.forwardRef(ar(function(r,o){const s=ko(mi,r.__scopePopover),l=m.useRef(!1),u=m.useRef(!1);return O.jsx(gm,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{r.onCloseAutoFocus?.(d),d.defaultPrevented||(l.current||s.triggerRef.current?.focus(),d.preventDefault()),l.current=!1,u.current=!1},onInteractOutside:d=>{r.onInteractOutside?.(d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const p=d.target;s.triggerRef.current?.contains(p)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.current&&d.preventDefault()}})},"PopoverContentNonModal")),gm=m.forwardRef(ar(function(r,o){const{__scopePopover:s,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:d,disableOutsidePointerEvents:p,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:x,...w}=r,b=ko(mi,s),_=Eu(s);return ci(),O.jsx(ql,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:u,onUnmountAutoFocus:d,children:O.jsx(Ul,{asChild:!0,disableOutsidePointerEvents:p,onInteractOutside:x,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:y,onDismiss:()=>b.onOpenChange(!1),deferPointerDownOutside:!0,children:O.jsx(pm,{"data-state":Cu(b.open),role:"dialog",id:b.contentId,..._,...w,ref:o,style:{...w.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)"}})})})},"PopoverContentImpl"));function Cu(n){return n?"open":"closed"}ar(Cu,"getState");var g1=a1,y1=u1,x1=f1,w1=p1,S1=Object.defineProperty,ze=(n,r)=>S1(n,"name",{value:r,configurable:!0}),_1=[" ","Enter","ArrowUp","ArrowDown"],k1=[" ","Enter"],bo="Select",[Ys,Xs,b1]=Ff(bo),[Ur,nC]=nr(bo,[b1,Gs]),Ru=Gs(),[E1,lr]=Ur(bo),[C1,R1]=Ur(bo);function ym(n){const{__scopeSelect:r,children:o,open:s,defaultOpen:l,onOpenChange:u,value:d,defaultValue:p,onValueChange:h,dir:v,name:y,autoComplete:x,disabled:w,required:b,form:_,internal_do_not_use_render:E}=n,S=Ru(r),[A,D]=m.useState(null),[T,N]=m.useState(null),[U,L]=m.useState(!1),W=op(v),[F,re]=ui({prop:s,defaultProp:l??!1,onChange:u,caller:bo}),[me,ke]=ui({prop:d,defaultProp:p,onChange:h,caller:bo}),oe=m.useRef(null),he=m.useRef(me);m.useEffect(()=>{const C=_?A?.ownerDocument.getElementById(_):A?.form;if(C instanceof HTMLFormElement){const Q=ze(()=>ke(he.current),"reset");return C.addEventListener("reset",Q),()=>C.removeEventListener("reset",Q)}},[_,A,ke]);const ve=A?!!_||!!A.closest("form"):!0,[_e,ue]=m.useState(new Set),se=jt(),B=Array.from(_e).map(C=>C.props.value).join(";"),X=m.useCallback(C=>{ue(Q=>new Set(Q).add(C))},[]),z=m.useCallback(C=>{ue(Q=>{const ne=new Set(Q);return ne.delete(C),ne})},[]),P={required:b,trigger:A,onTriggerChange:D,valueNode:T,onValueNodeChange:N,valueNodeHasChildren:U,onValueNodeHasChildrenChange:L,contentId:se,value:me,onValueChange:ke,open:F,onOpenChange:re,dir:W,triggerPointerDownPosRef:oe,disabled:w,name:y,autoComplete:x,form:_,nativeOptions:_e,nativeSelectKey:B,isFormControl:ve};return O.jsx(dm,{...S,children:O.jsx(E1,{scope:r,...P,children:O.jsx(Ys.Provider,{scope:r,children:O.jsx(C1,{scope:r,onNativeOptionAdd:X,onNativeOptionRemove:z,children:Cm(E)?E(P):o})})})})}ze(ym,"SelectProvider");var I1=ze(n=>{const{__scopeSelect:r,children:o,...s}=n;return O.jsx(ym,{__scopeSelect:r,...s,internal_do_not_use_render:({isFormControl:l})=>O.jsxs(O.Fragment,{children:[o,l?O.jsx(e_,{__scopeSelect:r}):null]})})},"Select"),P1="SelectTrigger",N1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,disabled:l=!1,...u}=r,d=Ru(s),p=lr(P1,s),h=p.disabled||l,v=He(o,p.onTriggerChange),y=Xs(s),x=m.useRef("touch"),[w,b,_]=Nu(S=>{const A=y().filter(N=>!N.disabled),D=A.find(N=>N.value===p.value),T=Ou(A,S,D);T!==void 0&&p.onValueChange(T.value)}),E=ze(S=>{h||(p.onOpenChange(!0),_()),S&&(p.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})},"handleOpen");return O.jsx(fm,{asChild:!0,...d,children:O.jsx(Be.button,{type:"button",role:"combobox","aria-controls":p.open?p.contentId:void 0,"aria-expanded":p.open,"aria-required":p.required,"aria-autocomplete":"none",dir:p.dir,"data-state":p.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":hi(p.value)?"":void 0,...u,ref:v,onClick:Ve(u.onClick,S=>{S.currentTarget.focus(),x.current!=="mouse"&&E(S)}),onPointerDown:Ve(u.onPointerDown,S=>{x.current=S.pointerType;const A=S.target;A.hasPointerCapture(S.pointerId)&&A.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:Ve(u.onKeyDown,S=>{const A=w.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(A&&S.key===" ")&&_1.includes(S.key)&&(E(),S.preventDefault())})})})},"SelectTrigger")),O1="SelectValue",T1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,className:l,style:u,children:d,placeholder:p="",...h}=r,v=lr(O1,s),{onValueNodeHasChildrenChange:y}=v,x=d!==void 0,w=He(o,v.onValueNodeChange);ot(()=>{y(x)},[y,x]);const b=hi(v.value);return O.jsx(Be.span,{...h,asChild:b?!1:h.asChild,ref:w,style:{pointerEvents:"none"},children:O.jsx(m.Fragment,{children:b?p:d},b?"placeholder":"value")})},"SelectValue")),A1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,children:l,...u}=r;return O.jsx(Be.span,{"aria-hidden":!0,...u,ref:o,children:l||"▼"})},"SelectIcon")),D1="SelectPortal",[M1,L1]=Ur(D1,{forceMount:void 0}),j1=ze(n=>{const{__scopeSelect:r,forceMount:o,...s}=n;return O.jsx(M1,{scope:n.__scopeSelect,forceMount:o,children:O.jsx(Yl,{asChild:!0,...s})})},"SelectPortal"),Br="SelectContent",z1=m.forwardRef(ze(function(r,o){const s=L1(Br,r.__scopeSelect),{forceMount:l=s.forceMount,...u}=r,d=lr(Br,r.__scopeSelect),[p,h]=m.useState();return ot(()=>{h(new DocumentFragment)},[]),O.jsx(po,{present:l||d.open,children:({present:v})=>v?O.jsx(V1,{...u,ref:o}):O.jsx(F1,{...u,fragment:p})})},"SelectContent")),F1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,children:l,fragment:u}=r;return u?ai.createPortal(O.jsx(xm,{scope:s,children:O.jsx(Ys.Slot,{scope:s,children:O.jsx("div",{ref:o,children:l})})}),u):null},"SelectContentFragment")),en=10,[xm,Wr]=Ur(Br),$1=fn("SelectContent.RemoveScroll"),V1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s}=r,{position:l="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:p,side:h,sideOffset:v,align:y,alignOffset:x,arrowPadding:w,collisionBoundary:b,collisionPadding:_,sticky:E,hideWhenDetached:S,avoidCollisions:A,...D}=r,T=lr(Br,s),[N,U]=m.useState(null),[L,W]=m.useState(null),F=He(o,U),[re,me]=m.useState(null),[ke,oe]=m.useState(null),he=Xs(s),[ve,_e]=m.useState(!1),ue=m.useRef(!1);m.useEffect(()=>{if(N)return iu(N)},[N]),ci();const se=m.useCallback(Z=>{const[K,...Ce]=he().map(Le=>Le.ref.current),[Ne]=Ce.slice(-1),Me=document.activeElement;for(const Le of Z)if(Le===Me||(Le?.scrollIntoView({block:"nearest"}),Le===K&&L&&(L.scrollTop=0),Le===Ne&&L&&(L.scrollTop=L.scrollHeight),Le?.focus(),document.activeElement!==Me))return},[he,L]),B=m.useCallback(()=>se([re,N]),[se,re,N]);m.useEffect(()=>{ve&&B()},[ve,B]);const{onOpenChange:X,triggerPointerDownPosRef:z}=T;m.useEffect(()=>{if(N){let Z={x:0,y:0};const K=ze(Ne=>{Z={x:Math.abs(Math.round(Ne.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(Ne.pageY)-(z.current?.y??0))}},"handlePointerMove"),Ce=ze(Ne=>{Z.x<=10&&Z.y<=10?Ne.preventDefault():Ne.composedPath().includes(N)||X(!1),document.removeEventListener("pointermove",K),z.current=null},"handlePointerUp");return z.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[N,X,z]),m.useEffect(()=>{const Z=ze(()=>X(!1),"close");return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[X]);const[P,C]=Nu(Z=>{const K=he().filter(Me=>!Me.disabled),Ce=K.find(Me=>Me.ref.current===document.activeElement),Ne=Ou(K,Z,Ce);Ne&&setTimeout(()=>Ne.ref.current?.focus())}),Q=m.useCallback((Z,K,Ce)=>{const Ne=!ue.current&&!Ce;(T.value!==void 0&&T.value===K||Ne)&&(me(Z),Ne&&(ue.current=!0))},[T.value]),ne=m.useCallback(()=>N?.focus(),[N]),H=m.useCallback((Z,K,Ce)=>{const Ne=!ue.current&&!Ce;(T.value!==void 0&&T.value===K||Ne)&&oe(Z)},[T.value]),V=l==="popper"?wm:U1,te=V===wm?{side:h,sideOffset:v,align:y,alignOffset:x,arrowPadding:w,collisionBoundary:b,collisionPadding:_,sticky:E,hideWhenDetached:S,avoidCollisions:A}:{};return O.jsx(xm,{scope:s,content:N,viewport:L,onViewportChange:W,itemRefCallback:Q,selectedItem:re,onItemLeave:ne,itemTextRefCallback:H,focusSelectedItem:B,selectedItemText:ke,position:l,isPositioned:ve,searchRef:P,children:O.jsx(As,{as:$1,allowPinchZoom:!0,children:O.jsx(ql,{asChild:!0,trapped:T.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:Ve(u,Z=>{T.trigger?.focus({preventScroll:!0}),Z.preventDefault()}),children:O.jsx(Ul,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:O.jsx(V,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:Z=>Z.preventDefault(),...D,...te,onPlaced:()=>_e(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:Ve(D.onKeyDown,Z=>{const K=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!K&&Z.key.length===1&&C(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let Ne=he().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const Me=Z.target,Le=Ne.indexOf(Me);Ne=Ne.slice(Le+1)}setTimeout(()=>se(Ne)),Z.preventDefault()}})})})})})})},"SelectContentImpl")),U1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,onPlaced:l,...u}=r,d=lr(Br,s),p=Wr(Br,s),[h,v]=m.useState(null),[y,x]=m.useState(null),w=He(o,x),b=Xs(s),_=m.useRef(!1),E=m.useRef(!0),{viewport:S,selectedItem:A,selectedItemText:D,focusSelectedItem:T}=p,N=m.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&y&&S&&A&&D){const F=d.trigger.getBoundingClientRect(),re=y.getBoundingClientRect(),me=d.valueNode.getBoundingClientRect(),ke=D.getBoundingClientRect();if(d.dir!=="rtl"){const Me=ke.left-re.left,Le=me.left-Me,ft=F.left-Le,Et=F.width+ft,Io=Math.max(Et,re.width),qr=window.innerWidth-en,Po=ku(Le,[en,Math.max(en,qr-Io)]);h.style.minWidth=Et+"px",h.style.left=Po+"px"}else{const Me=re.right-ke.right,Le=window.innerWidth-me.right-Me,ft=window.innerWidth-F.right-Le,Et=F.width+ft,Io=Math.max(Et,re.width),qr=window.innerWidth-en,Po=ku(Le,[en,Math.max(en,qr-Io)]);h.style.minWidth=Et+"px",h.style.right=Po+"px"}const oe=b(),he=window.innerHeight-en*2,ve=S.scrollHeight,_e=window.getComputedStyle(y),ue=parseInt(_e.borderTopWidth,10),se=parseInt(_e.paddingTop,10),B=parseInt(_e.borderBottomWidth,10),X=parseInt(_e.paddingBottom,10),z=ue+se+ve+X+B,P=Math.min(A.offsetHeight*5,z),C=window.getComputedStyle(S),Q=parseInt(C.paddingTop,10),ne=parseInt(C.paddingBottom,10),H=F.top+F.height/2-en,V=he-H,te=A.offsetHeight/2,Z=A.offsetTop+te,K=ue+se+Z,Ce=z-K;if(K<=H){const Me=oe.length>0&&A===oe[oe.length-1].ref.current;h.style.bottom="0px";const Le=y.clientHeight-S.offsetTop-S.offsetHeight,ft=Math.max(V,te+(Me?ne:0)+Le+B),Et=K+ft;h.style.height=Et+"px"}else{const Me=oe.length>0&&A===oe[0].ref.current;h.style.top="0px";const ft=Math.max(H,ue+S.offsetTop+(Me?Q:0)+te)+Ce;h.style.height=ft+"px",S.scrollTop=K-H+S.offsetTop}h.style.margin=`${en}px 0`,h.style.minHeight=P+"px",h.style.maxHeight=he+"px",l?.(),requestAnimationFrame(()=>_.current=!0)}},[b,d.trigger,d.valueNode,h,y,S,A,D,d.dir,l]);ot(()=>N(),[N]);const[U,L]=m.useState();ot(()=>{y&&L(window.getComputedStyle(y).zIndex)},[y]);const W=m.useCallback(F=>{F&&E.current===!0&&(N(),T?.(),E.current=!1)},[N,T]);return O.jsx(B1,{scope:s,contentWrapper:h,shouldExpandOnScrollRef:_,onScrollButtonChange:W,children:O.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:O.jsx(Be.div,{...u,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})},"SelectItemAlignedPosition")),wm=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,align:l="start",collisionPadding:u=en,...d}=r,p=Ru(s);return O.jsx(pm,{...p,...d,ref:o,align:l,collisionPadding:u,style:{boxSizing:"border-box",...d.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)"}})},"SelectPopperPosition")),[B1,Iu]=Ur(Br,{}),Sm="SelectViewport",W1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,nonce:l,...u}=r,d=Wr(Sm,s),p=Iu(Sm,s),h=He(o,d.onViewportChange),v=m.useRef(0);return O.jsxs(O.Fragment,{children:[O.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),O.jsx(Ys.Slot,{scope:s,children:O.jsx(Be.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Ve(u.onScroll,y=>{const x=y.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:b}=p;if(b?.current&&w){const _=Math.abs(v.current-x.scrollTop);if(_>0){const E=window.innerHeight-en*2,S=parseFloat(w.style.minHeight),A=parseFloat(w.style.height),D=Math.max(S,A);if(D<E){const T=D+_,N=Math.min(E,T),U=T-N;w.style.height=N+"px",w.style.bottom==="0px"&&(x.scrollTop=U>0?U:0,w.style.justifyContent="flex-end")}}}v.current=x.scrollTop})})})]})},"SelectViewport")),H1="SelectGroup",[rC,oC]=Ur(H1),Pu="SelectItem",[Z1,_m]=Ur(Pu),q1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,value:l,disabled:u=!1,textValue:d,...p}=r,h=lr(Pu,s),v=Wr(Pu,s),y=h.value===l,[x,w]=m.useState(d??""),[b,_]=m.useState(!1),E=pn(N=>v.itemRefCallback?.(N,l,u)),S=He(o,E),A=jt(),D=m.useRef("touch"),T=ze(()=>{u||(h.onValueChange(l),h.onOpenChange(!1))},"handleSelect");return O.jsx(Z1,{scope:s,value:l,disabled:u,textId:A,isSelected:y,onItemTextChange:m.useCallback(N=>{w(U=>U||(N?.textContent??"").trim())},[]),children:O.jsx(Ys.ItemSlot,{scope:s,value:l,disabled:u,textValue:x,children:O.jsx(Be.div,{role:"option","aria-labelledby":A,"data-highlighted":b?"":void 0,"aria-selected":y&&b,"data-state":y?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...p,ref:S,onFocus:Ve(p.onFocus,()=>_(!0)),onBlur:Ve(p.onBlur,()=>_(!1)),onClick:Ve(p.onClick,()=>{D.current!=="mouse"&&T()}),onPointerUp:Ve(p.onPointerUp,()=>{D.current==="mouse"&&T()}),onPointerDown:Ve(p.onPointerDown,N=>{D.current=N.pointerType}),onPointerMove:Ve(p.onPointerMove,N=>{D.current=N.pointerType,u?v.onItemLeave?.():D.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ve(p.onPointerLeave,N=>{N.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:Ve(p.onKeyDown,N=>{u||N.target!==N.currentTarget||v.searchRef?.current!==""&&N.key===" "||(k1.includes(N.key)&&T(),N.key===" "&&N.preventDefault())})})})})},"SelectItem")),Js="SelectItemText",K1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,className:l,style:u,...d}=r,p=lr(Js,s),h=Wr(Js,s),v=_m(Js,s),y=R1(Js,s),[x,w]=m.useState(null),b=pn(T=>h.itemTextRefCallback?.(T,v.value,v.disabled)),_=He(o,w,v.onItemTextChange,b),E=x?.textContent,S=m.useMemo(()=>O.jsx("option",{value:v.value,disabled:v.disabled,children:E},v.value),[v.disabled,v.value,E]),{onNativeOptionAdd:A,onNativeOptionRemove:D}=y;return ot(()=>(A(S),()=>D(S)),[A,D,S]),O.jsxs(O.Fragment,{children:[O.jsx(Be.span,{id:v.textId,...d,ref:_}),v.isSelected&&p.valueNode&&!p.valueNodeHasChildren&&!hi(p.value)?ai.createPortal(d.children,p.valueNode):null]})},"SelectItemText")),G1="SelectItemIndicator",Q1=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,...l}=r;return _m(G1,s).isSelected?O.jsx(Be.span,{"aria-hidden":!0,...l,ref:o}):null},"SelectItemIndicator")),km="SelectScrollUpButton",Y1=m.forwardRef(ze(function(r,o){const s=Wr(km,r.__scopeSelect),l=Iu(km,r.__scopeSelect),[u,d]=m.useState(!1),p=He(o,l.onScrollButtonChange);return ot(()=>{if(s.viewport&&s.isPositioned){let h=function(){const y=v.scrollTop>0;d(y)};ze(h,"handleScroll");const v=s.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[s.viewport,s.isPositioned]),u?O.jsx(Em,{...r,ref:p,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=s;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null},"SelectScrollUpButton")),bm="SelectScrollDownButton",X1=m.forwardRef(ze(function(r,o){const s=Wr(bm,r.__scopeSelect),l=Iu(bm,r.__scopeSelect),[u,d]=m.useState(!1),p=He(o,l.onScrollButtonChange);return ot(()=>{if(s.viewport&&s.isPositioned){let h=function(){const y=v.scrollHeight-v.clientHeight,x=Math.ceil(v.scrollTop)<y;d(x)};ze(h,"handleScroll");const v=s.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[s.viewport,s.isPositioned]),u?O.jsx(Em,{...r,ref:p,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=s;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null},"SelectScrollDownButton")),Em=m.forwardRef(ze(function(r,o){const{__scopeSelect:s,onAutoScroll:l,...u}=r,d=Wr("SelectScrollButton",s),p=m.useRef(null),h=Xs(s),v=m.useCallback(()=>{p.current!==null&&(window.clearInterval(p.current),p.current=null)},[]);return m.useEffect(()=>()=>v(),[v]),ot(()=>{h().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),O.jsx(Be.div,{"aria-hidden":!0,...u,ref:o,style:{flexShrink:0,...u.style},onPointerDown:Ve(u.onPointerDown,()=>{p.current===null&&(p.current=window.setInterval(l,50))}),onPointerMove:Ve(u.onPointerMove,()=>{d.onItemLeave?.(),p.current===null&&(p.current=window.setInterval(l,50))}),onPointerLeave:Ve(u.onPointerLeave,()=>{v()})})},"SelectScrollButtonImpl")),J1="SelectBubbleInput",e_=m.forwardRef(ze(function({__scopeSelect:r,...o},s){const l=lr(J1,r),{value:u,onValueChange:d,required:p,disabled:h,name:v,autoComplete:y,form:x}=l,{nativeOptions:w,nativeSelectKey:b}=l,_=m.useRef(null),E=He(s,_),S=u??"",A=mm(S),D=Array.from(w).some(T=>(T.props.value??"")==="");return m.useEffect(()=>{const T=_.current;if(!T)return;const N=window.HTMLSelectElement.prototype,L=Object.getOwnPropertyDescriptor(N,"value").set;if(A!==S&&L){const W=new Event("change",{bubbles:!0});L.call(T,S),T.dispatchEvent(W)}},[A,S]),O.jsxs(Be.select,{"aria-hidden":!0,required:p,tabIndex:-1,name:v,autoComplete:y,disabled:h,form:x,onChange:T=>d(T.target.value),...o,style:{...H0,...o.style},ref:E,defaultValue:S,children:[hi(u)&&!D?O.jsx("option",{value:""}):null,Array.from(w)]},b)},"SelectBubbleInput"));function Cm(n){return typeof n=="function"}ze(Cm,"isFunction");function hi(n){return n===""||n===void 0}ze(hi,"shouldShowPlaceholder");function Nu(n){const r=pn(n),o=m.useRef(""),s=m.useRef(0),l=m.useCallback(d=>{const p=o.current+d;r(p),ze((function h(v){o.current=v,window.clearTimeout(s.current),v!==""&&(s.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(p)},[r]),u=m.useCallback(()=>{o.current="",window.clearTimeout(s.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(s.current),[]),[o,l,u]}ze(Nu,"useTypeaheadSearch");function Ou(n,r,o){const l=r.length>1&&Array.from(r).every(v=>v===r[0])?r[0]:r,u=o?n.indexOf(o):-1;let d=Rm(n,Math.max(u,0));l.length===1&&(d=d.filter(v=>v!==o));const h=d.find(v=>v.textValue.toLowerCase().startsWith(l.toLowerCase()));return h!==o?h:void 0}ze(Ou,"findNextItem");function Rm(n,r){return n.map((o,s)=>n[(r+s)%n.length])}ze(Rm,"wrapArray");const Im=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Pm=rf,Nm=(n,r)=>o=>{var s;if(r?.variants==null)return Pm(n,o?.class,o?.className);const{variants:l,defaultVariants:u}=r,d=Object.keys(l).map(v=>{const y=o?.[v],x=u?.[v];if(y===null)return null;const w=Im(y)||Im(x);return l[v][w]}),p=o&&Object.entries(o).reduce((v,y)=>{let[x,w]=y;return w===void 0||(v[x]=w),v},{}),h=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((v,y)=>{let{class:x,className:w,...b}=y;return Object.entries(b).every(_=>{let[E,S]=_;return Array.isArray(S)?S.includes({...u,...p}[E]):{...u,...p}[E]===S})?[...v,x,w]:v},[]);return Pm(n,d,h,o?.class,o?.className)};var Om=1,t_=.9,n_=.8,r_=.17,Tu=.1,Au=.999,o_=.9999,i_=.99,s_=/[\\\/_+.#"@\[\(\{&]/,a_=/[\\\/_+.#"@\[\(\{&]/g,l_=/[\s-]/,Tm=/[\s-]/g;function Du(n,r,o,s,l,u,d){if(u===r.length)return l===n.length?Om:i_;var p=`${l},${u}`;if(d[p]!==void 0)return d[p];for(var h=s.charAt(u),v=o.indexOf(h,l),y=0,x,w,b,_;v>=0;)x=Du(n,r,o,s,v+1,u+1,d),x>y&&(v===l?x*=Om:s_.test(n.charAt(v-1))?(x*=n_,b=n.slice(l,v-1).match(a_),b&&l>0&&(x*=Math.pow(Au,b.length))):l_.test(n.charAt(v-1))?(x*=t_,_=n.slice(l,v-1).match(Tm),_&&l>0&&(x*=Math.pow(Au,_.length))):(x*=r_,l>0&&(x*=Math.pow(Au,v-l))),n.charAt(v)!==r.charAt(u)&&(x*=o_)),(x<Tu&&o.charAt(v-1)===s.charAt(u+1)||s.charAt(u+1)===s.charAt(u)&&o.charAt(v-1)!==s.charAt(u))&&(w=Du(n,r,o,s,v+1,u+2,d),w*Tu>x&&(x=w*Tu)),x>y&&(y=x),v=o.indexOf(h,v+1);return d[p]=y,y}function Am(n){return n.toLowerCase().replace(Tm," ")}function u_(n,r,o){return n=o&&o.length>0?`${n+" "+o.join(" ")}`:n,Du(n,r,Am(n),Am(r),0,0,{})}var vi='[cmdk-group=""]',Mu='[cmdk-group-items=""]',c_='[cmdk-group-heading=""]',Dm='[cmdk-item=""]',Mm=`${Dm}:not([aria-disabled="true"])`,Lu="cmdk-item-select",Eo="data-value",d_=(n,r,o)=>u_(n,r,o),Lm=m.createContext(void 0),gi=()=>m.useContext(Lm),jm=m.createContext(void 0),ju=()=>m.useContext(jm),zm=m.createContext(void 0),Fm=m.forwardRef((n,r)=>{let o=Co(()=>{var C,Q;return{search:"",value:(Q=(C=n.value)!=null?C:n.defaultValue)!=null?Q:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=Co(()=>new Set),l=Co(()=>new Map),u=Co(()=>new Map),d=Co(()=>new Set),p=$m(n),{label:h,children:v,value:y,onValueChange:x,filter:w,shouldFilter:b,loop:_,disablePointerSelection:E=!1,vimBindings:S=!0,...A}=n,D=jt(),T=jt(),N=jt(),U=m.useRef(null),L=__();Hr(()=>{if(y!==void 0){let C=y.trim();o.current.value=C,W.emit()}},[y]),Hr(()=>{L(6,he)},[]);let W=m.useMemo(()=>({subscribe:C=>(d.current.add(C),()=>d.current.delete(C)),snapshot:()=>o.current,setState:(C,Q,ne)=>{var H,V,te,Z;if(!Object.is(o.current[C],Q)){if(o.current[C]=Q,C==="search")oe(),me(),L(1,ke);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let K=document.getElementById(N);K?K.focus():(H=document.getElementById(D))==null||H.focus()}if(L(7,()=>{var K;o.current.selectedItemId=(K=ve())==null?void 0:K.id,W.emit()}),ne||L(5,he),((V=p.current)==null?void 0:V.value)!==void 0){let K=Q??"";(Z=(te=p.current).onValueChange)==null||Z.call(te,K);return}}W.emit()}},emit:()=>{d.current.forEach(C=>C())}}),[]),F=m.useMemo(()=>({value:(C,Q,ne)=>{var H;Q!==((H=u.current.get(C))==null?void 0:H.value)&&(u.current.set(C,{value:Q,keywords:ne}),o.current.filtered.items.set(C,re(Q,ne)),L(2,()=>{me(),W.emit()}))},item:(C,Q)=>(s.current.add(C),Q&&(l.current.has(Q)?l.current.get(Q).add(C):l.current.set(Q,new Set([C]))),L(3,()=>{oe(),me(),o.current.value||ke(),W.emit()}),()=>{u.current.delete(C),s.current.delete(C),o.current.filtered.items.delete(C);let ne=ve();L(4,()=>{oe(),ne?.getAttribute("id")===C&&ke(),W.emit()})}),group:C=>(l.current.has(C)||l.current.set(C,new Set),()=>{u.current.delete(C),l.current.delete(C)}),filter:()=>p.current.shouldFilter,label:h||n["aria-label"],getDisablePointerSelection:()=>p.current.disablePointerSelection,listId:D,inputId:N,labelId:T,listInnerRef:U}),[]);function re(C,Q){var ne,H;let V=(H=(ne=p.current)==null?void 0:ne.filter)!=null?H:d_;return C?V(C,o.current.search,Q):0}function me(){if(!o.current.search||p.current.shouldFilter===!1)return;let C=o.current.filtered.items,Q=[];o.current.filtered.groups.forEach(H=>{let V=l.current.get(H),te=0;V.forEach(Z=>{let K=C.get(Z);te=Math.max(K,te)}),Q.push([H,te])});let ne=U.current;_e().sort((H,V)=>{var te,Z;let K=H.getAttribute("id"),Ce=V.getAttribute("id");return((te=C.get(Ce))!=null?te:0)-((Z=C.get(K))!=null?Z:0)}).forEach(H=>{let V=H.closest(Mu);V?V.appendChild(H.parentElement===V?H:H.closest(`${Mu} > *`)):ne.appendChild(H.parentElement===ne?H:H.closest(`${Mu} > *`))}),Q.sort((H,V)=>V[1]-H[1]).forEach(H=>{var V;let te=(V=U.current)==null?void 0:V.querySelector(`${vi}[${Eo}="${encodeURIComponent(H[0])}"]`);te?.parentElement.appendChild(te)})}function ke(){let C=_e().find(ne=>ne.getAttribute("aria-disabled")!=="true"),Q=C?.getAttribute(Eo);W.setState("value",Q||void 0)}function oe(){var C,Q,ne,H;if(!o.current.search||p.current.shouldFilter===!1){o.current.filtered.count=s.current.size;return}o.current.filtered.groups=new Set;let V=0;for(let te of s.current){let Z=(Q=(C=u.current.get(te))==null?void 0:C.value)!=null?Q:"",K=(H=(ne=u.current.get(te))==null?void 0:ne.keywords)!=null?H:[],Ce=re(Z,K);o.current.filtered.items.set(te,Ce),Ce>0&&V++}for(let[te,Z]of l.current)for(let K of Z)if(o.current.filtered.items.get(K)>0){o.current.filtered.groups.add(te);break}o.current.filtered.count=V}function he(){var C,Q,ne;let H=ve();H&&(((C=H.parentElement)==null?void 0:C.firstChild)===H&&((ne=(Q=H.closest(vi))==null?void 0:Q.querySelector(c_))==null||ne.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function ve(){var C;return(C=U.current)==null?void 0:C.querySelector(`${Dm}[aria-selected="true"]`)}function _e(){var C;return Array.from(((C=U.current)==null?void 0:C.querySelectorAll(Mm))||[])}function ue(C){let Q=_e()[C];Q&&W.setState("value",Q.getAttribute(Eo))}function se(C){var Q;let ne=ve(),H=_e(),V=H.findIndex(Z=>Z===ne),te=H[V+C];(Q=p.current)!=null&&Q.loop&&(te=V+C<0?H[H.length-1]:V+C===H.length?H[0]:H[V+C]),te&&W.setState("value",te.getAttribute(Eo))}function B(C){let Q=ve(),ne=Q?.closest(vi),H;for(;ne&&!H;)ne=C>0?w_(ne,vi):S_(ne,vi),H=ne?.querySelector(Mm);H?W.setState("value",H.getAttribute(Eo)):se(C)}let X=()=>ue(_e().length-1),z=C=>{C.preventDefault(),C.metaKey?X():C.altKey?B(1):se(1)},P=C=>{C.preventDefault(),C.metaKey?ue(0):C.altKey?B(-1):se(-1)};return m.createElement(Be.div,{ref:r,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:C=>{var Q;(Q=A.onKeyDown)==null||Q.call(A,C);let ne=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||ne))switch(C.key){case"n":case"j":{S&&C.ctrlKey&&z(C);break}case"ArrowDown":{z(C);break}case"p":case"k":{S&&C.ctrlKey&&P(C);break}case"ArrowUp":{P(C);break}case"Home":{C.preventDefault(),ue(0);break}case"End":{C.preventDefault(),X();break}case"Enter":{C.preventDefault();let H=ve();if(H){let V=new Event(Lu);H.dispatchEvent(V)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:b_},h),ea(n,C=>m.createElement(jm.Provider,{value:W},m.createElement(Lm.Provider,{value:F},C))))}),f_=m.forwardRef((n,r)=>{var o,s;let l=jt(),u=m.useRef(null),d=m.useContext(zm),p=gi(),h=$m(n),v=(s=(o=h.current)==null?void 0:o.forceMount)!=null?s:d?.forceMount;Hr(()=>{if(!v)return p.item(l,d?.id)},[v]);let y=Vm(l,u,[n.value,n.children,u],n.keywords),x=ju(),w=ur(L=>L.value&&L.value===y.current),b=ur(L=>v||p.filter()===!1?!0:L.search?L.filtered.items.get(l)>0:!0);m.useEffect(()=>{let L=u.current;if(!(!L||n.disabled))return L.addEventListener(Lu,_),()=>L.removeEventListener(Lu,_)},[b,n.onSelect,n.disabled]);function _(){var L,W;E(),(W=(L=h.current).onSelect)==null||W.call(L,y.current)}function E(){x.setState("value",y.current,!0)}if(!b)return null;let{disabled:S,value:A,onSelect:D,forceMount:T,keywords:N,...U}=n;return m.createElement(Be.div,{ref:zr(u,r),...U,id:l,"cmdk-item":"",role:"option","aria-disabled":!!S,"aria-selected":!!w,"data-disabled":!!S,"data-selected":!!w,onPointerMove:S||p.getDisablePointerSelection()?void 0:E,onClick:S?void 0:_},n.children)}),p_=m.forwardRef((n,r)=>{let{heading:o,children:s,forceMount:l,...u}=n,d=jt(),p=m.useRef(null),h=m.useRef(null),v=jt(),y=gi(),x=ur(b=>l||y.filter()===!1?!0:b.search?b.filtered.groups.has(d):!0);Hr(()=>y.group(d),[]),Vm(d,p,[n.value,n.heading,h]);let w=m.useMemo(()=>({id:d,forceMount:l}),[l]);return m.createElement(Be.div,{ref:zr(p,r),...u,"cmdk-group":"",role:"presentation",hidden:x?void 0:!0},o&&m.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:v},o),ea(n,b=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?v:void 0},m.createElement(zm.Provider,{value:w},b))))}),m_=m.forwardRef((n,r)=>{let{alwaysRender:o,...s}=n,l=m.useRef(null),u=ur(d=>!d.search);return!o&&!u?null:m.createElement(Be.div,{ref:zr(l,r),...s,"cmdk-separator":"",role:"separator"})}),h_=m.forwardRef((n,r)=>{let{onValueChange:o,...s}=n,l=n.value!=null,u=ju(),d=ur(v=>v.search),p=ur(v=>v.selectedItemId),h=gi();return m.useEffect(()=>{n.value!=null&&u.setState("search",n.value)},[n.value]),m.createElement(Be.input,{ref:r,...s,"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":p,id:h.inputId,type:"text",value:l?n.value:d,onChange:v=>{l||u.setState("search",v.target.value),o?.(v.target.value)}})}),v_=m.forwardRef((n,r)=>{let{children:o,label:s="Suggestions",...l}=n,u=m.useRef(null),d=m.useRef(null),p=ur(v=>v.selectedItemId),h=gi();return m.useEffect(()=>{if(d.current&&u.current){let v=d.current,y=u.current,x,w=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let b=v.offsetHeight;y.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return w.observe(v),()=>{cancelAnimationFrame(x),w.unobserve(v)}}},[]),m.createElement(Be.div,{ref:zr(u,r),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":p,"aria-label":s,id:h.listId},ea(n,v=>m.createElement("div",{ref:zr(d,h.listInnerRef),"cmdk-list-sizer":""},v)))}),g_=m.forwardRef((n,r)=>{let{open:o,onOpenChange:s,overlayClassName:l,contentClassName:u,container:d,...p}=n;return m.createElement(au,{open:o,onOpenChange:s},m.createElement(lu,{container:d},m.createElement(cu,{"cmdk-overlay":"",className:l}),m.createElement(du,{"aria-label":n.label,"cmdk-dialog":"",className:u},m.createElement(Fm,{ref:r,...p}))))}),y_=m.forwardRef((n,r)=>ur(o=>o.filtered.count===0)?m.createElement(Be.div,{ref:r,...n,"cmdk-empty":"",role:"presentation"}):null),x_=m.forwardRef((n,r)=>{let{progress:o,children:s,label:l="Loading...",...u}=n;return m.createElement(Be.div,{ref:r,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},ea(n,d=>m.createElement("div",{"aria-hidden":!0},d)))}),yi=Object.assign(Fm,{List:v_,Item:f_,Input:h_,Group:p_,Separator:m_,Dialog:g_,Empty:y_,Loading:x_});function w_(n,r){let o=n.nextElementSibling;for(;o;){if(o.matches(r))return o;o=o.nextElementSibling}}function S_(n,r){let o=n.previousElementSibling;for(;o;){if(o.matches(r))return o;o=o.previousElementSibling}}function $m(n){let r=m.useRef(n);return Hr(()=>{r.current=n}),r}var Hr=typeof window>"u"?m.useEffect:m.useLayoutEffect;function Co(n){let r=m.useRef();return r.current===void 0&&(r.current=n()),r}function ur(n){let r=ju(),o=()=>n(r.snapshot());return m.useSyncExternalStore(r.subscribe,o,o)}function Vm(n,r,o,s=[]){let l=m.useRef(),u=gi();return Hr(()=>{var d;let p=(()=>{var v;for(let y of o){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(v=y.current.textContent)==null?void 0:v.trim():l.current}})(),h=s.map(v=>v.trim());u.value(n,p,h),(d=r.current)==null||d.setAttribute(Eo,p),l.current=p}),l}var __=()=>{let[n,r]=m.useState(),o=Co(()=>new Map);return Hr(()=>{o.current.forEach(s=>s()),o.current=new Map},[n]),(s,l)=>{o.current.set(s,l),r({})}};function k_(n){let r=n.type;return typeof r=="function"?r(n.props):"render"in r?r.render(n.props):n}function ea({asChild:n,children:r},o){return n&&m.isValidElement(r)?m.cloneElement(k_(r),{ref:r.ref},o(r.props.children)):o(r)}var b_={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};m.createContext(null);function Ue(...n){return y0(rf(n))}const zu=Nm("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 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/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function dt({className:n,variant:r="default",size:o="default",asChild:s=!1,...l}){const u=s?L0:"button";return O.jsx(u,{"data-slot":"button","data-variant":r,"data-size":o,className:Ue(zu({variant:r,size:o,className:n})),...l})}function E_({...n}){return O.jsx(Aw,{"data-slot":"alert-dialog",...n})}function C_({...n}){return O.jsx(Dw,{"data-slot":"alert-dialog-portal",...n})}function R_({className:n,...r}){return O.jsx(Mw,{"data-slot":"alert-dialog-overlay",className:Ue("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",n),...r})}function I_({className:n,size:r="default",...o}){return O.jsxs(C_,{children:[O.jsx(R_,{}),O.jsx(Lw,{"data-slot":"alert-dialog-content","data-size":r,className:Ue("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...o})]})}function P_({className:n,...r}){return O.jsx("div",{"data-slot":"alert-dialog-footer",className:Ue("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",n),...r})}function N_({className:n,...r}){return O.jsx(zw,{"data-slot":"alert-dialog-title",className:Ue("text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",n),...r})}function O_({className:n,...r}){return O.jsx(Fw,{"data-slot":"alert-dialog-description",className:Ue("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",n),...r})}function T_({className:n,variant:r="outline",size:o="default",...s}){return O.jsx(dt,{variant:r,size:o,asChild:!0,children:O.jsx(jw,{"data-slot":"alert-dialog-cancel",className:Ue(n),...s})})}function A_({...n}){return O.jsx(au,{"data-slot":"dialog",...n})}function D_({...n}){return O.jsx(lu,{"data-slot":"dialog-portal",...n})}function M_({className:n,...r}){return O.jsx(cu,{"data-slot":"dialog-overlay",className:Ue("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",n),...r})}function L_({className:n,children:r,showCloseButton:o=!0,...s}){return O.jsxs(D_,{children:[O.jsx(M_,{}),O.jsxs(du,{"data-slot":"dialog-content",className:Ue("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...s,children:[r,o&&O.jsx(Ls,{"data-slot":"dialog-close",asChild:!0,children:O.jsxs(dt,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[O.jsx(O0,{}),O.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function j_({className:n,...r}){return O.jsx("div",{"data-slot":"dialog-header",className:Ue("flex flex-col gap-2",n),...r})}function z_({className:n,showCloseButton:r=!1,children:o,...s}){return O.jsxs("div",{"data-slot":"dialog-footer",className:Ue("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",n),...s,children:[o,r&&O.jsx(Ls,{asChild:!0,children:O.jsx(dt,{variant:"outline",children:"Close"})})]})}function F_({className:n,...r}){return O.jsx(Lp,{"data-slot":"dialog-title",className:Ue("text-base leading-none font-medium",n),...r})}function $_({className:n,...r}){return O.jsx(jp,{"data-slot":"dialog-description",className:Ue("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",n),...r})}function Um({className:n,type:r,...o}){return O.jsx("input",{type:r,"data-slot":"input",className:Ue("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",n),...o})}function V_({className:n,...r}){return O.jsx("textarea",{"data-slot":"textarea",className:Ue("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",n),...r})}function U_({className:n,...r}){return O.jsx("div",{"data-slot":"input-group",role:"group",className:Ue("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",n),...r})}const B_=Nm("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function W_({className:n,align:r="inline-start",...o}){return O.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":r,className:Ue(B_({align:r}),n),onClick:s=>{s.target.closest("button")||s.currentTarget.parentElement?.querySelector("input")?.focus()},...o})}function H_({className:n,...r}){return O.jsx(yi,{"data-slot":"command",className:Ue("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",n),...r})}function Z_({className:n,...r}){return O.jsx("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:O.jsxs(U_,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[O.jsx(yi.Input,{"data-slot":"command-input",className:Ue("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",n),...r}),O.jsx(W_,{children:O.jsx(P0,{className:"size-4 shrink-0 opacity-50"})})]})})}function q_({className:n,...r}){return O.jsx(yi.List,{"data-slot":"command-list",className:Ue("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",n),...r})}function K_({className:n,...r}){return O.jsx(yi.Empty,{"data-slot":"command-empty",className:Ue("py-6 text-center text-sm",n),...r})}function G_({className:n,children:r,...o}){return O.jsxs(yi.Item,{"data-slot":"command-item",className:Ue("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",n),...o,children:[r,O.jsx(Rf,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function Bm({...n}){return O.jsx(g1,{"data-slot":"popover",...n})}function Wm({...n}){return O.jsx(y1,{"data-slot":"popover-trigger",...n})}function Hm({className:n,align:r="center",sideOffset:o=4,...s}){return O.jsx(x1,{children:O.jsx(w1,{"data-slot":"popover-content",align:r,sideOffset:o,className:Ue("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n),...s})})}function xi({...n}){return O.jsx(I1,{"data-slot":"select",...n})}function wi({...n}){return O.jsx(T1,{"data-slot":"select-value",...n})}function Si({className:n,size:r="default",children:o,...s}){return O.jsxs(N1,{"data-slot":"select-trigger","data-size":r,className:Ue("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...s,children:[o,O.jsx(A1,{asChild:!0,children:O.jsx(Nl,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function _i({className:n,children:r,position:o="item-aligned",align:s="center",...l}){return O.jsx(j1,{children:O.jsxs(z1,{"data-slot":"select-content","data-align-trigger":o==="item-aligned",className:Ue("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none 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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o==="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",n),position:o,align:s,...l,children:[O.jsx(Q_,{}),O.jsx(W1,{"data-position":o,className:Ue("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",o==="popper"&&""),children:r}),O.jsx(Y_,{})]})})}function cr({className:n,children:r,...o}){return O.jsxs(q1,{"data-slot":"select-item",className:Ue("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]: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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...o,children:[O.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:O.jsx(Q1,{children:O.jsx(Rf,{className:"pointer-events-none"})})}),O.jsx(K1,{children:r})]})}function Q_({className:n,...r}){return O.jsx(Y1,{"data-slot":"select-scroll-up-button",className:Ue("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",n),...r,children:O.jsx(If,{})})}function Y_({className:n,...r}){return O.jsx(X1,{"data-slot":"select-scroll-down-button",className:Ue("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",n),...r,children:O.jsx(Nl,{})})}m.createContext(null),m.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});const $n=ie().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),Fu=Pn([ie().max(4e3),vt().finite(),Lt(),Jn()]),Vn=Iy(()=>Pn([ie().max(32e3),vt().finite(),Lt(),Jn(),Je(Vn).max(1e3),Mr(Vn)])),$u=tf("kind",[Se({kind:Ge("data-source"),dataSourceId:ie().uuid()}).strict(),Se({kind:Ge("definition"),definitionId:ie().uuid(),versionId:ie().uuid()}).strict(),Se({kind:Ge("artifact"),artifactId:ie().uuid(),versionId:ie().uuid()}).strict()]);Mr(Vn);const X_=Se({id:$n,sourceField:ie().min(1).max(256),label:ie().min(1).max(160),logicalType:Nn(["string","boolean","int64","float64","decimal","date","timestamp"]),nullable:Lt(),role:Nn(["dimension","measure","time","identifier"]),semanticRef:ie().max(512).optional(),unit:ie().max(80).optional()}).strict(),J_=Se({name:$n,controlId:$n,type:Nn(["string","number","boolean","date"]),required:Lt(),defaultValue:Fu.optional(),allowedValues:Je(Fu).max(200).optional()}).strict(),ek=Se({id:$n,source:$u,providerId:ie().min(1).max(160),operation:$n,contractVersion:vt().int().positive(),payload:Vn,parameters:Je(J_).max(24),output:Se({datasetId:$n,fields:Je(X_).min(1).max(80),grain:Je($n).max(20)}).strict()}).strict();function tk(n,r){const o=n.output.fields.map(l=>l.id),s=n.parameters.map(l=>l.name);(new Set(o).size!==o.length||new Set(s).size!==s.length)&&r.addIssue({code:"custom",message:"Duplicate field or parameter identifier"}),(new Set(n.output.grain).size!==n.output.grain.length||n.output.grain.some(l=>!o.includes(l)))&&r.addIssue({code:"custom",message:"Grain references an undeclared field"}),new TextEncoder().encode(JSON.stringify(n.payload)).byteLength>64e3&&r.addIssue({code:"custom",message:"Query payload exceeds limit"})}const Zm=ek.superRefine(tk),nk=Mr($n,Fu).default({});Se({binding:Zm,controls:nk}).strict(),Se({source:$u,providerId:ie().min(1).max(160),request:Vn.default({})}).strict().refine(n=>new TextEncoder().encode(JSON.stringify(n)).byteLength<=16e3,"Discovery request exceeds limit"),Se({items:Je(Se({id:ie().min(1).max(512),name:ie().min(1).max(512),kind:Nn(["collection","dataset"]),description:ie().max(4e3).optional(),inspectRequest:Vn.optional(),metadata:Vn}).strict()).max(50),nextRequest:Vn.optional(),queryContract:Se({operation:$n,contractVersion:vt().int().positive(),payloadSchema:Vn,instructions:ie().max(8e3)}).strict()}).strict().refine(n=>new TextEncoder().encode(JSON.stringify(n)).byteLength<=128e3,"Discovery response exceeds limit");function rk(n,r){if(n==null)return{};var o={},s=Object.keys(n),l,u;for(u=0;u<s.length;u++)l=s[u],!(r.indexOf(l)>=0)&&(o[l]=n[l]);return o}const qm="xpert.artifact-document",Km=1,ta=ie().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),ok=Pn([ie().max(4e3),vt().finite(),Lt(),Jn()]),Gm=Mr(ta,ok).refine(n=>Object.keys(n).length<=24,"Too many controls"),ik=Se({type:Ge("query"),requestId:ie().min(1).max(80),bindingId:ta,controls:Gm}).strict(),sk=Se({bindingIds:Je(ta).max(64).refine(n=>new Set(n).size===n.length,"Duplicate binding IDs"),defaults:Gm,theme:Nn(["light","dark"]),locale:ie().min(1).max(80)}).strict(),Qm=ie().min(1).max(3e5).superRefine((n,r)=>{(new TextEncoder().encode(n).byteLength>3e5||!/<html[\s>]/i.test(n)||!/<body[\s>]/i.test(n))&&r.addIssue({code:"custom",message:"Supply a complete UTF-8 HTML document, at most 300 KB"})}),ak=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),yn=(n,r)=>n>>>r|n<<32-r;function lk(n){const r=new Uint8Array(Math.ceil((n.length+9)/64)*64);r.set(n),r[n.length]=128;const o=new DataView(r.buffer);o.setUint32(r.length-8,Math.floor(n.length/536870912)),o.setUint32(r.length-4,n.length*8>>>0);const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);for(let u=0;u<r.length;u+=64){for(let _=0;_<16;_++)l[_]=o.getUint32(u+_*4);for(let _=16;_<64;_++){const E=l[_-15],S=l[_-2],A=yn(E,7)^yn(E,18)^E>>>3,D=yn(S,17)^yn(S,19)^S>>>10;l[_]=l[_-16]+A+l[_-7]+D>>>0}let[d,p,h,v,y,x,w,b]=s;for(let _=0;_<64;_++){const E=yn(y,6)^yn(y,11)^yn(y,25),S=y&x^~y&w,A=b+E+S+ak[_]+l[_]>>>0,D=yn(d,2)^yn(d,13)^yn(d,22),T=d&p^d&h^p&h,N=D+T>>>0;b=w,w=x,x=y,y=v+A>>>0,v=h,h=p,p=d,d=A+N>>>0}s[0]=s[0]+d>>>0,s[1]=s[1]+p>>>0,s[2]=s[2]+h>>>0,s[3]=s[3]+v>>>0,s[4]=s[4]+y>>>0,s[5]=s[5]+x>>>0,s[6]=s[6]+w>>>0,s[7]=s[7]+b>>>0}return Array.from(s,u=>u.toString(16).padStart(8,"0")).join("")}const Ym=Se({id:ta,version:ie().regex(/^\d+\.\d+\.\d+(?:-[A-Za-z0-9.-]+)?$/),format:Ge("classic-script"),global:ie().regex(/^[A-Za-z_$][A-Za-z0-9_$]{0,79}$/).refine(n=>!["window","self","globalThis","document","parent","top","location","xpertLiveArtifact","__proto__","constructor","prototype"].includes(n)),sha256:ie().regex(/^[a-f0-9]{64}$/)}).strict(),uk=Ym.transform(n=>({id:n.id,version:n.version,format:"classic-script",global:n.global,sha256:n.sha256})),Vu=Je(uk).max(8).superRefine((n,r)=>{(new Set(n.map(o=>o.id)).size!==n.length||new Set(n.map(o=>o.global)).size!==n.length)&&r.addIssue({code:"custom",message:"Duplicate dependency ID or global"})}),Xm=Je(Ym.extend({source:ie().min(1).max(4e6)}).strict().transform(n=>({id:n.id,version:n.version,format:"classic-script",global:n.global,sha256:n.sha256,source:n.source}))).max(8);function Jm(n,r){const o=Xm.parse(n),s=Vu.parse(o.map(u=>{var{source:d}=u,p=rk(u,["source"]);return p}));let l=0;for(const u of o){const d=new TextEncoder().encode(u.source);if(l+=d.length,d.length>4e6||l>8e6)throw new Error("DOCUMENT_DEPENDENCY_TOO_LARGE");if(lk(d)!==u.sha256)throw new Error("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED")}if(r&&JSON.stringify(Vu.parse(r))!==JSON.stringify(s))throw new Error("DOCUMENT_DEPENDENCY_LOCK_MISMATCH");return o.map(u=>({id:u.id,version:u.version,global:u.global,sha256:u.sha256,source:u.source,format:"classic-script"}))}function ck(n){const r=o=>JSON.stringify(o).replace(/</g,"\\u003c").replace(/>/g,"\\u003e");return Jm(n).map(o=>`<script>(()=>{const s=document.createElement('script');s.textContent=${r(o.source)};document.head.appendChild(s);s.remove();if(typeof window[${r(o.global)}]==='undefined')throw new Error('DOCUMENT_DEPENDENCY_GLOBAL_MISSING');})();<\/script>`).join("")}const dk=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src 'none'","object-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function fk(n,r,o=[]){if(Qm.parse(n),!/^[a-f0-9]{32}$/.test(r))throw new Error("Invalid Artifact document session ID");return`<!doctype html><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="${dk}"><script>${pk.replace("__XPERT_DOCUMENT_SESSION__",r)}<\/script>${ck(o)}${n}`}const pk=String.raw`
|
|
104
104
|
;(() => {
|
|
105
105
|
'use strict'
|
|
106
106
|
const SESSION_ID = '__XPERT_DOCUMENT_SESSION__'
|
|
@@ -248,6 +248,6 @@ Error generating stack: `+f.message+`
|
|
|
248
248
|
})
|
|
249
249
|
parent.postMessage({ channel: CHANNEL, version: VERSION, type: 'ready', sessionId: SESSION_ID }, '*')
|
|
250
250
|
})()
|
|
251
|
-
`,ck=_e({channel:Qe(Hm),version:Qe(Zm),type:Qe("ready"),sessionId:ae().regex(/^[a-f0-9]{32}$/)}).strict(),dk=_e({type:Qe("diagnostic"),code:Qe("DOCUMENT_BINDING_DENIED")}).strict();function fk(n,r){if(!n.ownerDocument.querySelector("meta[data-xpert-document-policy]"))throw new Error("Install the Artifact document frame policy before mounting a document");const o=nk.parse(r.context),s=Array.from(crypto.getRandomValues(new Uint8Array(16)),T=>T.toString(16).padStart(2,"0")).join(""),l=lk(r.html,s,r.dependencies),u=new MessageChannel,d=new Set(o.bindingIds),p=new Set,h=new Set,v=new Map,y=n.ownerDocument.defaultView;let x=!1,w=!1,E=0,_=Date.now();n.setAttribute("sandbox","allow-scripts"),n.referrerPolicy="no-referrer";const b=(T,N)=>{try{T?.(N)}catch{}},S=T=>{w||u.port1.postMessage(T)},A=(T,N)=>{S({type:"result",requestId:T,ok:!1,code:N}),b(r.onError,N)};u.port1.onmessage=async T=>{if(w)return;const N=dk.safeParse(T.data);if(N.success){b(r.onError,N.data.code);return}const U=tk.safeParse(T.data);if(!U.success){b(r.onError,"DOCUMENT_INVALID_REQUEST");return}const L={type:U.data.type,requestId:U.data.requestId,bindingId:U.data.bindingId,controls:U.data.controls};if(!d.has(L.bindingId)){A(L.requestId,"DOCUMENT_BINDING_DENIED");return}if(Date.now()-_>=6e4&&(E=0,_=Date.now(),p.clear()),h.has(L.requestId)||p.has(L.requestId)){A(L.requestId,"DOCUMENT_REQUEST_REPLAY");return}if(h.size>=8||++E>60){A(L.requestId,"DOCUMENT_QUERY_LIMIT");return}p.add(L.requestId),h.add(L.requestId),v.set(L.bindingId,L.requestId),b(r.onBusy,!0);try{const W=await r.query(L);w||(S({type:"result",requestId:L.requestId,ok:!0,dataset:W}),v.get(L.bindingId)===L.requestId&&b(r.onResult,W))}catch{w||(S({type:"result",requestId:L.requestId,ok:!1,code:"DOCUMENT_QUERY_FAILED"}),v.get(L.bindingId)===L.requestId&&b(r.onError,"DOCUMENT_QUERY_FAILED"))}finally{h.delete(L.requestId),w||b(r.onBusy,h.size>0)}};const D=T=>{var N;if(w||x||T.source!==n.contentWindow)return;const U=ck.safeParse(T.data);!U.success||U.data.sessionId!==s||(x=!0,(N=n.contentWindow)==null||N.postMessage({channel:Hm,version:Zm,type:"init",sessionId:s,context:o},"*",[u.port2]))};return y.addEventListener("message",D),u.port1.start(),n.srcdoc=l,{refresh(){S({type:"refresh"})},dispose(){w||(w=!0,y.removeEventListener("message",D),u.port1.close(),u.port2.close(),b(r.onBusy,!1))}}}function pk(n){if(n.querySelector("meta[data-xpert-document-policy]"))return;const r=n.createElement("meta");r.httpEquiv="Content-Security-Policy",r.content="frame-src 'none'",r.dataset.xpertDocumentPolicy="1",n.head.prepend(r)}const xn=ae().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),na=_e({schema:Qe("xpert.live-dashboard/v1"),id:ae().uuid(),title:ae().min(1).max(160),bindings:Je(Wm).min(1).max(8),presentation:_e({type:Qe("html"),html:Km,dependencies:$u.optional()}).strict().optional(),controls:Je(_e({controlId:xn,type:Nn(["string","number","boolean","date"]),defaultValue:Pn([ae(),vt(),Lt(),Jn()]).optional(),allowedValues:Je(Pn([ae(),vt(),Lt(),Jn()])).max(200).optional(),label:ae().min(1).max(160)}).strict()).max(24),charts:Je(_e({id:xn,title:ae().min(1).max(160),type:Nn(["bar","line","area","pie","scatter"]),datasetId:xn,x:xn,y:xn,color:xn.optional()}).strict()).max(20),tables:Je(_e({id:xn,title:ae().min(1).max(160),datasetId:xn,fields:Je(xn).min(1).max(30)}).strict()).max(20)}).strict().superRefine((n,r)=>{const o=(s,l)=>{new Set(s).size!==s.length&&r.addIssue({code:"custom",message:`Duplicate ${l}`})};o(n.bindings.map(s=>s.id),"binding"),o(n.bindings.map(s=>s.output.datasetId),"dataset"),o(n.controls.map(s=>s.controlId),"control"),o([...n.charts,...n.tables].map(s=>s.id),"view"),!n.presentation&&!n.charts.length&&!n.tables.length&&r.addIssue({code:"custom",message:"At least one chart or table is required"}),n.presentation&&(n.charts.length||n.tables.length)&&r.addIssue({code:"custom",message:"HTML presentation owns its charts; use empty charts/tables arrays"});for(const s of n.controls){const l=n.bindings.flatMap(d=>d.parameters.filter(p=>p.controlId===s.controlId));l.length||r.addIssue({code:"custom",message:"Control is not bound to a query parameter"});const u=[...s.defaultValue!==void 0?[s.defaultValue]:[],...s.allowedValues??[]];u.some(d=>d!==null&&(s.type==="number"?typeof d!="number"||!Number.isFinite(d):s.type==="boolean"?typeof d!="boolean":typeof d!="string"))&&r.addIssue({code:"custom",message:"Control value has an incompatible type"}),s.allowedValues&&s.defaultValue!==void 0&&!s.allowedValues.includes(s.defaultValue)&&r.addIssue({code:"custom",message:"Default control value is not allowed"});for(const d of l)d.defaultValue!==void 0&&s.defaultValue!==void 0&&d.defaultValue!==s.defaultValue&&r.addIssue({code:"custom",message:"Control and parameter defaults disagree"}),u.some(p=>p===null?d.required:d.allowedValues&&!d.allowedValues.includes(p))&&r.addIssue({code:"custom",message:"Control values conflict with parameter restrictions"})}for(const s of n.bindings)for(const l of s.parameters){const u=n.controls.find(d=>d.controlId===l.controlId);(!u||u.type!==l.type)&&r.addIssue({code:"custom",message:"Control mapping is missing or has an incompatible type"})}for(const s of[...n.charts,...n.tables]){const l=n.bindings.find(d=>d.output.datasetId===s.datasetId)?.output,u="fields"in s?s.fields:[s.x,s.y,...s.color?[s.color]:[]];(!l||u.some(d=>!l.fields.some(p=>p.id===d)))&&r.addIssue({code:"custom",message:"View references an undeclared Dataset field"}),"y"in s&&!l?.fields.some(d=>d.id===s.y&&["float64","int64","decimal"].includes(d.logicalType))&&r.addIssue({code:"custom",message:"Chart measure must be numeric"}),"y"in s&&s.type!=="scatter"&&l?.grain.some(d=>d!==s.x&&d!==s.color)&&r.addIssue({code:"custom",message:"Chart must encode every Dataset grain dimension in x/color; use another aggregated binding for totals"})}});na.innerType().pick({title:!0,bindings:!0,controls:!0,charts:!0,tables:!0,presentation:!0}).partial().strict();const mk=Mr(Pn([ae().max(4e3),vt().finite(),Lt(),Jn()]));_e({manifest:na,expectedVersionId:ae().uuid().nullable(),expectedRevision:vt().int().nonnegative().default(0)}).strict(),_e({artifactId:ae().uuid(),versionId:ae().uuid().optional(),draftRevision:vt().int().positive().optional(),controls:mk.default({})}).strict().extend({bindingId:xn}).strict();const Xm="live-dashboard__live-dashboard",Jm=Cy("target",[_e({target:Qe("workbench.view"),viewKey:Qe(Xm)}).strict(),_e({target:Qe("assistant.project"),projectId:ae().uuid(),viewKey:Qe(Xm)}).strict()]),hk=_e({selectionId:ae().uuid().optional(),parameters:_e({artifactId:ae().uuid().optional(),versionId:ae().uuid().optional()}).strict().optional()}).transform((n,r)=>{const o=n.selectionId??n.parameters?.artifactId,s=n.parameters?.versionId;return(n.selectionId&&n.parameters?.artifactId&&n.selectionId!==n.parameters.artifactId||s&&!o)&&r.addIssue({code:J.custom,message:"DASHBOARD_NAVIGATION_INVALID: provide one Artifact identity and an optional version"}),{artifactId:o,versionId:s}}),eh=n=>JSON.stringify([n.artifactId??null,n.versionId??null]),vk=["dashboard_create","dashboard_create_html","dashboard_update"],gk=_e({dashboard:_e({artifactId:ae().uuid(),draftRevision:vt().int().positive(),status:Qe("draft")})});function yk(n){let r=n;if(typeof r=="string")try{r=JSON.parse(r)}catch{return null}const o=gk.safeParse(r);return o.success?o.data.dashboard:null}const xk=_e({channel:Qe("xpertai.remote_component"),protocolVersion:Qe(1),type:ae(),instanceId:ae().optional(),requestId:ae().optional(),locale:ae().optional(),initialQuery:co(),data:co(),result:co(),message:ae().optional(),event:_e({type:ae(),toolName:ae().optional(),data:_e({output:co()}).optional()}).optional(),theme:_e({mode:ae().optional(),density:Nn(["default","compact"]).optional(),tokens:Mr(Pn([ae(),vt()])).optional()}).optional()});let Zr,wk=0;const Ro=new Map;function th(n,r={}){window.parent.postMessage({channel:"xpertai.remote_component",protocolVersion:1,instanceId:Zr,type:n,...r},"*")}function Sk(n,r){let o;const s=l=>{if(l.source!==window.parent)return;const u=xk.safeParse(l.data);if(!u.success)return;const d=u.data;if(d.type==="init"){if(Zr&&d.instanceId!==Zr)return;Zr=d.instanceId,document.documentElement.classList.toggle("dark",d.theme?.mode==="dark");for(const[h,v]of Object.entries(d.theme?.tokens??{})){const y=h.startsWith("--")?h:`--xui-${h.replace(/[._]/g,"-").replace(/[A-Z]/g,x=>`-${x.toLowerCase()}`)}`;document.documentElement.style.setProperty(y,String(v))}y0({density:d.theme?.density}),n(d.locale??"en-US",d.initialQuery);return}if(!Zr||d.instanceId!==Zr)return;if(d.type==="hostEvent"&&d.event?.type==="assistant.tool.completed"&&vk.includes(d.event.toolName??"")){const h=yk(d.event.data?.output);h&&`${h.artifactId}:${h.draftRevision}`!==o&&(o=`${h.artifactId}:${h.draftRevision}`,r(h.artifactId));return}if(!d.requestId)return;const p=Ro.get(d.requestId);p&&(Ro.delete(d.requestId),clearTimeout(p.timer),d.type==="error"?p.reject(new Error(d.message??"Request failed")):p.resolve(d.data??d.result))};return window.addEventListener("message",s),th("ready"),()=>{window.removeEventListener("message",s);for(const l of Ro.values())clearTimeout(l.timer),l.reject(new Error("View closed"));Ro.clear()}}function Un(n,r){if(!Zr)return Promise.reject(new Error("View is not connected"));const o=`dashboard-${++wk}`;return new Promise((s,l)=>{const u=window.setTimeout(()=>{Ro.delete(o),l(new Error("Request timed out"))},27e4);Ro.set(o,{resolve:s,reject:l,timer:u}),th(n,{requestId:o,...r})})}function _k(n){return Un("invokeClientCommand",{commandKey:"assistant.context.set",payload:{key:"live_dashboard",...n?{context:{schemaVersion:1,...n}}:{clear:!0}}})}function kk(n,r,o){return Un("invokeClientCommand",{commandKey:"workbench.navigation.open",payload:{...Jm.parse(n),selectionId:r,parameters:o?{versionId:o}:{}}})}const Ek={publishShareBlocked:"This draft contains private or unavailable data sources and cannot replace the version used by the active team share. Remove those bindings or revoke the share before publishing. The published version and link are unchanged.",viewerControls:"Dashboard controls",hideViewerControls:"Hide dashboard controls",share:"Team sharing",teamReadOnly:"Team · read only",shareHint:"Share published versions with signed-in members of this organization. Drafts remain private.",sharePermissions:"Each viewer needs their own data source permissions. Sharing does not grant file or source access.",shareVersion:"Version policy",shareLatest:"Follow latest published version",shareFixed:"Pin a published version",shareLink:"Share link",copyLink:"Copy link",copied:"Copied",openShared:"Open page",enableShare:"Enable sharing",updateShare:"Update sharing",revokeShare:"Revoke link",publishBeforeShare:"Publish a version before sharing.",privateDependencies:"This provider uses private script or file dependencies. Team access must be supported and granted separately before sharing.",sourceUnavailable:"A declared data source or provider is unavailable.",draft:"Working draft",publish:"Publish draft",confirm:"Confirm publication",confirmPublish:"Publish this saved revision as a new immutable version?",title:"Live dashboards",empty:"Create a dashboard with your Assistant, or import a definition.",import:"Import definition",save:"Save",cancel:"Cancel",refresh:"Refresh",apply:"Apply filters",loading:"Loading…",saved:"Saved",refreshed:"Updated",definition:"Dashboard definition",sources:"Available sources",version:"Version",partial:"Partial result — narrow the filters to retrieve all rows.",select:"Choose a dashboard",error:"The operation failed. Check your access and query definition.",all:"All",edit:"Edit working draft",history:"Version history",search:"Search dashboards…",noResults:"No dashboards found."},bk={publishShareBlocked:"草稿包含私有或不可用的数据源,无法更新当前团队分享。请移除这些数据绑定,或先撤销分享再发布。已发布版本和共享链接保持不变。",viewerControls:"看板操作",hideViewerControls:"收起看板操作",share:"团队分享",teamReadOnly:"团队 · 只读",shareHint:"向本组织已登录成员分享正式版本,草稿保持私有。",sharePermissions:"每位访问者仍需自己的数据源权限。分享不会授予文件或数据源访问权。",shareVersion:"版本策略",shareLatest:"跟随最新正式版本",shareFixed:"固定正式版本",shareLink:"分享链接",copyLink:"复制链接",copied:"已复制",openShared:"打开独立页面",enableShare:"开启分享",updateShare:"更新分享",revokeShare:"撤销链接",publishBeforeShare:"请先发布一个正式版本。",privateDependencies:"此数据源使用私有脚本或文件依赖,需要单独支持并授予团队访问权限后才能分享。",sourceUnavailable:"声明的数据源或适配器不可用。",draft:"工作草稿",publish:"发布草稿",confirm:"确认发布",confirmPublish:"将这份已保存草稿发布为新的正式版本?",title:"实时看板",empty:"让 Assistant 创建看板,或导入看板定义。",import:"导入定义",save:"保存",cancel:"取消",refresh:"刷新",apply:"应用筛选",loading:"加载中…",saved:"已保存",refreshed:"已更新",definition:"看板定义",sources:"可用数据源",version:"版本",partial:"结果不完整,请缩小筛选范围以获取全部数据。",select:"选择看板",error:"操作失败,请检查访问权限和查询定义。",all:"全部",edit:"编辑工作草稿",history:"版本历史",search:"搜索看板…",noResults:"未找到匹配的看板。"},Ck={publishShareBlocked:"草稿包含私有或無法使用的資料來源,無法更新目前的團隊分享。請移除這些資料繫結,或先撤銷分享再發佈。已發佈版本與分享連結保持不變。",viewerControls:"看板操作",hideViewerControls:"收起看板操作",share:"團隊分享",teamReadOnly:"團隊 · 唯讀",shareHint:"向本組織已登入成員分享正式版本,草稿保持私有。",sharePermissions:"每位訪問者仍需自己的資料來源權限。分享不會授予檔案或資料來源存取權。",shareVersion:"版本策略",shareLatest:"跟隨最新正式版本",shareFixed:"固定正式版本",shareLink:"分享連結",copyLink:"複製連結",copied:"已複製",openShared:"開啟獨立頁面",enableShare:"開啟分享",updateShare:"更新分享",revokeShare:"撤銷連結",publishBeforeShare:"請先發佈一個正式版本。",privateDependencies:"此資料來源使用私有腳本或檔案依賴,需要單獨支援並授予團隊存取權後才能分享。",sourceUnavailable:"聲明的資料來源或適配器不可用。",draft:"工作草稿",publish:"發佈草稿",confirm:"確認發佈",confirmPublish:"將這份已儲存草稿發佈為新的正式版本?",title:"即時看板",empty:"讓 Assistant 建立看板,或匯入看板定義。",import:"匯入定義",save:"儲存",cancel:"取消",refresh:"重新整理",apply:"套用篩選",loading:"載入中…",saved:"已儲存",refreshed:"已更新",definition:"看板定義",sources:"可用資料來源",version:"版本",partial:"結果不完整,請縮小篩選範圍以取得全部資料。",select:"選擇看板",error:"操作失敗,請檢查存取權限和查詢定義。",all:"全部",edit:"編輯工作草稿",history:"版本歷史",search:"搜尋看板…",noResults:"找不到符合的看板。"};function nh(n){const o={en_US:"en-US",zh_Hans:"zh-Hans","zh-CN":"zh-Hans",zh:"zh-Hans",zh_Hant:"zh-Hant","zh-TW":"zh-Hant"}[n]??n;return document.documentElement.lang=o,o==="zh-Hans"?bk:o==="zh-Hant"?Ck:Ek}const Rk=_e({success:Qe(!0),data:_e({schema:Qe("xpert.analytics.dataset/v1"),datasetId:ae(),fields:Je(_e({id:ae()}).passthrough()),rows:Je(Mr(Pn([ae(),vt(),Lt(),Jn()]))),completeness:_e({truncated:Lt()}).passthrough(),freshness:_e({sourceFetchedAt:ae()}).passthrough(),provenance:_e({executionId:ae()}).passthrough()}).passthrough()}),Ik=m.forwardRef(function(r,o){const s=m.useRef(null),l=m.useRef(null),u=m.useRef(r);return u.current=r,m.useImperativeHandle(o,()=>({refresh(){l.current?.refresh()}}),[]),m.useEffect(()=>{const d=s.current;if(!d||!r.manifest.presentation)return;const p=r.manifest;let h;try{h=Ym(r.dependencies,p.presentation?.dependencies??[])}catch{u.current.onError("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED"),u.current.onBusy(!1);return}const v=fk(d,{html:r.manifest.presentation.html,dependencies:h,context:{bindingIds:p.bindings.map(y=>y.id),defaults:Object.fromEntries(p.controls.filter(y=>y.defaultValue!==void 0).map(y=>[y.controlId,y.defaultValue??null])),locale:document.documentElement.lang||"en-US",theme:document.documentElement.classList.contains("dark")?"dark":"light"},query:async y=>Rk.parse(await Un("executeAction",{actionKey:"query-binding",input:{artifactId:r.artifactId,versionId:r.versionId,draftRevision:r.draftRevision,bindingId:y.bindingId,controls:y.controls}})).data,onBusy:y=>u.current.onBusy(y),onError:y=>u.current.onError(y),onResult:y=>u.current.onResult({partial:y.completeness.truncated,fetchedAt:y.freshness.sourceFetchedAt})});return l.current=v,()=>{v.dispose(),l.current=null}},[r.artifactId,r.versionId,r.draftRevision]),m.createElement("iframe",{ref:s,title:r.manifest.title,sandbox:"allow-scripts",className:"h-full w-full border-0"})});function Pk({items:n,value:r,disabled:o,label:s,searchLabel:l,emptyLabel:u,onChange:d}){const[p,h]=m.useState(!1),v=m.useId(),y=n.find(w=>w.artifactId===r),x=y?.title??y?.artifactId??s;return m.createElement(Vm,{open:p,onOpenChange:h},m.createElement(Um,{role:"combobox","aria-label":s,"aria-expanded":p,"aria-controls":p?v:void 0,"aria-haspopup":"listbox",disabled:o,className:Ue(zu({variant:"outline"}),"dashboard-picker justify-between font-normal"),title:x},m.createElement("span",{className:"truncate"},x),m.createElement(Nl,{className:"shrink-0 opacity-50"})),m.createElement(Bm,{align:"start",className:"dashboard-picker-menu p-0"},m.createElement(W_,null,m.createElement(H_,{"aria-label":l,placeholder:l}),m.createElement(Z_,{id:v,"aria-label":s},m.createElement(q_,null,u),n.map(w=>m.createElement(K_,{key:w.artifactId,value:w.artifactId,keywords:[w.title??w.artifactId],"data-checked":w.artifactId===r,onSelect:()=>{h(!1),w.artifactId!==r&&d(w.artifactId)}},m.createElement("span",{className:"min-w-0 truncate",title:w.title??w.artifactId},w.title??w.artifactId)))))))}const Nk=_e({published:_e({versionId:ae(),versionNumber:vt(),title:ae().nullish()}).nullable(),issues:Je(_e({code:ae(),bindingId:ae().optional()})),link:_e({status:ae(),versionMode:Nn(["latest","version"]),versionId:ae().nullish(),url:ae().url().optional()}).nullable()}),Ok=_e({success:Qe(!0),data:Nk});function Tk({artifactId:n,versionId:r,versions:o,t:s,onClose:l}){const[u,d]=m.useState(null),[p,h]=m.useState("latest"),[v,y]=m.useState(r??o[0]?.versionId??""),[x,w]=m.useState(!1),[E,_]=m.useState(""),[b,S]=m.useState(!1),A=m.useRef(null),D=m.useRef(0),T=m.useRef(!1);async function N(F){const re=++D.current;w(!0),_(""),S(!1);try{const me=Ok.parse(await Un("executeAction",{actionKey:F,input:{artifactId:n,...F==="share"?{versionMode:p}:{},...F!=="revoke-share"&&p==="version"&&v?{versionId:v}:{}}})).data;re===D.current&&(d(me),T.current||(T.current=!0,me.link?.status==="active"&&(h(me.link.versionMode),me.link.versionId&&y(me.link.versionId))))}catch{re===D.current&&_(s.error)}finally{re===D.current&&w(!1)}}m.useEffect(()=>(N("share-status"),()=>{++D.current}),[n,p,v]);const U=u?.link?.status==="active"?u.link:null,L=U&&U.versionMode===p&&(p==="latest"||U.versionId===v),W=F=>F==="DASHBOARD_PUBLISH_BEFORE_SHARING"?s.publishBeforeShare:F==="WORKSPACE_SCRIPT_PRIVATE_DEPENDENCIES"||F==="DASHBOARD_PRIVATE_DEPENDENCY"?s.privateDependencies:s.sourceUnavailable;return m.createElement(T_,{open:!0,onOpenChange:F=>{!F&&!x&&l()}},m.createElement(M_,null,m.createElement(L_,null,m.createElement(z_,null,s.share),m.createElement(F_,null,s.shareHint)),m.createElement("div",{className:"grid gap-4 py-2"},m.createElement("label",{className:"grid gap-2 text-sm"},s.shareVersion,m.createElement(xi,{value:p,disabled:x,onValueChange:F=>h(F==="version"?"version":"latest")},m.createElement(Si,{"aria-label":s.shareVersion},m.createElement(wi,null)),m.createElement(_i,null,m.createElement(cr,{value:"latest"},s.shareLatest),m.createElement(cr,{value:"version"},s.shareFixed)))),p==="version"&&m.createElement(xi,{value:v,disabled:x,onValueChange:y},m.createElement(Si,{"aria-label":s.version},m.createElement(wi,{placeholder:s.version})),m.createElement(_i,null,o.filter(F=>F.versionId).map(F=>m.createElement(cr,{key:F.versionId,value:F.versionId},s.version," ",F.versionNumber)))),u?.published&&m.createElement("p",{className:"text-sm text-muted-foreground"},u.published.title," · ",s.version," ",u.published.versionNumber),!!u?.issues.length&&m.createElement("ul",{className:"grid gap-2 text-sm text-destructive",role:"alert"},u.issues.map((F,re)=>m.createElement("li",{key:re},W(F.code),F.bindingId?` (${F.bindingId})`:""))),m.createElement("p",{className:"text-xs text-muted-foreground"},s.sharePermissions),U?.url&&m.createElement("div",{className:"grid gap-2"},m.createElement("label",{htmlFor:"dashboard-share-url",className:"text-sm"},s.shareLink),m.createElement($m,{id:"dashboard-share-url",ref:A,readOnly:!0,value:U.url,onFocus:F=>F.target.select()}),m.createElement("div",{className:"flex gap-2"},m.createElement(dt,{variant:"outline",onClick:()=>{A.current?.focus(),A.current?.select(),S(document.execCommand("copy"))}},b?s.copied:s.copyLink),m.createElement(dt,{variant:"outline",onClick:async()=>{if(U.url){_("");try{_e({success:Qe(!0)}).parse(await Un("invokeClientCommand",{commandKey:"artifact.presentation.open",payload:{url:U.url}}))}catch{_(s.error)}}}},s.openShared))),E&&m.createElement("p",{role:"alert",className:"text-sm text-destructive"},E)),m.createElement(j_,null,U&&m.createElement(dt,{variant:"outline",disabled:x,onClick:()=>{N("revoke-share")}},s.revokeShare),m.createElement(dt,{variant:"outline",disabled:x,onClick:l},s.cancel),m.createElement(dt,{disabled:x||!u||!!u.issues.length||!!L,onClick:()=>{N("share")}},U?s.updateShare:s.enableShare))))}function Ak({children:n,busy:r,t:o}){const[s,l]=m.useState(!1),u=m.useRef(!1),d=m.useRef(null),p=m.useRef(!1),h=m.useRef(),v=()=>{clearTimeout(h.current)},y=E=>{v(),E||(u.current=!1),l(E)},x=E=>{E.pointerType==="mouse"&&(v(),l(!0))},w=E=>{E.pointerType!=="mouse"||u.current||(v(),h.current=setTimeout(()=>{u.current||l(!1)},180))};return m.useEffect(()=>()=>clearTimeout(h.current),[]),m.useEffect(()=>{if(!s)return;let E;const _=()=>{E=setTimeout(()=>{document.activeElement instanceof HTMLIFrameElement&&y(!1)},0)};return window.addEventListener("blur",_),()=>{window.removeEventListener("blur",_),clearTimeout(E)}},[s]),m.createElement(Vm,{open:s,onOpenChange:y},m.createElement("div",{className:"viewer-controls-trigger"},m.createElement(Um,{asChild:!0},m.createElement("button",{ref:d,type:"button",className:Ue(zu({variant:"outline",size:"icon"}),"viewer-controls-button"),"aria-label":o.viewerControls,title:o.viewerControls,onPointerEnter:x,onPointerLeave:w,onClick:E=>{E.preventDefault(),v(),u.current?y(!1):(u.current=!0,l(!0))}},r?m.createElement(Ol,{className:"motion-safe:animate-spin","aria-hidden":"true"}):m.createElement(b0,{"aria-hidden":"true"}),r&&m.createElement("span",{role:"status",className:"sr-only"},o.loading)))),m.createElement(Bm,{align:"end",side:"bottom",sideOffset:8,collisionPadding:12,"aria-label":o.viewerControls,className:"viewer-controls-panel w-[min(44rem,calc(100vw-24px))] gap-0 p-0",onPointerEnter:x,onPointerLeave:w,onPointerDownCapture:()=>{u.current=!0},onFocusCapture:()=>{u.current=!0},onOpenAutoFocus:E=>{u.current||E.preventDefault()},onEscapeKeyDown:()=>{p.current=!0},onCloseAutoFocus:E=>{E.preventDefault(),p.current&&d.current?.focus({preventScroll:!0}),p.current=!1}},n,m.createElement(dt,{variant:"ghost",size:"icon",className:"viewer-controls-close","aria-label":o.hideViewerControls,title:o.hideViewerControls,onClick:()=>{p.current=!0,y(!1)}},m.createElement(Cf,{"aria-hidden":"true"}))))}pk(document);const Nt=window.__DASHBOARD_READ_ONLY__===!0,ki=_e({artifactId:ae(),versionId:ae().nullish(),versionNumber:vt().optional(),title:ae().nullish(),updatedAt:ae().optional(),draftRevision:vt().optional(),isDraft:Lt().optional(),baseVersionId:ae().nullish()}),Dk=ki.extend({manifest:na,dependencies:Qm.optional()}),Mk=_e({meta:_e({navigationTarget:Jm.optional(),dashboards:Je(ki),sources:Je(_e({id:ae(),name:ae(),type:ae()})),saved:Dk.optional(),versions:Je(ki).optional()})}),Vu=_e({success:Qe(!0),data:co()}),Lk=_e({payload:co(),datasets:Je(_e({completeness:_e({truncated:Lt()}),freshness:_e({sourceFetchedAt:ae()})}))});function jk(){const[n,r]=m.useState(()=>nh("en-US")),[o,s]=m.useState([]),[l,u]=m.useState([]),[d,p]=m.useState(null),[h,v]=m.useState([]),[y,x]=m.useState({}),[w,E]=m.useState(""),[_,b]=m.useState(!0),[S,A]=m.useState(""),[D,T]=m.useState(""),[N,U]=m.useState(null),[L,W]=m.useState(null),[F,re]=m.useState(!1),[me,ke]=m.useState(!1),oe=m.useRef(0),he=m.useRef(0),ve=m.useRef(),Se=m.useRef(null);function ue(){E(""),p(null),U(null),v([]),ke(!1),W(null)}async function ie(V,te){const Z=oe.current,K=Mk.parse(await Un("requestData",{query:{parameters:V?{artifactId:V,...te?{versionId:te}:{}}:{}}})).meta;return Z===oe.current&&(s(K.dashboards),u(K.sources)),K}async function B(V,te){const Z=++oe.current;if(!V.versionId&&!V.draftRevision)throw new Error("Missing saved definition");E(""),T(""),re(!1);const K=Lk.parse(Vu.parse(await Un("executeAction",{actionKey:"query",input:{artifactId:V.artifactId,versionId:V.versionId??void 0,...V.isDraft?{draftRevision:V.draftRevision}:{},controls:te}})).data);Z===oe.current&&(E(Fk(K.payload)),re(K.datasets.some(Ce=>Ce.completeness.truncated)),T(K.datasets.map(Ce=>Ce.freshness.sourceFetchedAt).sort()[0]??""))}async function X(V,te,Z=!0){const K=++oe.current;ue();const Ce=await ie(V,te),Ne=Ce.saved;if(K!==oe.current)return;if(!Ne||!Ne.versionId&&!Ne.draftRevision)throw new Error("Dashboard is unavailable");const Me=Object.fromEntries(Ne.manifest.controls.filter(Le=>Le.defaultValue!==void 0).map(Le=>[Le.controlId,Le.defaultValue??null]));p(Ne),v(Ce.versions??[]),x(Me),T(""),re(!1),!(!Nt&&Z&&(ve.current=eh({artifactId:V,versionId:te}),await kk(Ce.navigationTarget,V,te),K!==oe.current))&&(Nt||await _k({artifactId:Ne.artifactId,versionId:Ne.versionId??void 0,draftRevision:Ne.draftRevision}),K===oe.current&&(Ne.manifest.presentation||await B(Ne,Me)))}async function z(V){const te=++he.current;b(!0),A("");try{await V()}catch(Z){te===he.current&&A(Z instanceof Error?Z.message:n.error)}finally{te===he.current&&b(!1)}}async function P(){const V=++oe.current;ue();const te=await ie();if(V!==oe.current)return;const Z=[...te.dashboards].sort((K,Ce)=>(Ce.updatedAt??"").localeCompare(K.updatedAt??""))[0];Z&&await X(Z.artifactId,void 0,!1)}m.useEffect(()=>Sk((V,te)=>{r(nh(V));const Z=hk.safeParse(te??{});if(!Z.success){++oe.current,ve.current=void 0,ue(),z(async()=>{throw new Error("DASHBOARD_NAVIGATION_INVALID")});return}const K=Z.data,Ce=eh(K);Ce!==ve.current&&(ve.current=Ce,z(()=>K.artifactId?X(K.artifactId,K.versionId,!1):P()))},V=>{z(()=>X(V))}),[]);async function C(){const V=na.parse(JSON.parse(N??"")),te=d?.manifest.id===V.id?d.versionId??null:null,Z=ki.parse(Vu.parse(await Un("executeAction",{actionKey:"save",input:{manifest:V,expectedVersionId:te,expectedRevision:d?.manifest.id===V.id?d.draftRevision??0:0}})).data);await X(Z.artifactId)}async function Q(){if(!L?.draftRevision)return;const V=ki.parse(Vu.parse(await Un("executeAction",{actionKey:"publish",input:{artifactId:L.artifactId,expectedRevision:L.draftRevision,expectedCurrentVersionId:L.baseVersionId??L.versionId??null,confirmed:!0}}).catch(te=>{throw te instanceof Error&&te.message==="DASHBOARD_PUBLISH_SHARE_BLOCKED"?(W(null),new Error(n.publishShareBlocked)):te})).data);W(null),await X(V.artifactId,V.versionId??void 0)}const ne=m.createElement("header",{className:"dashboard-toolbar border-b"},m.createElement("h1",{className:"toolbar-title text-base font-semibold"},Nt?d?.title??n.title:n.title),!Nt&&m.createElement(Pk,{items:o,value:d?.artifactId??"",disabled:_,label:n.select,searchLabel:n.search,emptyLabel:n.noResults,onChange:V=>{z(()=>X(V))}}),Nt&&d&&m.createElement("span",{className:"text-xs text-muted-foreground"},n.teamReadOnly," · ",n.version," ",d.versionNumber),m.createElement("span",{className:"toolbar-loading text-muted-foreground",role:"status",title:_?n.loading:void 0},_&&m.createElement(m.Fragment,null,m.createElement(Ol,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),m.createElement("span",{className:"sr-only"},n.loading))),!Nt&&d&&m.createElement(xi,{value:d.isDraft?"draft":d.versionId??"draft",onValueChange:V=>{z(()=>X(d.artifactId,V==="draft"?void 0:V))},disabled:_},m.createElement(Si,{className:"toolbar-version","aria-label":n.history},m.createElement(wi,{placeholder:n.history})),m.createElement(_i,null,m.createElement(cr,{value:"draft"},n.draft,d.isDraft?` · r${d.draftRevision}`:""),h.filter(V=>V.versionId).map(V=>m.createElement(cr,{key:V.versionId,value:V.versionId},n.version," ",V.versionNumber)))),d&&D&&m.createElement("time",{className:"toolbar-updated text-xs text-muted-foreground",dateTime:D,title:`${n.refreshed}: ${new Date(D).toLocaleString(document.documentElement.lang)}`},m.createElement("span",{className:"toolbar-full-date"},new Date(D).toLocaleString(document.documentElement.lang)),m.createElement("span",{className:"toolbar-short-date"},new Date(D).toLocaleTimeString(document.documentElement.lang))),m.createElement("div",{className:"toolbar-actions"},!Nt&&d?.isDraft&&m.createElement(dt,{disabled:_,onClick:()=>W(d),"aria-label":n.publish,title:n.publish},m.createElement(Rf,null),m.createElement("span",null,n.publish)),!Nt&&d&&m.createElement(dt,{variant:"outline",disabled:_,"aria-label":n.edit,title:n.edit,onClick:()=>{z(async()=>{const V=await ie(d.artifactId);if(!V.saved)throw new Error(n.error);p(V.saved),v(V.versions??[]),U(JSON.stringify(V.saved.manifest,null,2))})}},m.createElement(C0,null),m.createElement("span",null,n.edit)),!Nt&&m.createElement(dt,{variant:"outline",disabled:_,"aria-label":n.import,title:n.import,onClick:()=>U("")},m.createElement(R0,null),m.createElement("span",null,n.import)),!Nt&&d&&m.createElement(dt,{variant:"outline",onClick:()=>ke(!0),disabled:_,"aria-label":n.share,title:n.share},m.createElement(P0,null),m.createElement("span",null,n.share)),m.createElement(dt,{disabled:_,"aria-label":n.refresh,title:n.refresh,onClick:()=>{d?.manifest.presentation?(A(""),Se.current?.refresh()):z(async()=>{d?(await ie(),await B(d,y)):await P()})}},m.createElement(Ol,null),m.createElement("span",null,n.refresh)))),H=d&&!d.manifest.presentation&&!!d.manifest.controls.length&&m.createElement("section",{className:"flex flex-wrap items-end gap-3 border-b px-4 py-3"},d.manifest.controls.map(V=>m.createElement(zk,{key:V.controlId,control:V,value:y[V.controlId]??null,disabled:_,onChange:te=>x(Z=>({...Z,[V.controlId]:te}))})),m.createElement(dt,{type:"button",variant:"outline",disabled:_,onClick:()=>{z(()=>B(d,y))}},n.apply));return m.createElement("main",{className:"dashboard-shell","data-read-only":Nt||void 0},Nt?m.createElement(Ak,{busy:_,t:n},ne,H):ne,!Nt&&me&&d&&m.createElement(Tk,{artifactId:d.artifactId,versionId:d.versionId??void 0,versions:h,t:n,onClose:()=>ke(!1)}),m.createElement(E_,{open:!!L,onOpenChange:V=>{!V&&!_&&W(null)}},m.createElement(R_,null,m.createElement(P_,null,n.publish),m.createElement(N_,null,n.confirmPublish," ",L?.manifest.title," · r",L?.draftRevision),m.createElement(I_,null,m.createElement(O_,{disabled:_},n.cancel),m.createElement(dt,{disabled:_,onClick:()=>{z(Q)}},n.confirm)))),S&&m.createElement("div",{role:"alert",className:"border-b px-4 py-3 text-destructive"},S),N!==null?m.createElement("section",{className:"editor-panel p-4"},m.createElement("label",{className:"text-sm font-medium",htmlFor:"definition"},n.definition),m.createElement($_,{id:"definition",className:"min-h-0 flex-1 font-mono text-xs",value:N,onChange:V=>U(V.target.value),disabled:_}),m.createElement("details",{className:"text-xs"},m.createElement("summary",null,n.sources),m.createElement("pre",{className:"max-h-32 overflow-auto"},JSON.stringify(l,null,2))),m.createElement("div",{className:"flex justify-end gap-2"},m.createElement(dt,{variant:"outline",onClick:()=>U(null),disabled:_},n.cancel),m.createElement(dt,{onClick:()=>{z(C)},disabled:_||!N.trim()},m.createElement(Rf,null),n.save))):m.createElement(m.Fragment,null,!Nt&&H,F&&m.createElement("p",{role:"status",className:"px-4 py-2 text-sm"},n.partial),m.createElement("section",{className:"canvas-panel","aria-busy":_},!_&&!w&&!d?.manifest.presentation&&!S&&m.createElement("p",{className:"p-6 text-muted-foreground"},n.empty),d?.manifest.presentation&&m.createElement(Ik,{ref:Se,artifactId:d.artifactId,versionId:d.versionId??void 0,draftRevision:d.isDraft?d.draftRevision:void 0,manifest:d.manifest,dependencies:d.dependencies??[],onBusy:b,onError:A,onResult:V=>{A(""),re(V.partial),T(V.fetchedAt)}}),w&&m.createElement("iframe",{title:d?.manifest.title??n.title,sandbox:"allow-scripts",srcDoc:w,className:"h-full w-full border-0"}))))}function zk({control:n,value:r,onChange:o,disabled:s}){return m.createElement("div",{className:"grid gap-1.5"},m.createElement("label",{htmlFor:n.controlId,className:"text-xs text-muted-foreground"},n.label),n.allowedValues?m.createElement(xi,{value:JSON.stringify(r),onValueChange:l=>o(Pn([ae(),vt(),Lt(),Jn()]).parse(JSON.parse(l))),disabled:s},m.createElement(Si,{id:n.controlId,className:"w-44"},m.createElement(wi,null)),m.createElement(_i,null,n.allowedValues.map(l=>m.createElement(cr,{key:JSON.stringify(l),value:JSON.stringify(l)},String(l??"—"))))):n.type==="boolean"?m.createElement(xi,{value:String(r),onValueChange:l=>o(l==="true"),disabled:s},m.createElement(Si,{id:n.controlId,className:"w-44"},m.createElement(wi,null)),m.createElement(_i,null,m.createElement(cr,{value:"true"},"true"),m.createElement(cr,{value:"false"},"false"))):m.createElement($m,{id:n.controlId,className:"w-44",disabled:s,type:n.type==="date"?"date":n.type==="number"?"number":"text",value:r===null?"":String(r),onChange:l=>o(l.target.value===""?null:n.type==="number"?Number(l.target.value):l.target.value)}))}function Fk(n){const r=s=>JSON.stringify(s).replace(/</g,"\\u003c").replace(/>/g,"\\u003e"),o=`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; connect-src 'none'; frame-src 'none'; base-uri 'none'; form-action 'none'"><script>window.__DATASCIENCE_ARTIFACT_HOSTING__={mode:'site_creator',readOnly:true,controls:{edit:false,exportHostedLink:false,hostedLink:false}};window.xpertai={toolOutput:${r(n)},toolResponseMetadata:${r(n)},availableDisplayModes:['inline','fullscreen'],displayMode:'fullscreen',hostContext:{availableDisplayModes:['inline','fullscreen'],displayMode:'fullscreen'}};
|
|
251
|
+
`,mk=Se({channel:Ge(qm),version:Ge(Km),type:Ge("ready"),sessionId:ie().regex(/^[a-f0-9]{32}$/)}).strict(),hk=Se({type:Ge("diagnostic"),code:Ge("DOCUMENT_BINDING_DENIED")}).strict();function vk(n,r){if(!n.ownerDocument.querySelector("meta[data-xpert-document-policy]"))throw new Error("Install the Artifact document frame policy before mounting a document");const o=sk.parse(r.context),s=Array.from(crypto.getRandomValues(new Uint8Array(16)),T=>T.toString(16).padStart(2,"0")).join(""),l=fk(r.html,s,r.dependencies),u=new MessageChannel,d=new Set(o.bindingIds),p=new Set,h=new Set,v=new Map,y=n.ownerDocument.defaultView;let x=!1,w=!1,b=0,_=Date.now();n.setAttribute("sandbox","allow-scripts"),n.referrerPolicy="no-referrer";const E=(T,N)=>{try{T?.(N)}catch{}},S=T=>{w||u.port1.postMessage(T)},A=(T,N)=>{S({type:"result",requestId:T,ok:!1,code:N}),E(r.onError,N)};u.port1.onmessage=async T=>{if(w)return;const N=hk.safeParse(T.data);if(N.success){E(r.onError,N.data.code);return}const U=ik.safeParse(T.data);if(!U.success){E(r.onError,"DOCUMENT_INVALID_REQUEST");return}const L={type:U.data.type,requestId:U.data.requestId,bindingId:U.data.bindingId,controls:U.data.controls};if(!d.has(L.bindingId)){A(L.requestId,"DOCUMENT_BINDING_DENIED");return}if(Date.now()-_>=6e4&&(b=0,_=Date.now(),p.clear()),h.has(L.requestId)||p.has(L.requestId)){A(L.requestId,"DOCUMENT_REQUEST_REPLAY");return}if(h.size>=8||++b>60){A(L.requestId,"DOCUMENT_QUERY_LIMIT");return}p.add(L.requestId),h.add(L.requestId),v.set(L.bindingId,L.requestId),E(r.onBusy,!0);try{const W=await r.query(L);w||(S({type:"result",requestId:L.requestId,ok:!0,dataset:W}),v.get(L.bindingId)===L.requestId&&E(r.onResult,W))}catch{w||(S({type:"result",requestId:L.requestId,ok:!1,code:"DOCUMENT_QUERY_FAILED"}),v.get(L.bindingId)===L.requestId&&E(r.onError,"DOCUMENT_QUERY_FAILED"))}finally{h.delete(L.requestId),w||E(r.onBusy,h.size>0)}};const D=T=>{var N;if(w||x||T.source!==n.contentWindow)return;const U=mk.safeParse(T.data);!U.success||U.data.sessionId!==s||(x=!0,(N=n.contentWindow)==null||N.postMessage({channel:qm,version:Km,type:"init",sessionId:s,context:o},"*",[u.port2]))};return y.addEventListener("message",D),u.port1.start(),n.srcdoc=l,{refresh(){S({type:"refresh"})},dispose(){w||(w=!0,y.removeEventListener("message",D),u.port1.close(),u.port2.close(),E(r.onBusy,!1))}}}function gk(n){if(n.querySelector("meta[data-xpert-document-policy]"))return;const r=n.createElement("meta");r.httpEquiv="Content-Security-Policy",r.content="frame-src 'none'",r.dataset.xpertDocumentPolicy="1",n.head.prepend(r)}const xn=ie().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),na=Se({schema:Ge("xpert.live-dashboard"),id:ie().uuid(),title:ie().min(1).max(160),bindings:Je(Zm).min(1).max(8),presentation:Se({type:Ge("html"),html:Qm,dependencies:Vu.optional()}).strict().optional(),controls:Je(Se({controlId:xn,type:Nn(["string","number","boolean","date"]),defaultValue:Pn([ie(),vt(),Lt(),Jn()]).optional(),allowedValues:Je(Pn([ie(),vt(),Lt(),Jn()])).max(200).optional(),label:ie().min(1).max(160)}).strict()).max(24),charts:Je(Se({id:xn,title:ie().min(1).max(160),type:Nn(["bar","line","area","pie","scatter"]),datasetId:xn,x:xn,y:xn,color:xn.optional()}).strict()).max(20),tables:Je(Se({id:xn,title:ie().min(1).max(160),datasetId:xn,fields:Je(xn).min(1).max(30)}).strict()).max(20)}).strict().superRefine((n,r)=>{const o=(s,l)=>{new Set(s).size!==s.length&&r.addIssue({code:"custom",message:`Duplicate ${l}`})};o(n.bindings.map(s=>s.id),"binding"),o(n.bindings.map(s=>s.output.datasetId),"dataset"),o(n.controls.map(s=>s.controlId),"control"),o([...n.charts,...n.tables].map(s=>s.id),"view"),!n.presentation&&!n.charts.length&&!n.tables.length&&r.addIssue({code:"custom",message:"At least one chart or table is required"}),n.presentation&&(n.charts.length||n.tables.length)&&r.addIssue({code:"custom",message:"HTML presentation owns its charts; use empty charts/tables arrays"});for(const s of n.controls){const l=n.bindings.flatMap(d=>d.parameters.filter(p=>p.controlId===s.controlId));l.length||r.addIssue({code:"custom",message:"Control is not bound to a query parameter"});const u=[...s.defaultValue!==void 0?[s.defaultValue]:[],...s.allowedValues??[]];u.some(d=>d!==null&&(s.type==="number"?typeof d!="number"||!Number.isFinite(d):s.type==="boolean"?typeof d!="boolean":typeof d!="string"))&&r.addIssue({code:"custom",message:"Control value has an incompatible type"}),s.allowedValues&&s.defaultValue!==void 0&&!s.allowedValues.includes(s.defaultValue)&&r.addIssue({code:"custom",message:"Default control value is not allowed"});for(const d of l)d.defaultValue!==void 0&&s.defaultValue!==void 0&&d.defaultValue!==s.defaultValue&&r.addIssue({code:"custom",message:"Control and parameter defaults disagree"}),u.some(p=>p===null?d.required:d.allowedValues&&!d.allowedValues.includes(p))&&r.addIssue({code:"custom",message:"Control values conflict with parameter restrictions"})}for(const s of n.bindings)for(const l of s.parameters){const u=n.controls.find(d=>d.controlId===l.controlId);(!u||u.type!==l.type)&&r.addIssue({code:"custom",message:"Control mapping is missing or has an incompatible type"})}for(const s of[...n.charts,...n.tables]){const l=n.bindings.find(d=>d.output.datasetId===s.datasetId)?.output,u="fields"in s?s.fields:[s.x,s.y,...s.color?[s.color]:[]];(!l||u.some(d=>!l.fields.some(p=>p.id===d)))&&r.addIssue({code:"custom",message:"View references an undeclared Dataset field"}),"y"in s&&!l?.fields.some(d=>d.id===s.y&&["float64","int64","decimal"].includes(d.logicalType))&&r.addIssue({code:"custom",message:"Chart measure must be numeric"}),"y"in s&&s.type!=="scatter"&&l?.grain.some(d=>d!==s.x&&d!==s.color)&&r.addIssue({code:"custom",message:"Chart must encode every Dataset grain dimension in x/color; use another aggregated binding for totals"})}});na.innerType().pick({title:!0,bindings:!0,controls:!0,charts:!0,tables:!0,presentation:!0}).partial().strict();const yk=Mr(Pn([ie().max(4e3),vt().finite(),Lt(),Jn()]));Se({manifest:na,expectedVersionId:ie().uuid().nullable(),expectedRevision:vt().int().nonnegative().default(0)}).strict(),Se({artifactId:ie().uuid(),versionId:ie().uuid().optional(),draftRevision:vt().int().positive().optional(),controls:yk.default({})}).strict().extend({bindingId:xn}).strict();const eh="live-dashboard__live-dashboard",th=tf("target",[Se({target:Ge("workbench.view"),viewKey:Ge(eh)}).strict(),Se({target:Ge("assistant.project"),projectId:ie().uuid(),viewKey:Ge(eh)}).strict()]),xk=Se({selectionId:ie().uuid().optional(),parameters:Se({artifactId:ie().uuid().optional(),versionId:ie().uuid().optional()}).strict().optional()}).transform((n,r)=>{const o=n.selectionId??n.parameters?.artifactId,s=n.parameters?.versionId;return(n.selectionId&&n.parameters?.artifactId&&n.selectionId!==n.parameters.artifactId||s&&!o)&&r.addIssue({code:J.custom,message:"DASHBOARD_NAVIGATION_INVALID: provide one Artifact identity and an optional version"}),{artifactId:o,versionId:s}}),nh=n=>JSON.stringify([n.artifactId??null,n.versionId??null]),ki=Se({artifactId:ie(),versionId:ie().nullish(),versionNumber:vt().optional(),title:ie().nullish(),updatedAt:ie().optional(),draftRevision:vt().optional(),isDraft:Lt().optional(),baseVersionId:ie().nullish()}),wk=ki.extend({manifest:na,dependencies:Xm.optional()}),Sk=Se({meta:Se({navigationTarget:th.optional(),dashboards:Je(ki),sources:Je(Se({source:$u,name:ie()})),saved:wk.optional(),versions:Je(ki).optional()})}),_k=["dashboard_create","dashboard_create_html","dashboard_update"],kk=Se({dashboard:Se({artifactId:ie().uuid(),draftRevision:vt().int().positive(),status:Ge("draft")})});function bk(n){let r=n;if(typeof r=="string")try{r=JSON.parse(r)}catch{return null}const o=kk.safeParse(r);return o.success?o.data.dashboard:null}const Ek=Se({channel:Ge("xpertai.remote_component"),protocolVersion:Ge(1),type:ie(),instanceId:ie().optional(),requestId:ie().optional(),locale:ie().optional(),initialQuery:co(),data:co(),result:co(),message:ie().optional(),event:Se({type:ie(),toolName:ie().optional(),data:Se({output:co()}).optional()}).optional(),theme:Se({mode:ie().optional(),density:Nn(["default","compact"]).optional(),tokens:Mr(Pn([ie(),vt()])).optional()}).optional()});let Zr,Ck=0;const Ro=new Map;function rh(n,r={}){window.parent.postMessage({channel:"xpertai.remote_component",protocolVersion:1,instanceId:Zr,type:n,...r},"*")}function Rk(n,r){let o;const s=l=>{if(l.source!==window.parent)return;const u=Ek.safeParse(l.data);if(!u.success)return;const d=u.data;if(d.type==="init"){if(Zr&&d.instanceId!==Zr)return;Zr=d.instanceId,document.documentElement.classList.toggle("dark",d.theme?.mode==="dark");for(const[h,v]of Object.entries(d.theme?.tokens??{})){const y=h.startsWith("--")?h:`--xui-${h.replace(/[._]/g,"-").replace(/[A-Z]/g,x=>`-${x.toLowerCase()}`)}`;document.documentElement.style.setProperty(y,String(v))}x0({density:d.theme?.density}),n(d.locale??"en-US",d.initialQuery);return}if(!Zr||d.instanceId!==Zr)return;if(d.type==="hostEvent"&&d.event?.type==="assistant.tool.completed"&&_k.includes(d.event.toolName??"")){const h=bk(d.event.data?.output);h&&`${h.artifactId}:${h.draftRevision}`!==o&&(o=`${h.artifactId}:${h.draftRevision}`,r(h.artifactId));return}if(!d.requestId)return;const p=Ro.get(d.requestId);p&&(Ro.delete(d.requestId),clearTimeout(p.timer),d.type==="error"?p.reject(new Error(d.message??"Request failed")):p.resolve(d.data??d.result))};return window.addEventListener("message",s),rh("ready"),()=>{window.removeEventListener("message",s);for(const l of Ro.values())clearTimeout(l.timer),l.reject(new Error("View closed"));Ro.clear()}}function Un(n,r){if(!Zr)return Promise.reject(new Error("View is not connected"));const o=`dashboard-${++Ck}`;return new Promise((s,l)=>{const u=window.setTimeout(()=>{Ro.delete(o),l(new Error("Request timed out"))},27e4);Ro.set(o,{resolve:s,reject:l,timer:u}),rh(n,{requestId:o,...r})})}function Ik(n){return Un("invokeClientCommand",{commandKey:"assistant.context.set",payload:{key:"live_dashboard",...n?{context:{schemaVersion:1,...n}}:{clear:!0}}})}function Pk(n,r,o){return Un("invokeClientCommand",{commandKey:"workbench.navigation.open",payload:{...th.parse(n),selectionId:r,parameters:o?{versionId:o}:{}}})}const Nk={publishShareBlocked:"This draft contains private or unavailable data sources and cannot replace the version used by the active team share. Remove those bindings or revoke the share before publishing. The published version and link are unchanged.",viewerControls:"Dashboard controls",hideViewerControls:"Hide dashboard controls",share:"Team sharing",teamReadOnly:"Team · read only",shareHint:"Share published versions with signed-in members of this organization. Drafts remain private.",sharePermissions:"Each viewer needs their own data source permissions. Sharing does not grant file or source access.",shareVersion:"Version policy",shareLatest:"Follow latest published version",shareFixed:"Pin a published version",shareLink:"Share link",copyLink:"Copy link",copied:"Copied",openShared:"Open page",enableShare:"Enable sharing",updateShare:"Update sharing",revokeShare:"Revoke link",publishBeforeShare:"Publish a version before sharing.",privateDependencies:"This provider uses private script or file dependencies. Team access must be supported and granted separately before sharing.",sourceUnavailable:"A declared data source or provider is unavailable.",draft:"Working draft",publish:"Publish draft",confirm:"Confirm publication",confirmPublish:"Publish this saved revision as a new immutable version?",title:"Live dashboards",empty:"Create a dashboard with your Assistant, or import a definition.",import:"Import definition",save:"Save",cancel:"Cancel",refresh:"Refresh",apply:"Apply filters",loading:"Loading…",saved:"Saved",refreshed:"Updated",definition:"Dashboard definition",sources:"Available sources",version:"Version",partial:"Partial result — narrow the filters to retrieve all rows.",select:"Choose a dashboard",error:"The operation failed. Check your access and query definition.",all:"All",edit:"Edit working draft",history:"Version history",search:"Search dashboards…",noResults:"No dashboards found."},Ok={publishShareBlocked:"草稿包含私有或不可用的数据源,无法更新当前团队分享。请移除这些数据绑定,或先撤销分享再发布。已发布版本和共享链接保持不变。",viewerControls:"看板操作",hideViewerControls:"收起看板操作",share:"团队分享",teamReadOnly:"团队 · 只读",shareHint:"向本组织已登录成员分享正式版本,草稿保持私有。",sharePermissions:"每位访问者仍需自己的数据源权限。分享不会授予文件或数据源访问权。",shareVersion:"版本策略",shareLatest:"跟随最新正式版本",shareFixed:"固定正式版本",shareLink:"分享链接",copyLink:"复制链接",copied:"已复制",openShared:"打开独立页面",enableShare:"开启分享",updateShare:"更新分享",revokeShare:"撤销链接",publishBeforeShare:"请先发布一个正式版本。",privateDependencies:"此数据源使用私有脚本或文件依赖,需要单独支持并授予团队访问权限后才能分享。",sourceUnavailable:"声明的数据源或适配器不可用。",draft:"工作草稿",publish:"发布草稿",confirm:"确认发布",confirmPublish:"将这份已保存草稿发布为新的正式版本?",title:"实时看板",empty:"让 Assistant 创建看板,或导入看板定义。",import:"导入定义",save:"保存",cancel:"取消",refresh:"刷新",apply:"应用筛选",loading:"加载中…",saved:"已保存",refreshed:"已更新",definition:"看板定义",sources:"可用数据源",version:"版本",partial:"结果不完整,请缩小筛选范围以获取全部数据。",select:"选择看板",error:"操作失败,请检查访问权限和查询定义。",all:"全部",edit:"编辑工作草稿",history:"版本历史",search:"搜索看板…",noResults:"未找到匹配的看板。"},Tk={publishShareBlocked:"草稿包含私有或無法使用的資料來源,無法更新目前的團隊分享。請移除這些資料繫結,或先撤銷分享再發佈。已發佈版本與分享連結保持不變。",viewerControls:"看板操作",hideViewerControls:"收起看板操作",share:"團隊分享",teamReadOnly:"團隊 · 唯讀",shareHint:"向本組織已登入成員分享正式版本,草稿保持私有。",sharePermissions:"每位訪問者仍需自己的資料來源權限。分享不會授予檔案或資料來源存取權。",shareVersion:"版本策略",shareLatest:"跟隨最新正式版本",shareFixed:"固定正式版本",shareLink:"分享連結",copyLink:"複製連結",copied:"已複製",openShared:"開啟獨立頁面",enableShare:"開啟分享",updateShare:"更新分享",revokeShare:"撤銷連結",publishBeforeShare:"請先發佈一個正式版本。",privateDependencies:"此資料來源使用私有腳本或檔案依賴,需要單獨支援並授予團隊存取權後才能分享。",sourceUnavailable:"聲明的資料來源或適配器不可用。",draft:"工作草稿",publish:"發佈草稿",confirm:"確認發佈",confirmPublish:"將這份已儲存草稿發佈為新的正式版本?",title:"即時看板",empty:"讓 Assistant 建立看板,或匯入看板定義。",import:"匯入定義",save:"儲存",cancel:"取消",refresh:"重新整理",apply:"套用篩選",loading:"載入中…",saved:"已儲存",refreshed:"已更新",definition:"看板定義",sources:"可用資料來源",version:"版本",partial:"結果不完整,請縮小篩選範圍以取得全部資料。",select:"選擇看板",error:"操作失敗,請檢查存取權限和查詢定義。",all:"全部",edit:"編輯工作草稿",history:"版本歷史",search:"搜尋看板…",noResults:"找不到符合的看板。"};function oh(n){const o={en_US:"en-US",zh_Hans:"zh-Hans","zh-CN":"zh-Hans",zh:"zh-Hans",zh_Hant:"zh-Hant","zh-TW":"zh-Hant"}[n]??n;return document.documentElement.lang=o,o==="zh-Hans"?Ok:o==="zh-Hant"?Tk:Nk}const Ak=Se({success:Ge(!0),data:Se({schema:Ge("xpert.analytics.dataset"),datasetId:ie(),fields:Je(Se({id:ie()}).passthrough()),rows:Je(Mr(Pn([ie(),vt(),Lt(),Jn()]))),completeness:Se({truncated:Lt()}).passthrough(),freshness:Se({sourceFetchedAt:ie()}).passthrough(),provenance:Se({executionId:ie()}).passthrough()}).passthrough()}),Dk=m.forwardRef(function(r,o){const s=m.useRef(null),l=m.useRef(null),u=m.useRef(r);return u.current=r,m.useImperativeHandle(o,()=>({refresh(){l.current?.refresh()}}),[]),m.useEffect(()=>{const d=s.current;if(!d||!r.manifest.presentation)return;const p=r.manifest;let h;try{h=Jm(r.dependencies,p.presentation?.dependencies??[])}catch{u.current.onError("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED"),u.current.onBusy(!1);return}const v=vk(d,{html:r.manifest.presentation.html,dependencies:h,context:{bindingIds:p.bindings.map(y=>y.id),defaults:Object.fromEntries(p.controls.filter(y=>y.defaultValue!==void 0).map(y=>[y.controlId,y.defaultValue??null])),locale:document.documentElement.lang||"en-US",theme:document.documentElement.classList.contains("dark")?"dark":"light"},query:async y=>Ak.parse(await Un("executeAction",{actionKey:"query-binding",input:{artifactId:r.artifactId,versionId:r.versionId,draftRevision:r.draftRevision,bindingId:y.bindingId,controls:y.controls}})).data,onBusy:y=>u.current.onBusy(y),onError:y=>u.current.onError(y),onResult:y=>u.current.onResult({partial:y.completeness.truncated,fetchedAt:y.freshness.sourceFetchedAt})});return l.current=v,()=>{v.dispose(),l.current=null}},[r.artifactId,r.versionId,r.draftRevision]),m.createElement("iframe",{ref:s,title:r.manifest.title,sandbox:"allow-scripts",className:"h-full w-full border-0"})});function Mk({items:n,value:r,disabled:o,label:s,searchLabel:l,emptyLabel:u,onChange:d}){const[p,h]=m.useState(!1),v=m.useId(),y=n.find(w=>w.artifactId===r),x=y?.title??y?.artifactId??s;return m.createElement(Bm,{open:p,onOpenChange:h},m.createElement(Wm,{role:"combobox","aria-label":s,"aria-expanded":p,"aria-controls":p?v:void 0,"aria-haspopup":"listbox",disabled:o,className:Ue(zu({variant:"outline"}),"dashboard-picker justify-between font-normal"),title:x},m.createElement("span",{className:"truncate"},x),m.createElement(Nl,{className:"shrink-0 opacity-50"})),m.createElement(Hm,{align:"start",className:"dashboard-picker-menu p-0"},m.createElement(H_,null,m.createElement(Z_,{"aria-label":l,placeholder:l}),m.createElement(q_,{id:v,"aria-label":s},m.createElement(K_,null,u),n.map(w=>m.createElement(G_,{key:w.artifactId,value:w.artifactId,keywords:[w.title??w.artifactId],"data-checked":w.artifactId===r,onSelect:()=>{h(!1),w.artifactId!==r&&d(w.artifactId)}},m.createElement("span",{className:"min-w-0 truncate",title:w.title??w.artifactId},w.title??w.artifactId)))))))}const Lk=Se({published:Se({versionId:ie(),versionNumber:vt(),title:ie().nullish()}).nullable(),issues:Je(Se({code:ie(),bindingId:ie().optional()})),link:Se({status:ie(),versionMode:Nn(["latest","version"]),versionId:ie().nullish(),url:ie().url().optional()}).nullable()}),jk=Se({success:Ge(!0),data:Lk});function zk({artifactId:n,versionId:r,versions:o,t:s,onClose:l}){const[u,d]=m.useState(null),[p,h]=m.useState("latest"),[v,y]=m.useState(r??o[0]?.versionId??""),[x,w]=m.useState(!1),[b,_]=m.useState(""),[E,S]=m.useState(!1),A=m.useRef(null),D=m.useRef(0),T=m.useRef(!1);async function N(F){const re=++D.current;w(!0),_(""),S(!1);try{const me=jk.parse(await Un("executeAction",{actionKey:F,input:{artifactId:n,...F==="share"?{versionMode:p}:{},...F!=="revoke-share"&&p==="version"&&v?{versionId:v}:{}}})).data;re===D.current&&(d(me),T.current||(T.current=!0,me.link?.status==="active"&&(h(me.link.versionMode),me.link.versionId&&y(me.link.versionId))))}catch{re===D.current&&_(s.error)}finally{re===D.current&&w(!1)}}m.useEffect(()=>(N("share-status"),()=>{++D.current}),[n,p,v]);const U=u?.link?.status==="active"?u.link:null,L=U&&U.versionMode===p&&(p==="latest"||U.versionId===v),W=F=>F==="DASHBOARD_PUBLISH_BEFORE_SHARING"?s.publishBeforeShare:F==="WORKSPACE_SCRIPT_PRIVATE_DEPENDENCIES"||F==="DASHBOARD_PRIVATE_DEPENDENCY"?s.privateDependencies:s.sourceUnavailable;return m.createElement(A_,{open:!0,onOpenChange:F=>{!F&&!x&&l()}},m.createElement(L_,null,m.createElement(j_,null,m.createElement(F_,null,s.share),m.createElement($_,null,s.shareHint)),m.createElement("div",{className:"grid gap-4 py-2"},m.createElement("label",{className:"grid gap-2 text-sm"},s.shareVersion,m.createElement(xi,{value:p,disabled:x,onValueChange:F=>h(F==="version"?"version":"latest")},m.createElement(Si,{"aria-label":s.shareVersion},m.createElement(wi,null)),m.createElement(_i,null,m.createElement(cr,{value:"latest"},s.shareLatest),m.createElement(cr,{value:"version"},s.shareFixed)))),p==="version"&&m.createElement(xi,{value:v,disabled:x,onValueChange:y},m.createElement(Si,{"aria-label":s.version},m.createElement(wi,{placeholder:s.version})),m.createElement(_i,null,o.filter(F=>F.versionId).map(F=>m.createElement(cr,{key:F.versionId,value:F.versionId},s.version," ",F.versionNumber)))),u?.published&&m.createElement("p",{className:"text-sm text-muted-foreground"},u.published.title," · ",s.version," ",u.published.versionNumber),!!u?.issues.length&&m.createElement("ul",{className:"grid gap-2 text-sm text-destructive",role:"alert"},u.issues.map((F,re)=>m.createElement("li",{key:re},W(F.code),F.bindingId?` (${F.bindingId})`:""))),m.createElement("p",{className:"text-xs text-muted-foreground"},s.sharePermissions),U?.url&&m.createElement("div",{className:"grid gap-2"},m.createElement("label",{htmlFor:"dashboard-share-url",className:"text-sm"},s.shareLink),m.createElement(Um,{id:"dashboard-share-url",ref:A,readOnly:!0,value:U.url,onFocus:F=>F.target.select()}),m.createElement("div",{className:"flex gap-2"},m.createElement(dt,{variant:"outline",onClick:()=>{A.current?.focus(),A.current?.select(),S(document.execCommand("copy"))}},E?s.copied:s.copyLink),m.createElement(dt,{variant:"outline",onClick:async()=>{if(U.url){_("");try{Se({success:Ge(!0)}).parse(await Un("invokeClientCommand",{commandKey:"artifact.presentation.open",payload:{url:U.url}}))}catch{_(s.error)}}}},s.openShared))),b&&m.createElement("p",{role:"alert",className:"text-sm text-destructive"},b)),m.createElement(z_,null,U&&m.createElement(dt,{variant:"outline",disabled:x,onClick:()=>{N("revoke-share")}},s.revokeShare),m.createElement(dt,{variant:"outline",disabled:x,onClick:l},s.cancel),m.createElement(dt,{disabled:x||!u||!!u.issues.length||!!L,onClick:()=>{N("share")}},U?s.updateShare:s.enableShare))))}function Fk({children:n,busy:r,t:o}){const[s,l]=m.useState(!1),u=m.useRef(!1),d=m.useRef(null),p=m.useRef(!1),h=m.useRef(),v=()=>{clearTimeout(h.current)},y=b=>{v(),b||(u.current=!1),l(b)},x=b=>{b.pointerType==="mouse"&&(v(),l(!0))},w=b=>{b.pointerType!=="mouse"||u.current||(v(),h.current=setTimeout(()=>{u.current||l(!1)},180))};return m.useEffect(()=>()=>clearTimeout(h.current),[]),m.useEffect(()=>{if(!s)return;let b;const _=()=>{b=setTimeout(()=>{document.activeElement instanceof HTMLIFrameElement&&y(!1)},0)};return window.addEventListener("blur",_),()=>{window.removeEventListener("blur",_),clearTimeout(b)}},[s]),m.createElement(Bm,{open:s,onOpenChange:y},m.createElement("div",{className:"viewer-controls-trigger"},m.createElement(Wm,{asChild:!0},m.createElement("button",{ref:d,type:"button",className:Ue(zu({variant:"outline",size:"icon"}),"viewer-controls-button"),"aria-label":o.viewerControls,title:o.viewerControls,onPointerEnter:x,onPointerLeave:w,onClick:b=>{b.preventDefault(),v(),u.current?y(!1):(u.current=!0,l(!0))}},r?m.createElement(Ol,{className:"motion-safe:animate-spin","aria-hidden":"true"}):m.createElement(C0,{"aria-hidden":"true"}),r&&m.createElement("span",{role:"status",className:"sr-only"},o.loading)))),m.createElement(Hm,{align:"end",side:"bottom",sideOffset:8,collisionPadding:12,"aria-label":o.viewerControls,className:"viewer-controls-panel w-[min(44rem,calc(100vw-24px))] gap-0 p-0",onPointerEnter:x,onPointerLeave:w,onPointerDownCapture:()=>{u.current=!0},onFocusCapture:()=>{u.current=!0},onOpenAutoFocus:b=>{u.current||b.preventDefault()},onEscapeKeyDown:()=>{p.current=!0},onCloseAutoFocus:b=>{b.preventDefault(),p.current&&d.current?.focus({preventScroll:!0}),p.current=!1}},n,m.createElement(dt,{variant:"ghost",size:"icon",className:"viewer-controls-close","aria-label":o.hideViewerControls,title:o.hideViewerControls,onClick:()=>{p.current=!0,y(!1)}},m.createElement(If,{"aria-hidden":"true"}))))}gk(document);const Nt=window.__DASHBOARD_READ_ONLY__===!0,Uu=Se({success:Ge(!0),data:co()}),$k=Se({payload:co(),datasets:Je(Se({completeness:Se({truncated:Lt()}),freshness:Se({sourceFetchedAt:ie()})}))});function Vk(){const[n,r]=m.useState(()=>oh("en-US")),[o,s]=m.useState([]),[l,u]=m.useState([]),[d,p]=m.useState(null),[h,v]=m.useState([]),[y,x]=m.useState({}),[w,b]=m.useState(""),[_,E]=m.useState(!0),[S,A]=m.useState(""),[D,T]=m.useState(""),[N,U]=m.useState(null),[L,W]=m.useState(null),[F,re]=m.useState(!1),[me,ke]=m.useState(!1),oe=m.useRef(0),he=m.useRef(0),ve=m.useRef(),_e=m.useRef(null);function ue(){b(""),p(null),U(null),v([]),ke(!1),W(null)}async function se(V,te){const Z=oe.current,K=Sk.parse(await Un("requestData",{query:{parameters:V?{artifactId:V,...te?{versionId:te}:{}}:{}}})).meta;return Z===oe.current&&(s(K.dashboards),u(K.sources)),K}async function B(V,te){const Z=++oe.current;if(!V.versionId&&!V.draftRevision)throw new Error("Missing saved definition");b(""),T(""),re(!1);const K=$k.parse(Uu.parse(await Un("executeAction",{actionKey:"query",input:{artifactId:V.artifactId,versionId:V.versionId??void 0,...V.isDraft?{draftRevision:V.draftRevision}:{},controls:te}})).data);Z===oe.current&&(b(Bk(K.payload)),re(K.datasets.some(Ce=>Ce.completeness.truncated)),T(K.datasets.map(Ce=>Ce.freshness.sourceFetchedAt).sort()[0]??""))}async function X(V,te,Z=!0){const K=++oe.current;ue();const Ce=await se(V,te),Ne=Ce.saved;if(K!==oe.current)return;if(!Ne||!Ne.versionId&&!Ne.draftRevision)throw new Error("Dashboard is unavailable");const Me=Object.fromEntries(Ne.manifest.controls.filter(Le=>Le.defaultValue!==void 0).map(Le=>[Le.controlId,Le.defaultValue??null]));p(Ne),v(Ce.versions??[]),x(Me),T(""),re(!1),!(!Nt&&Z&&(ve.current=nh({artifactId:V,versionId:te}),await Pk(Ce.navigationTarget,V,te),K!==oe.current))&&(Nt||await Ik({artifactId:Ne.artifactId,versionId:Ne.versionId??void 0,draftRevision:Ne.draftRevision}),K===oe.current&&(Ne.manifest.presentation||await B(Ne,Me)))}async function z(V){const te=++he.current;E(!0),A("");try{await V()}catch(Z){te===he.current&&A(Z instanceof Error?Z.message:n.error)}finally{te===he.current&&E(!1)}}async function P(){const V=++oe.current;ue();const te=await se();if(V!==oe.current)return;const Z=[...te.dashboards].sort((K,Ce)=>(Ce.updatedAt??"").localeCompare(K.updatedAt??""))[0];Z&&await X(Z.artifactId,void 0,!1)}m.useEffect(()=>Rk((V,te)=>{r(oh(V));const Z=xk.safeParse(te??{});if(!Z.success){++oe.current,ve.current=void 0,ue(),z(async()=>{throw new Error("DASHBOARD_NAVIGATION_INVALID")});return}const K=Z.data,Ce=nh(K);Ce!==ve.current&&(ve.current=Ce,z(()=>K.artifactId?X(K.artifactId,K.versionId,!1):P()))},V=>{z(()=>X(V))}),[]);async function C(){const V=na.parse(JSON.parse(N??"")),te=d?.manifest.id===V.id?d.versionId??null:null,Z=ki.parse(Uu.parse(await Un("executeAction",{actionKey:"save",input:{manifest:V,expectedVersionId:te,expectedRevision:d?.manifest.id===V.id?d.draftRevision??0:0}})).data);await X(Z.artifactId)}async function Q(){if(!L?.draftRevision)return;const V=ki.parse(Uu.parse(await Un("executeAction",{actionKey:"publish",input:{artifactId:L.artifactId,expectedRevision:L.draftRevision,expectedCurrentVersionId:L.baseVersionId??L.versionId??null,confirmed:!0}}).catch(te=>{throw te instanceof Error&&te.message==="DASHBOARD_PUBLISH_SHARE_BLOCKED"?(W(null),new Error(n.publishShareBlocked)):te})).data);W(null),await X(V.artifactId,V.versionId??void 0)}const ne=m.createElement("header",{className:"dashboard-toolbar border-b"},m.createElement("h1",{className:"toolbar-title text-base font-semibold"},Nt?d?.title??n.title:n.title),!Nt&&m.createElement(Mk,{items:o,value:d?.artifactId??"",disabled:_,label:n.select,searchLabel:n.search,emptyLabel:n.noResults,onChange:V=>{z(()=>X(V))}}),Nt&&d&&m.createElement("span",{className:"text-xs text-muted-foreground"},n.teamReadOnly," · ",n.version," ",d.versionNumber),m.createElement("span",{className:"toolbar-loading text-muted-foreground",role:"status",title:_?n.loading:void 0},_&&m.createElement(m.Fragment,null,m.createElement(Ol,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),m.createElement("span",{className:"sr-only"},n.loading))),!Nt&&d&&m.createElement(xi,{value:d.isDraft?"draft":d.versionId??"draft",onValueChange:V=>{z(()=>X(d.artifactId,V==="draft"?void 0:V))},disabled:_},m.createElement(Si,{className:"toolbar-version","aria-label":n.history},m.createElement(wi,{placeholder:n.history})),m.createElement(_i,null,m.createElement(cr,{value:"draft"},n.draft,d.isDraft?` · r${d.draftRevision}`:""),h.filter(V=>V.versionId).map(V=>m.createElement(cr,{key:V.versionId,value:V.versionId},n.version," ",V.versionNumber)))),d&&D&&m.createElement("time",{className:"toolbar-updated text-xs text-muted-foreground",dateTime:D,title:`${n.refreshed}: ${new Date(D).toLocaleString(document.documentElement.lang)}`},m.createElement("span",{className:"toolbar-full-date"},new Date(D).toLocaleString(document.documentElement.lang)),m.createElement("span",{className:"toolbar-short-date"},new Date(D).toLocaleTimeString(document.documentElement.lang))),m.createElement("div",{className:"toolbar-actions"},!Nt&&d?.isDraft&&m.createElement(dt,{disabled:_,onClick:()=>W(d),"aria-label":n.publish,title:n.publish},m.createElement(Pf,null),m.createElement("span",null,n.publish)),!Nt&&d&&m.createElement(dt,{variant:"outline",disabled:_,"aria-label":n.edit,title:n.edit,onClick:()=>{z(async()=>{const V=await se(d.artifactId);if(!V.saved)throw new Error(n.error);p(V.saved),v(V.versions??[]),U(JSON.stringify(V.saved.manifest,null,2))})}},m.createElement(R0,null),m.createElement("span",null,n.edit)),!Nt&&m.createElement(dt,{variant:"outline",disabled:_,"aria-label":n.import,title:n.import,onClick:()=>U("")},m.createElement(I0,null),m.createElement("span",null,n.import)),!Nt&&d&&m.createElement(dt,{variant:"outline",onClick:()=>ke(!0),disabled:_,"aria-label":n.share,title:n.share},m.createElement(N0,null),m.createElement("span",null,n.share)),m.createElement(dt,{disabled:_,"aria-label":n.refresh,title:n.refresh,onClick:()=>{d?.manifest.presentation?(A(""),_e.current?.refresh()):z(async()=>{d?(await se(),await B(d,y)):await P()})}},m.createElement(Ol,null),m.createElement("span",null,n.refresh)))),H=d&&!d.manifest.presentation&&!!d.manifest.controls.length&&m.createElement("section",{className:"flex flex-wrap items-end gap-3 border-b px-4 py-3"},d.manifest.controls.map(V=>m.createElement(Uk,{key:V.controlId,control:V,value:y[V.controlId]??null,disabled:_,onChange:te=>x(Z=>({...Z,[V.controlId]:te}))})),m.createElement(dt,{type:"button",variant:"outline",disabled:_,onClick:()=>{z(()=>B(d,y))}},n.apply));return m.createElement("main",{className:"dashboard-shell","data-read-only":Nt||void 0},Nt?m.createElement(Fk,{busy:_,t:n},ne,H):ne,!Nt&&me&&d&&m.createElement(zk,{artifactId:d.artifactId,versionId:d.versionId??void 0,versions:h,t:n,onClose:()=>ke(!1)}),m.createElement(E_,{open:!!L,onOpenChange:V=>{!V&&!_&&W(null)}},m.createElement(I_,null,m.createElement(N_,null,n.publish),m.createElement(O_,null,n.confirmPublish," ",L?.manifest.title," · r",L?.draftRevision),m.createElement(P_,null,m.createElement(T_,{disabled:_},n.cancel),m.createElement(dt,{disabled:_,onClick:()=>{z(Q)}},n.confirm)))),S&&m.createElement("div",{role:"alert",className:"border-b px-4 py-3 text-destructive"},S),N!==null?m.createElement("section",{className:"editor-panel p-4"},m.createElement("label",{className:"text-sm font-medium",htmlFor:"definition"},n.definition),m.createElement(V_,{id:"definition",className:"min-h-0 flex-1 font-mono text-xs",value:N,onChange:V=>U(V.target.value),disabled:_}),m.createElement("details",{className:"text-xs"},m.createElement("summary",null,n.sources),m.createElement("pre",{className:"max-h-32 overflow-auto"},JSON.stringify(l,null,2))),m.createElement("div",{className:"flex justify-end gap-2"},m.createElement(dt,{variant:"outline",onClick:()=>U(null),disabled:_},n.cancel),m.createElement(dt,{onClick:()=>{z(C)},disabled:_||!N.trim()},m.createElement(Pf,null),n.save))):m.createElement(m.Fragment,null,!Nt&&H,F&&m.createElement("p",{role:"status",className:"px-4 py-2 text-sm"},n.partial),m.createElement("section",{className:"canvas-panel","aria-busy":_},!_&&!w&&!d?.manifest.presentation&&!S&&m.createElement("p",{className:"p-6 text-muted-foreground"},n.empty),d?.manifest.presentation&&m.createElement(Dk,{ref:_e,artifactId:d.artifactId,versionId:d.versionId??void 0,draftRevision:d.isDraft?d.draftRevision:void 0,manifest:d.manifest,dependencies:d.dependencies??[],onBusy:E,onError:A,onResult:V=>{A(""),re(V.partial),T(V.fetchedAt)}}),w&&m.createElement("iframe",{title:d?.manifest.title??n.title,sandbox:"allow-scripts",srcDoc:w,className:"h-full w-full border-0"}))))}function Uk({control:n,value:r,onChange:o,disabled:s}){return m.createElement("div",{className:"grid gap-1.5"},m.createElement("label",{htmlFor:n.controlId,className:"text-xs text-muted-foreground"},n.label),n.allowedValues?m.createElement(xi,{value:JSON.stringify(r),onValueChange:l=>o(Pn([ie(),vt(),Lt(),Jn()]).parse(JSON.parse(l))),disabled:s},m.createElement(Si,{id:n.controlId,className:"w-44"},m.createElement(wi,null)),m.createElement(_i,null,n.allowedValues.map(l=>m.createElement(cr,{key:JSON.stringify(l),value:JSON.stringify(l)},String(l??"—"))))):n.type==="boolean"?m.createElement(xi,{value:String(r),onValueChange:l=>o(l==="true"),disabled:s},m.createElement(Si,{id:n.controlId,className:"w-44"},m.createElement(wi,null)),m.createElement(_i,null,m.createElement(cr,{value:"true"},"true"),m.createElement(cr,{value:"false"},"false"))):m.createElement(Um,{id:n.controlId,className:"w-44",disabled:s,type:n.type==="date"?"date":n.type==="number"?"number":"text",value:r===null?"":String(r),onChange:l=>o(l.target.value===""?null:n.type==="number"?Number(l.target.value):l.target.value)}))}function Bk(n){const r=s=>JSON.stringify(s).replace(/</g,"\\u003c").replace(/>/g,"\\u003e"),o=`<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; connect-src 'none'; frame-src 'none'; base-uri 'none'; form-action 'none'"><script>window.__DATASCIENCE_ARTIFACT_HOSTING__={mode:'site_creator',readOnly:true,controls:{edit:false,exportHostedLink:false,hostedLink:false}};window.xpertai={toolOutput:${r(n)},toolResponseMetadata:${r(n)},availableDisplayModes:['inline','fullscreen'],displayMode:'fullscreen',hostContext:{availableDisplayModes:['inline','fullscreen'],displayMode:'fullscreen'}};
|
|
252
252
|
window.__datascienceArtifactFetchShimInstalled=true;
|
|
253
|
-
window.fetch=async function(input,init){const path=new URL(typeof input==='string'?input:input.url,'https://renderer.invalid').pathname;const payload=window.xpertai.toolOutput;const data={'/api/manifest':payload.manifest,'/api/snapshot':payload.snapshot,'/api/package':{manifestPath:'live dashboard',snapshotPath:'live query'}};const ok=(!init||!init.method||init.method==='GET')&&Object.prototype.hasOwnProperty.call(data,path);return new Response(JSON.stringify(ok?data[path]:{error:'Unavailable in live read-only view'}),{status:ok?200:404,headers:{'Content-Type':'application/json'}})};<\/script>`;return window.__ANALYTICS_RENDERER_HTML__.replace(/<head(\s[^>]*)?>/i,s=>`${s}${o}`)}
|
|
253
|
+
window.fetch=async function(input,init){const path=new URL(typeof input==='string'?input:input.url,'https://renderer.invalid').pathname;const payload=window.xpertai.toolOutput;const data={'/api/manifest':payload.manifest,'/api/snapshot':payload.snapshot,'/api/package':{manifestPath:'live dashboard',snapshotPath:'live query'}};const ok=(!init||!init.method||init.method==='GET')&&Object.prototype.hasOwnProperty.call(data,path);return new Response(JSON.stringify(ok?data[path]:{error:'Unavailable in live read-only view'}),{status:ok?200:404,headers:{'Content-Type':'application/json'}})};<\/script>`;return window.__ANALYTICS_RENDERER_HTML__.replace(/<head(\s[^>]*)?>/i,s=>`${s}${o}`)}ny.createRoot(document.getElementById("root")).render(m.createElement(Vk,null))})();
|