@xpert-ai/plugin-live-dashboard 0.1.3 → 0.2.0

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.
Files changed (67) hide show
  1. package/.xpertai-plugin/plugin.json +1 -1
  2. package/README.md +5 -5
  3. package/dist/lib/agent.schema.d.ts +11 -11
  4. package/dist/lib/agent.schema.js +3 -3
  5. package/dist/lib/analytics-source.d.ts +3 -0
  6. package/dist/lib/analytics-source.js +11 -0
  7. package/dist/lib/content-capability.d.ts +22 -0
  8. package/dist/lib/content-capability.js +33 -0
  9. package/dist/lib/content.provider.d.ts +23 -0
  10. package/dist/lib/content.provider.js +163 -0
  11. package/dist/lib/dashboard-icon.d.ts +2 -1
  12. package/dist/lib/dashboard-icon.js +10 -2
  13. package/dist/lib/dashboard-navigation.d.ts +24 -0
  14. package/dist/lib/dashboard-navigation.js +1 -1
  15. package/dist/lib/dashboard-queries.d.ts +11 -0
  16. package/dist/lib/dashboard-queries.js +20 -0
  17. package/dist/lib/dashboard-search.d.ts +5 -0
  18. package/dist/lib/dashboard-search.js +12 -0
  19. package/dist/lib/dashboard-sharing.js +2 -1
  20. package/dist/lib/dashboard-view.schema.d.ts +1249 -0
  21. package/dist/lib/dashboard-view.schema.js +19 -0
  22. package/dist/lib/dashboard.schema.d.ts +12 -12
  23. package/dist/lib/dashboard.schema.js +5 -3
  24. package/dist/lib/dashboard.service.d.ts +11 -3
  25. package/dist/lib/dashboard.service.js +55 -21
  26. package/dist/lib/definition-tools.d.ts +56 -0
  27. package/dist/lib/definition-tools.js +42 -0
  28. package/dist/lib/document-host.d.ts +4 -0
  29. package/dist/lib/document-host.js +13 -0
  30. package/dist/lib/document-network.d.ts +3 -0
  31. package/dist/lib/document-network.js +9 -0
  32. package/dist/lib/document-package.d.ts +1 -1
  33. package/dist/lib/document-package.js +2 -2
  34. package/dist/lib/html-guidance.d.ts +1 -1
  35. package/dist/lib/html-guidance.js +1 -1
  36. package/dist/lib/middleware.js +54 -18
  37. package/dist/lib/plugin.js +3 -1
  38. package/dist/lib/presentation.provider.d.ts +6 -1
  39. package/dist/lib/presentation.provider.js +2 -2
  40. package/dist/lib/preview-retry.d.ts +7 -0
  41. package/dist/lib/preview-retry.js +52 -0
  42. package/dist/lib/renderer.js +5 -0
  43. package/dist/lib/resource-card.js +1 -1
  44. package/dist/lib/save-evidence.d.ts +1 -1
  45. package/dist/lib/sharing.service.js +2 -0
  46. package/dist/lib/view.provider.d.ts +7 -2
  47. package/dist/lib/view.provider.js +5 -4
  48. package/dist/remote/app.css +1 -1
  49. package/dist/remote/app.js +36 -36
  50. package/dist/remote/build-manifest.json +42 -30
  51. package/dist/sandbox-actions/action.json +1 -1
  52. package/dist/sandbox-actions/bundle/host.js +2 -2
  53. package/dist/sandbox-actions/bundle/validate.mjs +24 -3
  54. package/dist/validation/host-entry.d.ts +3 -1
  55. package/dist/validation/host-entry.js +5 -2
  56. package/docs/drafts.mdx +1 -1
  57. package/docs/frontend-libraries.mdx +3 -3
  58. package/docs/html-mode.md +5 -5
  59. package/docs/index.mdx +14 -0
  60. package/docs/team-sharing.mdx +1 -1
  61. package/docs/verification.mdx +3 -1
  62. package/examples/data-xpert-sales.json +6 -3
  63. package/examples/postgres-sales.json +5 -3
  64. package/package.json +6 -6
  65. package/skills/live-dashboard/SKILL.md +1 -1
  66. package/skills/live-dashboard/references/data-validation.md +4 -0
  67. package/skills/live-dashboard/references/html-runtime.md +1 -1
@@ -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`
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
- `),f=a.stack.split(`
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=`
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=`
1
+ (function(){"use strict";function Uy(r,t){for(var o=0;o<t.length;o++){const i=t[o];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in r)){const l=Object.getOwnPropertyDescriptor(i,a);l&&Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function By(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Pl={exports:{}},Le={};var of;function Hy(){if(of)return Le;of=1;var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function k(P,E,W){this.props=P,this.context=E,this.refs=_,this.updater=W||b}k.prototype.isReactComponent={},k.prototype.setState=function(P,E){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,E,"setState")},k.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function T(){}T.prototype=k.prototype;function D(P,E,W){this.props=P,this.context=E,this.refs=_,this.updater=W||b}var N=D.prototype=new T;N.constructor=D,S(N,k.prototype),N.isPureReactComponent=!0;var I=Array.isArray,V=Object.prototype.hasOwnProperty,L={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function j(P,E,W){var X,H={},J=null,ue=null;if(E!=null)for(X in E.ref!==void 0&&(ue=E.ref),E.key!==void 0&&(J=""+E.key),E)V.call(E,X)&&!B.hasOwnProperty(X)&&(H[X]=E[X]);var ee=arguments.length-2;if(ee===1)H.children=W;else if(1<ee){for(var ie=Array(ee),Ae=0;Ae<ee;Ae++)ie[Ae]=arguments[Ae+2];H.children=ie}if(P&&P.defaultProps)for(X in ee=P.defaultProps,ee)H[X]===void 0&&(H[X]=ee[X]);return{$$typeof:r,type:P,key:J,ref:ue,props:H,_owner:L.current}}function Q(P,E){return{$$typeof:r,type:P.type,key:E,ref:P.ref,props:P.props,_owner:P._owner}}function ae(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function Ce(P){var E={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(W){return E[W]})}var ce=/\/+/g;function le(P,E){return typeof P=="object"&&P!==null&&P.key!=null?Ce(""+P.key):E.toString(36)}function fe(P,E,W,X,H){var J=typeof P;(J==="undefined"||J==="boolean")&&(P=null);var ue=!1;if(P===null)ue=!0;else switch(J){case"string":case"number":ue=!0;break;case"object":switch(P.$$typeof){case r:case t:ue=!0}}if(ue)return ue=P,H=H(ue),P=X===""?"."+le(ue,0):X,I(H)?(W="",P!=null&&(W=P.replace(ce,"$&/")+"/"),fe(H,E,W,"",function(Ae){return Ae})):H!=null&&(ae(H)&&(H=Q(H,W+(!H.key||ue&&ue.key===H.key?"":(""+H.key).replace(ce,"$&/")+"/")+P)),E.push(H)),1;if(ue=0,X=X===""?".":X+":",I(P))for(var ee=0;ee<P.length;ee++){J=P[ee];var ie=X+le(J,ee);ue+=fe(J,E,W,ie,H)}else if(ie=w(P),typeof ie=="function")for(P=ie.call(P),ee=0;!(J=P.next()).done;)J=J.value,ie=X+le(J,ee++),ue+=fe(J,E,W,ie,H);else if(J==="object")throw E=String(P),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.");return ue}function ke(P,E,W){if(P==null)return P;var X=[],H=0;return fe(P,X,"","",function(J){return E.call(W,J,H++)}),X}function re(P){if(P._status===-1){var E=P._result;E=E(),E.then(function(W){(P._status===0||P._status===-1)&&(P._status=1,P._result=W)},function(W){(P._status===0||P._status===-1)&&(P._status=2,P._result=W)}),P._status===-1&&(P._status=0,P._result=E)}if(P._status===1)return P._result.default;throw P._result}var se={current:null},U={transition:null},G={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:U,ReactCurrentOwner:L};function z(){throw Error("act(...) is not supported in production builds of React.")}return Le.Children={map:ke,forEach:function(P,E,W){ke(P,function(){E.apply(this,arguments)},W)},count:function(P){var E=0;return ke(P,function(){E++}),E},toArray:function(P){return ke(P,function(E){return E})||[]},only:function(P){if(!ae(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Le.Component=k,Le.Fragment=o,Le.Profiler=a,Le.PureComponent=D,Le.StrictMode=i,Le.Suspense=h,Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,Le.act=z,Le.cloneElement=function(P,E,W){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var X=S({},P.props),H=P.key,J=P.ref,ue=P._owner;if(E!=null){if(E.ref!==void 0&&(J=E.ref,ue=L.current),E.key!==void 0&&(H=""+E.key),P.type&&P.type.defaultProps)var ee=P.type.defaultProps;for(ie in E)V.call(E,ie)&&!B.hasOwnProperty(ie)&&(X[ie]=E[ie]===void 0&&ee!==void 0?ee[ie]:E[ie])}var ie=arguments.length-2;if(ie===1)X.children=W;else if(1<ie){ee=Array(ie);for(var Ae=0;Ae<ie;Ae++)ee[Ae]=arguments[Ae+2];X.children=ee}return{$$typeof:r,type:P.type,key:H,ref:J,props:X,_owner:ue}},Le.createContext=function(P){return P={$$typeof:u,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:l,_context:P},P.Consumer=P},Le.createElement=j,Le.createFactory=function(P){var E=j.bind(null,P);return E.type=P,E},Le.createRef=function(){return{current:null}},Le.forwardRef=function(P){return{$$typeof:d,render:P}},Le.isValidElement=ae,Le.lazy=function(P){return{$$typeof:v,_payload:{_status:-1,_result:P},_init:re}},Le.memo=function(P,E){return{$$typeof:g,type:P,compare:E===void 0?null:E}},Le.startTransition=function(P){var E=U.transition;U.transition={};try{P()}finally{U.transition=E}},Le.unstable_act=z,Le.useCallback=function(P,E){return se.current.useCallback(P,E)},Le.useContext=function(P){return se.current.useContext(P)},Le.useDebugValue=function(){},Le.useDeferredValue=function(P){return se.current.useDeferredValue(P)},Le.useEffect=function(P,E){return se.current.useEffect(P,E)},Le.useId=function(){return se.current.useId()},Le.useImperativeHandle=function(P,E,W){return se.current.useImperativeHandle(P,E,W)},Le.useInsertionEffect=function(P,E){return se.current.useInsertionEffect(P,E)},Le.useLayoutEffect=function(P,E){return se.current.useLayoutEffect(P,E)},Le.useMemo=function(P,E){return se.current.useMemo(P,E)},Le.useReducer=function(P,E,W){return se.current.useReducer(P,E,W)},Le.useRef=function(P){return se.current.useRef(P)},Le.useState=function(P){return se.current.useState(P)},Le.useSyncExternalStore=function(P,E,W){return se.current.useSyncExternalStore(P,E,W)},Le.useTransition=function(){return se.current.useTransition()},Le.version="18.3.1",Le}var sf;function Il(){return sf||(sf=1,Pl.exports=Hy()),Pl.exports}var m=Il();const fi=Uy({__proto__:null,default:By(m)},[m]);var xs={},Ol={exports:{}},Dt={},Nl={exports:{}},Tl={};var af;function Wy(){return af||(af=1,(function(r){function t(U,G){var z=U.length;U.push(G);e:for(;0<z;){var P=z-1>>>1,E=U[P];if(0<a(E,G))U[P]=G,U[z]=E,z=P;else break e}}function o(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var G=U[0],z=U.pop();if(z!==G){U[0]=z;e:for(var P=0,E=U.length,W=E>>>1;P<W;){var X=2*(P+1)-1,H=U[X],J=X+1,ue=U[J];if(0>a(H,z))J<E&&0>a(ue,H)?(U[P]=ue,U[J]=z,P=J):(U[P]=H,U[X]=z,P=X);else if(J<E&&0>a(ue,z))U[P]=ue,U[J]=z,P=J;else break e}}return G}function a(U,G){var z=U.sortIndex-G.sortIndex;return z!==0?z:U.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;r.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();r.unstable_now=function(){return u.now()-d}}var h=[],g=[],v=1,y=null,w=3,b=!1,S=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,T=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 N(U){for(var G=o(g);G!==null;){if(G.callback===null)i(g);else if(G.startTime<=U)i(g),G.sortIndex=G.expirationTime,t(h,G);else break;G=o(g)}}function I(U){if(_=!1,N(U),!S)if(o(h)!==null)S=!0,re(V);else{var G=o(g);G!==null&&se(I,G.startTime-U)}}function V(U,G){S=!1,_&&(_=!1,T(j),j=-1),b=!0;var z=w;try{for(N(G),y=o(h);y!==null&&(!(y.expirationTime>G)||U&&!Ce());){var P=y.callback;if(typeof P=="function"){y.callback=null,w=y.priorityLevel;var E=P(y.expirationTime<=G);G=r.unstable_now(),typeof E=="function"?y.callback=E:y===o(h)&&i(h),N(G)}else i(h);y=o(h)}if(y!==null)var W=!0;else{var X=o(g);X!==null&&se(I,X.startTime-G),W=!1}return W}finally{y=null,w=z,b=!1}}var L=!1,B=null,j=-1,Q=5,ae=-1;function Ce(){return!(r.unstable_now()-ae<Q)}function ce(){if(B!==null){var U=r.unstable_now();ae=U;var G=!0;try{G=B(!0,U)}finally{G?le():(L=!1,B=null)}}else L=!1}var le;if(typeof D=="function")le=function(){D(ce)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,ke=fe.port2;fe.port1.onmessage=ce,le=function(){ke.postMessage(null)}}else le=function(){k(ce,0)};function re(U){B=U,L||(L=!0,le())}function se(U,G){j=k(function(){U(r.unstable_now())},G)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(U){U.callback=null},r.unstable_continueExecution=function(){S||b||(S=!0,re(V))},r.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<U?Math.floor(1e3/U):5},r.unstable_getCurrentPriorityLevel=function(){return w},r.unstable_getFirstCallbackNode=function(){return o(h)},r.unstable_next=function(U){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var z=w;w=G;try{return U()}finally{w=z}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var z=w;w=U;try{return G()}finally{w=z}},r.unstable_scheduleCallback=function(U,G,z){var P=r.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?P+z:P):z=P,U){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=z+E,U={id:v++,callback:G,priorityLevel:U,startTime:z,expirationTime:E,sortIndex:-1},z>P?(U.sortIndex=z,t(g,U),o(h)===null&&U===o(g)&&(_?(T(j),j=-1):_=!0,se(I,z-P))):(U.sortIndex=E,t(h,U),S||b||(S=!0,re(V))),U},r.unstable_shouldYield=Ce,r.unstable_wrapCallback=function(U){var G=w;return function(){var z=w;w=G;try{return U.apply(this,arguments)}finally{w=z}}}})(Tl)),Tl}var lf;function Ky(){return lf||(lf=1,Nl.exports=Wy()),Nl.exports}var cf;function Zy(){if(cf)return Dt;cf=1;var r=Il(),t=Ky();function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function l(e,n){u(e,n),u(e+"Capture",n)}function u(e,n){for(a[e]=n,e=0;e<n.length;e++)i.add(n[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},y={};function w(e){return h.call(y,e)?!0:h.call(v,e)?!1:g.test(e)?y[e]=!0:(v[e]=!0,!1)}function b(e,n,s,c){if(s!==null&&s.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S(e,n,s,c){if(n===null||typeof n>"u"||b(e,n,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function _(e,n,s,c,f,p,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=c,this.attributeNamespace=f,this.mustUseProperty=s,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=x}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){k[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];k[n]=new _(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){k[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){k[e]=new _(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){k[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){k[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){k[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){k[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){k[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var T=/[\-:]([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 n=e.replace(T,D);k[n]=new _(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(T,D);k[n]=new _(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(T,D);k[n]=new _(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){k[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),k.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){k[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function N(e,n,s,c){var f=k.hasOwnProperty(n)?k[n]:null;(f!==null?f.type!==0:c||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(S(n,s,f,c)&&(s=null),c||f===null?w(n)&&(s===null?e.removeAttribute(n):e.setAttribute(n,""+s)):f.mustUseProperty?e[f.propertyName]=s===null?f.type===3?!1:"":s:(n=f.attributeName,c=f.attributeNamespace,s===null?e.removeAttribute(n):(f=f.type,s=f===3||f===4&&s===!0?"":""+s,c?e.setAttributeNS(c,n,s):e.setAttribute(n,s))))}var I=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),U=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var z=Object.assign,P;function E(e){if(P===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);P=n&&n[1]||""}return`
2
+ `+P+e}var W=!1;function X(e,n){if(!e||W)return"";W=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(F){var c=F}Reflect.construct(e,[],n)}else{try{n.call()}catch(F){c=F}e.call(n.prototype)}else{try{throw Error()}catch(F){c=F}e()}}catch(F){if(F&&c&&typeof F.stack=="string"){for(var f=F.stack.split(`
3
+ `),p=c.stack.split(`
4
+ `),x=f.length-1,C=p.length-1;1<=x&&0<=C&&f[x]!==p[C];)C--;for(;1<=x&&0<=C;x--,C--)if(f[x]!==p[C]){if(x!==1||C!==1)do if(x--,C--,0>C||f[x]!==p[C]){var R=`
5
+ `+f[x].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=x&&0<=C);break}}}finally{W=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?E(e):""}function H(e){switch(e.tag){case 5:return E(e.type);case 16:return E("Lazy");case 13:return E("Suspense");case 19:return E("SuspenseList");case 0:case 2:case 15:return e=X(e.type,!1),e;case 11:return e=X(e.type.render,!1),e;case 1:return e=X(e.type,!0),e;default:return""}}function J(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 B:return"Fragment";case L:return"Portal";case Q:return"Profiler";case j:return"StrictMode";case le:return"Suspense";case fe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case ae:return(e._context.displayName||"Context")+".Provider";case ce:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return n=e.displayName||null,n!==null?n:J(e.type)||"Memo";case re:n=e._payload,e=e._init;try{return J(e(n))}catch{}}return null}function ue(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(n);case 8:return n===j?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ee(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ie(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ae(e){var n=ie(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),c=""+e[n];if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,p=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){c=""+x,p.call(this,x)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function $e(e){e._valueTracker||(e._valueTracker=Ae(e))}function Me(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),c="";return e&&(c=ie(e)?e.checked?"true":"false":e.value),e=c,e!==s?(n.setValue(e),!0):!1}function Ue(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 oe(e,n){var s=n.checked;return z({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Ie(e,n){var s=n.defaultValue==null?"":n.defaultValue,c=n.checked!=null?n.checked:n.defaultChecked;s=ee(n.value!=null?n.value:s),e._wrapperState={initialChecked:c,initialValue:s,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function qe(e,n){n=n.checked,n!=null&&N(e,"checked",n,!1)}function Ke(e,n){qe(e,n);var s=ee(n.value),c=n.type;if(s!=null)c==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(c==="submit"||c==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Nt(e,n.type,s):n.hasOwnProperty("defaultValue")&&Nt(e,n.type,ee(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ye(e,n,s){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var c=n.type;if(!(c!=="submit"&&c!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,s||n===e.value||(e.value=n),e.defaultValue=n}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function Nt(e,n,s){(n!=="number"||Ue(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var br=Array.isArray;function un(e,n,s,c){if(e=e.options,n){n={};for(var f=0;f<s.length;f++)n["$"+s[f]]=!0;for(s=0;s<e.length;s++)f=n.hasOwnProperty("$"+e[s].value),e[s].selected!==f&&(e[s].selected=f),f&&c&&(e[s].defaultSelected=!0)}else{for(s=""+ee(s),n=null,f=0;f<e.length;f++){if(e[f].value===s){e[f].selected=!0,c&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function hu(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return z({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xm(e,n){var s=n.value;if(s==null){if(s=n.children,n=n.defaultValue,s!=null){if(n!=null)throw Error(o(92));if(br(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),s=n}e._wrapperState={initialValue:ee(s)}}function Jm(e,n){var s=ee(n.value),c=ee(n.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),n.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),c!=null&&(e.defaultValue=""+c)}function eg(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function tg(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 mu(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?tg(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wa,ng=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,s,c,f){MSApp.execUnsafeLocalFunction(function(){return e(n,s,c,f)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(wa=wa||document.createElement("div"),wa.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=wa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Li(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var $i={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},d_=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){d_.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),$i[n]=$i[e]})});function rg(e,n,s){return n==null||typeof n=="boolean"||n===""?"":s||typeof n!="number"||n===0||$i.hasOwnProperty(e)&&$i[e]?(""+n).trim():n+"px"}function og(e,n){e=e.style;for(var s in n)if(n.hasOwnProperty(s)){var c=s.indexOf("--")===0,f=rg(s,n[s],c);s==="float"&&(s="cssFloat"),c?e.setProperty(s,f):e[s]=f}}var f_=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 gu(e,n){if(n){if(f_[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function vu(e,n){if(e.indexOf("-")===-1)return typeof n.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 yu=null;function xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wu=null,Uo=null,Bo=null;function ig(e){if(e=os(e)){if(typeof wu!="function")throw Error(o(280));var n=e.stateNode;n&&(n=Ba(n),wu(e.stateNode,e.type,n))}}function sg(e){Uo?Bo?Bo.push(e):Bo=[e]:Uo=e}function ag(){if(Uo){var e=Uo,n=Bo;if(Bo=Uo=null,ig(e),n)for(e=0;e<n.length;e++)ig(n[e])}}function lg(e,n){return e(n)}function cg(){}var Su=!1;function ug(e,n,s){if(Su)return e(n,s);Su=!0;try{return lg(e,n,s)}finally{Su=!1,(Uo!==null||Bo!==null)&&(cg(),ag())}}function ji(e,n){var s=e.stateNode;if(s===null)return null;var c=Ba(s);if(c===null)return null;s=c[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,n,typeof s));return s}var bu=!1;if(d)try{var Mi={};Object.defineProperty(Mi,"passive",{get:function(){bu=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{bu=!1}function p_(e,n,s,c,f,p,x,C,R){var F=Array.prototype.slice.call(arguments,3);try{n.apply(s,F)}catch(Z){this.onError(Z)}}var zi=!1,Sa=null,ba=!1,ku=null,h_={onError:function(e){zi=!0,Sa=e}};function m_(e,n,s,c,f,p,x,C,R){zi=!1,Sa=null,p_.apply(h_,arguments)}function g_(e,n,s,c,f,p,x,C,R){if(m_.apply(this,arguments),zi){if(zi){var F=Sa;zi=!1,Sa=null}else throw Error(o(198));ba||(ba=!0,ku=F)}}function oo(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function dg(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function fg(e){if(oo(e)!==e)throw Error(o(188))}function v_(e){var n=e.alternate;if(!n){if(n=oo(e),n===null)throw Error(o(188));return n!==e?null:e}for(var s=e,c=n;;){var f=s.return;if(f===null)break;var p=f.alternate;if(p===null){if(c=f.return,c!==null){s=c;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===s)return fg(f),e;if(p===c)return fg(f),n;p=p.sibling}throw Error(o(188))}if(s.return!==c.return)s=f,c=p;else{for(var x=!1,C=f.child;C;){if(C===s){x=!0,s=f,c=p;break}if(C===c){x=!0,c=f,s=p;break}C=C.sibling}if(!x){for(C=p.child;C;){if(C===s){x=!0,s=p,c=f;break}if(C===c){x=!0,c=p,s=f;break}C=C.sibling}if(!x)throw Error(o(189))}}if(s.alternate!==c)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?e:n}function pg(e){return e=v_(e),e!==null?hg(e):null}function hg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=hg(e);if(n!==null)return n;e=e.sibling}return null}var mg=t.unstable_scheduleCallback,gg=t.unstable_cancelCallback,y_=t.unstable_shouldYield,x_=t.unstable_requestPaint,at=t.unstable_now,w_=t.unstable_getCurrentPriorityLevel,Cu=t.unstable_ImmediatePriority,vg=t.unstable_UserBlockingPriority,ka=t.unstable_NormalPriority,S_=t.unstable_LowPriority,yg=t.unstable_IdlePriority,Ca=null,On=null;function b_(e){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(Ca,e,void 0,(e.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:__,k_=Math.log,C_=Math.LN2;function __(e){return e>>>=0,e===0?32:31-(k_(e)/C_|0)|0}var _a=64,Ea=4194304;function Fi(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 Ra(e,n){var s=e.pendingLanes;if(s===0)return 0;var c=0,f=e.suspendedLanes,p=e.pingedLanes,x=s&268435455;if(x!==0){var C=x&~f;C!==0?c=Fi(C):(p&=x,p!==0&&(c=Fi(p)))}else x=s&~f,x!==0?c=Fi(x):p!==0&&(c=Fi(p));if(c===0)return 0;if(n!==0&&n!==c&&(n&f)===0&&(f=c&-c,p=n&-n,f>=p||f===16&&(p&4194240)!==0))return n;if((c&4)!==0&&(c|=s&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=c;0<n;)s=31-dn(n),f=1<<s,c|=e[s],n&=~f;return c}function E_(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 R_(e,n){for(var s=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes;0<p;){var x=31-dn(p),C=1<<x,R=f[x];R===-1?((C&s)===0||(C&c)!==0)&&(f[x]=E_(C,n)):R<=n&&(e.expiredLanes|=C),p&=~C}}function _u(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xg(){var e=_a;return _a<<=1,(_a&4194240)===0&&(_a=64),e}function Eu(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Vi(e,n,s){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-dn(n),e[n]=s}function P_(e,n){var s=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var c=e.eventTimes;for(e=e.expirationTimes;0<s;){var f=31-dn(s),p=1<<f;n[f]=0,c[f]=-1,e[f]=-1,s&=~p}}function Ru(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var c=31-dn(s),f=1<<c;f&n|e[c]&n&&(e[c]|=n),s&=~f}}var Ge=0;function wg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Sg,Pu,bg,kg,Cg,Iu=!1,Pa=[],kr=null,Cr=null,_r=null,Ui=new Map,Bi=new Map,Er=[],I_="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 _g(e,n){switch(e){case"focusin":case"focusout":kr=null;break;case"dragenter":case"dragleave":Cr=null;break;case"mouseover":case"mouseout":_r=null;break;case"pointerover":case"pointerout":Ui.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bi.delete(n.pointerId)}}function Hi(e,n,s,c,f,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:s,eventSystemFlags:c,nativeEvent:p,targetContainers:[f]},n!==null&&(n=os(n),n!==null&&Pu(n)),e):(e.eventSystemFlags|=c,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function O_(e,n,s,c,f){switch(n){case"focusin":return kr=Hi(kr,e,n,s,c,f),!0;case"dragenter":return Cr=Hi(Cr,e,n,s,c,f),!0;case"mouseover":return _r=Hi(_r,e,n,s,c,f),!0;case"pointerover":var p=f.pointerId;return Ui.set(p,Hi(Ui.get(p)||null,e,n,s,c,f)),!0;case"gotpointercapture":return p=f.pointerId,Bi.set(p,Hi(Bi.get(p)||null,e,n,s,c,f)),!0}return!1}function Eg(e){var n=io(e.target);if(n!==null){var s=oo(n);if(s!==null){if(n=s.tag,n===13){if(n=dg(s),n!==null){e.blockedOn=n,Cg(e.priority,function(){bg(s)});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ia(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=Nu(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var c=new s.constructor(s.type,s);yu=c,s.target.dispatchEvent(c),yu=null}else return n=os(s),n!==null&&Pu(n),e.blockedOn=s,!1;n.shift()}return!0}function Rg(e,n,s){Ia(e)&&s.delete(n)}function N_(){Iu=!1,kr!==null&&Ia(kr)&&(kr=null),Cr!==null&&Ia(Cr)&&(Cr=null),_r!==null&&Ia(_r)&&(_r=null),Ui.forEach(Rg),Bi.forEach(Rg)}function Wi(e,n){e.blockedOn===n&&(e.blockedOn=null,Iu||(Iu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,N_)))}function Ki(e){function n(f){return Wi(f,e)}if(0<Pa.length){Wi(Pa[0],e);for(var s=1;s<Pa.length;s++){var c=Pa[s];c.blockedOn===e&&(c.blockedOn=null)}}for(kr!==null&&Wi(kr,e),Cr!==null&&Wi(Cr,e),_r!==null&&Wi(_r,e),Ui.forEach(n),Bi.forEach(n),s=0;s<Er.length;s++)c=Er[s],c.blockedOn===e&&(c.blockedOn=null);for(;0<Er.length&&(s=Er[0],s.blockedOn===null);)Eg(s),s.blockedOn===null&&Er.shift()}var Ho=I.ReactCurrentBatchConfig,Oa=!0;function T_(e,n,s,c){var f=Ge,p=Ho.transition;Ho.transition=null;try{Ge=1,Ou(e,n,s,c)}finally{Ge=f,Ho.transition=p}}function A_(e,n,s,c){var f=Ge,p=Ho.transition;Ho.transition=null;try{Ge=4,Ou(e,n,s,c)}finally{Ge=f,Ho.transition=p}}function Ou(e,n,s,c){if(Oa){var f=Nu(e,n,s,c);if(f===null)qu(e,n,c,Na,s),_g(e,c);else if(O_(f,e,n,s,c))c.stopPropagation();else if(_g(e,c),n&4&&-1<I_.indexOf(e)){for(;f!==null;){var p=os(f);if(p!==null&&Sg(p),p=Nu(e,n,s,c),p===null&&qu(e,n,c,Na,s),p===f)break;f=p}f!==null&&c.stopPropagation()}else qu(e,n,c,null,s)}}var Na=null;function Nu(e,n,s,c){if(Na=null,e=xu(c),e=io(e),e!==null)if(n=oo(e),n===null)e=null;else if(s=n.tag,s===13){if(e=dg(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Na=e,null}function Pg(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(w_()){case Cu:return 1;case vg:return 4;case ka:case S_:return 16;case yg:return 536870912;default:return 16}default:return 16}}var Rr=null,Tu=null,Ta=null;function Ig(){if(Ta)return Ta;var e,n=Tu,s=n.length,c,f="value"in Rr?Rr.value:Rr.textContent,p=f.length;for(e=0;e<s&&n[e]===f[e];e++);var x=s-e;for(c=1;c<=x&&n[s-c]===f[p-c];c++);return Ta=f.slice(e,1<c?1-c:void 0)}function Aa(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Da(){return!0}function Og(){return!1}function Wt(e){function n(s,c,f,p,x){this._reactName=s,this._targetInst=f,this.type=c,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(s=e[C],this[C]=s?s(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Da:Og,this.isPropagationStopped=Og,this}return z(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Da)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Da)},persist:function(){},isPersistent:Da}),n}var Wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Au=Wt(Wo),Zi=z({},Wo,{view:0,detail:0}),D_=Wt(Zi),Du,Lu,qi,La=z({},Zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,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!==qi&&(qi&&e.type==="mousemove"?(Du=e.screenX-qi.screenX,Lu=e.screenY-qi.screenY):Lu=Du=0,qi=e),Du)},movementY:function(e){return"movementY"in e?e.movementY:Lu}}),Ng=Wt(La),L_=z({},La,{dataTransfer:0}),$_=Wt(L_),j_=z({},Zi,{relatedTarget:0}),$u=Wt(j_),M_=z({},Wo,{animationName:0,elapsedTime:0,pseudoElement:0}),z_=Wt(M_),F_=z({},Wo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V_=Wt(F_),U_=z({},Wo,{data:0}),Tg=Wt(U_),B_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H_={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"},W_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=W_[e])?!!n[e]:!1}function ju(){return K_}var Z_=z({},Zi,{key:function(e){if(e.key){var n=B_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Aa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?H_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(e){return e.type==="keypress"?Aa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Aa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q_=Wt(Z_),G_=z({},La,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ag=Wt(G_),Q_=z({},Zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),Y_=Wt(Q_),X_=z({},Wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),J_=Wt(X_),eE=z({},La,{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}),tE=Wt(eE),nE=[9,13,27,32],Mu=d&&"CompositionEvent"in window,Gi=null;d&&"documentMode"in document&&(Gi=document.documentMode);var rE=d&&"TextEvent"in window&&!Gi,Dg=d&&(!Mu||Gi&&8<Gi&&11>=Gi),Lg=" ",$g=!1;function jg(e,n){switch(e){case"keyup":return nE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ko=!1;function oE(e,n){switch(e){case"compositionend":return Mg(n);case"keypress":return n.which!==32?null:($g=!0,Lg);case"textInput":return e=n.data,e===Lg&&$g?null:e;default:return null}}function iE(e,n){if(Ko)return e==="compositionend"||!Mu&&jg(e,n)?(e=Ig(),Ta=Tu=Rr=null,Ko=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Dg&&n.locale!=="ko"?null:n.data;default:return null}}var sE={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 zg(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!sE[e.type]:n==="textarea"}function Fg(e,n,s,c){sg(c),n=Fa(n,"onChange"),0<n.length&&(s=new Au("onChange","change",null,s,c),e.push({event:s,listeners:n}))}var Qi=null,Yi=null;function aE(e){ov(e,0)}function $a(e){var n=Yo(e);if(Me(n))return e}function lE(e,n){if(e==="change")return n}var Vg=!1;if(d){var zu;if(d){var Fu="oninput"in document;if(!Fu){var Ug=document.createElement("div");Ug.setAttribute("oninput","return;"),Fu=typeof Ug.oninput=="function"}zu=Fu}else zu=!1;Vg=zu&&(!document.documentMode||9<document.documentMode)}function Bg(){Qi&&(Qi.detachEvent("onpropertychange",Hg),Yi=Qi=null)}function Hg(e){if(e.propertyName==="value"&&$a(Yi)){var n=[];Fg(n,Yi,e,xu(e)),ug(aE,n)}}function cE(e,n,s){e==="focusin"?(Bg(),Qi=n,Yi=s,Qi.attachEvent("onpropertychange",Hg)):e==="focusout"&&Bg()}function uE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $a(Yi)}function dE(e,n){if(e==="click")return $a(n)}function fE(e,n){if(e==="input"||e==="change")return $a(n)}function pE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var fn=typeof Object.is=="function"?Object.is:pE;function Xi(e,n){if(fn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),c=Object.keys(n);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var f=s[c];if(!h.call(n,f)||!fn(e[f],n[f]))return!1}return!0}function Wg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kg(e,n){var s=Wg(e);e=0;for(var c;s;){if(s.nodeType===3){if(c=e+s.textContent.length,e<=n&&c>=n)return{node:s,offset:n-e};e=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Wg(s)}}function Zg(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Zg(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function qg(){for(var e=window,n=Ue();n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=Ue(e.document)}return n}function Vu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function hE(e){var n=qg(),s=e.focusedElem,c=e.selectionRange;if(n!==s&&s&&s.ownerDocument&&Zg(s.ownerDocument.documentElement,s)){if(c!==null&&Vu(s)){if(n=c.start,e=c.end,e===void 0&&(e=n),"selectionStart"in s)s.selectionStart=n,s.selectionEnd=Math.min(e,s.value.length);else if(e=(n=s.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var f=s.textContent.length,p=Math.min(c.start,f);c=c.end===void 0?p:Math.min(c.end,f),!e.extend&&p>c&&(f=c,c=p,p=f),f=Kg(s,p);var x=Kg(s,c);f&&x&&(e.rangeCount!==1||e.anchorNode!==f.node||e.anchorOffset!==f.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),e.removeAllRanges(),p>c?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=s;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<n.length;s++)e=n[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mE=d&&"documentMode"in document&&11>=document.documentMode,Zo=null,Uu=null,Ji=null,Bu=!1;function Gg(e,n,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Bu||Zo==null||Zo!==Ue(c)||(c=Zo,"selectionStart"in c&&Vu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ji&&Xi(Ji,c)||(Ji=c,c=Fa(Uu,"onSelect"),0<c.length&&(n=new Au("onSelect","select",null,n,s),e.push({event:n,listeners:c}),n.target=Zo)))}function ja(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var qo={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionend:ja("Transition","TransitionEnd")},Hu={},Qg={};d&&(Qg=document.createElement("div").style,"AnimationEvent"in window||(delete qo.animationend.animation,delete qo.animationiteration.animation,delete qo.animationstart.animation),"TransitionEvent"in window||delete qo.transitionend.transition);function Ma(e){if(Hu[e])return Hu[e];if(!qo[e])return e;var n=qo[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in Qg)return Hu[e]=n[s];return e}var Yg=Ma("animationend"),Xg=Ma("animationiteration"),Jg=Ma("animationstart"),ev=Ma("transitionend"),tv=new Map,nv="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 Pr(e,n){tv.set(e,n),l(n,[e])}for(var Wu=0;Wu<nv.length;Wu++){var Ku=nv[Wu],gE=Ku.toLowerCase(),vE=Ku[0].toUpperCase()+Ku.slice(1);Pr(gE,"on"+vE)}Pr(Yg,"onAnimationEnd"),Pr(Xg,"onAnimationIteration"),Pr(Jg,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(ev,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var es="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(" "),yE=new Set("cancel close invalid load scroll toggle".split(" ").concat(es));function rv(e,n,s){var c=e.type||"unknown-event";e.currentTarget=s,g_(c,n,void 0,e),e.currentTarget=null}function ov(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var c=e[s],f=c.event;c=c.listeners;e:{var p=void 0;if(n)for(var x=c.length-1;0<=x;x--){var C=c[x],R=C.instance,F=C.currentTarget;if(C=C.listener,R!==p&&f.isPropagationStopped())break e;rv(f,C,F),p=R}else for(x=0;x<c.length;x++){if(C=c[x],R=C.instance,F=C.currentTarget,C=C.listener,R!==p&&f.isPropagationStopped())break e;rv(f,C,F),p=R}}}if(ba)throw e=ku,ba=!1,ku=null,e}function et(e,n){var s=n[ed];s===void 0&&(s=n[ed]=new Set);var c=e+"__bubble";s.has(c)||(iv(n,e,2,!1),s.add(c))}function Zu(e,n,s){var c=0;n&&(c|=4),iv(s,e,c,n)}var za="_reactListening"+Math.random().toString(36).slice(2);function ts(e){if(!e[za]){e[za]=!0,i.forEach(function(s){s!=="selectionchange"&&(yE.has(s)||Zu(s,!1,e),Zu(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[za]||(n[za]=!0,Zu("selectionchange",!1,n))}}function iv(e,n,s,c){switch(Pg(n)){case 1:var f=T_;break;case 4:f=A_;break;default:f=Ou}s=f.bind(null,n,s,e),f=void 0,!bu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),c?f!==void 0?e.addEventListener(n,s,{capture:!0,passive:f}):e.addEventListener(n,s,!0):f!==void 0?e.addEventListener(n,s,{passive:f}):e.addEventListener(n,s,!1)}function qu(e,n,s,c,f){var p=c;if((n&1)===0&&(n&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var C=c.stateNode.containerInfo;if(C===f||C.nodeType===8&&C.parentNode===f)break;if(x===4)for(x=c.return;x!==null;){var R=x.tag;if((R===3||R===4)&&(R=x.stateNode.containerInfo,R===f||R.nodeType===8&&R.parentNode===f))return;x=x.return}for(;C!==null;){if(x=io(C),x===null)return;if(R=x.tag,R===5||R===6){c=p=x;continue e}C=C.parentNode}}c=c.return}ug(function(){var F=p,Z=xu(s),q=[];e:{var K=tv.get(e);if(K!==void 0){var pe=Au,ye=e;switch(e){case"keypress":if(Aa(s)===0)break e;case"keydown":case"keyup":pe=q_;break;case"focusin":ye="focus",pe=$u;break;case"focusout":ye="blur",pe=$u;break;case"beforeblur":case"afterblur":pe=$u;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=Ng;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=$_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=Y_;break;case Yg:case Xg:case Jg:pe=z_;break;case ev:pe=J_;break;case"scroll":pe=D_;break;case"wheel":pe=tE;break;case"copy":case"cut":case"paste":pe=V_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Ag}var xe=(n&4)!==0,lt=!xe&&e==="scroll",$=xe?K!==null?K+"Capture":null:K;xe=[];for(var O=F,M;O!==null;){M=O;var te=M.stateNode;if(M.tag===5&&te!==null&&(M=te,$!==null&&(te=ji(O,$),te!=null&&xe.push(ns(O,te,M)))),lt)break;O=O.return}0<xe.length&&(K=new pe(K,ye,null,s,Z),q.push({event:K,listeners:xe}))}}if((n&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",pe=e==="mouseout"||e==="pointerout",K&&s!==yu&&(ye=s.relatedTarget||s.fromElement)&&(io(ye)||ye[Jn]))break e;if((pe||K)&&(K=Z.window===Z?Z:(K=Z.ownerDocument)?K.defaultView||K.parentWindow:window,pe?(ye=s.relatedTarget||s.toElement,pe=F,ye=ye?io(ye):null,ye!==null&&(lt=oo(ye),ye!==lt||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(pe=null,ye=F),pe!==ye)){if(xe=Ng,te="onMouseLeave",$="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Ag,te="onPointerLeave",$="onPointerEnter",O="pointer"),lt=pe==null?K:Yo(pe),M=ye==null?K:Yo(ye),K=new xe(te,O+"leave",pe,s,Z),K.target=lt,K.relatedTarget=M,te=null,io(Z)===F&&(xe=new xe($,O+"enter",ye,s,Z),xe.target=M,xe.relatedTarget=lt,te=xe),lt=te,pe&&ye)t:{for(xe=pe,$=ye,O=0,M=xe;M;M=Go(M))O++;for(M=0,te=$;te;te=Go(te))M++;for(;0<O-M;)xe=Go(xe),O--;for(;0<M-O;)$=Go($),M--;for(;O--;){if(xe===$||$!==null&&xe===$.alternate)break t;xe=Go(xe),$=Go($)}xe=null}else xe=null;pe!==null&&sv(q,K,pe,xe,!1),ye!==null&&lt!==null&&sv(q,lt,ye,xe,!0)}}e:{if(K=F?Yo(F):window,pe=K.nodeName&&K.nodeName.toLowerCase(),pe==="select"||pe==="input"&&K.type==="file")var be=lE;else if(zg(K))if(Vg)be=fE;else{be=uE;var _e=cE}else(pe=K.nodeName)&&pe.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(be=dE);if(be&&(be=be(e,F))){Fg(q,be,s,Z);break e}_e&&_e(e,K,F),e==="focusout"&&(_e=K._wrapperState)&&_e.controlled&&K.type==="number"&&Nt(K,"number",K.value)}switch(_e=F?Yo(F):window,e){case"focusin":(zg(_e)||_e.contentEditable==="true")&&(Zo=_e,Uu=F,Ji=null);break;case"focusout":Ji=Uu=Zo=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Gg(q,s,Z);break;case"selectionchange":if(mE)break;case"keydown":case"keyup":Gg(q,s,Z)}var Ee;if(Mu)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Ko?jg(e,s)&&(Oe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(Oe="onCompositionStart");Oe&&(Dg&&s.locale!=="ko"&&(Ko||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Ko&&(Ee=Ig()):(Rr=Z,Tu="value"in Rr?Rr.value:Rr.textContent,Ko=!0)),_e=Fa(F,Oe),0<_e.length&&(Oe=new Tg(Oe,e,null,s,Z),q.push({event:Oe,listeners:_e}),Ee?Oe.data=Ee:(Ee=Mg(s),Ee!==null&&(Oe.data=Ee)))),(Ee=rE?oE(e,s):iE(e,s))&&(F=Fa(F,"onBeforeInput"),0<F.length&&(Z=new Tg("onBeforeInput","beforeinput",null,s,Z),q.push({event:Z,listeners:F}),Z.data=Ee))}ov(q,n)})}function ns(e,n,s){return{instance:e,listener:n,currentTarget:s}}function Fa(e,n){for(var s=n+"Capture",c=[];e!==null;){var f=e,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=ji(e,s),p!=null&&c.unshift(ns(e,p,f)),p=ji(e,n),p!=null&&c.push(ns(e,p,f))),e=e.return}return c}function Go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sv(e,n,s,c,f){for(var p=n._reactName,x=[];s!==null&&s!==c;){var C=s,R=C.alternate,F=C.stateNode;if(R!==null&&R===c)break;C.tag===5&&F!==null&&(C=F,f?(R=ji(s,p),R!=null&&x.unshift(ns(s,R,C))):f||(R=ji(s,p),R!=null&&x.push(ns(s,R,C)))),s=s.return}x.length!==0&&e.push({event:n,listeners:x})}var xE=/\r\n?/g,wE=/\u0000|\uFFFD/g;function av(e){return(typeof e=="string"?e:""+e).replace(xE,`
6
+ `).replace(wE,"")}function Va(e,n,s){if(n=av(n),av(e)!==n&&s)throw Error(o(425))}function Ua(){}var Gu=null,Qu=null;function Yu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Xu=typeof setTimeout=="function"?setTimeout:void 0,SE=typeof clearTimeout=="function"?clearTimeout:void 0,lv=typeof Promise=="function"?Promise:void 0,bE=typeof queueMicrotask=="function"?queueMicrotask:typeof lv<"u"?function(e){return lv.resolve(null).then(e).catch(kE)}:Xu;function kE(e){setTimeout(function(){throw e})}function Ju(e,n){var s=n,c=0;do{var f=s.nextSibling;if(e.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"){if(c===0){e.removeChild(f),Ki(n);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=f}while(s);Ki(n)}function Ir(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function cv(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(n===0)return e;n--}else s==="/$"&&n++}e=e.previousSibling}return null}var Qo=Math.random().toString(36).slice(2),Nn="__reactFiber$"+Qo,rs="__reactProps$"+Qo,Jn="__reactContainer$"+Qo,ed="__reactEvents$"+Qo,CE="__reactListeners$"+Qo,_E="__reactHandles$"+Qo;function io(e){var n=e[Nn];if(n)return n;for(var s=e.parentNode;s;){if(n=s[Jn]||s[Nn]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=cv(e);e!==null;){if(s=e[Nn])return s;e=cv(e)}return n}e=s,s=e.parentNode}return null}function os(e){return e=e[Nn]||e[Jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Ba(e){return e[rs]||null}var td=[],Xo=-1;function Or(e){return{current:e}}function tt(e){0>Xo||(e.current=td[Xo],td[Xo]=null,Xo--)}function Je(e,n){Xo++,td[Xo]=e.current,e.current=n}var Nr={},Ct=Or(Nr),Mt=Or(!1),so=Nr;function Jo(e,n){var s=e.type.contextTypes;if(!s)return Nr;var c=e.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===n)return c.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in s)f[p]=n[p];return c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=f),f}function zt(e){return e=e.childContextTypes,e!=null}function Ha(){tt(Mt),tt(Ct)}function uv(e,n,s){if(Ct.current!==Nr)throw Error(o(168));Je(Ct,n),Je(Mt,s)}function dv(e,n,s){var c=e.stateNode;if(n=n.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var f in c)if(!(f in n))throw Error(o(108,ue(e)||"Unknown",f));return z({},s,c)}function Wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nr,so=Ct.current,Je(Ct,e),Je(Mt,Mt.current),!0}function fv(e,n,s){var c=e.stateNode;if(!c)throw Error(o(169));s?(e=dv(e,n,so),c.__reactInternalMemoizedMergedChildContext=e,tt(Mt),tt(Ct),Je(Ct,e)):tt(Mt),Je(Mt,s)}var er=null,Ka=!1,nd=!1;function pv(e){er===null?er=[e]:er.push(e)}function EE(e){Ka=!0,pv(e)}function Tr(){if(!nd&&er!==null){nd=!0;var e=0,n=Ge;try{var s=er;for(Ge=1;e<s.length;e++){var c=s[e];do c=c(!0);while(c!==null)}er=null,Ka=!1}catch(f){throw er!==null&&(er=er.slice(e+1)),mg(Cu,Tr),f}finally{Ge=n,nd=!1}}return null}var ei=[],ti=0,Za=null,qa=0,Yt=[],Xt=0,ao=null,tr=1,nr="";function lo(e,n){ei[ti++]=qa,ei[ti++]=Za,Za=e,qa=n}function hv(e,n,s){Yt[Xt++]=tr,Yt[Xt++]=nr,Yt[Xt++]=ao,ao=e;var c=tr;e=nr;var f=32-dn(c)-1;c&=~(1<<f),s+=1;var p=32-dn(n)+f;if(30<p){var x=f-f%5;p=(c&(1<<x)-1).toString(32),c>>=x,f-=x,tr=1<<32-dn(n)+f|s<<f|c,nr=p+e}else tr=1<<p|s<<f|c,nr=e}function rd(e){e.return!==null&&(lo(e,1),hv(e,1,0))}function od(e){for(;e===Za;)Za=ei[--ti],ei[ti]=null,qa=ei[--ti],ei[ti]=null;for(;e===ao;)ao=Yt[--Xt],Yt[Xt]=null,nr=Yt[--Xt],Yt[Xt]=null,tr=Yt[--Xt],Yt[Xt]=null}var Kt=null,Zt=null,rt=!1,pn=null;function mv(e,n){var s=nn(5,null,null,0);s.elementType="DELETED",s.stateNode=n,s.return=e,n=e.deletions,n===null?(e.deletions=[s],e.flags|=16):n.push(s)}function gv(e,n){switch(e.tag){case 5:var s=e.type;return n=n.nodeType!==1||s.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Kt=e,Zt=Ir(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Kt=e,Zt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(s=ao!==null?{id:tr,overflow:nr}:null,e.memoizedState={dehydrated:n,treeContext:s,retryLane:1073741824},s=nn(18,null,null,0),s.stateNode=n,s.return=e,e.child=s,Kt=e,Zt=null,!0):!1;default:return!1}}function id(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sd(e){if(rt){var n=Zt;if(n){var s=n;if(!gv(e,n)){if(id(e))throw Error(o(418));n=Ir(s.nextSibling);var c=Kt;n&&gv(e,n)?mv(c,s):(e.flags=e.flags&-4097|2,rt=!1,Kt=e)}}else{if(id(e))throw Error(o(418));e.flags=e.flags&-4097|2,rt=!1,Kt=e}}}function vv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kt=e}function Ga(e){if(e!==Kt)return!1;if(!rt)return vv(e),rt=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Yu(e.type,e.memoizedProps)),n&&(n=Zt)){if(id(e))throw yv(),Error(o(418));for(;n;)mv(e,n),n=Ir(n.nextSibling)}if(vv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(n===0){Zt=Ir(e.nextSibling);break e}n--}else s!=="$"&&s!=="$!"&&s!=="$?"||n++}e=e.nextSibling}Zt=null}}else Zt=Kt?Ir(e.stateNode.nextSibling):null;return!0}function yv(){for(var e=Zt;e;)e=Ir(e.nextSibling)}function ni(){Zt=Kt=null,rt=!1}function ad(e){pn===null?pn=[e]:pn.push(e)}var RE=I.ReactCurrentBatchConfig;function is(e,n,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(o(309));var c=s.stateNode}if(!c)throw Error(o(147,e));var f=c,p=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(x){var C=f.refs;x===null?delete C[p]:C[p]=x},n._stringRef=p,n)}if(typeof e!="string")throw Error(o(284));if(!s._owner)throw Error(o(290,e))}return e}function Qa(e,n){throw e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function xv(e){var n=e._init;return n(e._payload)}function wv(e){function n($,O){if(e){var M=$.deletions;M===null?($.deletions=[O],$.flags|=16):M.push(O)}}function s($,O){if(!e)return null;for(;O!==null;)n($,O),O=O.sibling;return null}function c($,O){for($=new Map;O!==null;)O.key!==null?$.set(O.key,O):$.set(O.index,O),O=O.sibling;return $}function f($,O){return $=Fr($,O),$.index=0,$.sibling=null,$}function p($,O,M){return $.index=M,e?(M=$.alternate,M!==null?(M=M.index,M<O?($.flags|=2,O):M):($.flags|=2,O)):($.flags|=1048576,O)}function x($){return e&&$.alternate===null&&($.flags|=2),$}function C($,O,M,te){return O===null||O.tag!==6?(O=Xd(M,$.mode,te),O.return=$,O):(O=f(O,M),O.return=$,O)}function R($,O,M,te){var be=M.type;return be===B?Z($,O,M.props.children,te,M.key):O!==null&&(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===re&&xv(be)===O.type)?(te=f(O,M.props),te.ref=is($,O,M),te.return=$,te):(te=wl(M.type,M.key,M.props,null,$.mode,te),te.ref=is($,O,M),te.return=$,te)}function F($,O,M,te){return O===null||O.tag!==4||O.stateNode.containerInfo!==M.containerInfo||O.stateNode.implementation!==M.implementation?(O=Jd(M,$.mode,te),O.return=$,O):(O=f(O,M.children||[]),O.return=$,O)}function Z($,O,M,te,be){return O===null||O.tag!==7?(O=vo(M,$.mode,te,be),O.return=$,O):(O=f(O,M),O.return=$,O)}function q($,O,M){if(typeof O=="string"&&O!==""||typeof O=="number")return O=Xd(""+O,$.mode,M),O.return=$,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case V:return M=wl(O.type,O.key,O.props,null,$.mode,M),M.ref=is($,null,O),M.return=$,M;case L:return O=Jd(O,$.mode,M),O.return=$,O;case re:var te=O._init;return q($,te(O._payload),M)}if(br(O)||G(O))return O=vo(O,$.mode,M,null),O.return=$,O;Qa($,O)}return null}function K($,O,M,te){var be=O!==null?O.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return be!==null?null:C($,O,""+M,te);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case V:return M.key===be?R($,O,M,te):null;case L:return M.key===be?F($,O,M,te):null;case re:return be=M._init,K($,O,be(M._payload),te)}if(br(M)||G(M))return be!==null?null:Z($,O,M,te,null);Qa($,M)}return null}function pe($,O,M,te,be){if(typeof te=="string"&&te!==""||typeof te=="number")return $=$.get(M)||null,C(O,$,""+te,be);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case V:return $=$.get(te.key===null?M:te.key)||null,R(O,$,te,be);case L:return $=$.get(te.key===null?M:te.key)||null,F(O,$,te,be);case re:var _e=te._init;return pe($,O,M,_e(te._payload),be)}if(br(te)||G(te))return $=$.get(M)||null,Z(O,$,te,be,null);Qa(O,te)}return null}function ye($,O,M,te){for(var be=null,_e=null,Ee=O,Oe=O=0,St=null;Ee!==null&&Oe<M.length;Oe++){Ee.index>Oe?(St=Ee,Ee=null):St=Ee.sibling;var Be=K($,Ee,M[Oe],te);if(Be===null){Ee===null&&(Ee=St);break}e&&Ee&&Be.alternate===null&&n($,Ee),O=p(Be,O,Oe),_e===null?be=Be:_e.sibling=Be,_e=Be,Ee=St}if(Oe===M.length)return s($,Ee),rt&&lo($,Oe),be;if(Ee===null){for(;Oe<M.length;Oe++)Ee=q($,M[Oe],te),Ee!==null&&(O=p(Ee,O,Oe),_e===null?be=Ee:_e.sibling=Ee,_e=Ee);return rt&&lo($,Oe),be}for(Ee=c($,Ee);Oe<M.length;Oe++)St=pe(Ee,$,Oe,M[Oe],te),St!==null&&(e&&St.alternate!==null&&Ee.delete(St.key===null?Oe:St.key),O=p(St,O,Oe),_e===null?be=St:_e.sibling=St,_e=St);return e&&Ee.forEach(function(Vr){return n($,Vr)}),rt&&lo($,Oe),be}function xe($,O,M,te){var be=G(M);if(typeof be!="function")throw Error(o(150));if(M=be.call(M),M==null)throw Error(o(151));for(var _e=be=null,Ee=O,Oe=O=0,St=null,Be=M.next();Ee!==null&&!Be.done;Oe++,Be=M.next()){Ee.index>Oe?(St=Ee,Ee=null):St=Ee.sibling;var Vr=K($,Ee,Be.value,te);if(Vr===null){Ee===null&&(Ee=St);break}e&&Ee&&Vr.alternate===null&&n($,Ee),O=p(Vr,O,Oe),_e===null?be=Vr:_e.sibling=Vr,_e=Vr,Ee=St}if(Be.done)return s($,Ee),rt&&lo($,Oe),be;if(Ee===null){for(;!Be.done;Oe++,Be=M.next())Be=q($,Be.value,te),Be!==null&&(O=p(Be,O,Oe),_e===null?be=Be:_e.sibling=Be,_e=Be);return rt&&lo($,Oe),be}for(Ee=c($,Ee);!Be.done;Oe++,Be=M.next())Be=pe(Ee,$,Oe,Be.value,te),Be!==null&&(e&&Be.alternate!==null&&Ee.delete(Be.key===null?Oe:Be.key),O=p(Be,O,Oe),_e===null?be=Be:_e.sibling=Be,_e=Be);return e&&Ee.forEach(function(sR){return n($,sR)}),rt&&lo($,Oe),be}function lt($,O,M,te){if(typeof M=="object"&&M!==null&&M.type===B&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case V:e:{for(var be=M.key,_e=O;_e!==null;){if(_e.key===be){if(be=M.type,be===B){if(_e.tag===7){s($,_e.sibling),O=f(_e,M.props.children),O.return=$,$=O;break e}}else if(_e.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===re&&xv(be)===_e.type){s($,_e.sibling),O=f(_e,M.props),O.ref=is($,_e,M),O.return=$,$=O;break e}s($,_e);break}else n($,_e);_e=_e.sibling}M.type===B?(O=vo(M.props.children,$.mode,te,M.key),O.return=$,$=O):(te=wl(M.type,M.key,M.props,null,$.mode,te),te.ref=is($,O,M),te.return=$,$=te)}return x($);case L:e:{for(_e=M.key;O!==null;){if(O.key===_e)if(O.tag===4&&O.stateNode.containerInfo===M.containerInfo&&O.stateNode.implementation===M.implementation){s($,O.sibling),O=f(O,M.children||[]),O.return=$,$=O;break e}else{s($,O);break}else n($,O);O=O.sibling}O=Jd(M,$.mode,te),O.return=$,$=O}return x($);case re:return _e=M._init,lt($,O,_e(M._payload),te)}if(br(M))return ye($,O,M,te);if(G(M))return xe($,O,M,te);Qa($,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,O!==null&&O.tag===6?(s($,O.sibling),O=f(O,M),O.return=$,$=O):(s($,O),O=Xd(M,$.mode,te),O.return=$,$=O),x($)):s($,O)}return lt}var ri=wv(!0),Sv=wv(!1),Ya=Or(null),Xa=null,oi=null,ld=null;function cd(){ld=oi=Xa=null}function ud(e){var n=Ya.current;tt(Ya),e._currentValue=n}function dd(e,n,s){for(;e!==null;){var c=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),e===s)break;e=e.return}}function ii(e,n){Xa=e,ld=oi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(Ft=!0),e.firstContext=null)}function Jt(e){var n=e._currentValue;if(ld!==e)if(e={context:e,memoizedValue:n,next:null},oi===null){if(Xa===null)throw Error(o(308));oi=e,Xa.dependencies={lanes:0,firstContext:e}}else oi=oi.next=e;return n}var co=null;function fd(e){co===null?co=[e]:co.push(e)}function bv(e,n,s,c){var f=n.interleaved;return f===null?(s.next=s,fd(n)):(s.next=f.next,f.next=s),n.interleaved=s,rr(e,c)}function rr(e,n){e.lanes|=n;var s=e.alternate;for(s!==null&&(s.lanes|=n),s=e,e=e.return;e!==null;)e.childLanes|=n,s=e.alternate,s!==null&&(s.childLanes|=n),s=e,e=e.return;return s.tag===3?s.stateNode:null}var Ar=!1;function pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kv(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function or(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Dr(e,n,s){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ve&2)!==0){var f=c.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),c.pending=n,rr(e,s)}return f=c.interleaved,f===null?(n.next=n,fd(c)):(n.next=f.next,f.next=n),c.interleaved=n,rr(e,s)}function Ja(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194240)!==0)){var c=n.lanes;c&=e.pendingLanes,s|=c,n.lanes=s,Ru(e,s)}}function Cv(e,n){var s=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var f=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var x={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};p===null?f=p=x:p=p.next=x,s=s.next}while(s!==null);p===null?f=p=n:p=p.next=n}else f=p=n;s={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:c.shared,effects:c.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}function el(e,n,s,c){var f=e.updateQueue;Ar=!1;var p=f.firstBaseUpdate,x=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var R=C,F=R.next;R.next=null,x===null?p=F:x.next=F,x=R;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,C=Z.lastBaseUpdate,C!==x&&(C===null?Z.firstBaseUpdate=F:C.next=F,Z.lastBaseUpdate=R))}if(p!==null){var q=f.baseState;x=0,Z=F=R=null,C=p;do{var K=C.lane,pe=C.eventTime;if((c&K)===K){Z!==null&&(Z=Z.next={eventTime:pe,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var ye=e,xe=C;switch(K=n,pe=s,xe.tag){case 1:if(ye=xe.payload,typeof ye=="function"){q=ye.call(pe,q,K);break e}q=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=xe.payload,K=typeof ye=="function"?ye.call(pe,q,K):ye,K==null)break e;q=z({},q,K);break e;case 2:Ar=!0}}C.callback!==null&&C.lane!==0&&(e.flags|=64,K=f.effects,K===null?f.effects=[C]:K.push(C))}else pe={eventTime:pe,lane:K,tag:C.tag,payload:C.payload,callback:C.callback,next:null},Z===null?(F=Z=pe,R=q):Z=Z.next=pe,x|=K;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;K=C,C=K.next,K.next=null,f.lastBaseUpdate=K,f.shared.pending=null}}while(!0);if(Z===null&&(R=q),f.baseState=R,f.firstBaseUpdate=F,f.lastBaseUpdate=Z,n=f.shared.interleaved,n!==null){f=n;do x|=f.lane,f=f.next;while(f!==n)}else p===null&&(f.shared.lanes=0);po|=x,e.lanes=x,e.memoizedState=q}}function _v(e,n,s){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var c=e[n],f=c.callback;if(f!==null){if(c.callback=null,c=s,typeof f!="function")throw Error(o(191,f));f.call(c)}}}var ss={},Tn=Or(ss),as=Or(ss),ls=Or(ss);function uo(e){if(e===ss)throw Error(o(174));return e}function hd(e,n){switch(Je(ls,n),Je(as,e),Je(Tn,ss),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:mu(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=mu(n,e)}tt(Tn),Je(Tn,n)}function si(){tt(Tn),tt(as),tt(ls)}function Ev(e){uo(ls.current);var n=uo(Tn.current),s=mu(n,e.type);n!==s&&(Je(as,e),Je(Tn,s))}function md(e){as.current===e&&(tt(Tn),tt(as))}var ot=Or(0);function tl(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var gd=[];function vd(){for(var e=0;e<gd.length;e++)gd[e]._workInProgressVersionPrimary=null;gd.length=0}var nl=I.ReactCurrentDispatcher,yd=I.ReactCurrentBatchConfig,fo=0,it=null,ht=null,xt=null,rl=!1,cs=!1,us=0,PE=0;function _t(){throw Error(o(321))}function xd(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!fn(e[s],n[s]))return!1;return!0}function wd(e,n,s,c,f,p){if(fo=p,it=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,nl.current=e===null||e.memoizedState===null?TE:AE,e=s(c,f),cs){p=0;do{if(cs=!1,us=0,25<=p)throw Error(o(301));p+=1,xt=ht=null,n.updateQueue=null,nl.current=DE,e=s(c,f)}while(cs)}if(nl.current=sl,n=ht!==null&&ht.next!==null,fo=0,xt=ht=it=null,rl=!1,n)throw Error(o(300));return e}function Sd(){var e=us!==0;return us=0,e}function An(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?it.memoizedState=xt=e:xt=xt.next=e,xt}function en(){if(ht===null){var e=it.alternate;e=e!==null?e.memoizedState:null}else e=ht.next;var n=xt===null?it.memoizedState:xt.next;if(n!==null)xt=n,ht=e;else{if(e===null)throw Error(o(310));ht=e,e={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},xt===null?it.memoizedState=xt=e:xt=xt.next=e}return xt}function ds(e,n){return typeof n=="function"?n(e):n}function bd(e){var n=en(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var c=ht,f=c.baseQueue,p=s.pending;if(p!==null){if(f!==null){var x=f.next;f.next=p.next,p.next=x}c.baseQueue=f=p,s.pending=null}if(f!==null){p=f.next,c=c.baseState;var C=x=null,R=null,F=p;do{var Z=F.lane;if((fo&Z)===Z)R!==null&&(R=R.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),c=F.hasEagerState?F.eagerState:e(c,F.action);else{var q={lane:Z,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};R===null?(C=R=q,x=c):R=R.next=q,it.lanes|=Z,po|=Z}F=F.next}while(F!==null&&F!==p);R===null?x=c:R.next=C,fn(c,n.memoizedState)||(Ft=!0),n.memoizedState=c,n.baseState=x,n.baseQueue=R,s.lastRenderedState=c}if(e=s.interleaved,e!==null){f=e;do p=f.lane,it.lanes|=p,po|=p,f=f.next;while(f!==e)}else f===null&&(s.lanes=0);return[n.memoizedState,s.dispatch]}function kd(e){var n=en(),s=n.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var c=s.dispatch,f=s.pending,p=n.memoizedState;if(f!==null){s.pending=null;var x=f=f.next;do p=e(p,x.action),x=x.next;while(x!==f);fn(p,n.memoizedState)||(Ft=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),s.lastRenderedState=p}return[p,c]}function Rv(){}function Pv(e,n){var s=it,c=en(),f=n(),p=!fn(c.memoizedState,f);if(p&&(c.memoizedState=f,Ft=!0),c=c.queue,Cd(Nv.bind(null,s,c,e),[e]),c.getSnapshot!==n||p||xt!==null&&xt.memoizedState.tag&1){if(s.flags|=2048,fs(9,Ov.bind(null,s,c,f,n),void 0,null),wt===null)throw Error(o(349));(fo&30)!==0||Iv(s,n,f)}return f}function Iv(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=it.updateQueue,n===null?(n={lastEffect:null,stores:null},it.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function Ov(e,n,s,c){n.value=s,n.getSnapshot=c,Tv(n)&&Av(e)}function Nv(e,n,s){return s(function(){Tv(n)&&Av(e)})}function Tv(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!fn(e,s)}catch{return!0}}function Av(e){var n=rr(e,1);n!==null&&vn(n,e,1,-1)}function Dv(e){var n=An();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:e},n.queue=e,e=e.dispatch=NE.bind(null,it,e),[n.memoizedState,e]}function fs(e,n,s,c){return e={tag:e,create:n,destroy:s,deps:c,next:null},n=it.updateQueue,n===null?(n={lastEffect:null,stores:null},it.updateQueue=n,n.lastEffect=e.next=e):(s=n.lastEffect,s===null?n.lastEffect=e.next=e:(c=s.next,s.next=e,e.next=c,n.lastEffect=e)),e}function Lv(){return en().memoizedState}function ol(e,n,s,c){var f=An();it.flags|=e,f.memoizedState=fs(1|n,s,void 0,c===void 0?null:c)}function il(e,n,s,c){var f=en();c=c===void 0?null:c;var p=void 0;if(ht!==null){var x=ht.memoizedState;if(p=x.destroy,c!==null&&xd(c,x.deps)){f.memoizedState=fs(n,s,p,c);return}}it.flags|=e,f.memoizedState=fs(1|n,s,p,c)}function $v(e,n){return ol(8390656,8,e,n)}function Cd(e,n){return il(2048,8,e,n)}function jv(e,n){return il(4,2,e,n)}function Mv(e,n){return il(4,4,e,n)}function zv(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Fv(e,n,s){return s=s!=null?s.concat([e]):null,il(4,4,zv.bind(null,n,e),s)}function _d(){}function Vv(e,n){var s=en();n=n===void 0?null:n;var c=s.memoizedState;return c!==null&&n!==null&&xd(n,c[1])?c[0]:(s.memoizedState=[e,n],e)}function Uv(e,n){var s=en();n=n===void 0?null:n;var c=s.memoizedState;return c!==null&&n!==null&&xd(n,c[1])?c[0]:(e=e(),s.memoizedState=[e,n],e)}function Bv(e,n,s){return(fo&21)===0?(e.baseState&&(e.baseState=!1,Ft=!0),e.memoizedState=s):(fn(s,n)||(s=xg(),it.lanes|=s,po|=s,e.baseState=!0),n)}function IE(e,n){var s=Ge;Ge=s!==0&&4>s?s:4,e(!0);var c=yd.transition;yd.transition={};try{e(!1),n()}finally{Ge=s,yd.transition=c}}function Hv(){return en().memoizedState}function OE(e,n,s){var c=Mr(e);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},Wv(e))Kv(n,s);else if(s=bv(e,n,s,c),s!==null){var f=At();vn(s,e,c,f),Zv(s,n,c)}}function NE(e,n,s){var c=Mr(e),f={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Wv(e))Kv(n,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var x=n.lastRenderedState,C=p(x,s);if(f.hasEagerState=!0,f.eagerState=C,fn(C,x)){var R=n.interleaved;R===null?(f.next=f,fd(n)):(f.next=R.next,R.next=f),n.interleaved=f;return}}catch{}s=bv(e,n,f,c),s!==null&&(f=At(),vn(s,e,c,f),Zv(s,n,c))}}function Wv(e){var n=e.alternate;return e===it||n!==null&&n===it}function Kv(e,n){cs=rl=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function Zv(e,n,s){if((s&4194240)!==0){var c=n.lanes;c&=e.pendingLanes,s|=c,n.lanes=s,Ru(e,s)}}var sl={readContext:Jt,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useInsertionEffect:_t,useLayoutEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useMutableSource:_t,useSyncExternalStore:_t,useId:_t,unstable_isNewReconciler:!1},TE={readContext:Jt,useCallback:function(e,n){return An().memoizedState=[e,n===void 0?null:n],e},useContext:Jt,useEffect:$v,useImperativeHandle:function(e,n,s){return s=s!=null?s.concat([e]):null,ol(4194308,4,zv.bind(null,n,e),s)},useLayoutEffect:function(e,n){return ol(4194308,4,e,n)},useInsertionEffect:function(e,n){return ol(4,2,e,n)},useMemo:function(e,n){var s=An();return n=n===void 0?null:n,e=e(),s.memoizedState=[e,n],e},useReducer:function(e,n,s){var c=An();return n=s!==void 0?s(n):n,c.memoizedState=c.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},c.queue=e,e=e.dispatch=OE.bind(null,it,e),[c.memoizedState,e]},useRef:function(e){var n=An();return e={current:e},n.memoizedState=e},useState:Dv,useDebugValue:_d,useDeferredValue:function(e){return An().memoizedState=e},useTransition:function(){var e=Dv(!1),n=e[0];return e=IE.bind(null,e[1]),An().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,s){var c=it,f=An();if(rt){if(s===void 0)throw Error(o(407));s=s()}else{if(s=n(),wt===null)throw Error(o(349));(fo&30)!==0||Iv(c,n,s)}f.memoizedState=s;var p={value:s,getSnapshot:n};return f.queue=p,$v(Nv.bind(null,c,p,e),[e]),c.flags|=2048,fs(9,Ov.bind(null,c,p,s,n),void 0,null),s},useId:function(){var e=An(),n=wt.identifierPrefix;if(rt){var s=nr,c=tr;s=(c&~(1<<32-dn(c)-1)).toString(32)+s,n=":"+n+"R"+s,s=us++,0<s&&(n+="H"+s.toString(32)),n+=":"}else s=PE++,n=":"+n+"r"+s.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},AE={readContext:Jt,useCallback:Vv,useContext:Jt,useEffect:Cd,useImperativeHandle:Fv,useInsertionEffect:jv,useLayoutEffect:Mv,useMemo:Uv,useReducer:bd,useRef:Lv,useState:function(){return bd(ds)},useDebugValue:_d,useDeferredValue:function(e){var n=en();return Bv(n,ht.memoizedState,e)},useTransition:function(){var e=bd(ds)[0],n=en().memoizedState;return[e,n]},useMutableSource:Rv,useSyncExternalStore:Pv,useId:Hv,unstable_isNewReconciler:!1},DE={readContext:Jt,useCallback:Vv,useContext:Jt,useEffect:Cd,useImperativeHandle:Fv,useInsertionEffect:jv,useLayoutEffect:Mv,useMemo:Uv,useReducer:kd,useRef:Lv,useState:function(){return kd(ds)},useDebugValue:_d,useDeferredValue:function(e){var n=en();return ht===null?n.memoizedState=e:Bv(n,ht.memoizedState,e)},useTransition:function(){var e=kd(ds)[0],n=en().memoizedState;return[e,n]},useMutableSource:Rv,useSyncExternalStore:Pv,useId:Hv,unstable_isNewReconciler:!1};function hn(e,n){if(e&&e.defaultProps){n=z({},n),e=e.defaultProps;for(var s in e)n[s]===void 0&&(n[s]=e[s]);return n}return n}function Ed(e,n,s,c){n=e.memoizedState,s=s(c,n),s=s==null?n:z({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var al={isMounted:function(e){return(e=e._reactInternals)?oo(e)===e:!1},enqueueSetState:function(e,n,s){e=e._reactInternals;var c=At(),f=Mr(e),p=or(c,f);p.payload=n,s!=null&&(p.callback=s),n=Dr(e,p,f),n!==null&&(vn(n,e,f,c),Ja(n,e,f))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var c=At(),f=Mr(e),p=or(c,f);p.tag=1,p.payload=n,s!=null&&(p.callback=s),n=Dr(e,p,f),n!==null&&(vn(n,e,f,c),Ja(n,e,f))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=At(),c=Mr(e),f=or(s,c);f.tag=2,n!=null&&(f.callback=n),n=Dr(e,f,c),n!==null&&(vn(n,e,c,s),Ja(n,e,c))}};function qv(e,n,s,c,f,p,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,p,x):n.prototype&&n.prototype.isPureReactComponent?!Xi(s,c)||!Xi(f,p):!0}function Gv(e,n,s){var c=!1,f=Nr,p=n.contextType;return typeof p=="object"&&p!==null?p=Jt(p):(f=zt(n)?so:Ct.current,c=n.contextTypes,p=(c=c!=null)?Jo(e,f):Nr),n=new n(s,p),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=al,e.stateNode=n,n._reactInternals=e,c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=f,e.__reactInternalMemoizedMaskedChildContext=p),n}function Qv(e,n,s,c){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,c),n.state!==e&&al.enqueueReplaceState(n,n.state,null)}function Rd(e,n,s,c){var f=e.stateNode;f.props=s,f.state=e.memoizedState,f.refs={},pd(e);var p=n.contextType;typeof p=="object"&&p!==null?f.context=Jt(p):(p=zt(n)?so:Ct.current,f.context=Jo(e,p)),f.state=e.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Ed(e,n,p,s),f.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(n=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),n!==f.state&&al.enqueueReplaceState(f,f.state,null),el(e,s,f,c),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308)}function ai(e,n){try{var s="",c=n;do s+=H(c),c=c.return;while(c);var f=s}catch(p){f=`
7
+ Error generating stack: `+p.message+`
8
+ `+p.stack}return{value:e,source:n,stack:f,digest:null}}function Pd(e,n,s){return{value:e,source:null,stack:s??null,digest:n??null}}function Id(e,n){try{console.error(n.value)}catch(s){setTimeout(function(){throw s})}}var LE=typeof WeakMap=="function"?WeakMap:Map;function Yv(e,n,s){s=or(-1,s),s.tag=3,s.payload={element:null};var c=n.value;return s.callback=function(){hl||(hl=!0,Hd=c),Id(e,n)},s}function Xv(e,n,s){s=or(-1,s),s.tag=3;var c=e.type.getDerivedStateFromError;if(typeof c=="function"){var f=n.value;s.payload=function(){return c(f)},s.callback=function(){Id(e,n)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(s.callback=function(){Id(e,n),typeof c!="function"&&($r===null?$r=new Set([this]):$r.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),s}function Jv(e,n,s){var c=e.pingCache;if(c===null){c=e.pingCache=new LE;var f=new Set;c.set(n,f)}else f=c.get(n),f===void 0&&(f=new Set,c.set(n,f));f.has(s)||(f.add(s),e=GE.bind(null,e,n,s),n.then(e,e))}function ey(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function ty(e,n,s,c,f){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(n=or(-1,1),n.tag=2,Dr(s,n,1))),s.lanes|=1),e):(e.flags|=65536,e.lanes=f,e)}var $E=I.ReactCurrentOwner,Ft=!1;function Tt(e,n,s,c){n.child=e===null?Sv(n,null,s,c):ri(n,e.child,s,c)}function ny(e,n,s,c,f){s=s.render;var p=n.ref;return ii(n,f),c=wd(e,n,s,c,p,f),s=Sd(),e!==null&&!Ft?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,ir(e,n,f)):(rt&&s&&rd(n),n.flags|=1,Tt(e,n,c,f),n.child)}function ry(e,n,s,c,f){if(e===null){var p=s.type;return typeof p=="function"&&!Yd(p)&&p.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(n.tag=15,n.type=p,oy(e,n,p,c,f)):(e=wl(s.type,null,c,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,(e.lanes&f)===0){var x=p.memoizedProps;if(s=s.compare,s=s!==null?s:Xi,s(x,c)&&e.ref===n.ref)return ir(e,n,f)}return n.flags|=1,e=Fr(p,c),e.ref=n.ref,e.return=n,n.child=e}function oy(e,n,s,c,f){if(e!==null){var p=e.memoizedProps;if(Xi(p,c)&&e.ref===n.ref)if(Ft=!1,n.pendingProps=c=p,(e.lanes&f)!==0)(e.flags&131072)!==0&&(Ft=!0);else return n.lanes=e.lanes,ir(e,n,f)}return Od(e,n,s,c,f)}function iy(e,n,s){var c=n.pendingProps,f=c.children,p=e!==null?e.memoizedState:null;if(c.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(ci,qt),qt|=s;else{if((s&1073741824)===0)return e=p!==null?p.baseLanes|s:s,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Je(ci,qt),qt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=p!==null?p.baseLanes:s,Je(ci,qt),qt|=c}else p!==null?(c=p.baseLanes|s,n.memoizedState=null):c=s,Je(ci,qt),qt|=c;return Tt(e,n,f,s),n.child}function sy(e,n){var s=n.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(n.flags|=512,n.flags|=2097152)}function Od(e,n,s,c,f){var p=zt(s)?so:Ct.current;return p=Jo(n,p),ii(n,f),s=wd(e,n,s,c,p,f),c=Sd(),e!==null&&!Ft?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~f,ir(e,n,f)):(rt&&c&&rd(n),n.flags|=1,Tt(e,n,s,f),n.child)}function ay(e,n,s,c,f){if(zt(s)){var p=!0;Wa(n)}else p=!1;if(ii(n,f),n.stateNode===null)cl(e,n),Gv(n,s,c),Rd(n,s,c,f),c=!0;else if(e===null){var x=n.stateNode,C=n.memoizedProps;x.props=C;var R=x.context,F=s.contextType;typeof F=="object"&&F!==null?F=Jt(F):(F=zt(s)?so:Ct.current,F=Jo(n,F));var Z=s.getDerivedStateFromProps,q=typeof Z=="function"||typeof x.getSnapshotBeforeUpdate=="function";q||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==c||R!==F)&&Qv(n,x,c,F),Ar=!1;var K=n.memoizedState;x.state=K,el(n,c,x,f),R=n.memoizedState,C!==c||K!==R||Mt.current||Ar?(typeof Z=="function"&&(Ed(n,s,Z,c),R=n.memoizedState),(C=Ar||qv(n,s,C,c,K,R,F))?(q||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=c,n.memoizedState=R),x.props=c,x.state=R,x.context=F,c=C):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),c=!1)}else{x=n.stateNode,kv(e,n),C=n.memoizedProps,F=n.type===n.elementType?C:hn(n.type,C),x.props=F,q=n.pendingProps,K=x.context,R=s.contextType,typeof R=="object"&&R!==null?R=Jt(R):(R=zt(s)?so:Ct.current,R=Jo(n,R));var pe=s.getDerivedStateFromProps;(Z=typeof pe=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==q||K!==R)&&Qv(n,x,c,R),Ar=!1,K=n.memoizedState,x.state=K,el(n,c,x,f);var ye=n.memoizedState;C!==q||K!==ye||Mt.current||Ar?(typeof pe=="function"&&(Ed(n,s,pe,c),ye=n.memoizedState),(F=Ar||qv(n,s,F,c,K,ye,R)||!1)?(Z||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(c,ye,R),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(c,ye,R)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=ye),x.props=c,x.state=ye,x.context=R,c=F):(typeof x.componentDidUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),c=!1)}return Nd(e,n,s,c,p,f)}function Nd(e,n,s,c,f,p){sy(e,n);var x=(n.flags&128)!==0;if(!c&&!x)return f&&fv(n,s,!1),ir(e,n,p);c=n.stateNode,$E.current=n;var C=x&&typeof s.getDerivedStateFromError!="function"?null:c.render();return n.flags|=1,e!==null&&x?(n.child=ri(n,e.child,null,p),n.child=ri(n,null,C,p)):Tt(e,n,C,p),n.memoizedState=c.state,f&&fv(n,s,!0),n.child}function ly(e){var n=e.stateNode;n.pendingContext?uv(e,n.pendingContext,n.pendingContext!==n.context):n.context&&uv(e,n.context,!1),hd(e,n.containerInfo)}function cy(e,n,s,c,f){return ni(),ad(f),n.flags|=256,Tt(e,n,s,c),n.child}var Td={dehydrated:null,treeContext:null,retryLane:0};function Ad(e){return{baseLanes:e,cachePool:null,transitions:null}}function uy(e,n,s){var c=n.pendingProps,f=ot.current,p=!1,x=(n.flags&128)!==0,C;if((C=x)||(C=e!==null&&e.memoizedState===null?!1:(f&2)!==0),C?(p=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(f|=1),Je(ot,f&1),e===null)return sd(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=c.children,e=c.fallback,p?(c=n.mode,p=n.child,x={mode:"hidden",children:x},(c&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=Sl(x,c,0,null),e=vo(e,c,s,null),p.return=n,e.return=n,p.sibling=e,n.child=p,n.child.memoizedState=Ad(s),n.memoizedState=Td,e):Dd(n,x));if(f=e.memoizedState,f!==null&&(C=f.dehydrated,C!==null))return jE(e,n,x,c,C,f,s);if(p){p=c.fallback,x=n.mode,f=e.child,C=f.sibling;var R={mode:"hidden",children:c.children};return(x&1)===0&&n.child!==f?(c=n.child,c.childLanes=0,c.pendingProps=R,n.deletions=null):(c=Fr(f,R),c.subtreeFlags=f.subtreeFlags&14680064),C!==null?p=Fr(C,p):(p=vo(p,x,s,null),p.flags|=2),p.return=n,c.return=n,c.sibling=p,n.child=c,c=p,p=n.child,x=e.child.memoizedState,x=x===null?Ad(s):{baseLanes:x.baseLanes|s,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=e.childLanes&~s,n.memoizedState=Td,c}return p=e.child,e=p.sibling,c=Fr(p,{mode:"visible",children:c.children}),(n.mode&1)===0&&(c.lanes=s),c.return=n,c.sibling=null,e!==null&&(s=n.deletions,s===null?(n.deletions=[e],n.flags|=16):s.push(e)),n.child=c,n.memoizedState=null,c}function Dd(e,n){return n=Sl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function ll(e,n,s,c){return c!==null&&ad(c),ri(n,e.child,null,s),e=Dd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function jE(e,n,s,c,f,p,x){if(s)return n.flags&256?(n.flags&=-257,c=Pd(Error(o(422))),ll(e,n,x,c)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(p=c.fallback,f=n.mode,c=Sl({mode:"visible",children:c.children},f,0,null),p=vo(p,f,x,null),p.flags|=2,c.return=n,p.return=n,c.sibling=p,n.child=c,(n.mode&1)!==0&&ri(n,e.child,null,x),n.child.memoizedState=Ad(x),n.memoizedState=Td,p);if((n.mode&1)===0)return ll(e,n,x,null);if(f.data==="$!"){if(c=f.nextSibling&&f.nextSibling.dataset,c)var C=c.dgst;return c=C,p=Error(o(419)),c=Pd(p,c,void 0),ll(e,n,x,c)}if(C=(x&e.childLanes)!==0,Ft||C){if(c=wt,c!==null){switch(x&-x){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(c.suspendedLanes|x))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,rr(e,f),vn(c,e,f,-1))}return Qd(),c=Pd(Error(o(421))),ll(e,n,x,c)}return f.data==="$?"?(n.flags|=128,n.child=e.child,n=QE.bind(null,e),f._reactRetry=n,null):(e=p.treeContext,Zt=Ir(f.nextSibling),Kt=n,rt=!0,pn=null,e!==null&&(Yt[Xt++]=tr,Yt[Xt++]=nr,Yt[Xt++]=ao,tr=e.id,nr=e.overflow,ao=n),n=Dd(n,c.children),n.flags|=4096,n)}function dy(e,n,s){e.lanes|=n;var c=e.alternate;c!==null&&(c.lanes|=n),dd(e.return,n,s)}function Ld(e,n,s,c,f){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:f}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=c,p.tail=s,p.tailMode=f)}function fy(e,n,s){var c=n.pendingProps,f=c.revealOrder,p=c.tail;if(Tt(e,n,c.children,s),c=ot.current,(c&2)!==0)c=c&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dy(e,s,n);else if(e.tag===19)dy(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}c&=1}if(Je(ot,c),(n.mode&1)===0)n.memoizedState=null;else switch(f){case"forwards":for(s=n.child,f=null;s!==null;)e=s.alternate,e!==null&&tl(e)===null&&(f=s),s=s.sibling;s=f,s===null?(f=n.child,n.child=null):(f=s.sibling,s.sibling=null),Ld(n,!1,f,s,p);break;case"backwards":for(s=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&tl(e)===null){n.child=f;break}e=f.sibling,f.sibling=s,s=f,f=e}Ld(n,!0,s,null,p);break;case"together":Ld(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function cl(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ir(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),po|=n.lanes,(s&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,s=Fr(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=Fr(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function ME(e,n,s){switch(n.tag){case 3:ly(n),ni();break;case 5:Ev(n);break;case 1:zt(n.type)&&Wa(n);break;case 4:hd(n,n.stateNode.containerInfo);break;case 10:var c=n.type._context,f=n.memoizedProps.value;Je(Ya,c._currentValue),c._currentValue=f;break;case 13:if(c=n.memoizedState,c!==null)return c.dehydrated!==null?(Je(ot,ot.current&1),n.flags|=128,null):(s&n.child.childLanes)!==0?uy(e,n,s):(Je(ot,ot.current&1),e=ir(e,n,s),e!==null?e.sibling:null);Je(ot,ot.current&1);break;case 19:if(c=(s&n.childLanes)!==0,(e.flags&128)!==0){if(c)return fy(e,n,s);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Je(ot,ot.current),c)break;return null;case 22:case 23:return n.lanes=0,iy(e,n,s)}return ir(e,n,s)}var py,$d,hy,my;py=function(e,n){for(var s=n.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},$d=function(){},hy=function(e,n,s,c){var f=e.memoizedProps;if(f!==c){e=n.stateNode,uo(Tn.current);var p=null;switch(s){case"input":f=oe(e,f),c=oe(e,c),p=[];break;case"select":f=z({},f,{value:void 0}),c=z({},c,{value:void 0}),p=[];break;case"textarea":f=hu(e,f),c=hu(e,c),p=[];break;default:typeof f.onClick!="function"&&typeof c.onClick=="function"&&(e.onclick=Ua)}gu(s,c);var x;s=null;for(F in f)if(!c.hasOwnProperty(F)&&f.hasOwnProperty(F)&&f[F]!=null)if(F==="style"){var C=f[F];for(x in C)C.hasOwnProperty(x)&&(s||(s={}),s[x]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(a.hasOwnProperty(F)?p||(p=[]):(p=p||[]).push(F,null));for(F in c){var R=c[F];if(C=f?.[F],c.hasOwnProperty(F)&&R!==C&&(R!=null||C!=null))if(F==="style")if(C){for(x in C)!C.hasOwnProperty(x)||R&&R.hasOwnProperty(x)||(s||(s={}),s[x]="");for(x in R)R.hasOwnProperty(x)&&C[x]!==R[x]&&(s||(s={}),s[x]=R[x])}else s||(p||(p=[]),p.push(F,s)),s=R;else F==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,C=C?C.__html:void 0,R!=null&&C!==R&&(p=p||[]).push(F,R)):F==="children"?typeof R!="string"&&typeof R!="number"||(p=p||[]).push(F,""+R):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(a.hasOwnProperty(F)?(R!=null&&F==="onScroll"&&et("scroll",e),p||C===R||(p=[])):(p=p||[]).push(F,R))}s&&(p=p||[]).push("style",s);var F=p;(n.updateQueue=F)&&(n.flags|=4)}},my=function(e,n,s,c){s!==c&&(n.flags|=4)};function ps(e,n){if(!rt)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function Et(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,c=0;if(n)for(var f=e.child;f!==null;)s|=f.lanes|f.childLanes,c|=f.subtreeFlags&14680064,c|=f.flags&14680064,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)s|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=c,e.childLanes=s,n}function zE(e,n,s){var c=n.pendingProps;switch(od(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(n),null;case 1:return zt(n.type)&&Ha(),Et(n),null;case 3:return c=n.stateNode,si(),tt(Mt),tt(Ct),vd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(e===null||e.child===null)&&(Ga(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,pn!==null&&(Zd(pn),pn=null))),$d(e,n),Et(n),null;case 5:md(n);var f=uo(ls.current);if(s=n.type,e!==null&&n.stateNode!=null)hy(e,n,s,c,f),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!c){if(n.stateNode===null)throw Error(o(166));return Et(n),null}if(e=uo(Tn.current),Ga(n)){c=n.stateNode,s=n.type;var p=n.memoizedProps;switch(c[Nn]=n,c[rs]=p,e=(n.mode&1)!==0,s){case"dialog":et("cancel",c),et("close",c);break;case"iframe":case"object":case"embed":et("load",c);break;case"video":case"audio":for(f=0;f<es.length;f++)et(es[f],c);break;case"source":et("error",c);break;case"img":case"image":case"link":et("error",c),et("load",c);break;case"details":et("toggle",c);break;case"input":Ie(c,p),et("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!p.multiple},et("invalid",c);break;case"textarea":Xm(c,p),et("invalid",c)}gu(s,p),f=null;for(var x in p)if(p.hasOwnProperty(x)){var C=p[x];x==="children"?typeof C=="string"?c.textContent!==C&&(p.suppressHydrationWarning!==!0&&Va(c.textContent,C,e),f=["children",C]):typeof C=="number"&&c.textContent!==""+C&&(p.suppressHydrationWarning!==!0&&Va(c.textContent,C,e),f=["children",""+C]):a.hasOwnProperty(x)&&C!=null&&x==="onScroll"&&et("scroll",c)}switch(s){case"input":$e(c),Ye(c,p,!0);break;case"textarea":$e(c),eg(c);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(c.onclick=Ua)}c=f,n.updateQueue=c,c!==null&&(n.flags|=4)}else{x=f.nodeType===9?f:f.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tg(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=x.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof c.is=="string"?e=x.createElement(s,{is:c.is}):(e=x.createElement(s),s==="select"&&(x=e,c.multiple?x.multiple=!0:c.size&&(x.size=c.size))):e=x.createElementNS(e,s),e[Nn]=n,e[rs]=c,py(e,n,!1,!1),n.stateNode=e;e:{switch(x=vu(s,c),s){case"dialog":et("cancel",e),et("close",e),f=c;break;case"iframe":case"object":case"embed":et("load",e),f=c;break;case"video":case"audio":for(f=0;f<es.length;f++)et(es[f],e);f=c;break;case"source":et("error",e),f=c;break;case"img":case"image":case"link":et("error",e),et("load",e),f=c;break;case"details":et("toggle",e),f=c;break;case"input":Ie(e,c),f=oe(e,c),et("invalid",e);break;case"option":f=c;break;case"select":e._wrapperState={wasMultiple:!!c.multiple},f=z({},c,{value:void 0}),et("invalid",e);break;case"textarea":Xm(e,c),f=hu(e,c),et("invalid",e);break;default:f=c}gu(s,f),C=f;for(p in C)if(C.hasOwnProperty(p)){var R=C[p];p==="style"?og(e,R):p==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&ng(e,R)):p==="children"?typeof R=="string"?(s!=="textarea"||R!=="")&&Li(e,R):typeof R=="number"&&Li(e,""+R):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(a.hasOwnProperty(p)?R!=null&&p==="onScroll"&&et("scroll",e):R!=null&&N(e,p,R,x))}switch(s){case"input":$e(e),Ye(e,c,!1);break;case"textarea":$e(e),eg(e);break;case"option":c.value!=null&&e.setAttribute("value",""+ee(c.value));break;case"select":e.multiple=!!c.multiple,p=c.value,p!=null?un(e,!!c.multiple,p,!1):c.defaultValue!=null&&un(e,!!c.multiple,c.defaultValue,!0);break;default:typeof f.onClick=="function"&&(e.onclick=Ua)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Et(n),null;case 6:if(e&&n.stateNode!=null)my(e,n,e.memoizedProps,c);else{if(typeof c!="string"&&n.stateNode===null)throw Error(o(166));if(s=uo(ls.current),uo(Tn.current),Ga(n)){if(c=n.stateNode,s=n.memoizedProps,c[Nn]=n,(p=c.nodeValue!==s)&&(e=Kt,e!==null))switch(e.tag){case 3:Va(c.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Va(c.nodeValue,s,(e.mode&1)!==0)}p&&(n.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[Nn]=n,n.stateNode=c}return Et(n),null;case 13:if(tt(ot),c=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(rt&&Zt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)yv(),ni(),n.flags|=98560,p=!1;else if(p=Ga(n),c!==null&&c.dehydrated!==null){if(e===null){if(!p)throw Error(o(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(o(317));p[Nn]=n}else ni(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Et(n),p=!1}else pn!==null&&(Zd(pn),pn=null),p=!0;if(!p)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=s,n):(c=c!==null,c!==(e!==null&&e.memoizedState!==null)&&c&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(ot.current&1)!==0?mt===0&&(mt=3):Qd())),n.updateQueue!==null&&(n.flags|=4),Et(n),null);case 4:return si(),$d(e,n),e===null&&ts(n.stateNode.containerInfo),Et(n),null;case 10:return ud(n.type._context),Et(n),null;case 17:return zt(n.type)&&Ha(),Et(n),null;case 19:if(tt(ot),p=n.memoizedState,p===null)return Et(n),null;if(c=(n.flags&128)!==0,x=p.rendering,x===null)if(c)ps(p,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(x=tl(e),x!==null){for(n.flags|=128,ps(p,!1),c=x.updateQueue,c!==null&&(n.updateQueue=c,n.flags|=4),n.subtreeFlags=0,c=s,s=n.child;s!==null;)p=s,e=c,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,e=x.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return Je(ot,ot.current&1|2),n.child}e=e.sibling}p.tail!==null&&at()>ui&&(n.flags|=128,c=!0,ps(p,!1),n.lanes=4194304)}else{if(!c)if(e=tl(x),e!==null){if(n.flags|=128,c=!0,s=e.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),ps(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!rt)return Et(n),null}else 2*at()-p.renderingStartTime>ui&&s!==1073741824&&(n.flags|=128,c=!0,ps(p,!1),n.lanes=4194304);p.isBackwards?(x.sibling=n.child,n.child=x):(s=p.last,s!==null?s.sibling=x:n.child=x,p.last=x)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=at(),n.sibling=null,s=ot.current,Je(ot,c?s&1|2:s&1),n):(Et(n),null);case 22:case 23:return Gd(),c=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==c&&(n.flags|=8192),c&&(n.mode&1)!==0?(qt&1073741824)!==0&&(Et(n),n.subtreeFlags&6&&(n.flags|=8192)):Et(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function FE(e,n){switch(od(n),n.tag){case 1:return zt(n.type)&&Ha(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return si(),tt(Mt),tt(Ct),vd(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return md(n),null;case 13:if(tt(ot),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));ni()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return tt(ot),null;case 4:return si(),null;case 10:return ud(n.type._context),null;case 22:case 23:return Gd(),null;case 24:return null;default:return null}}var ul=!1,Rt=!1,VE=typeof WeakSet=="function"?WeakSet:Set,ve=null;function li(e,n){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){st(e,n,c)}else s.current=null}function jd(e,n,s){try{s()}catch(c){st(e,n,c)}}var gy=!1;function UE(e,n){if(Gu=Oa,e=qg(),Vu(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var f=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var x=0,C=-1,R=-1,F=0,Z=0,q=e,K=null;t:for(;;){for(var pe;q!==s||f!==0&&q.nodeType!==3||(C=x+f),q!==p||c!==0&&q.nodeType!==3||(R=x+c),q.nodeType===3&&(x+=q.nodeValue.length),(pe=q.firstChild)!==null;)K=q,q=pe;for(;;){if(q===e)break t;if(K===s&&++F===f&&(C=x),K===p&&++Z===c&&(R=x),(pe=q.nextSibling)!==null)break;q=K,K=q.parentNode}q=pe}s=C===-1||R===-1?null:{start:C,end:R}}else s=null}s=s||{start:0,end:0}}else s=null;for(Qu={focusedElem:e,selectionRange:s},Oa=!1,ve=n;ve!==null;)if(n=ve,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ve=e;else for(;ve!==null;){n=ve;try{var ye=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var xe=ye.memoizedProps,lt=ye.memoizedState,$=n.stateNode,O=$.getSnapshotBeforeUpdate(n.elementType===n.type?xe:hn(n.type,xe),lt);$.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var M=n.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(te){st(n,n.return,te)}if(e=n.sibling,e!==null){e.return=n.return,ve=e;break}ve=n.return}return ye=gy,gy=!1,ye}function hs(e,n,s){var c=n.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&e)===e){var p=f.destroy;f.destroy=void 0,p!==void 0&&jd(n,s,p)}f=f.next}while(f!==c)}}function dl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var c=s.create;s.destroy=c()}s=s.next}while(s!==n)}}function Md(e){var n=e.ref;if(n!==null){var s=e.stateNode;e.tag,e=s,typeof n=="function"?n(e):n.current=e}}function vy(e){var n=e.alternate;n!==null&&(e.alternate=null,vy(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Nn],delete n[rs],delete n[ed],delete n[CE],delete n[_E])),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 yy(e){return e.tag===5||e.tag===3||e.tag===4}function xy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yy(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 zd(e,n,s){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?s.nodeType===8?s.parentNode.insertBefore(e,n):s.insertBefore(e,n):(s.nodeType===8?(n=s.parentNode,n.insertBefore(e,s)):(n=s,n.appendChild(e)),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=Ua));else if(c!==4&&(e=e.child,e!==null))for(zd(e,n,s),e=e.sibling;e!==null;)zd(e,n,s),e=e.sibling}function Fd(e,n,s){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(c!==4&&(e=e.child,e!==null))for(Fd(e,n,s),e=e.sibling;e!==null;)Fd(e,n,s),e=e.sibling}var bt=null,mn=!1;function Lr(e,n,s){for(s=s.child;s!==null;)wy(e,n,s),s=s.sibling}function wy(e,n,s){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Ca,s)}catch{}switch(s.tag){case 5:Rt||li(s,n);case 6:var c=bt,f=mn;bt=null,Lr(e,n,s),bt=c,mn=f,bt!==null&&(mn?(e=bt,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):bt.removeChild(s.stateNode));break;case 18:bt!==null&&(mn?(e=bt,s=s.stateNode,e.nodeType===8?Ju(e.parentNode,s):e.nodeType===1&&Ju(e,s),Ki(e)):Ju(bt,s.stateNode));break;case 4:c=bt,f=mn,bt=s.stateNode.containerInfo,mn=!0,Lr(e,n,s),bt=c,mn=f;break;case 0:case 11:case 14:case 15:if(!Rt&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){f=c=c.next;do{var p=f,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&jd(s,n,x),f=f.next}while(f!==c)}Lr(e,n,s);break;case 1:if(!Rt&&(li(s,n),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(C){st(s,n,C)}Lr(e,n,s);break;case 21:Lr(e,n,s);break;case 22:s.mode&1?(Rt=(c=Rt)||s.memoizedState!==null,Lr(e,n,s),Rt=c):Lr(e,n,s);break;default:Lr(e,n,s)}}function Sy(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new VE),n.forEach(function(c){var f=YE.bind(null,e,c);s.has(c)||(s.add(c),c.then(f,f))})}}function gn(e,n){var s=n.deletions;if(s!==null)for(var c=0;c<s.length;c++){var f=s[c];try{var p=e,x=n,C=x;e:for(;C!==null;){switch(C.tag){case 5:bt=C.stateNode,mn=!1;break e;case 3:bt=C.stateNode.containerInfo,mn=!0;break e;case 4:bt=C.stateNode.containerInfo,mn=!0;break e}C=C.return}if(bt===null)throw Error(o(160));wy(p,x,f),bt=null,mn=!1;var R=f.alternate;R!==null&&(R.return=null),f.return=null}catch(F){st(f,n,F)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)by(n,e),n=n.sibling}function by(e,n){var s=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gn(n,e),Dn(e),c&4){try{hs(3,e,e.return),dl(3,e)}catch(xe){st(e,e.return,xe)}try{hs(5,e,e.return)}catch(xe){st(e,e.return,xe)}}break;case 1:gn(n,e),Dn(e),c&512&&s!==null&&li(s,s.return);break;case 5:if(gn(n,e),Dn(e),c&512&&s!==null&&li(s,s.return),e.flags&32){var f=e.stateNode;try{Li(f,"")}catch(xe){st(e,e.return,xe)}}if(c&4&&(f=e.stateNode,f!=null)){var p=e.memoizedProps,x=s!==null?s.memoizedProps:p,C=e.type,R=e.updateQueue;if(e.updateQueue=null,R!==null)try{C==="input"&&p.type==="radio"&&p.name!=null&&qe(f,p),vu(C,x);var F=vu(C,p);for(x=0;x<R.length;x+=2){var Z=R[x],q=R[x+1];Z==="style"?og(f,q):Z==="dangerouslySetInnerHTML"?ng(f,q):Z==="children"?Li(f,q):N(f,Z,q,F)}switch(C){case"input":Ke(f,p);break;case"textarea":Jm(f,p);break;case"select":var K=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var pe=p.value;pe!=null?un(f,!!p.multiple,pe,!1):K!==!!p.multiple&&(p.defaultValue!=null?un(f,!!p.multiple,p.defaultValue,!0):un(f,!!p.multiple,p.multiple?[]:"",!1))}f[rs]=p}catch(xe){st(e,e.return,xe)}}break;case 6:if(gn(n,e),Dn(e),c&4){if(e.stateNode===null)throw Error(o(162));f=e.stateNode,p=e.memoizedProps;try{f.nodeValue=p}catch(xe){st(e,e.return,xe)}}break;case 3:if(gn(n,e),Dn(e),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Ki(n.containerInfo)}catch(xe){st(e,e.return,xe)}break;case 4:gn(n,e),Dn(e);break;case 13:gn(n,e),Dn(e),f=e.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(Bd=at())),c&4&&Sy(e);break;case 22:if(Z=s!==null&&s.memoizedState!==null,e.mode&1?(Rt=(F=Rt)||Z,gn(n,e),Rt=F):gn(n,e),Dn(e),c&8192){if(F=e.memoizedState!==null,(e.stateNode.isHidden=F)&&!Z&&(e.mode&1)!==0)for(ve=e,Z=e.child;Z!==null;){for(q=ve=Z;ve!==null;){switch(K=ve,pe=K.child,K.tag){case 0:case 11:case 14:case 15:hs(4,K,K.return);break;case 1:li(K,K.return);var ye=K.stateNode;if(typeof ye.componentWillUnmount=="function"){c=K,s=K.return;try{n=c,ye.props=n.memoizedProps,ye.state=n.memoizedState,ye.componentWillUnmount()}catch(xe){st(c,s,xe)}}break;case 5:li(K,K.return);break;case 22:if(K.memoizedState!==null){_y(q);continue}}pe!==null?(pe.return=K,ve=pe):_y(q)}Z=Z.sibling}e:for(Z=null,q=e;;){if(q.tag===5){if(Z===null){Z=q;try{f=q.stateNode,F?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(C=q.stateNode,R=q.memoizedProps.style,x=R!=null&&R.hasOwnProperty("display")?R.display:null,C.style.display=rg("display",x))}catch(xe){st(e,e.return,xe)}}}else if(q.tag===6){if(Z===null)try{q.stateNode.nodeValue=F?"":q.memoizedProps}catch(xe){st(e,e.return,xe)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===e)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===e)break e;for(;q.sibling===null;){if(q.return===null||q.return===e)break e;Z===q&&(Z=null),q=q.return}Z===q&&(Z=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:gn(n,e),Dn(e),c&4&&Sy(e);break;case 21:break;default:gn(n,e),Dn(e)}}function Dn(e){var n=e.flags;if(n&2){try{e:{for(var s=e.return;s!==null;){if(yy(s)){var c=s;break e}s=s.return}throw Error(o(160))}switch(c.tag){case 5:var f=c.stateNode;c.flags&32&&(Li(f,""),c.flags&=-33);var p=xy(e);Fd(e,p,f);break;case 3:case 4:var x=c.stateNode.containerInfo,C=xy(e);zd(e,C,x);break;default:throw Error(o(161))}}catch(R){st(e,e.return,R)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function BE(e,n,s){ve=e,ky(e)}function ky(e,n,s){for(var c=(e.mode&1)!==0;ve!==null;){var f=ve,p=f.child;if(f.tag===22&&c){var x=f.memoizedState!==null||ul;if(!x){var C=f.alternate,R=C!==null&&C.memoizedState!==null||Rt;C=ul;var F=Rt;if(ul=x,(Rt=R)&&!F)for(ve=f;ve!==null;)x=ve,R=x.child,x.tag===22&&x.memoizedState!==null?Ey(f):R!==null?(R.return=x,ve=R):Ey(f);for(;p!==null;)ve=p,ky(p),p=p.sibling;ve=f,ul=C,Rt=F}Cy(e)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,ve=p):Cy(e)}}function Cy(e){for(;ve!==null;){var n=ve;if((n.flags&8772)!==0){var s=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Rt||dl(5,n);break;case 1:var c=n.stateNode;if(n.flags&4&&!Rt)if(s===null)c.componentDidMount();else{var f=n.elementType===n.type?s.memoizedProps:hn(n.type,s.memoizedProps);c.componentDidUpdate(f,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&_v(n,p,c);break;case 3:var x=n.updateQueue;if(x!==null){if(s=null,n.child!==null)switch(n.child.tag){case 5:s=n.child.stateNode;break;case 1:s=n.child.stateNode}_v(n,x,s)}break;case 5:var C=n.stateNode;if(s===null&&n.flags&4){s=C;var R=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&s.focus();break;case"img":R.src&&(s.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var F=n.alternate;if(F!==null){var Z=F.memoizedState;if(Z!==null){var q=Z.dehydrated;q!==null&&Ki(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Rt||n.flags&512&&Md(n)}catch(K){st(n,n.return,K)}}if(n===e){ve=null;break}if(s=n.sibling,s!==null){s.return=n.return,ve=s;break}ve=n.return}}function _y(e){for(;ve!==null;){var n=ve;if(n===e){ve=null;break}var s=n.sibling;if(s!==null){s.return=n.return,ve=s;break}ve=n.return}}function Ey(e){for(;ve!==null;){var n=ve;try{switch(n.tag){case 0:case 11:case 15:var s=n.return;try{dl(4,n)}catch(R){st(n,s,R)}break;case 1:var c=n.stateNode;if(typeof c.componentDidMount=="function"){var f=n.return;try{c.componentDidMount()}catch(R){st(n,f,R)}}var p=n.return;try{Md(n)}catch(R){st(n,p,R)}break;case 5:var x=n.return;try{Md(n)}catch(R){st(n,x,R)}}}catch(R){st(n,n.return,R)}if(n===e){ve=null;break}var C=n.sibling;if(C!==null){C.return=n.return,ve=C;break}ve=n.return}}var HE=Math.ceil,fl=I.ReactCurrentDispatcher,Vd=I.ReactCurrentOwner,tn=I.ReactCurrentBatchConfig,Ve=0,wt=null,dt=null,kt=0,qt=0,ci=Or(0),mt=0,ms=null,po=0,pl=0,Ud=0,gs=null,Vt=null,Bd=0,ui=1/0,sr=null,hl=!1,Hd=null,$r=null,ml=!1,jr=null,gl=0,vs=0,Wd=null,vl=-1,yl=0;function At(){return(Ve&6)!==0?at():vl!==-1?vl:vl=at()}function Mr(e){return(e.mode&1)===0?1:(Ve&2)!==0&&kt!==0?kt&-kt:RE.transition!==null?(yl===0&&(yl=xg()),yl):(e=Ge,e!==0||(e=window.event,e=e===void 0?16:Pg(e.type)),e)}function vn(e,n,s,c){if(50<vs)throw vs=0,Wd=null,Error(o(185));Vi(e,s,c),((Ve&2)===0||e!==wt)&&(e===wt&&((Ve&2)===0&&(pl|=s),mt===4&&zr(e,kt)),Ut(e,c),s===1&&Ve===0&&(n.mode&1)===0&&(ui=at()+500,Ka&&Tr()))}function Ut(e,n){var s=e.callbackNode;R_(e,n);var c=Ra(e,e===wt?kt:0);if(c===0)s!==null&&gg(s),e.callbackNode=null,e.callbackPriority=0;else if(n=c&-c,e.callbackPriority!==n){if(s!=null&&gg(s),n===1)e.tag===0?EE(Py.bind(null,e)):pv(Py.bind(null,e)),bE(function(){(Ve&6)===0&&Tr()}),s=null;else{switch(wg(c)){case 1:s=Cu;break;case 4:s=vg;break;case 16:s=ka;break;case 536870912:s=yg;break;default:s=ka}s=$y(s,Ry.bind(null,e))}e.callbackPriority=n,e.callbackNode=s}}function Ry(e,n){if(vl=-1,yl=0,(Ve&6)!==0)throw Error(o(327));var s=e.callbackNode;if(di()&&e.callbackNode!==s)return null;var c=Ra(e,e===wt?kt:0);if(c===0)return null;if((c&30)!==0||(c&e.expiredLanes)!==0||n)n=xl(e,c);else{n=c;var f=Ve;Ve|=2;var p=Oy();(wt!==e||kt!==n)&&(sr=null,ui=at()+500,mo(e,n));do try{ZE();break}catch(C){Iy(e,C)}while(!0);cd(),fl.current=p,Ve=f,dt!==null?n=0:(wt=null,kt=0,n=mt)}if(n!==0){if(n===2&&(f=_u(e),f!==0&&(c=f,n=Kd(e,f))),n===1)throw s=ms,mo(e,0),zr(e,c),Ut(e,at()),s;if(n===6)zr(e,c);else{if(f=e.current.alternate,(c&30)===0&&!WE(f)&&(n=xl(e,c),n===2&&(p=_u(e),p!==0&&(c=p,n=Kd(e,p))),n===1))throw s=ms,mo(e,0),zr(e,c),Ut(e,at()),s;switch(e.finishedWork=f,e.finishedLanes=c,n){case 0:case 1:throw Error(o(345));case 2:go(e,Vt,sr);break;case 3:if(zr(e,c),(c&130023424)===c&&(n=Bd+500-at(),10<n)){if(Ra(e,0)!==0)break;if(f=e.suspendedLanes,(f&c)!==c){At(),e.pingedLanes|=e.suspendedLanes&f;break}e.timeoutHandle=Xu(go.bind(null,e,Vt,sr),n);break}go(e,Vt,sr);break;case 4:if(zr(e,c),(c&4194240)===c)break;for(n=e.eventTimes,f=-1;0<c;){var x=31-dn(c);p=1<<x,x=n[x],x>f&&(f=x),c&=~p}if(c=f,c=at()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*HE(c/1960))-c,10<c){e.timeoutHandle=Xu(go.bind(null,e,Vt,sr),c);break}go(e,Vt,sr);break;case 5:go(e,Vt,sr);break;default:throw Error(o(329))}}}return Ut(e,at()),e.callbackNode===s?Ry.bind(null,e):null}function Kd(e,n){var s=gs;return e.current.memoizedState.isDehydrated&&(mo(e,n).flags|=256),e=xl(e,n),e!==2&&(n=Vt,Vt=s,n!==null&&Zd(n)),e}function Zd(e){Vt===null?Vt=e:Vt.push.apply(Vt,e)}function WE(e){for(var n=e;;){if(n.flags&16384){var s=n.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var f=s[c],p=f.getSnapshot;f=f.value;try{if(!fn(p(),f))return!1}catch{return!1}}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function zr(e,n){for(n&=~Ud,n&=~pl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var s=31-dn(n),c=1<<s;e[s]=-1,n&=~c}}function Py(e){if((Ve&6)!==0)throw Error(o(327));di();var n=Ra(e,0);if((n&1)===0)return Ut(e,at()),null;var s=xl(e,n);if(e.tag!==0&&s===2){var c=_u(e);c!==0&&(n=c,s=Kd(e,c))}if(s===1)throw s=ms,mo(e,0),zr(e,n),Ut(e,at()),s;if(s===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,go(e,Vt,sr),Ut(e,at()),null}function qd(e,n){var s=Ve;Ve|=1;try{return e(n)}finally{Ve=s,Ve===0&&(ui=at()+500,Ka&&Tr())}}function ho(e){jr!==null&&jr.tag===0&&(Ve&6)===0&&di();var n=Ve;Ve|=1;var s=tn.transition,c=Ge;try{if(tn.transition=null,Ge=1,e)return e()}finally{Ge=c,tn.transition=s,Ve=n,(Ve&6)===0&&Tr()}}function Gd(){qt=ci.current,tt(ci)}function mo(e,n){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,SE(s)),dt!==null)for(s=dt.return;s!==null;){var c=s;switch(od(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ha();break;case 3:si(),tt(Mt),tt(Ct),vd();break;case 5:md(c);break;case 4:si();break;case 13:tt(ot);break;case 19:tt(ot);break;case 10:ud(c.type._context);break;case 22:case 23:Gd()}s=s.return}if(wt=e,dt=e=Fr(e.current,null),kt=qt=n,mt=0,ms=null,Ud=pl=po=0,Vt=gs=null,co!==null){for(n=0;n<co.length;n++)if(s=co[n],c=s.interleaved,c!==null){s.interleaved=null;var f=c.next,p=s.pending;if(p!==null){var x=p.next;p.next=f,c.next=x}s.pending=c}co=null}return e}function Iy(e,n){do{var s=dt;try{if(cd(),nl.current=sl,rl){for(var c=it.memoizedState;c!==null;){var f=c.queue;f!==null&&(f.pending=null),c=c.next}rl=!1}if(fo=0,xt=ht=it=null,cs=!1,us=0,Vd.current=null,s===null||s.return===null){mt=1,ms=n,dt=null;break}e:{var p=e,x=s.return,C=s,R=n;if(n=kt,C.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var F=R,Z=C,q=Z.tag;if((Z.mode&1)===0&&(q===0||q===11||q===15)){var K=Z.alternate;K?(Z.updateQueue=K.updateQueue,Z.memoizedState=K.memoizedState,Z.lanes=K.lanes):(Z.updateQueue=null,Z.memoizedState=null)}var pe=ey(x);if(pe!==null){pe.flags&=-257,ty(pe,x,C,p,n),pe.mode&1&&Jv(p,F,n),n=pe,R=F;var ye=n.updateQueue;if(ye===null){var xe=new Set;xe.add(R),n.updateQueue=xe}else ye.add(R);break e}else{if((n&1)===0){Jv(p,F,n),Qd();break e}R=Error(o(426))}}else if(rt&&C.mode&1){var lt=ey(x);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),ty(lt,x,C,p,n),ad(ai(R,C));break e}}p=R=ai(R,C),mt!==4&&(mt=2),gs===null?gs=[p]:gs.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var $=Yv(p,R,n);Cv(p,$);break e;case 1:C=R;var O=p.type,M=p.stateNode;if((p.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&($r===null||!$r.has(M)))){p.flags|=65536,n&=-n,p.lanes|=n;var te=Xv(p,C,n);Cv(p,te);break e}}p=p.return}while(p!==null)}Ty(s)}catch(be){n=be,dt===s&&s!==null&&(dt=s=s.return);continue}break}while(!0)}function Oy(){var e=fl.current;return fl.current=sl,e===null?sl:e}function Qd(){(mt===0||mt===3||mt===2)&&(mt=4),wt===null||(po&268435455)===0&&(pl&268435455)===0||zr(wt,kt)}function xl(e,n){var s=Ve;Ve|=2;var c=Oy();(wt!==e||kt!==n)&&(sr=null,mo(e,n));do try{KE();break}catch(f){Iy(e,f)}while(!0);if(cd(),Ve=s,fl.current=c,dt!==null)throw Error(o(261));return wt=null,kt=0,mt}function KE(){for(;dt!==null;)Ny(dt)}function ZE(){for(;dt!==null&&!y_();)Ny(dt)}function Ny(e){var n=Ly(e.alternate,e,qt);e.memoizedProps=e.pendingProps,n===null?Ty(e):dt=n,Vd.current=null}function Ty(e){var n=e;do{var s=n.alternate;if(e=n.return,(n.flags&32768)===0){if(s=zE(s,n,qt),s!==null){dt=s;return}}else{if(s=FE(s,n),s!==null){s.flags&=32767,dt=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{mt=6,dt=null;return}}if(n=n.sibling,n!==null){dt=n;return}dt=n=e}while(n!==null);mt===0&&(mt=5)}function go(e,n,s){var c=Ge,f=tn.transition;try{tn.transition=null,Ge=1,qE(e,n,s,c)}finally{tn.transition=f,Ge=c}return null}function qE(e,n,s,c){do di();while(jr!==null);if((Ve&6)!==0)throw Error(o(327));s=e.finishedWork;var f=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var p=s.lanes|s.childLanes;if(P_(e,p),e===wt&&(dt=wt=null,kt=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ml||(ml=!0,$y(ka,function(){return di(),null})),p=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||p){p=tn.transition,tn.transition=null;var x=Ge;Ge=1;var C=Ve;Ve|=4,Vd.current=null,UE(e,s),by(s,e),hE(Qu),Oa=!!Gu,Qu=Gu=null,e.current=s,BE(s),x_(),Ve=C,Ge=x,tn.transition=p}else e.current=s;if(ml&&(ml=!1,jr=e,gl=f),p=e.pendingLanes,p===0&&($r=null),b_(s.stateNode),Ut(e,at()),n!==null)for(c=e.onRecoverableError,s=0;s<n.length;s++)f=n[s],c(f.value,{componentStack:f.stack,digest:f.digest});if(hl)throw hl=!1,e=Hd,Hd=null,e;return(gl&1)!==0&&e.tag!==0&&di(),p=e.pendingLanes,(p&1)!==0?e===Wd?vs++:(vs=0,Wd=e):vs=0,Tr(),null}function di(){if(jr!==null){var e=wg(gl),n=tn.transition,s=Ge;try{if(tn.transition=null,Ge=16>e?16:e,jr===null)var c=!1;else{if(e=jr,jr=null,gl=0,(Ve&6)!==0)throw Error(o(331));var f=Ve;for(Ve|=4,ve=e.current;ve!==null;){var p=ve,x=p.child;if((ve.flags&16)!==0){var C=p.deletions;if(C!==null){for(var R=0;R<C.length;R++){var F=C[R];for(ve=F;ve!==null;){var Z=ve;switch(Z.tag){case 0:case 11:case 15:hs(8,Z,p)}var q=Z.child;if(q!==null)q.return=Z,ve=q;else for(;ve!==null;){Z=ve;var K=Z.sibling,pe=Z.return;if(vy(Z),Z===F){ve=null;break}if(K!==null){K.return=pe,ve=K;break}ve=pe}}}var ye=p.alternate;if(ye!==null){var xe=ye.child;if(xe!==null){ye.child=null;do{var lt=xe.sibling;xe.sibling=null,xe=lt}while(xe!==null)}}ve=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,ve=x;else e:for(;ve!==null;){if(p=ve,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:hs(9,p,p.return)}var $=p.sibling;if($!==null){$.return=p.return,ve=$;break e}ve=p.return}}var O=e.current;for(ve=O;ve!==null;){x=ve;var M=x.child;if((x.subtreeFlags&2064)!==0&&M!==null)M.return=x,ve=M;else e:for(x=O;ve!==null;){if(C=ve,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:dl(9,C)}}catch(be){st(C,C.return,be)}if(C===x){ve=null;break e}var te=C.sibling;if(te!==null){te.return=C.return,ve=te;break e}ve=C.return}}if(Ve=f,Tr(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(Ca,e)}catch{}c=!0}return c}finally{Ge=s,tn.transition=n}}return!1}function Ay(e,n,s){n=ai(s,n),n=Yv(e,n,1),e=Dr(e,n,1),n=At(),e!==null&&(Vi(e,1,n),Ut(e,n))}function st(e,n,s){if(e.tag===3)Ay(e,e,s);else for(;n!==null;){if(n.tag===3){Ay(n,e,s);break}else if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&($r===null||!$r.has(c))){e=ai(s,e),e=Xv(n,e,1),n=Dr(n,e,1),e=At(),n!==null&&(Vi(n,1,e),Ut(n,e));break}}n=n.return}}function GE(e,n,s){var c=e.pingCache;c!==null&&c.delete(n),n=At(),e.pingedLanes|=e.suspendedLanes&s,wt===e&&(kt&s)===s&&(mt===4||mt===3&&(kt&130023424)===kt&&500>at()-Bd?mo(e,0):Ud|=s),Ut(e,n)}function Dy(e,n){n===0&&((e.mode&1)===0?n=1:(n=Ea,Ea<<=1,(Ea&130023424)===0&&(Ea=4194304)));var s=At();e=rr(e,n),e!==null&&(Vi(e,n,s),Ut(e,s))}function QE(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),Dy(e,s)}function YE(e,n){var s=0;switch(e.tag){case 13:var c=e.stateNode,f=e.memoizedState;f!==null&&(s=f.retryLane);break;case 19:c=e.stateNode;break;default:throw Error(o(314))}c!==null&&c.delete(n),Dy(e,s)}var Ly;Ly=function(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps||Mt.current)Ft=!0;else{if((e.lanes&s)===0&&(n.flags&128)===0)return Ft=!1,ME(e,n,s);Ft=(e.flags&131072)!==0}else Ft=!1,rt&&(n.flags&1048576)!==0&&hv(n,qa,n.index);switch(n.lanes=0,n.tag){case 2:var c=n.type;cl(e,n),e=n.pendingProps;var f=Jo(n,Ct.current);ii(n,s),f=wd(null,n,c,e,f,s);var p=Sd();return n.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,zt(c)?(p=!0,Wa(n)):p=!1,n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,pd(n),f.updater=al,n.stateNode=f,f._reactInternals=n,Rd(n,c,e,s),n=Nd(null,n,c,!0,p,s)):(n.tag=0,rt&&p&&rd(n),Tt(null,n,f,s),n=n.child),n;case 16:c=n.elementType;e:{switch(cl(e,n),e=n.pendingProps,f=c._init,c=f(c._payload),n.type=c,f=n.tag=JE(c),e=hn(c,e),f){case 0:n=Od(null,n,c,e,s);break e;case 1:n=ay(null,n,c,e,s);break e;case 11:n=ny(null,n,c,e,s);break e;case 14:n=ry(null,n,c,hn(c.type,e),s);break e}throw Error(o(306,c,""))}return n;case 0:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:hn(c,f),Od(e,n,c,f,s);case 1:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:hn(c,f),ay(e,n,c,f,s);case 3:e:{if(ly(n),e===null)throw Error(o(387));c=n.pendingProps,p=n.memoizedState,f=p.element,kv(e,n),el(n,c,null,s);var x=n.memoizedState;if(c=x.element,p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){f=ai(Error(o(423)),n),n=cy(e,n,c,s,f);break e}else if(c!==f){f=ai(Error(o(424)),n),n=cy(e,n,c,s,f);break e}else for(Zt=Ir(n.stateNode.containerInfo.firstChild),Kt=n,rt=!0,pn=null,s=Sv(n,null,c,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ni(),c===f){n=ir(e,n,s);break e}Tt(e,n,c,s)}n=n.child}return n;case 5:return Ev(n),e===null&&sd(n),c=n.type,f=n.pendingProps,p=e!==null?e.memoizedProps:null,x=f.children,Yu(c,f)?x=null:p!==null&&Yu(c,p)&&(n.flags|=32),sy(e,n),Tt(e,n,x,s),n.child;case 6:return e===null&&sd(n),null;case 13:return uy(e,n,s);case 4:return hd(n,n.stateNode.containerInfo),c=n.pendingProps,e===null?n.child=ri(n,null,c,s):Tt(e,n,c,s),n.child;case 11:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:hn(c,f),ny(e,n,c,f,s);case 7:return Tt(e,n,n.pendingProps,s),n.child;case 8:return Tt(e,n,n.pendingProps.children,s),n.child;case 12:return Tt(e,n,n.pendingProps.children,s),n.child;case 10:e:{if(c=n.type._context,f=n.pendingProps,p=n.memoizedProps,x=f.value,Je(Ya,c._currentValue),c._currentValue=x,p!==null)if(fn(p.value,x)){if(p.children===f.children&&!Mt.current){n=ir(e,n,s);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var C=p.dependencies;if(C!==null){x=p.child;for(var R=C.firstContext;R!==null;){if(R.context===c){if(p.tag===1){R=or(-1,s&-s),R.tag=2;var F=p.updateQueue;if(F!==null){F=F.shared;var Z=F.pending;Z===null?R.next=R:(R.next=Z.next,Z.next=R),F.pending=R}}p.lanes|=s,R=p.alternate,R!==null&&(R.lanes|=s),dd(p.return,s,n),C.lanes|=s;break}R=R.next}}else if(p.tag===10)x=p.type===n.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(o(341));x.lanes|=s,C=x.alternate,C!==null&&(C.lanes|=s),dd(x,s,n),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===n){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}Tt(e,n,f.children,s),n=n.child}return n;case 9:return f=n.type,c=n.pendingProps.children,ii(n,s),f=Jt(f),c=c(f),n.flags|=1,Tt(e,n,c,s),n.child;case 14:return c=n.type,f=hn(c,n.pendingProps),f=hn(c.type,f),ry(e,n,c,f,s);case 15:return oy(e,n,n.type,n.pendingProps,s);case 17:return c=n.type,f=n.pendingProps,f=n.elementType===c?f:hn(c,f),cl(e,n),n.tag=1,zt(c)?(e=!0,Wa(n)):e=!1,ii(n,s),Gv(n,c,f),Rd(n,c,f,s),Nd(null,n,c,!0,e,s);case 19:return fy(e,n,s);case 22:return iy(e,n,s)}throw Error(o(156,n.tag))};function $y(e,n){return mg(e,n)}function XE(e,n,s,c){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,n,s,c){return new XE(e,n,s,c)}function Yd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function JE(e){if(typeof e=="function")return Yd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ce)return 11;if(e===ke)return 14}return 2}function Fr(e,n){var s=e.alternate;return s===null?(s=nn(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function wl(e,n,s,c,f,p){var x=2;if(c=e,typeof e=="function")Yd(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case B:return vo(s.children,f,p,n);case j:x=8,f|=8;break;case Q:return e=nn(12,s,n,f|2),e.elementType=Q,e.lanes=p,e;case le:return e=nn(13,s,n,f),e.elementType=le,e.lanes=p,e;case fe:return e=nn(19,s,n,f),e.elementType=fe,e.lanes=p,e;case se:return Sl(s,f,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:x=10;break e;case Ce:x=9;break e;case ce:x=11;break e;case ke:x=14;break e;case re:x=16,c=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return n=nn(x,s,n,f),n.elementType=e,n.type=c,n.lanes=p,n}function vo(e,n,s,c){return e=nn(7,e,c,n),e.lanes=s,e}function Sl(e,n,s,c){return e=nn(22,e,c,n),e.elementType=se,e.lanes=s,e.stateNode={isHidden:!1},e}function Xd(e,n,s){return e=nn(6,e,null,n),e.lanes=s,e}function Jd(e,n,s){return n=nn(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function eR(e,n,s,c,f){this.tag=n,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=Eu(0),this.expirationTimes=Eu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.identifierPrefix=c,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function ef(e,n,s,c,f,p,x,C,R){return e=new eR(e,n,s,C,R),n===1?(n=1,p===!0&&(n|=8)):n=0,p=nn(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},pd(p),e}function tR(e,n,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:c==null?null:""+c,children:e,containerInfo:n,implementation:s}}function jy(e){if(!e)return Nr;e=e._reactInternals;e:{if(oo(e)!==e||e.tag!==1)throw Error(o(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(zt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(e.tag===1){var s=e.type;if(zt(s))return dv(e,s,n)}return n}function My(e,n,s,c,f,p,x,C,R){return e=ef(s,c,!0,e,f,p,x,C,R),e.context=jy(null),s=e.current,c=At(),f=Mr(s),p=or(c,f),p.callback=n??null,Dr(s,p,f),e.current.lanes=f,Vi(e,f,c),Ut(e,c),e}function bl(e,n,s,c){var f=n.current,p=At(),x=Mr(f);return s=jy(s),n.context===null?n.context=s:n.pendingContext=s,n=or(p,x),n.payload={element:e},c=c===void 0?null:c,c!==null&&(n.callback=c),e=Dr(f,n,x),e!==null&&(vn(e,f,x,p),Ja(e,f,x)),x}function kl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function zy(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function tf(e,n){zy(e,n),(e=e.alternate)&&zy(e,n)}function nR(){return null}var Fy=typeof reportError=="function"?reportError:function(e){console.error(e)};function nf(e){this._internalRoot=e}Cl.prototype.render=nf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));bl(e,n,null,null)},Cl.prototype.unmount=nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;ho(function(){bl(null,e,null,null)}),n[Jn]=null}};function Cl(e){this._internalRoot=e}Cl.prototype.unstable_scheduleHydration=function(e){if(e){var n=kg();e={blockedOn:null,target:e,priority:n};for(var s=0;s<Er.length&&n!==0&&n<Er[s].priority;s++);Er.splice(s,0,e),s===0&&Eg(e)}};function rf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _l(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vy(){}function rR(e,n,s,c,f){if(f){if(typeof c=="function"){var p=c;c=function(){var F=kl(x);p.call(F)}}var x=My(n,c,e,0,null,!1,!1,"",Vy);return e._reactRootContainer=x,e[Jn]=x.current,ts(e.nodeType===8?e.parentNode:e),ho(),x}for(;f=e.lastChild;)e.removeChild(f);if(typeof c=="function"){var C=c;c=function(){var F=kl(R);C.call(F)}}var R=ef(e,0,!1,null,null,!1,!1,"",Vy);return e._reactRootContainer=R,e[Jn]=R.current,ts(e.nodeType===8?e.parentNode:e),ho(function(){bl(n,R,s,c)}),R}function El(e,n,s,c,f){var p=s._reactRootContainer;if(p){var x=p;if(typeof f=="function"){var C=f;f=function(){var R=kl(x);C.call(R)}}bl(n,x,e,f)}else x=rR(s,n,e,f,c);return kl(x)}Sg=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var s=Fi(n.pendingLanes);s!==0&&(Ru(n,s|1),Ut(n,at()),(Ve&6)===0&&(ui=at()+500,Tr()))}break;case 13:ho(function(){var c=rr(e,1);if(c!==null){var f=At();vn(c,e,1,f)}}),tf(e,1)}},Pu=function(e){if(e.tag===13){var n=rr(e,134217728);if(n!==null){var s=At();vn(n,e,134217728,s)}tf(e,134217728)}},bg=function(e){if(e.tag===13){var n=Mr(e),s=rr(e,n);if(s!==null){var c=At();vn(s,e,n,c)}tf(e,n)}},kg=function(){return Ge},Cg=function(e,n){var s=Ge;try{return Ge=e,n()}finally{Ge=s}},wu=function(e,n,s){switch(n){case"input":if(Ke(e,s),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<s.length;n++){var c=s[n];if(c!==e&&c.form===e.form){var f=Ba(c);if(!f)throw Error(o(90));Me(c),Ke(c,f)}}}break;case"textarea":Jm(e,s);break;case"select":n=s.value,n!=null&&un(e,!!s.multiple,n,!1)}},lg=qd,cg=ho;var oR={usingClientEntryPoint:!1,Events:[os,Yo,Ba,sg,ag,qd]},ys={findFiberByHostInstance:io,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},iR={bundleType:ys.bundleType,version:ys.version,rendererPackageName:ys.rendererPackageName,rendererConfig:ys.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pg(e),e===null?null:e.stateNode},findFiberByHostInstance:ys.findFiberByHostInstance||nR,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 Rl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rl.isDisabled&&Rl.supportsFiber)try{Ca=Rl.inject(iR),On=Rl}catch{}}return Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oR,Dt.createPortal=function(e,n){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rf(n))throw Error(o(200));return tR(e,n,null,s)},Dt.createRoot=function(e,n){if(!rf(e))throw Error(o(299));var s=!1,c="",f=Fy;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),n=ef(e,1,!1,null,null,s,!1,c,f),e[Jn]=n.current,ts(e.nodeType===8?e.parentNode:e),new nf(n)},Dt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=pg(n),e=e===null?null:e.stateNode,e},Dt.flushSync=function(e){return ho(e)},Dt.hydrate=function(e,n,s){if(!_l(n))throw Error(o(200));return El(null,e,n,!0,s)},Dt.hydrateRoot=function(e,n,s){if(!rf(e))throw Error(o(405));var c=s!=null&&s.hydratedSources||null,f=!1,p="",x=Fy;if(s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),n=My(n,null,e,1,s??null,f,!1,p,x),e[Jn]=n.current,ts(e),c)for(e=0;e<c.length;e++)s=c[e],f=s._getVersion,f=f(s._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[s,f]:n.mutableSourceEagerHydrationData.push(s,f);return new Cl(n)},Dt.render=function(e,n,s){if(!_l(n))throw Error(o(200));return El(null,e,n,!1,s)},Dt.unmountComponentAtNode=function(e){if(!_l(e))throw Error(o(40));return e._reactRootContainer?(ho(function(){El(null,null,e,!1,function(){e._reactRootContainer=null,e[Jn]=null})}),!0):!1},Dt.unstable_batchedUpdates=qd,Dt.unstable_renderSubtreeIntoContainer=function(e,n,s,c){if(!_l(s))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return El(e,n,s,!1,c)},Dt.version="18.3.1-next-f1338f8080-20240426",Dt}var uf;function df(){if(uf)return Ol.exports;uf=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Ol.exports=Zy(),Ol.exports}var ff;function qy(){if(ff)return xs;ff=1;var r=df();return xs.createRoot=r.createRoot,xs.hydrateRoot=r.hydrateRoot,xs}var Gy=qy(),ze;(function(r){r.assertEqual=a=>{};function t(a){}r.assertIs=t;function o(a){throw new Error}r.assertNever=o,r.arrayToEnum=a=>{const l={};for(const u of a)l[u]=u;return l},r.getValidEnumValues=a=>{const l=r.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),u={};for(const d of l)u[d]=a[d];return r.objectValues(u)},r.objectValues=a=>r.objectKeys(a).map(function(l){return a[l]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const l=[];for(const u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.push(u);return l},r.find=(a,l)=>{for(const u of a)if(l(u))return u},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,l=" | "){return a.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}r.joinValues=i,r.jsonStringifyReplacer=(a,l)=>typeof l=="bigint"?l.toString():l})(ze||(ze={}));var pf;(function(r){r.mergeShapes=(t,o)=>({...t,...o})})(pf||(pf={}));const me=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ar=r=>{switch(typeof r){case"undefined":return me.undefined;case"string":return me.string;case"number":return Number.isNaN(r)?me.nan:me.number;case"boolean":return me.boolean;case"function":return me.function;case"bigint":return me.bigint;case"symbol":return me.symbol;case"object":return Array.isArray(r)?me.array:r===null?me.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?me.promise:typeof Map<"u"&&r instanceof Map?me.map:typeof Set<"u"&&r instanceof Set?me.set:typeof Date<"u"&&r instanceof Date?me.date:me.object;default:return me.unknown}},Y=ze.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 Ln extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const o=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,o):this.__proto__=o,this.name="ZodError",this.issues=t}format(t){const o=t||function(l){return l.message},i={_errors:[]},a=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(a);else if(u.code==="invalid_return_type")a(u.returnTypeError);else if(u.code==="invalid_arguments")a(u.argumentsError);else if(u.path.length===0)i._errors.push(o(u));else{let d=i,h=0;for(;h<u.path.length;){const g=u.path[h];h===u.path.length-1?(d[g]=d[g]||{_errors:[]},d[g]._errors.push(o(u))):d[g]=d[g]||{_errors:[]},d=d[g],h++}}};return a(this),i}static assert(t){if(!(t instanceof Ln))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=o=>o.message){const o={},i=[];for(const a of this.issues)a.path.length>0?(o[a.path[0]]=o[a.path[0]]||[],o[a.path[0]].push(t(a))):i.push(t(a));return{formErrors:i,fieldErrors:o}}get formErrors(){return this.flatten()}}Ln.create=r=>new Ln(r);const Al=(r,t)=>{let o;switch(r.code){case Y.invalid_type:r.received===me.undefined?o="Required":o=`Expected ${r.expected}, received ${r.received}`;break;case Y.invalid_literal:o=`Invalid literal value, expected ${JSON.stringify(r.expected,ze.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:o=`Unrecognized key(s) in object: ${ze.joinValues(r.keys,", ")}`;break;case Y.invalid_union:o="Invalid input";break;case Y.invalid_union_discriminator:o=`Invalid discriminator value. Expected ${ze.joinValues(r.options)}`;break;case Y.invalid_enum_value:o=`Invalid enum value. Expected ${ze.joinValues(r.options)}, received '${r.received}'`;break;case Y.invalid_arguments:o="Invalid function arguments";break;case Y.invalid_return_type:o="Invalid function return type";break;case Y.invalid_date:o="Invalid date";break;case Y.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(o=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(o=`${o} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?o=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?o=`Invalid input: must end with "${r.validation.endsWith}"`:ze.assertNever(r.validation):r.validation!=="regex"?o=`Invalid ${r.validation}`:o="Invalid";break;case Y.too_small:r.type==="array"?o=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?o=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?o=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?o=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:o="Invalid input";break;case Y.too_big:r.type==="array"?o=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?o=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?o=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?o=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?o=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:o="Invalid input";break;case Y.custom:o="Invalid input";break;case Y.invalid_intersection_types:o="Intersection results could not be merged";break;case Y.not_multiple_of:o=`Number must be a multiple of ${r.multipleOf}`;break;case Y.not_finite:o="Number must be finite";break;default:o=t.defaultError,ze.assertNever(r)}return{message:o}};let Qy=Al;function Yy(){return Qy}const Xy=r=>{const{data:t,path:o,errorMaps:i,issueData:a}=r,l=[...o,...a.path||[]],u={...a,path:l};if(a.message!==void 0)return{...a,path:l,message:a.message};let d="";const h=i.filter(g=>!!g).slice().reverse();for(const g of h)d=g(u,{data:t,defaultError:d}).message;return{...a,path:l,message:d}};function de(r,t){const o=Yy(),i=Xy({issueData:t,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,o,o===Al?void 0:Al].filter(a=>!!a)});r.common.issues.push(i)}class Pt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,o){const i=[];for(const a of o){if(a.status==="aborted")return Re;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,o){const i=[];for(const a of o){const l=await a.key,u=await a.value;i.push({key:l,value:u})}return Pt.mergeObjectSync(t,i)}static mergeObjectSync(t,o){const i={};for(const a of o){const{key:l,value:u}=a;if(l.status==="aborted"||u.status==="aborted")return Re;l.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||a.alwaysSet)&&(i[l.value]=u.value)}return{status:t.value,value:i}}}const Re=Object.freeze({status:"aborted"}),pi=r=>({status:"dirty",value:r}),Gt=r=>({status:"valid",value:r}),hf=r=>r.status==="aborted",mf=r=>r.status==="dirty",yo=r=>r.status==="valid",ws=r=>typeof Promise<"u"&&r instanceof Promise;var Se;(function(r){r.errToObj=t=>typeof t=="string"?{message:t}:t||{},r.toString=t=>typeof t=="string"?t:t?.message})(Se||(Se={}));class yn{constructor(t,o,i,a){this._cachedPath=[],this.parent=t,this.data=o,this._path=i,this._key=a}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 gf=(r,t)=>{if(yo(t))return{success:!0,data:t.value};if(!r.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 Ln(r.common.issues);return this._error=o,this._error}}};function Te(r){if(!r)return{};const{errorMap:t,invalid_type_error:o,required_error:i,description:a}=r;if(t&&(o||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(u,d)=>{const{message:h}=r;return u.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??i??d.defaultError}:u.code!=="invalid_type"?{message:d.defaultError}:{message:h??o??d.defaultError}},description:a}}class je{get description(){return this._def.description}_getType(t){return ar(t.data)}_getOrReturnCtx(t,o){return o||{common:t.parent.common,data:t.data,parsedType:ar(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pt,ctx:{common:t.parent.common,data:t.data,parsedType:ar(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const o=this._parse(t);if(ws(o))throw new Error("Synchronous parse encountered promise.");return o}_parseAsync(t){const o=this._parse(t);return Promise.resolve(o)}parse(t,o){const i=this.safeParse(t,o);if(i.success)return i.data;throw i.error}safeParse(t,o){const i={common:{issues:[],async:o?.async??!1,contextualErrorMap:o?.errorMap},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ar(t)},a=this._parseSync({data:t,path:i.path,parent:i});return gf(i,a)}"~validate"(t){const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ar(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:o});return yo(i)?{value:i.value}:{issues:o.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:o}).then(i=>yo(i)?{value:i.value}:{issues:o.common.issues})}async parseAsync(t,o){const i=await this.safeParseAsync(t,o);if(i.success)return i.data;throw i.error}async safeParseAsync(t,o){const i={common:{issues:[],contextualErrorMap:o?.errorMap,async:!0},path:o?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ar(t)},a=this._parse({data:t,path:i.path,parent:i}),l=await(ws(a)?a:Promise.resolve(a));return gf(i,l)}refine(t,o){const i=a=>typeof o=="string"||typeof o>"u"?{message:o}:typeof o=="function"?o(a):o;return this._refinement((a,l)=>{const u=t(a),d=()=>l.addIssue({code:Y.custom,...i(a)});return typeof Promise<"u"&&u instanceof Promise?u.then(h=>h?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(t,o){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof o=="function"?o(i,a):o),!1))}_refinement(t){return new Wr({schema:this,typeName:Pe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,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 Mn.create(this,this._def)}nullable(){return Kr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xn.create(this)}promise(){return Ps.create(this,this._def)}or(t){return ks.create([this,t],this._def)}and(t){return Cs.create(this,t,this._def)}transform(t){return new Wr({...Te(this._def),schema:this,typeName:Pe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const o=typeof t=="function"?t:()=>t;return new Is({...Te(this._def),innerType:this,defaultValue:o,typeName:Pe.ZodDefault})}brand(){return new _f({typeName:Pe.ZodBranded,type:this,...Te(this._def)})}catch(t){const o=typeof t=="function"?t:()=>t;return new Os({...Te(this._def),innerType:this,catchValue:o,typeName:Pe.ZodCatch})}describe(t){const o=this.constructor;return new o({...this._def,description:t})}pipe(t){return Vl.create(this,t)}readonly(){return Ns.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Jy=/^c[^\s-]{8,}$/i,ex=/^[0-9a-z]+$/,tx=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nx=/^[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,rx=/^[a-z0-9_-]{21}$/i,ox=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ix=/^[-+]?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)?)??$/,sx=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ax="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Dl;const lx=/^(?:(?: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])$/,cx=/^(?:(?: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])$/,ux=/^(([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]))$/,dx=/^(([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])$/,fx=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,px=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vf="((\\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])))",hx=new RegExp(`^${vf}$`);function yf(r){let t="[0-5]\\d";r.precision?t=`${t}\\.\\d{${r.precision}}`:r.precision==null&&(t=`${t}(\\.\\d+)?`);const o=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${o}`}function mx(r){return new RegExp(`^${yf(r)}$`)}function gx(r){let t=`${vf}T${yf(r)}`;const o=[];return o.push(r.local?"Z?":"Z"),r.offset&&o.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${o.join("|")})`,new RegExp(`^${t}$`)}function vx(r,t){return!!((t==="v4"||!t)&&lx.test(r)||(t==="v6"||!t)&&ux.test(r))}function yx(r,t){if(!ox.test(r))return!1;try{const[o]=r.split("."),i=o.replace(/-/g,"+").replace(/_/g,"/").padEnd(o.length+(4-o.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function xx(r,t){return!!((t==="v4"||!t)&&cx.test(r)||(t==="v6"||!t)&&dx.test(r))}class $n extends je{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==me.string){const l=this._getOrReturnCtx(t);return de(l,{code:Y.invalid_type,expected:me.string,received:l.parsedType}),Re}const i=new Pt;let a;for(const l of this._def.checks)if(l.kind==="min")t.data.length<l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="max")t.data.length>l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),i.dirty());else if(l.kind==="length"){const u=t.data.length>l.value,d=t.data.length<l.value;(u||d)&&(a=this._getOrReturnCtx(t,a),u?de(a,{code:Y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&de(a,{code:Y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),i.dirty())}else if(l.kind==="email")sx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"email",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="emoji")Dl||(Dl=new RegExp(ax,"u")),Dl.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"emoji",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="uuid")nx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"uuid",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="nanoid")rx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"nanoid",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid")Jy.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cuid",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="cuid2")ex.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cuid2",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="ulid")tx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"ulid",code:Y.invalid_string,message:l.message}),i.dirty());else if(l.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),de(a,{validation:"url",code:Y.invalid_string,message:l.message}),i.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"regex",code:Y.invalid_string,message:l.message}),i.dirty())):l.kind==="trim"?t.data=t.data.trim():l.kind==="includes"?t.data.includes(l.value,l.position)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),i.dirty()):l.kind==="toLowerCase"?t.data=t.data.toLowerCase():l.kind==="toUpperCase"?t.data=t.data.toUpperCase():l.kind==="startsWith"?t.data.startsWith(l.value)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:{startsWith:l.value},message:l.message}),i.dirty()):l.kind==="endsWith"?t.data.endsWith(l.value)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:{endsWith:l.value},message:l.message}),i.dirty()):l.kind==="datetime"?gx(l).test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:"datetime",message:l.message}),i.dirty()):l.kind==="date"?hx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:"date",message:l.message}),i.dirty()):l.kind==="time"?mx(l).test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{code:Y.invalid_string,validation:"time",message:l.message}),i.dirty()):l.kind==="duration"?ix.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"duration",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="ip"?vx(t.data,l.version)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"ip",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="jwt"?yx(t.data,l.alg)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"jwt",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="cidr"?xx(t.data,l.version)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"cidr",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="base64"?fx.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"base64",code:Y.invalid_string,message:l.message}),i.dirty()):l.kind==="base64url"?px.test(t.data)||(a=this._getOrReturnCtx(t,a),de(a,{validation:"base64url",code:Y.invalid_string,message:l.message}),i.dirty()):ze.assertNever(l);return{status:i.value,value:t.data}}_regex(t,o,i){return this.refinement(a=>t.test(a),{validation:o,code:Y.invalid_string,...Se.errToObj(i)})}_addCheck(t){return new $n({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Se.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Se.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Se.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Se.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Se.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Se.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Se.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Se.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Se.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Se.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Se.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Se.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Se.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Se.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Se.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Se.errToObj(t)})}regex(t,o){return this._addCheck({kind:"regex",regex:t,...Se.errToObj(o)})}includes(t,o){return this._addCheck({kind:"includes",value:t,position:o?.position,...Se.errToObj(o?.message)})}startsWith(t,o){return this._addCheck({kind:"startsWith",value:t,...Se.errToObj(o)})}endsWith(t,o){return this._addCheck({kind:"endsWith",value:t,...Se.errToObj(o)})}min(t,o){return this._addCheck({kind:"min",value:t,...Se.errToObj(o)})}max(t,o){return this._addCheck({kind:"max",value:t,...Se.errToObj(o)})}length(t,o){return this._addCheck({kind:"length",value:t,...Se.errToObj(o)})}nonempty(t){return this.min(1,Se.errToObj(t))}trim(){return new $n({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $n({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $n({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxLength(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}}$n.create=r=>new $n({checks:[],typeName:Pe.ZodString,coerce:r?.coerce??!1,...Te(r)});function wx(r,t){const o=(r.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=o>i?o:i,l=Number.parseInt(r.toFixed(a).replace(".","")),u=Number.parseInt(t.toFixed(a).replace(".",""));return l%u/10**a}class xo extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==me.number){const l=this._getOrReturnCtx(t);return de(l,{code:Y.invalid_type,expected:me.number,received:l.parsedType}),Re}let i;const a=new Pt;for(const l of this._def.checks)l.kind==="int"?ze.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),de(i,{code:Y.invalid_type,expected:"integer",received:"float",message:l.message}),a.dirty()):l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="multipleOf"?wx(t.data,l.value)!==0&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),de(i,{code:Y.not_finite,message:l.message}),a.dirty()):ze.assertNever(l);return{status:a.value,value:t.data}}gte(t,o){return this.setLimit("min",t,!0,Se.toString(o))}gt(t,o){return this.setLimit("min",t,!1,Se.toString(o))}lte(t,o){return this.setLimit("max",t,!0,Se.toString(o))}lt(t,o){return this.setLimit("max",t,!1,Se.toString(o))}setLimit(t,o,i,a){return new xo({...this._def,checks:[...this._def.checks,{kind:t,value:o,inclusive:i,message:Se.toString(a)}]})}_addCheck(t){return new xo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Se.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Se.toString(t)})}multipleOf(t,o){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(o)})}finite(t){return this._addCheck({kind:"finite",message:Se.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Se.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Se.toString(t)})}get minValue(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxValue(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ze.isInteger(t.value))}get isFinite(){let t=null,o=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(o===null||i.value>o)&&(o=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(o)&&Number.isFinite(t)}}xo.create=r=>new xo({checks:[],typeName:Pe.ZodNumber,coerce:r?.coerce||!1,...Te(r)});class hi extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==me.bigint)return this._getInvalidInput(t);let i;const a=new Pt;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),de(i,{code:Y.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):ze.assertNever(l);return{status:a.value,value:t.data}}_getInvalidInput(t){const o=this._getOrReturnCtx(t);return de(o,{code:Y.invalid_type,expected:me.bigint,received:o.parsedType}),Re}gte(t,o){return this.setLimit("min",t,!0,Se.toString(o))}gt(t,o){return this.setLimit("min",t,!1,Se.toString(o))}lte(t,o){return this.setLimit("max",t,!0,Se.toString(o))}lt(t,o){return this.setLimit("max",t,!1,Se.toString(o))}setLimit(t,o,i,a){return new hi({...this._def,checks:[...this._def.checks,{kind:t,value:o,inclusive:i,message:Se.toString(a)}]})}_addCheck(t){return new hi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Se.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Se.toString(t)})}multipleOf(t,o){return this._addCheck({kind:"multipleOf",value:t,message:Se.toString(o)})}get minValue(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t}get maxValue(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t}}hi.create=r=>new hi({checks:[],typeName:Pe.ZodBigInt,coerce:r?.coerce??!1,...Te(r)});class Ll extends je{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==me.boolean){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.boolean,received:i.parsedType}),Re}return Gt(t.data)}}Ll.create=r=>new Ll({typeName:Pe.ZodBoolean,coerce:r?.coerce||!1,...Te(r)});class Ss extends je{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==me.date){const l=this._getOrReturnCtx(t);return de(l,{code:Y.invalid_type,expected:me.date,received:l.parsedType}),Re}if(Number.isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return de(l,{code:Y.invalid_date}),Re}const i=new Pt;let a;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()<l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Y.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),i.dirty()):l.kind==="max"?t.data.getTime()>l.value&&(a=this._getOrReturnCtx(t,a),de(a,{code:Y.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),i.dirty()):ze.assertNever(l);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ss({...this._def,checks:[...this._def.checks,t]})}min(t,o){return this._addCheck({kind:"min",value:t.getTime(),message:Se.toString(o)})}max(t,o){return this._addCheck({kind:"max",value:t.getTime(),message:Se.toString(o)})}get minDate(){let t=null;for(const o of this._def.checks)o.kind==="min"&&(t===null||o.value>t)&&(t=o.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const o of this._def.checks)o.kind==="max"&&(t===null||o.value<t)&&(t=o.value);return t!=null?new Date(t):null}}Ss.create=r=>new Ss({checks:[],coerce:r?.coerce||!1,typeName:Pe.ZodDate,...Te(r)});class xf extends je{_parse(t){if(this._getType(t)!==me.symbol){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.symbol,received:i.parsedType}),Re}return Gt(t.data)}}xf.create=r=>new xf({typeName:Pe.ZodSymbol,...Te(r)});class $l extends je{_parse(t){if(this._getType(t)!==me.undefined){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.undefined,received:i.parsedType}),Re}return Gt(t.data)}}$l.create=r=>new $l({typeName:Pe.ZodUndefined,...Te(r)});class bs extends je{_parse(t){if(this._getType(t)!==me.null){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.null,received:i.parsedType}),Re}return Gt(t.data)}}bs.create=r=>new bs({typeName:Pe.ZodNull,...Te(r)});class wf extends je{constructor(){super(...arguments),this._any=!0}_parse(t){return Gt(t.data)}}wf.create=r=>new wf({typeName:Pe.ZodAny,...Te(r)});class jl extends je{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Gt(t.data)}}jl.create=r=>new jl({typeName:Pe.ZodUnknown,...Te(r)});class lr extends je{_parse(t){const o=this._getOrReturnCtx(t);return de(o,{code:Y.invalid_type,expected:me.never,received:o.parsedType}),Re}}lr.create=r=>new lr({typeName:Pe.ZodNever,...Te(r)});class Sf extends je{_parse(t){if(this._getType(t)!==me.undefined){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.void,received:i.parsedType}),Re}return Gt(t.data)}}Sf.create=r=>new Sf({typeName:Pe.ZodVoid,...Te(r)});class xn extends je{_parse(t){const{ctx:o,status:i}=this._processInputParams(t),a=this._def;if(o.parsedType!==me.array)return de(o,{code:Y.invalid_type,expected:me.array,received:o.parsedType}),Re;if(a.exactLength!==null){const u=o.data.length>a.exactLength.value,d=o.data.length<a.exactLength.value;(u||d)&&(de(o,{code:u?Y.too_big:Y.too_small,minimum:d?a.exactLength.value:void 0,maximum:u?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&o.data.length<a.minLength.value&&(de(o,{code:Y.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&o.data.length>a.maxLength.value&&(de(o,{code:Y.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),o.common.async)return Promise.all([...o.data].map((u,d)=>a.type._parseAsync(new yn(o,u,o.path,d)))).then(u=>Pt.mergeArray(i,u));const l=[...o.data].map((u,d)=>a.type._parseSync(new yn(o,u,o.path,d)));return Pt.mergeArray(i,l)}get element(){return this._def.type}min(t,o){return new xn({...this._def,minLength:{value:t,message:Se.toString(o)}})}max(t,o){return new xn({...this._def,maxLength:{value:t,message:Se.toString(o)}})}length(t,o){return new xn({...this._def,exactLength:{value:t,message:Se.toString(o)}})}nonempty(t){return this.min(1,t)}}xn.create=(r,t)=>new xn({type:r,minLength:null,maxLength:null,exactLength:null,typeName:Pe.ZodArray,...Te(t)});function wo(r){if(r instanceof ct){const t={};for(const o in r.shape){const i=r.shape[o];t[o]=Mn.create(wo(i))}return new ct({...r._def,shape:()=>t})}else return r instanceof xn?new xn({...r._def,type:wo(r.element)}):r instanceof Mn?Mn.create(wo(r.unwrap())):r instanceof Kr?Kr.create(wo(r.unwrap())):r instanceof Br?Br.create(r.items.map(t=>wo(t))):r}class ct extends je{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),o=ze.objectKeys(t);return this._cached={shape:t,keys:o},this._cached}_parse(t){if(this._getType(t)!==me.object){const g=this._getOrReturnCtx(t);return de(g,{code:Y.invalid_type,expected:me.object,received:g.parsedType}),Re}const{status:i,ctx:a}=this._processInputParams(t),{shape:l,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof lr&&this._def.unknownKeys==="strip"))for(const g in a.data)u.includes(g)||d.push(g);const h=[];for(const g of u){const v=l[g],y=a.data[g];h.push({key:{status:"valid",value:g},value:v._parse(new yn(a,y,a.path,g)),alwaysSet:g in a.data})}if(this._def.catchall instanceof lr){const g=this._def.unknownKeys;if(g==="passthrough")for(const v of d)h.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(g==="strict")d.length>0&&(de(a,{code:Y.unrecognized_keys,keys:d}),i.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const v of d){const y=a.data[v];h.push({key:{status:"valid",value:v},value:g._parse(new yn(a,y,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const g=[];for(const v of h){const y=await v.key,w=await v.value;g.push({key:y,value:w,alwaysSet:v.alwaysSet})}return g}).then(g=>Pt.mergeObjectSync(i,g)):Pt.mergeObjectSync(i,h)}get shape(){return this._def.shape()}strict(t){return Se.errToObj,new ct({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(o,i)=>{const a=this._def.errorMap?.(o,i).message??i.defaultError;return o.code==="unrecognized_keys"?{message:Se.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new ct({...this._def,unknownKeys:"strip"})}passthrough(){return new ct({...this._def,unknownKeys:"passthrough"})}extend(t){return new ct({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ct({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Pe.ZodObject})}setKey(t,o){return this.augment({[t]:o})}catchall(t){return new ct({...this._def,catchall:t})}pick(t){const o={};for(const i of ze.objectKeys(t))t[i]&&this.shape[i]&&(o[i]=this.shape[i]);return new ct({...this._def,shape:()=>o})}omit(t){const o={};for(const i of ze.objectKeys(this.shape))t[i]||(o[i]=this.shape[i]);return new ct({...this._def,shape:()=>o})}deepPartial(){return wo(this)}partial(t){const o={};for(const i of ze.objectKeys(this.shape)){const a=this.shape[i];t&&!t[i]?o[i]=a:o[i]=a.optional()}return new ct({...this._def,shape:()=>o})}required(t){const o={};for(const i of ze.objectKeys(this.shape))if(t&&!t[i])o[i]=this.shape[i];else{let l=this.shape[i];for(;l instanceof Mn;)l=l._def.innerType;o[i]=l}return new ct({...this._def,shape:()=>o})}keyof(){return kf(ze.objectKeys(this.shape))}}ct.create=(r,t)=>new ct({shape:()=>r,unknownKeys:"strip",catchall:lr.create(),typeName:Pe.ZodObject,...Te(t)}),ct.strictCreate=(r,t)=>new ct({shape:()=>r,unknownKeys:"strict",catchall:lr.create(),typeName:Pe.ZodObject,...Te(t)}),ct.lazycreate=(r,t)=>new ct({shape:r,unknownKeys:"strip",catchall:lr.create(),typeName:Pe.ZodObject,...Te(t)});class ks extends je{_parse(t){const{ctx:o}=this._processInputParams(t),i=this._def.options;function a(l){for(const d of l)if(d.result.status==="valid")return d.result;for(const d of l)if(d.result.status==="dirty")return o.common.issues.push(...d.ctx.common.issues),d.result;const u=l.map(d=>new Ln(d.ctx.common.issues));return de(o,{code:Y.invalid_union,unionErrors:u}),Re}if(o.common.async)return Promise.all(i.map(async l=>{const u={...o,common:{...o.common,issues:[]},parent:null};return{result:await l._parseAsync({data:o.data,path:o.path,parent:u}),ctx:u}})).then(a);{let l;const u=[];for(const h of i){const g={...o,common:{...o.common,issues:[]},parent:null},v=h._parseSync({data:o.data,path:o.path,parent:g});if(v.status==="valid")return v;v.status==="dirty"&&!l&&(l={result:v,ctx:g}),g.common.issues.length&&u.push(g.common.issues)}if(l)return o.common.issues.push(...l.ctx.common.issues),l.result;const d=u.map(h=>new Ln(h));return de(o,{code:Y.invalid_union,unionErrors:d}),Re}}get options(){return this._def.options}}ks.create=(r,t)=>new ks({options:r,typeName:Pe.ZodUnion,...Te(t)});const jn=r=>r instanceof Es?jn(r.schema):r instanceof Wr?jn(r.innerType()):r instanceof Rs?[r.value]:r instanceof Hr?r.options:r instanceof Fl?ze.objectValues(r.enum):r instanceof Is?jn(r._def.innerType):r instanceof $l?[void 0]:r instanceof bs?[null]:r instanceof Mn?[void 0,...jn(r.unwrap())]:r instanceof Kr?[null,...jn(r.unwrap())]:r instanceof _f||r instanceof Ns?jn(r.unwrap()):r instanceof Os?jn(r._def.innerType):[];class Ml extends je{_parse(t){const{ctx:o}=this._processInputParams(t);if(o.parsedType!==me.object)return de(o,{code:Y.invalid_type,expected:me.object,received:o.parsedType}),Re;const i=this.discriminator,a=o.data[i],l=this.optionsMap.get(a);return l?o.common.async?l._parseAsync({data:o.data,path:o.path,parent:o}):l._parseSync({data:o.data,path:o.path,parent:o}):(de(o,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Re)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,o,i){const a=new Map;for(const l of o){const u=jn(l.shape[t]);if(!u.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of u){if(a.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);a.set(d,l)}}return new Ml({typeName:Pe.ZodDiscriminatedUnion,discriminator:t,options:o,optionsMap:a,...Te(i)})}}function zl(r,t){const o=ar(r),i=ar(t);if(r===t)return{valid:!0,data:r};if(o===me.object&&i===me.object){const a=ze.objectKeys(t),l=ze.objectKeys(r).filter(d=>a.indexOf(d)!==-1),u={...r,...t};for(const d of l){const h=zl(r[d],t[d]);if(!h.valid)return{valid:!1};u[d]=h.data}return{valid:!0,data:u}}else if(o===me.array&&i===me.array){if(r.length!==t.length)return{valid:!1};const a=[];for(let l=0;l<r.length;l++){const u=r[l],d=t[l],h=zl(u,d);if(!h.valid)return{valid:!1};a.push(h.data)}return{valid:!0,data:a}}else return o===me.date&&i===me.date&&+r==+t?{valid:!0,data:r}:{valid:!1}}class Cs extends je{_parse(t){const{status:o,ctx:i}=this._processInputParams(t),a=(l,u)=>{if(hf(l)||hf(u))return Re;const d=zl(l.value,u.value);return d.valid?((mf(l)||mf(u))&&o.dirty(),{status:o.value,value:d.data}):(de(i,{code:Y.invalid_intersection_types}),Re)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([l,u])=>a(l,u)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Cs.create=(r,t,o)=>new Cs({left:r,right:t,typeName:Pe.ZodIntersection,...Te(o)});class Br extends je{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.array)return de(i,{code:Y.invalid_type,expected:me.array,received:i.parsedType}),Re;if(i.data.length<this._def.items.length)return de(i,{code:Y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Re;!this._def.rest&&i.data.length>this._def.items.length&&(de(i,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),o.dirty());const l=[...i.data].map((u,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new yn(i,u,i.path,d)):null}).filter(u=>!!u);return i.common.async?Promise.all(l).then(u=>Pt.mergeArray(o,u)):Pt.mergeArray(o,l)}get items(){return this._def.items}rest(t){return new Br({...this._def,rest:t})}}Br.create=(r,t)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Br({items:r,typeName:Pe.ZodTuple,rest:null,...Te(t)})};class _s extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.object)return de(i,{code:Y.invalid_type,expected:me.object,received:i.parsedType}),Re;const a=[],l=this._def.keyType,u=this._def.valueType;for(const d in i.data)a.push({key:l._parse(new yn(i,d,i.path,d)),value:u._parse(new yn(i,i.data[d],i.path,d)),alwaysSet:d in i.data});return i.common.async?Pt.mergeObjectAsync(o,a):Pt.mergeObjectSync(o,a)}get element(){return this._def.valueType}static create(t,o,i){return o instanceof je?new _s({keyType:t,valueType:o,typeName:Pe.ZodRecord,...Te(i)}):new _s({keyType:$n.create(),valueType:t,typeName:Pe.ZodRecord,...Te(o)})}}class bf extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.map)return de(i,{code:Y.invalid_type,expected:me.map,received:i.parsedType}),Re;const a=this._def.keyType,l=this._def.valueType,u=[...i.data.entries()].map(([d,h],g)=>({key:a._parse(new yn(i,d,i.path,[g,"key"])),value:l._parse(new yn(i,h,i.path,[g,"value"]))}));if(i.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of u){const g=await h.key,v=await h.value;if(g.status==="aborted"||v.status==="aborted")return Re;(g.status==="dirty"||v.status==="dirty")&&o.dirty(),d.set(g.value,v.value)}return{status:o.value,value:d}})}else{const d=new Map;for(const h of u){const g=h.key,v=h.value;if(g.status==="aborted"||v.status==="aborted")return Re;(g.status==="dirty"||v.status==="dirty")&&o.dirty(),d.set(g.value,v.value)}return{status:o.value,value:d}}}}bf.create=(r,t,o)=>new bf({valueType:t,keyType:r,typeName:Pe.ZodMap,...Te(o)});class mi extends je{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.parsedType!==me.set)return de(i,{code:Y.invalid_type,expected:me.set,received:i.parsedType}),Re;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(de(i,{code:Y.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),o.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(de(i,{code:Y.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),o.dirty());const l=this._def.valueType;function u(h){const g=new Set;for(const v of h){if(v.status==="aborted")return Re;v.status==="dirty"&&o.dirty(),g.add(v.value)}return{status:o.value,value:g}}const d=[...i.data.values()].map((h,g)=>l._parse(new yn(i,h,i.path,g)));return i.common.async?Promise.all(d).then(h=>u(h)):u(d)}min(t,o){return new mi({...this._def,minSize:{value:t,message:Se.toString(o)}})}max(t,o){return new mi({...this._def,maxSize:{value:t,message:Se.toString(o)}})}size(t,o){return this.min(t,o).max(t,o)}nonempty(t){return this.min(1,t)}}mi.create=(r,t)=>new mi({valueType:r,minSize:null,maxSize:null,typeName:Pe.ZodSet,...Te(t)});class Es extends je{get schema(){return this._def.getter()}_parse(t){const{ctx:o}=this._processInputParams(t);return this._def.getter()._parse({data:o.data,path:o.path,parent:o})}}Es.create=(r,t)=>new Es({getter:r,typeName:Pe.ZodLazy,...Te(t)});class Rs extends je{_parse(t){if(t.data!==this._def.value){const o=this._getOrReturnCtx(t);return de(o,{received:o.data,code:Y.invalid_literal,expected:this._def.value}),Re}return{status:"valid",value:t.data}}get value(){return this._def.value}}Rs.create=(r,t)=>new Rs({value:r,typeName:Pe.ZodLiteral,...Te(t)});function kf(r,t){return new Hr({values:r,typeName:Pe.ZodEnum,...Te(t)})}class Hr extends je{_parse(t){if(typeof t.data!="string"){const o=this._getOrReturnCtx(t),i=this._def.values;return de(o,{expected:ze.joinValues(i),received:o.parsedType,code:Y.invalid_type}),Re}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const o=this._getOrReturnCtx(t),i=this._def.values;return de(o,{received:o.data,code:Y.invalid_enum_value,options:i}),Re}return Gt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const o of this._def.values)t[o]=o;return t}get Values(){const t={};for(const o of this._def.values)t[o]=o;return t}get Enum(){const t={};for(const o of this._def.values)t[o]=o;return t}extract(t,o=this._def){return Hr.create(t,{...this._def,...o})}exclude(t,o=this._def){return Hr.create(this.options.filter(i=>!t.includes(i)),{...this._def,...o})}}Hr.create=kf;class Fl extends je{_parse(t){const o=ze.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==me.string&&i.parsedType!==me.number){const a=ze.objectValues(o);return de(i,{expected:ze.joinValues(a),received:i.parsedType,code:Y.invalid_type}),Re}if(this._cache||(this._cache=new Set(ze.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=ze.objectValues(o);return de(i,{received:i.data,code:Y.invalid_enum_value,options:a}),Re}return Gt(t.data)}get enum(){return this._def.values}}Fl.create=(r,t)=>new Fl({values:r,typeName:Pe.ZodNativeEnum,...Te(t)});class Ps extends je{unwrap(){return this._def.type}_parse(t){const{ctx:o}=this._processInputParams(t);if(o.parsedType!==me.promise&&o.common.async===!1)return de(o,{code:Y.invalid_type,expected:me.promise,received:o.parsedType}),Re;const i=o.parsedType===me.promise?o.data:Promise.resolve(o.data);return Gt(i.then(a=>this._def.type.parseAsync(a,{path:o.path,errorMap:o.common.contextualErrorMap})))}}Ps.create=(r,t)=>new Ps({type:r,typeName:Pe.ZodPromise,...Te(t)});class Wr extends je{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:o,ctx:i}=this._processInputParams(t),a=this._def.effect||null,l={addIssue:u=>{de(i,u),u.fatal?o.abort():o.dirty()},get path(){return i.path}};if(l.addIssue=l.addIssue.bind(l),a.type==="preprocess"){const u=a.transform(i.data,l);if(i.common.async)return Promise.resolve(u).then(async d=>{if(o.value==="aborted")return Re;const h=await this._def.schema._parseAsync({data:d,path:i.path,parent:i});return h.status==="aborted"?Re:h.status==="dirty"||o.value==="dirty"?pi(h.value):h});{if(o.value==="aborted")return Re;const d=this._def.schema._parseSync({data:u,path:i.path,parent:i});return d.status==="aborted"?Re:d.status==="dirty"||o.value==="dirty"?pi(d.value):d}}if(a.type==="refinement"){const u=d=>{const h=a.refinement(d,l);if(i.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return d.status==="aborted"?Re:(d.status==="dirty"&&o.dirty(),u(d.value),{status:o.value,value:d.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>d.status==="aborted"?Re:(d.status==="dirty"&&o.dirty(),u(d.value).then(()=>({status:o.value,value:d.value}))))}if(a.type==="transform")if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!yo(u))return Re;const d=a.transform(u.value,l);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:o.value,value:d}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>yo(u)?Promise.resolve(a.transform(u.value,l)).then(d=>({status:o.value,value:d})):Re);ze.assertNever(a)}}Wr.create=(r,t,o)=>new Wr({schema:r,typeName:Pe.ZodEffects,effect:t,...Te(o)}),Wr.createWithPreprocess=(r,t,o)=>new Wr({schema:t,effect:{type:"preprocess",transform:r},typeName:Pe.ZodEffects,...Te(o)});class Mn extends je{_parse(t){return this._getType(t)===me.undefined?Gt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Mn.create=(r,t)=>new Mn({innerType:r,typeName:Pe.ZodOptional,...Te(t)});class Kr extends je{_parse(t){return this._getType(t)===me.null?Gt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Kr.create=(r,t)=>new Kr({innerType:r,typeName:Pe.ZodNullable,...Te(t)});class Is extends je{_parse(t){const{ctx:o}=this._processInputParams(t);let i=o.data;return o.parsedType===me.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:o.path,parent:o})}removeDefault(){return this._def.innerType}}Is.create=(r,t)=>new Is({innerType:r,typeName:Pe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Te(t)});class Os extends je{_parse(t){const{ctx:o}=this._processInputParams(t),i={...o,common:{...o.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return ws(a)?a.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Ln(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ln(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Os.create=(r,t)=>new Os({innerType:r,typeName:Pe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Te(t)});class Cf extends je{_parse(t){if(this._getType(t)!==me.nan){const i=this._getOrReturnCtx(t);return de(i,{code:Y.invalid_type,expected:me.nan,received:i.parsedType}),Re}return{status:"valid",value:t.data}}}Cf.create=r=>new Cf({typeName:Pe.ZodNaN,...Te(r)});class _f extends je{_parse(t){const{ctx:o}=this._processInputParams(t),i=o.data;return this._def.type._parse({data:i,path:o.path,parent:o})}unwrap(){return this._def.type}}class Vl extends je{_parse(t){const{status:o,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?Re:l.status==="dirty"?(o.dirty(),pi(l.value)):this._def.out._parseAsync({data:l.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Re:a.status==="dirty"?(o.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,o){return new Vl({in:t,out:o,typeName:Pe.ZodPipeline})}}class Ns extends je{_parse(t){const o=this._def.innerType._parse(t),i=a=>(yo(a)&&(a.value=Object.freeze(a.value)),a);return ws(o)?o.then(a=>i(a)):i(o)}unwrap(){return this._def.innerType}}Ns.create=(r,t)=>new Ns({innerType:r,typeName:Pe.ZodReadonly,...Te(t)});var Pe;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(Pe||(Pe={}));const ne=$n.create,ft=xo.create,Lt=Ll.create,cr=bs.create,Zr=jl.create;lr.create;const nt=xn.create,we=ct.create,zn=ks.create,Ef=Ml.create;Cs.create,Br.create;const ur=_s.create,Sx=Es.create,Xe=Rs.create,Fn=Hr.create;Ps.create,Mn.create,Kr.create;function Rf(r){var t,o,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(t=0;t<a;t++)r[t]&&(o=Rf(r[t]))&&(i&&(i+=" "),i+=o)}else for(o in r)r[o]&&(i&&(i+=" "),i+=o);return i}function Pf(){for(var r,t,o=0,i="",a=arguments.length;o<a;o++)(r=arguments[o])&&(t=Rf(r))&&(i&&(i+=" "),i+=t);return i}const bx=(r,t)=>{const o=new Array(r.length+t.length);for(let i=0;i<r.length;i++)o[i]=r[i];for(let i=0;i<t.length;i++)o[r.length+i]=t[i];return o},kx=(r,t)=>({classGroupId:r,validator:t}),If=(r=new Map,t=null,o)=>({nextPart:r,validators:t,classGroupId:o}),Ts="-",Of=[],Cx="arbitrary..",_x=r=>{const t=Rx(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=r;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Ex(u);const d=u.split(Ts),h=d[0]===""&&d.length>1?1:0;return Nf(d,h,t)},getConflictingClassGroupIds:(u,d)=>{if(d){const h=i[u],g=o[u];return h?g?bx(g,h):h:g||Of}return o[u]||Of}}},Nf=(r,t,o)=>{if(r.length-t===0)return o.classGroupId;const a=r[t],l=o.nextPart.get(a);if(l){const g=Nf(r,t+1,l);if(g)return g}const u=o.validators;if(u===null)return;const d=t===0?r.join(Ts):r.slice(t).join(Ts),h=u.length;for(let g=0;g<h;g++){const v=u[g];if(v.validator(d))return v.classGroupId}},Ex=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=r.slice(1,-1),o=t.indexOf(":"),i=t.slice(0,o);return i?Cx+i:void 0})(),Rx=r=>{const{theme:t,classGroups:o}=r;return Px(o,t)},Px=(r,t)=>{const o=If();for(const i in r){const a=r[i];Ul(a,o,i,t)}return o},Ul=(r,t,o,i)=>{const a=r.length;for(let l=0;l<a;l++){const u=r[l];Ix(u,t,o,i)}},Ix=(r,t,o,i)=>{if(typeof r=="string"){Ox(r,t,o);return}if(typeof r=="function"){Nx(r,t,o,i);return}Tx(r,t,o,i)},Ox=(r,t,o)=>{const i=r===""?t:Tf(t,r);i.classGroupId=o},Nx=(r,t,o,i)=>{if(Ax(r)){Ul(r(i),t,o,i);return}t.validators===null&&(t.validators=[]),t.validators.push(kx(o,r))},Tx=(r,t,o,i)=>{const a=Object.entries(r),l=a.length;for(let u=0;u<l;u++){const[d,h]=a[u];Ul(h,Tf(t,d),o,i)}},Tf=(r,t)=>{let o=r;const i=t.split(Ts),a=i.length;for(let l=0;l<a;l++){const u=i[l];let d=o.nextPart.get(u);d||(d=If(),o.nextPart.set(u,d)),o=d}return o},Ax=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,Dx=r=>{if(r<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),i=Object.create(null);const a=(l,u)=>{o[l]=u,t++,t>r&&(t=0,i=o,o=Object.create(null))};return{get(l){let u=o[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return a(l,u),u},set(l,u){l in o?o[l]=u:a(l,u)}}},Bl="!",Af=":",Lx=[],Df=(r,t,o,i,a)=>({modifiers:r,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:i,isExternal:a}),$x=r=>{const{prefix:t,experimentalParseClassName:o}=r;let i=a=>{const l=[];let u=0,d=0,h=0,g;const v=a.length;for(let _=0;_<v;_++){const k=a[_];if(u===0&&d===0){if(k===Af){l.push(a.slice(h,_)),h=_+1;continue}if(k==="/"){g=_;continue}}k==="["?u++:k==="]"?u--:k==="("?d++:k===")"&&d--}const y=l.length===0?a:a.slice(h);let w=y,b=!1;y.endsWith(Bl)?(w=y.slice(0,-1),b=!0):y.startsWith(Bl)&&(w=y.slice(1),b=!0);const S=g&&g>h?g-h:void 0;return Df(l,b,w,S)};if(t){const a=t+Af,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):Df(Lx,!1,u,void 0,!0)}if(o){const a=i;i=l=>o({className:l,parseClassName:a})}return i},jx=r=>{const t=new Map;return r.orderSensitiveModifiers.forEach((o,i)=>{t.set(o,1e6+i)}),o=>{const i=[];let a=[];for(let l=0;l<o.length;l++){const u=o[l],d=u[0]==="[",h=t.has(u);d||h?(a.length>0&&(a.sort(),i.push(...a),a=[]),i.push(u)):a.push(u)}return a.length>0&&(a.sort(),i.push(...a)),i}},Mx=r=>({cache:Dx(r.cacheSize),parseClassName:$x(r),sortModifiers:jx(r),postfixLookupClassGroupIds:zx(r),..._x(r)}),zx=r=>{const t=Object.create(null),o=r.postfixLookupClassGroups;if(o)for(let i=0;i<o.length;i++)t[o[i]]=!0;return t},Fx=/\s+/,Vx=(r,t)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l,postfixLookupClassGroupIds:u}=t,d=[],h=r.trim().split(Fx);let g="";for(let v=h.length-1;v>=0;v-=1){const y=h[v],{isExternal:w,modifiers:b,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:k}=o(y);if(w){g=y+(g.length>0?" "+g:g);continue}let T=!!k,D;if(T){const B=_.substring(0,k);D=i(B);const j=D&&u[D]?i(_):void 0;j&&j!==D&&(D=j,T=!1)}else D=i(_);if(!D){if(!T){g=y+(g.length>0?" "+g:g);continue}if(D=i(_),!D){g=y+(g.length>0?" "+g:g);continue}T=!1}const N=b.length===0?"":b.length===1?b[0]:l(b).join(":"),I=S?N+Bl:N,V=I+D;if(d.indexOf(V)>-1)continue;d.push(V);const L=a(D,T);for(let B=0;B<L.length;++B){const j=L[B];d.push(I+j)}g=y+(g.length>0?" "+g:g)}return g},Ux=(...r)=>{let t=0,o,i,a="";for(;t<r.length;)(o=r[t++])&&(i=Lf(o))&&(a&&(a+=" "),a+=i);return a},Lf=r=>{if(typeof r=="string")return r;let t,o="";for(let i=0;i<r.length;i++)r[i]&&(t=Lf(r[i]))&&(o&&(o+=" "),o+=t);return o},Bx=(r,...t)=>{let o,i,a,l;const u=h=>{const g=t.reduce((v,y)=>y(v),r());return o=Mx(g),i=o.cache.get,a=o.cache.set,l=d,d(h)},d=h=>{const g=i(h);if(g)return g;const v=Vx(h,o);return a(h,v),v};return l=u,(...h)=>l(Ux(...h))},Hx=[],pt=r=>{const t=o=>o[r]||Hx;return t.isThemeGetter=!0,t},$f=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Kx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zx=/\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$/,qx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dr=r=>Wx.test(r),De=r=>!!r&&!Number.isNaN(Number(r)),wn=r=>!!r&&Number.isInteger(Number(r)),Hl=r=>r.endsWith("%")&&De(r.slice(0,-1)),Vn=r=>Kx.test(r),Mf=()=>!0,Yx=r=>Zx.test(r)&&!qx.test(r),Wl=()=>!1,Xx=r=>Gx.test(r),Jx=r=>Qx.test(r),e0=r=>!he(r)&&!ge(r),t0=r=>r.startsWith("@container")&&(r[10]==="/"&&r[11]!==void 0||r[11]==="s"&&r[16]!==void 0&&r.startsWith("-size/",10)||r[11]==="n"&&r[18]!==void 0&&r.startsWith("-normal/",10)),n0=r=>fr(r,Hf,Wl),he=r=>$f.test(r),qr=r=>fr(r,Wf,Yx),zf=r=>fr(r,u0,De),r0=r=>fr(r,Zf,Mf),o0=r=>fr(r,Kf,Wl),Ff=r=>fr(r,Uf,Wl),i0=r=>fr(r,Bf,Jx),As=r=>fr(r,qf,Xx),ge=r=>jf.test(r),gi=r=>Gr(r,Wf),s0=r=>Gr(r,Kf),Vf=r=>Gr(r,Uf),a0=r=>Gr(r,Hf),l0=r=>Gr(r,Bf),Ds=r=>Gr(r,qf,!0),c0=r=>Gr(r,Zf,!0),fr=(r,t,o)=>{const i=$f.exec(r);return i?i[1]?t(i[1]):o(i[2]):!1},Gr=(r,t,o=!1)=>{const i=jf.exec(r);return i?i[1]?t(i[1]):o:!1},Uf=r=>r==="position"||r==="percentage",Bf=r=>r==="image"||r==="url",Hf=r=>r==="length"||r==="size"||r==="bg-size",Wf=r=>r==="length",u0=r=>r==="number",Kf=r=>r==="family-name",Zf=r=>r==="number"||r==="weight",qf=r=>r==="shadow",d0=Bx(()=>{const r=pt("color"),t=pt("font"),o=pt("text"),i=pt("font-weight"),a=pt("tracking"),l=pt("leading"),u=pt("breakpoint"),d=pt("container"),h=pt("spacing"),g=pt("radius"),v=pt("shadow"),y=pt("inset-shadow"),w=pt("text-shadow"),b=pt("drop-shadow"),S=pt("blur"),_=pt("perspective"),k=pt("aspect"),T=pt("ease"),D=pt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...I(),ge,he],L=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],j=()=>[ge,he,h],Q=()=>[dr,"full","auto",...j()],ae=()=>[wn,"none","subgrid",ge,he],Ce=()=>["auto",{span:["full",wn,ge,he]},wn,ge,he],ce=()=>[wn,"auto",ge,he],le=()=>["auto","min","max","fr",ge,he],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...j()],se=()=>[dr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],U=()=>[dr,"screen","full","dvw","lvw","svw","min","max","fit",...j()],G=()=>[dr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],z=()=>[r,ge,he],P=()=>[...I(),Vf,Ff,{position:[ge,he]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",a0,n0,{size:[ge,he]}],X=()=>[Hl,gi,qr],H=()=>["","none","full",g,ge,he],J=()=>["",De,gi,qr],ue=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[De,Hl,Vf,Ff],Ae=()=>["","none",S,ge,he],$e=()=>["none",De,ge,he],Me=()=>["none",De,ge,he],Ue=()=>[De,ge,he],oe=()=>[dr,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vn],breakpoint:[Vn],color:[Mf],container:[Vn],"drop-shadow":[Vn],ease:["in","out","in-out"],font:[e0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vn],shadow:[Vn],spacing:["px",De],text:[Vn],"text-shadow":[Vn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dr,he,ge,k]}],container:["container"],"container-type":[{"@container":["","normal","size",ge,he]}],"container-named":[t0],columns:[{columns:[De,he,ge,d]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[wn,"auto",ge,he]}],basis:[{basis:[dr,"full","auto",d,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,dr,"auto","initial","none",he]}],grow:[{grow:["",De,ge,he]}],shrink:[{shrink:["",De,ge,he]}],order:[{order:[wn,"first","last","none",ge,he]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:Ce()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:Ce()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...U()]}],"min-inline-size":[{"min-inline":["auto",...U()]}],"max-inline-size":[{"max-inline":["none",...U()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[d,"screen",...se()]}],"min-w":[{"min-w":[d,"screen","none",...se()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...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,gi,qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,c0,r0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hl,he]}],"font-family":[{font:[s0,o0,t]}],"font-features":[{"font-features":[he]}],"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:[a,ge,he]}],"line-clamp":[{"line-clamp":[De,"none",ge,zf]}],leading:[{leading:[l,...j()]}],"list-image":[{"list-image":["none",ge,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,he]}],"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:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",ge,qr]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[De,"auto",ge,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[wn,ge,he]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,he]}],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",ge,he]}],"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:E()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wn,ge,he],radial:["",ge,he],conic:[wn,ge,he]},l0,i0]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"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:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"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:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,ge,he]}],"outline-w":[{outline:["",De,gi,qr]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",v,Ds,As]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",y,Ds,As]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[De,qr]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",w,Ds,As]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[De,ge,he]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"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":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"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":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"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":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"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":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"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":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"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":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ge,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"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":I()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"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:E()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,he]}],filter:[{filter:["","none",ge,he]}],blur:[{blur:Ae()}],brightness:[{brightness:[De,ge,he]}],contrast:[{contrast:[De,ge,he]}],"drop-shadow":[{"drop-shadow":["","none",b,Ds,As]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",De,ge,he]}],"hue-rotate":[{"hue-rotate":[De,ge,he]}],invert:[{invert:["",De,ge,he]}],saturate:[{saturate:[De,ge,he]}],sepia:[{sepia:["",De,ge,he]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,he]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[De,ge,he]}],"backdrop-contrast":[{"backdrop-contrast":[De,ge,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,ge,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,ge,he]}],"backdrop-invert":[{"backdrop-invert":["",De,ge,he]}],"backdrop-opacity":[{"backdrop-opacity":[De,ge,he]}],"backdrop-saturate":[{"backdrop-saturate":[De,ge,he]}],"backdrop-sepia":[{"backdrop-sepia":["",De,ge,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",ge,he]}],ease:[{ease:["linear","initial",T,ge,he]}],delay:[{delay:[De,ge,he]}],animate:[{animate:["none",D,ge,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ge,he]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:$e()}],"rotate-x":[{"rotate-x":$e()}],"rotate-y":[{"rotate-y":$e()}],"rotate-z":[{"rotate-z":$e()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[ge,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],zoom:[{zoom:[wn,ge,he]}],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",ge,he]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",ge,he]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[De,gi,qr,zf]}],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 f0(r={}){const t=r.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;r.density==="compact"?document.documentElement.dataset.xuiDensity="compact":r.density==="default"&&delete document.documentElement.dataset.xuiDensity;let o=document.getElementById(t);o||(o=document.createElement("style"),o.id=t,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,47 +60,47 @@ 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(_x,` {
65
- overflow: hidden `).concat(s,`;
66
- padding-right: `).concat(p,"px ").concat(s,`;
63
+ `}const Gf=(...r)=>r.filter((t,o,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===o).join(" ").trim();const p0=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const h0=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,i)=>i?i.toUpperCase():o.toLowerCase());const Qf=r=>{const t=h0(r);return t.charAt(0).toUpperCase()+t.slice(1)};var Kl={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 m0=r=>{for(const t in r)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},g0=m.createContext({}),v0=()=>m.useContext(g0),y0=m.forwardRef(({color:r,size:t,strokeWidth:o,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},h)=>{const{size:g=24,strokeWidth:v=2,absoluteStrokeWidth:y=!1,color:w="currentColor",className:b=""}=v0()??{},S=i??y?Number(o??v)*24/Number(t??g):o??v;return m.createElement("svg",{ref:h,...Kl,width:t??g??Kl.width,height:t??g??Kl.height,stroke:r??w,strokeWidth:S,className:Gf("lucide",b,a),...!l&&!m0(d)&&{"aria-hidden":"true"},...d},[...u.map(([_,k])=>m.createElement(_,k)),...Array.isArray(l)?l:[l]])});const rn=(r,t)=>{const o=m.forwardRef(({className:i,...a},l)=>m.createElement(y0,{ref:l,iconNode:t,className:Gf(`lucide-${p0(Qf(r))}`,`lucide-${r}`,i),...a}));return o.displayName=Qf(r),o};const Yf=rn("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Zl=rn("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Xf=rn("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const x0=rn("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 w0=rn("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 S0=rn("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const ql=rn("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 Jf=rn("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 b0=rn("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const k0=rn("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 C0=rn("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Gl={exports:{}},vi={};var ep;function _0(){if(ep)return vi;ep=1;var r=Il(),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(d,h,g){var v,y={},w=null,b=null;g!==void 0&&(w=""+g),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(b=h.ref);for(v in h)i.call(h,v)&&!l.hasOwnProperty(v)&&(y[v]=h[v]);if(d&&d.defaultProps)for(v in h=d.defaultProps,h)y[v]===void 0&&(y[v]=h[v]);return{$$typeof:t,type:d,key:w,ref:b,props:y,_owner:a.current}}return vi.Fragment=o,vi.jsx=u,vi.jsxs=u,vi}var tp;function E0(){return tp||(tp=1,Gl.exports=_0()),Gl.exports}var A=E0(),yi=df(),R0=Object.defineProperty,Ql=(r,t)=>R0(r,"name",{value:t,configurable:!0});function Yl(r,t){if(typeof r=="function")return r(t);r!=null&&(r.current=t)}Ql(Yl,"setRef");function Qr(...r){return t=>{let o=!1;const i=r.map(a=>{const l=Yl(a,t);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():Yl(r[a],null)}}}}Ql(Qr,"composeRefs");function Qe(...r){return m.useCallback(Qr(...r),r)}Ql(Qe,"useComposedRefs");var P0=Object.defineProperty,on=(r,t)=>P0(r,"name",{value:t,configurable:!0});function Sn(r){const t=m.forwardRef((o,i)=>{let{children:a,...l}=o,u=null,d=!1;const h=[];Xl(a)&&typeof Ls=="function"&&(a=Ls(a._payload)),m.Children.forEach(a,w=>{if(ip(w)){d=!0;const b=w;let S="child"in b.props?b.props.child:b.props.children;Xl(S)&&typeof Ls=="function"&&(S=Ls(S._payload)),u=N0(b,S),h.push(u?.props?.children)}else h.push(w)}),u?u=m.cloneElement(u,void 0,h):!d&&m.Children.count(a)===1&&m.isValidElement(a)&&(u=a);const g=u?op(u):void 0,v=Qe(i,g);if(!u){if(a||a===0)throw new Error(d?D0(r):A0(r));return a}const y=rp(l,u.props??{});return u.type!==m.Fragment&&(y.ref=i?v:g),m.cloneElement(u,y)});return t.displayName=`${r}.Slot`,t}on(Sn,"createSlot");var I0=Sn("Slot"),np=Symbol.for("radix.slottable");function O0(r){const t=on(o=>"child"in o?o.children(o.child):o.children,"Slottable");return t.displayName=`${r}.Slottable`,t.__radixId=np,t}on(O0,"createSlottable");var N0=on((r,t)=>{if("child"in r.props){const o=r.props.child;return m.isValidElement(o)?m.cloneElement(o,void 0,r.props.children(o.props.children)):null}return m.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function rp(r,t){const o={...t};for(const i in t){const a=r[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?o[i]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(o[i]=a):i==="style"?o[i]={...a,...l}:i==="className"&&(o[i]=[a,l].filter(Boolean).join(" "))}return{...r,...o}}on(rp,"mergeProps");function op(r){let t=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?r.ref:(t=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}on(op,"getElementRef");function ip(r){return m.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===np}on(ip,"isSlottable");var T0=Symbol.for("react.lazy");function Xl(r){return r!=null&&typeof r=="object"&&"$$typeof"in r&&r.$$typeof===T0&&"_payload"in r&&sp(r._payload)}on(Xl,"isLazyComponent");function sp(r){return typeof r=="object"&&r!==null&&"then"in r}on(sp,"isPromiseLike");var A0=on(r=>`${r} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),D0=on(r=>`${r} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ls=fi[" use ".trim().toString()],L0=Object.defineProperty,$0=(r,t)=>L0(r,"name",{value:t,configurable:!0}),j0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=j0.reduce((r,t)=>{const o=Sn(`Primitive.${t}`),i=m.forwardRef((a,l)=>{const{asChild:u,...d}=a,h=u?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(h,{...d,ref:l})});return i.displayName=`Primitive.${t}`,{...r,[t]:i}},{});function ap(r,t){r&&yi.flushSync(()=>r.dispatchEvent(t))}$0(ap,"dispatchDiscreteCustomEvent");var M0=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,Qt=(r,t)=>z0(r,"name",{value:t,configurable:!0});function F0(r,t){const o=m.createContext(t);o.displayName=r+"Context";const i=Qt(l=>{const{children:u,...d}=l,h=m.useMemo(()=>d,Object.values(d));return A.jsx(o.Provider,{value:h,children:u})},"Provider");i.displayName=r+"Provider";function a(l,u={}){const{optional:d=!1}=u,h=m.useContext(o);if(h)return h;if(t!==void 0)return t;if(!d)throw new Error(`\`${l}\` must be used within \`${r}\``)}return Qt(a,"useContext"),[i,a]}Qt(F0,"createContext");function pr(r,t=[]){let o=[];function i(l,u){const d=m.createContext(u);d.displayName=l+"Context";const h=o.length;o=[...o,u];const g=Qt(y=>{const{scope:w,children:b,...S}=y,_=w?.[r]?.[h]||d,k=m.useMemo(()=>S,Object.values(S));return A.jsx(_.Provider,{value:k,children:b})},"Provider");g.displayName=l+"Provider";function v(y,w,b={}){const{optional:S=!1}=b,_=w?.[r]?.[h]||d,k=m.useContext(_);if(k)return k;if(u!==void 0)return u;if(!S)throw new Error(`\`${y}\` must be used within \`${l}\``)}return Qt(v,"useContext"),[g,v]}Qt(i,"createContext");const a=Qt(()=>{const l=o.map(u=>m.createContext(u));return Qt(function(d){const h=d?.[r]||l;return m.useMemo(()=>({[`__scope${r}`]:{...d,[r]:h}}),[d,h])},"useScope")},"createScope");return a.scopeName=r,[i,lp(a,...t)]}Qt(pr,"createContextScope");function lp(...r){const t=r[0];if(r.length===1)return t;const o=Qt(()=>{const i=r.map(a=>({useScope:a(),scopeName:a.scopeName}));return Qt(function(l){const u=i.reduce((d,{useScope:h,scopeName:g})=>{const y=h(l)[`__scope${g}`];return{...d,...y}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return o.scopeName=t.scopeName,o}Qt(lp,"composeContextScopes");var V0=Object.defineProperty,gt=(r,t)=>V0(r,"name",{value:t,configurable:!0});function cp(r){const t=r+"CollectionProvider",[o,i]=pr(t),[a,l]=o(t,{collectionRef:{current:null},itemMap:new Map}),u=gt(_=>{const{scope:k,children:T}=_,D=m.useRef(null),N=m.useRef(new Map).current;return A.jsx(a,{scope:k,itemMap:N,collectionRef:D,children:T})},"CollectionProvider");u.displayName=t;const d=r+"CollectionSlot",h=Sn(d),g=m.forwardRef((_,k)=>{const{scope:T,children:D}=_,N=l(d,T),I=Qe(k,N.collectionRef);return A.jsx(h,{ref:I,children:D})});g.displayName=d;const v=r+"CollectionItemSlot",y="data-radix-collection-item",w=Sn(v),b=m.forwardRef((_,k)=>{const{scope:T,children:D,...N}=_,I=m.useRef(null),V=Qe(k,I),L=l(v,T);return m.useEffect(()=>(L.itemMap.set(I,{ref:I,...N}),()=>{L.itemMap.delete(I)})),A.jsx(w,{[y]:"",ref:V,children:D})});b.displayName=v;function S(_){const k=l(r+"CollectionConsumer",_);return m.useCallback(()=>{const D=k.collectionRef.current;if(!D)return[];const N=Array.from(D.querySelectorAll(`[${y}]`));return Array.from(k.itemMap.values()).sort((L,B)=>N.indexOf(L.ref.current)-N.indexOf(B.ref.current))},[k.collectionRef,k.itemMap])}return gt(S,"useCollection"),[{Provider:u,Slot:g,ItemSlot:b},S,i]}gt(cp,"createCollection");var up=new WeakMap,Jl=class Ur extends Map{static{gt(this,"OrderedDict")}#e;constructor(t){super(t),this.#e=[...super.keys()],up.set(this,!0)}set(t,o){return up.get(this)&&(this.has(t)?this.#e[this.#e.indexOf(t)]=t:this.#e.push(t)),super.set(t,o),this}insert(t,o,i){const a=this.has(o),l=this.#e.length,u=ec(t);let d=u>=0?u:l+u;const h=d<0||d>=l?-1:d;if(h===this.size||a&&h===this.size-1||h===-1)return this.set(o,i),this;const g=this.size+(a?0:1);u<0&&d++;const v=[...this.#e];let y,w=!1;for(let b=d;b<g;b++)if(d===b){let S=v[b];v[b]===o&&(S=v[b+1]),a&&this.delete(o),y=this.get(S),this.set(o,i)}else{!w&&v[b-1]===o&&(w=!0);const S=v[w?b:b-1],_=y;y=this.get(S),this.delete(S),this.set(S,_)}return this}with(t,o,i){const a=new Ur(this);return a.insert(t,o,i),a}before(t){const o=this.#e.indexOf(t)-1;if(!(o<0))return this.entryAt(o)}setBefore(t,o,i){const a=this.#e.indexOf(t);return a===-1?this:this.insert(a,o,i)}after(t){let o=this.#e.indexOf(t);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(t,o,i){const a=this.#e.indexOf(t);return a===-1?this:this.insert(a+1,o,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){const o=super.delete(t);return o&&this.#e.splice(this.#e.indexOf(t),1),o}deleteAt(t){const o=this.keyAt(t);return o!==void 0?this.delete(o):!1}at(t){const o=$s(this.#e,t);if(o!==void 0)return this.get(o)}entryAt(t){const o=$s(this.#e,t);if(o!==void 0)return[o,this.get(o)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return $s(this.#e,t)}from(t,o){const i=this.indexOf(t);if(i===-1)return;let a=i+o;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(t,o){const i=this.indexOf(t);if(i===-1)return;let a=i+o;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return a;i++}}findIndex(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return i;i++}return-1}filter(t,o){const i=[];let a=0;for(const l of this)Reflect.apply(t,o,[l,a,this])&&i.push(l),a++;return new Ur(i)}map(t,o){const i=[];let a=0;for(const l of this)i.push([l[0],Reflect.apply(t,o,[l,a,this])]),a++;return new Ur(i)}reduce(...t){const[o,i]=t;let a=0,l=i??this.at(0);for(const u of this)a===0&&t.length===1?l=u:l=Reflect.apply(o,this,[l,u,a,this]),a++;return l}reduceRight(...t){const[o,i]=t;let a=i??this.at(-1);for(let l=this.size-1;l>=0;l--){const u=this.at(l);l===this.size-1&&t.length===1?a=u:a=Reflect.apply(o,this,[a,u,l,this])}return a}toSorted(t){const o=[...this.entries()].sort(t);return new Ur(o)}toReversed(){const t=new Ur;for(let o=this.size-1;o>=0;o--){const i=this.keyAt(o),a=this.get(i);t.set(i,a)}return t}toSpliced(...t){const o=[...this.entries()];return o.splice(...t),new Ur(o)}slice(t,o){const i=new Ur;let a=this.size-1;if(t===void 0)return i;t<0&&(t=t+this.size),o!==void 0&&o>0&&(a=o-1);for(let l=t;l<=a;l++){const u=this.keyAt(l),d=this.get(u);i.set(u,d)}return i}every(t,o){let i=0;for(const a of this){if(!Reflect.apply(t,o,[a,i,this]))return!1;i++}return!0}some(t,o){let i=0;for(const a of this){if(Reflect.apply(t,o,[a,i,this]))return!0;i++}return!1}};function $s(r,t){if("at"in Array.prototype)return Array.prototype.at.call(r,t);const o=dp(r,t);return o===-1?void 0:r[o]}gt($s,"at");function dp(r,t){const o=r.length,i=ec(t),a=i>=0?i:o+i;return a<0||a>=o?-1:a}gt(dp,"toSafeIndex");function ec(r){return r!==r||r===0?0:Math.trunc(r)}gt(ec,"toSafeInteger");function U0(r){const t=r+"CollectionProvider",[o,i]=pr(t),[a,l]=o(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Jl,setItemMap:gt(()=>{},"setItemMap")}),u=gt(({state:N,...I})=>N?A.jsx(h,{...I,state:N}):A.jsx(d,{...I}),"CollectionProvider");u.displayName=t;const d=gt(N=>{const I=k();return A.jsx(h,{...N,state:I})},"CollectionInit");d.displayName=t+"Init";const h=gt(N=>{const{scope:I,children:V,state:L}=N,B=m.useRef(null),[j,Q]=m.useState(null),ae=Qe(B,Q),[Ce,ce]=L;return m.useEffect(()=>{if(!j)return;const le=hp(()=>{});return le.observe(j,{childList:!0,subtree:!0}),()=>{le.disconnect()}},[j]),A.jsx(a,{scope:I,itemMap:Ce,setItemMap:ce,collectionRef:ae,collectionRefObject:B,collectionElement:j,children:V})},"CollectionProviderImpl");h.displayName=t+"Impl";const g=r+"CollectionSlot",v=Sn(g),y=m.forwardRef((N,I)=>{const{scope:V,children:L}=N,B=l(g,V),j=Qe(I,B.collectionRef);return A.jsx(v,{ref:j,children:L})});y.displayName=g;const w=r+"CollectionItemSlot",b="data-radix-collection-item",S=Sn(w),_=m.forwardRef((N,I)=>{const{scope:V,children:L,...B}=N,j=m.useRef(null),[Q,ae]=m.useState(null),Ce=Qe(I,j,ae),ce=l(w,V),{setItemMap:le}=ce,fe=m.useRef(B);fp(fe.current,B)||(fe.current=B);const ke=fe.current;return m.useEffect(()=>{const re=ke;return le(se=>Q?se.has(Q)?se.set(Q,{...re,element:Q}).toSorted(tc):(se.set(Q,{...re,element:Q}),se.toSorted(tc)):se),()=>{le(se=>!Q||!se.has(Q)?se:(se.delete(Q),new Jl(se)))}},[Q,ke,le]),A.jsx(S,{[b]:"",ref:Ce,children:L})});_.displayName=w;function k(){return m.useState(new Jl)}gt(k,"useInitCollection");function T(N){const{itemMap:I}=l(r+"CollectionConsumer",N);return I}return gt(T,"useCollection"),[{Provider:u,Slot:y,ItemSlot:_},{createCollectionScope:i,useCollection:T,useInitCollection:k}]}gt(U0,"createCollection");function fp(r,t){if(r===t)return!0;if(typeof r!="object"||typeof t!="object"||r==null||t==null)return!1;const o=Object.keys(r),i=Object.keys(t);if(o.length!==i.length)return!1;for(const a of o)if(!Object.prototype.hasOwnProperty.call(t,a)||r[a]!==t[a])return!1;return!0}gt(fp,"shallowEqual");function pp(r,t){return!!(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)}gt(pp,"isElementPreceding");function tc(r,t){return!r[1].element||!t[1].element?0:pp(r[1].element,t[1].element)?-1:1}gt(tc,"sortByDocumentPosition");function hp(r){return new MutationObserver(o=>{for(const i of o)if(i.type==="childList"){r();return}})}gt(hp,"getChildListObserver");var B0=Object.defineProperty,So=(r,t)=>B0(r,"name",{value:t,configurable:!0}),mp=!!(typeof window<"u"&&window.document&&window.document.createElement);function He(r,t,{checkForDefaultPrevented:o=!0}={}){return So(function(a){if(r?.(a),o===!1||!a||!a.defaultPrevented)return t?.(a)},"handleEvent")}So(He,"composeEventHandlers");function H0(r){if(!mp)throw new Error("Cannot access window outside of the DOM");return r?.ownerDocument?.defaultView??window}So(H0,"getOwnerWindow");function nc(r){if(!mp)throw new Error("Cannot access document outside of the DOM");return r?.ownerDocument??document}So(nc,"getOwnerDocument");function gp(r,t=!1){const{activeElement:o}=nc(r);if(!o?.nodeName)return null;if(vp(o)&&o.contentDocument)return gp(o.contentDocument.body,t);if(t){const i=o.getAttribute("aria-activedescendant");if(i){const a=nc(o).getElementById(i);if(a)return a}}return o}So(gp,"getActiveElement");function vp(r){return r.tagName==="IFRAME"}So(vp,"isFrame");var ut=globalThis?.document?m.useLayoutEffect:()=>{},W0=Object.defineProperty,K0=(r,t)=>W0(r,"name",{value:t,configurable:!0}),yp=fi[" useEffectEvent ".trim().toString()],xp=fi[" useInsertionEffect ".trim().toString()];function wp(r){if(typeof yp=="function")return yp(r);const t=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof xp=="function"?xp(()=>{t.current=r}):ut(()=>{t.current=r}),m.useMemo(()=>((...o)=>t.current?.(...o)),[])}K0(wp,"useEffectEvent");var Z0=Object.defineProperty,xi=(r,t)=>Z0(r,"name",{value:t,configurable:!0}),q0=fi[" useInsertionEffect ".trim().toString()]||ut;function wi({prop:r,defaultProp:t,onChange:o=xi(()=>{},"onChange"),caller:i}){const[a,l,u]=Sp({defaultProp:t,onChange:o}),d=r!==void 0,h=d?r:a,g=m.useCallback(v=>{if(d){const y=bp(v)?v(r):v;y!==r&&u.current?.(y)}else l(v)},[d,r,l,u]);return[h,g]}xi(wi,"useControllableState");function Sp({defaultProp:r,onChange:t}){const[o,i]=m.useState(r),a=m.useRef(o),l=m.useRef(t);return q0(()=>{l.current=t},[t]),m.useEffect(()=>{a.current!==o&&(l.current?.(o),a.current=o)},[o,a]),[o,i,l]}xi(Sp,"useUncontrolledState");function bp(r){return typeof r=="function"}xi(bp,"isFunction");var kp=Symbol("RADIX:SYNC_STATE");function G0(r,t,o,i){const{prop:a,defaultProp:l,onChange:u,caller:d}=t,h=a!==void 0,g=wp(u),v=[{...o,state:l}];i&&v.push(i);const[y,w]=m.useReducer((k,T)=>{if(T.type===kp)return{...k,state:T.state};const D=r(k,T);return h&&!Object.is(D.state,k.state)&&g(D.state),D},...v),b=y.state,S=m.useRef(b);m.useEffect(()=>{S.current!==b&&(S.current=b,h||g(b))},[b,S,h]);const _=m.useMemo(()=>a!==void 0?{...y,state:a}:y,[y,a]);return m.useEffect(()=>{h&&!Object.is(a,y.state)&&w({type:kp,state:a})},[a,y.state,h]),[_,w]}xi(G0,"useControllableStateReducer");var Q0=Object.defineProperty,Un=(r,t)=>Q0(r,"name",{value:t,configurable:!0});function Cp(r,t){return m.useReducer((o,i)=>t[o][i]??o,r)}Un(Cp,"useStateMachine");var bo=Un(r=>{const{present:t,children:o}=r,i=_p(t),a=typeof o=="function"?o({present:i.isPresent}):m.Children.only(o),l=Ep(i.ref,Rp(a));return typeof o=="function"||i.isPresent?m.cloneElement(a,{ref:l}):null},"Presence");function _p(r){const[t,o]=m.useState(),i=m.useRef(null),a=m.useRef(r),l=m.useRef("none"),u=m.useRef(void 0),d=r?"mounted":"unmounted",[h,g]=Cp(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{h==="mounted"?(l.current=u.current??ko(i.current),u.current=void 0):l.current="none"},[h]),ut(()=>{const v=i.current,y=a.current;if(y!==r){const b=l.current,S=ko(v);r?(u.current=S,g("MOUNT")):S==="none"||v?.display==="none"?g("UNMOUNT"):g(y&&b!==S?"ANIMATION_OUT":"UNMOUNT"),a.current=r}},[r,g]),ut(()=>{if(t){let v;const y=t.ownerDocument.defaultView??window,w=Un(S=>{const k=ko(i.current).includes(CSS.escape(S.animationName));if(S.target===t&&k&&(g("ANIMATION_END"),!a.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",v=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},"handleAnimationEnd"),b=Un(S=>{S.target===t&&(l.current=ko(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",w),t.addEventListener("animationend",w),()=>{y.clearTimeout(v),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",w),t.removeEventListener("animationend",w)}}else g("ANIMATION_END")},[t,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:m.useCallback(v=>{if(v){const y=getComputedStyle(v);i.current=y,u.current=ko(y)}else i.current=null;o(v)},[])}}Un(_p,"usePresence");function rc(r,t){if(typeof r=="function")return r(t);r!=null&&(r.current=t)}Un(rc,"setRef");function Ep(...r){const t=m.useRef(r);return t.current=r,m.useCallback(o=>{const i=t.current;let a=!1;const l=i.map(u=>{const d=rc(u,o);return!a&&typeof d=="function"&&(a=!0),d});if(a)return()=>{for(let u=0;u<l.length;u++){const d=l[u];typeof d=="function"?d():rc(i[u],null)}}},[])}Un(Ep,"useStableComposedRefs");function ko(r){return r?.animationName||"none"}Un(ko,"getAnimationName");function Rp(r){let t=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?r.ref:(t=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}Un(Rp,"getElementRef");var Y0=Object.defineProperty,X0=(r,t)=>Y0(r,"name",{value:t,configurable:!0}),J0=fi[" useId ".trim().toString()]||(()=>{}),ew=0;function Bt(r){const[t,o]=m.useState(J0());return ut(()=>{r||o(i=>i??String(ew++))},[r]),r||(t?`radix-${t}`:"")}X0(Bt,"useId");var tw=Object.defineProperty,nw=(r,t)=>tw(r,"name",{value:t,configurable:!0}),rw=m.createContext(void 0);function Pp(r){const t=m.useContext(rw);return r||t||"ltr"}nw(Pp,"useDirection");var ow=Object.defineProperty,iw=(r,t)=>ow(r,"name",{value:t,configurable:!0});function bn(r){const t=m.useRef(r);return m.useEffect(()=>{t.current=r}),m.useMemo(()=>((...o)=>t.current?.(...o)),[])}iw(bn,"useCallbackRef");var sw=Object.defineProperty,vt=(r,t)=>sw(r,"name",{value:t,configurable:!0}),oc="dismissableLayer.update",aw="dismissableLayer.pointerDownOutside",lw="dismissableLayer.focusOutside",Ip,Op=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ic=m.forwardRef(vt(function(t,o){const{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:g,...v}=t,y=m.useContext(Op),[w,b]=m.useState(null),S=w?.ownerDocument??globalThis?.document,[,_]=m.useState({}),k=Qe(o,b),T=Array.from(y.layers),[D]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),N=D?T.indexOf(D):-1,I=w?T.indexOf(w):-1,V=y.layersWithOutsidePointerEventsDisabled.size>0,L=I>=N,B=m.useRef(!1),j=Tp(ce=>{u?.(ce),h?.(ce),ce.defaultPrevented||g?.()},{ownerDocument:S,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:B,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(ce=>{if(!(ce instanceof Node))return!1;const le=[...y.branches].some(fe=>fe.contains(ce));return L&&!le},[y.branches,L])}),Q=Ap(ce=>{if(a&&B.current)return;const le=ce.target;[...y.branches].some(ke=>ke.contains(le))||(d?.(ce),h?.(ce),ce.defaultPrevented||g?.())},S),ae=w?I===T.length-1:!1,Ce=bn(ce=>{ce.key==="Escape"&&(l?.(ce),!ce.defaultPrevented&&g&&(ce.preventDefault(),g()))});return m.useEffect(()=>{if(ae)return S.addEventListener("keydown",Ce,{capture:!0}),()=>S.removeEventListener("keydown",Ce,{capture:!0})},[S,ae,Ce]),m.useEffect(()=>{if(w)return i&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Ip=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(w)),y.layers.add(w),sc(),()=>{i&&(y.layersWithOutsidePointerEventsDisabled.delete(w),y.layersWithOutsidePointerEventsDisabled.size===0&&(S.body.style.pointerEvents=Ip))}},[w,S,i,y]),m.useEffect(()=>()=>{w&&(y.layers.delete(w),y.layersWithOutsidePointerEventsDisabled.delete(w),sc())},[w,y]),m.useEffect(()=>{const ce=vt(()=>_({}),"handleUpdate");return document.addEventListener(oc,ce),()=>document.removeEventListener(oc,ce)},[]),A.jsx(Ze.div,{...v,ref:k,style:{pointerEvents:V?L?"auto":"none":void 0,...t.style},onFocusCapture:He(t.onFocusCapture,Q.onFocusCapture),onBlurCapture:He(t.onBlurCapture,Q.onBlurCapture),onPointerDownCapture:He(t.onPointerDownCapture,j.onPointerDownCapture)})},"DismissableLayer"));function Np(){const r=m.useContext(Op),[t,o]=m.useState(null);return m.useEffect(()=>{if(t)return r.dismissableSurfaces.add(t),()=>{r.dismissableSurfaces.delete(t)}},[t,r.dismissableSurfaces]),o}vt(Np,"useDismissableLayerSurface");var cw=vt(()=>!0,"IS_TRUE");function Tp(r,t){const{ownerDocument:o=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=cw}=t,d=bn(r),h=m.useRef(!1),g=m.useRef(!1),v=m.useRef(new Map),y=m.useRef(()=>{});return m.useEffect(()=>{function w(){g.current=!1,a.current=!1,v.current.clear()}vt(w,"resetOutsideInteraction");function b(){return Array.from(v.current.values()).some(Boolean)}vt(b,"isOutsideInteractionIntercepted");function S(N){if(!g.current)return;const I=N.target;I instanceof Node&&[...l].some(L=>L.contains(I))||v.current.set(N.type,!0),N.type==="click"&&window.setTimeout(()=>{g.current&&y.current()},0)}vt(S,"handleInteractionCapture");function _(N){g.current&&v.current.set(N.type,!1)}vt(_,"handleInteractionBubble");const k=vt(N=>{if(N.target&&!h.current){let I=function(){o.removeEventListener("click",y.current);const L=b();w(),L||ac(aw,d,V,{discrete:!0})};if(vt(I,"handleAndDispatchPointerDownOutsideEvent"),!u(N.target)){o.removeEventListener("click",y.current),w(),h.current=!1;return}const V={originalEvent:N};g.current=!0,a.current=i&&N.button===0,v.current.clear(),!i||N.button!==0?I():(o.removeEventListener("click",y.current),y.current=I,o.addEventListener("click",y.current,{once:!0}))}else o.removeEventListener("click",y.current),w();h.current=!1},"handlePointerDown"),T=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const N of T)o.addEventListener(N,S,!0),o.addEventListener(N,_);const D=window.setTimeout(()=>{o.addEventListener("pointerdown",k)},0);return()=>{window.clearTimeout(D),o.removeEventListener("pointerdown",k),o.removeEventListener("click",y.current);for(const N of T)o.removeEventListener(N,S,!0),o.removeEventListener(N,_)}},[o,d,i,a,l,u]),{onPointerDownCapture:vt(()=>h.current=!0,"onPointerDownCapture")}}vt(Tp,"usePointerDownOutside");function Ap(r,t=globalThis?.document){const o=bn(r),i=m.useRef(!1);return m.useEffect(()=>{const a=vt(l=>{l.target&&!i.current&&ac(lw,o,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,o]),{onFocusCapture:vt(()=>i.current=!0,"onFocusCapture"),onBlurCapture:vt(()=>i.current=!1,"onBlurCapture")}}vt(Ap,"useFocusOutside");function sc(){const r=new CustomEvent(oc);document.dispatchEvent(r)}vt(sc,"dispatchUpdate");function ac(r,t,o,{discrete:i}){const a=o.originalEvent.target,l=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:o});t&&a.addEventListener(r,t,{once:!0}),i?ap(a,l):a.dispatchEvent(l)}vt(ac,"handleAndDispatchCustomEvent");var uw=Object.defineProperty,It=(r,t)=>uw(r,"name",{value:t,configurable:!0}),lc="focusScope.autoFocusOnMount",cc="focusScope.autoFocusOnUnmount",Dp={bubbles:!1,cancelable:!0},uc=m.forwardRef(It(function(t,o){const{loop:i=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...d}=t,[h,g]=m.useState(null),v=bn(l),y=bn(u),w=m.useRef(null),b=Qe(o,g),S=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(a){let k=function(I){if(S.paused||!h)return;const V=I.target;h.contains(V)?w.current=V:Bn(w.current,{select:!0})},T=function(I){if(S.paused||!h)return;const V=I.relatedTarget;V!==null&&(h.contains(V)||Bn(w.current,{select:!0}))},D=function(I){if(document.activeElement===document.body)for(const L of I)L.removedNodes.length>0&&Bn(h)};It(k,"handleFocusIn"),It(T,"handleFocusOut"),It(D,"handleMutations"),document.addEventListener("focusin",k),document.addEventListener("focusout",T);const N=new MutationObserver(D);return h&&N.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),N.disconnect()}}},[a,h,S.paused]),m.useEffect(()=>{if(h){zp.add(S);const k=document.activeElement;if(!h.contains(k)){const D=new CustomEvent(lc,Dp);h.addEventListener(lc,v),h.dispatchEvent(D),D.defaultPrevented||(Lp(Vp(dc(h)),{select:!0}),document.activeElement===k&&Bn(h))}return()=>{h.removeEventListener(lc,v),setTimeout(()=>{const D=new CustomEvent(cc,Dp);h.addEventListener(cc,y),h.dispatchEvent(D),D.defaultPrevented||Bn(k??document.body,{select:!0}),h.removeEventListener(cc,y),zp.remove(S)},0)}}},[h,v,y,S]);const _=m.useCallback(k=>{if(!i&&!a||S.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,D=document.activeElement;if(T&&D){const N=k.currentTarget,[I,V]=$p(N);I&&V?!k.shiftKey&&D===V?(k.preventDefault(),i&&Bn(I,{select:!0})):k.shiftKey&&D===I&&(k.preventDefault(),i&&Bn(V,{select:!0})):D===N&&k.preventDefault()}},[i,a,S.paused]);return A.jsx(Ze.div,{tabIndex:-1,...d,ref:b,onKeyDown:_})},"FocusScope"));function Lp(r,{select:t=!1}={}){const o=document.activeElement;for(const i of r)if(Bn(i,{select:t}),document.activeElement!==o)return}It(Lp,"focusFirst");function $p(r){const t=dc(r),o=fc(t,r),i=fc(t.reverse(),r);return[o,i]}It($p,"getTabbableEdges");function dc(r){const t=[],o=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:It(i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)t.push(o.currentNode);return t}It(dc,"getTabbableCandidates");function fc(r,t){const o=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const i of r)if(!(o?!i.checkVisibility({checkVisibilityCSS:!0}):jp(i,{upTo:t})))return i}It(fc,"findVisible");function jp(r,{upTo:t}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(t!==void 0&&r===t)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}It(jp,"isHidden");function Mp(r){return r instanceof HTMLInputElement&&"select"in r}It(Mp,"isSelectableInput");function Bn(r,{select:t=!1}={}){if(r&&r.focus){const o=document.activeElement;r.focus({preventScroll:!0}),r!==o&&Mp(r)&&t&&r.select()}}It(Bn,"focus");var zp=Fp();function Fp(){let r=[];return{add(t){const o=r[0];t!==o&&o?.pause(),r=pc(r,t),r.unshift(t)},remove(t){r=pc(r,t),r[0]?.resume()}}}It(Fp,"createFocusScopesStack");function pc(r,t){const o=[...r],i=o.indexOf(t);return i!==-1&&o.splice(i,1),o}It(pc,"arrayRemove");function Vp(r){return r.filter(t=>t.tagName!=="A")}It(Vp,"removeLinks");var dw=Object.defineProperty,fw=(r,t)=>dw(r,"name",{value:t,configurable:!0}),hc=m.forwardRef(fw(function(t,o){const{container:i,...a}=t,[l,u]=m.useState(!1);ut(()=>u(!0),[]);const d=i||l&&globalThis?.document?.body;return d?yi.createPortal(A.jsx(Ze.div,{...a,ref:o}),d):null},"Portal")),pw=Object.defineProperty,mc=(r,t)=>pw(r,"name",{value:t,configurable:!0}),js=0,Co=null;function hw(r){return Si(),r.children}mc(hw,"FocusGuards");function Si(){m.useEffect(()=>{Co||(Co={start:gc(),end:gc()});const{start:r,end:t}=Co;return document.body.firstElementChild!==r&&document.body.insertAdjacentElement("afterbegin",r),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),js++,()=>{js===1&&(Co?.start.remove(),Co?.end.remove(),Co=null),js=Math.max(0,js-1)}},[])}mc(Si,"useFocusGuards");function gc(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}mc(gc,"createFocusGuard");var kn=function(){return kn=Object.assign||function(t){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(t[l]=o[l])}return t},kn.apply(this,arguments)};function Up(r,t){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&t.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(r);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(r,i[a])&&(o[i[a]]=r[i[a]]);return o}function mw(r,t,o){if(o||arguments.length===2)for(var i=0,a=t.length,l;i<a;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return r.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ms="right-scroll-bar-position",zs="width-before-scroll-bar",gw="with-scroll-bars-hidden",vw="--removed-body-scroll-bar-size";function vc(r,t){return typeof r=="function"?r(t):r&&(r.current=t),r}function yw(r,t){var o=m.useState(function(){return{value:r,callback:t,facade:{get current(){return o.value},set current(i){var a=o.value;a!==i&&(o.value=i,o.callback(i,a))}}}})[0];return o.callback=t,o.facade}var xw=typeof window<"u"?m.useLayoutEffect:m.useEffect,Bp=new WeakMap;function ww(r,t){var o=yw(null,function(i){return r.forEach(function(a){return vc(a,i)})});return xw(function(){var i=Bp.get(o);if(i){var a=new Set(i),l=new Set(r),u=o.current;a.forEach(function(d){l.has(d)||vc(d,null)}),l.forEach(function(d){a.has(d)||vc(d,u)})}Bp.set(o,r)},[r]),o}function Sw(r){return r}function bw(r,t){t===void 0&&(t=Sw);var o=[],i=!1,a={read:function(){if(i)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]:r},useMedium:function(l){var u=t(l,i);return o.push(u),function(){o=o.filter(function(d){return d!==u})}},assignSyncMedium:function(l){for(i=!0;o.length;){var u=o;o=[],u.forEach(l)}o={push:function(d){return l(d)},filter:function(){return o}}},assignMedium:function(l){i=!0;var u=[];if(o.length){var d=o;o=[],d.forEach(l),u=o}var h=function(){var v=u;u=[],v.forEach(l)},g=function(){return Promise.resolve().then(h)};g(),o={push:function(v){u.push(v),g()},filter:function(v){return u=u.filter(v),o}}}};return a}function kw(r){r===void 0&&(r={});var t=bw(null);return t.options=kn({async:!0,ssr:!1},r),t}var Hp=function(r){var t=r.sideCar,o=Up(r,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return m.createElement(i,kn({},o))};Hp.isSideCarExport=!0;function Cw(r,t){return r.useMedium(t),Hp}var Wp=kw(),yc=function(){},Fs=m.forwardRef(function(r,t){var o=m.useRef(null),i=m.useState({onScrollCapture:yc,onWheelCapture:yc,onTouchMoveCapture:yc}),a=i[0],l=i[1],u=r.forwardProps,d=r.children,h=r.className,g=r.removeScrollBar,v=r.enabled,y=r.shards,w=r.sideCar,b=r.noRelative,S=r.noIsolation,_=r.inert,k=r.allowPinchZoom,T=r.as,D=T===void 0?"div":T,N=r.gapMode,I=Up(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=w,L=ww([o,t]),B=kn(kn({},I),a);return m.createElement(m.Fragment,null,v&&m.createElement(V,{sideCar:Wp,removeScrollBar:g,shards:y,noRelative:b,noIsolation:S,inert:_,setCallbacks:l,allowPinchZoom:!!k,lockRef:o,gapMode:N}),u?m.cloneElement(m.Children.only(d),kn(kn({},B),{ref:L})):m.createElement(D,kn({},B,{className:h,ref:L}),d))});Fs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fs.classNames={fullWidth:zs,zeroRight:Ms};var _w=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ew(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var t=_w();return t&&r.setAttribute("nonce",t),r}function Rw(r,t){r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}function Pw(r){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(r)}var Iw=function(){var r=0,t=null;return{add:function(o){r==0&&(t=Ew())&&(Rw(t,o),Pw(t)),r++},remove:function(){r--,!r&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ow=function(){var r=Iw();return function(t,o){m.useEffect(function(){return r.add(t),function(){r.remove()}},[t&&o])}},Kp=function(){var r=Ow(),t=function(o){var i=o.styles,a=o.dynamic;return r(i,a),null};return t},Nw={left:0,top:0,right:0,gap:0},xc=function(r){return parseInt(r||"",10)||0},Tw=function(r){var t=window.getComputedStyle(document.body),o=t[r==="padding"?"paddingLeft":"marginLeft"],i=t[r==="padding"?"paddingTop":"marginTop"],a=t[r==="padding"?"paddingRight":"marginRight"];return[xc(o),xc(i),xc(a)]},Aw=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Nw;var t=Tw(r),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-o+t[2]-t[0])}},Dw=Kp(),_o="data-scroll-locked",Lw=function(r,t,o,i){var a=r.left,l=r.top,u=r.right,d=r.gap;return o===void 0&&(o="margin"),`
64
+ .`.concat(gw,` {
65
+ overflow: hidden `).concat(i,`;
66
+ padding-right: `).concat(d,"px ").concat(i,`;
67
67
  }
68
- body[`).concat(vo,`] {
69
- overflow: hidden `).concat(s,`;
68
+ body[`).concat(_o,`] {
69
+ overflow: hidden `).concat(i,`;
70
70
  overscroll-behavior: contain;
71
- `).concat([r&&"position: relative ".concat(s,";"),o==="margin"&&`
72
- padding-left: `.concat(l,`px;
73
- padding-top: `).concat(u,`px;
74
- padding-right: `).concat(d,`px;
71
+ `).concat([t&&"position: relative ".concat(i,";"),o==="margin"&&`
72
+ padding-left: `.concat(a,`px;
73
+ padding-top: `).concat(l,`px;
74
+ padding-right: `).concat(u,`px;
75
75
  margin-left:0;
76
76
  margin-top:0;
77
- margin-right: `).concat(p,"px ").concat(s,`;
78
- `),o==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),`
77
+ margin-right: `).concat(d,"px ").concat(i,`;
78
+ `),o==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
79
79
  }
80
80
 
81
- .`).concat(Is,` {
82
- right: `).concat(p,"px ").concat(s,`;
81
+ .`).concat(Ms,` {
82
+ right: `).concat(d,"px ").concat(i,`;
83
83
  }
84
84
 
85
- .`).concat(Ps,` {
86
- margin-right: `).concat(p,"px ").concat(s,`;
85
+ .`).concat(zs,` {
86
+ margin-right: `).concat(d,"px ").concat(i,`;
87
87
  }
88
88
 
89
- .`).concat(Is," .").concat(Is,` {
90
- right: 0 `).concat(s,`;
89
+ .`).concat(Ms," .").concat(Ms,` {
90
+ right: 0 `).concat(i,`;
91
91
  }
92
92
 
93
- .`).concat(Ps," .").concat(Ps,` {
94
- margin-right: 0 `).concat(s,`;
93
+ .`).concat(zs," .").concat(zs,` {
94
+ margin-right: 0 `).concat(i,`;
95
95
  }
96
96
 
97
- body[`).concat(vo,`] {
98
- `).concat(kx,": ").concat(p,`px;
97
+ body[`).concat(_o,`] {
98
+ `).concat(vw,": ").concat(d,`px;
99
99
  }
100
- `)},Sp=function(){var n=parseInt(document.body.getAttribute(vo)||"0",10);return isFinite(n)?n:0},Ux=function(){m.useEffect(function(){return document.body.setAttribute(vo,(Sp()+1).toString()),function(){var n=Sp()-1;n<=0?document.body.removeAttribute(vo):document.body.setAttribute(vo,n.toString())}},[])},Bx=function(n){var r=n.noRelative,o=n.noImportant,s=n.gapMode,l=s===void 0?"margin":s;Ux();var u=m.useMemo(function(){return Fx(l)},[l]);return m.createElement($x,{styles:Vx(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,Wx=function(n){return n.tagName==="TEXTAREA"},_p=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!Wx(n)&&o[r]==="visible")},Hx=function(n){return _p(n,"overflowY")},Zx=function(n){return _p(n,"overflowX")},kp=function(n,r){var o=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=Ep(n,s);if(l){var u=bp(n,s),d=u[1],p=u[2];if(d>p)return!0}s=s.parentNode}while(s&&s!==o.body);return!1},qx=function(n){var r=n.scrollTop,o=n.scrollHeight,s=n.clientHeight;return[r,o,s]},Kx=function(n){var r=n.scrollLeft,o=n.scrollWidth,s=n.clientWidth;return[r,o,s]},Ep=function(n,r){return n==="v"?Hx(r):Zx(r)},bp=function(n,r){return n==="v"?qx(r):Kx(r)},Gx=function(n,r){return n==="h"&&r==="rtl"?-1:1},Qx=function(n,r,o,s,l){var u=Gx(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 E=bp(n,p),_=E[0],b=E[1],S=E[2],A=b-S-u*_;(_||A)&&Ep(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]},Cp=function(n){return[n.deltaX,n.deltaY]},Rp=function(n){return n&&"current"in n?n.current:n},Yx=function(n,r){return n[0]===r[0]&&n[1]===r[1]},Xx=function(n){return`
101
- .block-interactivity-`.concat(n,` {pointer-events: none;}
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`
100
+ `)},Zp=function(){var r=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(r)?r:0},$w=function(){m.useEffect(function(){return document.body.setAttribute(_o,(Zp()+1).toString()),function(){var r=Zp()-1;r<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,r.toString())}},[])},jw=function(r){var t=r.noRelative,o=r.noImportant,i=r.gapMode,a=i===void 0?"margin":i;$w();var l=m.useMemo(function(){return Aw(a)},[a]);return m.createElement(Dw,{styles:Lw(l,!t,a,o?"":"!important")})},wc=!1;if(typeof window<"u")try{var Vs=Object.defineProperty({},"passive",{get:function(){return wc=!0,!0}});window.addEventListener("test",Vs,Vs),window.removeEventListener("test",Vs,Vs)}catch{wc=!1}var Eo=wc?{passive:!1}:!1,Mw=function(r){return r.tagName==="TEXTAREA"},qp=function(r,t){if(!(r instanceof Element))return!1;var o=window.getComputedStyle(r);return o[t]!=="hidden"&&!(o.overflowY===o.overflowX&&!Mw(r)&&o[t]==="visible")},zw=function(r){return qp(r,"overflowY")},Fw=function(r){return qp(r,"overflowX")},Gp=function(r,t){var o=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=Qp(r,i);if(a){var l=Yp(r,i),u=l[1],d=l[2];if(u>d)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},Vw=function(r){var t=r.scrollTop,o=r.scrollHeight,i=r.clientHeight;return[t,o,i]},Uw=function(r){var t=r.scrollLeft,o=r.scrollWidth,i=r.clientWidth;return[t,o,i]},Qp=function(r,t){return r==="v"?zw(t):Fw(t)},Yp=function(r,t){return r==="v"?Vw(t):Uw(t)},Bw=function(r,t){return r==="h"&&t==="rtl"?-1:1},Hw=function(r,t,o,i,a){var l=Bw(r,window.getComputedStyle(t).direction),u=l*i,d=o.target,h=t.contains(d),g=!1,v=u>0,y=0,w=0;do{if(!d)break;var b=Yp(r,d),S=b[0],_=b[1],k=b[2],T=_-k-l*S;(S||T)&&Qp(r,d)&&(y+=T,w+=S);var D=d.parentNode;d=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(v&&Math.abs(y)<1||!v&&Math.abs(w)<1)&&(g=!0),g},Us=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Xp=function(r){return[r.deltaX,r.deltaY]},Jp=function(r){return r&&"current"in r?r.current:r},Ww=function(r,t){return r[0]===t[0]&&r[1]===t[1]},Kw=function(r){return`
101
+ .block-interactivity-`.concat(r,` {pointer-events: none;}
102
+ .allow-interactivity-`).concat(r,` {pointer-events: all;}
103
+ `)},Zw=0,Ro=[];function qw(r){var t=m.useRef([]),o=m.useRef([0,0]),i=m.useRef(),a=m.useState(Zw++)[0],l=m.useState(Kp)[0],u=m.useRef(r);m.useEffect(function(){u.current=r},[r]),m.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(a));var _=mw([r.lockRef.current],(r.shards||[]).map(Jp),!0).filter(Boolean);return _.forEach(function(k){return k.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),_.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(a))})}}},[r.inert,r.lockRef.current,r.shards]);var d=m.useCallback(function(_,k){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!u.current.allowPinchZoom;var T=Us(_),D=o.current,N="deltaX"in _?_.deltaX:D[0]-T[0],I="deltaY"in _?_.deltaY:D[1]-T[1],V,L=_.target,B=Math.abs(N)>Math.abs(I)?"h":"v";if("touches"in _&&B==="h"&&L.type==="range")return!1;var j=window.getSelection(),Q=j&&j.anchorNode,ae=Q?Q===L||Q.contains(L):!1;if(ae)return!1;var Ce=Gp(B,L);if(!Ce)return!0;if(Ce?V=B:(V=B==="v"?"h":"v",Ce=Gp(B,L)),!Ce)return!1;if(!i.current&&"changedTouches"in _&&(N||I)&&(i.current=V),!V)return!0;var ce=i.current||V;return Hw(ce,k,_,ce==="h"?N:I)},[]),h=m.useCallback(function(_){var k=_;if(!(!Ro.length||Ro[Ro.length-1]!==l)){var T="deltaY"in k?Xp(k):Us(k),D=t.current.filter(function(V){return V.name===k.type&&(V.target===k.target||k.target===V.shadowParent)&&Ww(V.delta,T)})[0];if(D&&D.should){k.cancelable&&k.preventDefault();return}if(!D){var N=(u.current.shards||[]).map(Jp).filter(Boolean).filter(function(V){return V.contains(k.target)}),I=N.length>0?d(k,N[0]):!u.current.noIsolation;I&&k.cancelable&&k.preventDefault()}}},[]),g=m.useCallback(function(_,k,T,D){var N={name:_,delta:k,target:T,should:D,shadowParent:Gw(T)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(I){return I!==N})},1)},[]),v=m.useCallback(function(_){o.current=Us(_),i.current=void 0},[]),y=m.useCallback(function(_){g(_.type,Xp(_),_.target,d(_,r.lockRef.current))},[]),w=m.useCallback(function(_){g(_.type,Us(_),_.target,d(_,r.lockRef.current))},[]);m.useEffect(function(){return Ro.push(l),r.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",h,Eo),document.addEventListener("touchmove",h,Eo),document.addEventListener("touchstart",v,Eo),function(){Ro=Ro.filter(function(_){return _!==l}),document.removeEventListener("wheel",h,Eo),document.removeEventListener("touchmove",h,Eo),document.removeEventListener("touchstart",v,Eo)}},[]);var b=r.removeScrollBar,S=r.inert;return m.createElement(m.Fragment,null,S?m.createElement(l,{styles:Kw(a)}):null,b?m.createElement(jw,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function Gw(r){for(var t=null;r!==null;)r instanceof ShadowRoot&&(t=r.host,r=r.host),r=r.parentNode;return t}const Qw=Cw(Wp,qw);var Bs=m.forwardRef(function(r,t){return m.createElement(Fs,kn({},r,{ref:t,sideCar:Qw}))});Bs.classNames=Fs.classNames;var Yw=function(r){if(typeof document>"u")return null;var t=Array.isArray(r)?r[0]:r;return t.ownerDocument.body},Po=new WeakMap,Hs=new WeakMap,Ws={},Sc=0,eh=function(r){return r&&(r.host||eh(r.parentNode))},Xw=function(r,t){return t.map(function(o){if(r.contains(o))return o;var i=eh(o);return i&&r.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",r,". Doing nothing"),null)}).filter(function(o){return!!o})},Jw=function(r,t,o,i){var a=Xw(t,Array.isArray(r)?r:[r]);Ws[o]||(Ws[o]=new WeakMap);var l=Ws[o],u=[],d=new Set,h=new Set(a),g=function(y){!y||d.has(y)||(d.add(y),g(y.parentNode))};a.forEach(g);var v=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(w){if(d.has(w))v(w);else try{var b=w.getAttribute(i),S=b!==null&&b!=="false",_=(Po.get(w)||0)+1,k=(l.get(w)||0)+1;Po.set(w,_),l.set(w,k),u.push(w),_===1&&S&&Hs.set(w,!0),k===1&&w.setAttribute(o,"true"),S||w.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",w,T)}})};return v(t),d.clear(),Sc++,function(){u.forEach(function(y){var w=Po.get(y)-1,b=l.get(y)-1;Po.set(y,w),l.set(y,b),w||(Hs.has(y)||y.removeAttribute(i),Hs.delete(y)),b||y.removeAttribute(o)}),Sc--,Sc||(Po=new WeakMap,Po=new WeakMap,Hs=new WeakMap,Ws={})}},bc=function(r,t,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(r)?r:[r]),a=Yw(r);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),Jw(i,a,o,"aria-hidden")):function(){return null}},eS=Object.defineProperty,Ht=(r,t)=>eS(r,"name",{value:t,configurable:!0}),kc="Dialog",[th,nh]=pr(kc),[tS,sn]=th(kc),Cc=Ht(r=>{const{__scopeDialog:t,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=r,d=m.useRef(null),h=m.useRef(null),[g,v]=wi({prop:i,defaultProp:a??!1,onChange:l,caller:kc}),[y,w]=m.useState(0),[b,S]=m.useState(0);return A.jsx(tS,{scope:t,triggerRef:d,contentRef:h,contentId:Bt(),titleId:Bt(),descriptionId:Bt(),titlePresent:y>0,descriptionPresent:b>0,setTitleCount:w,setDescriptionCount:S,open:g,onOpenChange:v,onOpenToggle:m.useCallback(()=>v(_=>!_),[v]),modal:u,children:o})},"Dialog"),nS="DialogTrigger",rS=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(nS,i),u=Qe(o,l.triggerRef);return A.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":Zs(l.open),...a,ref:u,onClick:He(t.onClick,l.onOpenToggle)})},"DialogTrigger")),rh="DialogPortal",[oS,oh]=th(rh,{forceMount:void 0}),_c=Ht(r=>{const{__scopeDialog:t,forceMount:o,children:i,container:a}=r,l=sn(rh,t);return A.jsx(oS,{scope:t,forceMount:o,children:m.Children.map(i,u=>A.jsx(bo,{present:o||l.open,children:A.jsx(hc,{asChild:!0,container:a,children:u})}))})},"DialogPortal"),Ec="DialogOverlay",Rc=m.forwardRef(Ht(function(t,o){const i=oh(Ec,t.__scopeDialog),{forceMount:a=i.forceMount,...l}=t,u=sn(Ec,t.__scopeDialog);return u.modal?A.jsx(bo,{present:a||u.open,children:A.jsx(sS,{...l,ref:o})}):null},"DialogOverlay")),iS=Sn("DialogOverlay.RemoveScroll"),sS=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(Ec,i),u=Np(),d=Qe(o,u);return A.jsx(Bs,{as:iS,allowPinchZoom:!0,shards:[l.contentRef],children:A.jsx(Ze.div,{"data-state":Zs(l.open),...a,ref:d,style:{pointerEvents:"auto",...a.style}})})},"DialogOverlayImpl")),bi="DialogContent",Pc=m.forwardRef(Ht(function(t,o){const i=oh(bi,t.__scopeDialog),{forceMount:a=i.forceMount,...l}=t,u=sn(bi,t.__scopeDialog);return A.jsx(bo,{present:a||u.open,children:u.modal?A.jsx(aS,{...l,ref:o}):A.jsx(lS,{...l,ref:o})})},"DialogContent")),aS=m.forwardRef(Ht(function(t,o){const i=sn(bi,t.__scopeDialog),a=m.useRef(null),l=Qe(o,i.contentRef,a);return m.useEffect(()=>{const u=a.current;if(u)return bc(u)},[]),A.jsx(ih,{...t,ref:l,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:He(t.onCloseAutoFocus,u=>{u.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:He(t.onPointerDownOutside,u=>{const d=u.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&u.preventDefault()}),onFocusOutside:He(t.onFocusOutside,u=>u.preventDefault())})},"DialogContentModal")),lS=m.forwardRef(Ht(function(t,o){const i=sn(bi,t.__scopeDialog),a=m.useRef(!1),l=m.useRef(!1);return A.jsx(ih,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(a.current||i.triggerRef.current?.focus(),u.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(a.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const d=u.target;i.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})},"DialogContentNonModal")),ih=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,...d}=t,h=sn(bi,i);return Si(),A.jsx(A.Fragment,{children:A.jsx(uc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:u,children:A.jsx(ic,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":Zs(h.open),...d,ref:o,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),cS="DialogTitle",sh=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(cS,i),{setTitleCount:u}=l;return ut(()=>(u(d=>d+1),()=>u(d=>d-1)),[u]),A.jsx(Ze.h2,{id:l.titleId,...a,ref:o})},"DialogTitle")),uS="DialogDescription",ah=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(uS,i),{setDescriptionCount:u}=l;return ut(()=>(u(d=>d+1),()=>u(d=>d-1)),[u]),A.jsx(Ze.p,{id:l.descriptionId,...a,ref:o})},"DialogDescription")),dS="DialogClose",Ks=m.forwardRef(Ht(function(t,o){const{__scopeDialog:i,...a}=t,l=sn(dS,i);return A.jsx(Ze.button,{type:"button",...a,ref:o,onClick:He(t.onClick,()=>l.onOpenChange(!1))})},"DialogClose"));function Zs(r){return r?"open":"closed"}Ht(Zs,"getState");var fS=Object.defineProperty,Hn=(r,t)=>fS(r,"name",{value:t,configurable:!0}),pS="AlertDialog",[hS,wR]=pr(pS,[nh]),Wn=nh(),mS=Hn(r=>{const{__scopeAlertDialog:t,...o}=r,i=Wn(t);return A.jsx(Cc,{...i,...o,modal:!0})},"AlertDialog");m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(rS,{...l,...a,ref:o})},"AlertDialogTrigger"));var gS=Hn(r=>{const{__scopeAlertDialog:t,...o}=r,i=Wn(t);return A.jsx(_c,{...i,...o})},"AlertDialogPortal"),vS=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(Rc,{...l,...a,ref:o})},"AlertDialogOverlay")),yS="AlertDialogContent",[xS,wS]=hS(yS),SS=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,children:a,...l}=t,u=Wn(i),d=m.useRef(null),h=Qe(o,d),g=m.useRef(null);return A.jsx(xS,{scope:i,cancelRef:g,children:A.jsx(Pc,{role:"alertdialog",...u,...l,ref:h,onOpenAutoFocus:He(l.onOpenAutoFocus,v=>{v.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:v=>v.preventDefault(),onInteractOutside:v=>v.preventDefault(),children:a})})},"AlertDialogContent")),bS=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(sh,{...l,...a,ref:o})},"AlertDialogTitle")),kS=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(ah,{...l,...a,ref:o})},"AlertDialogDescription"));m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,l=Wn(i);return A.jsx(Ks,{...l,...a,ref:o})},"AlertDialogAction"));var CS="AlertDialogCancel",_S=m.forwardRef(Hn(function(t,o){const{__scopeAlertDialog:i,...a}=t,{cancelRef:l}=wS(CS,i),u=Wn(i),d=Qe(o,l);return A.jsx(Ks,{...u,...a,ref:d})},"AlertDialogCancel")),ES=mS,RS=gS,PS=vS,IS=SS,OS=_S,NS=bS,TS=kS,AS=Object.defineProperty,DS=(r,t)=>AS(r,"name",{value:t,configurable:!0});function lh(r){const[t,o]=m.useState(void 0);return ut(()=>{if(r){o({width:r.offsetWidth,height:r.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let u,d;if("borderBoxSize"in l){const h=l.borderBoxSize,g=Array.isArray(h)?h[0]:h;u=g.inlineSize,d=g.blockSize}else u=r.offsetWidth,d=r.offsetHeight;o({width:u,height:d})});return i.observe(r,{box:"border-box"}),()=>i.unobserve(r)}else o(void 0)},[r]),t}DS(lh,"useSize");const LS=["top","right","bottom","left"],hr=Math.min,Kn=Math.max,qs=Math.round,Gs=Math.floor,Zn=r=>({x:r,y:r}),$S={left:"right",right:"left",bottom:"top",top:"bottom"};function ch(r,t,o){return Kn(r,hr(t,o))}function qn(r,t){return typeof r=="function"?r(t):r}function mr(r){return r.split("-")[0]}function Io(r){return r.split("-")[1]}function Ic(r){return r==="x"?"y":"x"}function Oc(r){return r==="y"?"height":"width"}function Cn(r){const t=r[0];return t==="t"||t==="b"?"y":"x"}function Nc(r){return Ic(Cn(r))}function jS(r,t,o){o===void 0&&(o=!1);const i=Io(r),a=Nc(r),l=Oc(a);let u=a==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Qs(u)),[u,Qs(u)]}function MS(r){const t=Qs(r);return[Tc(r),t,Tc(t)]}function Tc(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}const uh=["left","right"],dh=["right","left"],zS=["top","bottom"],FS=["bottom","top"];function VS(r,t,o){switch(r){case"top":case"bottom":return o?t?dh:uh:t?uh:dh;case"left":case"right":return t?zS:FS;default:return[]}}function US(r,t,o,i){const a=Io(r);let l=VS(mr(r),o==="start",i);return a&&(l=l.map(u=>u+"-"+a),t&&(l=l.concat(l.map(Tc)))),l}function Qs(r){const t=mr(r);return $S[t]+r.slice(t.length)}function BS(r){var t,o,i,a;return{top:(t=r.top)!=null?t:0,right:(o=r.right)!=null?o:0,bottom:(i=r.bottom)!=null?i:0,left:(a=r.left)!=null?a:0}}function fh(r){return typeof r!="number"?BS(r):{top:r,right:r,bottom:r,left:r}}function Ys(r){const{x:t,y:o,width:i,height:a}=r;return{width:i,height:a,top:o,left:t,right:t+i,bottom:o+a,x:t,y:o}}function ph(r,t,o){let{reference:i,floating:a}=r;const l=Cn(t),u=Nc(t),d=Oc(u),h=mr(t),g=l==="y",v=i.x+i.width/2-a.width/2,y=i.y+i.height/2-a.height/2,w=i[d]/2-a[d]/2;let b;switch(h){case"top":b={x:v,y:i.y-a.height};break;case"bottom":b={x:v,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y};break;case"left":b={x:i.x-a.width,y};break;default:b={x:i.x,y:i.y}}const S=Io(t);return S&&(b[u]+=w*(S==="end"?1:-1)*(o&&g?-1:1)),b}async function HS(r,t){var o;t===void 0&&(t={});const{x:i,y:a,platform:l,rects:u,elements:d,strategy:h}=r,{boundary:g="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:w=!1,padding:b=0}=qn(t,r),S=fh(b),k=d[w?y==="floating"?"reference":"floating":y],T=Ys(await l.getClippingRect({element:(o=await(l.isElement==null?void 0:l.isElement(k)))==null||o?k:k.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:g,rootBoundary:v,strategy:h})),D=y==="floating"?{x:i,y:a,width:u.floating.width,height:u.floating.height}:u.reference,N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),I=await(l.isElement==null?void 0:l.isElement(N))&&await(l.getScale==null?void 0:l.getScale(N))||{x:1,y:1},V=Ys(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:D,offsetParent:N,strategy:h}):D);return{top:(T.top-V.top+S.top)/I.y,bottom:(V.bottom-T.bottom+S.bottom)/I.y,left:(T.left-V.left+S.left)/I.x,right:(V.right-T.right+S.right)/I.x}}const WS=50,KS=async(r,t,o)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:u}=o,d=u.detectOverflow?u:{...u,detectOverflow:HS},h=await(u.isRTL==null?void 0:u.isRTL(t));let g=await u.getElementRects({reference:r,floating:t,strategy:a}),{x:v,y}=ph(g,i,h),w=i,b=0;const S={};for(let _=0;_<l.length;_++){const k=l[_];if(!k)continue;const{name:T,fn:D}=k,{x:N,y:I,data:V,reset:L}=await D({x:v,y,initialPlacement:i,placement:w,strategy:a,middlewareData:S,rects:g,platform:d,elements:{reference:r,floating:t}});v=N??v,y=I??y,S[T]={...S[T],...V},L&&b<WS&&(b++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(g=L.rects===!0?await u.getElementRects({reference:r,floating:t,strategy:a}):L.rects),{x:v,y}=ph(g,w,h)),_=-1)}return{x:v,y,placement:w,strategy:a,middlewareData:S}},ZS=r=>({name:"arrow",options:r,async fn(t){const{x:o,y:i,placement:a,rects:l,platform:u,elements:d,middlewareData:h}=t,{element:g,padding:v=0}=qn(r,t)||{};if(g==null)return{};const y=fh(v),w={x:o,y:i},b=Nc(a),S=Oc(b),_=await u.getDimensions(g),k=b==="y",T=k?"top":"left",D=k?"bottom":"right",N=k?"clientHeight":"clientWidth",I=l.reference[S]+l.reference[b]-w[b]-l.floating[S],V=w[b]-l.reference[b],L=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let B=L?L[N]:0;(!B||!await(u.isElement==null?void 0:u.isElement(L)))&&(B=d.floating[N]||l.floating[S]);const j=I/2-V/2,Q=B/2-_[S]/2-1,ae=hr(y[T],Q),Ce=hr(y[D],Q),ce=B-_[S]-Ce,le=B/2-_[S]/2+j,fe=ch(ae,le,ce),ke=!h.arrow&&Io(a)!=null&&le!==fe&&l.reference[S]/2-(le<ae?ae:Ce)-_[S]/2<0,re=ke?le<ae?le-ae:le-ce:0;return{[b]:w[b]+re,data:{[b]:fe,centerOffset:le-fe-re,...ke&&{alignmentOffset:re}},reset:ke}}}),qS=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var o,i;const{placement:a,middlewareData:l,rects:u,initialPlacement:d,platform:h,elements:g}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:_=!0,...k}=qn(r,t);if((o=l.arrow)!=null&&o.alignmentOffset)return{};const T=mr(a),D=Cn(d),N=mr(d)===d,I=await(h.isRTL==null?void 0:h.isRTL(g.floating)),V=w||(N||!_?[Qs(d)]:MS(d)),L=S!=="none";!w&&L&&V.push(...US(d,_,S,I));const B=[d,...V],j=await h.detectOverflow(t,k),Q=[];let ae=((i=l.flip)==null?void 0:i.overflows)||[];if(v&&Q.push(j[T]),y){const fe=jS(a,u,I);Q.push(j[fe[0]],j[fe[1]])}if(ae=[...ae,{placement:a,overflows:Q}],!Q.every(fe=>fe<=0)){var Ce,ce;const fe=(((Ce=l.flip)==null?void 0:Ce.index)||0)+1,ke=B[fe];if(ke&&(!(y==="alignment"?D!==Cn(ke):!1)||ae.every(U=>Cn(U.placement)===D?U.overflows[0]>0:!0)))return{data:{index:fe,overflows:ae},reset:{placement:ke}};let re=(ce=ae.filter(se=>se.overflows[0]<=0).sort((se,U)=>se.overflows[1]-U.overflows[1])[0])==null?void 0:ce.placement;if(!re)switch(b){case"bestFit":{var le;const se=(le=ae.filter(U=>{if(L){const G=Cn(U.placement);return G===D||G==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(G=>G>0).reduce((G,z)=>G+z,0)]).sort((U,G)=>U[1]-G[1])[0])==null?void 0:le[0];se&&(re=se);break}case"initialPlacement":re=d;break}if(a!==re)return{reset:{placement:re}}}return{}}}};function hh(r,t){return{top:r.top-t.height,right:r.right-t.width,bottom:r.bottom-t.height,left:r.left-t.width}}function mh(r){return LS.some(t=>r[t]>=0)}const GS=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(t){const{rects:o,platform:i}=t,{strategy:a="referenceHidden",...l}=qn(r,t);switch(a){case"referenceHidden":{const u=await i.detectOverflow(t,{...l,elementContext:"reference"}),d=hh(u,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:mh(d)}}}case"escaped":{const u=await i.detectOverflow(t,{...l,altBoundary:!0}),d=hh(u,o.floating);return{data:{escapedOffsets:d,escaped:mh(d)}}}default:return{}}}}},gh=new Set(["left","top"]);async function QS(r,t){const{placement:o,platform:i,elements:a}=r,l=await(i.isRTL==null?void 0:i.isRTL(a.floating)),u=mr(o),d=Io(o),h=Cn(o)==="y",g=gh.has(u)?-1:1,v=l&&h?-1:1,y=qn(t,r);let{mainAxis:w,crossAxis:b,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof S=="number"&&(b=d==="end"?S*-1:S),h?{x:b*v,y:w*g}:{x:w*g,y:b*v}}const YS=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var o,i;const{x:a,y:l,placement:u,middlewareData:d}=t,h=await QS(t,r);return u===((o=d.offset)==null?void 0:o.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:a+h.x,y:l+h.y,data:{...h,placement:u}}}}},XS=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){const{x:o,y:i,placement:a,platform:l}=t,{mainAxis:u=!0,crossAxis:d=!1,limiter:h={fn:D=>{let{x:N,y:I}=D;return{x:N,y:I}}},...g}=qn(r,t),v={x:o,y:i},y=await l.detectOverflow(t,g),w=Cn(a),b=Ic(w);let S=v[b],_=v[w];const k=(D,N)=>ch(N+y[D==="y"?"top":"left"],N,N-y[D==="y"?"bottom":"right"]);u&&(S=k(b,S)),d&&(_=k(w,_));const T=h.fn({...t,[b]:S,[w]:_});return{...T,data:{x:T.x-o,y:T.y-i,enabled:{[b]:u,[w]:d}}}}}},JS=function(r){return r===void 0&&(r={}),{options:r,fn(t){var o,i;const{x:a,y:l,placement:u,rects:d,middlewareData:h}=t,{offset:g=0,mainAxis:v=!0,crossAxis:y=!0}=qn(r,t),w={x:a,y:l},b=Cn(u),S=Ic(b);let _=w[S],k=w[b];const T=qn(g,t),D=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:(o=T.mainAxis)!=null?o:0,crossAxis:(i=T.crossAxis)!=null?i:0};if(v){const V=S==="y"?"height":"width",L=d.reference[S]-d.floating[V]+D.mainAxis,B=d.reference[S]+d.reference[V]-D.mainAxis;_<L?_=L:_>B&&(_=B)}if(y){var N,I;const V=S==="y"?"width":"height",L=gh.has(mr(u)),B=d.reference[b]-d.floating[V]+(L&&((N=h.offset)==null?void 0:N[b])||0)+(L?0:D.crossAxis),j=d.reference[b]+d.reference[V]+(L?0:((I=h.offset)==null?void 0:I[b])||0)-(L?D.crossAxis:0);k<B?k=B:k>j&&(k=j)}return{[S]:_,[b]:k}}}},e1=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(t){const{placement:o,rects:i,platform:a,elements:l}=t,{apply:u=()=>{},...d}=qn(r,t),h=await a.detectOverflow(t,d),g=mr(o),v=Io(o),y=Cn(o)==="y",{width:w,height:b}=i.floating;let S,_;g==="top"||g==="bottom"?(S=g,_=v===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(_=g,S=v==="end"?"top":"bottom");const k=b-h.top-h.bottom,T=w-h.left-h.right,D=hr(b-h[S],k),N=hr(w-h[_],T),I=t.middlewareData.shift,V=!I;let L=D,B=N;I!=null&&I.enabled.x&&(B=T),I!=null&&I.enabled.y&&(L=k),V&&!v&&(y?B=w-2*Kn(h.left,h.right):L=b-2*Kn(h.top,h.bottom)),await u({...t,availableWidth:B,availableHeight:L});const j=await a.getDimensions(l.floating);return w!==j.width||b!==j.height?{reset:{rects:!0}}:{}}}};function Xs(){return typeof window<"u"}function Oo(r){return vh(r)?(r.nodeName||"").toLowerCase():"#document"}function $t(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Gn(r){var t;return(t=(vh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function vh(r){return Xs()?r instanceof Node||r instanceof $t(r).Node:!1}function _n(r){return Xs()?r instanceof Element||r instanceof $t(r).Element:!1}function gr(r){return Xs()?r instanceof HTMLElement||r instanceof $t(r).HTMLElement:!1}function yh(r){return!Xs()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof $t(r).ShadowRoot}function Js(r){const{overflow:t,overflowX:o,overflowY:i,display:a}=En(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&a!=="inline"&&a!=="contents"}function t1(r){return/^(table|td|th)$/.test(Oo(r))}function ea(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}const n1=/transform|translate|scale|rotate|perspective|filter/,r1=/paint|layout|strict|content/,Yr=r=>!!r&&r!=="none";let Ac;function Dc(r){const t=_n(r)?En(r):r;return Yr(t.transform)||Yr(t.translate)||Yr(t.scale)||Yr(t.rotate)||Yr(t.perspective)||!Lc()&&(Yr(t.backdropFilter)||Yr(t.filter))||n1.test(t.willChange||"")||r1.test(t.contain||"")}function o1(r){let t=Xr(r);for(;gr(t)&&!ki(t);){if(Dc(t))return t;if(ea(t))return null;t=Xr(t)}return null}function Lc(){return Ac==null&&(Ac=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ac}function ki(r){return/^(html|body|#document)$/.test(Oo(r))}function En(r){return $t(r).getComputedStyle(r)}function ta(r){return _n(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Xr(r){if(Oo(r)==="html")return r;const t=r.assignedSlot||r.parentNode||yh(r)&&r.host||Gn(r);return yh(t)?t.host:t}function xh(r){const t=Xr(r);return ki(t)?(r.ownerDocument||r).body:gr(t)&&Js(t)?t:xh(t)}function Ci(r,t,o){var i;t===void 0&&(t=[]),o===void 0&&(o=!0);const a=xh(r),l=a===((i=r.ownerDocument)==null?void 0:i.body),u=$t(a);if(l){const d=$c(u);return t.concat(u,u.visualViewport||[],Js(a)?a:[],d&&o?Ci(d):[])}else return t.concat(a,Ci(a,[],o))}function $c(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function wh(r){const t=En(r);let o=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=gr(r),l=a?r.offsetWidth:o,u=a?r.offsetHeight:i,d=qs(o)!==l||qs(i)!==u;return d&&(o=l,i=u),{width:o,height:i,$:d}}function jc(r){return _n(r)?r:r.contextElement}function No(r){const t=jc(r);if(!gr(t))return Zn(1);const o=t.getBoundingClientRect(),{width:i,height:a,$:l}=wh(t);let u=(l?qs(o.width):o.width)/i,d=(l?qs(o.height):o.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const i1=Zn(0);function Sh(r){const t=$t(r);return!Lc()||!t.visualViewport?i1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function s1(r,t,o){return t===void 0&&(t=!1),!!o&&t&&o===$t(r)}function Jr(r,t,o,i){t===void 0&&(t=!1),o===void 0&&(o=!1);const a=r.getBoundingClientRect(),l=jc(r);let u=Zn(1);t&&(i?_n(i)&&(u=No(i)):u=No(r));const d=s1(l,o,i)?Sh(l):Zn(0);let h=(a.left+d.x)/u.x,g=(a.top+d.y)/u.y,v=a.width/u.x,y=a.height/u.y;if(l&&i){const w=$t(l),b=_n(i)?$t(i):i;let S=w,_=$c(S);for(;_&&b!==S;){const k=No(_),T=_.getBoundingClientRect(),D=En(_),N=T.left+(_.clientLeft+parseFloat(D.paddingLeft))*k.x,I=T.top+(_.clientTop+parseFloat(D.paddingTop))*k.y;h*=k.x,g*=k.y,v*=k.x,y*=k.y,h+=N,g+=I,S=$t(_),_=$c(S)}}return Ys({width:v,height:y,x:h,y:g})}function na(r,t){const o=ta(r).scrollLeft;return t?t.left+o:Jr(Gn(r)).left+o}function bh(r,t){const o=r.getBoundingClientRect(),i=o.left+t.scrollLeft-na(r,o),a=o.top+t.scrollTop;return{x:i,y:a}}function a1(r){let{elements:t,rect:o,offsetParent:i,strategy:a}=r;const l=a==="fixed",u=Gn(i),d=t?ea(t.floating):!1;if(i===u||d&&l)return o;let h={scrollLeft:0,scrollTop:0},g=Zn(1);const v=Zn(0),y=gr(i);if((y||!l)&&((Oo(i)!=="body"||Js(u))&&(h=ta(i)),y)){const b=Jr(i);g=No(i),v.x=b.x+i.clientLeft,v.y=b.y+i.clientTop}const w=u&&!y&&!l?bh(u,h):Zn(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-h.scrollLeft*g.x+v.x+w.x,y:o.y*g.y-h.scrollTop*g.y+v.y+w.y}}function l1(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function c1(r){const t=ta(r),o=r.ownerDocument.body,i=Kn(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),a=Kn(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let l=-t.scrollLeft+na(r);const u=-t.scrollTop;return En(o).direction==="rtl"&&(l+=Kn(r.clientWidth,o.clientWidth)-i),{width:i,height:a,x:l,y:u}}const u1=25;function d1(r,t,o){o===void 0&&(o="viewport");const i=o==="layoutViewport",a=$t(r),l=Gn(r),u=a.visualViewport;let d=l.clientWidth,h=l.clientHeight,g=0,v=0;if(u){const w=!Lc()||t==="fixed";i?w||(g=-u.offsetLeft,v=-u.offsetTop):(d=u.width,h=u.height,w&&(g=u.offsetLeft,v=u.offsetTop))}if(na(l)<=0){const w=l.ownerDocument,b=w.body,S=getComputedStyle(b),_=w.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,k=Math.abs(l.clientWidth-b.clientWidth-_),T=getComputedStyle(l).scrollbarGutter==="stable both-edges"?k/2:k;T<=u1&&(d-=T)}return{width:d,height:h,x:g,y:v}}function f1(r,t){const o=Jr(r,!0,t==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=No(r),u=r.clientWidth*l.x,d=r.clientHeight*l.y,h=a*l.x,g=i*l.y;return{width:u,height:d,x:h,y:g}}function kh(r,t,o){let i;if(t==="viewport"||t==="layoutViewport")i=d1(r,o,t);else if(t==="document")i=c1(Gn(r));else if(_n(t))i=f1(t,o);else{const a=Sh(r);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ys(i)}function p1(r,t){const o=t.get(r);if(o)return o;let i=Ci(r,[],!1).filter(d=>_n(d)&&Oo(d)!=="body"),a=null;const l=En(r).position==="fixed";let u=l?Xr(r):r;for(;_n(u)&&!ki(u);){const d=En(u),h=Dc(u),g=a?a.position:l?"fixed":"";!h&&(g==="fixed"||g==="absolute"&&d.position==="static")?i=i.filter(y=>y!==u):a=d,u=Xr(u)}return t.set(r,i),i}function h1(r){let{element:t,boundary:o,rootBoundary:i,strategy:a}=r;const u=[...o==="clippingAncestors"?ea(t)?[]:p1(t,this._c):[].concat(o),i],d=kh(t,u[0],a);let h=d.top,g=d.right,v=d.bottom,y=d.left;for(let w=1;w<u.length;w++){const b=kh(t,u[w],a);h=Kn(b.top,h),g=hr(b.right,g),v=hr(b.bottom,v),y=Kn(b.left,y)}return{width:g-y,height:v-h,x:y,y:h}}function m1(r){const{width:t,height:o}=wh(r);return{width:t,height:o}}function g1(r,t,o){const i=gr(t),a=Gn(t),l=o==="fixed",u=Jr(r,!0,l,t);let d={scrollLeft:0,scrollTop:0};const h=Zn(0);if((i||!l)&&((Oo(t)!=="body"||Js(a))&&(d=ta(t)),i)){const w=Jr(t,!0,l,t);h.x=w.x+t.clientLeft,h.y=w.y+t.clientTop}!i&&a&&(h.x=na(a));const g=a&&!i&&!l?bh(a,d):Zn(0),v=u.left+d.scrollLeft-h.x-g.x,y=u.top+d.scrollTop-h.y-g.y;return{x:v,y,width:u.width,height:u.height}}function Mc(r){return En(r).position==="static"}function Ch(r,t){if(!gr(r)||En(r).position==="fixed")return null;if(t)return t(r);let o=r.offsetParent;return Gn(r)===o&&(o=o.ownerDocument.body),o}function _h(r,t){const o=$t(r);if(ea(r))return o;if(!gr(r)){let a=Xr(r);for(;a&&!ki(a);){if(_n(a)&&!Mc(a))return a;a=Xr(a)}return o}let i=Ch(r,t);for(;i&&t1(i)&&Mc(i);)i=Ch(i,t);return i&&ki(i)&&Mc(i)&&!Dc(i)?o:i||o1(r)||o}const v1=async function(r){const t=this.getOffsetParent||_h,o=this.getDimensions,i=await o(r.floating);return{reference:g1(r.reference,await t(r.floating),r.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function y1(r){return En(r).direction==="rtl"}const x1={convertOffsetParentRelativeRectToViewportRelativeRect:a1,getDocumentElement:Gn,getClippingRect:h1,getOffsetParent:_h,getElementRects:v1,getClientRects:l1,getDimensions:m1,getScale:No,isElement:_n,isRTL:y1};function Eh(r,t){return r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height}function w1(r,t,o){let i=null,a;const l=Gn(r);function u(){var v;clearTimeout(a),(v=i)==null||v.disconnect(),i=null}function d(v,y){v===void 0&&(v=!1),y===void 0&&(y=1),u();const w=r.getBoundingClientRect(),{left:b,top:S,width:_,height:k}=w;if(v||t(),!_||!k)return;const T=Gs(S),D=Gs(l.clientWidth-(b+_)),N=Gs(l.clientHeight-(S+k)),I=Gs(b),L={rootMargin:-T+"px "+-D+"px "+-N+"px "+-I+"px",threshold:Kn(0,hr(1,y))||1};let B=!0;function j(Q){const ae=Q[0].intersectionRatio;if(!Eh(w,r.getBoundingClientRect()))return d();if(ae!==y){if(!B)return d();ae?d(!1,ae):a=setTimeout(()=>{d(!1,1e-7)},1e3)}B=!1}try{i=new IntersectionObserver(j,{...L,root:l.ownerDocument})}catch{i=new IntersectionObserver(j,L)}i.observe(r)}const h=$t(r),g=()=>d(o);return h.addEventListener("resize",g),d(!0),()=>{h.removeEventListener("resize",g),u()}}function S1(r,t,o,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,g=jc(r),v=a||l?[...g?Ci(g):[],...t?Ci(t):[]]:[];v.forEach(T=>{a&&T.addEventListener("scroll",o),l&&T.addEventListener("resize",o)});const y=g&&d?w1(g,o,l):null;let w=-1,b=null;u&&(b=new ResizeObserver(T=>{let[D]=T;D&&D.target===g&&b&&t&&(b.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(t)})),o()}),g&&!h&&b.observe(g),t&&b.observe(t));let S,_=h?Jr(r):null;h&&k();function k(){const T=Jr(r);_&&!Eh(_,T)&&o(),_=T,S=requestAnimationFrame(k)}return o(),()=>{var T;v.forEach(D=>{a&&D.removeEventListener("scroll",o),l&&D.removeEventListener("resize",o)}),y?.(),(T=b)==null||T.disconnect(),b=null,h&&cancelAnimationFrame(S)}}const b1=YS,k1=XS,C1=qS,_1=e1,E1=GS,Rh=ZS,R1=JS,P1=(r,t,o)=>{const i=new Map,a=o??{},l={...x1,...a.platform,_c:i};return KS(r,t,{...a,platform:l})};var I1=typeof document<"u",O1=function(){},ra=I1?m.useLayoutEffect:O1;function oa(r,t){if(r===t)return!0;if(typeof r!=typeof t)return!1;if(typeof r=="function"&&r.toString()===t.toString())return!0;let o,i,a;if(r&&t&&typeof r=="object"){if(Array.isArray(r)){if(o=r.length,o!==t.length)return!1;for(i=o;i--!==0;)if(!oa(r[i],t[i]))return!1;return!0}if(a=Object.keys(r),o=a.length,o!==Object.keys(t).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=o;i--!==0;){const l=a[i];if(!(l==="_owner"&&r.$$typeof)&&!oa(r[l],t[l]))return!1}return!0}return r!==r&&t!==t}function Ph(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Ih(r,t){const o=Ph(r);return Math.round(t*o)/o}function zc(r){const t=m.useRef(r);return ra(()=>{t.current=r}),t}function N1(r){r===void 0&&(r={});const{placement:t="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:h,open:g}=r,[v,y]=m.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[w,b]=m.useState(i);oa(w,i)||b(i);const[S,_]=m.useState(null),[k,T]=m.useState(null),D=m.useCallback(U=>{U!==L.current&&(L.current=U,_(U))},[]),N=m.useCallback(U=>{U!==B.current&&(B.current=U,T(U))},[]),I=l||S,V=u||k,L=m.useRef(null),B=m.useRef(null),j=m.useRef(v),Q=h!=null,ae=zc(h),Ce=zc(a),ce=zc(g),le=m.useCallback(()=>{if(!L.current||!B.current)return;const U={placement:t,strategy:o,middleware:w};Ce.current&&(U.platform=Ce.current),P1(L.current,B.current,U).then(G=>{const z={...G,isPositioned:ce.current!==!1};fe.current&&!oa(j.current,z)&&(j.current=z,yi.flushSync(()=>{y(z)}))})},[w,t,o,Ce,ce]);ra(()=>{g===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[g]);const fe=m.useRef(!1);ra(()=>(fe.current=!0,()=>{fe.current=!1}),[]),ra(()=>{if(I&&(L.current=I),V&&(B.current=V),I&&V){if(ae.current)return ae.current(I,V,le);le()}},[I,V,le,ae,Q]);const ke=m.useMemo(()=>({reference:L,floating:B,setReference:D,setFloating:N}),[D,N]),re=m.useMemo(()=>({reference:I,floating:V}),[I,V]),se=m.useMemo(()=>{const U={position:o,left:0,top:0};if(!re.floating)return U;const G=Ih(re.floating,v.x),z=Ih(re.floating,v.y);return d?{...U,transform:"translate("+G+"px, "+z+"px)",...Ph(re.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:G,top:z}},[o,d,re.floating,v.x,v.y]);return m.useMemo(()=>({...v,update:le,refs:ke,elements:re,floatingStyles:se}),[v,le,ke,re,se])}const T1=r=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:r,fn(o){const{element:i,padding:a}=typeof r=="function"?r(o):r;return i&&t(i)?i.current!=null?Rh({element:i.current,padding:a}).fn(o):{}:i?Rh({element:i,padding:a}).fn(o):{}}}},A1=(r,t)=>{const o=b1(r);return{name:o.name,fn:o.fn,options:[r,t]}},D1=(r,t)=>{const o=k1(r);return{name:o.name,fn:o.fn,options:[r,t]}},L1=(r,t)=>({fn:R1(r).fn,options:[r,t]}),$1=(r,t)=>{const o=C1(r);return{name:o.name,fn:o.fn,options:[r,t]}},j1=(r,t)=>{const o=_1(r);return{name:o.name,fn:o.fn,options:[r,t]}},M1=(r,t)=>{const o=E1(r);return{name:o.name,fn:o.fn,options:[r,t]}},z1=(r,t)=>{const o=T1(r);return{name:o.name,fn:o.fn,options:[r,t]}};var F1=Object.defineProperty,vr=(r,t)=>F1(r,"name",{value:t,configurable:!0}),Oh="Popper",[Nh,ia]=pr(Oh),[V1,Th]=Nh(Oh),U1=vr(r=>{const{__scopePopper:t,children:o}=r,[i,a]=m.useState(null),[l,u]=m.useState(void 0);return A.jsx(V1,{scope:t,anchor:i,onAnchorChange:a,placementState:l,setPlacementState:u,children:o})},"Popper"),B1="PopperAnchor",H1=m.forwardRef(vr(function(t,o){const{__scopePopper:i,virtualRef:a,...l}=t,u=Th(B1,i),d=m.useRef(null),h=u.onAnchorChange,g=m.useCallback(_=>{d.current=_,_&&h(_)},[h]),v=Qe(o,g),y=m.useRef(null);m.useEffect(()=>{if(!a)return;const _=y.current;y.current=a.current,_!==y.current&&h(y.current)});const w=u.placementState&&sa(u.placementState),b=w?.[0],S=w?.[1];return a?null:A.jsx(Ze.div,{"data-radix-popper-side":b,"data-radix-popper-align":S,...l,ref:v})},"PopperAnchor")),Ah="PopperContent",[W1,SR]=Nh(Ah),K1=m.forwardRef(vr(function(t,o){const{__scopePopper:i,side:a="bottom",sideOffset:l=0,align:u="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:_,...k}=t,T=Th(Ah,i),[D,N]=m.useState(null),I=Qe(o,N),[V,L]=m.useState(null),B=lh(V),j=B?.width??0,Q=B?.height??0,ae=a+(u!=="center"?"-"+u:""),Ce=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ce=Array.isArray(v)?v:[v],le=ce.length>0,fe={padding:Ce,boundary:ce.filter(Dh),altBoundary:le},{refs:ke,floatingStyles:re,placement:se,isPositioned:U,middlewareData:G}=N1({strategy:"fixed",placement:ae,whileElementsMounted:vr((...ie)=>S1(...ie,{animationFrame:S==="always"}),"whileElementsMounted"),elements:{reference:T.anchor},middleware:[A1({mainAxis:l+Q,alignmentAxis:d}),g&&D1({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?L1():void 0,...fe}),g&&$1({...fe}),j1({...fe,apply:vr(({elements:ie,rects:Ae,availableWidth:$e,availableHeight:Me})=>{const{width:Ue,height:oe}=Ae.reference,Ie=ie.floating.style;Ie.setProperty("--radix-popper-available-width",`${$e}px`),Ie.setProperty("--radix-popper-available-height",`${Me}px`),Ie.setProperty("--radix-popper-anchor-width",`${Ue}px`),Ie.setProperty("--radix-popper-anchor-height",`${oe}px`)},"apply")}),V&&z1({element:V,padding:h}),Z1({arrowWidth:j,arrowHeight:Q}),b&&M1({strategy:"referenceHidden",...fe,boundary:le?fe.boundary:void 0})]}),z=T.setPlacementState;ut(()=>(z(se),()=>{z(void 0)}),[se,z]);const[P,E]=sa(se),W=bn(_);ut(()=>{U&&W?.()},[U,W]);const X=G.arrow?.x,H=G.arrow?.y,J=G.arrow?.centerOffset!==0,[ue,ee]=m.useState();return ut(()=>{D&&ee(window.getComputedStyle(D).zIndex)},[D]),A.jsx("div",{ref:ke.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:U?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:A.jsx(W1,{scope:i,placedSide:P,placedAlign:E,onArrowChange:L,arrowX:X,arrowY:H,shouldHideArrow:J,children:A.jsx(Ze.div,{"data-side":P,"data-align":E,...k,ref:I,style:{...k.style,animation:U?k.style?.animation:"none"}})})})},"PopperContent"));function Dh(r){return r!==null}vr(Dh,"isNotNull");var Z1=vr(r=>({name:"transformOrigin",options:r,fn(t){const{placement:o,rects:i,middlewareData:a}=t,u=a.arrow?.centerOffset!==0,d=u?0:r.arrowWidth,h=u?0:r.arrowHeight,[g,v]=sa(o),y={start:"0%",center:"50%",end:"100%"}[v],w=(a.arrow?.x??0)+d/2,b=(a.arrow?.y??0)+h/2;let S="",_="";return g==="bottom"?(S=u?y:`${w}px`,_=`${-h}px`):g==="top"?(S=u?y:`${w}px`,_=`${i.floating.height+h}px`):g==="right"?(S=`${-h}px`,_=u?y:`${b}px`):g==="left"&&(S=`${i.floating.width+h}px`,_=u?y:`${b}px`),{data:{x:S,y:_}}}}),"transformOrigin");function sa(r){const[t,o="center"]=r.split("-");return[t,o]}vr(sa,"getSideAndAlignFromPlacement");var Lh=U1,$h=H1,jh=K1,q1=Object.defineProperty,G1=(r,t)=>q1(r,"name",{value:t,configurable:!0});function Mh(r){const t=m.useRef({value:r,previous:r});return m.useMemo(()=>(t.current.value!==r&&(t.current.previous=t.current.value,t.current.value=r),t.current.previous),[r])}G1(Mh,"usePrevious");var Q1=Object.defineProperty,Y1=(r,t)=>Q1(r,"name",{value:t,configurable:!0});function Fc(r,[t,o]){return Math.min(o,Math.max(t,r))}Y1(Fc,"clamp");var X1=Object.defineProperty,yr=(r,t)=>X1(r,"name",{value:t,configurable:!0}),Vc="Popover",[zh,bR]=pr(Vc,[ia]),Uc=ia(),[J1,To]=zh(Vc),eb=yr(r=>{const{__scopePopover:t,children:o,open:i,defaultOpen:a,onOpenChange:l,modal:u=!1}=r,d=Uc(t),h=m.useRef(null),[g,v]=m.useState(!1),[y,w]=wi({prop:i,defaultProp:a??!1,onChange:l,caller:Vc});return A.jsx(Lh,{...d,children:A.jsx(J1,{scope:t,contentId:Bt(),triggerRef:h,open:y,onOpenChange:w,onOpenToggle:m.useCallback(()=>w(b=>!b),[w]),hasCustomAnchor:g,onCustomAnchorAdd:m.useCallback(()=>v(!0),[]),onCustomAnchorRemove:m.useCallback(()=>v(!1),[]),modal:u,children:o})})},"Popover"),tb="PopoverTrigger",nb=m.forwardRef(yr(function(t,o){const{__scopePopover:i,...a}=t,l=To(tb,i),u=Uc(i),d=Qe(o,l.triggerRef),h=A.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":Bc(l.open),...a,ref:d,onClick:He(t.onClick,l.onOpenToggle)});return l.hasCustomAnchor?h:A.jsx($h,{asChild:!0,...u,children:h})},"PopoverTrigger")),Fh="PopoverPortal",[rb,ob]=zh(Fh,{forceMount:void 0}),ib=yr(r=>{const{__scopePopover:t,forceMount:o,children:i,container:a}=r,l=To(Fh,t);return A.jsx(rb,{scope:t,forceMount:o,children:A.jsx(bo,{present:o||l.open,children:A.jsx(hc,{asChild:!0,container:a,children:i})})})},"PopoverPortal"),_i="PopoverContent",sb=m.forwardRef(yr(function(t,o){const i=ob(_i,t.__scopePopover),{forceMount:a=i.forceMount,...l}=t,u=To(_i,t.__scopePopover);return A.jsx(bo,{present:a||u.open,children:u.modal?A.jsx(lb,{...l,ref:o}):A.jsx(cb,{...l,ref:o})})},"PopoverContent")),ab=Sn("PopoverContent.RemoveScroll"),lb=m.forwardRef(yr(function(t,o){const i=To(_i,t.__scopePopover),a=m.useRef(null),l=Qe(o,a),u=m.useRef(!1);return m.useEffect(()=>{const d=a.current;if(d)return bc(d)},[]),A.jsx(Bs,{as:ab,allowPinchZoom:!0,children:A.jsx(Vh,{...t,ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:He(t.onCloseAutoFocus,d=>{d.preventDefault(),u.current||i.triggerRef.current?.focus()}),onPointerDownOutside:He(t.onPointerDownOutside,d=>{const h=d.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,v=h.button===2||g;u.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:He(t.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),cb=m.forwardRef(yr(function(t,o){const i=To(_i,t.__scopePopover),a=m.useRef(!1),l=m.useRef(!1);return A.jsx(Vh,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(a.current||i.triggerRef.current?.focus(),u.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(a.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const d=u.target;i.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})},"PopoverContentNonModal")),Vh=m.forwardRef(yr(function(t,o){const{__scopePopover:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,...w}=t,b=To(_i,i),S=Uc(i);return Si(),A.jsx(uc,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:u,children:A.jsx(ic,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:y,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onDismiss:()=>b.onOpenChange(!1),deferPointerDownOutside:!0,children:A.jsx(jh,{"data-state":Bc(b.open),role:"dialog",id:b.contentId,...S,...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 Bc(r){return r?"open":"closed"}yr(Bc,"getState");var ub=eb,db=nb,fb=ib,pb=sb,hb=Object.defineProperty,Fe=(r,t)=>hb(r,"name",{value:t,configurable:!0}),mb=[" ","Enter","ArrowUp","ArrowDown"],gb=[" ","Enter"],Ao="Select",[aa,la,vb]=cp(Ao),[eo,kR]=pr(Ao,[vb,ia]),Hc=ia(),[yb,xr]=eo(Ao),[xb,wb]=eo(Ao);function Uh(r){const{__scopeSelect:t,children:o,open:i,defaultOpen:a,onOpenChange:l,value:u,defaultValue:d,onValueChange:h,dir:g,name:v,autoComplete:y,disabled:w,required:b,form:S,internal_do_not_use_render:_}=r,k=Hc(t),[T,D]=m.useState(null),[N,I]=m.useState(null),[V,L]=m.useState(!1),B=Pp(g),[j,Q]=wi({prop:i,defaultProp:a??!1,onChange:l,caller:Ao}),[ae,Ce]=wi({prop:u,defaultProp:d,onChange:h,caller:Ao}),ce=m.useRef(null),le=m.useRef(ae);m.useEffect(()=>{const E=S?T?.ownerDocument.getElementById(S):T?.form;if(E instanceof HTMLFormElement){const W=Fe(()=>Ce(le.current),"reset");return E.addEventListener("reset",W),()=>E.removeEventListener("reset",W)}},[S,T,Ce]);const fe=T?!!S||!!T.closest("form"):!0,[ke,re]=m.useState(new Set),se=Bt(),U=Array.from(ke).map(E=>E.props.value).join(";"),G=m.useCallback(E=>{re(W=>new Set(W).add(E))},[]),z=m.useCallback(E=>{re(W=>{const X=new Set(W);return X.delete(E),X})},[]),P={required:b,trigger:T,onTriggerChange:D,valueNode:N,onValueNodeChange:I,valueNodeHasChildren:V,onValueNodeHasChildrenChange:L,contentId:se,value:ae,onValueChange:Ce,open:j,onOpenChange:Q,dir:B,triggerPointerDownPosRef:ce,disabled:w,name:v,autoComplete:y,form:S,nativeOptions:ke,nativeSelectKey:U,isFormControl:fe};return A.jsx(Lh,{...k,children:A.jsx(yb,{scope:t,...P,children:A.jsx(aa.Provider,{scope:t,children:A.jsx(xb,{scope:t,onNativeOptionAdd:G,onNativeOptionRemove:z,children:Qh(_)?_(P):o})})})})}Fe(Uh,"SelectProvider");var Sb=Fe(r=>{const{__scopeSelect:t,children:o,...i}=r;return A.jsx(Uh,{__scopeSelect:t,...i,internal_do_not_use_render:({isFormControl:a})=>A.jsxs(A.Fragment,{children:[o,a?A.jsx(Zb,{__scopeSelect:t}):null]})})},"Select"),bb="SelectTrigger",kb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,disabled:a=!1,...l}=t,u=Hc(i),d=xr(bb,i),h=d.disabled||a,g=Qe(o,d.onTriggerChange),v=la(i),y=m.useRef("touch"),[w,b,S]=Zc(k=>{const T=v().filter(I=>!I.disabled),D=T.find(I=>I.value===d.value),N=qc(T,k,D);N!==void 0&&d.onValueChange(N.value)}),_=Fe(k=>{h||(d.onOpenChange(!0),S()),k&&(d.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})},"handleOpen");return A.jsx($h,{asChild:!0,...u,children:A.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Ei(d.value)?"":void 0,...l,ref:g,onClick:He(l.onClick,k=>{k.currentTarget.focus(),y.current!=="mouse"&&_(k)}),onPointerDown:He(l.onPointerDown,k=>{y.current=k.pointerType;const T=k.target;T.hasPointerCapture(k.pointerId)&&T.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(_(k),k.preventDefault())}),onKeyDown:He(l.onKeyDown,k=>{const T=w.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&b(k.key),!(T&&k.key===" ")&&mb.includes(k.key)&&(_(),k.preventDefault())})})})},"SelectTrigger")),Cb="SelectValue",_b=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,className:a,style:l,children:u,placeholder:d="",...h}=t,g=xr(Cb,i),{onValueNodeHasChildrenChange:v}=g,y=u!==void 0,w=Qe(o,g.onValueNodeChange);ut(()=>{v(y)},[v,y]);const b=Ei(g.value);return A.jsx(Ze.span,{...h,asChild:b?!1:h.asChild,ref:w,style:{pointerEvents:"none"},children:A.jsx(m.Fragment,{children:b?d:u},b?"placeholder":"value")})},"SelectValue")),Eb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,children:a,...l}=t;return A.jsx(Ze.span,{"aria-hidden":!0,...l,ref:o,children:a||"▼"})},"SelectIcon")),Rb="SelectPortal",[Pb,Ib]=eo(Rb,{forceMount:void 0}),Ob=Fe(r=>{const{__scopeSelect:t,forceMount:o,...i}=r;return A.jsx(Pb,{scope:r.__scopeSelect,forceMount:o,children:A.jsx(hc,{asChild:!0,...i})})},"SelectPortal"),to="SelectContent",Nb=m.forwardRef(Fe(function(t,o){const i=Ib(to,t.__scopeSelect),{forceMount:a=i.forceMount,...l}=t,u=xr(to,t.__scopeSelect),[d,h]=m.useState();return ut(()=>{h(new DocumentFragment)},[]),A.jsx(bo,{present:a||u.open,children:({present:g})=>g?A.jsx(Db,{...l,ref:o}):A.jsx(Tb,{...l,fragment:d})})},"SelectContent")),Tb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,children:a,fragment:l}=t;return l?yi.createPortal(A.jsx(Bh,{scope:i,children:A.jsx(aa.Slot,{scope:i,children:A.jsx("div",{ref:o,children:a})})}),l):null},"SelectContentFragment")),an=10,[Bh,no]=eo(to),Ab=Sn("SelectContent.RemoveScroll"),Db=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i}=t,{position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,side:h,sideOffset:g,align:v,alignOffset:y,arrowPadding:w,collisionBoundary:b,collisionPadding:S,sticky:_,hideWhenDetached:k,avoidCollisions:T,...D}=t,N=xr(to,i),[I,V]=m.useState(null),[L,B]=m.useState(null),j=Qe(o,V),[Q,ae]=m.useState(null),[Ce,ce]=m.useState(null),le=la(i),[fe,ke]=m.useState(!1),re=m.useRef(!1);m.useEffect(()=>{if(I)return bc(I)},[I]),Si();const se=m.useCallback(ee=>{const[ie,...Ae]=le().map(Ue=>Ue.ref.current),[$e]=Ae.slice(-1),Me=document.activeElement;for(const Ue of ee)if(Ue===Me||(Ue?.scrollIntoView({block:"nearest"}),Ue===ie&&L&&(L.scrollTop=0),Ue===$e&&L&&(L.scrollTop=L.scrollHeight),Ue?.focus(),document.activeElement!==Me))return},[le,L]),U=m.useCallback(()=>se([Q,I]),[se,Q,I]);m.useEffect(()=>{fe&&U()},[fe,U]);const{onOpenChange:G,triggerPointerDownPosRef:z}=N;m.useEffect(()=>{if(I){let ee={x:0,y:0};const ie=Fe($e=>{ee={x:Math.abs(Math.round($e.pageX)-(z.current?.x??0)),y:Math.abs(Math.round($e.pageY)-(z.current?.y??0))}},"handlePointerMove"),Ae=Fe($e=>{ee.x<=10&&ee.y<=10?$e.preventDefault():$e.composedPath().includes(I)||G(!1),document.removeEventListener("pointermove",ie),z.current=null},"handlePointerUp");return z.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[I,G,z]),m.useEffect(()=>{const ee=Fe(()=>G(!1),"close");return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[G]);const[P,E]=Zc(ee=>{const ie=le().filter(Me=>!Me.disabled),Ae=ie.find(Me=>Me.ref.current===document.activeElement),$e=qc(ie,ee,Ae);$e&&setTimeout(()=>$e.ref.current?.focus())}),W=m.useCallback((ee,ie,Ae)=>{const $e=!re.current&&!Ae;(N.value!==void 0&&N.value===ie||$e)&&(ae(ee),$e&&(re.current=!0))},[N.value]),X=m.useCallback(()=>I?.focus(),[I]),H=m.useCallback((ee,ie,Ae)=>{const $e=!re.current&&!Ae;(N.value!==void 0&&N.value===ie||$e)&&ce(ee)},[N.value]),J=a==="popper"?Hh:Lb,ue=J===Hh?{side:h,sideOffset:g,align:v,alignOffset:y,arrowPadding:w,collisionBoundary:b,collisionPadding:S,sticky:_,hideWhenDetached:k,avoidCollisions:T}:{};return A.jsx(Bh,{scope:i,content:I,viewport:L,onViewportChange:B,itemRefCallback:W,selectedItem:Q,onItemLeave:X,itemTextRefCallback:H,focusSelectedItem:U,selectedItemText:Ce,position:a,isPositioned:fe,searchRef:P,children:A.jsx(Bs,{as:Ab,allowPinchZoom:!0,children:A.jsx(uc,{asChild:!0,trapped:N.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:He(l,ee=>{N.trigger?.focus({preventScroll:!0}),ee.preventDefault()}),children:A.jsx(ic,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:A.jsx(J,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:ee=>ee.preventDefault(),...D,...ue,onPlaced:()=>ke(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:He(D.onKeyDown,ee=>{const ie=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!ie&&ee.key.length===1&&E(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let $e=le().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(ee.key)&&($e=$e.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Me=ee.target,Ue=$e.indexOf(Me);$e=$e.slice(Ue+1)}setTimeout(()=>se($e)),ee.preventDefault()}})})})})})})},"SelectContentImpl")),Lb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,onPlaced:a,...l}=t,u=xr(to,i),d=no(to,i),[h,g]=m.useState(null),[v,y]=m.useState(null),w=Qe(o,y),b=la(i),S=m.useRef(!1),_=m.useRef(!0),{viewport:k,selectedItem:T,selectedItemText:D,focusSelectedItem:N}=d,I=m.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&v&&k&&T&&D){const j=u.trigger.getBoundingClientRect(),Q=v.getBoundingClientRect(),ae=u.valueNode.getBoundingClientRect(),Ce=D.getBoundingClientRect();if(u.dir!=="rtl"){const Me=Ce.left-Q.left,Ue=ae.left-Me,oe=j.left-Ue,Ie=j.width+oe,qe=Math.max(Ie,Q.width),Ke=window.innerWidth-an,Ye=Fc(Ue,[an,Math.max(an,Ke-qe)]);h.style.minWidth=Ie+"px",h.style.left=Ye+"px"}else{const Me=Q.right-Ce.right,Ue=window.innerWidth-ae.right-Me,oe=window.innerWidth-j.right-Ue,Ie=j.width+oe,qe=Math.max(Ie,Q.width),Ke=window.innerWidth-an,Ye=Fc(Ue,[an,Math.max(an,Ke-qe)]);h.style.minWidth=Ie+"px",h.style.right=Ye+"px"}const ce=b(),le=window.innerHeight-an*2,fe=k.scrollHeight,ke=window.getComputedStyle(v),re=parseInt(ke.borderTopWidth,10),se=parseInt(ke.paddingTop,10),U=parseInt(ke.borderBottomWidth,10),G=parseInt(ke.paddingBottom,10),z=re+se+fe+G+U,P=Math.min(T.offsetHeight*5,z),E=window.getComputedStyle(k),W=parseInt(E.paddingTop,10),X=parseInt(E.paddingBottom,10),H=j.top+j.height/2-an,J=le-H,ue=T.offsetHeight/2,ee=T.offsetTop+ue,ie=re+se+ee,Ae=z-ie;if(ie<=H){const Me=ce.length>0&&T===ce[ce.length-1].ref.current;h.style.bottom="0px";const Ue=v.clientHeight-k.offsetTop-k.offsetHeight,oe=Math.max(J,ue+(Me?X:0)+Ue+U),Ie=ie+oe;h.style.height=Ie+"px"}else{const Me=ce.length>0&&T===ce[0].ref.current;h.style.top="0px";const oe=Math.max(H,re+k.offsetTop+(Me?W:0)+ue)+Ae;h.style.height=oe+"px",k.scrollTop=ie-H+k.offsetTop}h.style.margin=`${an}px 0`,h.style.minHeight=P+"px",h.style.maxHeight=le+"px",a?.(),requestAnimationFrame(()=>S.current=!0)}},[b,u.trigger,u.valueNode,h,v,k,T,D,u.dir,a]);ut(()=>I(),[I]);const[V,L]=m.useState();ut(()=>{v&&L(window.getComputedStyle(v).zIndex)},[v]);const B=m.useCallback(j=>{j&&_.current===!0&&(I(),N?.(),_.current=!1)},[I,N]);return A.jsx($b,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:S,onScrollButtonChange:B,children:A.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:V},children:A.jsx(Ze.div,{...l,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),Hh=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,align:a="start",collisionPadding:l=an,...u}=t,d=Hc(i);return A.jsx(jh,{...d,...u,ref:o,align:a,collisionPadding:l,style:{boxSizing:"border-box",...u.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")),[$b,Wc]=eo(to,{}),Wh="SelectViewport",jb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,nonce:a,...l}=t,u=no(Wh,i),d=Wc(Wh,i),h=Qe(o,u.onViewportChange),g=m.useRef(0);return A.jsxs(A.Fragment,{children:[A.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),A.jsx(aa.Slot,{scope:i,children:A.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:He(l.onScroll,v=>{const y=v.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:b}=d;if(b?.current&&w){const S=Math.abs(g.current-y.scrollTop);if(S>0){const _=window.innerHeight-an*2,k=parseFloat(w.style.minHeight),T=parseFloat(w.style.height),D=Math.max(k,T);if(D<_){const N=D+S,I=Math.min(_,N),V=N-I;w.style.height=I+"px",w.style.bottom==="0px"&&(y.scrollTop=V>0?V:0,w.style.justifyContent="flex-end")}}}g.current=y.scrollTop})})})]})},"SelectViewport")),Mb="SelectGroup",[CR,_R]=eo(Mb),Kc="SelectItem",[zb,Kh]=eo(Kc),Fb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,value:a,disabled:l=!1,textValue:u,...d}=t,h=xr(Kc,i),g=no(Kc,i),v=h.value===a,[y,w]=m.useState(u??""),[b,S]=m.useState(!1),_=bn(I=>g.itemRefCallback?.(I,a,l)),k=Qe(o,_),T=Bt(),D=m.useRef("touch"),N=Fe(()=>{l||(h.onValueChange(a),h.onOpenChange(!1))},"handleSelect");return A.jsx(zb,{scope:i,value:a,disabled:l,textId:T,isSelected:v,onItemTextChange:m.useCallback(I=>{w(V=>V||(I?.textContent??"").trim())},[]),children:A.jsx(aa.ItemSlot,{scope:i,value:a,disabled:l,textValue:y,children:A.jsx(Ze.div,{role:"option","aria-labelledby":T,"data-highlighted":b?"":void 0,"aria-selected":v&&b,"data-state":v?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...d,ref:k,onFocus:He(d.onFocus,()=>S(!0)),onBlur:He(d.onBlur,()=>S(!1)),onClick:He(d.onClick,()=>{D.current!=="mouse"&&N()}),onPointerUp:He(d.onPointerUp,()=>{D.current==="mouse"&&N()}),onPointerDown:He(d.onPointerDown,I=>{D.current=I.pointerType}),onPointerMove:He(d.onPointerMove,I=>{D.current=I.pointerType,l?g.onItemLeave?.():D.current==="mouse"&&I.currentTarget.focus({preventScroll:!0})}),onPointerLeave:He(d.onPointerLeave,I=>{I.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:He(d.onKeyDown,I=>{l||I.target!==I.currentTarget||g.searchRef?.current!==""&&I.key===" "||(gb.includes(I.key)&&N(),I.key===" "&&I.preventDefault())})})})})},"SelectItem")),ca="SelectItemText",Vb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,className:a,style:l,...u}=t,d=xr(ca,i),h=no(ca,i),g=Kh(ca,i),v=wb(ca,i),[y,w]=m.useState(null),b=bn(N=>h.itemTextRefCallback?.(N,g.value,g.disabled)),S=Qe(o,w,g.onItemTextChange,b),_=y?.textContent,k=m.useMemo(()=>A.jsx("option",{value:g.value,disabled:g.disabled,children:_},g.value),[g.disabled,g.value,_]),{onNativeOptionAdd:T,onNativeOptionRemove:D}=v;return ut(()=>(T(k),()=>D(k)),[T,D,k]),A.jsxs(A.Fragment,{children:[A.jsx(Ze.span,{id:g.textId,...u,ref:S}),g.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!Ei(d.value)?yi.createPortal(u.children,d.valueNode):null]})},"SelectItemText")),Ub="SelectItemIndicator",Bb=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,...a}=t;return Kh(Ub,i).isSelected?A.jsx(Ze.span,{"aria-hidden":!0,...a,ref:o}):null},"SelectItemIndicator")),Zh="SelectScrollUpButton",Hb=m.forwardRef(Fe(function(t,o){const i=no(Zh,t.__scopeSelect),a=Wc(Zh,t.__scopeSelect),[l,u]=m.useState(!1),d=Qe(o,a.onScrollButtonChange);return ut(()=>{if(i.viewport&&i.isPositioned){let h=function(){const v=g.scrollTop>0;u(v)};Fe(h,"handleScroll");const g=i.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),l?A.jsx(Gh,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=i;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null},"SelectScrollUpButton")),qh="SelectScrollDownButton",Wb=m.forwardRef(Fe(function(t,o){const i=no(qh,t.__scopeSelect),a=Wc(qh,t.__scopeSelect),[l,u]=m.useState(!1),d=Qe(o,a.onScrollButtonChange);return ut(()=>{if(i.viewport&&i.isPositioned){let h=function(){const v=g.scrollHeight-g.clientHeight,y=Math.ceil(g.scrollTop)<v;u(y)};Fe(h,"handleScroll");const g=i.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),l?A.jsx(Gh,{...t,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=i;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null},"SelectScrollDownButton")),Gh=m.forwardRef(Fe(function(t,o){const{__scopeSelect:i,onAutoScroll:a,...l}=t,u=no("SelectScrollButton",i),d=m.useRef(null),h=la(i),g=m.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return m.useEffect(()=>()=>g(),[g]),ut(()=>{h().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),A.jsx(Ze.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:He(l.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(a,50))}),onPointerMove:He(l.onPointerMove,()=>{u.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(a,50))}),onPointerLeave:He(l.onPointerLeave,()=>{g()})})},"SelectScrollButtonImpl")),Kb="SelectBubbleInput",Zb=m.forwardRef(Fe(function({__scopeSelect:t,...o},i){const a=xr(Kb,t),{value:l,onValueChange:u,required:d,disabled:h,name:g,autoComplete:v,form:y}=a,{nativeOptions:w,nativeSelectKey:b}=a,S=m.useRef(null),_=Qe(i,S),k=l??"",T=Mh(k),D=Array.from(w).some(N=>(N.props.value??"")==="");return m.useEffect(()=>{const N=S.current;if(!N)return;const I=window.HTMLSelectElement.prototype,L=Object.getOwnPropertyDescriptor(I,"value").set;if(T!==k&&L){const B=new Event("change",{bubbles:!0});L.call(N,k),N.dispatchEvent(B)}},[T,k]),A.jsxs(Ze.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:g,autoComplete:v,disabled:h,form:y,onChange:N=>u(N.target.value),...o,style:{...M0,...o.style},ref:_,defaultValue:k,children:[Ei(l)&&!D?A.jsx("option",{value:""}):null,Array.from(w)]},b)},"SelectBubbleInput"));function Qh(r){return typeof r=="function"}Fe(Qh,"isFunction");function Ei(r){return r===""||r===void 0}Fe(Ei,"shouldShowPlaceholder");function Zc(r){const t=bn(r),o=m.useRef(""),i=m.useRef(0),a=m.useCallback(u=>{const d=o.current+u;t(d),Fe((function h(g){o.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(d)},[t]),l=m.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,a,l]}Fe(Zc,"useTypeaheadSearch");function qc(r,t,o){const a=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=o?r.indexOf(o):-1;let u=Yh(r,Math.max(l,0));a.length===1&&(u=u.filter(g=>g!==o));const h=u.find(g=>g.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==o?h:void 0}Fe(qc,"findNextItem");function Yh(r,t){return r.map((o,i)=>r[(t+i)%r.length])}Fe(Yh,"wrapArray");const Xh=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Jh=Pf,em=(r,t)=>o=>{var i;if(t?.variants==null)return Jh(r,o?.class,o?.className);const{variants:a,defaultVariants:l}=t,u=Object.keys(a).map(g=>{const v=o?.[g],y=l?.[g];if(v===null)return null;const w=Xh(v)||Xh(y);return a[g][w]}),d=o&&Object.entries(o).reduce((g,v)=>{let[y,w]=v;return w===void 0||(g[y]=w),g},{}),h=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((g,v)=>{let{class:y,className:w,...b}=v;return Object.entries(b).every(S=>{let[_,k]=S;return Array.isArray(k)?k.includes({...l,...d}[_]):{...l,...d}[_]===k})?[...g,y,w]:g},[]);return Jh(r,u,h,o?.class,o?.className)};var tm=1,qb=.9,Gb=.8,Qb=.17,Gc=.1,Qc=.999,Yb=.9999,Xb=.99,Jb=/[\\\/_+.#"@\[\(\{&]/,ek=/[\\\/_+.#"@\[\(\{&]/g,tk=/[\s-]/,nm=/[\s-]/g;function Yc(r,t,o,i,a,l,u){if(l===t.length)return a===r.length?tm:Xb;var d=`${a},${l}`;if(u[d]!==void 0)return u[d];for(var h=i.charAt(l),g=o.indexOf(h,a),v=0,y,w,b,S;g>=0;)y=Yc(r,t,o,i,g+1,l+1,u),y>v&&(g===a?y*=tm:Jb.test(r.charAt(g-1))?(y*=Gb,b=r.slice(a,g-1).match(ek),b&&a>0&&(y*=Math.pow(Qc,b.length))):tk.test(r.charAt(g-1))?(y*=qb,S=r.slice(a,g-1).match(nm),S&&a>0&&(y*=Math.pow(Qc,S.length))):(y*=Qb,a>0&&(y*=Math.pow(Qc,g-a))),r.charAt(g)!==t.charAt(l)&&(y*=Yb)),(y<Gc&&o.charAt(g-1)===i.charAt(l+1)||i.charAt(l+1)===i.charAt(l)&&o.charAt(g-1)!==i.charAt(l))&&(w=Yc(r,t,o,i,g+1,l+2,u),w*Gc>y&&(y=w*Gc)),y>v&&(v=y),g=o.indexOf(h,g+1);return u[d]=v,v}function rm(r){return r.toLowerCase().replace(nm," ")}function nk(r,t,o){return r=o&&o.length>0?`${r+" "+o.join(" ")}`:r,Yc(r,t,rm(r),rm(t),0,0,{})}var Ri='[cmdk-group=""]',Xc='[cmdk-group-items=""]',rk='[cmdk-group-heading=""]',om='[cmdk-item=""]',im=`${om}:not([aria-disabled="true"])`,Jc="cmdk-item-select",Do="data-value",ok=(r,t,o)=>nk(r,t,o),sm=m.createContext(void 0),Pi=()=>m.useContext(sm),am=m.createContext(void 0),eu=()=>m.useContext(am),lm=m.createContext(void 0),cm=m.forwardRef((r,t)=>{let o=Lo(()=>{var E,W;return{search:"",value:(W=(E=r.value)!=null?E:r.defaultValue)!=null?W:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Lo(()=>new Set),a=Lo(()=>new Map),l=Lo(()=>new Map),u=Lo(()=>new Set),d=um(r),{label:h,children:g,value:v,onValueChange:y,filter:w,shouldFilter:b,loop:S,disablePointerSelection:_=!1,vimBindings:k=!0,...T}=r,D=Bt(),N=Bt(),I=Bt(),V=m.useRef(null),L=mk();ro(()=>{if(v!==void 0){let E=v.trim();o.current.value=E,B.emit()}},[v]),ro(()=>{L(6,le)},[]);let B=m.useMemo(()=>({subscribe:E=>(u.current.add(E),()=>u.current.delete(E)),snapshot:()=>o.current,setState:(E,W,X)=>{var H,J,ue,ee;if(!Object.is(o.current[E],W)){if(o.current[E]=W,E==="search")ce(),ae(),L(1,Ce);else if(E==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ie=document.getElementById(I);ie?ie.focus():(H=document.getElementById(D))==null||H.focus()}if(L(7,()=>{var ie;o.current.selectedItemId=(ie=fe())==null?void 0:ie.id,B.emit()}),X||L(5,le),((J=d.current)==null?void 0:J.value)!==void 0){let ie=W??"";(ee=(ue=d.current).onValueChange)==null||ee.call(ue,ie);return}}B.emit()}},emit:()=>{u.current.forEach(E=>E())}}),[]),j=m.useMemo(()=>({value:(E,W,X)=>{var H;W!==((H=l.current.get(E))==null?void 0:H.value)&&(l.current.set(E,{value:W,keywords:X}),o.current.filtered.items.set(E,Q(W,X)),L(2,()=>{ae(),B.emit()}))},item:(E,W)=>(i.current.add(E),W&&(a.current.has(W)?a.current.get(W).add(E):a.current.set(W,new Set([E]))),L(3,()=>{ce(),ae(),o.current.value||Ce(),B.emit()}),()=>{l.current.delete(E),i.current.delete(E),o.current.filtered.items.delete(E);let X=fe();L(4,()=>{ce(),X?.getAttribute("id")===E&&Ce(),B.emit()})}),group:E=>(a.current.has(E)||a.current.set(E,new Set),()=>{l.current.delete(E),a.current.delete(E)}),filter:()=>d.current.shouldFilter,label:h||r["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:D,inputId:I,labelId:N,listInnerRef:V}),[]);function Q(E,W){var X,H;let J=(H=(X=d.current)==null?void 0:X.filter)!=null?H:ok;return E?J(E,o.current.search,W):0}function ae(){if(!o.current.search||d.current.shouldFilter===!1)return;let E=o.current.filtered.items,W=[];o.current.filtered.groups.forEach(H=>{let J=a.current.get(H),ue=0;J.forEach(ee=>{let ie=E.get(ee);ue=Math.max(ie,ue)}),W.push([H,ue])});let X=V.current;ke().sort((H,J)=>{var ue,ee;let ie=H.getAttribute("id"),Ae=J.getAttribute("id");return((ue=E.get(Ae))!=null?ue:0)-((ee=E.get(ie))!=null?ee:0)}).forEach(H=>{let J=H.closest(Xc);J?J.appendChild(H.parentElement===J?H:H.closest(`${Xc} > *`)):X.appendChild(H.parentElement===X?H:H.closest(`${Xc} > *`))}),W.sort((H,J)=>J[1]-H[1]).forEach(H=>{var J;let ue=(J=V.current)==null?void 0:J.querySelector(`${Ri}[${Do}="${encodeURIComponent(H[0])}"]`);ue?.parentElement.appendChild(ue)})}function Ce(){let E=ke().find(X=>X.getAttribute("aria-disabled")!=="true"),W=E?.getAttribute(Do);B.setState("value",W||void 0)}function ce(){var E,W,X,H;if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=i.current.size;return}o.current.filtered.groups=new Set;let J=0;for(let ue of i.current){let ee=(W=(E=l.current.get(ue))==null?void 0:E.value)!=null?W:"",ie=(H=(X=l.current.get(ue))==null?void 0:X.keywords)!=null?H:[],Ae=Q(ee,ie);o.current.filtered.items.set(ue,Ae),Ae>0&&J++}for(let[ue,ee]of a.current)for(let ie of ee)if(o.current.filtered.items.get(ie)>0){o.current.filtered.groups.add(ue);break}o.current.filtered.count=J}function le(){var E,W,X;let H=fe();H&&(((E=H.parentElement)==null?void 0:E.firstChild)===H&&((X=(W=H.closest(Ri))==null?void 0:W.querySelector(rk))==null||X.scrollIntoView({block:"nearest"})),H.scrollIntoView({block:"nearest"}))}function fe(){var E;return(E=V.current)==null?void 0:E.querySelector(`${om}[aria-selected="true"]`)}function ke(){var E;return Array.from(((E=V.current)==null?void 0:E.querySelectorAll(im))||[])}function re(E){let W=ke()[E];W&&B.setState("value",W.getAttribute(Do))}function se(E){var W;let X=fe(),H=ke(),J=H.findIndex(ee=>ee===X),ue=H[J+E];(W=d.current)!=null&&W.loop&&(ue=J+E<0?H[H.length-1]:J+E===H.length?H[0]:H[J+E]),ue&&B.setState("value",ue.getAttribute(Do))}function U(E){let W=fe(),X=W?.closest(Ri),H;for(;X&&!H;)X=E>0?pk(X,Ri):hk(X,Ri),H=X?.querySelector(im);H?B.setState("value",H.getAttribute(Do)):se(E)}let G=()=>re(ke().length-1),z=E=>{E.preventDefault(),E.metaKey?G():E.altKey?U(1):se(1)},P=E=>{E.preventDefault(),E.metaKey?re(0):E.altKey?U(-1):se(-1)};return m.createElement(Ze.div,{ref:t,tabIndex:-1,...T,"cmdk-root":"",onKeyDown:E=>{var W;(W=T.onKeyDown)==null||W.call(T,E);let X=E.nativeEvent.isComposing||E.keyCode===229;if(!(E.defaultPrevented||X))switch(E.key){case"n":case"j":{k&&E.ctrlKey&&z(E);break}case"ArrowDown":{z(E);break}case"p":case"k":{k&&E.ctrlKey&&P(E);break}case"ArrowUp":{P(E);break}case"Home":{E.preventDefault(),re(0);break}case"End":{E.preventDefault(),G();break}case"Enter":{E.preventDefault();let H=fe();if(H){let J=new Event(Jc);H.dispatchEvent(J)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:vk},h),ua(r,E=>m.createElement(am.Provider,{value:B},m.createElement(sm.Provider,{value:j},E))))}),ik=m.forwardRef((r,t)=>{var o,i;let a=Bt(),l=m.useRef(null),u=m.useContext(lm),d=Pi(),h=um(r),g=(i=(o=h.current)==null?void 0:o.forceMount)!=null?i:u?.forceMount;ro(()=>{if(!g)return d.item(a,u?.id)},[g]);let v=dm(a,l,[r.value,r.children,l],r.keywords),y=eu(),w=wr(L=>L.value&&L.value===v.current),b=wr(L=>g||d.filter()===!1?!0:L.search?L.filtered.items.get(a)>0:!0);m.useEffect(()=>{let L=l.current;if(!(!L||r.disabled))return L.addEventListener(Jc,S),()=>L.removeEventListener(Jc,S)},[b,r.onSelect,r.disabled]);function S(){var L,B;_(),(B=(L=h.current).onSelect)==null||B.call(L,v.current)}function _(){y.setState("value",v.current,!0)}if(!b)return null;let{disabled:k,value:T,onSelect:D,forceMount:N,keywords:I,...V}=r;return m.createElement(Ze.div,{ref:Qr(l,t),...V,id:a,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!w,"data-disabled":!!k,"data-selected":!!w,onPointerMove:k||d.getDisablePointerSelection()?void 0:_,onClick:k?void 0:S},r.children)}),sk=m.forwardRef((r,t)=>{let{heading:o,children:i,forceMount:a,...l}=r,u=Bt(),d=m.useRef(null),h=m.useRef(null),g=Bt(),v=Pi(),y=wr(b=>a||v.filter()===!1?!0:b.search?b.filtered.groups.has(u):!0);ro(()=>v.group(u),[]),dm(u,d,[r.value,r.heading,h]);let w=m.useMemo(()=>({id:u,forceMount:a}),[a]);return m.createElement(Ze.div,{ref:Qr(d,t),...l,"cmdk-group":"",role:"presentation",hidden:y?void 0:!0},o&&m.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:g},o),ua(r,b=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?g:void 0},m.createElement(lm.Provider,{value:w},b))))}),ak=m.forwardRef((r,t)=>{let{alwaysRender:o,...i}=r,a=m.useRef(null),l=wr(u=>!u.search);return!o&&!l?null:m.createElement(Ze.div,{ref:Qr(a,t),...i,"cmdk-separator":"",role:"separator"})}),lk=m.forwardRef((r,t)=>{let{onValueChange:o,...i}=r,a=r.value!=null,l=eu(),u=wr(g=>g.search),d=wr(g=>g.selectedItemId),h=Pi();return m.useEffect(()=>{r.value!=null&&l.setState("search",r.value)},[r.value]),m.createElement(Ze.input,{ref:t,...i,"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":d,id:h.inputId,type:"text",value:a?r.value:u,onChange:g=>{a||l.setState("search",g.target.value),o?.(g.target.value)}})}),ck=m.forwardRef((r,t)=>{let{children:o,label:i="Suggestions",...a}=r,l=m.useRef(null),u=m.useRef(null),d=wr(g=>g.selectedItemId),h=Pi();return m.useEffect(()=>{if(u.current&&l.current){let g=u.current,v=l.current,y,w=new ResizeObserver(()=>{y=requestAnimationFrame(()=>{let b=g.offsetHeight;v.style.setProperty("--cmdk-list-height",b.toFixed(1)+"px")})});return w.observe(g),()=>{cancelAnimationFrame(y),w.unobserve(g)}}},[]),m.createElement(Ze.div,{ref:Qr(l,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":i,id:h.listId},ua(r,g=>m.createElement("div",{ref:Qr(u,h.listInnerRef),"cmdk-list-sizer":""},g)))}),uk=m.forwardRef((r,t)=>{let{open:o,onOpenChange:i,overlayClassName:a,contentClassName:l,container:u,...d}=r;return m.createElement(Cc,{open:o,onOpenChange:i},m.createElement(_c,{container:u},m.createElement(Rc,{"cmdk-overlay":"",className:a}),m.createElement(Pc,{"aria-label":r.label,"cmdk-dialog":"",className:l},m.createElement(cm,{ref:t,...d}))))}),dk=m.forwardRef((r,t)=>wr(o=>o.filtered.count===0)?m.createElement(Ze.div,{ref:t,...r,"cmdk-empty":"",role:"presentation"}):null),fk=m.forwardRef((r,t)=>{let{progress:o,children:i,label:a="Loading...",...l}=r;return m.createElement(Ze.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},ua(r,u=>m.createElement("div",{"aria-hidden":!0},u)))}),Ii=Object.assign(cm,{List:ck,Item:ik,Input:lk,Group:sk,Separator:ak,Dialog:uk,Empty:dk,Loading:fk});function pk(r,t){let o=r.nextElementSibling;for(;o;){if(o.matches(t))return o;o=o.nextElementSibling}}function hk(r,t){let o=r.previousElementSibling;for(;o;){if(o.matches(t))return o;o=o.previousElementSibling}}function um(r){let t=m.useRef(r);return ro(()=>{t.current=r}),t}var ro=typeof window>"u"?m.useEffect:m.useLayoutEffect;function Lo(r){let t=m.useRef();return t.current===void 0&&(t.current=r()),t}function wr(r){let t=eu(),o=()=>r(t.snapshot());return m.useSyncExternalStore(t.subscribe,o,o)}function dm(r,t,o,i=[]){let a=m.useRef(),l=Pi();return ro(()=>{var u;let d=(()=>{var g;for(let v of o){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(g=v.current.textContent)==null?void 0:g.trim():a.current}})(),h=i.map(g=>g.trim());l.value(r,d,h),(u=t.current)==null||u.setAttribute(Do,d),a.current=d}),a}var mk=()=>{let[r,t]=m.useState(),o=Lo(()=>new Map);return ro(()=>{o.current.forEach(i=>i()),o.current=new Map},[r]),(i,a)=>{o.current.set(i,a),t({})}};function gk(r){let t=r.type;return typeof t=="function"?t(r.props):"render"in t?t.render(r.props):r}function ua({asChild:r,children:t},o){return r&&m.isValidElement(t)?m.cloneElement(gk(t),{ref:t.ref},o(t.props.children)):o(t)}var vk={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ne=r=>typeof r=="string",Oi=()=>{let r,t;const o=new Promise((i,a)=>{r=i,t=a});return o.resolve=r,o.reject=t,o},fm=r=>r==null?"":""+r,yk=(r,t,o)=>{r.forEach(i=>{t[i]&&(o[i]=t[i])})},xk=/###/g,pm=r=>r&&r.indexOf("###")>-1?r.replace(xk,"."):r,hm=r=>!r||Ne(r),Ni=(r,t,o)=>{const i=Ne(t)?t.split("."):t;let a=0;for(;a<i.length-1;){if(hm(r))return{};const l=pm(i[a]);!r[l]&&o&&(r[l]=new o),Object.prototype.hasOwnProperty.call(r,l)?r=r[l]:r={},++a}return hm(r)?{}:{obj:r,k:pm(i[a])}},mm=(r,t,o)=>{const{obj:i,k:a}=Ni(r,t,Object);if(i!==void 0||t.length===1){i[a]=o;return}let l=t[t.length-1],u=t.slice(0,t.length-1),d=Ni(r,u,Object);for(;d.obj===void 0&&u.length;)l=`${u[u.length-1]}.${l}`,u=u.slice(0,u.length-1),d=Ni(r,u,Object),d?.obj&&typeof d.obj[`${d.k}.${l}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${l}`]=o},wk=(r,t,o,i)=>{const{obj:a,k:l}=Ni(r,t,Object);a[l]=a[l]||[],a[l].push(o)},da=(r,t)=>{const{obj:o,k:i}=Ni(r,t);if(o&&Object.prototype.hasOwnProperty.call(o,i))return o[i]},Sk=(r,t,o)=>{const i=da(r,o);return i!==void 0?i:da(t,o)},gm=(r,t,o)=>{for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in r?Ne(r[i])||r[i]instanceof String||Ne(t[i])||t[i]instanceof String?o&&(r[i]=t[i]):gm(r[i],t[i],o):r[i]=t[i]);return r},$o=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var bk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const kk=r=>Ne(r)?r.replace(/[&<>"'\/]/g,t=>bk[t]):r;class Ck{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const o=this.regExpMap.get(t);if(o!==void 0)return o;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}const _k=[" ",",","?","!",";"],Ek=new Ck(20),Rk=(r,t,o)=>{t=t||"",o=o||"";const i=_k.filter(u=>t.indexOf(u)<0&&o.indexOf(u)<0);if(i.length===0)return!0;const a=Ek.getRegExp(`(${i.map(u=>u==="?"?"\\?":u).join("|")})`);let l=!a.test(r);if(!l){const u=r.indexOf(o);u>0&&!a.test(r.substring(0,u))&&(l=!0)}return l},tu=(r,t,o=".")=>{if(!r)return;if(r[t])return Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0;const i=t.split(o);let a=r;for(let l=0;l<i.length;){if(!a||typeof a!="object")return;let u,d="";for(let h=l;h<i.length;++h)if(h!==l&&(d+=o),d+=i[h],u=a[d],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&h<i.length-1)continue;l+=h-l+1;break}a=u}return a},Ti=r=>r?.replace("_","-"),Pk={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,t){console?.[r]?.apply?.(console,t)}};class fa{constructor(t,o={}){this.init(t,o)}init(t,o={}){this.prefix=o.prefix||"i18next:",this.logger=t||Pk,this.options=o,this.debug=o.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,o,i,a){return a&&!this.debug?null:(Ne(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[o](t))}create(t){return new fa(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new fa(this.logger,t)}}var Rn=new fa;class pa{constructor(){this.observers={}}on(t,o){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const a=this.observers[i].get(o)||0;this.observers[i].set(o,a+1)}),this}off(t,o){if(this.observers[t]){if(!o){delete this.observers[t];return}this.observers[t].delete(o)}}emit(t,...o){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,l])=>{for(let u=0;u<l;u++)a.apply(a,[t,...o])})}}class vm extends pa{constructor(t,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const o=this.options.ns.indexOf(t);o>-1&&this.options.ns.splice(o,1)}getResource(t,o,i,a={}){const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;t.indexOf(".")>-1?d=t.split("."):(d=[t,o],i&&(Array.isArray(i)?d.push(...i):Ne(i)&&l?d.push(...i.split(l)):d.push(i)));const h=da(this.data,d);return!h&&!o&&!i&&t.indexOf(".")>-1&&(t=d[0],o=d[1],i=d.slice(2).join(".")),h||!u||!Ne(i)?h:tu(this.data?.[t]?.[o],i,l)}addResource(t,o,i,a,l={silent:!1}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let d=[t,o];i&&(d=d.concat(u?i.split(u):i)),t.indexOf(".")>-1&&(d=t.split("."),a=o,o=d[1]),this.addNamespaces(o),mm(this.data,d,a),l.silent||this.emit("added",t,o,i,a)}addResources(t,o,i,a={silent:!1}){for(const l in i)(Ne(i[l])||Array.isArray(i[l]))&&this.addResource(t,o,l,i[l],{silent:!0});a.silent||this.emit("added",t,o,i)}addResourceBundle(t,o,i,a,l,u={silent:!1,skipCopy:!1}){let d=[t,o];t.indexOf(".")>-1&&(d=t.split("."),a=i,i=o,o=d[1]),this.addNamespaces(o);let h=da(this.data,d)||{};u.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?gm(h,i,l):h={...h,...i},mm(this.data,d,h),u.silent||this.emit("added",t,o,i)}removeResourceBundle(t,o){this.hasResourceBundle(t,o)&&delete this.data[t][o],this.removeNamespaces(o),this.emit("removed",t,o)}hasResourceBundle(t,o){return this.getResource(t,o)!==void 0}getResourceBundle(t,o){return o||(o=this.options.defaultNS),this.getResource(t,o)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const o=this.getDataByLanguage(t);return!!(o&&Object.keys(o)||[]).find(a=>o[a]&&Object.keys(o[a]).length>0)}toJSON(){return this.data}}var ym={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,t,o,i,a){return r.forEach(l=>{t=this.processors[l]?.process(t,o,i,a)??t}),t}};const xm=Symbol("i18next/PATH_KEY");function Ik(){const r=[],t=Object.create(null);let o;return t.get=(i,a)=>(o?.revoke?.(),a===xm?r:(r.push(a),o=Proxy.revocable(i,t),o.proxy)),Proxy.revocable(Object.create(null),t).proxy}function nu(r,t){const{[xm]:o}=r(Ik());return o.join(t?.keySeparator??".")}const wm={},ru=r=>!Ne(r)&&typeof r!="boolean"&&typeof r!="number";class ha extends pa{constructor(t,o={}){super(),yk(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Rn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,o={interpolation:{}}){const i={...o};if(t==null)return!1;const a=this.resolve(t,i);if(a?.res===void 0)return!1;const l=ru(a.res);return!(i.returnObjects===!1&&l)}extractFromKey(t,o){let i=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=o.ns||this.options.defaultNS||[];const u=i&&t.indexOf(i)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Rk(t,i,a);if(u&&!d){const h=t.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:t,namespaces:Ne(l)?[l]:l};const g=t.split(i);(i!==a||i===a&&this.options.ns.indexOf(g[0])>-1)&&(l=g.shift()),t=g.join(a)}return{key:t,namespaces:Ne(l)?[l]:l}}translate(t,o,i){let a=typeof o=="object"?{...o}:o;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=nu(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:d,namespaces:h}=this.extractFromKey(t[t.length-1],a),g=h[h.length-1];let v=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const y=a.lng||this.language,w=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y?.toLowerCase()==="cimode")return w?l?{res:`${g}${v}${d}`,usedKey:d,exactUsedKey:d,usedLng:y,usedNS:g,usedParams:this.getUsedParamsDetails(a)}:`${g}${v}${d}`:l?{res:d,usedKey:d,exactUsedKey:d,usedLng:y,usedNS:g,usedParams:this.getUsedParamsDetails(a)}:d;const b=this.resolve(t,a);let S=b?.res;const _=b?.usedKey||d,k=b?.exactUsedKey||d,T=["[object Number]","[object Function]","[object RegExp]"],D=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject,I=a.count!==void 0&&!Ne(a.count),V=ha.hasDefaultValue(a),L=I?this.pluralResolver.getSuffix(y,a.count,a):"",B=a.ordinal&&I?this.pluralResolver.getSuffix(y,a.count,{ordinal:!1}):"",j=I&&!a.ordinal&&a.count===0,Q=j&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${L}`]||a[`defaultValue${B}`]||a.defaultValue;let ae=S;N&&!S&&V&&(ae=Q);const Ce=ru(ae),ce=Object.prototype.toString.apply(ae);if(N&&ae&&Ce&&T.indexOf(ce)<0&&!(Ne(D)&&Array.isArray(ae))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const le=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,ae,{...a,ns:h}):`key '${d} (${this.language})' returned an object instead of string.`;return l?(b.res=le,b.usedParams=this.getUsedParamsDetails(a),b):le}if(u){const le=Array.isArray(ae),fe=le?[]:{},ke=le?k:_;for(const re in ae)if(Object.prototype.hasOwnProperty.call(ae,re)){const se=`${ke}${u}${re}`;V&&!S?fe[re]=this.translate(se,{...a,defaultValue:ru(Q)?Q[re]:void 0,joinArrays:!1,ns:h}):fe[re]=this.translate(se,{...a,joinArrays:!1,ns:h}),fe[re]===se&&(fe[re]=ae[re])}S=fe}}else if(N&&Ne(D)&&Array.isArray(S))S=S.join(D),S&&(S=this.extendTranslation(S,t,a,i));else{let le=!1,fe=!1;!this.isValidLookup(S)&&V&&(le=!0,S=Q),this.isValidLookup(S)||(fe=!0,S=d);const re=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:S,se=V&&Q!==S&&this.options.updateMissing;if(fe||le||se){if(this.logger.log(se?"updateKey":"missingKey",y,g,d,se?Q:S),u){const P=this.resolve(d,{...a,keySeparator:!1});P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let P=0;P<G.length;P++)U.push(G[P]);else this.options.saveMissingTo==="all"?U=this.languageUtils.toResolveHierarchy(a.lng||this.language):U.push(a.lng||this.language);const z=(P,E,W)=>{const X=V&&W!==S?W:re;this.options.missingKeyHandler?this.options.missingKeyHandler(P,g,E,X,se,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(P,g,E,X,se,a),this.emit("missingKey",P,g,E,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?U.forEach(P=>{const E=this.pluralResolver.getSuffixes(P,a);j&&a[`defaultValue${this.options.pluralSeparator}zero`]&&E.indexOf(`${this.options.pluralSeparator}zero`)<0&&E.push(`${this.options.pluralSeparator}zero`),E.forEach(W=>{z([P],d+W,a[`defaultValue${W}`]||Q)})}):z(U,d,Q))}S=this.extendTranslation(S,t,a,b,i),fe&&S===d&&this.options.appendNamespaceToMissingKey&&(S=`${g}${v}${d}`),(fe||le)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${v}${d}`:d,le?S:void 0,a))}return l?(b.res=S,b.usedParams=this.getUsedParamsDetails(a),b):S}extendTranslation(t,o,i,a,l){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const h=Ne(t)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(h){const y=t.match(this.interpolator.nestingRegexp);g=y&&y.length}let v=i.replace&&!Ne(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||a.usedLng,i),h){const y=t.match(this.interpolator.nestingRegexp),w=y&&y.length;g<w&&(i.nest=!1)}!i.lng&&a&&a.res&&(i.lng=this.language||a.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...y)=>l?.[0]===y[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${o[0]}`),null):this.translate(...y,o),i)),i.interpolation&&this.interpolator.reset()}const u=i.postProcess||this.options.postProcess,d=Ne(u)?[u]:u;return t!=null&&d?.length&&i.applyPostProcessor!==!1&&(t=ym.handle(d,t,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,o={}){let i,a,l,u,d;return Ne(t)&&(t=[t]),t.forEach(h=>{if(this.isValidLookup(i))return;const g=this.extractFromKey(h,o),v=g.key;a=v;let y=g.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const w=o.count!==void 0&&!Ne(o.count),b=w&&!o.ordinal&&o.count===0,S=o.context!==void 0&&(Ne(o.context)||typeof o.context=="number")&&o.context!=="",_=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);y.forEach(k=>{this.isValidLookup(i)||(d=k,!wm[`${_[0]}-${k}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(wm[`${_[0]}-${k}`]=!0,this.logger.warn(`key "${a}" for languages "${_.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(T=>{if(this.isValidLookup(i))return;u=T;const D=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(D,v,T,k,o);else{let I;w&&(I=this.pluralResolver.getSuffix(T,o.count,o));const V=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(o.ordinal&&I.indexOf(L)===0&&D.push(v+I.replace(L,this.options.pluralSeparator)),D.push(v+I),b&&D.push(v+V)),S){const B=`${v}${this.options.contextSeparator||"_"}${o.context}`;D.push(B),w&&(o.ordinal&&I.indexOf(L)===0&&D.push(B+I.replace(L,this.options.pluralSeparator)),D.push(B+I),b&&D.push(B+V))}}let N;for(;N=D.pop();)this.isValidLookup(i)||(l=N,i=this.getResource(T,k,N,o))}))})}),{res:i,usedKey:a,exactUsedKey:l,usedLng:u,usedNS:d}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,o,i,a={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,o,i,a):this.resourceStore.getResource(t,o,i,a)}getUsedParamsDetails(t={}){const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Ne(t.replace);let a=i?t.replace:t;if(i&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const l of o)delete a[l]}return a}static hasDefaultValue(t){const o="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&o===i.substring(0,o.length)&&t[i]!==void 0)return!0;return!1}}class Sm{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Rn.create("languageUtils")}getScriptPartFromCode(t){if(t=Ti(t),!t||t.indexOf("-")<0)return null;const o=t.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(t){if(t=Ti(t),!t||t.indexOf("-")<0)return t;const o=t.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(t){if(Ne(t)&&t.indexOf("-")>-1){let o;try{o=Intl.getCanonicalLocales(t)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let o;return t.forEach(i=>{if(o)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(o=a)}),!o&&this.options.supportedLngs&&t.forEach(i=>{if(o)return;const a=this.getScriptPartFromCode(i);if(this.isSupportedCode(a))return o=a;const l=this.getLanguagePartFromCode(i);if(this.isSupportedCode(l))return o=l;o=this.options.supportedLngs.find(u=>{if(u===l)return u;if(!(u.indexOf("-")<0&&l.indexOf("-")<0)&&(u.indexOf("-")>0&&l.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===l||u.indexOf(l)===0&&l.length>1))return u})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(t,o){if(!t)return[];if(typeof t=="function"&&(t=t(o)),Ne(t)&&(t=[t]),Array.isArray(t))return t;if(!o)return t.default||[];let i=t[o];return i||(i=t[this.getScriptPartFromCode(o)]),i||(i=t[this.formatLanguageCode(o)]),i||(i=t[this.getLanguagePartFromCode(o)]),i||(i=t.default),i||[]}toResolveHierarchy(t,o){const i=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],t),a=[],l=u=>{u&&(this.isSupportedCode(u)?a.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return Ne(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Ne(t)&&l(this.formatLanguageCode(t)),i.forEach(u=>{a.indexOf(u)<0&&l(this.formatLanguageCode(u))}),a}}const bm={zero:0,one:1,two:2,few:3,many:4,other:5},km={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ok{constructor(t,o={}){this.languageUtils=t,this.options=o,this.logger=Rn.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,o){this.rules[t]=o}clearCache(){this.pluralRulesCache={}}getRule(t,o={}){const i=Ti(t==="dev"?"en":t),a=o.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:i,type:a});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let u;try{u=new Intl.PluralRules(i,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),km;if(!t.match(/-|_/))return km;const h=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(h,o)}return this.pluralRulesCache[l]=u,u}needsPlural(t,o={}){let i=this.getRule(t,o);return i||(i=this.getRule("dev",o)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,o,i={}){return this.getSuffixes(t,i).map(a=>`${o}${a}`)}getSuffixes(t,o={}){let i=this.getRule(t,o);return i||(i=this.getRule("dev",o)),i?i.resolvedOptions().pluralCategories.sort((a,l)=>bm[a]-bm[l]).map(a=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,o,i={}){const a=this.getRule(t,i);return a?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(o)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",o,i))}}const Cm=(r,t,o,i=".",a=!0)=>{let l=Sk(r,t,o);return!l&&a&&Ne(o)&&(l=tu(r,o,i),l===void 0&&(l=tu(t,o,i))),l},ou=r=>r.replace(/\$/g,"$$$$");class Nk{constructor(t={}){this.logger=Rn.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(o=>o),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:o,escapeValue:i,useRawValueToEscape:a,prefix:l,prefixEscaped:u,suffix:d,suffixEscaped:h,formatSeparator:g,unescapeSuffix:v,unescapePrefix:y,nestingPrefix:w,nestingPrefixEscaped:b,nestingSuffix:S,nestingSuffixEscaped:_,nestingOptionsSeparator:k,maxReplaces:T,alwaysFormat:D}=t.interpolation;this.escape=o!==void 0?o:kk,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=l?$o(l):u||"{{",this.suffix=d?$o(d):h||"}}",this.formatSeparator=g||",",this.unescapePrefix=v?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=w?$o(w):b||$o("$t("),this.nestingSuffix=S?$o(S):_||$o(")"),this.nestingOptionsSeparator=k||",",this.maxReplaces=T||1e3,this.alwaysFormat=D!==void 0?D:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(o,i)=>o?.source===i?(o.lastIndex=0,o):new RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,o,i,a){let l,u,d;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=b=>{if(b.indexOf(this.formatSeparator)<0){const T=Cm(o,h,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,i,{...a,...o,interpolationkey:b}):T}const S=b.split(this.formatSeparator),_=S.shift().trim(),k=S.join(this.formatSeparator).trim();return this.format(Cm(o,h,_,this.options.keySeparator,this.options.ignoreJSONStructure),k,i,{...a,...o,interpolationkey:_})};this.resetRegExp();const v=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,y=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>ou(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?ou(this.escape(b)):ou(b)}].forEach(b=>{for(d=0;l=b.regex.exec(t);){const S=l[1].trim();if(u=g(S),u===void 0)if(typeof v=="function"){const k=v(t,l,a);u=Ne(k)?k:""}else if(a&&Object.prototype.hasOwnProperty.call(a,S))u="";else if(y){u=l[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),u="";else!Ne(u)&&!this.useRawValueToEscape&&(u=fm(u));const _=b.safeValue(u);if(t=t.replace(l[0],_),y?(b.regex.lastIndex+=u.length,b.regex.lastIndex-=l[0].length):b.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),t}nest(t,o,i={}){let a,l,u;const d=(h,g)=>{const v=this.nestingOptionsSeparator;if(h.indexOf(v)<0)return h;const y=h.split(new RegExp(`${v}[ ]*{`));let w=`{${y[1]}`;h=y[0],w=this.interpolate(w,u);const b=w.match(/'/g),S=w.match(/"/g);((b?.length??0)%2===0&&!S||S.length%2!==0)&&(w=w.replace(/'/g,'"'));try{u=JSON.parse(w),g&&(u={...g,...u})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,_),`${h}${v}${w}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,h};for(;a=this.nestingRegexp.exec(t);){let h=[];u={...i},u=u.replace&&!Ne(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const g=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(g!==-1&&(h=a[1].slice(g).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),a[1]=a[1].slice(0,g)),l=o(d.call(this,a[1].trim(),u),u),l&&a[0]===t&&!Ne(l))return l;Ne(l)||(l=fm(l)),l||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),l=""),h.length&&(l=h.reduce((v,y)=>this.format(v,y,i.lng,{...i,interpolationkey:a[1].trim()}),l.trim())),t=t.replace(a[0],l),this.regexp.lastIndex=0}return t}}const Tk=r=>{let t=r.toLowerCase().trim();const o={};if(r.indexOf("(")>-1){const i=r.split("(");t=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);t==="currency"&&a.indexOf(":")<0?o.currency||(o.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?o.range||(o.range=a.trim()):a.split(";").forEach(u=>{if(u){const[d,...h]=u.split(":"),g=h.join(":").trim().replace(/^'+|'+$/g,""),v=d.trim();o[v]||(o[v]=g),g==="false"&&(o[v]=!1),g==="true"&&(o[v]=!0),isNaN(g)||(o[v]=parseInt(g,10))}})}return{formatName:t,formatOptions:o}},_m=r=>{const t={};return(o,i,a)=>{let l=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(l={...l,[a.interpolationkey]:void 0});const u=i+JSON.stringify(l);let d=t[u];return d||(d=r(Ti(i),a),t[u]=d),d(o)}},Ak=r=>(t,o,i)=>r(Ti(o),i)(t);class Dk{constructor(t={}){this.logger=Rn.create("formatter"),this.options=t,this.init(t)}init(t,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";const i=o.cacheInBuiltFormats?_m:Ak;this.formats={number:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l});return d=>u.format(d)}),currency:i((a,l)=>{const u=new Intl.NumberFormat(a,{...l,style:"currency"});return d=>u.format(d)}),datetime:i((a,l)=>{const u=new Intl.DateTimeFormat(a,{...l});return d=>u.format(d)}),relativetime:i((a,l)=>{const u=new Intl.RelativeTimeFormat(a,{...l});return d=>u.format(d,l.range||"day")}),list:i((a,l)=>{const u=new Intl.ListFormat(a,{...l});return d=>u.format(d)})}}add(t,o){this.formats[t.toLowerCase().trim()]=o}addCached(t,o){this.formats[t.toLowerCase().trim()]=_m(o)}format(t,o,i,a={}){const l=o.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(d=>d.indexOf(")")>-1)){const d=l.findIndex(h=>h.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,d)].join(this.formatSeparator)}return l.reduce((d,h)=>{const{formatName:g,formatOptions:v}=Tk(h);if(this.formats[g]){let y=d;try{const w=a?.formatParams?.[a.interpolationkey]||{},b=w.locale||w.lng||a.locale||a.lng||i;y=this.formats[g](d,b,{...v,...a,...w})}catch(w){this.logger.warn(w)}return y}else this.logger.warn(`there was no format function for ${g}`);return d},t)}}const Lk=(r,t)=>{r.pending[t]!==void 0&&(delete r.pending[t],r.pendingCount--)};class $k extends pa{constructor(t,o,i,a={}){super(),this.backend=t,this.store=o,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=Rn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,a.backend,a)}queueLoad(t,o,i,a){const l={},u={},d={},h={};return t.forEach(g=>{let v=!0;o.forEach(y=>{const w=`${g}|${y}`;!i.reload&&this.store.hasResourceBundle(g,y)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?u[w]===void 0&&(u[w]=!0):(this.state[w]=1,v=!1,u[w]===void 0&&(u[w]=!0),l[w]===void 0&&(l[w]=!0),h[y]===void 0&&(h[y]=!0)))}),v||(d[g]=!0)}),(Object.keys(l).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(l),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(h)}}loaded(t,o,i){const a=t.split("|"),l=a[0],u=a[1];o&&this.emit("failedLoading",l,u,o),!o&&i&&this.store.addResourceBundle(l,u,i,void 0,void 0,{skipCopy:!0}),this.state[t]=o?-1:2,o&&i&&(this.state[t]=0);const d={};this.queue.forEach(h=>{wk(h.loaded,[l],u),Lk(h,t),o&&h.errors.push(o),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(g=>{d[g]||(d[g]={});const v=h.loaded[g];v.length&&v.forEach(y=>{d[g][y]===void 0&&(d[g][y]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(h=>!h.done)}read(t,o,i,a=0,l=this.retryTimeout,u){if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:o,fcName:i,tried:a,wait:l,callback:u});return}this.readingCalls++;const d=(g,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(g&&v&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,o,i,a+1,l*2,u)},l);return}u(g,v)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const g=h(t,o);g&&typeof g.then=="function"?g.then(v=>d(null,v)).catch(d):d(null,g)}catch(g){d(g)}return}return h(t,o,d)}prepareLoading(t,o,i={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ne(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ne(o)&&(o=[o]);const l=this.queueLoad(t,o,i,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(u=>{this.loadOne(u)})}load(t,o,i){this.prepareLoading(t,o,{},i)}reload(t,o,i){this.prepareLoading(t,o,{reload:!0},i)}loadOne(t,o=""){const i=t.split("|"),a=i[0],l=i[1];this.read(a,l,"read",void 0,void 0,(u,d)=>{u&&this.logger.warn(`${o}loading namespace ${l} for language ${a} failed`,u),!u&&d&&this.logger.log(`${o}loaded namespace ${l} for language ${a}`,d),this.loaded(t,u,d)})}saveMissing(t,o,i,a,l,u={},d=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${i}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){const h={...u,isUpdate:l},g=this.backend.create.bind(this.backend);if(g.length<6)try{let v;g.length===5?v=g(t,o,i,a,h):v=g(t,o,i,a),v&&typeof v.then=="function"?v.then(y=>d(null,y)).catch(d):d(null,v)}catch(v){d(v)}else g(t,o,i,a,d,h)}!t||!t[0]||this.store.addResource(t[0],o,i,a)}}}const Em=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r=>{let t={};if(typeof r[1]=="object"&&(t=r[1]),Ne(r[1])&&(t.defaultValue=r[1]),Ne(r[2])&&(t.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const o=r[3]||r[2];Object.keys(o).forEach(i=>{t[i]=o[i]})}return t},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Rm=r=>(Ne(r.ns)&&(r.ns=[r.ns]),Ne(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),Ne(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs?.indexOf?.("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r),ma=()=>{},jk=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(o=>{typeof r[o]=="function"&&(r[o]=r[o].bind(r))})};class Ai extends pa{constructor(t={},o){if(super(),this.options=Rm(t),this.services={},this.logger=Rn,this.modules={external:[]},jk(this),o&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,o),this;setTimeout(()=>{this.init(t,o)},0)}}init(t={},o){this.isInitializing=!0,typeof t=="function"&&(o=t,t={}),t.defaultNS==null&&t.ns&&(Ne(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=Em();this.options={...i,...this.options,...Rm(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?Rn.init(a(this.modules.logger),this.options):Rn.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=Dk;const v=new Sm(this.options);this.store=new vm(this.options.resources,this.options);const y=this.services;y.logger=Rn,y.resourceStore=this.store,y.languageUtils=v,y.pluralResolver=new Ok(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),g&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(y.formatter=a(g),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new Nk(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new $k(a(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(b,...S)=>{this.emit(b,...S)}),this.modules.languageDetector&&(y.languageDetector=a(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=a(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new ha(this.services,this.options),this.translator.on("*",(b,...S)=>{this.emit(b,...S)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,o||(o=ma),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...v)=>this.store[g](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...v)=>(this.store[g](...v),this)});const d=Oi(),h=()=>{const g=(v,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),d.resolve(y),o(v,y)};if(this.languages&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),d}loadResources(t,o=ma){let i=o;const a=Ne(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const l=[],u=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(g=>{g!=="cimode"&&l.indexOf(g)<0&&l.push(g)})};a?u(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>u(h)),this.options.preload?.forEach?.(d=>u(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(d)})}else i(null)}reloadResources(t,o,i){const a=Oi();return typeof t=="function"&&(i=t,t=void 0),typeof o=="function"&&(i=o,o=void 0),t||(t=this.languages),o||(o=this.options.ns),i||(i=ma),this.services.backendConnector.reload(t,o,l=>{a.resolve(),i(l)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ym.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let o=0;o<this.languages.length;o++){const i=this.languages[o];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,o){this.isLanguageChangingTo=t;const i=Oi();this.emit("languageChanging",t);const a=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},l=(d,h)=>{h?this.isLanguageChangingTo===t&&(a(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,i.resolve((...g)=>this.t(...g)),o&&o(d,(...g)=>this.t(...g))},u=d=>{!t&&!d&&this.services.languageDetector&&(d=[]);const h=Ne(d)?d:d&&d[0],g=this.store.hasLanguageSomeTranslations(h)?h:this.services.languageUtils.getBestMatchFromCodes(Ne(d)?[d]:d);g&&(this.language||a(g),this.translator.language||this.translator.changeLanguage(g),this.services.languageDetector?.cacheUserLanguage?.(g)),this.loadResources(g,v=>{l(v,g)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),i}getFixedT(t,o,i){const a=(l,u,...d)=>{let h;typeof u!="object"?h=this.options.overloadTranslationOptionHandler([l,u].concat(d)):h={...u},h.lng=h.lng||a.lng,h.lngs=h.lngs||a.lngs,h.ns=h.ns||a.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||a.keyPrefix);const g=this.options.keySeparator||".";let v;return h.keyPrefix&&Array.isArray(l)?v=l.map(y=>(typeof y=="function"&&(y=nu(y,{...this.options,...u})),`${h.keyPrefix}${g}${y}`)):(typeof l=="function"&&(l=nu(l,{...this.options,...u})),v=h.keyPrefix?`${h.keyPrefix}${g}${l}`:l),this.t(v,h)};return Ne(t)?a.lng=t:a.lngs=t,a.ns=o,a.keyPrefix=i,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,o={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=o.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const u=(d,h)=>{const g=this.services.backendConnector.state[`${d}|${h}`];return g===-1||g===0||g===2};if(o.precheck){const d=o.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(i,t)&&(!a||u(l,t)))}loadNamespaces(t,o){const i=Oi();return this.options.ns?(Ne(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),o&&o(a)}),i):(o&&o(),Promise.resolve())}loadLanguages(t,o){const i=Oi();Ne(t)&&(t=[t]);const a=this.options.preload||[],l=t.filter(u=>a.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return l.length?(this.options.preload=a.concat(l),this.loadResources(u=>{i.resolve(),o&&o(u)}),i):(o&&o(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const l=a.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new Sm(Em());return t.toLowerCase().indexOf("-latn")>1?"ltr":o.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},o){return new Ai(t,o)}cloneInstance(t={},o=ma){const i=t.forkResourceStore;i&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},l=new Ai(a);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(d=>{l[d]=this[d]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},i){const d=Object.keys(this.store.data).reduce((h,g)=>(h[g]={...this.store.data[g]},h[g]=Object.keys(h[g]).reduce((v,y)=>(v[y]={...h[g][y]},v),h[g]),h),{});l.store=new vm(d,a),l.services.resourceStore=l.store}return l.translator=new ha(l.services,a),l.translator.on("*",(d,...h)=>{l.emit(d,...h)}),l.init(a,o),l.translator.options=a,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ot=Ai.createInstance();Ot.createInstance=Ai.createInstance;const Mk=Ot.createInstance;Ot.dir,Ot.init,Ot.loadResources,Ot.reloadResources,Ot.use,Ot.changeLanguage,Ot.getFixedT,Ot.t,Ot.exists,Ot.setDefaultNamespace,Ot.hasLoadedNamespace,Ot.loadNamespaces,Ot.loadLanguages;const zk=Symbol("remote-view.message");class Fk extends Error{constructor(t,o,i){super(),this.key=t,this.values=o,Object.defineProperty(this,"message",{configurable:!0,get:()=>i(t,o)}),this.name="ViewMessageError"}key;values}const iu={en:{close:"Close",commandTitle:"Command palette",commandDescription:"Search for a command to run…"},"zh-Hans":{close:"关闭",commandTitle:"命令面板",commandDescription:"搜索要运行的命令…"},"zh-Hant":{close:"關閉",commandTitle:"命令面板",commandDescription:"搜尋要執行的命令…"}};function Pm(r){try{const t=new Intl.Locale((r||"en").replaceAll("_","-"));return t.language==="zh"?t.maximize().script==="Hant"?"zh-Hant":"zh-Hans":"en"}catch{return"en"}}function Im(r,t=typeof navigator>"u"?"en":navigator.language){const o=d=>{const h=Pm(d);return h==="zh-Hant"&&!r["zh-Hant"]?"zh-Hans":h},i=Mk();i.init({lng:o(t),fallbackLng:"en",supportedLngs:["en","zh-Hans","zh-Hant"],load:"currentOnly",initAsync:!1,keySeparator:!1,defaultNS:"view",interpolation:{escapeValue:!1},resources:{en:{view:r.en,ui:iu.en},"zh-Hans":{view:r["zh-Hans"],ui:iu["zh-Hans"]},"zh-Hant":{view:r["zh-Hant"]??r["zh-Hans"],ui:iu["zh-Hant"]}}});const a=()=>o(i.resolvedLanguage??i.language),l=d=>(i.on("languageChanged",d),()=>{i.off("languageChanged",d)}),u=(d,h)=>String(i.t(d,h));return{getLocale:a,subscribe:l,setLocale(d){d!==void 0&&i.changeLanguage(o(d)),typeof document<"u"&&(document.documentElement.lang=a())},t:(d,h)=>u(d,h),message:(d,h)=>({[zk]:!0,key:d,values:h}),error:(d,h)=>new Fk(d,h,u),format(d){return typeof d=="string"?d:d instanceof Error?d.message:u(d.key,d.values)},ui:d=>String(i.t(d,{ns:"ui"})),date(d,h={}){const g=new Date(d);return Number.isNaN(g.getTime())?"":new Intl.DateTimeFormat(a(),h).format(g)},number(d,h){return new Intl.NumberFormat(a(),h).format(d)},label(d,h=""){if(typeof d=="string")return d;const g=Object.entries(d),v=a();return g.find(([y])=>Pm(y)===v&&/^(en|zh)([-_]|$)/i.test(y))?.[1]??d.en_US??d.en??d["en-US"]??h}}}const Vk=Im({en:{},"zh-Hans":{}},"en"),Om=m.createContext(Vk);function Uk({i18n:r,children:t}){return A.jsx(Om.Provider,{value:r,children:t})}function Bk(r){return m.useSyncExternalStore(r.subscribe,r.getLocale,r.getLocale)}function Nm(){const r=m.useContext(Om);return Bk(r),r.ui}m.createContext(null);function We(...r){return d0(Pf(r))}const su=em("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"}}),yt=m.forwardRef(function({className:r,variant:t="default",size:o="default",asChild:i=!1,...a},l){const u=i?I0:"button";return A.jsx(u,{ref:l,"data-slot":"button","data-variant":t,"data-size":o,className:We(su({variant:t,size:o,className:r})),...a})});function Hk({...r}){return A.jsx(ES,{"data-slot":"alert-dialog",...r})}function Wk({...r}){return A.jsx(RS,{"data-slot":"alert-dialog-portal",...r})}function Kk({className:r,...t}){return A.jsx(PS,{"data-slot":"alert-dialog-overlay",className:We("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",r),...t})}function Zk({className:r,size:t="default",...o}){return A.jsxs(Wk,{children:[A.jsx(Kk,{}),A.jsx(IS,{"data-slot":"alert-dialog-content","data-size":t,className:We("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",r),...o})]})}function qk({className:r,...t}){return A.jsx("div",{"data-slot":"alert-dialog-footer",className:We("-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",r),...t})}function Gk({className:r,...t}){return A.jsx(NS,{"data-slot":"alert-dialog-title",className:We("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",r),...t})}function Qk({className:r,...t}){return A.jsx(TS,{"data-slot":"alert-dialog-description",className:We("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",r),...t})}function Yk({className:r,variant:t="outline",size:o="default",...i}){return A.jsx(yt,{variant:t,size:o,asChild:!0,children:A.jsx(OS,{"data-slot":"alert-dialog-cancel",className:We(r),...i})})}function Xk({...r}){return A.jsx(Cc,{"data-slot":"dialog",...r})}function Jk({...r}){return A.jsx(_c,{"data-slot":"dialog-portal",...r})}function eC({className:r,...t}){return A.jsx(Rc,{"data-slot":"dialog-overlay",className:We("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",r),...t})}function tC({className:r,children:t,showCloseButton:o=!0,...i}){const a=Nm();return A.jsxs(Jk,{children:[A.jsx(eC,{}),A.jsxs(Pc,{"data-slot":"dialog-content",className:We("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",r),...i,children:[t,o&&A.jsx(Ks,{"data-slot":"dialog-close",asChild:!0,children:A.jsxs(yt,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[A.jsx(C0,{}),A.jsx("span",{className:"sr-only",children:a("close")})]})})]})]})}function nC({className:r,...t}){return A.jsx("div",{"data-slot":"dialog-header",className:We("flex flex-col gap-2",r),...t})}function rC({className:r,showCloseButton:t=!1,children:o,...i}){const a=Nm();return A.jsxs("div",{"data-slot":"dialog-footer",className:We("-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",r),...i,children:[o,t&&A.jsx(Ks,{asChild:!0,children:A.jsx(yt,{variant:"outline",children:a("close")})})]})}function oC({className:r,...t}){return A.jsx(sh,{"data-slot":"dialog-title",className:We("text-base leading-none font-medium",r),...t})}function iC({className:r,...t}){return A.jsx(ah,{"data-slot":"dialog-description",className:We("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",r),...t})}function Tm({className:r,type:t,...o}){return A.jsx("input",{type:t,"data-slot":"input",className:We("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",r),...o})}function sC({className:r,...t}){return A.jsx("textarea",{"data-slot":"textarea",className:We("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",r),...t})}function aC({className:r,...t}){return A.jsx("div",{"data-slot":"input-group",role:"group",className:We("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",r),...t})}const lC=em("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 cC({className:r,align:t="inline-start",...o}){return A.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:We(lC({align:t}),r),onClick:i=>{i.target.closest("button")||i.currentTarget.parentElement?.querySelector("input")?.focus()},...o})}function uC({className:r,...t}){return A.jsx(Ii,{"data-slot":"command",className:We("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",r),...t})}function dC({className:r,...t}){return A.jsx("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:A.jsxs(aC,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[A.jsx(Ii.Input,{"data-slot":"command-input",className:We("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",r),...t}),A.jsx(cC,{children:A.jsx(b0,{className:"size-4 shrink-0 opacity-50"})})]})})}function fC({className:r,...t}){return A.jsx(Ii.List,{"data-slot":"command-list",className:We("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",r),...t})}function pC({className:r,...t}){return A.jsx(Ii.Empty,{"data-slot":"command-empty",className:We("py-6 text-center text-sm",r),...t})}function hC({className:r,children:t,...o}){return A.jsxs(Ii.Item,{"data-slot":"command-item",className:We("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",r),...o,children:[t,A.jsx(Yf,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function Am({...r}){return A.jsx(ub,{"data-slot":"popover",...r})}function Dm({...r}){return A.jsx(db,{"data-slot":"popover-trigger",...r})}function Lm({className:r,align:t="center",sideOffset:o=4,...i}){return A.jsx(fb,{children:A.jsx(pb,{"data-slot":"popover-content",align:t,sideOffset:o,className:We("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",r),...i})})}function jo({...r}){return A.jsx(Sb,{"data-slot":"select",...r})}function Mo({...r}){return A.jsx(_b,{"data-slot":"select-value",...r})}function zo({className:r,size:t="default",children:o,...i}){return A.jsxs(kb,{"data-slot":"select-trigger","data-size":t,className:We("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",r),...i,children:[o,A.jsx(Eb,{asChild:!0,children:A.jsx(Zl,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Fo({className:r,children:t,position:o="item-aligned",align:i="center",...a}){return A.jsx(Ob,{children:A.jsxs(Nb,{"data-slot":"select-content","data-align-trigger":o==="item-aligned",className:We("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",r),position:o,align:i,...a,children:[A.jsx(mC,{}),A.jsx(jb,{"data-position":o,className:We("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:t}),A.jsx(gC,{})]})})}function ln({className:r,children:t,...o}){return A.jsxs(Fb,{"data-slot":"select-item",className:We("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",r),...o,children:[A.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:A.jsx(Bb,{children:A.jsx(Yf,{className:"pointer-events-none"})})}),A.jsx(Vb,{children:t})]})}function mC({className:r,...t}){return A.jsx(Hb,{"data-slot":"select-scroll-up-button",className:We("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",r),...t,children:A.jsx(Xf,{})})}function gC({className:r,...t}){return A.jsx(Wb,{"data-slot":"select-scroll-down-button",className:We("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",r),...t,children:A.jsx(Zl,{})})}m.createContext(null),m.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});const Qn=ne().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),au=zn([ne().max(4e3),ft().finite(),Lt(),cr()]),Yn=Sx(()=>zn([ne().max(32e3),ft().finite(),Lt(),cr(),nt(Yn).max(1e3),ur(Yn)])),lu=Ef("kind",[we({kind:Xe("data-source"),dataSourceId:ne().uuid()}).strict(),we({kind:Xe("definition"),definitionId:ne().uuid(),versionId:ne().uuid()}).strict(),we({kind:Xe("artifact"),artifactId:ne().uuid(),versionId:ne().uuid()}).strict()]);ur(Yn);const vC=we({id:Qn,sourceField:ne().min(1).max(256),label:ne().min(1).max(160),logicalType:Fn(["string","boolean","int64","float64","decimal","date","timestamp"]),nullable:Lt(),role:Fn(["dimension","measure","time","identifier"]),semanticRef:ne().max(512).optional(),unit:ne().max(80).optional()}).strict(),yC=we({name:Qn,controlId:Qn,type:Fn(["string","number","boolean","date"]),required:Lt(),defaultValue:au.optional(),allowedValues:nt(au).max(200).optional()}).strict(),xC=we({id:Qn,source:lu,providerId:ne().min(1).max(160),operation:Qn,contractVersion:ft().int().positive(),payload:Yn,parameters:nt(yC).max(24),output:we({datasetId:Qn,fields:nt(vC).min(1).max(80),grain:nt(Qn).max(20)}).strict()}).strict();function wC(r,t){const o=r.output.fields.map(a=>a.id),i=r.parameters.map(a=>a.name);(new Set(o).size!==o.length||new Set(i).size!==i.length)&&t.addIssue({code:"custom",message:"Duplicate field or parameter identifier"}),(new Set(r.output.grain).size!==r.output.grain.length||r.output.grain.some(a=>!o.includes(a)))&&t.addIssue({code:"custom",message:"Grain references an undeclared field"}),new TextEncoder().encode(JSON.stringify(r.payload)).byteLength>64e3&&t.addIssue({code:"custom",message:"Query payload exceeds limit"})}const $m=xC.superRefine(wC),SC=ur(Qn,au).default({});we({binding:$m,controls:SC}).strict(),we({source:lu,providerId:ne().min(1).max(160),request:Yn.default({})}).strict().refine(r=>new TextEncoder().encode(JSON.stringify(r)).byteLength<=16e3,"Discovery request exceeds limit"),we({items:nt(we({id:ne().min(1).max(512),name:ne().min(1).max(512),kind:Fn(["collection","dataset"]),description:ne().max(4e3).optional(),inspectRequest:Yn.optional(),metadata:Yn}).strict()).max(50),nextRequest:Yn.optional(),queryContract:we({operation:Qn,contractVersion:ft().int().positive(),payloadSchema:Yn,instructions:ne().max(8e3)}).strict()}).strict().refine(r=>new TextEncoder().encode(JSON.stringify(r)).byteLength<=128e3,"Discovery response exceeds limit");function bC(r,t){if(r==null)return{};var o={},i=Object.keys(r),a,l;for(l=0;l<i.length;l++)a=i[l],!(t.indexOf(a)>=0)&&(o[a]=r[a]);return o}const jm="xpert.artifact-document",Mm=1,ga=ne().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),kC=zn([ne().max(4e3),ft().finite(),Lt(),cr()]),zm=ur(ga,kC).refine(r=>Object.keys(r).length<=24,"Too many controls"),CC=we({type:Xe("query"),requestId:ne().min(1).max(80),bindingId:ga,controls:zm}).strict(),_C=we({bindingIds:nt(ga).max(64).refine(r=>new Set(r).size===r.length,"Duplicate binding IDs"),defaults:zm,theme:Fn(["light","dark"]),locale:ne().min(1).max(80)}).strict(),Fm=ne().min(1).max(3e5).superRefine((r,t)=>{(new TextEncoder().encode(r).byteLength>3e5||!/<html[\s>]/i.test(r)||!/<body[\s>]/i.test(r))&&t.addIssue({code:"custom",message:"Supply a complete UTF-8 HTML document, at most 300 KB"})}),EC=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]),Pn=(r,t)=>r>>>t|r<<32-t;function RC(r){const t=new Uint8Array(Math.ceil((r.length+9)/64)*64);t.set(r),t[r.length]=128;const o=new DataView(t.buffer);o.setUint32(t.length-8,Math.floor(r.length/536870912)),o.setUint32(t.length-4,r.length*8>>>0);const i=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=new Uint32Array(64);for(let l=0;l<t.length;l+=64){for(let S=0;S<16;S++)a[S]=o.getUint32(l+S*4);for(let S=16;S<64;S++){const _=a[S-15],k=a[S-2],T=Pn(_,7)^Pn(_,18)^_>>>3,D=Pn(k,17)^Pn(k,19)^k>>>10;a[S]=a[S-16]+T+a[S-7]+D>>>0}let[u,d,h,g,v,y,w,b]=i;for(let S=0;S<64;S++){const _=Pn(v,6)^Pn(v,11)^Pn(v,25),k=v&y^~v&w,T=b+_+k+EC[S]+a[S]>>>0,D=Pn(u,2)^Pn(u,13)^Pn(u,22),N=u&d^u&h^d&h,I=D+N>>>0;b=w,w=y,y=v,v=g+T>>>0,g=h,h=d,d=u,u=T+I>>>0}i[0]=i[0]+u>>>0,i[1]=i[1]+d>>>0,i[2]=i[2]+h>>>0,i[3]=i[3]+g>>>0,i[4]=i[4]+v>>>0,i[5]=i[5]+y>>>0,i[6]=i[6]+w>>>0,i[7]=i[7]+b>>>0}return Array.from(i,l=>l.toString(16).padStart(8,"0")).join("")}const Vm=we({id:ga,version:ne().regex(/^\d+\.\d+\.\d+(?:-[A-Za-z0-9.-]+)?$/),format:Xe("classic-script"),global:ne().regex(/^[A-Za-z_$][A-Za-z0-9_$]{0,79}$/).refine(r=>!["window","self","globalThis","document","parent","top","location","xpertLiveArtifact","__proto__","constructor","prototype"].includes(r)),sha256:ne().regex(/^[a-f0-9]{64}$/)}).strict(),PC=Vm.transform(r=>({id:r.id,version:r.version,format:"classic-script",global:r.global,sha256:r.sha256})),cu=nt(PC).max(8).superRefine((r,t)=>{(new Set(r.map(o=>o.id)).size!==r.length||new Set(r.map(o=>o.global)).size!==r.length)&&t.addIssue({code:"custom",message:"Duplicate dependency ID or global"})}),Um=nt(Vm.extend({source:ne().min(1).max(4e6)}).strict().transform(r=>({id:r.id,version:r.version,format:"classic-script",global:r.global,sha256:r.sha256,source:r.source}))).max(8);function Bm(r,t){const o=Um.parse(r),i=cu.parse(o.map(l=>{var{source:u}=l,d=bC(l,["source"]);return d}));let a=0;for(const l of o){const u=new TextEncoder().encode(l.source);if(a+=u.length,u.length>4e6||a>8e6)throw new Error("DOCUMENT_DEPENDENCY_TOO_LARGE");if(RC(u)!==l.sha256)throw new Error("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED")}if(t&&JSON.stringify(cu.parse(t))!==JSON.stringify(i))throw new Error("DOCUMENT_DEPENDENCY_LOCK_MISMATCH");return o.map(l=>({id:l.id,version:l.version,global:l.global,sha256:l.sha256,source:l.source,format:"classic-script"}))}function IC(r){const t=o=>JSON.stringify(o).replace(/</g,"\\u003c").replace(/>/g,"\\u003e");return Bm(r).map(o=>`<script>(()=>{const s=document.createElement('script');s.textContent=${t(o.source)};document.head.appendChild(s);s.remove();if(typeof window[${t(o.global)}]==='undefined')throw new Error('DOCUMENT_DEPENDENCY_GLOBAL_MISSING');})();<\/script>`).join("")}const OC=ne().max(250).refine(r=>{try{const t=new URL(r);return t.protocol==="https:"&&t.origin===r&&!t.username&&!t.password&&/^(?:[a-z0-9.-]+|\[[a-f0-9:]+\])$/i.test(t.hostname)}catch{return!1}},"Use an exact HTTPS origin without a path, credentials or wildcard"),va=nt(OC).max(16),NC=we({scripts:va.optional(),styles:va.optional(),fonts:va.optional(),images:va.optional()}).strict();function Hm(r){const t=NC.parse(r??{}),o=i=>i?.length?` ${[...new Set(i)].join(" ")}`:"";return["default-src 'none'",`script-src 'unsafe-inline'${o(t.scripts)}`,`style-src 'unsafe-inline'${o(t.styles)}`,`img-src data: blob:${o(t.images)}`,`font-src data:${o(t.fonts)}`,"connect-src 'none'","frame-src 'none'","worker-src 'none'","object-src 'none'","base-uri 'none'","form-action 'none'"].join("; ")}Hm();function TC(r,t,o=[],i){if(Fm.parse(r),!/^[a-f0-9]{32}$/.test(t))throw new Error("Invalid Artifact document session ID");return`<!doctype html><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="${Hm(i)}"><script>${AC.replace("__XPERT_DOCUMENT_SESSION__",t)}<\/script>${IC(o)}${r}`}const AC=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
+ `,DC=we({channel:Xe(jm),version:Xe(Mm),type:Xe("ready"),sessionId:ne().regex(/^[a-f0-9]{32}$/)}).strict(),LC=we({type:Xe("diagnostic"),code:Xe("DOCUMENT_BINDING_DENIED")}).strict();function $C(r,t){if(!r.ownerDocument.querySelector("meta[data-xpert-document-policy]"))throw new Error("Install the Artifact document frame policy before mounting a document");const o=_C.parse(t.context),i=Array.from(crypto.getRandomValues(new Uint8Array(16)),N=>N.toString(16).padStart(2,"0")).join(""),a=TC(t.html,i,t.dependencies,t.networkPolicy),l=new MessageChannel,u=new Set(o.bindingIds),d=new Set,h=new Set,g=new Map,v=r.ownerDocument.defaultView;let y=!1,w=!1,b=0,S=Date.now();r.setAttribute("sandbox","allow-scripts"),r.referrerPolicy="no-referrer";const _=(N,I)=>{try{N?.(I)}catch{}},k=N=>{w||l.port1.postMessage(N)},T=(N,I)=>{k({type:"result",requestId:N,ok:!1,code:I}),_(t.onError,I)};l.port1.onmessage=async N=>{if(w)return;const I=LC.safeParse(N.data);if(I.success){_(t.onError,I.data.code);return}const V=CC.safeParse(N.data);if(!V.success){_(t.onError,"DOCUMENT_INVALID_REQUEST");return}const L={type:V.data.type,requestId:V.data.requestId,bindingId:V.data.bindingId,controls:V.data.controls};if(!u.has(L.bindingId)){T(L.requestId,"DOCUMENT_BINDING_DENIED");return}if(Date.now()-S>=6e4&&(b=0,S=Date.now(),d.clear()),h.has(L.requestId)||d.has(L.requestId)){T(L.requestId,"DOCUMENT_REQUEST_REPLAY");return}if(h.size>=8||++b>60){T(L.requestId,"DOCUMENT_QUERY_LIMIT");return}d.add(L.requestId),h.add(L.requestId),g.set(L.bindingId,L.requestId),_(t.onBusy,!0);try{const B=await t.query(L);w||(k({type:"result",requestId:L.requestId,ok:!0,dataset:B}),g.get(L.bindingId)===L.requestId&&_(t.onResult,B))}catch{w||(k({type:"result",requestId:L.requestId,ok:!1,code:"DOCUMENT_QUERY_FAILED"}),g.get(L.bindingId)===L.requestId&&_(t.onError,"DOCUMENT_QUERY_FAILED"))}finally{h.delete(L.requestId),w||_(t.onBusy,h.size>0)}};const D=N=>{var I;if(w||y||N.source!==r.contentWindow)return;const V=DC.safeParse(N.data);!V.success||V.data.sessionId!==i||(y=!0,(I=r.contentWindow)==null||I.postMessage({channel:jm,version:Mm,type:"init",sessionId:i,context:o},"*",[l.port2]))};return v.addEventListener("message",D),l.port1.start(),r.srcdoc=a,{refresh(){k({type:"refresh"})},dispose(){w||(w=!0,v.removeEventListener("message",D),l.port1.close(),l.port2.close(),_(t.onBusy,!1))}}}function jC(r){if(r.querySelector("meta[data-xpert-document-policy]"))return;const t=r.createElement("meta");t.httpEquiv="Content-Security-Policy",t.content="frame-src 'none'",t.dataset.xpertDocumentPolicy="1",r.head.prepend(t)}const In=ne().regex(/^[A-Za-z][A-Za-z0-9_.-]{0,79}$/),ya=we({schema:Xe("xpert.live-dashboard"),id:ne().uuid(),title:ne().min(1).max(160),bindings:nt($m).max(8),presentation:we({type:Xe("html"),html:Fm,dependencies:cu.optional()}).strict().optional(),controls:nt(we({controlId:In,type:Fn(["string","number","boolean","date"]),defaultValue:zn([ne(),ft(),Lt(),cr()]).optional(),allowedValues:nt(zn([ne(),ft(),Lt(),cr()])).max(200).optional(),label:ne().min(1).max(160)}).strict()).max(24),charts:nt(we({id:In,title:ne().min(1).max(160),type:Fn(["bar","line","area","pie","scatter"]),datasetId:In,x:In,y:In,color:In.optional()}).strict()).max(20),tables:nt(we({id:In,title:ne().min(1).max(160),datasetId:In,fields:nt(In).min(1).max(30)}).strict()).max(20)}).strict().superRefine((r,t)=>{const o=(i,a)=>{new Set(i).size!==i.length&&t.addIssue({code:"custom",message:`Duplicate ${a}`})};!r.bindings.length&&(r.presentation||r.controls.length||r.charts.length||r.tables.length)&&t.addIssue({code:"custom",message:"An unconfigured draft must contain no views or controls"}),o(r.bindings.map(i=>i.id),"binding"),o(r.bindings.map(i=>i.output.datasetId),"dataset"),o(r.controls.map(i=>i.controlId),"control"),o([...r.charts,...r.tables].map(i=>i.id),"view"),r.bindings.length&&!r.presentation&&!r.charts.length&&!r.tables.length&&t.addIssue({code:"custom",message:"At least one chart or table is required"}),r.presentation&&(r.charts.length||r.tables.length)&&t.addIssue({code:"custom",message:"HTML presentation owns its charts; use empty charts/tables arrays"});for(const i of r.controls){const a=r.bindings.flatMap(u=>u.parameters.filter(d=>d.controlId===i.controlId));a.length||t.addIssue({code:"custom",message:"Control is not bound to a query parameter"});const l=[...i.defaultValue!==void 0?[i.defaultValue]:[],...i.allowedValues??[]];l.some(u=>u!==null&&(i.type==="number"?typeof u!="number"||!Number.isFinite(u):i.type==="boolean"?typeof u!="boolean":typeof u!="string"))&&t.addIssue({code:"custom",message:"Control value has an incompatible type"}),i.allowedValues&&i.defaultValue!==void 0&&!i.allowedValues.includes(i.defaultValue)&&t.addIssue({code:"custom",message:"Default control value is not allowed"});for(const u of a)u.defaultValue!==void 0&&i.defaultValue!==void 0&&u.defaultValue!==i.defaultValue&&t.addIssue({code:"custom",message:"Control and parameter defaults disagree"}),l.some(d=>d===null?u.required:u.allowedValues&&!u.allowedValues.includes(d))&&t.addIssue({code:"custom",message:"Control values conflict with parameter restrictions"})}for(const i of r.bindings)for(const a of i.parameters){const l=r.controls.find(u=>u.controlId===a.controlId);(!l||l.type!==a.type)&&t.addIssue({code:"custom",message:"Control mapping is missing or has an incompatible type"})}for(const i of[...r.charts,...r.tables]){const a=r.bindings.find(u=>u.output.datasetId===i.datasetId)?.output,l="fields"in i?i.fields:[i.x,i.y,...i.color?[i.color]:[]];(!a||l.some(u=>!a.fields.some(d=>d.id===u)))&&t.addIssue({code:"custom",message:"View references an undeclared Dataset field"}),"y"in i&&!a?.fields.some(u=>u.id===i.y&&["float64","int64","decimal"].includes(u.logicalType))&&t.addIssue({code:"custom",message:"Chart measure must be numeric"}),"y"in i&&i.type!=="scatter"&&a?.grain.some(u=>u!==i.x&&u!==i.color)&&t.addIssue({code:"custom",message:"Chart must encode every Dataset grain dimension in x/color; use another aggregated binding for totals"})}});ya.innerType().pick({title:!0,bindings:!0,controls:!0,charts:!0,tables:!0,presentation:!0}).partial().strict();const MC=ur(zn([ne().max(4e3),ft().finite(),Lt(),cr()]));we({manifest:ya,expectedVersionId:ne().uuid().nullable(),expectedRevision:ft().int().nonnegative().default(0)}).strict(),we({artifactId:ne().uuid(),versionId:ne().uuid().optional(),draftRevision:ft().int().positive().optional(),controls:MC.default({})}).strict().extend({bindingId:In}).strict();const Wm="live-dashboard__live-dashboard",Km=Ef("target",[we({target:Xe("workbench.view"),viewKey:Xe(Wm)}).strict(),we({target:Xe("assistant.project"),projectId:ne().uuid(),viewKey:Xe(Wm)}).strict()]),zC=we({selectionId:ne().uuid().optional(),parameters:we({contentProvider:ne().optional(),contentId:ne().uuid().optional(),contentTitle:ne().optional(),contentEditor:ne().optional(),artifactId:ne().uuid().optional(),versionId:ne().uuid().optional()}).strict().optional()}).transform((r,t)=>{const o=r.selectionId??r.parameters?.artifactId,i=r.parameters?.versionId;return(r.selectionId&&r.parameters?.artifactId&&r.selectionId!==r.parameters.artifactId||i&&!o)&&t.addIssue({code:Y.custom,message:"DASHBOARD_NAVIGATION_INVALID: provide one Artifact identity and an optional version"}),{artifactId:o,versionId:i}}),Zm=r=>JSON.stringify([r.artifactId??null,r.versionId??null]),Di=we({artifactId:ne(),versionId:ne().nullish(),versionNumber:ft().optional(),title:ne().nullish(),updatedAt:ne().optional(),draftRevision:ft().optional(),isDraft:Lt().optional(),baseVersionId:ne().nullish()}),FC=Di.extend({manifest:ya,dependencies:Um.optional()}),VC=we({meta:we({navigationTarget:Km.optional(),dashboards:nt(Di),sources:nt(we({source:lu,name:ne()})),saved:FC.optional(),versions:nt(Di).optional()})}),UC=["dashboard_create","dashboard_create_html","dashboard_update"],BC=we({dashboard:we({artifactId:ne().uuid(),draftRevision:ft().int().positive(),status:Xe("draft")})});function HC(r){let t=r;if(typeof t=="string")try{t=JSON.parse(t)}catch{return null}const o=BC.safeParse(t);return o.success?o.data.dashboard:null}const WC=we({channel:Xe("xpertai.remote_component"),protocolVersion:Xe(1),type:ne(),visible:Lt().optional(),scopeRevision:ft().optional(),kind:ne().optional(),resourceId:ne().optional(),instanceId:ne().optional(),requestId:ne().optional(),locale:ne().optional(),initialQuery:Zr(),data:Zr(),result:Zr(),message:ne().optional(),event:we({type:ne(),toolName:ne().optional(),data:we({output:Zr(),revision:ft().int().nonnegative().optional()}).optional()}).optional(),theme:we({mode:ne().optional(),density:Fn(["default","compact"]).optional(),tokens:ur(zn([ne(),ft()])).optional()}).optional()});let Xn,Vo,qm,uu=!0;const KC=()=>uu&&!document.hidden,du=new Set,ZC=r=>(du.add(r),()=>{du.delete(r)});function Gm(){for(const r of Sr.values())clearTimeout(r.timer),r.reject(new Error("Context changed"));Sr.clear()}let qC=0;const Sr=new Map;function fu(r,t={}){window.parent.postMessage({channel:"xpertai.remote_component",protocolVersion:1,instanceId:Xn,scopeRevision:Vo,type:r,...t},"*")}function GC(r,t){let o;const i=a=>{if(a.source!==window.parent)return;const l=WC.safeParse(a.data);if(!l.success)return;const u=l.data;if(u.type==="init"){if(Xn&&u.instanceId!==Xn)return;Vo!==u.scopeRevision&&Gm(),Xn=u.instanceId,Vo=u.scopeRevision,qm=u.initialQuery,uu=u.visible??!0,document.documentElement.classList.toggle("dark",u.theme?.mode==="dark");for(const[h,g]of Object.entries(u.theme?.tokens??{})){const v=h.startsWith("--")?h:`--xui-${h.replace(/[._]/g,"-").replace(/[A-Z]/g,y=>`-${y.toLowerCase()}`)}`;document.documentElement.style.setProperty(v,String(g))}f0({density:u.theme?.density}),r(u.locale??"en-US",u.initialQuery);return}if(u.type==="hostEvent"&&Xn&&u.instanceId===Xn&&u.event?.type==="view.context.changed"){const h=u.event.data?.revision;h!==void 0&&h>(Vo??-1)&&(Gm(),Vo=h);return}if(!Xn||u.instanceId!==Xn||u.scopeRevision!==Vo&&u.type!=="error")return;if(u.type==="visibility"){uu=u.visible===!0;return}if(u.type==="editorEvent"&&u.kind==="prepareClose"&&u.resourceId&&u.requestId){fu("closePrepared",{requestId:u.requestId,ready:[...du].every(h=>h(u.resourceId))});return}if(u.type==="hostEvent"&&u.event?.type==="assistant.tool.completed"&&UC.includes(u.event.toolName??"")){const h=HC(u.event.data?.output);h&&`${h.artifactId}:${h.draftRevision}`!==o&&(o=`${h.artifactId}:${h.draftRevision}`,t(h.artifactId));return}if(!u.requestId)return;const d=Sr.get(u.requestId);d&&(Sr.delete(u.requestId),clearTimeout(d.timer),u.type==="error"?d.reject(new Error(u.message??"Request failed")):d.resolve(u.data??u.result))};return window.addEventListener("message",i),fu("ready"),()=>{window.removeEventListener("message",i);for(const a of Sr.values())clearTimeout(a.timer),a.reject(new Error("View closed"));Sr.clear()}}function cn(r,t){if(!Xn)return Promise.reject(new Error("View is not connected"));const o=`dashboard-${++qC}`;return new Promise((i,a)=>{const l=window.setTimeout(()=>{Sr.delete(o),a(new Error("Request timed out"))},27e4);Sr.set(o,{resolve:i,reject:a,timer:l}),fu(r,{requestId:o,...t})})}function QC(r){return cn("invokeClientCommand",{commandKey:"assistant.context.set",payload:{key:"live_dashboard",...r?{context:{schemaVersion:1,...r}}:{clear:!0}}})}async function YC(r,t,o){const i=Km.parse(r),a=we({selectionId:ne().optional(),parameters:we({contentId:ne().uuid().optional(),contentProvider:ne().optional(),contentTitle:ne().optional(),contentEditor:ne().optional()}).optional()}).safeParse(qm);let l={};if(a.success&&a.data.parameters?.contentId)if(a.data.selectionId===t)l={...a.data.parameters};else{const u=await cn("invokeClientCommand",{commandKey:"workbench.content.resolve",payload:{providerKey:"live-dashboard.content",resourceId:t}});l=we({success:Xe(!0),navigation:we({parameters:ur(Zr()).optional()})}).parse(u).navigation.parameters??{}}return cn("invokeClientCommand",{commandKey:"workbench.navigation.open",payload:{...i,selectionId:t,parameters:{...l,...o?{versionId:o}:{}}}})}const Qm={bindingUnavailable:"Some views could not load. Check your data access or retry. Available views are shown below.",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.",autoRefresh:"Auto refresh",off:"Off",seconds30:"Every 30 seconds",minute1:"Every minute"},xa=Im({en:Qm,"zh-Hans":{bindingUnavailable:"部分视图未能加载,请检查数据权限或重试。已成功查询的视图仍可查看。",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:"未找到匹配的看板。",autoRefresh:"自动刷新",off:"关闭",seconds30:"每 30 秒",minute1:"每分钟"},"zh-Hant":{bindingUnavailable:"部分視圖未能載入,請檢查資料權限或重試。成功查詢的視圖仍可查看。",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:"找不到符合的看板。",autoRefresh:"自動重新整理",off:"關閉",seconds30:"每 30 秒",minute1:"每分鐘"}},"en");function Ym(r){return xa.setLocale(r),document.documentElement.lang=xa.getLocale(),Object.fromEntries(Object.keys(Qm).map(t=>[t,xa.t(t)]))}const XC={scripts:["https://cdn.tailwindcss.com","https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com"],styles:["https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com","https://fonts.googleapis.com"],fonts:["https://cdn.jsdelivr.net","https://cdnjs.cloudflare.com","https://unpkg.com","https://fonts.gstatic.com"]};function JC(r,t){return $C(r,{...t,networkPolicy:XC})}const e_=we({success:Xe(!0),data:we({schema:Xe("xpert.analytics.dataset"),datasetId:ne(),fields:nt(we({id:ne()}).passthrough()),rows:nt(ur(zn([ne(),ft(),Lt(),cr()]))),completeness:we({truncated:Lt()}).passthrough(),freshness:we({sourceFetchedAt:ne()}).passthrough(),provenance:we({executionId:ne()}).passthrough()}).passthrough()}),t_=m.forwardRef(function(t,o){const i=m.useRef(null),a=m.useRef(null),l=m.useRef(t);return l.current=t,m.useImperativeHandle(o,()=>({refresh(){a.current?.refresh()}}),[]),m.useEffect(()=>{const u=i.current;if(!u||!t.manifest.presentation)return;const d=t.manifest;let h;try{h=Bm(t.dependencies,d.presentation?.dependencies??[])}catch{l.current.onError("DOCUMENT_DEPENDENCY_INTEGRITY_FAILED"),l.current.onBusy(!1);return}const g=JC(u,{html:t.manifest.presentation.html,dependencies:h,context:{bindingIds:d.bindings.map(v=>v.id),defaults:Object.fromEntries(d.controls.filter(v=>v.defaultValue!==void 0).map(v=>[v.controlId,v.defaultValue??null])),locale:document.documentElement.lang||"en-US",theme:document.documentElement.classList.contains("dark")?"dark":"light"},query:async v=>e_.parse(await cn("executeAction",{actionKey:"query-binding",input:{artifactId:t.artifactId,versionId:t.versionId,draftRevision:t.draftRevision,bindingId:v.bindingId,controls:v.controls}})).data,onBusy:v=>l.current.onBusy(v),onError:v=>l.current.onError(v),onResult:v=>l.current.onResult({partial:v.completeness.truncated,fetchedAt:v.freshness.sourceFetchedAt})});return a.current=g,()=>{g.dispose(),a.current=null}},[t.artifactId,t.versionId,t.draftRevision]),m.createElement("iframe",{ref:i,title:t.manifest.title,sandbox:"allow-scripts",className:"h-full w-full border-0"})});function n_({items:r,value:t,disabled:o,label:i,searchLabel:a,emptyLabel:l,onChange:u}){const[d,h]=m.useState(!1),g=m.useId(),v=r.find(w=>w.artifactId===t),y=v?.title??v?.artifactId??i;return m.createElement(Am,{open:d,onOpenChange:h},m.createElement(Dm,{role:"combobox","aria-label":i,"aria-expanded":d,"aria-controls":d?g:void 0,"aria-haspopup":"listbox",disabled:o,className:We(su({variant:"outline"}),"dashboard-picker justify-between font-normal"),title:y},m.createElement("span",{className:"truncate"},y),m.createElement(Zl,{className:"shrink-0 opacity-50"})),m.createElement(Lm,{align:"start",className:"dashboard-picker-menu p-0"},m.createElement(uC,null,m.createElement(dC,{"aria-label":a,placeholder:a}),m.createElement(fC,{id:g,"aria-label":i},m.createElement(pC,null,l),r.map(w=>m.createElement(hC,{key:w.artifactId,value:w.artifactId,keywords:[w.title??w.artifactId],"data-checked":w.artifactId===t,onSelect:()=>{h(!1),w.artifactId!==t&&u(w.artifactId)}},m.createElement("span",{className:"min-w-0 truncate",title:w.title??w.artifactId},w.title??w.artifactId)))))))}const r_=we({published:we({versionId:ne(),versionNumber:ft(),title:ne().nullish()}).nullable(),issues:nt(we({code:ne(),bindingId:ne().optional()})),link:we({status:ne(),versionMode:Fn(["latest","version"]),versionId:ne().nullish(),url:ne().url().optional()}).nullable()}),o_=we({success:Xe(!0),data:r_});function i_({artifactId:r,versionId:t,versions:o,t:i,onClose:a}){const[l,u]=m.useState(null),[d,h]=m.useState("latest"),[g,v]=m.useState(t??o[0]?.versionId??""),[y,w]=m.useState(!1),[b,S]=m.useState(""),[_,k]=m.useState(!1),T=m.useRef(null),D=m.useRef(0),N=m.useRef(!1);async function I(j){const Q=++D.current;w(!0),S(""),k(!1);try{const ae=o_.parse(await cn("executeAction",{actionKey:j,input:{artifactId:r,...j==="share"?{versionMode:d}:{},...j!=="revoke-share"&&d==="version"&&g?{versionId:g}:{}}})).data;Q===D.current&&(u(ae),N.current||(N.current=!0,ae.link?.status==="active"&&(h(ae.link.versionMode),ae.link.versionId&&v(ae.link.versionId))))}catch{Q===D.current&&S(i.error)}finally{Q===D.current&&w(!1)}}m.useEffect(()=>(I("share-status"),()=>{++D.current}),[r,d,g]);const V=l?.link?.status==="active"?l.link:null,L=V&&V.versionMode===d&&(d==="latest"||V.versionId===g),B=j=>j==="DASHBOARD_PUBLISH_BEFORE_SHARING"?i.publishBeforeShare:j==="WORKSPACE_SCRIPT_PRIVATE_DEPENDENCIES"||j==="DASHBOARD_PRIVATE_DEPENDENCY"?i.privateDependencies:i.sourceUnavailable;return m.createElement(Xk,{open:!0,onOpenChange:j=>{!j&&!y&&a()}},m.createElement(tC,null,m.createElement(nC,null,m.createElement(oC,null,i.share),m.createElement(iC,null,i.shareHint)),m.createElement("div",{className:"grid gap-4 py-2"},m.createElement("label",{className:"grid gap-2 text-sm"},i.shareVersion,m.createElement(jo,{value:d,disabled:y,onValueChange:j=>h(j==="version"?"version":"latest")},m.createElement(zo,{"aria-label":i.shareVersion},m.createElement(Mo,null)),m.createElement(Fo,null,m.createElement(ln,{value:"latest"},i.shareLatest),m.createElement(ln,{value:"version"},i.shareFixed)))),d==="version"&&m.createElement(jo,{value:g,disabled:y,onValueChange:v},m.createElement(zo,{"aria-label":i.version},m.createElement(Mo,{placeholder:i.version})),m.createElement(Fo,null,o.filter(j=>j.versionId).map(j=>m.createElement(ln,{key:j.versionId,value:j.versionId},i.version," ",j.versionNumber)))),l?.published&&m.createElement("p",{className:"text-sm text-muted-foreground"},l.published.title," · ",i.version," ",l.published.versionNumber),!!l?.issues.length&&m.createElement("ul",{className:"grid gap-2 text-sm text-destructive",role:"alert"},l.issues.map((j,Q)=>m.createElement("li",{key:Q},B(j.code),j.bindingId?` (${j.bindingId})`:""))),m.createElement("p",{className:"text-xs text-muted-foreground"},i.sharePermissions),V?.url&&m.createElement("div",{className:"grid gap-2"},m.createElement("label",{htmlFor:"dashboard-share-url",className:"text-sm"},i.shareLink),m.createElement(Tm,{id:"dashboard-share-url",ref:T,readOnly:!0,value:V.url,onFocus:j=>j.target.select()}),m.createElement("div",{className:"flex gap-2"},m.createElement(yt,{variant:"outline",onClick:()=>{T.current?.focus(),T.current?.select(),k(document.execCommand("copy"))}},_?i.copied:i.copyLink),m.createElement(yt,{variant:"outline",onClick:async()=>{if(V.url){S("");try{we({success:Xe(!0)}).parse(await cn("invokeClientCommand",{commandKey:"artifact.presentation.open",payload:{url:V.url}}))}catch{S(i.error)}}}},i.openShared))),b&&m.createElement("p",{role:"alert",className:"text-sm text-destructive"},b)),m.createElement(rC,null,V&&m.createElement(yt,{variant:"outline",disabled:y,onClick:()=>{I("revoke-share")}},i.revokeShare),m.createElement(yt,{variant:"outline",disabled:y,onClick:a},i.cancel),m.createElement(yt,{disabled:y||!l||!!l.issues.length||!!L,onClick:()=>{I("share")}},V?i.updateShare:i.enableShare))))}function s_({children:r,busy:t,t:o}){const[i,a]=m.useState(!1),l=m.useRef(!1),u=m.useRef(null),d=m.useRef(!1),h=m.useRef(),g=()=>{clearTimeout(h.current)},v=b=>{g(),b||(l.current=!1),a(b)},y=b=>{b.pointerType==="mouse"&&(g(),a(!0))},w=b=>{b.pointerType!=="mouse"||l.current||(g(),h.current=setTimeout(()=>{l.current||a(!1)},180))};return m.useEffect(()=>()=>clearTimeout(h.current),[]),m.useEffect(()=>{if(!i)return;let b;const S=()=>{b=setTimeout(()=>{document.activeElement instanceof HTMLIFrameElement&&v(!1)},0)};return window.addEventListener("blur",S),()=>{window.removeEventListener("blur",S),clearTimeout(b)}},[i]),m.createElement(Am,{open:i,onOpenChange:v},m.createElement("div",{className:"viewer-controls-trigger"},m.createElement(Dm,{asChild:!0},m.createElement("button",{ref:u,type:"button",className:We(su({variant:"outline",size:"icon"}),"viewer-controls-button"),"aria-label":o.viewerControls,title:o.viewerControls,onPointerEnter:y,onPointerLeave:w,onClick:b=>{b.preventDefault(),g(),l.current?v(!1):(l.current=!0,a(!0))}},t?m.createElement(ql,{className:"motion-safe:animate-spin","aria-hidden":"true"}):m.createElement(x0,{"aria-hidden":"true"}),t&&m.createElement("span",{role:"status",className:"sr-only"},o.loading)))),m.createElement(Lm,{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:y,onPointerLeave:w,onPointerDownCapture:()=>{l.current=!0},onFocusCapture:()=>{l.current=!0},onOpenAutoFocus:b=>{l.current||b.preventDefault()},onEscapeKeyDown:()=>{d.current=!0},onCloseAutoFocus:b=>{b.preventDefault(),d.current&&u.current?.focus({preventScroll:!0}),d.current=!1}},r,m.createElement(yt,{variant:"ghost",size:"icon",className:"viewer-controls-close","aria-label":o.hideViewerControls,title:o.hideViewerControls,onClick:()=>{d.current=!0,v(!1)}},m.createElement(Xf,{"aria-hidden":"true"}))))}jC(document);const jt=window.__DASHBOARD_READ_ONLY__===!0,pu=we({success:Xe(!0),data:Zr()}),a_=we({payload:Zr(),failures:nt(we({bindingId:ne(),datasetId:ne(),reason:Xe("unavailable")})).default([]),datasets:nt(we({completeness:we({truncated:Lt()}),freshness:we({sourceFetchedAt:ne()})}))});function l_(){const[r,t]=m.useState(()=>Ym("en-US")),[o,i]=m.useState([]),[a,l]=m.useState([]),[u,d]=m.useState(null),[h,g]=m.useState([]),[v,y]=m.useState({}),[w,b]=m.useState(""),[S,_]=m.useState(!0),[k,T]=m.useState(""),[D,N]=m.useState(""),[I,V]=m.useState("off"),[L,B]=m.useState(null),[j,Q]=m.useState(null),[ae,Ce]=m.useState(!1),[ce,le]=m.useState([]),[fe,ke]=m.useState(!1),re=m.useRef(0),se=m.useRef(0),U=m.useRef(),G=m.useRef(null),z=m.useRef({dirty:!1,resourceId:""}),P=L!==null&&L!==JSON.stringify(u?.manifest,null,2);z.current={dirty:P||S&&L!==null,resourceId:u?.artifactId??""};const E=oe=>{u&&cn("invokeClientCommand",{commandKey:"workbench.content.status",payload:{resourceId:u.artifactId,title:u.title,dirty:oe}}).catch(()=>{})};m.useEffect(()=>{E(P||S&&L!==null)},[P,S,L===null,u?.artifactId,u?.title]),m.useEffect(()=>ZC(oe=>oe!==z.current.resourceId||!z.current.dirty),[]);function W(){b(""),le([]),d(null),B(null),g([]),ke(!1),Q(null)}async function X(oe,Ie){const qe=re.current,Ke=VC.parse(await cn("requestData",{query:{parameters:oe?{artifactId:oe,...Ie?{versionId:Ie}:{}}:{}}})).meta;return qe===re.current&&(i(Ke.dashboards),l(Ke.sources)),Ke}async function H(oe,Ie){const qe=++re.current;if(!oe.versionId&&!oe.draftRevision)throw new Error("Missing saved definition");if(b(""),le([]),N(""),Ce(!1),!oe.manifest.bindings.length)return;const Ke=a_.parse(pu.parse(await cn("executeAction",{actionKey:"query",input:{artifactId:oe.artifactId,versionId:oe.versionId??void 0,...oe.isDraft?{draftRevision:oe.draftRevision}:{},controls:Ie}})).data);qe===re.current&&(le(Ke.failures.map(Ye=>Ye.datasetId)),b(Ke.datasets.length?u_(Ke.payload):""),Ce(Ke.datasets.some(Ye=>Ye.completeness.truncated)),N(Ke.datasets.map(Ye=>Ye.freshness.sourceFetchedAt).sort()[0]??""))}async function J(oe,Ie,qe=!0){const Ke=++re.current;W();const Ye=await X(oe,Ie),Nt=Ye.saved;if(Ke!==re.current)return;if(!Nt||!Nt.versionId&&!Nt.draftRevision)throw new Error("Dashboard is unavailable");const br=Object.fromEntries(Nt.manifest.controls.filter(un=>un.defaultValue!==void 0).map(un=>[un.controlId,un.defaultValue??null]));d(Nt),g(Ye.versions??[]),y(br),N(""),Ce(!1),!(!jt&&qe&&(U.current=Zm({artifactId:oe,versionId:Ie}),await YC(Ye.navigationTarget,oe,Ie),Ke!==re.current))&&(jt||await QC({artifactId:Nt.artifactId,versionId:Nt.versionId??void 0,draftRevision:Nt.draftRevision}),Ke===re.current&&!Nt.manifest.presentation&&Nt.manifest.bindings.length&&await H(Nt,br))}async function ue(oe){const Ie=++se.current;_(!0),T("");try{await oe()}catch(qe){Ie===se.current&&T(qe instanceof Error?qe.message:r.error)}finally{Ie===se.current&&_(!1)}}const ee=m.useRef({saved:u,controls:v,busy:S,editor:L});ee.current={saved:u,controls:v,busy:S,editor:L},m.useEffect(()=>{if(I==="off")return;let oe=!1,Ie=!1;const qe=async()=>{const Ye=ee.current;if(!(oe||!KC()||Ie||Ye.busy||Ye.editor!==null||!Ye.saved?.manifest.bindings.length)){Ie=!0;try{Ye.saved.manifest.presentation?G.current?.refresh():await H(Ye.saved,Ye.controls)}catch{oe||T(r.error)}finally{Ie=!1}}},Ke=window.setInterval(()=>{qe()},Number(I)*1e3);return document.addEventListener("visibilitychange",qe),()=>{oe=!0,window.clearInterval(Ke),document.removeEventListener("visibilitychange",qe)}},[I,u?.artifactId,r.error]);async function ie(){const oe=++re.current;W();const Ie=await X();if(oe!==re.current)return;const qe=[...Ie.dashboards].sort((Ke,Ye)=>(Ye.updatedAt??"").localeCompare(Ke.updatedAt??""))[0];qe&&await J(qe.artifactId,void 0,!1)}m.useEffect(()=>GC((oe,Ie)=>{t(Ym(oe));const qe=zC.safeParse(Ie??{});if(!qe.success){++re.current,U.current=void 0,W(),ue(async()=>{throw new Error("DASHBOARD_NAVIGATION_INVALID")});return}const Ke=qe.data,Ye=Zm(Ke);Ye!==U.current&&(U.current=Ye,ue(()=>Ke.artifactId?J(Ke.artifactId,Ke.versionId,!1):ie()))},oe=>{ue(()=>J(oe))}),[]);async function Ae(){const oe=ya.parse(JSON.parse(L??"")),Ie=u?.manifest.id===oe.id?u.versionId??null:null,qe=Di.parse(pu.parse(await cn("executeAction",{actionKey:"save",input:{manifest:oe,expectedVersionId:Ie,expectedRevision:u?.manifest.id===oe.id?u.draftRevision??0:0}})).data);await J(qe.artifactId)}async function $e(){if(!j?.draftRevision)return;const oe=Di.parse(pu.parse(await cn("executeAction",{actionKey:"publish",input:{artifactId:j.artifactId,expectedRevision:j.draftRevision,expectedCurrentVersionId:j.baseVersionId??j.versionId??null,confirmed:!0}}).catch(Ie=>{throw Ie instanceof Error&&Ie.message==="DASHBOARD_PUBLISH_SHARE_BLOCKED"?(Q(null),new Error(r.publishShareBlocked)):Ie})).data);Q(null),await J(oe.artifactId,oe.versionId??void 0)}const Me=m.createElement("header",{className:"dashboard-toolbar border-b"},m.createElement("h1",{className:"toolbar-title text-base font-semibold"},jt?u?.title??r.title:r.title),!jt&&m.createElement(n_,{items:o,value:u?.artifactId??"",disabled:S||L!==null,label:r.select,searchLabel:r.search,emptyLabel:r.noResults,onChange:oe=>{ue(()=>J(oe))}}),jt&&u&&m.createElement("span",{className:"text-xs text-muted-foreground"},r.teamReadOnly," · ",r.version," ",u.versionNumber),m.createElement("span",{className:"toolbar-loading text-muted-foreground",role:"status",title:S?r.loading:void 0},S&&m.createElement(m.Fragment,null,m.createElement(ql,{className:"size-4 motion-safe:animate-spin","aria-hidden":"true"}),m.createElement("span",{className:"sr-only"},r.loading))),!jt&&u&&m.createElement(jo,{value:u.isDraft?"draft":u.versionId??"draft",onValueChange:oe=>{ue(()=>J(u.artifactId,oe==="draft"?void 0:oe))},disabled:S||L!==null},m.createElement(zo,{className:"toolbar-version","aria-label":r.history},m.createElement(Mo,{placeholder:r.history})),m.createElement(Fo,null,m.createElement(ln,{value:"draft"},r.draft,u.isDraft?` · r${u.draftRevision}`:""),h.filter(oe=>oe.versionId).map(oe=>m.createElement(ln,{key:oe.versionId,value:oe.versionId},r.version," ",oe.versionNumber)))),u&&D&&m.createElement("time",{className:"toolbar-updated text-xs text-muted-foreground",dateTime:D,title:`${r.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"},!jt&&u?.isDraft&&m.createElement(yt,{disabled:S||L!==null||!u.manifest.bindings.length,onClick:()=>Q(u),"aria-label":r.publish,title:r.publish},m.createElement(Jf,null),m.createElement("span",null,r.publish)),!jt&&u&&m.createElement(yt,{variant:"outline",disabled:S||L!==null,"aria-label":r.edit,title:r.edit,onClick:()=>{ue(async()=>{const oe=await X(u.artifactId);if(!oe.saved)throw new Error(r.error);d(oe.saved),g(oe.versions??[]),B(JSON.stringify(oe.saved.manifest,null,2))})}},m.createElement(w0,null),m.createElement("span",null,r.edit)),!jt&&m.createElement(yt,{variant:"outline",disabled:S||L!==null,"aria-label":r.import,title:r.import,onClick:()=>B("")},m.createElement(S0,null),m.createElement("span",null,r.import)),!jt&&u&&m.createElement(yt,{variant:"outline",onClick:()=>ke(!0),disabled:S,"aria-label":r.share,title:r.share},m.createElement(k0,null),m.createElement("span",null,r.share)),m.createElement(jo,{value:I,onValueChange:V,disabled:!u||L!==null},m.createElement(zo,{"aria-label":r.autoRefresh},m.createElement(Mo,null)),m.createElement(Fo,null,m.createElement(ln,{value:"off"},r.off),m.createElement(ln,{value:"30"},r.seconds30),m.createElement(ln,{value:"60"},r.minute1))),m.createElement(yt,{disabled:S||L!==null,"aria-label":r.refresh,title:r.refresh,onClick:()=>{u?.manifest.presentation?(T(""),G.current?.refresh()):ue(async()=>{u?(await X(),await H(u,v)):await ie()})}},m.createElement(ql,null),m.createElement("span",null,r.refresh)))),Ue=u&&!u.manifest.presentation&&!!u.manifest.controls.length&&m.createElement("section",{className:"flex flex-wrap items-end gap-3 border-b px-4 py-3"},u.manifest.controls.map(oe=>m.createElement(c_,{key:oe.controlId,control:oe,value:v[oe.controlId]??null,disabled:S,onChange:Ie=>y(qe=>({...qe,[oe.controlId]:Ie}))})),m.createElement(yt,{type:"button",variant:"outline",disabled:S,onClick:()=>{ue(()=>H(u,v))}},r.apply));return m.createElement("main",{className:"dashboard-shell","data-read-only":jt||void 0},jt?m.createElement(s_,{busy:S,t:r},Me,Ue):Me,!jt&&fe&&u&&m.createElement(i_,{artifactId:u.artifactId,versionId:u.versionId??void 0,versions:h,t:r,onClose:()=>ke(!1)}),m.createElement(Hk,{open:!!j,onOpenChange:oe=>{!oe&&!S&&Q(null)}},m.createElement(Zk,null,m.createElement(Gk,null,r.publish),m.createElement(Qk,null,r.confirmPublish," ",j?.manifest.title," · r",j?.draftRevision),m.createElement(qk,null,m.createElement(Yk,{disabled:S},r.cancel),m.createElement(yt,{disabled:S,onClick:()=>{ue($e)}},r.confirm)))),k&&m.createElement("div",{role:"alert",className:"border-b px-4 py-3 text-destructive"},k),L!==null?m.createElement("section",{className:"editor-panel p-4"},m.createElement("label",{className:"text-sm font-medium",htmlFor:"definition"},r.definition),m.createElement(sC,{id:"definition",className:"min-h-0 flex-1 font-mono text-xs",value:L,onChange:oe=>{z.current.dirty=!0,E(!0),B(oe.target.value)},disabled:S}),m.createElement("details",{className:"text-xs"},m.createElement("summary",null,r.sources),m.createElement("pre",{className:"max-h-32 overflow-auto"},JSON.stringify(a,null,2))),m.createElement("div",{className:"flex justify-end gap-2"},m.createElement(yt,{variant:"outline",onClick:()=>B(null),disabled:S},r.cancel),m.createElement(yt,{onClick:()=>{ue(Ae)},disabled:S||!L.trim()},m.createElement(Jf,null),r.save))):m.createElement(m.Fragment,null,!jt&&Ue,ce.length>0&&m.createElement("div",{role:"alert",className:"px-4 py-2 text-sm"},m.createElement("p",null,r.bindingUnavailable),m.createElement("ul",null,ce.map(oe=>m.createElement("li",{key:oe},[...u?.manifest.charts??[],...u?.manifest.tables??[]].filter(Ie=>Ie.datasetId===oe).map(Ie=>Ie.title).join(" · ")||oe)))),ae&&m.createElement("p",{role:"status",className:"px-4 py-2 text-sm"},r.partial),m.createElement("section",{className:"canvas-panel","aria-busy":S},!S&&!w&&!u?.manifest.presentation&&!k&&!ce.length&&m.createElement("p",{className:"p-6 text-muted-foreground"},r.empty),u?.manifest.presentation&&m.createElement(t_,{ref:G,artifactId:u.artifactId,versionId:u.versionId??void 0,draftRevision:u.isDraft?u.draftRevision:void 0,manifest:u.manifest,dependencies:u.dependencies??[],onBusy:_,onError:T,onResult:oe=>{T(""),Ce(oe.partial),N(oe.fetchedAt)}}),w&&m.createElement("iframe",{title:u?.manifest.title??r.title,sandbox:"allow-scripts",srcDoc:w,className:"h-full w-full border-0"}))))}function c_({control:r,value:t,onChange:o,disabled:i}){return m.createElement("div",{className:"grid gap-1.5"},m.createElement("label",{htmlFor:r.controlId,className:"text-xs text-muted-foreground"},r.label),r.allowedValues?m.createElement(jo,{value:JSON.stringify(t),onValueChange:a=>o(zn([ne(),ft(),Lt(),cr()]).parse(JSON.parse(a))),disabled:i},m.createElement(zo,{id:r.controlId,className:"w-44"},m.createElement(Mo,null)),m.createElement(Fo,null,r.allowedValues.map(a=>m.createElement(ln,{key:JSON.stringify(a),value:JSON.stringify(a)},String(a??"—"))))):r.type==="boolean"?m.createElement(jo,{value:String(t),onValueChange:a=>o(a==="true"),disabled:i},m.createElement(zo,{id:r.controlId,className:"w-44"},m.createElement(Mo,null)),m.createElement(Fo,null,m.createElement(ln,{value:"true"},"true"),m.createElement(ln,{value:"false"},"false"))):m.createElement(Tm,{id:r.controlId,className:"w-44",disabled:i,type:r.type==="date"?"date":r.type==="number"?"number":"text",value:t===null?"":String(t),onChange:a=>o(a.target.value===""?null:r.type==="number"?Number(a.target.value):a.target.value)}))}function u_(r){const t=i=>JSON.stringify(i).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:${t(r)},toolResponseMetadata:${t(r)},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}`)}ey.createRoot(document.getElementById("root")).render(m.createElement(jk,null))})();
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,i=>`${i}${o}`)}Gy.createRoot(document.getElementById("root")).render(m.createElement(Uk,{i18n:xa},m.createElement(l_,null)))})();