@xpert-ai/plugin-spaces 0.0.0-stage → 0.3.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.
- package/README.md +25 -2
- package/dist/access.d.ts +38 -0
- package/dist/access.js +96 -0
- package/dist/ai.d.ts +53 -0
- package/dist/ai.js +143 -0
- package/dist/artifacts.d.ts +9 -0
- package/dist/artifacts.js +40 -0
- package/dist/capability.d.ts +22 -0
- package/dist/capability.js +63 -0
- package/dist/catalog.d.ts +196 -0
- package/dist/catalog.js +140 -0
- package/dist/content-backup.d.ts +7 -0
- package/dist/content-backup.js +35 -0
- package/dist/content-coverage.d.ts +9 -0
- package/dist/content-coverage.js +12 -0
- package/dist/content-knowledge.d.ts +40 -0
- package/dist/content-knowledge.js +168 -0
- package/dist/content.d.ts +19 -0
- package/dist/content.js +47 -0
- package/dist/documents.d.ts +38 -0
- package/dist/documents.js +177 -0
- package/dist/domain.d.ts +95 -0
- package/dist/domain.js +23 -0
- package/dist/editors.d.ts +16 -0
- package/dist/editors.js +63 -0
- package/dist/entities.d.ts +91 -0
- package/dist/entities.js +318 -0
- package/dist/files.d.ts +79 -0
- package/dist/files.js +228 -0
- package/dist/imports.d.ts +83 -0
- package/dist/imports.js +139 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +51 -0
- package/dist/item-catalog.d.ts +13 -0
- package/dist/item-catalog.js +71 -0
- package/dist/knowledge.d.ts +57 -0
- package/dist/knowledge.js +172 -0
- package/dist/middleware.d.ts +17 -0
- package/dist/middleware.js +82 -0
- package/dist/pages.d.ts +38 -0
- package/dist/pages.js +41 -0
- package/dist/proposal-id.d.ts +3 -0
- package/dist/proposal-id.js +11 -0
- package/dist/references.d.ts +22 -0
- package/dist/references.js +119 -0
- package/dist/remote/app.css +4 -0
- package/dist/remote/app.js +167 -0
- package/dist/resource-folders.d.ts +7 -0
- package/dist/resource-folders.js +21 -0
- package/dist/resource-provider.d.ts +39 -0
- package/dist/resource-provider.js +160 -0
- package/dist/spaces.d.ts +95 -0
- package/dist/spaces.js +233 -0
- package/dist/subpages.d.ts +24 -0
- package/dist/subpages.js +118 -0
- package/dist/view.d.ts +99 -0
- package/dist/view.js +259 -0
- package/docs/.mintignore +7 -0
- package/docs/AGENTS.md +3 -0
- package/docs/LICENSE +21 -0
- package/docs/README.md +3 -0
- package/docs/architecture.mdx +49 -0
- package/docs/collaboration.mdx +50 -0
- package/docs/docs.json +39 -0
- package/docs/feishu-document-import.mdx +118 -0
- package/docs/index.mdx +12 -0
- package/docs/insert-menu-plan.mdx +74 -0
- package/docs/math-subpages.mdx +62 -0
- package/docs/page-resources-and-connectors.mdx +103 -0
- package/docs/quickstart.mdx +17 -0
- package/migrations/20261023-document-import-origin.sql +4 -0
- package/migrations/20261023-subpages.sql +6 -0
- package/package.json +79 -4
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";(()=>{var w0=Object.create;var _f=Object.defineProperty;var C0=Object.getOwnPropertyDescriptor;var S0=Object.getOwnPropertyNames;var L0=Object.getPrototypeOf,I0=Object.prototype.hasOwnProperty;var Xr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(a){throw t=0,a}},_o=(e,t)=>{for(var a in t)_f(e,a,{get:t[a],enumerable:!0})},b0=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of S0(t))!I0.call(e,o)&&o!==a&&_f(e,o,{get:()=>t[o],enumerable:!(r=C0(t,o))||r.enumerable});return e};var F=(e,t,a)=>(a=e!=null?w0(L0(e)):{},b0(t||!e||!e.__esModule?_f(a,"default",{value:e,enumerable:!0}):a,e));var Jv=Xr(De=>{"use strict";var il=Symbol.for("react.element"),gR=Symbol.for("react.portal"),vR=Symbol.for("react.fragment"),xR=Symbol.for("react.strict_mode"),yR=Symbol.for("react.profiler"),wR=Symbol.for("react.provider"),CR=Symbol.for("react.context"),SR=Symbol.for("react.forward_ref"),LR=Symbol.for("react.suspense"),IR=Symbol.for("react.memo"),bR=Symbol.for("react.lazy"),jv=Symbol.iterator;function kR(e){return e===null||typeof e!="object"?null:(e=jv&&e[jv]||e["@@iterator"],typeof e=="function"?e:null)}var Wv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gv=Object.assign,$v={};function As(e,t,a){this.props=e,this.context=t,this.refs=$v,this.updater=a||Wv}As.prototype.isReactComponent={};As.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};As.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kv(){}Kv.prototype=As.prototype;function zf(e,t,a){this.props=e,this.context=t,this.refs=$v,this.updater=a||Wv}var Bf=zf.prototype=new Kv;Bf.constructor=zf;Gv(Bf,As.prototype);Bf.isPureReactComponent=!0;var Vv=Array.isArray,Xv=Object.prototype.hasOwnProperty,Uf={current:null},Zv={key:!0,ref:!0,__self:!0,__source:!0};function Qv(e,t,a){var r,o={},n=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(n=""+t.key),t)Xv.call(t,r)&&!Zv.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:il,type:e,key:n,ref:s,props:o,_owner:Uf.current}}function RR(e,t){return{$$typeof:il,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hf(e){return typeof e=="object"&&e!==null&&e.$$typeof===il}function PR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var qv=/\/+/g;function Ff(e,t){return typeof e=="object"&&e!==null&&e.key!=null?PR(""+e.key):t.toString(36)}function Hu(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case il:case gR:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Ff(s,0):r,Vv(o)?(a="",e!=null&&(a=e.replace(qv,"$&/")+"/"),Hu(o,t,a,"",function(u){return u})):o!=null&&(Hf(o)&&(o=RR(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(qv,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Vv(e))for(var i=0;i<e.length;i++){n=e[i];var l=r+Ff(n,i);s+=Hu(n,t,a,l,o)}else if(l=kR(e),typeof l=="function")for(e=l.call(e),i=0;!(n=e.next()).done;)n=n.value,l=r+Ff(n,i++),s+=Hu(n,t,a,l,o);else if(n==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Uu(e,t,a){if(e==null)return e;var r=[],o=0;return Hu(e,r,"","",function(n){return t.call(a,n,o++)}),r}function DR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oa={current:null},ju={transition:null},TR={ReactCurrentDispatcher:oa,ReactCurrentBatchConfig:ju,ReactCurrentOwner:Uf};function Yv(){throw Error("act(...) is not supported in production builds of React.")}De.Children={map:Uu,forEach:function(e,t,a){Uu(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Uu(e,function(){t++}),t},toArray:function(e){return Uu(e,function(t){return t})||[]},only:function(e){if(!Hf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};De.Component=As;De.Fragment=vR;De.Profiler=yR;De.PureComponent=zf;De.StrictMode=xR;De.Suspense=LR;De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TR;De.act=Yv;De.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Gv({},e.props),o=e.key,n=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,s=Uf.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Xv.call(t,l)&&!Zv.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=a;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:il,type:e.type,key:o,ref:n,props:r,_owner:s}};De.createContext=function(e){return e={$$typeof:CR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wR,_context:e},e.Consumer=e};De.createElement=Qv;De.createFactory=function(e){var t=Qv.bind(null,e);return t.type=e,t};De.createRef=function(){return{current:null}};De.forwardRef=function(e){return{$$typeof:SR,render:e}};De.isValidElement=Hf;De.lazy=function(e){return{$$typeof:bR,_payload:{_status:-1,_result:e},_init:DR}};De.memo=function(e,t){return{$$typeof:IR,type:e,compare:t===void 0?null:t}};De.startTransition=function(e){var t=ju.transition;ju.transition={};try{e()}finally{ju.transition=t}};De.unstable_act=Yv;De.useCallback=function(e,t){return oa.current.useCallback(e,t)};De.useContext=function(e){return oa.current.useContext(e)};De.useDebugValue=function(){};De.useDeferredValue=function(e){return oa.current.useDeferredValue(e)};De.useEffect=function(e,t){return oa.current.useEffect(e,t)};De.useId=function(){return oa.current.useId()};De.useImperativeHandle=function(e,t,a){return oa.current.useImperativeHandle(e,t,a)};De.useInsertionEffect=function(e,t){return oa.current.useInsertionEffect(e,t)};De.useLayoutEffect=function(e,t){return oa.current.useLayoutEffect(e,t)};De.useMemo=function(e,t){return oa.current.useMemo(e,t)};De.useReducer=function(e,t,a){return oa.current.useReducer(e,t,a)};De.useRef=function(e){return oa.current.useRef(e)};De.useState=function(e){return oa.current.useState(e)};De.useSyncExternalStore=function(e,t,a){return oa.current.useSyncExternalStore(e,t,a)};De.useTransition=function(){return oa.current.useTransition()};De.version="18.3.1"});var ee=Xr((GN,ex)=>{"use strict";ex.exports=Jv()});var ix=Xr(Gu=>{"use strict";var ZR=ee(),QR=Symbol.for("react.element"),YR=Symbol.for("react.fragment"),JR=Object.prototype.hasOwnProperty,eP=ZR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tP={key:!0,ref:!0,__self:!0,__source:!0};function sx(e,t,a){var r,o={},n=null,s=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)JR.call(t,r)&&!tP.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:QR,type:e,key:n,ref:s,props:o,_owner:eP.current}}Gu.Fragment=YR;Gu.jsx=sx;Gu.jsxs=sx});var fe=Xr((pF,lx)=>{"use strict";lx.exports=ix()});var xx=Xr(Ke=>{"use strict";function Gf(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<$u(o,t))e[r]=t,e[a]=o,a=r;else break e}}function ar(e){return e.length===0?null:e[0]}function Xu(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var s=2*(r+1)-1,i=e[s],l=s+1,u=e[l];if(0>$u(i,a))l<o&&0>$u(u,i)?(e[r]=u,e[l]=a,r=l):(e[r]=i,e[s]=a,r=s);else if(l<o&&0>$u(u,a))e[r]=u,e[l]=a,r=l;else break e}}return t}function $u(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ux=performance,Ke.unstable_now=function(){return ux.now()}):(Vf=Date,dx=Vf.now(),Ke.unstable_now=function(){return Vf.now()-dx});var ux,Vf,dx,Pr=[],No=[],aP=1,Ua=null,Gt=3,Zu=!1,In=!1,dl=!1,px=typeof setTimeout=="function"?setTimeout:null,mx=typeof clearTimeout=="function"?clearTimeout:null,cx=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $f(e){for(var t=ar(No);t!==null;){if(t.callback===null)Xu(No);else if(t.startTime<=e)Xu(No),t.sortIndex=t.expirationTime,Gf(Pr,t);else break;t=ar(No)}}function Kf(e){if(dl=!1,$f(e),!In)if(ar(Pr)!==null)In=!0,Zf(Xf);else{var t=ar(No);t!==null&&Qf(Kf,t.startTime-e)}}function Xf(e,t){In=!1,dl&&(dl=!1,mx(cl),cl=-1),Zu=!0;var a=Gt;try{for($f(t),Ua=ar(Pr);Ua!==null&&(!(Ua.expirationTime>t)||e&&!vx());){var r=Ua.callback;if(typeof r=="function"){Ua.callback=null,Gt=Ua.priorityLevel;var o=r(Ua.expirationTime<=t);t=Ke.unstable_now(),typeof o=="function"?Ua.callback=o:Ua===ar(Pr)&&Xu(Pr),$f(t)}else Xu(Pr);Ua=ar(Pr)}if(Ua!==null)var n=!0;else{var s=ar(No);s!==null&&Qf(Kf,s.startTime-t),n=!1}return n}finally{Ua=null,Gt=a,Zu=!1}}var Qu=!1,Ku=null,cl=-1,hx=5,gx=-1;function vx(){return!(Ke.unstable_now()-gx<hx)}function qf(){if(Ku!==null){var e=Ke.unstable_now();gx=e;var t=!0;try{t=Ku(!0,e)}finally{t?ul():(Qu=!1,Ku=null)}}else Qu=!1}var ul;typeof cx=="function"?ul=function(){cx(qf)}:typeof MessageChannel<"u"?(Wf=new MessageChannel,fx=Wf.port2,Wf.port1.onmessage=qf,ul=function(){fx.postMessage(null)}):ul=function(){px(qf,0)};var Wf,fx;function Zf(e){Ku=e,Qu||(Qu=!0,ul())}function Qf(e,t){cl=px(function(){e(Ke.unstable_now())},t)}Ke.unstable_IdlePriority=5;Ke.unstable_ImmediatePriority=1;Ke.unstable_LowPriority=4;Ke.unstable_NormalPriority=3;Ke.unstable_Profiling=null;Ke.unstable_UserBlockingPriority=2;Ke.unstable_cancelCallback=function(e){e.callback=null};Ke.unstable_continueExecution=function(){In||Zu||(In=!0,Zf(Xf))};Ke.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):hx=0<e?Math.floor(1e3/e):5};Ke.unstable_getCurrentPriorityLevel=function(){return Gt};Ke.unstable_getFirstCallbackNode=function(){return ar(Pr)};Ke.unstable_next=function(e){switch(Gt){case 1:case 2:case 3:var t=3;break;default:t=Gt}var a=Gt;Gt=t;try{return e()}finally{Gt=a}};Ke.unstable_pauseExecution=function(){};Ke.unstable_requestPaint=function(){};Ke.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Gt;Gt=e;try{return t()}finally{Gt=a}};Ke.unstable_scheduleCallback=function(e,t,a){var r=Ke.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:aP++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,Gf(No,e),ar(Pr)===null&&e===ar(No)&&(dl?(mx(cl),cl=-1):dl=!0,Qf(Kf,a-r))):(e.sortIndex=o,Gf(Pr,e),In||Zu||(In=!0,Zf(Xf))),e};Ke.unstable_shouldYield=vx;Ke.unstable_wrapCallback=function(e){var t=Gt;return function(){var a=Gt;Gt=t;try{return e.apply(this,arguments)}finally{Gt=a}}}});var wx=Xr((hF,yx)=>{"use strict";yx.exports=xx()});var IC=Xr(Fa=>{"use strict";var rP=ee(),Oa=wx();function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);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 Ry=new Set,Al={};function Fn(e,t){si(e,t),si(e+"Capture",t)}function si(e,t){for(Al[e]=t,e=0;e<t.length;e++)Ry.add(t[e])}var uo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wp=Object.prototype.hasOwnProperty,oP=/^[: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]*$/,Cx={},Sx={};function nP(e){return wp.call(Sx,e)?!0:wp.call(Cx,e)?!1:oP.test(e)?Sx[e]=!0:(Cx[e]=!0,!1)}function sP(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function iP(e,t,a,r){if(t===null||typeof t>"u"||sP(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.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 ia(e,t,a,r,o,n,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=s}var Bt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Bt[e]=new ia(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Bt[t]=new ia(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bt[e]=new ia(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Bt[e]=new ia(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){Bt[e]=new ia(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Bt[e]=new ia(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Bt[e]=new ia(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Bt[e]=new ia(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Bt[e]=new ia(e,5,!1,e.toLowerCase(),null,!1,!1)});var fm=/[\-:]([a-z])/g;function pm(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(fm,pm);Bt[t]=new ia(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(fm,pm);Bt[t]=new ia(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(fm,pm);Bt[t]=new ia(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Bt[e]=new ia(e,1,!1,e.toLowerCase(),null,!1,!1)});Bt.xlinkHref=new ia("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Bt[e]=new ia(e,1,!1,e.toLowerCase(),null,!0,!0)});function mm(e,t,a,r){var o=Bt.hasOwnProperty(t)?Bt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(iP(t,a,o,r)&&(a=null),r||o===null?nP(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var mo=rP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yu=Symbol.for("react.element"),js=Symbol.for("react.portal"),Vs=Symbol.for("react.fragment"),hm=Symbol.for("react.strict_mode"),Cp=Symbol.for("react.profiler"),Py=Symbol.for("react.provider"),Dy=Symbol.for("react.context"),gm=Symbol.for("react.forward_ref"),Sp=Symbol.for("react.suspense"),Lp=Symbol.for("react.suspense_list"),vm=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),Ty=Symbol.for("react.offscreen"),Lx=Symbol.iterator;function fl(e){return e===null||typeof e!="object"?null:(e=Lx&&e[Lx]||e["@@iterator"],typeof e=="function"?e:null)}var rt=Object.assign,Yf;function wl(e){if(Yf===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Yf=t&&t[1]||""}return`
|
|
2
|
+
`+Yf+e}var Jf=!1;function ep(e,t){if(!e||Jf)return"";Jf=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
3
|
+
`),n=r.stack.split(`
|
|
4
|
+
`),s=o.length-1,i=n.length-1;1<=s&&0<=i&&o[s]!==n[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==n[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==n[i]){var l=`
|
|
5
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{Jf=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?wl(e):""}function lP(e){switch(e.tag){case 5:return wl(e.type);case 16:return wl("Lazy");case 13:return wl("Suspense");case 19:return wl("SuspenseList");case 0:case 2:case 15:return e=ep(e.type,!1),e;case 11:return e=ep(e.type.render,!1),e;case 1:return e=ep(e.type,!0),e;default:return""}}function Ip(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 Vs:return"Fragment";case js:return"Portal";case Cp:return"Profiler";case hm:return"StrictMode";case Sp:return"Suspense";case Lp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dy:return(e.displayName||"Context")+".Consumer";case Py:return(e._context.displayName||"Context")+".Provider";case gm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vm:return t=e.displayName||null,t!==null?t:Ip(e.type)||"Memo";case zo:t=e._payload,e=e._init;try{return Ip(e(t))}catch{}}return null}function uP(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 Ip(t);case 8:return t===hm?"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 Yo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function My(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dP(e){var t=My(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,n=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ju(e){e._valueTracker||(e._valueTracker=dP(e))}function _y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=My(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Rd(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 bp(e,t){var a=t.checked;return rt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function Ix(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=Yo(t.value!=null?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ay(e,t){t=t.checked,t!=null&&mm(e,"checked",t,!1)}function kp(e,t){Ay(e,t);var a=Yo(t.value),r=t.type;if(a!=null)r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rp(e,t.type,a):t.hasOwnProperty("defaultValue")&&Rp(e,t.type,Yo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bx(e,t,a){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function Rp(e,t,a){(t!=="number"||Rd(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var Cl=Array.isArray;function ei(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Yo(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Pp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return rt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kx(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(U(92));if(Cl(a)){if(1<a.length)throw Error(U(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:Yo(a)}}function Ey(e,t){var a=Yo(t.value),r=Yo(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),r!=null&&(e.defaultValue=""+r)}function Rx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Oy(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 Dp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Oy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ed,Ny=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,a,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ed=ed||document.createElement("div"),ed.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ed.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function El(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Il={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},cP=["Webkit","ms","Moz","O"];Object.keys(Il).forEach(function(e){cP.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Il[t]=Il[e]})});function Fy(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||Il.hasOwnProperty(e)&&Il[e]?(""+t).trim():t+"px"}function zy(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=Fy(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var fP=rt({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 Tp(e,t){if(t){if(fP[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Mp(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 _p=null;function xm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ap=null,ti=null,ai=null;function Px(e){if(e=Yl(e)){if(typeof Ap!="function")throw Error(U(280));var t=e.stateNode;t&&(t=tc(t),Ap(e.stateNode,e.type,t))}}function By(e){ti?ai?ai.push(e):ai=[e]:ti=e}function Uy(){if(ti){var e=ti,t=ai;if(ai=ti=null,Px(e),t)for(e=0;e<t.length;e++)Px(t[e])}}function Hy(e,t){return e(t)}function jy(){}var tp=!1;function Vy(e,t,a){if(tp)return e(t,a);tp=!0;try{return Hy(e,t,a)}finally{tp=!1,(ti!==null||ai!==null)&&(jy(),Uy())}}function Ol(e,t){var a=e.stateNode;if(a===null)return null;var r=tc(a);if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(U(231,t,typeof a));return a}var Ep=!1;if(uo)try{Us={},Object.defineProperty(Us,"passive",{get:function(){Ep=!0}}),window.addEventListener("test",Us,Us),window.removeEventListener("test",Us,Us)}catch{Ep=!1}var Us;function pP(e,t,a,r,o,n,s,i,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(a,u)}catch(c){this.onError(c)}}var bl=!1,Pd=null,Dd=!1,Op=null,mP={onError:function(e){bl=!0,Pd=e}};function hP(e,t,a,r,o,n,s,i,l){bl=!1,Pd=null,pP.apply(mP,arguments)}function gP(e,t,a,r,o,n,s,i,l){if(hP.apply(this,arguments),bl){if(bl){var u=Pd;bl=!1,Pd=null}else throw Error(U(198));Dd||(Dd=!0,Op=u)}}function zn(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function qy(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 Dx(e){if(zn(e)!==e)throw Error(U(188))}function vP(e){var t=e.alternate;if(!t){if(t=zn(e),t===null)throw Error(U(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return Dx(o),e;if(n===r)return Dx(o),t;n=n.sibling}throw Error(U(188))}if(a.return!==r.return)a=o,r=n;else{for(var s=!1,i=o.child;i;){if(i===a){s=!0,a=o,r=n;break}if(i===r){s=!0,r=o,a=n;break}i=i.sibling}if(!s){for(i=n.child;i;){if(i===a){s=!0,a=n,r=o;break}if(i===r){s=!0,r=n,a=o;break}i=i.sibling}if(!s)throw Error(U(189))}}if(a.alternate!==r)throw Error(U(190))}if(a.tag!==3)throw Error(U(188));return a.stateNode.current===a?e:t}function Wy(e){return e=vP(e),e!==null?Gy(e):null}function Gy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Gy(e);if(t!==null)return t;e=e.sibling}return null}var $y=Oa.unstable_scheduleCallback,Tx=Oa.unstable_cancelCallback,xP=Oa.unstable_shouldYield,yP=Oa.unstable_requestPaint,lt=Oa.unstable_now,wP=Oa.unstable_getCurrentPriorityLevel,ym=Oa.unstable_ImmediatePriority,Ky=Oa.unstable_UserBlockingPriority,Td=Oa.unstable_NormalPriority,CP=Oa.unstable_LowPriority,Xy=Oa.unstable_IdlePriority,Qd=null,_r=null;function SP(e){if(_r&&typeof _r.onCommitFiberRoot=="function")try{_r.onCommitFiberRoot(Qd,e,void 0,(e.current.flags&128)===128)}catch{}}var ir=Math.clz32?Math.clz32:bP,LP=Math.log,IP=Math.LN2;function bP(e){return e>>>=0,e===0?32:31-(LP(e)/IP|0)|0}var td=64,ad=4194304;function Sl(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 Md(e,t){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,n=e.pingedLanes,s=a&268435455;if(s!==0){var i=s&~o;i!==0?r=Sl(i):(n&=s,n!==0&&(r=Sl(n)))}else s=a&~o,s!==0?r=Sl(s):n!==0&&(r=Sl(n));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((r&4)!==0&&(r|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)a=31-ir(t),o=1<<a,r|=e[a],t&=~o;return r}function kP(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 RP(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var s=31-ir(n),i=1<<s,l=o[s];l===-1?((i&a)===0||(i&r)!==0)&&(o[s]=kP(i,t)):l<=t&&(e.expiredLanes|=i),n&=~i}}function Np(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zy(){var e=td;return td<<=1,(td&4194240)===0&&(td=64),e}function ap(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Zl(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ir(t),e[t]=a}function PP(e,t){var a=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<a;){var o=31-ir(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function wm(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-ir(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var Ve=0;function Qy(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Yy,Cm,Jy,ew,tw,Fp=!1,rd=[],qo=null,Wo=null,Go=null,Nl=new Map,Fl=new Map,Uo=[],DP="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 Mx(e,t){switch(e){case"focusin":case"focusout":qo=null;break;case"dragenter":case"dragleave":Wo=null;break;case"mouseover":case"mouseout":Go=null;break;case"pointerover":case"pointerout":Nl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fl.delete(t.pointerId)}}function pl(e,t,a,r,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:n,targetContainers:[o]},t!==null&&(t=Yl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function TP(e,t,a,r,o){switch(t){case"focusin":return qo=pl(qo,e,t,a,r,o),!0;case"dragenter":return Wo=pl(Wo,e,t,a,r,o),!0;case"mouseover":return Go=pl(Go,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return Nl.set(n,pl(Nl.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,Fl.set(n,pl(Fl.get(n)||null,e,t,a,r,o)),!0}return!1}function aw(e){var t=Rn(e.target);if(t!==null){var a=zn(t);if(a!==null){if(t=a.tag,t===13){if(t=qy(a),t!==null){e.blockedOn=t,tw(e.priority,function(){Jy(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);_p=r,a.target.dispatchEvent(r),_p=null}else return t=Yl(a),t!==null&&Cm(t),e.blockedOn=a,!1;t.shift()}return!0}function _x(e,t,a){vd(e)&&a.delete(t)}function MP(){Fp=!1,qo!==null&&vd(qo)&&(qo=null),Wo!==null&&vd(Wo)&&(Wo=null),Go!==null&&vd(Go)&&(Go=null),Nl.forEach(_x),Fl.forEach(_x)}function ml(e,t){e.blockedOn===t&&(e.blockedOn=null,Fp||(Fp=!0,Oa.unstable_scheduleCallback(Oa.unstable_NormalPriority,MP)))}function zl(e){function t(o){return ml(o,e)}if(0<rd.length){ml(rd[0],e);for(var a=1;a<rd.length;a++){var r=rd[a];r.blockedOn===e&&(r.blockedOn=null)}}for(qo!==null&&ml(qo,e),Wo!==null&&ml(Wo,e),Go!==null&&ml(Go,e),Nl.forEach(t),Fl.forEach(t),a=0;a<Uo.length;a++)r=Uo[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<Uo.length&&(a=Uo[0],a.blockedOn===null);)aw(a),a.blockedOn===null&&Uo.shift()}var ri=mo.ReactCurrentBatchConfig,_d=!0;function _P(e,t,a,r){var o=Ve,n=ri.transition;ri.transition=null;try{Ve=1,Sm(e,t,a,r)}finally{Ve=o,ri.transition=n}}function AP(e,t,a,r){var o=Ve,n=ri.transition;ri.transition=null;try{Ve=4,Sm(e,t,a,r)}finally{Ve=o,ri.transition=n}}function Sm(e,t,a,r){if(_d){var o=zp(e,t,a,r);if(o===null)up(e,t,r,Ad,a),Mx(e,r);else if(TP(o,e,t,a,r))r.stopPropagation();else if(Mx(e,r),t&4&&-1<DP.indexOf(e)){for(;o!==null;){var n=Yl(o);if(n!==null&&Yy(n),n=zp(e,t,a,r),n===null&&up(e,t,r,Ad,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else up(e,t,r,null,a)}}var Ad=null;function zp(e,t,a,r){if(Ad=null,e=xm(r),e=Rn(e),e!==null)if(t=zn(e),t===null)e=null;else if(a=t.tag,a===13){if(e=qy(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ad=e,null}function rw(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(wP()){case ym:return 1;case Ky:return 4;case Td:case CP:return 16;case Xy:return 536870912;default:return 16}default:return 16}}var jo=null,Lm=null,xd=null;function ow(){if(xd)return xd;var e,t=Lm,a=t.length,r,o="value"in jo?jo.value:jo.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var s=a-e;for(r=1;r<=s&&t[a-r]===o[n-r];r++);return xd=o.slice(e,1<r?1-r:void 0)}function yd(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 od(){return!0}function Ax(){return!1}function Na(e){function t(a,r,o,n,s){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?od:Ax,this.isPropagationStopped=Ax,this}return rt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=od)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=od)},persist:function(){},isPersistent:od}),t}var pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Im=Na(pi),Ql=rt({},pi,{view:0,detail:0}),EP=Na(Ql),rp,op,hl,Yd=rt({},Ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bm,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!==hl&&(hl&&e.type==="mousemove"?(rp=e.screenX-hl.screenX,op=e.screenY-hl.screenY):op=rp=0,hl=e),rp)},movementY:function(e){return"movementY"in e?e.movementY:op}}),Ex=Na(Yd),OP=rt({},Yd,{dataTransfer:0}),NP=Na(OP),FP=rt({},Ql,{relatedTarget:0}),np=Na(FP),zP=rt({},pi,{animationName:0,elapsedTime:0,pseudoElement:0}),BP=Na(zP),UP=rt({},pi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),HP=Na(UP),jP=rt({},pi,{data:0}),Ox=Na(jP),VP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qP={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"},WP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WP[e])?!!t[e]:!1}function bm(){return GP}var $P=rt({},Ql,{key:function(e){if(e.key){var t=VP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bm,charCode:function(e){return e.type==="keypress"?yd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),KP=Na($P),XP=rt({},Yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nx=Na(XP),ZP=rt({},Ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bm}),QP=Na(ZP),YP=rt({},pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),JP=Na(YP),e1=rt({},Yd,{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}),t1=Na(e1),a1=[9,13,27,32],km=uo&&"CompositionEvent"in window,kl=null;uo&&"documentMode"in document&&(kl=document.documentMode);var r1=uo&&"TextEvent"in window&&!kl,nw=uo&&(!km||kl&&8<kl&&11>=kl),Fx=" ",zx=!1;function sw(e,t){switch(e){case"keyup":return a1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qs=!1;function o1(e,t){switch(e){case"compositionend":return iw(t);case"keypress":return t.which!==32?null:(zx=!0,Fx);case"textInput":return e=t.data,e===Fx&&zx?null:e;default:return null}}function n1(e,t){if(qs)return e==="compositionend"||!km&&sw(e,t)?(e=ow(),xd=Lm=jo=null,qs=!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 nw&&t.locale!=="ko"?null:t.data;default:return null}}var s1={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 Bx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!s1[e.type]:t==="textarea"}function lw(e,t,a,r){By(r),t=Ed(t,"onChange"),0<t.length&&(a=new Im("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Rl=null,Bl=null;function i1(e){yw(e,0)}function Jd(e){var t=$s(e);if(_y(t))return e}function l1(e,t){if(e==="change")return t}var uw=!1;uo&&(uo?(sd="oninput"in document,sd||(sp=document.createElement("div"),sp.setAttribute("oninput","return;"),sd=typeof sp.oninput=="function"),nd=sd):nd=!1,uw=nd&&(!document.documentMode||9<document.documentMode));var nd,sd,sp;function Ux(){Rl&&(Rl.detachEvent("onpropertychange",dw),Bl=Rl=null)}function dw(e){if(e.propertyName==="value"&&Jd(Bl)){var t=[];lw(t,Bl,e,xm(e)),Vy(i1,t)}}function u1(e,t,a){e==="focusin"?(Ux(),Rl=t,Bl=a,Rl.attachEvent("onpropertychange",dw)):e==="focusout"&&Ux()}function d1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jd(Bl)}function c1(e,t){if(e==="click")return Jd(t)}function f1(e,t){if(e==="input"||e==="change")return Jd(t)}function p1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ur=typeof Object.is=="function"?Object.is:p1;function Ul(e,t){if(ur(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!wp.call(t,o)||!ur(e[o],t[o]))return!1}return!0}function Hx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jx(e,t){var a=Hx(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Hx(a)}}function cw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fw(){for(var e=window,t=Rd();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Rd(e.document)}return t}function Rm(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 m1(e){var t=fw(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&cw(a.ownerDocument.documentElement,a)){if(r!==null&&Rm(a)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=a.textContent.length,n=Math.min(r.start,o);r=r.end===void 0?n:Math.min(r.end,o),!e.extend&&n>r&&(o=r,r=n,n=o),o=jx(a,n);var s=jx(a,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var h1=uo&&"documentMode"in document&&11>=document.documentMode,Ws=null,Bp=null,Pl=null,Up=!1;function Vx(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Up||Ws==null||Ws!==Rd(r)||(r=Ws,"selectionStart"in r&&Rm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pl&&Ul(Pl,r)||(Pl=r,r=Ed(Bp,"onSelect"),0<r.length&&(t=new Im("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Ws)))}function id(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Gs={animationend:id("Animation","AnimationEnd"),animationiteration:id("Animation","AnimationIteration"),animationstart:id("Animation","AnimationStart"),transitionend:id("Transition","TransitionEnd")},ip={},pw={};uo&&(pw=document.createElement("div").style,"AnimationEvent"in window||(delete Gs.animationend.animation,delete Gs.animationiteration.animation,delete Gs.animationstart.animation),"TransitionEvent"in window||delete Gs.transitionend.transition);function ec(e){if(ip[e])return ip[e];if(!Gs[e])return e;var t=Gs[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in pw)return ip[e]=t[a];return e}var mw=ec("animationend"),hw=ec("animationiteration"),gw=ec("animationstart"),vw=ec("transitionend"),xw=new Map,qx="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 en(e,t){xw.set(e,t),Fn(t,[e])}for(ld=0;ld<qx.length;ld++)ud=qx[ld],Wx=ud.toLowerCase(),Gx=ud[0].toUpperCase()+ud.slice(1),en(Wx,"on"+Gx);var ud,Wx,Gx,ld;en(mw,"onAnimationEnd");en(hw,"onAnimationIteration");en(gw,"onAnimationStart");en("dblclick","onDoubleClick");en("focusin","onFocus");en("focusout","onBlur");en(vw,"onTransitionEnd");si("onMouseEnter",["mouseout","mouseover"]);si("onMouseLeave",["mouseout","mouseover"]);si("onPointerEnter",["pointerout","pointerover"]);si("onPointerLeave",["pointerout","pointerover"]);Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ll="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(" "),g1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ll));function $x(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,gP(r,t,void 0,e),e.currentTarget=null}function yw(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var n=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,u=i.currentTarget;if(i=i.listener,l!==n&&o.isPropagationStopped())break e;$x(o,i,u),n=l}else for(s=0;s<r.length;s++){if(i=r[s],l=i.instance,u=i.currentTarget,i=i.listener,l!==n&&o.isPropagationStopped())break e;$x(o,i,u),n=l}}}if(Dd)throw e=Op,Dd=!1,Op=null,e}function Qe(e,t){var a=t[Wp];a===void 0&&(a=t[Wp]=new Set);var r=e+"__bubble";a.has(r)||(ww(t,e,2,!1),a.add(r))}function lp(e,t,a){var r=0;t&&(r|=4),ww(a,e,r,t)}var dd="_reactListening"+Math.random().toString(36).slice(2);function Hl(e){if(!e[dd]){e[dd]=!0,Ry.forEach(function(a){a!=="selectionchange"&&(g1.has(a)||lp(a,!1,e),lp(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[dd]||(t[dd]=!0,lp("selectionchange",!1,t))}}function ww(e,t,a,r){switch(rw(t)){case 1:var o=_P;break;case 4:o=AP;break;default:o=Sm}a=o.bind(null,t,a,e),o=void 0,!Ep||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function up(e,t,a,r,o){var n=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;i!==null;){if(s=Rn(i),s===null)return;if(l=s.tag,l===5||l===6){r=n=s;continue e}i=i.parentNode}}r=r.return}Vy(function(){var u=n,c=xm(a),d=[];e:{var f=xw.get(e);if(f!==void 0){var h=Im,v=e;switch(e){case"keypress":if(yd(a)===0)break e;case"keydown":case"keyup":h=KP;break;case"focusin":v="focus",h=np;break;case"focusout":v="blur",h=np;break;case"beforeblur":case"afterblur":h=np;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Ex;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=NP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=QP;break;case mw:case hw:case gw:h=BP;break;case vw:h=JP;break;case"scroll":h=EP;break;case"wheel":h=t1;break;case"copy":case"cut":case"paste":h=HP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Nx}var x=(t&4)!==0,w=!x&&e==="scroll",m=x?f!==null?f+"Capture":null:f;x=[];for(var p=u,g;p!==null;){g=p;var y=g.stateNode;if(g.tag===5&&y!==null&&(g=y,m!==null&&(y=Ol(p,m),y!=null&&x.push(jl(p,y,g)))),w)break;p=p.return}0<x.length&&(f=new h(f,v,null,a,c),d.push({event:f,listeners:x}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&a!==_p&&(v=a.relatedTarget||a.fromElement)&&(Rn(v)||v[co]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(v=a.relatedTarget||a.toElement,h=u,v=v?Rn(v):null,v!==null&&(w=zn(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(x=Ex,y="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(x=Nx,y="onPointerLeave",m="onPointerEnter",p="pointer"),w=h==null?f:$s(h),g=v==null?f:$s(v),f=new x(y,p+"leave",h,a,c),f.target=w,f.relatedTarget=g,y=null,Rn(c)===u&&(x=new x(m,p+"enter",v,a,c),x.target=g,x.relatedTarget=w,y=x),w=y,h&&v)t:{for(x=h,m=v,p=0,g=x;g;g=Hs(g))p++;for(g=0,y=m;y;y=Hs(y))g++;for(;0<p-g;)x=Hs(x),p--;for(;0<g-p;)m=Hs(m),g--;for(;p--;){if(x===m||m!==null&&x===m.alternate)break t;x=Hs(x),m=Hs(m)}x=null}else x=null;h!==null&&Kx(d,f,h,x,!1),v!==null&&w!==null&&Kx(d,w,v,x,!0)}}e:{if(f=u?$s(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var L=l1;else if(Bx(f))if(uw)L=f1;else{L=d1;var b=u1}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(L=c1);if(L&&(L=L(e,u))){lw(d,L,a,c);break e}b&&b(e,f,u),e==="focusout"&&(b=f._wrapperState)&&b.controlled&&f.type==="number"&&Rp(f,"number",f.value)}switch(b=u?$s(u):window,e){case"focusin":(Bx(b)||b.contentEditable==="true")&&(Ws=b,Bp=u,Pl=null);break;case"focusout":Pl=Bp=Ws=null;break;case"mousedown":Up=!0;break;case"contextmenu":case"mouseup":case"dragend":Up=!1,Vx(d,a,c);break;case"selectionchange":if(h1)break;case"keydown":case"keyup":Vx(d,a,c)}var R;if(km)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else qs?sw(e,a)&&(k="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(k="onCompositionStart");k&&(nw&&a.locale!=="ko"&&(qs||k!=="onCompositionStart"?k==="onCompositionEnd"&&qs&&(R=ow()):(jo=c,Lm="value"in jo?jo.value:jo.textContent,qs=!0)),b=Ed(u,k),0<b.length&&(k=new Ox(k,e,null,a,c),d.push({event:k,listeners:b}),R?k.data=R:(R=iw(a),R!==null&&(k.data=R)))),(R=r1?o1(e,a):n1(e,a))&&(u=Ed(u,"onBeforeInput"),0<u.length&&(c=new Ox("onBeforeInput","beforeinput",null,a,c),d.push({event:c,listeners:u}),c.data=R))}yw(d,t)})}function jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ed(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=Ol(e,a),n!=null&&r.unshift(jl(e,n,o)),n=Ol(e,t),n!=null&&r.push(jl(e,n,o))),e=e.return}return r}function Hs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Kx(e,t,a,r,o){for(var n=t._reactName,s=[];a!==null&&a!==r;){var i=a,l=i.alternate,u=i.stateNode;if(l!==null&&l===r)break;i.tag===5&&u!==null&&(i=u,o?(l=Ol(a,n),l!=null&&s.unshift(jl(a,l,i))):o||(l=Ol(a,n),l!=null&&s.push(jl(a,l,i)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}var v1=/\r\n?/g,x1=/\u0000|\uFFFD/g;function Xx(e){return(typeof e=="string"?e:""+e).replace(v1,`
|
|
6
|
+
`).replace(x1,"")}function cd(e,t,a){if(t=Xx(t),Xx(e)!==t&&a)throw Error(U(425))}function Od(){}var Hp=null,jp=null;function Vp(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 qp=typeof setTimeout=="function"?setTimeout:void 0,y1=typeof clearTimeout=="function"?clearTimeout:void 0,Zx=typeof Promise=="function"?Promise:void 0,w1=typeof queueMicrotask=="function"?queueMicrotask:typeof Zx<"u"?function(e){return Zx.resolve(null).then(e).catch(C1)}:qp;function C1(e){setTimeout(function(){throw e})}function dp(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),zl(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);zl(t)}function $o(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 Qx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var mi=Math.random().toString(36).slice(2),Mr="__reactFiber$"+mi,Vl="__reactProps$"+mi,co="__reactContainer$"+mi,Wp="__reactEvents$"+mi,S1="__reactListeners$"+mi,L1="__reactHandles$"+mi;function Rn(e){var t=e[Mr];if(t)return t;for(var a=e.parentNode;a;){if(t=a[co]||a[Mr]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Qx(e);e!==null;){if(a=e[Mr])return a;e=Qx(e)}return t}e=a,a=e.parentNode}return null}function Yl(e){return e=e[Mr]||e[co],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $s(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function tc(e){return e[Vl]||null}var Gp=[],Ks=-1;function tn(e){return{current:e}}function Ye(e){0>Ks||(e.current=Gp[Ks],Gp[Ks]=null,Ks--)}function Xe(e,t){Ks++,Gp[Ks]=e.current,e.current=t}var Jo={},Zt=tn(Jo),ya=tn(!1),_n=Jo;function ii(e,t){var a=e.type.contextTypes;if(!a)return Jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wa(e){return e=e.childContextTypes,e!=null}function Nd(){Ye(ya),Ye(Zt)}function Yx(e,t,a){if(Zt.current!==Jo)throw Error(U(168));Xe(Zt,t),Xe(ya,a)}function Cw(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,uP(e)||"Unknown",o));return rt({},a,r)}function Fd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jo,_n=Zt.current,Xe(Zt,e),Xe(ya,ya.current),!0}function Jx(e,t,a){var r=e.stateNode;if(!r)throw Error(U(169));a?(e=Cw(e,t,_n),r.__reactInternalMemoizedMergedChildContext=e,Ye(ya),Ye(Zt),Xe(Zt,e)):Ye(ya),Xe(ya,a)}var no=null,ac=!1,cp=!1;function Sw(e){no===null?no=[e]:no.push(e)}function I1(e){ac=!0,Sw(e)}function an(){if(!cp&&no!==null){cp=!0;var e=0,t=Ve;try{var a=no;for(Ve=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}no=null,ac=!1}catch(o){throw no!==null&&(no=no.slice(e+1)),$y(ym,an),o}finally{Ve=t,cp=!1}}return null}var Xs=[],Zs=0,zd=null,Bd=0,Ha=[],ja=0,An=null,so=1,io="";function bn(e,t){Xs[Zs++]=Bd,Xs[Zs++]=zd,zd=e,Bd=t}function Lw(e,t,a){Ha[ja++]=so,Ha[ja++]=io,Ha[ja++]=An,An=e;var r=so;e=io;var o=32-ir(r)-1;r&=~(1<<o),a+=1;var n=32-ir(t)+o;if(30<n){var s=o-o%5;n=(r&(1<<s)-1).toString(32),r>>=s,o-=s,so=1<<32-ir(t)+o|a<<o|r,io=n+e}else so=1<<n|a<<o|r,io=e}function Pm(e){e.return!==null&&(bn(e,1),Lw(e,1,0))}function Dm(e){for(;e===zd;)zd=Xs[--Zs],Xs[Zs]=null,Bd=Xs[--Zs],Xs[Zs]=null;for(;e===An;)An=Ha[--ja],Ha[ja]=null,io=Ha[--ja],Ha[ja]=null,so=Ha[--ja],Ha[ja]=null}var Ea=null,Aa=null,et=!1,sr=null;function Iw(e,t){var a=Va(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function ey(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ea=e,Aa=$o(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ea=e,Aa=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=An!==null?{id:so,overflow:io}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=Va(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,Ea=e,Aa=null,!0):!1;default:return!1}}function $p(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Kp(e){if(et){var t=Aa;if(t){var a=t;if(!ey(e,t)){if($p(e))throw Error(U(418));t=$o(a.nextSibling);var r=Ea;t&&ey(e,t)?Iw(r,a):(e.flags=e.flags&-4097|2,et=!1,Ea=e)}}else{if($p(e))throw Error(U(418));e.flags=e.flags&-4097|2,et=!1,Ea=e}}}function ty(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ea=e}function fd(e){if(e!==Ea)return!1;if(!et)return ty(e),et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vp(e.type,e.memoizedProps)),t&&(t=Aa)){if($p(e))throw bw(),Error(U(418));for(;t;)Iw(e,t),t=$o(t.nextSibling)}if(ty(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){Aa=$o(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}Aa=null}}else Aa=Ea?$o(e.stateNode.nextSibling):null;return!0}function bw(){for(var e=Aa;e;)e=$o(e.nextSibling)}function li(){Aa=Ea=null,et=!1}function Tm(e){sr===null?sr=[e]:sr.push(e)}var b1=mo.ReactCurrentBatchConfig;function gl(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(U(309));var r=a.stateNode}if(!r)throw Error(U(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(s){var i=o.refs;s===null?delete i[n]:i[n]=s},t._stringRef=n,t)}if(typeof e!="string")throw Error(U(284));if(!a._owner)throw Error(U(290,e))}return e}function pd(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ay(e){var t=e._init;return t(e._payload)}function kw(e){function t(m,p){if(e){var g=m.deletions;g===null?(m.deletions=[p],m.flags|=16):g.push(p)}}function a(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function o(m,p){return m=Qo(m,p),m.index=0,m.sibling=null,m}function n(m,p,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<p?(m.flags|=2,p):g):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function i(m,p,g,y){return p===null||p.tag!==6?(p=xp(g,m.mode,y),p.return=m,p):(p=o(p,g),p.return=m,p)}function l(m,p,g,y){var L=g.type;return L===Vs?c(m,p,g.props.children,y,g.key):p!==null&&(p.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===zo&&ay(L)===p.type)?(y=o(p,g.props),y.ref=gl(m,p,g),y.return=m,y):(y=kd(g.type,g.key,g.props,null,m.mode,y),y.ref=gl(m,p,g),y.return=m,y)}function u(m,p,g,y){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=yp(g,m.mode,y),p.return=m,p):(p=o(p,g.children||[]),p.return=m,p)}function c(m,p,g,y,L){return p===null||p.tag!==7?(p=Mn(g,m.mode,y,L),p.return=m,p):(p=o(p,g),p.return=m,p)}function d(m,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=xp(""+p,m.mode,g),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Yu:return g=kd(p.type,p.key,p.props,null,m.mode,g),g.ref=gl(m,null,p),g.return=m,g;case js:return p=yp(p,m.mode,g),p.return=m,p;case zo:var y=p._init;return d(m,y(p._payload),g)}if(Cl(p)||fl(p))return p=Mn(p,m.mode,g,null),p.return=m,p;pd(m,p)}return null}function f(m,p,g,y){var L=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return L!==null?null:i(m,p,""+g,y);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Yu:return g.key===L?l(m,p,g,y):null;case js:return g.key===L?u(m,p,g,y):null;case zo:return L=g._init,f(m,p,L(g._payload),y)}if(Cl(g)||fl(g))return L!==null?null:c(m,p,g,y,null);pd(m,g)}return null}function h(m,p,g,y,L){if(typeof y=="string"&&y!==""||typeof y=="number")return m=m.get(g)||null,i(p,m,""+y,L);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Yu:return m=m.get(y.key===null?g:y.key)||null,l(p,m,y,L);case js:return m=m.get(y.key===null?g:y.key)||null,u(p,m,y,L);case zo:var b=y._init;return h(m,p,g,b(y._payload),L)}if(Cl(y)||fl(y))return m=m.get(g)||null,c(p,m,y,L,null);pd(p,y)}return null}function v(m,p,g,y){for(var L=null,b=null,R=p,k=p=0,M=null;R!==null&&k<g.length;k++){R.index>k?(M=R,R=null):M=R.sibling;var E=f(m,R,g[k],y);if(E===null){R===null&&(R=M);break}e&&R&&E.alternate===null&&t(m,R),p=n(E,p,k),b===null?L=E:b.sibling=E,b=E,R=M}if(k===g.length)return a(m,R),et&&bn(m,k),L;if(R===null){for(;k<g.length;k++)R=d(m,g[k],y),R!==null&&(p=n(R,p,k),b===null?L=R:b.sibling=R,b=R);return et&&bn(m,k),L}for(R=r(m,R);k<g.length;k++)M=h(R,m,k,g[k],y),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?k:M.key),p=n(M,p,k),b===null?L=M:b.sibling=M,b=M);return e&&R.forEach(function(O){return t(m,O)}),et&&bn(m,k),L}function x(m,p,g,y){var L=fl(g);if(typeof L!="function")throw Error(U(150));if(g=L.call(g),g==null)throw Error(U(151));for(var b=L=null,R=p,k=p=0,M=null,E=g.next();R!==null&&!E.done;k++,E=g.next()){R.index>k?(M=R,R=null):M=R.sibling;var O=f(m,R,E.value,y);if(O===null){R===null&&(R=M);break}e&&R&&O.alternate===null&&t(m,R),p=n(O,p,k),b===null?L=O:b.sibling=O,b=O,R=M}if(E.done)return a(m,R),et&&bn(m,k),L;if(R===null){for(;!E.done;k++,E=g.next())E=d(m,E.value,y),E!==null&&(p=n(E,p,k),b===null?L=E:b.sibling=E,b=E);return et&&bn(m,k),L}for(R=r(m,R);!E.done;k++,E=g.next())E=h(R,m,k,E.value,y),E!==null&&(e&&E.alternate!==null&&R.delete(E.key===null?k:E.key),p=n(E,p,k),b===null?L=E:b.sibling=E,b=E);return e&&R.forEach(function(T){return t(m,T)}),et&&bn(m,k),L}function w(m,p,g,y){if(typeof g=="object"&&g!==null&&g.type===Vs&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Yu:e:{for(var L=g.key,b=p;b!==null;){if(b.key===L){if(L=g.type,L===Vs){if(b.tag===7){a(m,b.sibling),p=o(b,g.props.children),p.return=m,m=p;break e}}else if(b.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===zo&&ay(L)===b.type){a(m,b.sibling),p=o(b,g.props),p.ref=gl(m,b,g),p.return=m,m=p;break e}a(m,b);break}else t(m,b);b=b.sibling}g.type===Vs?(p=Mn(g.props.children,m.mode,y,g.key),p.return=m,m=p):(y=kd(g.type,g.key,g.props,null,m.mode,y),y.ref=gl(m,p,g),y.return=m,m=y)}return s(m);case js:e:{for(b=g.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){a(m,p.sibling),p=o(p,g.children||[]),p.return=m,m=p;break e}else{a(m,p);break}else t(m,p);p=p.sibling}p=yp(g,m.mode,y),p.return=m,m=p}return s(m);case zo:return b=g._init,w(m,p,b(g._payload),y)}if(Cl(g))return v(m,p,g,y);if(fl(g))return x(m,p,g,y);pd(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(a(m,p.sibling),p=o(p,g),p.return=m,m=p):(a(m,p),p=xp(g,m.mode,y),p.return=m,m=p),s(m)):a(m,p)}return w}var ui=kw(!0),Rw=kw(!1),Ud=tn(null),Hd=null,Qs=null,Mm=null;function _m(){Mm=Qs=Hd=null}function Am(e){var t=Ud.current;Ye(Ud),e._currentValue=t}function Xp(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function oi(e,t){Hd=e,Mm=Qs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(xa=!0),e.firstContext=null)}function Wa(e){var t=e._currentValue;if(Mm!==e)if(e={context:e,memoizedValue:t,next:null},Qs===null){if(Hd===null)throw Error(U(308));Qs=e,Hd.dependencies={lanes:0,firstContext:e}}else Qs=Qs.next=e;return t}var Pn=null;function Em(e){Pn===null?Pn=[e]:Pn.push(e)}function Pw(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,Em(t)):(a.next=o.next,o.next=a),t.interleaved=a,fo(e,r)}function fo(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var Bo=!1;function Om(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dw(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 lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ko(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,fo(e,a)}return o=r.interleaved,o===null?(t.next=t,Em(r)):(t.next=o.next,o.next=t),r.interleaved=t,fo(e,a)}function wd(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,wm(e,a)}}function ry(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function jd(e,t,a,r){var o=e.updateQueue;Bo=!1;var n=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var l=i,u=l.next;l.next=null,s===null?n=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==s&&(i===null?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=l))}if(n!==null){var d=o.baseState;s=0,c=u=l=null,i=n;do{var f=i.lane,h=i.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var v=e,x=i;switch(f=t,h=a,x.tag){case 1:if(v=x.payload,typeof v=="function"){d=v.call(h,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,f=typeof v=="function"?v.call(h,d,f):v,f==null)break e;d=rt({},d,f);break e;case 2:Bo=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else h={eventTime:h,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);On|=s,e.lanes=s,e.memoizedState=d}}function oy(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=a,typeof o!="function")throw Error(U(191,o));o.call(r)}}}var Jl={},Ar=tn(Jl),ql=tn(Jl),Wl=tn(Jl);function Dn(e){if(e===Jl)throw Error(U(174));return e}function Nm(e,t){switch(Xe(Wl,t),Xe(ql,e),Xe(Ar,Jl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dp(t,e)}Ye(Ar),Xe(Ar,t)}function di(){Ye(Ar),Ye(ql),Ye(Wl)}function Tw(e){Dn(Wl.current);var t=Dn(Ar.current),a=Dp(t,e.type);t!==a&&(Xe(ql,e),Xe(Ar,a))}function Fm(e){ql.current===e&&(Ye(Ar),Ye(ql))}var tt=tn(0);function Vd(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.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 fp=[];function zm(){for(var e=0;e<fp.length;e++)fp[e]._workInProgressVersionPrimary=null;fp.length=0}var Cd=mo.ReactCurrentDispatcher,pp=mo.ReactCurrentBatchConfig,En=0,at=null,Lt=null,Tt=null,qd=!1,Dl=!1,Gl=0,k1=0;function $t(){throw Error(U(321))}function Bm(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ur(e[a],t[a]))return!1;return!0}function Um(e,t,a,r,o,n){if(En=n,at=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cd.current=e===null||e.memoizedState===null?T1:M1,e=a(r,o),Dl){n=0;do{if(Dl=!1,Gl=0,25<=n)throw Error(U(301));n+=1,Tt=Lt=null,t.updateQueue=null,Cd.current=_1,e=a(r,o)}while(Dl)}if(Cd.current=Wd,t=Lt!==null&&Lt.next!==null,En=0,Tt=Lt=at=null,qd=!1,t)throw Error(U(300));return e}function Hm(){var e=Gl!==0;return Gl=0,e}function Tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?at.memoizedState=Tt=e:Tt=Tt.next=e,Tt}function Ga(){if(Lt===null){var e=at.alternate;e=e!==null?e.memoizedState:null}else e=Lt.next;var t=Tt===null?at.memoizedState:Tt.next;if(t!==null)Tt=t,Lt=e;else{if(e===null)throw Error(U(310));Lt=e,e={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},Tt===null?at.memoizedState=Tt=e:Tt=Tt.next=e}return Tt}function $l(e,t){return typeof t=="function"?t(e):t}function mp(e){var t=Ga(),a=t.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=e;var r=Lt,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var s=o.next;o.next=n.next,n.next=s}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=s=null,l=null,u=n;do{var c=u.lane;if((En&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(i=l=d,s=r):l=l.next=d,at.lanes|=c,On|=c}u=u.next}while(u!==null&&u!==n);l===null?s=r:l.next=i,ur(r,t.memoizedState)||(xa=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,at.lanes|=n,On|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function hp(e){var t=Ga(),a=t.queue;if(a===null)throw Error(U(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var s=o=o.next;do n=e(n,s.action),s=s.next;while(s!==o);ur(n,t.memoizedState)||(xa=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function Mw(){}function _w(e,t){var a=at,r=Ga(),o=t(),n=!ur(r.memoizedState,o);if(n&&(r.memoizedState=o,xa=!0),r=r.queue,jm(Ow.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||Tt!==null&&Tt.memoizedState.tag&1){if(a.flags|=2048,Kl(9,Ew.bind(null,a,r,o,t),void 0,null),Mt===null)throw Error(U(349));(En&30)!==0||Aw(a,t,o)}return o}function Aw(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=at.updateQueue,t===null?(t={lastEffect:null,stores:null},at.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ew(e,t,a,r){t.value=a,t.getSnapshot=r,Nw(t)&&Fw(e)}function Ow(e,t,a){return a(function(){Nw(t)&&Fw(e)})}function Nw(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ur(e,a)}catch{return!0}}function Fw(e){var t=fo(e,1);t!==null&&lr(t,e,1,-1)}function ny(e){var t=Tr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$l,lastRenderedState:e},t.queue=e,e=e.dispatch=D1.bind(null,at,e),[t.memoizedState,e]}function Kl(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=at.updateQueue,t===null?(t={lastEffect:null,stores:null},at.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function zw(){return Ga().memoizedState}function Sd(e,t,a,r){var o=Tr();at.flags|=e,o.memoizedState=Kl(1|t,a,void 0,r===void 0?null:r)}function rc(e,t,a,r){var o=Ga();r=r===void 0?null:r;var n=void 0;if(Lt!==null){var s=Lt.memoizedState;if(n=s.destroy,r!==null&&Bm(r,s.deps)){o.memoizedState=Kl(t,a,n,r);return}}at.flags|=e,o.memoizedState=Kl(1|t,a,n,r)}function sy(e,t){return Sd(8390656,8,e,t)}function jm(e,t){return rc(2048,8,e,t)}function Bw(e,t){return rc(4,2,e,t)}function Uw(e,t){return rc(4,4,e,t)}function Hw(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 jw(e,t,a){return a=a!=null?a.concat([e]):null,rc(4,4,Hw.bind(null,t,e),a)}function Vm(){}function Vw(e,t){var a=Ga();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Bm(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function qw(e,t){var a=Ga();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Bm(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Ww(e,t,a){return(En&21)===0?(e.baseState&&(e.baseState=!1,xa=!0),e.memoizedState=a):(ur(a,t)||(a=Zy(),at.lanes|=a,On|=a,e.baseState=!0),t)}function R1(e,t){var a=Ve;Ve=a!==0&&4>a?a:4,e(!0);var r=pp.transition;pp.transition={};try{e(!1),t()}finally{Ve=a,pp.transition=r}}function Gw(){return Ga().memoizedState}function P1(e,t,a){var r=Zo(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},$w(e))Kw(t,a);else if(a=Pw(e,t,a,r),a!==null){var o=sa();lr(a,e,r,o),Xw(a,t,r)}}function D1(e,t,a){var r=Zo(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if($w(e))Kw(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,i=n(s,a);if(o.hasEagerState=!0,o.eagerState=i,ur(i,s)){var l=t.interleaved;l===null?(o.next=o,Em(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}a=Pw(e,t,o,r),a!==null&&(o=sa(),lr(a,e,r,o),Xw(a,t,r))}}function $w(e){var t=e.alternate;return e===at||t!==null&&t===at}function Kw(e,t){Dl=qd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Xw(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,wm(e,a)}}var Wd={readContext:Wa,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},T1={readContext:Wa,useCallback:function(e,t){return Tr().memoizedState=[e,t===void 0?null:t],e},useContext:Wa,useEffect:sy,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Sd(4194308,4,Hw.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Sd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sd(4,2,e,t)},useMemo:function(e,t){var a=Tr();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=Tr();return t=a!==void 0?a(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=P1.bind(null,at,e),[r.memoizedState,e]},useRef:function(e){var t=Tr();return e={current:e},t.memoizedState=e},useState:ny,useDebugValue:Vm,useDeferredValue:function(e){return Tr().memoizedState=e},useTransition:function(){var e=ny(!1),t=e[0];return e=R1.bind(null,e[1]),Tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=at,o=Tr();if(et){if(a===void 0)throw Error(U(407));a=a()}else{if(a=t(),Mt===null)throw Error(U(349));(En&30)!==0||Aw(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,sy(Ow.bind(null,r,n,e),[e]),r.flags|=2048,Kl(9,Ew.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=Tr(),t=Mt.identifierPrefix;if(et){var a=io,r=so;a=(r&~(1<<32-ir(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Gl++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=k1++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},M1={readContext:Wa,useCallback:Vw,useContext:Wa,useEffect:jm,useImperativeHandle:jw,useInsertionEffect:Bw,useLayoutEffect:Uw,useMemo:qw,useReducer:mp,useRef:zw,useState:function(){return mp($l)},useDebugValue:Vm,useDeferredValue:function(e){var t=Ga();return Ww(t,Lt.memoizedState,e)},useTransition:function(){var e=mp($l)[0],t=Ga().memoizedState;return[e,t]},useMutableSource:Mw,useSyncExternalStore:_w,useId:Gw,unstable_isNewReconciler:!1},_1={readContext:Wa,useCallback:Vw,useContext:Wa,useEffect:jm,useImperativeHandle:jw,useInsertionEffect:Bw,useLayoutEffect:Uw,useMemo:qw,useReducer:hp,useRef:zw,useState:function(){return hp($l)},useDebugValue:Vm,useDeferredValue:function(e){var t=Ga();return Lt===null?t.memoizedState=e:Ww(t,Lt.memoizedState,e)},useTransition:function(){var e=hp($l)[0],t=Ga().memoizedState;return[e,t]},useMutableSource:Mw,useSyncExternalStore:_w,useId:Gw,unstable_isNewReconciler:!1};function or(e,t){if(e&&e.defaultProps){t=rt({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function Zp(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:rt({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var oc={isMounted:function(e){return(e=e._reactInternals)?zn(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=sa(),o=Zo(e),n=lo(r,o);n.payload=t,a!=null&&(n.callback=a),t=Ko(e,n,o),t!==null&&(lr(t,e,o,r),wd(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=sa(),o=Zo(e),n=lo(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Ko(e,n,o),t!==null&&(lr(t,e,o,r),wd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=sa(),r=Zo(e),o=lo(a,r);o.tag=2,t!=null&&(o.callback=t),t=Ko(e,o,r),t!==null&&(lr(t,e,r,a),wd(t,e,r))}};function iy(e,t,a,r,o,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,s):t.prototype&&t.prototype.isPureReactComponent?!Ul(a,r)||!Ul(o,n):!0}function Zw(e,t,a){var r=!1,o=Jo,n=t.contextType;return typeof n=="object"&&n!==null?n=Wa(n):(o=wa(t)?_n:Zt.current,r=t.contextTypes,n=(r=r!=null)?ii(e,o):Jo),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=oc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function ly(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&oc.enqueueReplaceState(t,t.state,null)}function Qp(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},Om(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Wa(n):(n=wa(t)?_n:Zt.current,o.context=ii(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(Zp(e,t,n,a),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&oc.enqueueReplaceState(o,o.state,null),jd(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ci(e,t){try{var a="",r=t;do a+=lP(r),r=r.return;while(r);var o=a}catch(n){o=`
|
|
7
|
+
Error generating stack: `+n.message+`
|
|
8
|
+
`+n.stack}return{value:e,source:t,stack:o,digest:null}}function gp(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function Yp(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var A1=typeof WeakMap=="function"?WeakMap:Map;function Qw(e,t,a){a=lo(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){$d||($d=!0,lm=r),Yp(e,t)},a}function Yw(e,t,a){a=lo(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){Yp(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){Yp(e,t),typeof r!="function"&&(Xo===null?Xo=new Set([this]):Xo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),a}function uy(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new A1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(o.add(a),e=$1.bind(null,e,t,a),t.then(e,e))}function dy(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 cy(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=lo(-1,1),t.tag=2,Ko(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var E1=mo.ReactCurrentOwner,xa=!1;function na(e,t,a,r){t.child=e===null?Rw(t,null,a,r):ui(t,e.child,a,r)}function fy(e,t,a,r,o){a=a.render;var n=t.ref;return oi(t,o),r=Um(e,t,a,r,n,o),a=Hm(),e!==null&&!xa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,po(e,t,o)):(et&&a&&Pm(t),t.flags|=1,na(e,t,r,o),t.child)}function py(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!Qm(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,Jw(e,t,n,r,o)):(e=kd(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ul,a(s,r)&&e.ref===t.ref)return po(e,t,o)}return t.flags|=1,e=Qo(n,r),e.ref=t.ref,e.return=t,t.child=e}function Jw(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(Ul(n,r)&&e.ref===t.ref)if(xa=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(xa=!0);else return t.lanes=e.lanes,po(e,t,o)}return Jp(e,t,a,r,o)}function eC(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(Js,_a),_a|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Xe(Js,_a),_a|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,Xe(Js,_a),_a|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,Xe(Js,_a),_a|=r;return na(e,t,o,a),t.child}function tC(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function Jp(e,t,a,r,o){var n=wa(a)?_n:Zt.current;return n=ii(t,n),oi(t,o),a=Um(e,t,a,r,n,o),r=Hm(),e!==null&&!xa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,po(e,t,o)):(et&&r&&Pm(t),t.flags|=1,na(e,t,a,o),t.child)}function my(e,t,a,r,o){if(wa(a)){var n=!0;Fd(t)}else n=!1;if(oi(t,o),t.stateNode===null)Ld(e,t),Zw(t,a,r),Qp(t,a,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,u=a.contextType;typeof u=="object"&&u!==null?u=Wa(u):(u=wa(a)?_n:Zt.current,u=ii(t,u));var c=a.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||l!==u)&&ly(t,s,r,u),Bo=!1;var f=t.memoizedState;s.state=f,jd(t,r,s,o),l=t.memoizedState,i!==r||f!==l||ya.current||Bo?(typeof c=="function"&&(Zp(t,a,c,r),l=t.memoizedState),(i=Bo||iy(t,a,i,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Dw(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:or(t.type,i),s.props=u,d=t.pendingProps,f=s.context,l=a.contextType,typeof l=="object"&&l!==null?l=Wa(l):(l=wa(a)?_n:Zt.current,l=ii(t,l));var h=a.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==d||f!==l)&&ly(t,s,r,l),Bo=!1,f=t.memoizedState,s.state=f,jd(t,r,s,o);var v=t.memoizedState;i!==d||f!==v||ya.current||Bo?(typeof h=="function"&&(Zp(t,a,h,r),v=t.memoizedState),(u=Bo||iy(t,a,u,r,f,v,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return em(e,t,a,r,n,o)}function em(e,t,a,r,o,n){tC(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Jx(t,a,!1),po(e,t,n);r=t.stateNode,E1.current=t;var i=s&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ui(t,e.child,null,n),t.child=ui(t,null,i,n)):na(e,t,i,n),t.memoizedState=r.state,o&&Jx(t,a,!0),t.child}function aC(e){var t=e.stateNode;t.pendingContext?Yx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yx(e,t.context,!1),Nm(e,t.containerInfo)}function hy(e,t,a,r,o){return li(),Tm(o),t.flags|=256,na(e,t,a,r),t.child}var tm={dehydrated:null,treeContext:null,retryLane:0};function am(e){return{baseLanes:e,cachePool:null,transitions:null}}function rC(e,t,a){var r=t.pendingProps,o=tt.current,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Xe(tt,o&1),e===null)return Kp(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):(s=r.children,e=r.fallback,n?(r=t.mode,n=t.child,s={mode:"hidden",children:s},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=s):n=ic(s,r,0,null),e=Mn(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=am(a),t.memoizedState=tm,e):qm(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return O1(e,t,s,r,i,o,a);if(n){n=r.fallback,s=t.mode,o=e.child,i=o.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Qo(o,l),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=Qo(i,n):(n=Mn(n,s,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,s=e.child.memoizedState,s=s===null?am(a):{baseLanes:s.baseLanes|a,cachePool:null,transitions:s.transitions},n.memoizedState=s,n.childLanes=e.childLanes&~a,t.memoizedState=tm,r}return n=e.child,e=n.sibling,r=Qo(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function qm(e,t){return t=ic({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function md(e,t,a,r){return r!==null&&Tm(r),ui(t,e.child,null,a),e=qm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function O1(e,t,a,r,o,n,s){if(a)return t.flags&256?(t.flags&=-257,r=gp(Error(U(422))),md(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=ic({mode:"visible",children:r.children},o,0,null),n=Mn(n,o,s,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&ui(t,e.child,null,s),t.child.memoizedState=am(s),t.memoizedState=tm,n);if((t.mode&1)===0)return md(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(U(419)),r=gp(n,r,void 0),md(e,t,s,r)}if(i=(s&e.childLanes)!==0,xa||i){if(r=Mt,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|s))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,fo(e,o),lr(r,e,o,-1))}return Zm(),r=gp(Error(U(421))),md(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=K1.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Aa=$o(o.nextSibling),Ea=t,et=!0,sr=null,e!==null&&(Ha[ja++]=so,Ha[ja++]=io,Ha[ja++]=An,so=e.id,io=e.overflow,An=t),t=qm(t,r.children),t.flags|=4096,t)}function gy(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xp(e.return,t,a)}function vp(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function oC(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(na(e,t,r.children,a),r=tt.current,(r&2)!==0)r=r&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&&gy(e,a,t);else if(e.tag===19)gy(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Xe(tt,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Vd(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),vp(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Vd(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}vp(t,!0,a,null,n);break;case"together":vp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ld(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function po(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,a=Qo(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Qo(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function N1(e,t,a){switch(t.tag){case 3:aC(t),li();break;case 5:Tw(t);break;case 1:wa(t.type)&&Fd(t);break;case 4:Nm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Xe(Ud,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Xe(tt,tt.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?rC(e,t,a):(Xe(tt,tt.current&1),e=po(e,t,a),e!==null?e.sibling:null);Xe(tt,tt.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return oC(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Xe(tt,tt.current),r)break;return null;case 22:case 23:return t.lanes=0,eC(e,t,a)}return po(e,t,a)}var nC,rm,sC,iC;nC=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};rm=function(){};sC=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Dn(Ar.current);var n=null;switch(a){case"input":o=bp(e,o),r=bp(e,r),n=[];break;case"select":o=rt({},o,{value:void 0}),r=rt({},r,{value:void 0}),n=[];break;case"textarea":o=Pp(e,o),r=Pp(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Od)}Tp(a,r);var s;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(s in i)i.hasOwnProperty(s)&&(a||(a={}),a[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Al.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var l=r[u];if(i=o?.[u],r.hasOwnProperty(u)&&l!==i&&(l!=null||i!=null))if(u==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(a||(a={}),a[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(a||(a={}),a[s]=l[s])}else a||(n||(n=[]),n.push(u,a)),a=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(n=n||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(n=n||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Al.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Qe("scroll",e),n||i===l||(n=[])):(n=n||[]).push(u,l))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};iC=function(e,t,a,r){a!==r&&(t.flags|=4)};function vl(e,t){if(!et)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function F1(e,t,a){var r=t.pendingProps;switch(Dm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(t),null;case 1:return wa(t.type)&&Nd(),Kt(t),null;case 3:return r=t.stateNode,di(),Ye(ya),Ye(Zt),zm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(fd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sr!==null&&(cm(sr),sr=null))),rm(e,t),Kt(t),null;case 5:Fm(t);var o=Dn(Wl.current);if(a=t.type,e!==null&&t.stateNode!=null)sC(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Kt(t),null}if(e=Dn(Ar.current),fd(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[Mr]=t,r[Vl]=n,e=(t.mode&1)!==0,a){case"dialog":Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":case"embed":Qe("load",r);break;case"video":case"audio":for(o=0;o<Ll.length;o++)Qe(Ll[o],r);break;case"source":Qe("error",r);break;case"img":case"image":case"link":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"input":Ix(r,n),Qe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},Qe("invalid",r);break;case"textarea":kx(r,n),Qe("invalid",r)}Tp(a,n),o=null;for(var s in n)if(n.hasOwnProperty(s)){var i=n[s];s==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&cd(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&cd(r.textContent,i,e),o=["children",""+i]):Al.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&Qe("scroll",r)}switch(a){case"input":Ju(r),bx(r,n,!0);break;case"textarea":Ju(r),Rx(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=Od)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Oy(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(a,{is:r.is}):(e=s.createElement(a),a==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,a),e[Mr]=t,e[Vl]=r,nC(e,t,!1,!1),t.stateNode=e;e:{switch(s=Mp(a,r),a){case"dialog":Qe("cancel",e),Qe("close",e),o=r;break;case"iframe":case"object":case"embed":Qe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ll.length;o++)Qe(Ll[o],e);o=r;break;case"source":Qe("error",e),o=r;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),o=r;break;case"details":Qe("toggle",e),o=r;break;case"input":Ix(e,r),o=bp(e,r),Qe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=rt({},r,{value:void 0}),Qe("invalid",e);break;case"textarea":kx(e,r),o=Pp(e,r),Qe("invalid",e);break;default:o=r}Tp(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var l=i[n];n==="style"?zy(e,l):n==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ny(e,l)):n==="children"?typeof l=="string"?(a!=="textarea"||l!=="")&&El(e,l):typeof l=="number"&&El(e,""+l):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(Al.hasOwnProperty(n)?l!=null&&n==="onScroll"&&Qe("scroll",e):l!=null&&mm(e,n,l,s))}switch(a){case"input":Ju(e),bx(e,r,!1);break;case"textarea":Ju(e),Rx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Yo(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?ei(e,!!r.multiple,n,!1):r.defaultValue!=null&&ei(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Od)}switch(a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Kt(t),null;case 6:if(e&&t.stateNode!=null)iC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(a=Dn(Wl.current),Dn(Ar.current),fd(t)){if(r=t.stateNode,a=t.memoizedProps,r[Mr]=t,(n=r.nodeValue!==a)&&(e=Ea,e!==null))switch(e.tag){case 3:cd(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&cd(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[Mr]=t,t.stateNode=r}return Kt(t),null;case 13:if(Ye(tt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(et&&Aa!==null&&(t.mode&1)!==0&&(t.flags&128)===0)bw(),li(),t.flags|=98560,n=!1;else if(n=fd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(U(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(U(317));n[Mr]=t}else li(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Kt(t),n=!1}else sr!==null&&(cm(sr),sr=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(tt.current&1)!==0?It===0&&(It=3):Zm())),t.updateQueue!==null&&(t.flags|=4),Kt(t),null);case 4:return di(),rm(e,t),e===null&&Hl(t.stateNode.containerInfo),Kt(t),null;case 10:return Am(t.type._context),Kt(t),null;case 17:return wa(t.type)&&Nd(),Kt(t),null;case 19:if(Ye(tt),n=t.memoizedState,n===null)return Kt(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)vl(n,!1);else{if(It!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Vd(e),s!==null){for(t.flags|=128,vl(n,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,s=n.alternate,s===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,e=s.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return Xe(tt,tt.current&1|2),t.child}e=e.sibling}n.tail!==null&<()>fi&&(t.flags|=128,r=!0,vl(n,!1),t.lanes=4194304)}else{if(!r)if(e=Vd(s),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),vl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!et)return Kt(t),null}else 2*lt()-n.renderingStartTime>fi&&a!==1073741824&&(t.flags|=128,r=!0,vl(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(a=n.last,a!==null?a.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=lt(),t.sibling=null,a=tt.current,Xe(tt,r?a&1|2:a&1),t):(Kt(t),null);case 22:case 23:return Xm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(_a&1073741824)!==0&&(Kt(t),t.subtreeFlags&6&&(t.flags|=8192)):Kt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function z1(e,t){switch(Dm(t),t.tag){case 1:return wa(t.type)&&Nd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return di(),Ye(ya),Ye(Zt),zm(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Fm(t),null;case 13:if(Ye(tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(tt),null;case 4:return di(),null;case 10:return Am(t.type._context),null;case 22:case 23:return Xm(),null;case 24:return null;default:return null}}var hd=!1,Xt=!1,B1=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Ys(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){st(e,t,r)}else a.current=null}function om(e,t,a){try{a()}catch(r){st(e,t,r)}}var vy=!1;function U1(e,t){if(Hp=_d,e=fw(),Rm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var s=0,i=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==a||o!==0&&d.nodeType!==3||(i=s+o),d!==n||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===a&&++u===o&&(i=s),f===n&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}a=i===-1||l===-1?null:{start:i,end:l}}else a=null}a=a||{start:0,end:0}}else a=null;for(jp={focusedElem:e,selectionRange:a},_d=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,w=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:or(t.type,x),w);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(y){st(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return v=vy,vy=!1,v}function Tl(e,t,a){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var n=o.destroy;o.destroy=void 0,n!==void 0&&om(t,a,n)}o=o.next}while(o!==r)}}function nc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function nm(e){var t=e.ref;if(t!==null){var a=e.stateNode;e.tag,e=a,typeof t=="function"?t(e):t.current=e}}function lC(e){var t=e.alternate;t!==null&&(e.alternate=null,lC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mr],delete t[Vl],delete t[Wp],delete t[S1],delete t[L1])),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 uC(e){return e.tag===5||e.tag===3||e.tag===4}function xy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uC(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 sm(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Od));else if(r!==4&&(e=e.child,e!==null))for(sm(e,t,a),e=e.sibling;e!==null;)sm(e,t,a),e=e.sibling}function im(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(im(e,t,a),e=e.sibling;e!==null;)im(e,t,a),e=e.sibling}var Ft=null,nr=!1;function Fo(e,t,a){for(a=a.child;a!==null;)dC(e,t,a),a=a.sibling}function dC(e,t,a){if(_r&&typeof _r.onCommitFiberUnmount=="function")try{_r.onCommitFiberUnmount(Qd,a)}catch{}switch(a.tag){case 5:Xt||Ys(a,t);case 6:var r=Ft,o=nr;Ft=null,Fo(e,t,a),Ft=r,nr=o,Ft!==null&&(nr?(e=Ft,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):Ft.removeChild(a.stateNode));break;case 18:Ft!==null&&(nr?(e=Ft,a=a.stateNode,e.nodeType===8?dp(e.parentNode,a):e.nodeType===1&&dp(e,a),zl(e)):dp(Ft,a.stateNode));break;case 4:r=Ft,o=nr,Ft=a.stateNode.containerInfo,nr=!0,Fo(e,t,a),Ft=r,nr=o;break;case 0:case 11:case 14:case 15:if(!Xt&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,s=n.destroy;n=n.tag,s!==void 0&&((n&2)!==0||(n&4)!==0)&&om(a,t,s),o=o.next}while(o!==r)}Fo(e,t,a);break;case 1:if(!Xt&&(Ys(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){st(a,t,i)}Fo(e,t,a);break;case 21:Fo(e,t,a);break;case 22:a.mode&1?(Xt=(r=Xt)||a.memoizedState!==null,Fo(e,t,a),Xt=r):Fo(e,t,a);break;default:Fo(e,t,a)}}function yy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new B1),t.forEach(function(r){var o=X1.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function rr(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:Ft=i.stateNode,nr=!1;break e;case 3:Ft=i.stateNode.containerInfo,nr=!0;break e;case 4:Ft=i.stateNode.containerInfo,nr=!0;break e}i=i.return}if(Ft===null)throw Error(U(160));dC(n,s,o),Ft=null,nr=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){st(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)cC(t,e),t=t.sibling}function cC(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rr(t,e),Dr(e),r&4){try{Tl(3,e,e.return),nc(3,e)}catch(x){st(e,e.return,x)}try{Tl(5,e,e.return)}catch(x){st(e,e.return,x)}}break;case 1:rr(t,e),Dr(e),r&512&&a!==null&&Ys(a,a.return);break;case 5:if(rr(t,e),Dr(e),r&512&&a!==null&&Ys(a,a.return),e.flags&32){var o=e.stateNode;try{El(o,"")}catch(x){st(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,s=a!==null?a.memoizedProps:n,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&Ay(o,n),Mp(i,s);var u=Mp(i,n);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?zy(o,d):c==="dangerouslySetInnerHTML"?Ny(o,d):c==="children"?El(o,d):mm(o,c,d,u)}switch(i){case"input":kp(o,n);break;case"textarea":Ey(o,n);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var h=n.value;h!=null?ei(o,!!n.multiple,h,!1):f!==!!n.multiple&&(n.defaultValue!=null?ei(o,!!n.multiple,n.defaultValue,!0):ei(o,!!n.multiple,n.multiple?[]:"",!1))}o[Vl]=n}catch(x){st(e,e.return,x)}}break;case 6:if(rr(t,e),Dr(e),r&4){if(e.stateNode===null)throw Error(U(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(x){st(e,e.return,x)}}break;case 3:if(rr(t,e),Dr(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{zl(t.containerInfo)}catch(x){st(e,e.return,x)}break;case 4:rr(t,e),Dr(e);break;case 13:rr(t,e),Dr(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||($m=lt())),r&4&&yy(e);break;case 22:if(c=a!==null&&a.memoizedState!==null,e.mode&1?(Xt=(u=Xt)||c,rr(t,e),Xt=u):rr(t,e),Dr(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&(e.mode&1)!==0)for(Y=e,c=e.child;c!==null;){for(d=Y=c;Y!==null;){switch(f=Y,h=f.child,f.tag){case 0:case 11:case 14:case 15:Tl(4,f,f.return);break;case 1:Ys(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,a=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){st(r,a,x)}}break;case 5:Ys(f,f.return);break;case 22:if(f.memoizedState!==null){Cy(d);continue}}h!==null?(h.return=f,Y=h):Cy(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=Fy("display",s))}catch(x){st(e,e.return,x)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(x){st(e,e.return,x)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:rr(t,e),Dr(e),r&4&&yy(e);break;case 21:break;default:rr(t,e),Dr(e)}}function Dr(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(uC(a)){var r=a;break e}a=a.return}throw Error(U(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(El(o,""),r.flags&=-33);var n=xy(e);im(e,n,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=xy(e);sm(e,i,s);break;default:throw Error(U(161))}}catch(l){st(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function H1(e,t,a){Y=e,fC(e,t,a)}function fC(e,t,a){for(var r=(e.mode&1)!==0;Y!==null;){var o=Y,n=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||hd;if(!s){var i=o.alternate,l=i!==null&&i.memoizedState!==null||Xt;i=hd;var u=Xt;if(hd=s,(Xt=l)&&!u)for(Y=o;Y!==null;)s=Y,l=s.child,s.tag===22&&s.memoizedState!==null?Sy(o):l!==null?(l.return=s,Y=l):Sy(o);for(;n!==null;)Y=n,fC(n,t,a),n=n.sibling;Y=o,hd=i,Xt=u}wy(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,Y=n):wy(e,t,a)}}function wy(e){for(;Y!==null;){var t=Y;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Xt||nc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xt)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:or(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&oy(t,n,r);break;case 3:var s=t.updateQueue;if(s!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}oy(t,s,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src&&(a.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&zl(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Xt||t.flags&512&&nm(t)}catch(f){st(t,t.return,f)}}if(t===e){Y=null;break}if(a=t.sibling,a!==null){a.return=t.return,Y=a;break}Y=t.return}}function Cy(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Y=a;break}Y=t.return}}function Sy(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{nc(4,t)}catch(l){st(t,a,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){st(t,o,l)}}var n=t.return;try{nm(t)}catch(l){st(t,n,l)}break;case 5:var s=t.return;try{nm(t)}catch(l){st(t,s,l)}}}catch(l){st(t,t.return,l)}if(t===e){Y=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Y=i;break}Y=t.return}}var j1=Math.ceil,Gd=mo.ReactCurrentDispatcher,Wm=mo.ReactCurrentOwner,qa=mo.ReactCurrentBatchConfig,Ne=0,Mt=null,dt=null,zt=0,_a=0,Js=tn(0),It=0,Xl=null,On=0,sc=0,Gm=0,Ml=null,va=null,$m=0,fi=1/0,oo=null,$d=!1,lm=null,Xo=null,gd=!1,Vo=null,Kd=0,_l=0,um=null,Id=-1,bd=0;function sa(){return(Ne&6)!==0?lt():Id!==-1?Id:Id=lt()}function Zo(e){return(e.mode&1)===0?1:(Ne&2)!==0&&zt!==0?zt&-zt:b1.transition!==null?(bd===0&&(bd=Zy()),bd):(e=Ve,e!==0||(e=window.event,e=e===void 0?16:rw(e.type)),e)}function lr(e,t,a,r){if(50<_l)throw _l=0,um=null,Error(U(185));Zl(e,a,r),((Ne&2)===0||e!==Mt)&&(e===Mt&&((Ne&2)===0&&(sc|=a),It===4&&Ho(e,zt)),Ca(e,r),a===1&&Ne===0&&(t.mode&1)===0&&(fi=lt()+500,ac&&an()))}function Ca(e,t){var a=e.callbackNode;RP(e,t);var r=Md(e,e===Mt?zt:0);if(r===0)a!==null&&Tx(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&Tx(a),t===1)e.tag===0?I1(Ly.bind(null,e)):Sw(Ly.bind(null,e)),w1(function(){(Ne&6)===0&&an()}),a=null;else{switch(Qy(r)){case 1:a=ym;break;case 4:a=Ky;break;case 16:a=Td;break;case 536870912:a=Xy;break;default:a=Td}a=wC(a,pC.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function pC(e,t){if(Id=-1,bd=0,(Ne&6)!==0)throw Error(U(327));var a=e.callbackNode;if(ni()&&e.callbackNode!==a)return null;var r=Md(e,e===Mt?zt:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Xd(e,r);else{t=r;var o=Ne;Ne|=2;var n=hC();(Mt!==e||zt!==t)&&(oo=null,fi=lt()+500,Tn(e,t));do try{W1();break}catch(i){mC(e,i)}while(!0);_m(),Gd.current=n,Ne=o,dt!==null?t=0:(Mt=null,zt=0,t=It)}if(t!==0){if(t===2&&(o=Np(e),o!==0&&(r=o,t=dm(e,o))),t===1)throw a=Xl,Tn(e,0),Ho(e,r),Ca(e,lt()),a;if(t===6)Ho(e,r);else{if(o=e.current.alternate,(r&30)===0&&!V1(o)&&(t=Xd(e,r),t===2&&(n=Np(e),n!==0&&(r=n,t=dm(e,n))),t===1))throw a=Xl,Tn(e,0),Ho(e,r),Ca(e,lt()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:kn(e,va,oo);break;case 3:if(Ho(e,r),(r&130023424)===r&&(t=$m+500-lt(),10<t)){if(Md(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){sa(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=qp(kn.bind(null,e,va,oo),t);break}kn(e,va,oo);break;case 4:if(Ho(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-ir(r);n=1<<s,s=t[s],s>o&&(o=s),r&=~n}if(r=o,r=lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*j1(r/1960))-r,10<r){e.timeoutHandle=qp(kn.bind(null,e,va,oo),r);break}kn(e,va,oo);break;case 5:kn(e,va,oo);break;default:throw Error(U(329))}}}return Ca(e,lt()),e.callbackNode===a?pC.bind(null,e):null}function dm(e,t){var a=Ml;return e.current.memoizedState.isDehydrated&&(Tn(e,t).flags|=256),e=Xd(e,t),e!==2&&(t=va,va=a,t!==null&&cm(t)),e}function cm(e){va===null?va=e:va.push.apply(va,e)}function V1(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!ur(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ho(e,t){for(t&=~Gm,t&=~sc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-ir(t),r=1<<a;e[a]=-1,t&=~r}}function Ly(e){if((Ne&6)!==0)throw Error(U(327));ni();var t=Md(e,0);if((t&1)===0)return Ca(e,lt()),null;var a=Xd(e,t);if(e.tag!==0&&a===2){var r=Np(e);r!==0&&(t=r,a=dm(e,r))}if(a===1)throw a=Xl,Tn(e,0),Ho(e,t),Ca(e,lt()),a;if(a===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kn(e,va,oo),Ca(e,lt()),null}function Km(e,t){var a=Ne;Ne|=1;try{return e(t)}finally{Ne=a,Ne===0&&(fi=lt()+500,ac&&an())}}function Nn(e){Vo!==null&&Vo.tag===0&&(Ne&6)===0&&ni();var t=Ne;Ne|=1;var a=qa.transition,r=Ve;try{if(qa.transition=null,Ve=1,e)return e()}finally{Ve=r,qa.transition=a,Ne=t,(Ne&6)===0&&an()}}function Xm(){_a=Js.current,Ye(Js)}function Tn(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,y1(a)),dt!==null)for(a=dt.return;a!==null;){var r=a;switch(Dm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Nd();break;case 3:di(),Ye(ya),Ye(Zt),zm();break;case 5:Fm(r);break;case 4:di();break;case 13:Ye(tt);break;case 19:Ye(tt);break;case 10:Am(r.type._context);break;case 22:case 23:Xm()}a=a.return}if(Mt=e,dt=e=Qo(e.current,null),zt=_a=t,It=0,Xl=null,Gm=sc=On=0,va=Ml=null,Pn!==null){for(t=0;t<Pn.length;t++)if(a=Pn[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var s=n.next;n.next=o,r.next=s}a.pending=r}Pn=null}return e}function mC(e,t){do{var a=dt;try{if(_m(),Cd.current=Wd,qd){for(var r=at.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}qd=!1}if(En=0,Tt=Lt=at=null,Dl=!1,Gl=0,Wm.current=null,a===null||a.return===null){It=1,Xl=t,dt=null;break}e:{var n=e,s=a.return,i=a,l=t;if(t=zt,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=i,d=c.tag;if((c.mode&1)===0&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=dy(s);if(h!==null){h.flags&=-257,cy(h,s,i,n,t),h.mode&1&&uy(n,u,t),t=h,l=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(l),t.updateQueue=x}else v.add(l);break e}else{if((t&1)===0){uy(n,u,t),Zm();break e}l=Error(U(426))}}else if(et&&i.mode&1){var w=dy(s);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),cy(w,s,i,n,t),Tm(ci(l,i));break e}}n=l=ci(l,i),It!==4&&(It=2),Ml===null?Ml=[n]:Ml.push(n),n=s;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var m=Qw(n,l,t);ry(n,m);break e;case 1:i=l;var p=n.type,g=n.stateNode;if((n.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Xo===null||!Xo.has(g)))){n.flags|=65536,t&=-t,n.lanes|=t;var y=Yw(n,i,t);ry(n,y);break e}}n=n.return}while(n!==null)}vC(a)}catch(L){t=L,dt===a&&a!==null&&(dt=a=a.return);continue}break}while(!0)}function hC(){var e=Gd.current;return Gd.current=Wd,e===null?Wd:e}function Zm(){(It===0||It===3||It===2)&&(It=4),Mt===null||(On&268435455)===0&&(sc&268435455)===0||Ho(Mt,zt)}function Xd(e,t){var a=Ne;Ne|=2;var r=hC();(Mt!==e||zt!==t)&&(oo=null,Tn(e,t));do try{q1();break}catch(o){mC(e,o)}while(!0);if(_m(),Ne=a,Gd.current=r,dt!==null)throw Error(U(261));return Mt=null,zt=0,It}function q1(){for(;dt!==null;)gC(dt)}function W1(){for(;dt!==null&&!xP();)gC(dt)}function gC(e){var t=yC(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?vC(e):dt=t,Wm.current=null}function vC(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=F1(a,t,_a),a!==null){dt=a;return}}else{if(a=z1(a,t),a!==null){a.flags&=32767,dt=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{It=6,dt=null;return}}if(t=t.sibling,t!==null){dt=t;return}dt=t=e}while(t!==null);It===0&&(It=5)}function kn(e,t,a){var r=Ve,o=qa.transition;try{qa.transition=null,Ve=1,G1(e,t,a,r)}finally{qa.transition=o,Ve=r}return null}function G1(e,t,a,r){do ni();while(Vo!==null);if((Ne&6)!==0)throw Error(U(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(PP(e,n),e===Mt&&(dt=Mt=null,zt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||gd||(gd=!0,wC(Td,function(){return ni(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=qa.transition,qa.transition=null;var s=Ve;Ve=1;var i=Ne;Ne|=4,Wm.current=null,U1(e,a),cC(a,e),m1(jp),_d=!!Hp,jp=Hp=null,e.current=a,H1(a,e,o),yP(),Ne=i,Ve=s,qa.transition=n}else e.current=a;if(gd&&(gd=!1,Vo=e,Kd=o),n=e.pendingLanes,n===0&&(Xo=null),SP(a.stateNode,r),Ca(e,lt()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if($d)throw $d=!1,e=lm,lm=null,e;return(Kd&1)!==0&&e.tag!==0&&ni(),n=e.pendingLanes,(n&1)!==0?e===um?_l++:(_l=0,um=e):_l=0,an(),null}function ni(){if(Vo!==null){var e=Qy(Kd),t=qa.transition,a=Ve;try{if(qa.transition=null,Ve=16>e?16:e,Vo===null)var r=!1;else{if(e=Vo,Vo=null,Kd=0,(Ne&6)!==0)throw Error(U(331));var o=Ne;for(Ne|=4,Y=e.current;Y!==null;){var n=Y,s=n.child;if((Y.flags&16)!==0){var i=n.deletions;if(i!==null){for(var l=0;l<i.length;l++){var u=i[l];for(Y=u;Y!==null;){var c=Y;switch(c.tag){case 0:case 11:case 15:Tl(8,c,n)}var d=c.child;if(d!==null)d.return=c,Y=d;else for(;Y!==null;){c=Y;var f=c.sibling,h=c.return;if(lC(c),c===u){Y=null;break}if(f!==null){f.return=h,Y=f;break}Y=h}}}var v=n.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}Y=n}}if((n.subtreeFlags&2064)!==0&&s!==null)s.return=n,Y=s;else e:for(;Y!==null;){if(n=Y,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:Tl(9,n,n.return)}var m=n.sibling;if(m!==null){m.return=n.return,Y=m;break e}Y=n.return}}var p=e.current;for(Y=p;Y!==null;){s=Y;var g=s.child;if((s.subtreeFlags&2064)!==0&&g!==null)g.return=s,Y=g;else e:for(s=p;Y!==null;){if(i=Y,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:nc(9,i)}}catch(L){st(i,i.return,L)}if(i===s){Y=null;break e}var y=i.sibling;if(y!==null){y.return=i.return,Y=y;break e}Y=i.return}}if(Ne=o,an(),_r&&typeof _r.onPostCommitFiberRoot=="function")try{_r.onPostCommitFiberRoot(Qd,e)}catch{}r=!0}return r}finally{Ve=a,qa.transition=t}}return!1}function Iy(e,t,a){t=ci(a,t),t=Qw(e,t,1),e=Ko(e,t,1),t=sa(),e!==null&&(Zl(e,1,t),Ca(e,t))}function st(e,t,a){if(e.tag===3)Iy(e,e,a);else for(;t!==null;){if(t.tag===3){Iy(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xo===null||!Xo.has(r))){e=ci(a,e),e=Yw(t,e,1),t=Ko(t,e,1),e=sa(),t!==null&&(Zl(t,1,e),Ca(t,e));break}}t=t.return}}function $1(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=sa(),e.pingedLanes|=e.suspendedLanes&a,Mt===e&&(zt&a)===a&&(It===4||It===3&&(zt&130023424)===zt&&500>lt()-$m?Tn(e,0):Gm|=a),Ca(e,t)}function xC(e,t){t===0&&((e.mode&1)===0?t=1:(t=ad,ad<<=1,(ad&130023424)===0&&(ad=4194304)));var a=sa();e=fo(e,t),e!==null&&(Zl(e,t,a),Ca(e,a))}function K1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),xC(e,a)}function X1(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),xC(e,a)}var yC;yC=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||ya.current)xa=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return xa=!1,N1(e,t,a);xa=(e.flags&131072)!==0}else xa=!1,et&&(t.flags&1048576)!==0&&Lw(t,Bd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ld(e,t),e=t.pendingProps;var o=ii(t,Zt.current);oi(t,a),o=Um(null,t,r,e,o,a);var n=Hm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wa(r)?(n=!0,Fd(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Om(t),o.updater=oc,t.stateNode=o,o._reactInternals=t,Qp(t,r,e,a),t=em(null,t,r,!0,n,a)):(t.tag=0,et&&n&&Pm(t),na(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(Ld(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Q1(r),e=or(r,e),o){case 0:t=Jp(null,t,r,e,a);break e;case 1:t=my(null,t,r,e,a);break e;case 11:t=fy(null,t,r,e,a);break e;case 14:t=py(null,t,r,or(r.type,e),a);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),Jp(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),my(e,t,r,o,a);case 3:e:{if(aC(t),e===null)throw Error(U(387));r=t.pendingProps,n=t.memoizedState,o=n.element,Dw(e,t),jd(t,r,null,a);var s=t.memoizedState;if(r=s.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=ci(Error(U(423)),t),t=hy(e,t,r,a,o);break e}else if(r!==o){o=ci(Error(U(424)),t),t=hy(e,t,r,a,o);break e}else for(Aa=$o(t.stateNode.containerInfo.firstChild),Ea=t,et=!0,sr=null,a=Rw(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(li(),r===o){t=po(e,t,a);break e}na(e,t,r,a)}t=t.child}return t;case 5:return Tw(t),e===null&&Kp(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,s=o.children,Vp(r,o)?s=null:n!==null&&Vp(r,n)&&(t.flags|=32),tC(e,t),na(e,t,s,a),t.child;case 6:return e===null&&Kp(t),null;case 13:return rC(e,t,a);case 4:return Nm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ui(t,null,r,a):na(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),fy(e,t,r,o,a);case 7:return na(e,t,t.pendingProps,a),t.child;case 8:return na(e,t,t.pendingProps.children,a),t.child;case 12:return na(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,s=o.value,Xe(Ud,r._currentValue),r._currentValue=s,n!==null)if(ur(n.value,s)){if(n.children===o.children&&!ya.current){t=po(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){s=n.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(n.tag===1){l=lo(-1,a&-a),l.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}n.lanes|=a,l=n.alternate,l!==null&&(l.lanes|=a),Xp(n.return,a,t),i.lanes|=a;break}l=l.next}}else if(n.tag===10)s=n.type===t.type?null:n.child;else if(n.tag===18){if(s=n.return,s===null)throw Error(U(341));s.lanes|=a,i=s.alternate,i!==null&&(i.lanes|=a),Xp(s,a,t),s=n.sibling}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}na(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,oi(t,a),o=Wa(o),r=r(o),t.flags|=1,na(e,t,r,a),t.child;case 14:return r=t.type,o=or(r,t.pendingProps),o=or(r.type,o),py(e,t,r,o,a);case 15:return Jw(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:or(r,o),Ld(e,t),t.tag=1,wa(r)?(e=!0,Fd(t)):e=!1,oi(t,a),Zw(t,r,o),Qp(t,r,o,a),em(null,t,r,!0,e,a);case 19:return oC(e,t,a);case 22:return eC(e,t,a)}throw Error(U(156,t.tag))};function wC(e,t){return $y(e,t)}function Z1(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Va(e,t,a,r){return new Z1(e,t,a,r)}function Qm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Q1(e){if(typeof e=="function")return Qm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gm)return 11;if(e===vm)return 14}return 2}function Qo(e,t){var a=e.alternate;return a===null?(a=Va(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function kd(e,t,a,r,o,n){var s=2;if(r=e,typeof e=="function")Qm(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vs:return Mn(a.children,o,n,t);case hm:s=8,o|=8;break;case Cp:return e=Va(12,a,t,o|2),e.elementType=Cp,e.lanes=n,e;case Sp:return e=Va(13,a,t,o),e.elementType=Sp,e.lanes=n,e;case Lp:return e=Va(19,a,t,o),e.elementType=Lp,e.lanes=n,e;case Ty:return ic(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Py:s=10;break e;case Dy:s=9;break e;case gm:s=11;break e;case vm:s=14;break e;case zo:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Va(s,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function Mn(e,t,a,r){return e=Va(7,e,r,t),e.lanes=a,e}function ic(e,t,a,r){return e=Va(22,e,r,t),e.elementType=Ty,e.lanes=a,e.stateNode={isHidden:!1},e}function xp(e,t,a){return e=Va(6,e,null,t),e.lanes=a,e}function yp(e,t,a){return t=Va(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Y1(e,t,a,r,o){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=ap(0),this.expirationTimes=ap(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ap(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ym(e,t,a,r,o,n,s,i,l){return e=new Y1(e,t,a,i,l),t===1?(t=1,n===!0&&(t|=8)):t=0,n=Va(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Om(n),e}function J1(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:js,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function CC(e){if(!e)return Jo;e=e._reactInternals;e:{if(zn(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var a=e.type;if(wa(a))return Cw(e,a,t)}return t}function SC(e,t,a,r,o,n,s,i,l){return e=Ym(a,r,!0,e,o,n,s,i,l),e.context=CC(null),a=e.current,r=sa(),o=Zo(a),n=lo(r,o),n.callback=t??null,Ko(a,n,o),e.current.lanes=o,Zl(e,o,r),Ca(e,r),e}function lc(e,t,a,r){var o=t.current,n=sa(),s=Zo(o);return a=CC(a),t.context===null?t.context=a:t.pendingContext=a,t=lo(n,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ko(o,t,s),e!==null&&(lr(e,o,s,n),wd(e,o,s)),s}function Zd(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function by(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Jm(e,t){by(e,t),(e=e.alternate)&&by(e,t)}function eD(){return null}var LC=typeof reportError=="function"?reportError:function(e){console.error(e)};function eh(e){this._internalRoot=e}uc.prototype.render=eh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));lc(e,t,null,null)};uc.prototype.unmount=eh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nn(function(){lc(null,e,null,null)}),t[co]=null}};function uc(e){this._internalRoot=e}uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ew();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Uo.length&&t!==0&&t<Uo[a].priority;a++);Uo.splice(a,0,e),a===0&&aw(e)}};function th(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function dc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ky(){}function tD(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=Zd(s);n.call(u)}}var s=SC(t,r,e,0,null,!1,!1,"",ky);return e._reactRootContainer=s,e[co]=s.current,Hl(e.nodeType===8?e.parentNode:e),Nn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=Zd(l);i.call(u)}}var l=Ym(e,0,!1,null,null,!1,!1,"",ky);return e._reactRootContainer=l,e[co]=l.current,Hl(e.nodeType===8?e.parentNode:e),Nn(function(){lc(t,l,a,r)}),l}function cc(e,t,a,r,o){var n=a._reactRootContainer;if(n){var s=n;if(typeof o=="function"){var i=o;o=function(){var l=Zd(s);i.call(l)}}lc(t,s,e,o)}else s=tD(a,t,e,o,r);return Zd(s)}Yy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=Sl(t.pendingLanes);a!==0&&(wm(t,a|1),Ca(t,lt()),(Ne&6)===0&&(fi=lt()+500,an()))}break;case 13:Nn(function(){var r=fo(e,1);if(r!==null){var o=sa();lr(r,e,1,o)}}),Jm(e,1)}};Cm=function(e){if(e.tag===13){var t=fo(e,134217728);if(t!==null){var a=sa();lr(t,e,134217728,a)}Jm(e,134217728)}};Jy=function(e){if(e.tag===13){var t=Zo(e),a=fo(e,t);if(a!==null){var r=sa();lr(a,e,t,r)}Jm(e,t)}};ew=function(){return Ve};tw=function(e,t){var a=Ve;try{return Ve=e,t()}finally{Ve=a}};Ap=function(e,t,a){switch(t){case"input":if(kp(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=tc(r);if(!o)throw Error(U(90));_y(r),kp(r,o)}}}break;case"textarea":Ey(e,a);break;case"select":t=a.value,t!=null&&ei(e,!!a.multiple,t,!1)}};Hy=Km;jy=Nn;var aD={usingClientEntryPoint:!1,Events:[Yl,$s,tc,By,Uy,Km]},xl={findFiberByHostInstance:Rn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rD={bundleType:xl.bundleType,version:xl.version,rendererPackageName:xl.rendererPackageName,rendererConfig:xl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wy(e),e===null?null:e.stateNode},findFiberByHostInstance:xl.findFiberByHostInstance||eD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(yl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!yl.isDisabled&&yl.supportsFiber))try{Qd=yl.inject(rD),_r=yl}catch{}var yl;Fa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aD;Fa.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!th(t))throw Error(U(200));return J1(e,t,null,a)};Fa.createRoot=function(e,t){if(!th(e))throw Error(U(299));var a=!1,r="",o=LC;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ym(e,1,!1,null,null,a,!1,r,o),e[co]=t.current,Hl(e.nodeType===8?e.parentNode:e),new eh(t)};Fa.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=Wy(t),e=e===null?null:e.stateNode,e};Fa.flushSync=function(e){return Nn(e)};Fa.hydrate=function(e,t,a){if(!dc(t))throw Error(U(200));return cc(null,e,t,!0,a)};Fa.hydrateRoot=function(e,t,a){if(!th(e))throw Error(U(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",s=LC;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(s=a.onRecoverableError)),t=SC(t,null,e,1,a??null,o,!1,n,s),e[co]=t.current,Hl(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new uc(t)};Fa.render=function(e,t,a){if(!dc(t))throw Error(U(200));return cc(null,e,t,!1,a)};Fa.unmountComponentAtNode=function(e){if(!dc(e))throw Error(U(40));return e._reactRootContainer?(Nn(function(){cc(null,null,e,!1,function(){e._reactRootContainer=null,e[co]=null})}),!0):!1};Fa.unstable_batchedUpdates=Km;Fa.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!dc(a))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return cc(e,t,a,!1,r)};Fa.version="18.3.1-next-f1338f8080-20240426"});var hi=Xr((vF,kC)=>{"use strict";function bC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bC)}catch(e){console.error(e)}}bC(),kC.exports=IC()});var p0=Xr(uv=>{"use strict";var f0=hi();uv.createRoot=f0.createRoot,uv.hydrateRoot=f0.hydrateRoot;var Gq});function Cv(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=Cv(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function Fu(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Cv(e))&&(r&&(r+=" "),r+=t);return r}var k0=(e,t)=>{let a=new Array(e.length+t.length);for(let r=0;r<e.length;r++)a[r]=e[r];for(let r=0;r<t.length;r++)a[e.length+r]=t[r];return a},R0=(e,t)=>({classGroupId:e,validator:t}),Rv=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var Sv=[],P0="arbitrary..",D0=e=>{let t=M0(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return T0(s);let i=s.split("-"),l=i[0]===""&&i.length>1?1:0;return Pv(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let l=r[s],u=a[s];return l?u?k0(u,l):l:u||Sv}return a[s]||Sv}}},Pv=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let o=e[t],n=a.nextPart.get(o);if(n){let u=Pv(e,t+1,n);if(u)return u}let s=a.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),l=s.length;for(let u=0;u<l;u++){let c=s[u];if(c.validator(i))return c.classGroupId}},T0=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),r=t.slice(0,a);return r?P0+r:void 0})(),M0=e=>{let{theme:t,classGroups:a}=e;return _0(a,t)},_0=(e,t)=>{let a=Rv();for(let r in e){let o=e[r];Ef(o,a,r,t)}return a},Ef=(e,t,a,r)=>{let o=e.length;for(let n=0;n<o;n++){let s=e[n];A0(s,t,a,r)}},A0=(e,t,a,r)=>{if(typeof e=="string"){E0(e,t,a);return}if(typeof e=="function"){O0(e,t,a,r);return}N0(e,t,a,r)},E0=(e,t,a)=>{let r=e===""?t:Dv(t,e);r.classGroupId=a},O0=(e,t,a,r)=>{if(F0(e)){Ef(e(r),t,a,r);return}t.validators===null&&(t.validators=[]),t.validators.push(R0(a,e))},N0=(e,t,a,r)=>{let o=Object.entries(e),n=o.length;for(let s=0;s<n;s++){let[i,l]=o[s];Ef(l,Dv(t,i),a,r)}},Dv=(e,t)=>{let a=e,r=t.split("-"),o=r.length;for(let n=0;n<o;n++){let s=r[n],i=a.nextPart.get(s);i||(i=Rv(),a.nextPart.set(s,i)),a=i}return a},F0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,z0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),r=Object.create(null),o=(n,s)=>{a[n]=s,t++,t>e&&(t=0,r=a,a=Object.create(null))};return{get(n){let s=a[n];if(s!==void 0)return s;if((s=r[n])!==void 0)return o(n,s),s},set(n,s){n in a?a[n]=s:o(n,s)}}};var B0=[],Lv=(e,t,a,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:r,isExternal:o}),U0=e=>{let{prefix:t,experimentalParseClassName:a}=e,r=o=>{let n=[],s=0,i=0,l=0,u,c=o.length;for(let x=0;x<c;x++){let w=o[x];if(s===0&&i===0){if(w===":"){n.push(o.slice(l,x)),l=x+1;continue}if(w==="/"){u=x;continue}}w==="["?s++:w==="]"?s--:w==="("?i++:w===")"&&i--}let d=n.length===0?o:o.slice(l),f=d,h=!1;d.endsWith("!")?(f=d.slice(0,-1),h=!0):d.startsWith("!")&&(f=d.slice(1),h=!0);let v=u&&u>l?u-l:void 0;return Lv(n,h,f,v)};if(t){let o=t+":",n=r;r=s=>s.startsWith(o)?n(s.slice(o.length)):Lv(B0,!1,s,void 0,!0)}if(a){let o=r;r=n=>a({className:n,parseClassName:o})}return r},H0=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,r)=>{t.set(a,1e6+r)}),a=>{let r=[],o=[];for(let n=0;n<a.length;n++){let s=a[n],i=s[0]==="[",l=t.has(s);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},j0=e=>({cache:z0(e.cacheSize),parseClassName:U0(e),sortModifiers:H0(e),postfixLookupClassGroupIds:V0(e),...D0(e)}),V0=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let r=0;r<a.length;r++)t[a[r]]=!0;return t},q0=/\s+/,W0=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(q0),u="";for(let c=l.length-1;c>=0;c-=1){let d=l[c],{isExternal:f,modifiers:h,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}=a(d);if(f){u=d+(u.length>0?" "+u:u);continue}let m=!!w,p;if(m){let R=x.substring(0,w);p=r(R);let k=p&&s[p]?r(x):void 0;k&&k!==p&&(p=k,m=!1)}else p=r(x);if(!p){if(!m){u=d+(u.length>0?" "+u:u);continue}if(p=r(x),!p){u=d+(u.length>0?" "+u:u);continue}m=!1}let g=h.length===0?"":h.length===1?h[0]:n(h).join(":"),y=v?g+"!":g,L=y+p;if(i.indexOf(L)>-1)continue;i.push(L);let b=o(p,m);for(let R=0;R<b.length;++R){let k=b[R];i.push(y+k)}u=d+(u.length>0?" "+u:u)}return u},G0=(...e)=>{let t=0,a,r,o="";for(;t<e.length;)(a=e[t++])&&(r=Tv(a))&&(o&&(o+=" "),o+=r);return o},Tv=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Tv(e[r]))&&(a&&(a+=" "),a+=t);return a},$0=(e,...t)=>{let a,r,o,n,s=l=>{let u=t.reduce((c,d)=>d(c),e());return a=j0(u),r=a.cache.get,o=a.cache.set,n=i,i(l)},i=l=>{let u=r(l);if(u)return u;let c=W0(l,a);return o(l,c),c};return n=s,(...l)=>n(G0(...l))},K0=[],St=e=>{let t=a=>a[e]||K0;return t.isThemeGetter=!0,t},Mv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_v=/^\((?:(\w[\w-]*):)?(.+)\)$/i,X0=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Z0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Q0=/\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$/,Y0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,J0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ao=e=>X0.test(e),Ie=e=>!!e&&!Number.isNaN(Number(e)),br=e=>!!e&&Number.isInteger(Number(e)),Af=e=>e.endsWith("%")&&Ie(e.slice(0,-1)),Zr=e=>Z0.test(e),Av=()=>!0,tR=e=>Q0.test(e)&&!Y0.test(e),Of=()=>!1,aR=e=>J0.test(e),rR=e=>eR.test(e),oR=e=>!Z(e)&&!Q(e),nR=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),sR=e=>Eo(e,Nv,Of),Z=e=>Mv.test(e),Cn=e=>Eo(e,Fv,tR),Iv=e=>Eo(e,mR,Ie),iR=e=>Eo(e,Bv,Av),lR=e=>Eo(e,zv,Of),bv=e=>Eo(e,Ev,Of),uR=e=>Eo(e,Ov,rR),zu=e=>Eo(e,Uv,aR),Q=e=>_v.test(e),sl=e=>Sn(e,Fv),dR=e=>Sn(e,zv),kv=e=>Sn(e,Ev),cR=e=>Sn(e,Nv),fR=e=>Sn(e,Ov),Bu=e=>Sn(e,Uv,!0),pR=e=>Sn(e,Bv,!0),Eo=(e,t,a)=>{let r=Mv.exec(e);return r?r[1]?t(r[1]):a(r[2]):!1},Sn=(e,t,a=!1)=>{let r=_v.exec(e);return r?r[1]?t(r[1]):a:!1},Ev=e=>e==="position"||e==="percentage",Ov=e=>e==="image"||e==="url",Nv=e=>e==="length"||e==="size"||e==="bg-size",Fv=e=>e==="length",mR=e=>e==="number",zv=e=>e==="family-name",Bv=e=>e==="number"||e==="weight",Uv=e=>e==="shadow";var hR=()=>{let e=St("color"),t=St("font"),a=St("text"),r=St("font-weight"),o=St("tracking"),n=St("leading"),s=St("breakpoint"),i=St("container"),l=St("spacing"),u=St("radius"),c=St("shadow"),d=St("inset-shadow"),f=St("text-shadow"),h=St("drop-shadow"),v=St("blur"),x=St("perspective"),w=St("aspect"),m=St("ease"),p=St("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...y(),Q,Z],b=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],k=()=>[Q,Z,l],M=()=>[Ao,"full","auto",...k()],E=()=>[br,"none","subgrid",Q,Z],O=()=>["auto",{span:["full",br,Q,Z]},br,Q,Z],T=()=>[br,"auto",Q,Z],_=()=>["auto","min","max","fr",Q,Z],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...k()],H=()=>[Ao,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],V=()=>[Ao,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ae=()=>[Ao,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],D=()=>[e,Q,Z],ge=()=>[...y(),kv,bv,{position:[Q,Z]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",cR,sR,{size:[Q,Z]}],Re=()=>[Af,sl,Cn],Pe=()=>["","none","full",u,Q,Z],Se=()=>["",Ie,sl,Cn],qe=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Ie,Af,kv,bv],He=()=>["","none",v,Q,Z],Fe=()=>["none",Ie,Q,Z],ze=()=>["none",Ie,Q,Z],Oe=()=>[Ie,Q,Z],We=()=>[Ao,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zr],breakpoint:[Zr],color:[Av],container:[Zr],"drop-shadow":[Zr],ease:["in","out","in-out"],font:[oR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zr],shadow:[Zr],spacing:["px",Ie],text:[Zr],"text-shadow":[Zr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ao,Z,Q,w]}],container:["container"],"container-type":[{"@container":["","normal","size",Q,Z]}],"container-named":[nR],columns:[{columns:[Ie,Z,Q,i]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"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:L()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[br,"auto",Q,Z]}],basis:[{basis:[Ao,"full","auto",i,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ie,Ao,"auto","initial","none",Z]}],grow:[{grow:["",Ie,Q,Z]}],shrink:[{shrink:["",Ie,Q,Z]}],order:[{order:[br,"first","last","none",Q,Z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[i,"screen",...H()]}],"min-w":[{"min-w":[i,"screen","none",...H()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",a,sl,Cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,pR,iR]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Af,Z]}],"font-family":[{font:[dR,lR,t]}],"font-features":[{"font-features":[Z]}],"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:[o,Q,Z]}],"line-clamp":[{"line-clamp":[Ie,"none",Q,Iv]}],leading:[{leading:[n,...k()]}],"list-image":[{"list-image":["none",Q,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ie,"from-font","auto",Q,Cn]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[Ie,"auto",Q,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[br,Q,Z]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,Z]}],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",Q,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},br,Q,Z],radial:["",Q,Z],conic:[br,Q,Z]},fR,uR]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:Pe()}],"rounded-s":[{"rounded-s":Pe()}],"rounded-e":[{"rounded-e":Pe()}],"rounded-t":[{"rounded-t":Pe()}],"rounded-r":[{"rounded-r":Pe()}],"rounded-b":[{"rounded-b":Pe()}],"rounded-l":[{"rounded-l":Pe()}],"rounded-ss":[{"rounded-ss":Pe()}],"rounded-se":[{"rounded-se":Pe()}],"rounded-ee":[{"rounded-ee":Pe()}],"rounded-es":[{"rounded-es":Pe()}],"rounded-tl":[{"rounded-tl":Pe()}],"rounded-tr":[{"rounded-tr":Pe()}],"rounded-br":[{"rounded-br":Pe()}],"rounded-bl":[{"rounded-bl":Pe()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...qe(),"hidden","none"]}],"divide-style":[{divide:[...qe(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ie,Q,Z]}],"outline-w":[{outline:["",Ie,sl,Cn]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",c,Bu,zu]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",d,Bu,zu]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[Ie,Cn]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",f,Bu,zu]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[Ie,Q,Z]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],"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":[Ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[Ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,Z]}],filter:[{filter:["","none",Q,Z]}],blur:[{blur:He()}],brightness:[{brightness:[Ie,Q,Z]}],contrast:[{contrast:[Ie,Q,Z]}],"drop-shadow":[{"drop-shadow":["","none",h,Bu,zu]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",Ie,Q,Z]}],"hue-rotate":[{"hue-rotate":[Ie,Q,Z]}],invert:[{invert:["",Ie,Q,Z]}],saturate:[{saturate:[Ie,Q,Z]}],sepia:[{sepia:["",Ie,Q,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,Z]}],"backdrop-blur":[{"backdrop-blur":He()}],"backdrop-brightness":[{"backdrop-brightness":[Ie,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[Ie,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ie,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ie,Q,Z]}],"backdrop-invert":[{"backdrop-invert":["",Ie,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[Ie,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[Ie,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",Ie,Q,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ie,"initial",Q,Z]}],ease:[{ease:["linear","initial",m,Q,Z]}],delay:[{delay:[Ie,Q,Z]}],animate:[{animate:["none",p,Q,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Q,Z]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:ze()}],"scale-x":[{"scale-x":ze()}],"scale-y":[{"scale-y":ze()}],"scale-z":[{"scale-z":ze()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[Q,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:We()}],"translate-x":[{"translate-x":We()}],"translate-y":[{"translate-y":We()}],"translate-z":[{"translate-z":We()}],"translate-none":["translate-none"],zoom:[{zoom:[br,Q,Z]}],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"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",Q,Z]}],"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":D()}],"scrollbar-track-color":[{"scrollbar-track":D()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",Q,Z]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[Ie,sl,Cn,Iv]}],stroke:[{stroke:["none",...D()]}],"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"]}};var Hv=$0(hR);function Nf(e={}){let t=e.styleId??"xpert-shadcn-ui-theme-vars";if(typeof document>"u")return;e.density==="compact"?document.documentElement.dataset.xuiDensity="compact":e.density==="default"&&delete document.documentElement.dataset.xuiDensity;let a=document.getElementById(t);a||(a=document.createElement("style"),a.id=t,document.head.appendChild(a)),a.textContent=`
|
|
9
|
+
:root {
|
|
10
|
+
--background: var(--xui-color-background, #ffffff);
|
|
11
|
+
--foreground: var(--xui-color-foreground, #18181b);
|
|
12
|
+
--card: var(--xui-color-card, var(--background));
|
|
13
|
+
--card-foreground: var(--xui-color-card-foreground, var(--foreground));
|
|
14
|
+
--popover: var(--xui-color-popover, var(--card));
|
|
15
|
+
--popover-foreground: var(--xui-color-popover-foreground, var(--foreground));
|
|
16
|
+
--primary: var(--xui-color-primary, #0f766e);
|
|
17
|
+
--primary-foreground: var(--xui-color-primary-foreground, #ffffff);
|
|
18
|
+
--secondary: var(--xui-color-secondary, var(--xui-color-muted, #f4f4f5));
|
|
19
|
+
--secondary-foreground: var(--xui-color-secondary-foreground, var(--foreground));
|
|
20
|
+
--muted: var(--xui-color-muted, #f4f4f5);
|
|
21
|
+
--muted-foreground: var(--xui-color-muted-foreground, #71717a);
|
|
22
|
+
--accent: var(--xui-color-accent, var(--muted));
|
|
23
|
+
--accent-foreground: var(--xui-color-accent-foreground, var(--foreground));
|
|
24
|
+
--destructive: var(--xui-color-destructive, #dc2626);
|
|
25
|
+
--destructive-foreground: var(--xui-color-destructive-foreground, #ffffff);
|
|
26
|
+
--success: var(--xui-color-success, #047857);
|
|
27
|
+
--warning: var(--xui-color-warning, #b45309);
|
|
28
|
+
--info: var(--xui-color-info, #2563eb);
|
|
29
|
+
--border: var(--xui-color-border, #e4e4e7);
|
|
30
|
+
--input: var(--xui-color-input, var(--border));
|
|
31
|
+
--ring: var(--xui-color-ring, var(--primary));
|
|
32
|
+
--chart-1: var(--xui-color-chart-1, #0f766e);
|
|
33
|
+
--chart-2: var(--xui-color-chart-2, #2563eb);
|
|
34
|
+
--chart-3: var(--xui-color-chart-3, #f59e0b);
|
|
35
|
+
--chart-4: var(--xui-color-chart-4, #dc2626);
|
|
36
|
+
--chart-5: var(--xui-color-chart-5, #7c3aed);
|
|
37
|
+
--radius: var(--xui-radius-md, 0.5rem);
|
|
38
|
+
--font-sans: var(--xui-font-family, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dark,
|
|
42
|
+
[data-theme='dark'] {
|
|
43
|
+
--background: var(--xui-color-background, #09090b);
|
|
44
|
+
--foreground: var(--xui-color-foreground, #fafafa);
|
|
45
|
+
--card: var(--xui-color-card, #18181b);
|
|
46
|
+
--card-foreground: var(--xui-color-card-foreground, var(--foreground));
|
|
47
|
+
--popover: var(--xui-color-popover, var(--card));
|
|
48
|
+
--popover-foreground: var(--xui-color-popover-foreground, var(--foreground));
|
|
49
|
+
--secondary: var(--xui-color-secondary, #27272a);
|
|
50
|
+
--secondary-foreground: var(--xui-color-secondary-foreground, var(--foreground));
|
|
51
|
+
--muted: var(--xui-color-muted, #27272a);
|
|
52
|
+
--muted-foreground: var(--xui-color-muted-foreground, #a1a1aa);
|
|
53
|
+
--accent: var(--xui-color-accent, var(--muted));
|
|
54
|
+
--accent-foreground: var(--xui-color-accent-foreground, var(--foreground));
|
|
55
|
+
--destructive: var(--xui-color-destructive, #f87171);
|
|
56
|
+
--destructive-foreground: var(--xui-color-destructive-foreground, #ffffff);
|
|
57
|
+
--success: var(--xui-color-success, #34d399);
|
|
58
|
+
--warning: var(--xui-color-warning, #fbbf24);
|
|
59
|
+
--info: var(--xui-color-info, #60a5fa);
|
|
60
|
+
--border: var(--xui-color-border, #27272a);
|
|
61
|
+
--input: var(--xui-color-input, var(--border));
|
|
62
|
+
}
|
|
63
|
+
`}var Wu=F(ee(),1);var Vu=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();var tx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var ax=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase());var jf=e=>{let t=ax(e);return t.charAt(0).toUpperCase()+t.slice(1)};var ll=F(ee(),1);var qu={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"};var rx=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Es=F(ee(),1);var MR=(0,Es.createContext)({});var ox=()=>(0,Es.useContext)(MR);var nx=(0,ll.forwardRef)(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:n,iconNode:s,...i},l)=>{let{size:u=24,strokeWidth:c=2,absoluteStrokeWidth:d=!1,color:f="currentColor",className:h=""}=ox()??{},v=r??d?Number(a??c)*24/Number(t??u):a??c;return(0,ll.createElement)("svg",{ref:l,...qu,width:t??u??qu.width,height:t??u??qu.height,stroke:e??f,strokeWidth:v,className:Vu("lucide",h,o),...!n&&!rx(i)&&{"aria-hidden":"true"},...i},[...s.map(([x,w])=>(0,ll.createElement)(x,w)),...Array.isArray(n)?n:[n]])});var _e=(e,t)=>{let a=(0,Wu.forwardRef)(({className:r,...o},n)=>(0,Wu.createElement)(nx,{ref:n,iconNode:t,className:Vu(`lucide-${tx(jf(e))}`,`lucide-${e}`,r),...o}));return a.displayName=jf(e),a};var _R=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Os=_e("arrow-left",_R);var AR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qr=_e("check",AR);var ER=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Yr=_e("chevron-down",ER);var OR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ns=_e("chevron-up",OR);var NR=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Fs=_e("download",NR);var FR=[["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"}]],kr=_e("ellipsis",FR);var zR=[["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 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ga=_e("file-text",zR);var BR=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],Ln=_e("files",BR);var UR=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Rr=_e("folder",UR);var HR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Jr=_e("info",HR);var jR=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],eo=_e("lock-keyhole",jR);var VR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Oo=_e("plus",VR);var qR=[["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"}]],to=_e("refresh-cw",qR);var WR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ba=_e("search",WR);var GR=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],zs=_e("trash-2",GR);var $R=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Bs=_e("upload",$R);var KR=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],ao=_e("wand-sparkles",KR);var XR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ro=_e("x",XR);var X=F(fe(),1);var hD=F(ee(),1);var EC=F(ee(),1),OC=F(hi(),1);var eu={};_o(eu,{Root:()=>sD,Slot:()=>sD,Slottable:()=>iD,createSlot:()=>Ht,createSlottable:()=>nh});var Ut=F(ee(),1);var RC=F(ee(),1),oD=Object.defineProperty,rh=(e,t)=>oD(e,"name",{value:t,configurable:!0});function ah(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}rh(ah,"setRef");function PC(...e){return t=>{let a=!1,r=e.map(o=>{let n=ah(o,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let o=0;o<r.length;o++){let n=r[o];typeof n=="function"?n():ah(e[o],null)}}}}rh(PC,"composeRefs");function pe(...e){return RC.useCallback(PC(...e),e)}rh(pe,"useComposedRefs");var nD=Object.defineProperty,dr=(e,t)=>nD(e,"name",{value:t,configurable:!0});function Ht(e){let t=Ut.forwardRef((a,r)=>{let{children:o,...n}=a,s=null,i=!1,l=[];oh(o)&&typeof fc=="function"&&(o=fc(o._payload)),Ut.Children.forEach(o,f=>{if(_C(f)){i=!0;let h=f,v="child"in h.props?h.props.child:h.props.children;oh(v)&&typeof fc=="function"&&(v=fc(v._payload)),s=lD(h,v),l.push(s?.props?.children)}else l.push(f)}),s?s=Ut.cloneElement(s,void 0,l):!i&&Ut.Children.count(o)===1&&Ut.isValidElement(o)&&(s=o);let u=s?MC(s):void 0,c=pe(r,u);if(!s){if(o||o===0)throw new Error(i?cD(e):dD(e));return o}let d=TC(n,s.props??{});return s.type!==Ut.Fragment&&(d.ref=r?c:u),Ut.cloneElement(s,d)});return t.displayName=`${e}.Slot`,t}dr(Ht,"createSlot");var sD=Ht("Slot"),DC=Symbol.for("radix.slottable");function nh(e){let t=dr(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=DC,t}dr(nh,"createSlottable");var iD=nh("Slottable"),lD=dr((e,t)=>{if("child"in e.props){let a=e.props.child;return Ut.isValidElement(a)?Ut.cloneElement(a,void 0,e.props.children(a.props.children)):null}return Ut.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function TC(e,t){let a={...t};for(let r in t){let o=e[r],n=t[r];/^on[A-Z]/.test(r)?o&&n?a[r]=(...i)=>{let l=n(...i);return o(...i),l}:o&&(a[r]=o):r==="style"?a[r]={...o,...n}:r==="className"&&(a[r]=[o,n].filter(Boolean).join(" "))}return{...e,...a}}dr(TC,"mergeProps");function MC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}dr(MC,"getElementRef");function _C(e){return Ut.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===DC}dr(_C,"isSlottable");var uD=Symbol.for("react.lazy");function oh(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===uD&&"_payload"in e&&AC(e._payload)}dr(oh,"isLazyComponent");function AC(e){return typeof e=="object"&&e!==null&&"then"in e}dr(AC,"isPromiseLike");var dD=dr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),cD=dr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),fc=Ut[" use ".trim().toString()];var NC=F(fe(),1),fD=Object.defineProperty,pD=(e,t)=>fD(e,"name",{value:t,configurable:!0}),mD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=mD.reduce((e,t)=>{let a=Ht(`Primitive.${t}`),r=EC.forwardRef((o,n)=>{let{asChild:s,...i}=o,l=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,NC.jsx)(l,{...i,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function tu(e,t){e&&OC.flushSync(()=>e.dispatchEvent(t))}pD(tu,"dispatchDiscreteCustomEvent");var gD=F(fe(),1);var FC=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});var Ka=F(ee(),1),sh=F(fe(),1),vD=Object.defineProperty,$a=(e,t)=>vD(e,"name",{value:t,configurable:!0});function xD(e,t){let a=Ka.createContext(t);a.displayName=e+"Context";let r=$a(n=>{let{children:s,...i}=n,l=Ka.useMemo(()=>i,Object.values(i));return(0,sh.jsx)(a.Provider,{value:l,children:s})},"Provider");r.displayName=e+"Provider";function o(n,s={}){let{optional:i=!1}=s,l=Ka.useContext(a);if(l)return l;if(t!==void 0)return t;if(!i)throw new Error(`\`${n}\` must be used within \`${e}\``)}return $a(o,"useContext"),[r,o]}$a(xD,"createContext");function ut(e,t=[]){let a=[];function r(n,s){let i=Ka.createContext(s);i.displayName=n+"Context";let l=a.length;a=[...a,s];let u=$a(d=>{let{scope:f,children:h,...v}=d,x=f?.[e]?.[l]||i,w=Ka.useMemo(()=>v,Object.values(v));return(0,sh.jsx)(x.Provider,{value:w,children:h})},"Provider");u.displayName=n+"Provider";function c(d,f,h={}){let{optional:v=!1}=h,x=f?.[e]?.[l]||i,w=Ka.useContext(x);if(w)return w;if(s!==void 0)return s;if(!v)throw new Error(`\`${d}\` must be used within \`${n}\``)}return $a(c,"useContext"),[u,c]}$a(r,"createContext");let o=$a(()=>{let n=a.map(s=>Ka.createContext(s));return $a(function(i){let l=i?.[e]||n;return Ka.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return o.scopeName=e,[r,zC(o,...t)]}$a(ut,"createContextScope");function zC(...e){let t=e[0];if(e.length===1)return t;let a=$a(()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return $a(function(n){let s=r.reduce((i,{useScope:l,scopeName:u})=>{let d=l(n)[`__scope${u}`];return{...i,...d}},{});return Ka.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}$a(zC,"composeContextScopes");var cr=F(ee(),1);var pc=F(fe(),1),Sa=F(ee(),1);var Bn=F(fe(),1),yD=Object.defineProperty,_t=(e,t)=>yD(e,"name",{value:t,configurable:!0});function Un(e){let t=e+"CollectionProvider",[a,r]=ut(t),[o,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),s=_t(x=>{let{scope:w,children:m}=x,p=cr.useRef(null),g=cr.useRef(new Map).current;return(0,pc.jsx)(o,{scope:w,itemMap:g,collectionRef:p,children:m})},"CollectionProvider");s.displayName=t;let i=e+"CollectionSlot",l=Ht(i),u=cr.forwardRef((x,w)=>{let{scope:m,children:p}=x,g=n(i,m),y=pe(w,g.collectionRef);return(0,pc.jsx)(l,{ref:y,children:p})});u.displayName=i;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ht(c),h=cr.forwardRef((x,w)=>{let{scope:m,children:p,...g}=x,y=cr.useRef(null),L=pe(w,y),b=n(c,m);return cr.useEffect(()=>(b.itemMap.set(y,{ref:y,...g}),()=>{b.itemMap.delete(y)})),(0,pc.jsx)(f,{[d]:"",ref:L,children:p})});h.displayName=c;function v(x){let w=n(e+"CollectionConsumer",x);return cr.useCallback(()=>{let p=w.collectionRef.current;if(!p)return[];let g=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((b,R)=>g.indexOf(b.ref.current)-g.indexOf(R.ref.current))},[w.collectionRef,w.itemMap])}return _t(v,"useCollection"),[{Provider:s,Slot:u,ItemSlot:h},v,r]}_t(Un,"createCollection");var BC=new WeakMap,ih=class rn extends Map{static{_t(this,"OrderedDict")}#e;constructor(t){super(t),this.#e=[...super.keys()],BC.set(this,!0)}set(t,a){return BC.get(this)&&(this.has(t)?this.#e[this.#e.indexOf(t)]=t:this.#e.push(t)),super.set(t,a),this}insert(t,a,r){let o=this.has(a),n=this.#e.length,s=uh(t),i=s>=0?s:n+s,l=i<0||i>=n?-1:i;if(l===this.size||o&&l===this.size-1||l===-1)return this.set(a,r),this;let u=this.size+(o?0:1);s<0&&i++;let c=[...this.#e],d,f=!1;for(let h=i;h<u;h++)if(i===h){let v=c[h];c[h]===a&&(v=c[h+1]),o&&this.delete(a),d=this.get(v),this.set(a,r)}else{!f&&c[h-1]===a&&(f=!0);let v=c[f?h:h-1],x=d;d=this.get(v),this.delete(v),this.set(v,x)}return this}with(t,a,r){let o=new rn(this);return o.insert(t,a,r),o}before(t){let a=this.#e.indexOf(t)-1;if(!(a<0))return this.entryAt(a)}setBefore(t,a,r){let o=this.#e.indexOf(t);return o===-1?this:this.insert(o,a,r)}after(t){let a=this.#e.indexOf(t);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(t,a,r){let o=this.#e.indexOf(t);return o===-1?this:this.insert(o+1,a,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){let a=super.delete(t);return a&&this.#e.splice(this.#e.indexOf(t),1),a}deleteAt(t){let a=this.keyAt(t);return a!==void 0?this.delete(a):!1}at(t){let a=mc(this.#e,t);if(a!==void 0)return this.get(a)}entryAt(t){let a=mc(this.#e,t);if(a!==void 0)return[a,this.get(a)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return mc(this.#e,t)}from(t,a){let r=this.indexOf(t);if(r===-1)return;let o=r+a;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(t,a){let r=this.indexOf(t);if(r===-1)return;let o=r+a;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return o;r++}}findIndex(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return r;r++}return-1}filter(t,a){let r=[],o=0;for(let n of this)Reflect.apply(t,a,[n,o,this])&&r.push(n),o++;return new rn(r)}map(t,a){let r=[],o=0;for(let n of this)r.push([n[0],Reflect.apply(t,a,[n,o,this])]),o++;return new rn(r)}reduce(...t){let[a,r]=t,o=0,n=r??this.at(0);for(let s of this)o===0&&t.length===1?n=s:n=Reflect.apply(a,this,[n,s,o,this]),o++;return n}reduceRight(...t){let[a,r]=t,o=r??this.at(-1);for(let n=this.size-1;n>=0;n--){let s=this.at(n);n===this.size-1&&t.length===1?o=s:o=Reflect.apply(a,this,[o,s,n,this])}return o}toSorted(t){let a=[...this.entries()].sort(t);return new rn(a)}toReversed(){let t=new rn;for(let a=this.size-1;a>=0;a--){let r=this.keyAt(a),o=this.get(r);t.set(r,o)}return t}toSpliced(...t){let a=[...this.entries()];return a.splice(...t),new rn(a)}slice(t,a){let r=new rn,o=this.size-1;if(t===void 0)return r;t<0&&(t=t+this.size),a!==void 0&&a>0&&(o=a-1);for(let n=t;n<=o;n++){let s=this.keyAt(n),i=this.get(s);r.set(s,i)}return r}every(t,a){let r=0;for(let o of this){if(!Reflect.apply(t,a,[o,r,this]))return!1;r++}return!0}some(t,a){let r=0;for(let o of this){if(Reflect.apply(t,a,[o,r,this]))return!0;r++}return!1}};function mc(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=UC(e,t);return a===-1?void 0:e[a]}_t(mc,"at");function UC(e,t){let a=e.length,r=uh(t),o=r>=0?r:a+r;return o<0||o>=a?-1:o}_t(UC,"toSafeIndex");function uh(e){return e!==e||e===0?0:Math.trunc(e)}_t(uh,"toSafeInteger");function wD(e){let t=e+"CollectionProvider",[a,r]=ut(t),[o,n]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ih,setItemMap:_t(()=>{},"setItemMap")}),s=_t(({state:g,...y})=>g?(0,Bn.jsx)(l,{...y,state:g}):(0,Bn.jsx)(i,{...y}),"CollectionProvider");s.displayName=t;let i=_t(g=>{let y=w();return(0,Bn.jsx)(l,{...g,state:y})},"CollectionInit");i.displayName=t+"Init";let l=_t(g=>{let{scope:y,children:L,state:b}=g,R=Sa.useRef(null),[k,M]=Sa.useState(null),E=pe(R,M),[O,T]=b;return Sa.useEffect(()=>{if(!k)return;let _=VC(()=>{});return _.observe(k,{childList:!0,subtree:!0}),()=>{_.disconnect()}},[k]),(0,Bn.jsx)(o,{scope:y,itemMap:O,setItemMap:T,collectionRef:E,collectionRefObject:R,collectionElement:k,children:L})},"CollectionProviderImpl");l.displayName=t+"Impl";let u=e+"CollectionSlot",c=Ht(u),d=Sa.forwardRef((g,y)=>{let{scope:L,children:b}=g,R=n(u,L),k=pe(y,R.collectionRef);return(0,Bn.jsx)(c,{ref:k,children:b})});d.displayName=u;let f=e+"CollectionItemSlot",h="data-radix-collection-item",v=Ht(f),x=Sa.forwardRef((g,y)=>{let{scope:L,children:b,...R}=g,k=Sa.useRef(null),[M,E]=Sa.useState(null),O=pe(y,k,E),T=n(f,L),{setItemMap:_}=T,A=Sa.useRef(R);HC(A.current,R)||(A.current=R);let N=A.current;return Sa.useEffect(()=>{let z=N;return _(H=>M?H.has(M)?H.set(M,{...z,element:M}).toSorted(lh):(H.set(M,{...z,element:M}),H.toSorted(lh)):H),()=>{_(H=>!M||!H.has(M)?H:(H.delete(M),new ih(H)))}},[M,N,_]),(0,Bn.jsx)(v,{[h]:"",ref:O,children:b})});x.displayName=f;function w(){return Sa.useState(new ih)}_t(w,"useInitCollection");function m(g){let{itemMap:y}=n(e+"CollectionConsumer",g);return y}return _t(m,"useCollection"),[{Provider:s,Slot:d,ItemSlot:x},{createCollectionScope:r,useCollection:m,useInitCollection:w}]}_t(wD,"createCollection");function HC(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;let a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(let o of a)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}_t(HC,"shallowEqual");function jC(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}_t(jC,"isElementPreceding");function lh(e,t){return!e[1].element||!t[1].element?0:jC(e[1].element,t[1].element)?-1:1}_t(lh,"sortByDocumentPosition");function VC(e){return new MutationObserver(a=>{for(let r of a)if(r.type==="childList"){e();return}})}_t(VC,"getChildListObserver");var CD=Object.defineProperty,gi=(e,t)=>CD(e,"name",{value:t,configurable:!0}),qC=!!(typeof window<"u"&&window.document&&window.document.createElement);function $(e,t,{checkForDefaultPrevented:a=!0}={}){return gi(function(o){if(e?.(o),a===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}gi($,"composeEventHandlers");function SD(e){if(!qC)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}gi(SD,"getOwnerWindow");function dh(e){if(!qC)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}gi(dh,"getOwnerDocument");function WC(e,t=!1){let{activeElement:a}=dh(e);if(!a?.nodeName)return null;if(GC(a)&&a.contentDocument)return WC(a.contentDocument.body,t);if(t){let r=a.getAttribute("aria-activedescendant");if(r){let o=dh(a).getElementById(r);if(o)return o}}return a}gi(WC,"getActiveElement");function GC(e){return e.tagName==="IFRAME"}gi(GC,"isFrame");var Xa=F(ee(),1);var hc=!1;var $C=F(ee(),1),Ue=globalThis?.document?$C.useLayoutEffect:()=>{};var fr=F(ee(),1);var vi=F(ee(),1),LD=Object.defineProperty,ID=(e,t)=>LD(e,"name",{value:t,configurable:!0}),KC=vi[" useEffectEvent ".trim().toString()],XC=vi[" useInsertionEffect ".trim().toString()];function ch(e){if(typeof KC=="function")return KC(e);let t=vi.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof XC=="function"?XC(()=>{t.current=e}):Ue(()=>{t.current=e}),vi.useMemo(()=>((...a)=>t.current?.(...a)),[])}ID(ch,"useEffectEvent");var bD=Object.defineProperty,au=(e,t)=>bD(e,"name",{value:t,configurable:!0}),kD=Xa[" useInsertionEffect ".trim().toString()]||Ue;function la({prop:e,defaultProp:t,onChange:a=au(()=>{},"onChange"),caller:r}){let[o,n,s]=QC({defaultProp:t,onChange:a}),i=e!==void 0,l=i?e:o;if(hc){let c=Xa.useRef(e!==void 0);Xa.useEffect(()=>{let d=c.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=i},[i,r])}let u=Xa.useCallback(c=>{if(i){let d=YC(c)?c(e):c;d!==e&&s.current?.(d)}else n(c)},[i,e,n,s]);return[l,u]}au(la,"useControllableState");function QC({defaultProp:e,onChange:t}){let[a,r]=Xa.useState(e),o=Xa.useRef(a),n=Xa.useRef(t);return kD(()=>{n.current=t},[t]),Xa.useEffect(()=>{o.current!==a&&(n.current?.(a),o.current=a)},[a,o]),[a,r,n]}au(QC,"useUncontrolledState");function YC(e){return typeof e=="function"}au(YC,"isFunction");var ZC=Symbol("RADIX:SYNC_STATE");function RD(e,t,a,r){let{prop:o,defaultProp:n,onChange:s,caller:i}=t,l=o!==void 0,u=ch(s);if(hc){let w=fr.useRef(o!==void 0);fr.useEffect(()=>{let m=w.current;m!==l&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=l},[l,i])}let c=[{...a,state:n}];r&&c.push(r);let[d,f]=fr.useReducer((w,m)=>{if(m.type===ZC)return{...w,state:m.state};let p=e(w,m);return l&&!Object.is(p.state,w.state)&&u(p.state),p},...c),h=d.state,v=fr.useRef(h);fr.useEffect(()=>{v.current!==h&&(v.current=h,l||u(h))},[h,v,l]);let x=fr.useMemo(()=>o!==void 0?{...d,state:o}:d,[d,o]);return fr.useEffect(()=>{l&&!Object.is(o,d.state)&&f({type:ZC,state:o})},[o,d.state,l]),[x,f]}au(RD,"useControllableStateReducer");var jt=F(ee(),1);var JC=F(ee(),1),PD=Object.defineProperty,ho=(e,t)=>PD(e,"name",{value:t,configurable:!0});function eS(e,t){return JC.useReducer((a,r)=>t[a][r]??a,e)}ho(eS,"useStateMachine");var ua=ho(e=>{let{present:t,children:a}=e,r=tS(t),o=typeof a=="function"?a({present:r.isPresent}):jt.Children.only(a),n=aS(r.ref,rS(o));return typeof a=="function"||r.isPresent?jt.cloneElement(o,{ref:n}):null},"Presence");function tS(e){let[t,a]=jt.useState(),r=jt.useRef(null),o=jt.useRef(e),n=jt.useRef("none"),s=jt.useRef(void 0),i=e?"mounted":"unmounted",[l,u]=eS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return jt.useEffect(()=>{l==="mounted"?(n.current=s.current??xi(r.current),s.current=void 0):n.current="none"},[l]),Ue(()=>{let c=r.current,d=o.current;if(d!==e){let h=n.current,v=xi(c);e?(s.current=v,u("MOUNT")):v==="none"||c?.display==="none"?u("UNMOUNT"):u(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Ue(()=>{if(t){let c,d=t.ownerDocument.defaultView??window,f=ho(v=>{let w=xi(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&w&&(u("ANIMATION_END"),!o.current)){let m=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},"handleAnimationEnd"),h=ho(v=>{v.target===t&&(n.current=xi(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:jt.useCallback(c=>{if(c){let d=getComputedStyle(c);r.current=d,s.current=xi(d)}else r.current=null;a(c)},[])}}ho(tS,"usePresence");function fh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}ho(fh,"setRef");function aS(...e){let t=jt.useRef(e);return t.current=e,jt.useCallback(a=>{let r=t.current,o=!1,n=r.map(s=>{let i=fh(s,a);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let s=0;s<n.length;s++){let i=n[s];typeof i=="function"?i():fh(r[s],null)}}},[])}ho(aS,"useStableComposedRefs");function xi(e){return e?.animationName||"none"}ho(xi,"getAnimationName");function rS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}ho(rS,"getElementRef");var ph=F(ee(),1);var DD=Object.defineProperty,TD=(e,t)=>DD(e,"name",{value:t,configurable:!0}),MD=ph[" useId ".trim().toString()]||(()=>{}),_D=0;function bt(e){let[t,a]=ph.useState(MD());return Ue(()=>{e||a(r=>r??String(_D++))},[e]),e||(t?`radix-${t}`:"")}TD(bt,"useId");var gc=F(ee(),1),OD=F(fe(),1),AD=Object.defineProperty,ED=(e,t)=>AD(e,"name",{value:t,configurable:!0}),ND=gc.createContext(void 0);function go(e){let t=gc.useContext(ND);return e||t||"ltr"}ED(go,"useDirection");var mr={};_o(mr,{Close:()=>FT,Content:()=>DT,Description:()=>OT,Dialog:()=>CT,DialogClose:()=>FT,DialogContent:()=>DT,DialogDescription:()=>OT,DialogOverlay:()=>kT,DialogPortal:()=>bT,DialogTitle:()=>AT,DialogTrigger:()=>LT,Overlay:()=>kT,Portal:()=>bT,Root:()=>CT,Title:()=>AT,Trigger:()=>LT,WarningProvider:()=>zT,createDialogScope:()=>yT});var Ze=F(ee(),1);var Ge=F(ee(),1);var yi=F(ee(),1),FD=Object.defineProperty,zD=(e,t)=>FD(e,"name",{value:t,configurable:!0});function ct(e){let t=yi.useRef(e);return yi.useEffect(()=>{t.current=e}),yi.useMemo(()=>((...a)=>t.current?.(...a)),[])}zD(ct,"useCallbackRef");var nS=F(fe(),1),BD=Object.defineProperty,At=(e,t)=>BD(e,"name",{value:t,configurable:!0}),mh="dismissableLayer.update",UD="dismissableLayer.pointerDownOutside",HD="dismissableLayer.focusOutside",oS,sS=Ge.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),wi=Ge.forwardRef(At(function(t,a){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...c}=t,d=Ge.useContext(sS),[f,h]=Ge.useState(null),v=f?.ownerDocument??globalThis?.document,[,x]=Ge.useState({}),w=pe(a,h),m=Array.from(d.layers),[p]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=p?m.indexOf(p):-1,y=f?m.indexOf(f):-1,L=d.layersWithOutsidePointerEventsDisabled.size>0,b=y>=g,R=Ge.useRef(!1),k=iS(T=>{s?.(T),l?.(T),T.defaultPrevented||u?.()},{ownerDocument:v,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:Ge.useCallback(T=>{if(!(T instanceof Node))return!1;let _=[...d.branches].some(A=>A.contains(T));return b&&!_},[d.branches,b])}),M=lS(T=>{if(o&&R.current)return;let _=T.target;[...d.branches].some(N=>N.contains(_))||(i?.(T),l?.(T),T.defaultPrevented||u?.())},v),E=f?y===m.length-1:!1,O=ct(T=>{T.key==="Escape"&&(n?.(T),!T.defaultPrevented&&u&&(T.preventDefault(),u()))});return Ge.useEffect(()=>{if(E)return v.addEventListener("keydown",O,{capture:!0}),()=>v.removeEventListener("keydown",O,{capture:!0})},[v,E,O]),Ge.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(oS=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hh(),()=>{r&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=oS))}},[f,v,r,d]),Ge.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hh())},[f,d]),Ge.useEffect(()=>{let T=At(()=>x({}),"handleUpdate");return document.addEventListener(mh,T),()=>document.removeEventListener(mh,T)},[]),(0,nS.jsx)(se.div,{...c,ref:w,style:{pointerEvents:L?b?"auto":"none":void 0,...t.style},onFocusCapture:$(t.onFocusCapture,M.onFocusCapture),onBlurCapture:$(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:$(t.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function gh(){let e=Ge.useContext(sS),[t,a]=Ge.useState(null);return Ge.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}At(gh,"useDismissableLayerSurface");var jD=At(()=>!0,"IS_TRUE");function iS(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:n,shouldHandlePointerDownOutside:s=jD}=t,i=ct(e),l=Ge.useRef(!1),u=Ge.useRef(!1),c=Ge.useRef(new Map),d=Ge.useRef(()=>{});return Ge.useEffect(()=>{function f(){u.current=!1,o.current=!1,c.current.clear()}At(f,"resetOutsideInteraction");function h(){return Array.from(c.current.values()).some(Boolean)}At(h,"isOutsideInteractionIntercepted");function v(g){if(!u.current)return;let y=g.target;y instanceof Node&&[...n].some(b=>b.contains(y))||c.current.set(g.type,!0),g.type==="click"&&window.setTimeout(()=>{u.current&&d.current()},0)}At(v,"handleInteractionCapture");function x(g){u.current&&c.current.set(g.type,!1)}At(x,"handleInteractionBubble");let w=At(g=>{if(g.target&&!l.current){let L=function(){a.removeEventListener("click",d.current);let R=h();f(),R||vh(UD,i,b,{discrete:!0})};var y=L;if(At(L,"handleAndDispatchPointerDownOutsideEvent"),!s(g.target)){a.removeEventListener("click",d.current),f(),l.current=!1;return}let b={originalEvent:g};u.current=!0,o.current=r&&g.button===0,c.current.clear(),!r||g.button!==0?L():(a.removeEventListener("click",d.current),d.current=L,a.addEventListener("click",d.current,{once:!0}))}else a.removeEventListener("click",d.current),f();l.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let g of m)a.addEventListener(g,v,!0),a.addEventListener(g,x);let p=window.setTimeout(()=>{a.addEventListener("pointerdown",w)},0);return()=>{window.clearTimeout(p),a.removeEventListener("pointerdown",w),a.removeEventListener("click",d.current);for(let g of m)a.removeEventListener(g,v,!0),a.removeEventListener(g,x)}},[a,i,r,o,n,s]),{onPointerDownCapture:At(()=>l.current=!0,"onPointerDownCapture")}}At(iS,"usePointerDownOutside");function lS(e,t=globalThis?.document){let a=ct(e),r=Ge.useRef(!1);return Ge.useEffect(()=>{let o=At(n=>{n.target&&!r.current&&vh(HD,a,{originalEvent:n},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:At(()=>r.current=!0,"onFocusCapture"),onBlurCapture:At(()=>r.current=!1,"onBlurCapture")}}At(lS,"useFocusOutside");function hh(){let e=new CustomEvent(mh);document.dispatchEvent(e)}At(hh,"dispatchUpdate");function vh(e,t,a,{discrete:r}){let o=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),r?tu(o,n):o.dispatchEvent(n)}At(vh,"handleAndDispatchCustomEvent");var Za=F(ee(),1);var cS=F(fe(),1),VD=Object.defineProperty,da=(e,t)=>VD(e,"name",{value:t,configurable:!0}),xh="focusScope.autoFocusOnMount",yh="focusScope.autoFocusOnUnmount",uS={bubbles:!1,cancelable:!0},Ci=Za.forwardRef(da(function(t,a){let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...i}=t,[l,u]=Za.useState(null),c=ct(n),d=ct(s),f=Za.useRef(null),h=pe(a,u),v=Za.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Za.useEffect(()=>{if(o){let g=function(R){if(v.paused||!l)return;let k=R.target;l.contains(k)?f.current=k:vo(f.current,{select:!0})},y=function(R){if(v.paused||!l)return;let k=R.relatedTarget;k!==null&&(l.contains(k)||vo(f.current,{select:!0}))},L=function(R){if(document.activeElement===document.body)for(let M of R)M.removedNodes.length>0&&vo(l)};var w=g,m=y,p=L;da(g,"handleFocusIn"),da(y,"handleFocusOut"),da(L,"handleMutations"),document.addEventListener("focusin",g),document.addEventListener("focusout",y);let b=new MutationObserver(L);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),b.disconnect()}}},[o,l,v.paused]),Za.useEffect(()=>{if(l){dS.add(v);let w=document.activeElement;if(!l.contains(w)){let p=new CustomEvent(xh,uS);l.addEventListener(xh,c),l.dispatchEvent(p),p.defaultPrevented||(fS(vS(Sh(l)),{select:!0}),document.activeElement===w&&vo(l))}return()=>{l.removeEventListener(xh,c),setTimeout(()=>{let p=new CustomEvent(yh,uS);l.addEventListener(yh,d),l.dispatchEvent(p),p.defaultPrevented||vo(w??document.body,{select:!0}),l.removeEventListener(yh,d),dS.remove(v)},0)}}},[l,c,d,v]);let x=Za.useCallback(w=>{if(!r&&!o||v.paused)return;let m=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,p=document.activeElement;if(m&&p){let g=w.currentTarget,[y,L]=pS(g);y&&L?!w.shiftKey&&p===L?(w.preventDefault(),r&&vo(y,{select:!0})):w.shiftKey&&p===y&&(w.preventDefault(),r&&vo(L,{select:!0})):p===g&&w.preventDefault()}},[r,o,v.paused]);return(0,cS.jsx)(se.div,{tabIndex:-1,...i,ref:h,onKeyDown:x})},"FocusScope"));function fS(e,{select:t=!1}={}){let a=document.activeElement;for(let r of e)if(vo(r,{select:t}),document.activeElement!==a)return}da(fS,"focusFirst");function pS(e){let t=Sh(e),a=wh(t,e),r=wh(t.reverse(),e);return[a,r]}da(pS,"getTabbableEdges");function Sh(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:da(r=>{let o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}da(Sh,"getTabbableCandidates");function wh(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(a?!r.checkVisibility({checkVisibilityCSS:!0}):mS(r,{upTo:t})))return r}da(wh,"findVisible");function mS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}da(mS,"isHidden");function hS(e){return e instanceof HTMLInputElement&&"select"in e}da(hS,"isSelectableInput");function vo(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&hS(e)&&t&&e.select()}}da(vo,"focus");var dS=gS();function gS(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Ch(e,t),e.unshift(t)},remove(t){e=Ch(e,t),e[0]?.resume()}}}da(gS,"createFocusScopesStack");function Ch(e,t){let a=[...e],r=a.indexOf(t);return r!==-1&&a.splice(r,1),a}da(Ch,"arrayRemove");function vS(e){return e.filter(t=>t.tagName!=="A")}da(vS,"removeLinks");var vc=F(ee(),1),xS=F(hi(),1);var yS=F(fe(),1),qD=Object.defineProperty,WD=(e,t)=>qD(e,"name",{value:t,configurable:!0}),Si=vc.forwardRef(WD(function(t,a){let{container:r,...o}=t,[n,s]=vc.useState(!1);Ue(()=>s(!0),[]);let i=r||n&&globalThis?.document?.body;return i?xS.createPortal((0,yS.jsx)(se.div,{...o,ref:a}),i):null},"Portal"));var wS=F(ee(),1),GD=Object.defineProperty,Ih=(e,t)=>GD(e,"name",{value:t,configurable:!0}),xc=0,Li=null;function $D(e){return on(),e.children}Ih($D,"FocusGuards");function on(){wS.useEffect(()=>{Li||(Li={start:Lh(),end:Lh()});let{start:e,end:t}=Li;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),xc++,()=>{xc===1&&(Li?.start.remove(),Li?.end.remove(),Li=null),xc=Math.max(0,xc-1)}},[])}Ih(on,"useFocusGuards");function Lh(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Ih(Lh,"createFocusGuard");var La=function(){return La=Object.assign||function(t){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},La.apply(this,arguments)};function yc(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(a[r[o]]=e[r[o]]);return a}function CS(e,t,a){if(a||arguments.length===2)for(var r=0,o=t.length,n;r<o;r++)(n||!(r in t))&&(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}var Ic=F(ee());var Qt=F(ee());var Hn="right-scroll-bar-position",jn="width-before-scroll-bar",bh="with-scroll-bars-hidden",kh="--removed-body-scroll-bar-size";function wc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var SS=F(ee());function LS(e,t){var a=(0,SS.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(r){var o=a.value;o!==r&&(a.value=r,a.callback(r,o))}}}})[0];return a.callback=t,a.facade}var Cc=F(ee());var KD=typeof window<"u"?Cc.useLayoutEffect:Cc.useEffect,IS=new WeakMap;function Rh(e,t){var a=LS(t||null,function(r){return e.forEach(function(o){return wc(o,r)})});return KD(function(){var r=IS.get(a);if(r){var o=new Set(r),n=new Set(e),s=a.current;o.forEach(function(i){n.has(i)||wc(i,null)}),n.forEach(function(i){o.has(i)||wc(i,s)})}IS.set(a,e)},[e]),a}function XD(e){return e}function ZD(e,t){t===void 0&&(t=XD);var a=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(n){var s=t(n,r);return a.push(s),function(){a=a.filter(function(i){return i!==s})}},assignSyncMedium:function(n){for(r=!0;a.length;){var s=a;a=[],s.forEach(n)}a={push:function(i){return n(i)},filter:function(){return a}}},assignMedium:function(n){r=!0;var s=[];if(a.length){var i=a;a=[],i.forEach(n),s=a}var l=function(){var c=s;s=[],c.forEach(n)},u=function(){return Promise.resolve().then(l)};u(),a={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),a}}}};return o}function Ph(e){e===void 0&&(e={});var t=ZD(null);return t.options=La({async:!0,ssr:!1},e),t}var bS=F(ee()),kS=function(e){var t=e.sideCar,a=yc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return bS.createElement(r,La({},a))};kS.isSideCarExport=!0;function Dh(e,t){return e.useMedium(t),kS}var Sc=Ph();var Th=function(){},ru=Qt.forwardRef(function(e,t){var a=Qt.useRef(null),r=Qt.useState({onScrollCapture:Th,onWheelCapture:Th,onTouchMoveCapture:Th}),o=r[0],n=r[1],s=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,v=e.noIsolation,x=e.inert,w=e.allowPinchZoom,m=e.as,p=m===void 0?"div":m,g=e.gapMode,y=yc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=f,b=Rh([a,t]),R=La(La({},y),o);return Qt.createElement(Qt.Fragment,null,c&&Qt.createElement(L,{sideCar:Sc,removeScrollBar:u,shards:d,noRelative:h,noIsolation:v,inert:x,setCallbacks:n,allowPinchZoom:!!w,lockRef:a,gapMode:g}),s?Qt.cloneElement(Qt.Children.only(i),La(La({},R),{ref:b})):Qt.createElement(p,La({},R,{className:l,ref:b}),i))});ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ru.classNames={fullWidth:jn,zeroRight:Hn};var Je=F(ee());var bi=F(ee());var DS=F(ee());var RS;var PS=function(){if(RS)return RS;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PS();return t&&e.setAttribute("nonce",t),e}function YD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function JD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mh=function(){var e=0,t=null;return{add:function(a){e==0&&(t=QD())&&(YD(t,a),JD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var _h=function(){var e=Mh();return function(t,a){DS.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var ou=function(){var e=_h(),t=function(a){var r=a.styles,o=a.dynamic;return e(r,o),null};return t};var eT={left:0,top:0,right:0,gap:0},Ah=function(e){return parseInt(e||"",10)||0},tT=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ah(a),Ah(r),Ah(o)]},Eh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eT;var t=tT(e),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-a+t[2]-t[0])}};var aT=ou(),Ii="data-scroll-locked",rT=function(e,t,a,r){var o=e.left,n=e.top,s=e.right,i=e.gap;return a===void 0&&(a="margin"),`
|
|
64
|
+
.`.concat(bh,` {
|
|
65
|
+
overflow: hidden `).concat(r,`;
|
|
66
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
67
|
+
}
|
|
68
|
+
body[`).concat(Ii,`] {
|
|
69
|
+
overflow: hidden `).concat(r,`;
|
|
70
|
+
overscroll-behavior: contain;
|
|
71
|
+
`).concat([t&&"position: relative ".concat(r,";"),a==="margin"&&`
|
|
72
|
+
padding-left: `.concat(o,`px;
|
|
73
|
+
padding-top: `).concat(n,`px;
|
|
74
|
+
padding-right: `).concat(s,`px;
|
|
75
|
+
margin-left:0;
|
|
76
|
+
margin-top:0;
|
|
77
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
78
|
+
`),a==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.`).concat(Hn,` {
|
|
82
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.`).concat(jn,` {
|
|
86
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.`).concat(Hn," .").concat(Hn,` {
|
|
90
|
+
right: 0 `).concat(r,`;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.`).concat(jn," .").concat(jn,` {
|
|
94
|
+
margin-right: 0 `).concat(r,`;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
body[`).concat(Ii,`] {
|
|
98
|
+
`).concat(kh,": ").concat(i,`px;
|
|
99
|
+
}
|
|
100
|
+
`)},TS=function(){var e=parseInt(document.body.getAttribute(Ii)||"0",10);return isFinite(e)?e:0},oT=function(){bi.useEffect(function(){return document.body.setAttribute(Ii,(TS()+1).toString()),function(){var e=TS()-1;e<=0?document.body.removeAttribute(Ii):document.body.setAttribute(Ii,e.toString())}},[])},Oh=function(e){var t=e.noRelative,a=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;oT();var n=bi.useMemo(function(){return Eh(o)},[o]);return bi.createElement(aT,{styles:rT(n,!t,o,a?"":"!important")})};var Nh=!1;if(typeof window<"u")try{nu=Object.defineProperty({},"passive",{get:function(){return Nh=!0,!0}}),window.addEventListener("test",nu,nu),window.removeEventListener("test",nu,nu)}catch{Nh=!1}var nu,Vn=Nh?{passive:!1}:!1;var nT=function(e){return e.tagName==="TEXTAREA"},MS=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!nT(e)&&a[t]==="visible")},sT=function(e){return MS(e,"overflowY")},iT=function(e){return MS(e,"overflowX")},Fh=function(e,t){var a=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=_S(e,r);if(o){var n=AS(e,r),s=n[1],i=n[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},lT=function(e){var t=e.scrollTop,a=e.scrollHeight,r=e.clientHeight;return[t,a,r]},uT=function(e){var t=e.scrollLeft,a=e.scrollWidth,r=e.clientWidth;return[t,a,r]},_S=function(e,t){return e==="v"?sT(t):iT(t)},AS=function(e,t){return e==="v"?lT(t):uT(t)},dT=function(e,t){return e==="h"&&t==="rtl"?-1:1},ES=function(e,t,a,r,o){var n=dT(e,window.getComputedStyle(t).direction),s=n*r,i=a.target,l=t.contains(i),u=!1,c=s>0,d=0,f=0;do{if(!i)break;var h=AS(e,i),v=h[0],x=h[1],w=h[2],m=x-w-n*v;(v||m)&&_S(e,i)&&(d+=m,f+=v);var p=i.parentNode;i=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(c&&(o&&Math.abs(d)<1||!o&&s>d)||!c&&(o&&Math.abs(f)<1||!o&&-s>f))&&(u=!0),u};var Lc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},OS=function(e){return[e.deltaX,e.deltaY]},NS=function(e){return e&&"current"in e?e.current:e},cT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fT=function(e){return`
|
|
101
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
102
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
103
|
+
`)},pT=0,ki=[];function FS(e){var t=Je.useRef([]),a=Je.useRef([0,0]),r=Je.useRef(),o=Je.useState(pT++)[0],n=Je.useState(ou)[0],s=Je.useRef(e);Je.useEffect(function(){s.current=e},[e]),Je.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=CS([e.lockRef.current],(e.shards||[]).map(NS),!0).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=Je.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var m=Lc(x),p=a.current,g="deltaX"in x?x.deltaX:p[0]-m[0],y="deltaY"in x?x.deltaY:p[1]-m[1],L,b=x.target,R=Math.abs(g)>Math.abs(y)?"h":"v";if("touches"in x&&R==="h"&&b.type==="range")return!1;var k=window.getSelection(),M=k&&k.anchorNode,E=M?M===b||M.contains(b):!1;if(E)return!1;var O=Fh(R,b);if(!O)return!0;if(O?L=R:(L=R==="v"?"h":"v",O=Fh(R,b)),!O)return!1;if(!r.current&&"changedTouches"in x&&(g||y)&&(r.current=L),!L)return!0;var T=r.current||L;return ES(T,w,x,T==="h"?g:y,!0)},[]),l=Je.useCallback(function(x){var w=x;if(!(!ki.length||ki[ki.length-1]!==n)){var m="deltaY"in w?OS(w):Lc(w),p=t.current.filter(function(L){return L.name===w.type&&(L.target===w.target||w.target===L.shadowParent)&&cT(L.delta,m)})[0];if(p&&p.should){w.cancelable&&w.preventDefault();return}if(!p){var g=(s.current.shards||[]).map(NS).filter(Boolean).filter(function(L){return L.contains(w.target)}),y=g.length>0?i(w,g[0]):!s.current.noIsolation;y&&w.cancelable&&w.preventDefault()}}},[]),u=Je.useCallback(function(x,w,m,p){var g={name:x,delta:w,target:m,should:p,shadowParent:mT(m)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(y){return y!==g})},1)},[]),c=Je.useCallback(function(x){a.current=Lc(x),r.current=void 0},[]),d=Je.useCallback(function(x){u(x.type,OS(x),x.target,i(x,e.lockRef.current))},[]),f=Je.useCallback(function(x){u(x.type,Lc(x),x.target,i(x,e.lockRef.current))},[]);Je.useEffect(function(){return ki.push(n),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Vn),document.addEventListener("touchmove",l,Vn),document.addEventListener("touchstart",c,Vn),function(){ki=ki.filter(function(x){return x!==n}),document.removeEventListener("wheel",l,Vn),document.removeEventListener("touchmove",l,Vn),document.removeEventListener("touchstart",c,Vn)}},[]);var h=e.removeScrollBar,v=e.inert;return Je.createElement(Je.Fragment,null,v?Je.createElement(n,{styles:fT(o)}):null,h?Je.createElement(Oh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var zS=Dh(Sc,FS);var BS=Ic.forwardRef(function(e,t){return Ic.createElement(ru,La({},e,{ref:t,sideCar:zS}))});BS.classNames=ru.classNames;var qn=BS;var hT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ri=new WeakMap,bc=new WeakMap,kc={},zh=0,US=function(e){return e&&(e.host||US(e.parentNode))},gT=function(e,t){return t.map(function(a){if(e.contains(a))return a;var r=US(a);return r&&e.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},vT=function(e,t,a,r){var o=gT(t,Array.isArray(e)?e:[e]);kc[a]||(kc[a]=new WeakMap);var n=kc[a],s=[],i=new Set,l=new Set(o),u=function(d){!d||i.has(d)||(i.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(i.has(f))c(f);else try{var h=f.getAttribute(r),v=h!==null&&h!=="false",x=(Ri.get(f)||0)+1,w=(n.get(f)||0)+1;Ri.set(f,x),n.set(f,w),s.push(f),x===1&&v&&bc.set(f,!0),w===1&&f.setAttribute(a,"true"),v||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return c(t),i.clear(),zh++,function(){s.forEach(function(d){var f=Ri.get(d)-1,h=n.get(d)-1;Ri.set(d,f),n.set(d,h),f||(bc.has(d)||d.removeAttribute(r),bc.delete(d)),h||d.removeAttribute(a)}),zh--,zh||(Ri=new WeakMap,Ri=new WeakMap,bc=new WeakMap,kc={})}},Pi=function(e,t,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||hT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),vT(r,o,a,"aria-hidden")):function(){return null}};var ot=F(fe(),1),xT=Object.defineProperty,Ia=(e,t)=>xT(e,"name",{value:t,configurable:!0}),Uh="Dialog",[HS,yT]=ut(Uh),[wT,pr]=HS(Uh),CT=Ia(e=>{let{__scopeDialog:t,children:a,open:r,defaultOpen:o,onOpenChange:n,modal:s=!0}=e,i=Ze.useRef(null),l=Ze.useRef(null),[u,c]=la({prop:r,defaultProp:o??!1,onChange:n,caller:Uh}),[d,f]=Ze.useState(0),[h,v]=Ze.useState(0);return(0,ot.jsx)(wT,{scope:t,triggerRef:i,contentRef:l,contentId:bt(),titleId:bt(),descriptionId:bt(),titlePresent:d>0,descriptionPresent:h>0,setTitleCount:f,setDescriptionCount:v,open:u,onOpenChange:c,onOpenToggle:Ze.useCallback(()=>c(x=>!x),[c]),modal:s,children:a})},"Dialog"),ST="DialogTrigger",LT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(ST,r),s=pe(a,n.triggerRef);return(0,ot.jsx)(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":Rc(n.open),...o,ref:s,onClick:$(t.onClick,n.onOpenToggle)})},"DialogTrigger")),jS="DialogPortal",[IT,VS]=HS(jS,{forceMount:void 0}),bT=Ia(e=>{let{__scopeDialog:t,forceMount:a,children:r,container:o}=e,n=pr(jS,t);return(0,ot.jsx)(IT,{scope:t,forceMount:a,children:Ze.Children.map(r,s=>(0,ot.jsx)(ua,{present:a||n.open,children:(0,ot.jsx)(Si,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Bh="DialogOverlay",kT=Ze.forwardRef(Ia(function(t,a){let r=VS(Bh,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,s=pr(Bh,t.__scopeDialog);return s.modal?(0,ot.jsx)(ua,{present:o||s.open,children:(0,ot.jsx)(PT,{...n,ref:a})}):null},"DialogOverlay")),RT=Ht("DialogOverlay.RemoveScroll"),PT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(Bh,r),s=gh(),i=pe(a,s);return(0,ot.jsx)(qn,{as:RT,allowPinchZoom:!0,shards:[n.contentRef],children:(0,ot.jsx)(se.div,{"data-state":Rc(n.open),...o,ref:i,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),su="DialogContent",DT=Ze.forwardRef(Ia(function(t,a){let r=VS(su,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,s=pr(su,t.__scopeDialog);return(0,ot.jsx)(ua,{present:o||s.open,children:s.modal?(0,ot.jsx)(TT,{...n,ref:a}):(0,ot.jsx)(MT,{...n,ref:a})})},"DialogContent")),TT=Ze.forwardRef(Ia(function(t,a){let r=pr(su,t.__scopeDialog),o=Ze.useRef(null),n=pe(a,r.contentRef,o);return Ze.useEffect(()=>{let s=o.current;if(s)return Pi(s)},[]),(0,ot.jsx)(qS,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:$(t.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:$(t.onPointerDownOutside,s=>{let i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&s.preventDefault()}),onFocusOutside:$(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),MT=Ze.forwardRef(Ia(function(t,a){let r=pr(su,t.__scopeDialog),o=Ze.useRef(!1),n=Ze.useRef(!1);return(0,ot.jsx)(qS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||r.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let i=s.target;r.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})},"DialogContentNonModal")),qS=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:s,...i}=t,l=pr(su,r);return on(),(0,ot.jsx)(ot.Fragment,{children:(0,ot.jsx)(Ci,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:s,children:(0,ot.jsx)(wi,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Rc(l.open),...i,ref:a,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),_T="DialogTitle",AT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(_T,r),{setTitleCount:s}=n;return Ue(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),(0,ot.jsx)(se.h2,{id:n.titleId,...o,ref:a})},"DialogTitle")),ET="DialogDescription",OT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(ET,r),{setDescriptionCount:s}=n;return Ue(()=>(s(i=>i+1),()=>s(i=>i-1)),[s]),(0,ot.jsx)(se.p,{id:n.descriptionId,...o,ref:a})},"DialogDescription")),NT="DialogClose",FT=Ze.forwardRef(Ia(function(t,a){let{__scopeDialog:r,...o}=t,n=pr(NT,r);return(0,ot.jsx)(se.button,{type:"button",...o,ref:a,onClick:$(t.onClick,()=>n.onOpenChange(!1))})},"DialogClose")),zT=Ia(e=>e.children,"WarningProvider");function Rc(e){return e?"open":"closed"}Ia(Rc,"getState");var lu={};_o(lu,{Checkbox:()=>GT,CheckboxIndicator:()=>KT,Indicator:()=>KT,Root:()=>GT,createCheckboxScope:()=>VT,unstable_BubbleInput:()=>$S,unstable_CheckboxBubbleInput:()=>$S,unstable_CheckboxProvider:()=>Vh,unstable_CheckboxTrigger:()=>GS,unstable_Provider:()=>Vh,unstable_Trigger:()=>GS});var ft=F(ee(),1);var WS=F(ee(),1);var BT=Object.defineProperty,UT=(e,t)=>BT(e,"name",{value:t,configurable:!0});function iu(e){let[t,a]=WS.useState(void 0);return Ue(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let n=o[0],s,i;if("borderBoxSize"in n){let l=n.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;a({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}UT(iu,"useSize");var za=F(fe(),1),HT=Object.defineProperty,yo=(e,t)=>HT(e,"name",{value:t,configurable:!0}),Hh="Checkbox",[jT,VT]=ut(Hh),[qT,jh]=jT(Hh);function Vh(e){let{__scopeCheckbox:t,checked:a,children:r,defaultChecked:o,disabled:n,form:s,name:i,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=e,[f,h]=la({prop:a,defaultProp:o??!1,onChange:l,caller:Hh}),[v,x]=ft.useState(null),[w,m]=ft.useState(null),p=ft.useRef(!1),[g,y]=ft.useReducer(R=>R+1,0),L=v?!!s||!!v.closest("form"):!0,b={checked:f,disabled:n,setChecked:h,control:v,setControl:x,name:i,form:s,value:c,hasConsumerStoppedPropagationRef:p,userInteractionCount:g,onUserInteraction:y,required:u,defaultChecked:xo(o)?!1:o,isFormControl:L,bubbleInput:w,setBubbleInput:m};return(0,za.jsx)(qT,{scope:t,...b,children:KS(d)?d(b):r})}yo(Vh,"CheckboxProvider");var WT="CheckboxTrigger",GS=ft.forwardRef(yo(function({__scopeCheckbox:t,onKeyDown:a,onClick:r,...o},n){let{control:s,value:i,disabled:l,checked:u,required:c,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:h,onUserInteraction:v,isFormControl:x,bubbleInput:w}=jh(WT,t),m=pe(n,d),p=ft.useRef(u);return ft.useEffect(()=>{let g=s?.form;if(g){let y=yo(()=>f(p.current),"reset");return g.addEventListener("reset",y),()=>g.removeEventListener("reset",y)}},[s,f]),(0,za.jsx)(se.button,{type:"button",role:"checkbox","aria-checked":xo(u)?"mixed":u,"aria-required":c,"data-state":qh(u),"data-disabled":l?"":void 0,disabled:l,value:i,...o,ref:m,onKeyDown:$(a,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:$(r,g=>{v(),f(y=>xo(y)?!0:!y),w&&x&&(h.current=g.isPropagationStopped(),h.current||g.stopPropagation())})})},"CheckboxTrigger")),GT=ft.forwardRef(yo(function(t,a){let{__scopeCheckbox:r,name:o,checked:n,defaultChecked:s,required:i,disabled:l,value:u,onCheckedChange:c,form:d,...f}=t;return(0,za.jsx)(Vh,{__scopeCheckbox:r,checked:n,defaultChecked:s,disabled:l,required:i,onCheckedChange:c,name:o,form:d,value:u,internal_do_not_use_render:({isFormControl:h})=>(0,za.jsxs)(za.Fragment,{children:[(0,za.jsx)(GS,{...f,ref:a,__scopeCheckbox:r}),h&&(0,za.jsx)($S,{__scopeCheckbox:r})]})})},"Checkbox")),$T="CheckboxIndicator",KT=ft.forwardRef(yo(function(t,a){let{__scopeCheckbox:r,forceMount:o,...n}=t,s=jh($T,r);return(0,za.jsx)(ua,{present:o||xo(s.checked)||s.checked===!0,children:(0,za.jsx)(se.span,{"data-state":qh(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),XT="CheckboxBubbleInput",$S=ft.forwardRef(yo(function({__scopeCheckbox:t,onClick:a,...r},o){let{control:n,hasConsumerStoppedPropagationRef:s,userInteractionCount:i,checked:l,defaultChecked:u,required:c,disabled:d,name:f,value:h,form:v,bubbleInput:x,setBubbleInput:w}=jh(XT,t),m=pe(o,w),p=iu(n),g=ft.useRef(!1),y=ft.useRef(l),L=ft.useRef(i);ft.useEffect(()=>{let R=x;if(!R)return;let k=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(k,"checked").set,O=i!==L.current;L.current=i;let T=y.current!==l;y.current=l;let _=!(O&&s.current);if(T&&E){g.current=!O;let A=new Event("click",{bubbles:_});R.indeterminate=xo(l),E.call(R,xo(l)?!1:l),R.dispatchEvent(A),g.current=!1}},[x,l,s,i]);let b=ft.useRef(xo(l)?!1:l);return(0,za.jsx)(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??b.current,required:c,disabled:d,name:f,value:h,form:v,...r,tabIndex:-1,ref:m,onClick:$(a,R=>{g.current&&R.stopPropagation()}),style:{...r.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function KS(e){return typeof e=="function"}yo(KS,"isFunction");function xo(e){return e==="indeterminate"}yo(xo,"isIndeterminate");function qh(e){return xo(e)?"indeterminate":e?"checked":"unchecked"}yo(qh,"getState");var re=F(ee(),1);var Vt=F(ee(),1);var QS=["top","right","bottom","left"];var Er=Math.min,hr=Math.max,du=Math.round,cu=Math.floor,Or=e=>({x:e,y:e}),ZT={left:"right",right:"left",bottom:"top",top:"bottom"};function Wh(e,t,a){return hr(e,Er(t,a))}function Nr(e,t){return typeof e=="function"?e(t):e}function wo(e){return e.split("-")[0]}function Wn(e){return e.split("-")[1]}function Dc(e){return e==="x"?"y":"x"}function Tc(e){return e==="y"?"height":"width"}function gr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Mc(e){return Dc(gr(e))}function YS(e,t,a){a===void 0&&(a=!1);let r=Wn(e),o=Mc(e),n=Tc(o),s=o==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=uu(s)),[s,uu(s)]}function JS(e){let t=uu(e);return[Pc(e),t,Pc(t)]}function Pc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var XS=["left","right"],ZS=["right","left"],QT=["top","bottom"],YT=["bottom","top"];function JT(e,t,a){switch(e){case"top":case"bottom":return a?t?ZS:XS:t?XS:ZS;case"left":case"right":return t?QT:YT;default:return[]}}function eL(e,t,a,r){let o=Wn(e),n=JT(wo(e),a==="start",r);return o&&(n=n.map(s=>s+"-"+o),t&&(n=n.concat(n.map(Pc)))),n}function uu(e){let t=wo(e);return ZT[t]+e.slice(t.length)}function eM(e){var t,a,r,o;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Gh(e){return typeof e!="number"?eM(e):{top:e,right:e,bottom:e,left:e}}function Gn(e){let{x:t,y:a,width:r,height:o}=e;return{width:r,height:o,top:a,left:t,right:t+r,bottom:a+o,x:t,y:a}}function tL(e,t,a){let{reference:r,floating:o}=e,n=gr(t),s=Mc(t),i=Tc(s),l=wo(t),u=n==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2,h;switch(l){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}let v=Wn(t);return v&&(h[s]+=f*(v==="end"?1:-1)*(a&&u?-1:1)),h}async function oL(e,t){var a;t===void 0&&(t={});let{x:r,y:o,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Nr(t,e),v=Gh(h),w=i[f?d==="floating"?"reference":"floating":d],m=Gn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(w)))==null||a?w:w.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:l})),p=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),y=await(n.isElement==null?void 0:n.isElement(g))&&await(n.getScale==null?void 0:n.getScale(g))||{x:1,y:1},L=Gn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:p,offsetParent:g,strategy:l}):p);return{top:(m.top-L.top+v.top)/y.y,bottom:(L.bottom-m.bottom+v.bottom)/y.y,left:(m.left-L.left+v.left)/y.x,right:(L.right-m.right+v.right)/y.x}}var tM=50,nL=async(e,t,a)=>{let{placement:r="bottom",strategy:o="absolute",middleware:n=[],platform:s}=a,i=s.detectOverflow?s:{...s,detectOverflow:oL},l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=tL(u,r,l),f=r,h=0,v={};for(let x=0;x<n.length;x++){let w=n[x];if(!w)continue;let{name:m,fn:p}=w,{x:g,y,data:L,reset:b}=await p({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});c=g??c,d=y??d,v[m]={...v[m],...L},b&&h<tM&&(h++,typeof b=="object"&&(b.placement&&(f=b.placement),b.rects&&(u=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=tL(u,f,l)),x=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:v}},sL=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:r,placement:o,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:c=0}=Nr(e,t)||{};if(u==null)return{};let d=Gh(c),f={x:a,y:r},h=Mc(o),v=Tc(h),x=await s.getDimensions(u),w=h==="y",m=w?"top":"left",p=w?"bottom":"right",g=w?"clientHeight":"clientWidth",y=n.reference[v]+n.reference[h]-f[h]-n.floating[v],L=f[h]-n.reference[h],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),R=b?b[g]:0;(!R||!await(s.isElement==null?void 0:s.isElement(b)))&&(R=i.floating[g]||n.floating[v]);let k=y/2-L/2,M=R/2-x[v]/2-1,E=Er(d[m],M),O=Er(d[p],M),T=R-x[v]-O,_=R/2-x[v]/2+k,A=Wh(E,_,T),N=!l.arrow&&Wn(o)!=null&&_!==A&&n.reference[v]/2-(_<E?E:O)-x[v]/2<0,z=N?_<E?_-E:_-T:0;return{[h]:f[h]+z,data:{[h]:A,centerOffset:_-A-z,...N&&{alignmentOffset:z}},reset:N}}});var iL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,r;let{placement:o,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...w}=Nr(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let m=wo(o),p=gr(i),g=wo(i)===i,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),L=f||(g||!x?[uu(i)]:JS(i)),b=v!=="none";!f&&b&&L.push(...eL(i,x,v,y));let R=[i,...L],k=await l.detectOverflow(t,w),M=[],E=((r=n.flip)==null?void 0:r.overflows)||[];if(c&&M.push(k[m]),d){let A=YS(o,s,y);M.push(k[A[0]],k[A[1]])}if(E=[...E,{placement:o,overflows:M}],!M.every(A=>A<=0)){var O,T;let A=(((O=n.flip)==null?void 0:O.index)||0)+1,N=R[A];if(N&&(!(d==="alignment"?p!==gr(N):!1)||E.every(V=>gr(V.placement)===p?V.overflows[0]>0:!0)))return{data:{index:A,overflows:E},reset:{placement:N}};let z=(T=E.filter(H=>H.overflows[0]<=0).sort((H,V)=>H.overflows[1]-V.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(h){case"bestFit":{var _;let H=(_=E.filter(V=>{if(b){let ae=gr(V.placement);return ae===p||ae==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ae=>ae>0).reduce((ae,D)=>ae+D,0)]).sort((V,ae)=>V[1]-ae[1])[0])==null?void 0:_[0];H&&(z=H);break}case"initialPlacement":z=i;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function aL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rL(e){return QS.some(t=>e[t]>=0)}var lL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:r}=t,{strategy:o="referenceHidden",...n}=Nr(e,t);switch(o){case"referenceHidden":{let s=await r.detectOverflow(t,{...n,elementContext:"reference"}),i=aL(s,a.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:rL(i)}}}case"escaped":{let s=await r.detectOverflow(t,{...n,altBoundary:!0}),i=aL(s,a.floating);return{data:{escapedOffsets:i,escaped:rL(i)}}}default:return{}}}}};var uL=new Set(["left","top"]);async function aM(e,t){let{placement:a,platform:r,elements:o}=e,n=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=wo(a),i=Wn(a),l=gr(a)==="y",u=uL.has(s)?-1:1,c=n&&l?-1:1,d=Nr(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}var dL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;let{x:o,y:n,placement:s,middlewareData:i}=t,l=await aM(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:n+l.y,data:{...l,placement:s}}}}},cL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:r,placement:o,platform:n}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:p=>{let{x:g,y}=p;return{x:g,y}}},...u}=Nr(e,t),c={x:a,y:r},d=await n.detectOverflow(t,u),f=gr(o),h=Dc(f),v=c[h],x=c[f],w=(p,g)=>Wh(g+d[p==="y"?"top":"left"],g,g-d[p==="y"?"bottom":"right"]);s&&(v=w(h,v)),i&&(x=w(f,x));let m=l.fn({...t,[h]:v,[f]:x});return{...m,data:{x:m.x-a,y:m.y-r,enabled:{[h]:s,[f]:i}}}}}},fL=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,r;let{x:o,y:n,placement:s,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:d=!0}=Nr(e,t),f={x:o,y:n},h=gr(s),v=Dc(h),x=f[v],w=f[h],m=Nr(u,t),p=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:(a=m.mainAxis)!=null?a:0,crossAxis:(r=m.crossAxis)!=null?r:0};if(c){let L=v==="y"?"height":"width",b=i.reference[v]-i.floating[L]+p.mainAxis,R=i.reference[v]+i.reference[L]-p.mainAxis;x<b?x=b:x>R&&(x=R)}if(d){var g,y;let L=v==="y"?"width":"height",b=uL.has(wo(s)),R=i.reference[h]-i.floating[L]+(b&&((g=l.offset)==null?void 0:g[h])||0)+(b?0:p.crossAxis),k=i.reference[h]+i.reference[L]+(b?0:((y=l.offset)==null?void 0:y[h])||0)-(b?p.crossAxis:0);w<R?w=R:w>k&&(w=k)}return{[v]:x,[h]:w}}}},pL=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:r,platform:o,elements:n}=t,{apply:s=()=>{},...i}=Nr(e,t),l=await o.detectOverflow(t,i),u=wo(a),c=Wn(a),d=gr(a)==="y",{width:f,height:h}=r.floating,v,x;u==="top"||u==="bottom"?(v=u,x=c===(await(o.isRTL==null?void 0:o.isRTL(n.floating))?"start":"end")?"left":"right"):(x=u,v=c==="end"?"top":"bottom");let w=h-l.top-l.bottom,m=f-l.left-l.right,p=Er(h-l[v],w),g=Er(f-l[x],m),y=t.middlewareData.shift,L=!y,b=p,R=g;y!=null&&y.enabled.x&&(R=m),y!=null&&y.enabled.y&&(b=w),L&&!c&&(d?R=f-2*hr(l.left,l.right):b=h-2*hr(l.top,l.bottom)),await s({...t,availableWidth:R,availableHeight:b});let k=await o.getDimensions(n.floating);return f!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function _c(){return typeof window<"u"}function Xn(e){return hL(e)?(e.nodeName||"").toLowerCase():"#document"}function ca(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fr(e){var t;return(t=(hL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hL(e){return _c()?e instanceof Node||e instanceof ca(e).Node:!1}function vr(e){return _c()?e instanceof Element||e instanceof ca(e).Element:!1}function Co(e){return _c()?e instanceof HTMLElement||e instanceof ca(e).HTMLElement:!1}function mL(e){return!_c()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ca(e).ShadowRoot}function fu(e){let{overflow:t,overflowX:a,overflowY:r,display:o}=xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&o!=="inline"&&o!=="contents"}function gL(e){return/^(table|td|th)$/.test(Xn(e))}function pu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var rM=/transform|translate|scale|rotate|perspective|filter/,oM=/paint|layout|strict|content/,$n=e=>!!e&&e!=="none",$h;function Ac(e){let t=vr(e)?xr(e):e;return $n(t.transform)||$n(t.translate)||$n(t.scale)||$n(t.rotate)||$n(t.perspective)||!Ec()&&($n(t.backdropFilter)||$n(t.filter))||rM.test(t.willChange||"")||oM.test(t.contain||"")}function vL(e){let t=nn(e);for(;Co(t)&&!Di(t);){if(Ac(t))return t;if(pu(t))return null;t=nn(t)}return null}function Ec(){return $h==null&&($h=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$h}function Di(e){return/^(html|body|#document)$/.test(Xn(e))}function xr(e){return ca(e).getComputedStyle(e)}function mu(e){return vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nn(e){if(Xn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||mL(e)&&e.host||Fr(e);return mL(t)?t.host:t}function xL(e){let t=nn(e);return Di(t)?(e.ownerDocument||e).body:Co(t)&&fu(t)?t:xL(t)}function Kn(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);let o=xL(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),s=ca(o);if(n){let i=Oc(s);return t.concat(s,s.visualViewport||[],fu(o)?o:[],i&&a?Kn(i):[])}else return t.concat(o,Kn(o,[],a))}function Oc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CL(e){let t=xr(e),a=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Co(e),n=o?e.offsetWidth:a,s=o?e.offsetHeight:r,i=du(a)!==n||du(r)!==s;return i&&(a=n,r=s),{width:a,height:r,$:i}}function Xh(e){return vr(e)?e:e.contextElement}function Ti(e){let t=Xh(e);if(!Co(t))return Or(1);let a=t.getBoundingClientRect(),{width:r,height:o,$:n}=CL(t),s=(n?du(a.width):a.width)/r,i=(n?du(a.height):a.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}var nM=Or(0);function SL(e){let t=ca(e);return!Ec()||!t.visualViewport?nM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sM(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===ca(e)}function Zn(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);let o=e.getBoundingClientRect(),n=Xh(e),s=Or(1);t&&(r?vr(r)&&(s=Ti(r)):s=Ti(e));let i=sM(n,a,r)?SL(n):Or(0),l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(n&&r){let f=ca(n),h=vr(r)?ca(r):r,v=f,x=Oc(v);for(;x&&h!==v;){let w=Ti(x),m=x.getBoundingClientRect(),p=xr(x),g=m.left+(x.clientLeft+parseFloat(p.paddingLeft))*w.x,y=m.top+(x.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=g,u+=y,v=ca(x),x=Oc(v)}}return Gn({width:c,height:d,x:l,y:u})}function Nc(e,t){let a=mu(e).scrollLeft;return t?t.left+a:Zn(Fr(e)).left+a}function LL(e,t){let a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-Nc(e,a),o=a.top+t.scrollTop;return{x:r,y:o}}function iM(e){let{elements:t,rect:a,offsetParent:r,strategy:o}=e,n=o==="fixed",s=Fr(r),i=t?pu(t.floating):!1;if(r===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Or(1),c=Or(0),d=Co(r);if((d||!n)&&((Xn(r)!=="body"||fu(s))&&(l=mu(r)),d)){let h=Zn(r);u=Ti(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}let f=s&&!d&&!n?LL(s,l):Or(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:a.y*u.y-l.scrollTop*u.y+c.y+f.y}}function lM(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function uM(e){let t=mu(e),a=e.ownerDocument.body,r=hr(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),o=hr(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),n=-t.scrollLeft+Nc(e),s=-t.scrollTop;return xr(a).direction==="rtl"&&(n+=hr(e.clientWidth,a.clientWidth)-r),{width:r,height:o,x:n,y:s}}var dM=25;function cM(e,t,a){a===void 0&&(a="viewport");let r=a==="layoutViewport",o=ca(e),n=Fr(e),s=o.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,c=0;if(s){let f=!Ec()||t==="fixed";r?f||(u=-s.offsetLeft,c=-s.offsetTop):(i=s.width,l=s.height,f&&(u=s.offsetLeft,c=s.offsetTop))}if(Nc(n)<=0){let f=n.ownerDocument,h=f.body,v=getComputedStyle(h),x=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(n.clientWidth-h.clientWidth-x),m=getComputedStyle(n).scrollbarGutter==="stable both-edges"?w/2:w;m<=dM&&(i-=m)}return{width:i,height:l,x:u,y:c}}function fM(e,t){let a=Zn(e,!0,t==="fixed"),r=a.top+e.clientTop,o=a.left+e.clientLeft,n=Ti(e),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=o*n.x,u=r*n.y;return{width:s,height:i,x:l,y:u}}function yL(e,t,a){let r;if(t==="viewport"||t==="layoutViewport")r=cM(e,a,t);else if(t==="document")r=uM(Fr(e));else if(vr(t))r=fM(t,a);else{let o=SL(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gn(r)}function pM(e,t){let a=t.get(e);if(a)return a;let r=Kn(e,[],!1).filter(i=>vr(i)&&Xn(i)!=="body"),o=null,n=xr(e).position==="fixed",s=n?nn(e):e;for(;vr(s)&&!Di(s);){let i=xr(s),l=Ac(s),u=o?o.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&i.position==="static")?r=r.filter(d=>d!==s):o=i,s=nn(s)}return t.set(e,r),r}function mM(e){let{element:t,boundary:a,rootBoundary:r,strategy:o}=e,s=[...a==="clippingAncestors"?pu(t)?[]:pM(t,this._c):[].concat(a),r],i=yL(t,s[0],o),l=i.top,u=i.right,c=i.bottom,d=i.left;for(let f=1;f<s.length;f++){let h=yL(t,s[f],o);l=hr(h.top,l),u=Er(h.right,u),c=Er(h.bottom,c),d=hr(h.left,d)}return{width:u-d,height:c-l,x:d,y:l}}function hM(e){let{width:t,height:a}=CL(e);return{width:t,height:a}}function gM(e,t,a){let r=Co(t),o=Fr(t),n=a==="fixed",s=Zn(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Or(0);if((r||!n)&&((Xn(t)!=="body"||fu(o))&&(i=mu(t)),r)){let f=Zn(t,!0,n,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!r&&o&&(l.x=Nc(o));let u=o&&!r&&!n?LL(o,i):Or(0),c=s.left+i.scrollLeft-l.x-u.x,d=s.top+i.scrollTop-l.y-u.y;return{x:c,y:d,width:s.width,height:s.height}}function Kh(e){return xr(e).position==="static"}function wL(e,t){if(!Co(e)||xr(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Fr(e)===a&&(a=a.ownerDocument.body),a}function IL(e,t){let a=ca(e);if(pu(e))return a;if(!Co(e)){let o=nn(e);for(;o&&!Di(o);){if(vr(o)&&!Kh(o))return o;o=nn(o)}return a}let r=wL(e,t);for(;r&&gL(r)&&Kh(r);)r=wL(r,t);return r&&Di(r)&&Kh(r)&&!Ac(r)?a:r||vL(e)||a}var vM=async function(e){let t=this.getOffsetParent||IL,a=this.getDimensions,r=await a(e.floating);return{reference:gM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xM(e){return xr(e).direction==="rtl"}var bL={convertOffsetParentRelativeRectToViewportRelativeRect:iM,getDocumentElement:Fr,getClippingRect:mM,getOffsetParent:IL,getElementRects:vM,getClientRects:lM,getDimensions:hM,getScale:Ti,isElement:vr,isRTL:xM};function kL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yM(e,t,a){let r=null,o,n=Fr(e);function s(){var c;clearTimeout(o),(c=r)==null||c.disconnect(),r=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();let f=e.getBoundingClientRect(),{left:h,top:v,width:x,height:w}=f;if(c||t(),!x||!w)return;let m=cu(v),p=cu(n.clientWidth-(h+x)),g=cu(n.clientHeight-(v+w)),y=cu(h),b={rootMargin:-m+"px "+-p+"px "+-g+"px "+-y+"px",threshold:hr(0,Er(1,d))||1},R=!0;function k(M){let E=M[0].intersectionRatio;if(!kL(f,e.getBoundingClientRect()))return i();if(E!==d){if(!R)return i();E?i(!1,E):o=setTimeout(()=>{i(!1,1e-7)},1e3)}R=!1}try{r=new IntersectionObserver(k,{...b,root:n.ownerDocument})}catch{r=new IntersectionObserver(k,b)}r.observe(e)}let l=ca(e),u=()=>i(a);return l.addEventListener("resize",u),i(!0),()=>{l.removeEventListener("resize",u),s()}}function Zh(e,t,a,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Xh(e),c=o||n?[...u?Kn(u):[],...t?Kn(t):[]]:[];c.forEach(m=>{o&&m.addEventListener("scroll",a),n&&m.addEventListener("resize",a)});let d=u&&i?yM(u,a,n):null,f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),a()}),u&&!l&&h.observe(u),t&&h.observe(t));let v,x=l?Zn(e):null;l&&w();function w(){let m=Zn(e);x&&!kL(x,m)&&a(),x=m,v=requestAnimationFrame(w)}return a(),()=>{var m;c.forEach(p=>{o&&p.removeEventListener("scroll",a),n&&p.removeEventListener("resize",a)}),d?.(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(v)}}var RL=dL;var PL=cL,DL=iL,TL=pL,ML=lL,Qh=sL;var _L=fL,Yh=(e,t,a)=>{let r=new Map,o=a??{},n={...bL,...o.platform,_c:r};return nL(e,t,{...o,platform:n})};var pt=F(ee(),1),EL=F(ee(),1),OL=F(hi(),1),wM=typeof document<"u",CM=function(){},Fc=wM?EL.useLayoutEffect:CM;function zc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!zc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=a;r--!==0;){let n=o[r];if(!(n==="_owner"&&e.$$typeof)&&!zc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function NL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function AL(e,t){let a=NL(e);return Math.round(t*a)/a}function Jh(e){let t=pt.useRef(e);return Fc(()=>{t.current=e}),t}function FL(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:o,elements:{reference:n,floating:s}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[c,d]=pt.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=pt.useState(r);zc(f,r)||h(r);let[v,x]=pt.useState(null),[w,m]=pt.useState(null),p=pt.useCallback(V=>{V!==b.current&&(b.current=V,x(V))},[]),g=pt.useCallback(V=>{V!==R.current&&(R.current=V,m(V))},[]),y=n||v,L=s||w,b=pt.useRef(null),R=pt.useRef(null),k=pt.useRef(c),M=l!=null,E=Jh(l),O=Jh(o),T=Jh(u),_=pt.useCallback(()=>{if(!b.current||!R.current)return;let V={placement:t,strategy:a,middleware:f};O.current&&(V.platform=O.current),Yh(b.current,R.current,V).then(ae=>{let D={...ae,isPositioned:T.current!==!1};A.current&&!zc(k.current,D)&&(k.current=D,OL.flushSync(()=>{d(D)}))})},[f,t,a,O,T]);Fc(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(V=>({...V,isPositioned:!1})))},[u]);let A=pt.useRef(!1);Fc(()=>(A.current=!0,()=>{A.current=!1}),[]),Fc(()=>{if(y&&(b.current=y),L&&(R.current=L),y&&L){if(E.current)return E.current(y,L,_);_()}},[y,L,_,E,M]);let N=pt.useMemo(()=>({reference:b,floating:R,setReference:p,setFloating:g}),[p,g]),z=pt.useMemo(()=>({reference:y,floating:L}),[y,L]),H=pt.useMemo(()=>{let V={position:a,left:0,top:0};if(!z.floating)return V;let ae=AL(z.floating,c.x),D=AL(z.floating,c.y);return i?{...V,transform:"translate("+ae+"px, "+D+"px)",...NL(z.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ae,top:D}},[a,i,z.floating,c.x,c.y]);return pt.useMemo(()=>({...c,update:_,refs:N,elements:z,floatingStyles:H}),[c,_,N,z,H])}var SM=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:r,padding:o}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?Qh({element:r.current,padding:o}).fn(a):{}:r?Qh({element:r,padding:o}).fn(a):{}}}},zL=(e,t)=>{let a=RL(e);return{name:a.name,fn:a.fn,options:[e,t]}},BL=(e,t)=>{let a=PL(e);return{name:a.name,fn:a.fn,options:[e,t]}},UL=(e,t)=>({fn:_L(e).fn,options:[e,t]}),HL=(e,t)=>{let a=DL(e);return{name:a.name,fn:a.fn,options:[e,t]}},jL=(e,t)=>{let a=TL(e);return{name:a.name,fn:a.fn,options:[e,t]}};var VL=(e,t)=>{let a=ML(e);return{name:a.name,fn:a.fn,options:[e,t]}};var qL=(e,t)=>{let a=SM(e);return{name:a.name,fn:a.fn,options:[e,t]}};var WL=F(ee(),1);var eg=F(fe(),1),LM=Object.defineProperty,IM=(e,t)=>LM(e,"name",{value:t,configurable:!0}),bM=WL.forwardRef(IM(function(t,a){let{children:r,width:o=10,height:n=5,...s}=t;return(0,eg.jsx)(se.svg,{...s,ref:a,width:o,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:(0,eg.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),GL=bM;var sn=F(fe(),1),RM=Object.defineProperty,So=(e,t)=>RM(e,"name",{value:t,configurable:!0});var $L="Popper",[KL,Mi]=ut($L),[PM,XL]=KL($L),DM=So(e=>{let{__scopePopper:t,children:a}=e,[r,o]=Vt.useState(null),[n,s]=Vt.useState(void 0);return(0,sn.jsx)(PM,{scope:t,anchor:r,onAnchorChange:o,placementState:n,setPlacementState:s,children:a})},"Popper"),TM="PopperAnchor",MM=Vt.forwardRef(So(function(t,a){let{__scopePopper:r,virtualRef:o,...n}=t,s=XL(TM,r),i=Vt.useRef(null),l=s.onAnchorChange,u=Vt.useCallback(x=>{i.current=x,x&&l(x)},[l]),c=pe(a,u),d=Vt.useRef(null);Vt.useEffect(()=>{if(!o)return;let x=d.current;d.current=o.current,x!==d.current&&l(d.current)});let f=s.placementState&&Bc(s.placementState),h=f?.[0],v=f?.[1];return o?null:(0,sn.jsx)(se.div,{"data-radix-popper-side":h,"data-radix-popper-align":v,...n,ref:c})},"PopperAnchor")),ZL="PopperContent",[_M,AM]=KL(ZL),EM=Vt.forwardRef(So(function(t,a){let{__scopePopper:r,side:o="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:x,...w}=t,m=XL(ZL,r),[p,g]=Vt.useState(null),y=pe(a,g),[L,b]=Vt.useState(null),R=iu(L),k=R?.width??0,M=R?.height??0,E=o+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},T=Array.isArray(c)?c:[c],_=T.length>0,A={padding:O,boundary:T.filter(QL),altBoundary:_},{refs:N,floatingStyles:z,placement:H,isPositioned:V,middlewareData:ae}=FL({strategy:"fixed",placement:E,whileElementsMounted:So((...ue)=>Zh(...ue,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:m.anchor},middleware:[zL({mainAxis:n+M,alignmentAxis:i}),u&&BL({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?UL():void 0,...A}),u&&HL({...A}),jL({...A,apply:So(({elements:ue,rects:He,availableWidth:Fe,availableHeight:ze})=>{let{width:Oe,height:We}=He.reference,ra=ue.floating.style;ra.setProperty("--radix-popper-available-width",`${Fe}px`),ra.setProperty("--radix-popper-available-height",`${ze}px`),ra.setProperty("--radix-popper-anchor-width",`${Oe}px`),ra.setProperty("--radix-popper-anchor-height",`${We}px`)},"apply")}),L&&qL({element:L,padding:l}),zM({arrowWidth:k,arrowHeight:M}),h&&VL({strategy:"referenceHidden",...A,boundary:_?A.boundary:void 0})]}),D=m.setPlacementState;Ue(()=>(D(H),()=>{D(void 0)}),[H,D]);let[ge,ve]=Bc(H),j=ct(x);Ue(()=>{V&&j?.()},[V,j]);let Re=ae.arrow?.x,Pe=ae.arrow?.y,Se=ae.arrow?.centerOffset!==0,[qe,J]=Vt.useState();return Ue(()=>{p&&J(window.getComputedStyle(p).zIndex)},[p]),(0,sn.jsx)("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:V?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:qe,"--radix-popper-transform-origin":[ae.transformOrigin?.x,ae.transformOrigin?.y].join(" "),...ae.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,sn.jsx)(_M,{scope:r,placedSide:ge,placedAlign:ve,onArrowChange:b,arrowX:Re,arrowY:Pe,shouldHideArrow:Se,children:(0,sn.jsx)(se.div,{"data-side":ge,"data-align":ve,...w,ref:y,style:{...w.style,animation:V?w.style?.animation:"none"}})})})},"PopperContent")),OM="PopperArrow",NM={top:"bottom",right:"left",bottom:"top",left:"right"},FM=Vt.forwardRef(So(function(t,a){let{__scopePopper:r,...o}=t,n=AM(OM,r),s=NM[n.placedSide];return(0,sn.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,sn.jsx)(GL,{...o,ref:a,style:{...o.style,display:"block"}})})},"PopperArrow"));function QL(e){return e!==null}So(QL,"isNotNull");var zM=So(e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=Bc(a),d={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+l/2,v="",x="";return u==="bottom"?(v=s?d:`${f}px`,x=`${-l}px`):u==="top"?(v=s?d:`${f}px`,x=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,x=s?d:`${h}px`):u==="left"&&(v=`${r.floating.width+l}px`,x=s?d:`${h}px`),{data:{x:v,y:x}}}}),"transformOrigin");function Bc(e){let[t,a="center"]=e.split("-");return[t,a]}So(Bc,"getSideAndAlignFromPlacement");var hu=DM,Uc=MM,Hc=EM,jc=FM;var Et=F(ee(),1);var UM=F(ee(),1),Vc=F(ee(),1),BM=Object.defineProperty,ag=(e,t)=>BM(e,"name",{value:t,configurable:!0}),tg=!1;function JL(){let[e,t]=Vc.useState(tg);return Vc.useEffect(()=>{tg||(tg=!0,t(!0))},[]),e}ag(JL,"useIsHydrated");var eI=UM[" useSyncExternalStore ".trim().toString()];function tI(){return()=>{}}ag(tI,"subscribe");function aI(){return eI(tI,()=>!0,()=>!1)}ag(aI,"useIsHydratedModern");var rI=typeof eI=="function"?aI:JL;var ln=F(fe(),1),HM=Object.defineProperty,Qn=(e,t)=>HM(e,"name",{value:t,configurable:!0}),rg="rovingFocusGroup.onEntryFocus",jM={bubbles:!1,cancelable:!0},qc="RovingFocusGroup",[og,oI,VM]=Un(qc),[qM,_i]=ut(qc,[VM]),[WM,GM]=qM(qc),$M=Et.forwardRef(Qn(function(t,a){return(0,ln.jsx)(og.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,ln.jsx)(og.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,ln.jsx)(KM,{...t,ref:a})})})},"RovingFocusGroup")),KM=Et.forwardRef(Qn(function(t,a){let{__scopeRovingFocusGroup:r,orientation:o,loop:n=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=t,h=Et.useRef(null),v=pe(a,h),x=go(s),[w,m]=la({prop:i,defaultProp:l??null,onChange:u,caller:qc}),[p,g]=Et.useState(!1),y=ct(c),L=oI(r),b=Et.useRef(!1),[R,k]=Et.useState(0);return Et.useEffect(()=>{let M=h.current;if(M)return M.addEventListener(rg,y),()=>M.removeEventListener(rg,y)},[y]),(0,ln.jsx)(WM,{scope:r,orientation:o,dir:x,loop:n,currentTabStopId:w,onItemFocus:Et.useCallback(M=>m(M),[m]),onItemShiftTab:Et.useCallback(()=>g(!0),[]),onFocusableItemAdd:Et.useCallback(()=>k(M=>M+1),[]),onFocusableItemRemove:Et.useCallback(()=>k(M=>M-1),[]),children:(0,ln.jsx)(se.div,{tabIndex:p||R===0?-1:0,"data-orientation":o,...f,ref:v,style:{outline:"none",...t.style},onMouseDown:$(t.onMouseDown,()=>{b.current=!0}),onFocus:$(t.onFocus,M=>{let E=!b.current;if(M.target===M.currentTarget&&E&&!p){let O=new CustomEvent(rg,jM);if(M.currentTarget.dispatchEvent(O),!O.defaultPrevented){let T=L().filter(H=>H.focusable),_=T.find(H=>H.active),A=T.find(H=>H.id===w),z=[_,A,...T].filter(Boolean).map(H=>H.ref.current);ng(z,d)}}b.current=!1}),onBlur:$(t.onBlur,()=>g(!1))})})},"RovingFocusGroupImpl")),XM="RovingFocusGroupItem",ZM=Et.forwardRef(Qn(function(t,a){let{__scopeRovingFocusGroup:r,focusable:o=!0,active:n=!1,tabStopId:s,children:i,...l}=t,u=bt(),c=s||u,d=GM(XM,r),f=d.currentTabStopId===c,h=oI(r),{onFocusableItemAdd:v,onFocusableItemRemove:x,currentTabStopId:w}=d,m=rI();return Ue(()=>{if(!(!m||!o))return v(),()=>x()},[m,o,v,x]),Et.useEffect(()=>{if(!(m||!o))return v(),()=>x()},[m,o,v,x]),(0,ln.jsx)(og.ItemSlot,{scope:r,id:c,focusable:o,active:n,children:(0,ln.jsx)(se.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:a,onMouseDown:$(t.onMouseDown,p=>{o?d.onItemFocus(c):p.preventDefault()}),onFocus:$(t.onFocus,()=>d.onItemFocus(c)),onKeyDown:$(t.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;let g=sI(p,d.orientation,d.dir);if(g!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let L=h().filter(b=>b.focusable).map(b=>b.ref.current);if(g==="last")L.reverse();else if(g==="prev"||g==="next"){g==="prev"&&L.reverse();let b=L.indexOf(p.currentTarget);L=d.loop?iI(L,b+1):L.slice(b+1)}setTimeout(()=>ng(L))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:w!=null}):i})})},"RovingFocusGroupItem")),QM={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Qn(nI,"getDirectionAwareKey");function sI(e,t,a){let r=nI(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return QM[r]}Qn(sI,"getFocusIntent");function ng(e,t=!1){let a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}Qn(ng,"focusFirst");function iI(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Qn(iI,"wrapArray");var Wc=$M,Gc=ZM;var me=F(fe(),1),YM=Object.defineProperty,Ae=(e,t)=>YM(e,"name",{value:t,configurable:!0}),sg=["Enter"," "],JM=["ArrowDown","PageUp","Home"],dI=["ArrowUp","PageDown","End"],e_=[...JM,...dI],t_={ltr:[...sg,"ArrowRight"],rtl:[...sg,"ArrowLeft"]},a_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Kc="Menu",[gu,r_,o_]=Un(Kc),[Yn,lg]=ut(Kc,[o_,Mi,_i]),xu=Mi(),cI=_i(),[fI,un]=Yn(Kc),[n_,yu]=Yn(Kc),s_=Ae(e=>{let{__scopeMenu:t,open:a=!1,children:r,dir:o,onOpenChange:n,modal:s=!0}=e,i=xu(t),[l,u]=re.useState(null),c=re.useRef(!1),d=ct(n),f=go(o);return re.useEffect(()=>{let h=Ae(()=>{c.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},"handleKeyDown"),v=Ae(()=>c.current=!1,"handlePointer");return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),re.useEffect(()=>{if(!a)return;let h=Ae(()=>d(!1),"handleBlur");return window.addEventListener("blur",h),()=>window.removeEventListener("blur",h)},[a,d]),(0,me.jsx)(hu,{...i,children:(0,me.jsx)(fI,{scope:t,open:a,onOpenChange:d,content:l,onContentChange:u,children:(0,me.jsx)(n_,{scope:t,onClose:re.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:s,children:r})})})},"Menu"),pI=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t,n=xu(r);return(0,me.jsx)(Uc,{...n,...o,ref:a})},"MenuAnchor")),mI="MenuPortal",[i_,hI]=Yn(mI,{forceMount:void 0}),l_=Ae(e=>{let{__scopeMenu:t,forceMount:a,children:r,container:o}=e,n=un(mI,t);return(0,me.jsx)(i_,{scope:t,forceMount:a,children:(0,me.jsx)(ua,{present:a||n.open,children:(0,me.jsx)(Si,{asChild:!0,container:o,children:r})})})},"MenuPortal"),yr="MenuContent",[u_,ug]=Yn(yr),d_=re.forwardRef(Ae(function(t,a){let r=hI(yr,t.__scopeMenu),{forceMount:o=r.forceMount,...n}=t,s=un(yr,t.__scopeMenu),i=yu(yr,t.__scopeMenu);return(0,me.jsx)(gu.Provider,{scope:t.__scopeMenu,children:(0,me.jsx)(ua,{present:o||s.open,children:(0,me.jsx)(gu.Slot,{scope:t.__scopeMenu,children:i.modal?(0,me.jsx)(c_,{...n,ref:a}):(0,me.jsx)(f_,{...n,ref:a})})})})},"MenuContent")),c_=re.forwardRef(Ae(function(t,a){let r=un(yr,t.__scopeMenu),o=re.useRef(null),n=pe(a,o);return re.useEffect(()=>{let s=o.current;if(s)return Pi(s)},[]),(0,me.jsx)(dg,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:$(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),f_=re.forwardRef(Ae(function(t,a){let r=un(yr,t.__scopeMenu);return(0,me.jsx)(dg,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),p_=Ht("MenuContent.ScrollLock"),dg=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,loop:o=!1,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:v,disableOutsideScroll:x,...w}=t,m=un(yr,r),p=yu(yr,r),g=xu(r),y=cI(r),L=r_(r),[b,R]=re.useState(null),k=re.useRef(null),M=pe(a,k,m.onContentChange),E=re.useRef(0),O=re.useRef(""),T=re.useRef(0),_=re.useRef(null),A=re.useRef("right"),N=re.useRef(0),z=x?qn:re.Fragment,H=x?{as:p_,allowPinchZoom:!0}:void 0,V=Ae(D=>{let ge=O.current+D,ve=L().filter(J=>!J.disabled),j=document.activeElement,Re=ve.find(J=>J.ref.current===j)?.textValue,Pe=ve.map(J=>J.textValue),Se=II(Pe,ge,Re),qe=ve.find(J=>J.textValue===Se)?.ref.current;Ae((function J(ue){O.current=ue,window.clearTimeout(E.current),ue!==""&&(E.current=window.setTimeout(()=>J(""),1e3))}),"updateSearch")(ge),qe&&setTimeout(()=>qe.focus())},"handleTypeaheadSearch");re.useEffect(()=>()=>window.clearTimeout(E.current),[]),on();let ae=re.useCallback(D=>A.current===_.current?.side&&kI(D,_.current?.area),[]);return(0,me.jsx)(u_,{scope:r,searchRef:O,onItemEnter:re.useCallback(D=>{ae(D)&&D.preventDefault()},[ae]),onItemLeave:re.useCallback(D=>{ae(D)||(k.current?.focus(),R(null))},[ae]),onTriggerLeave:re.useCallback(D=>{ae(D)&&D.preventDefault()},[ae]),pointerGraceTimerRef:T,onPointerGraceIntentChange:re.useCallback(D=>{_.current=D},[]),children:(0,me.jsx)(z,{...H,children:(0,me.jsx)(Ci,{asChild:!0,trapped:n,onMountAutoFocus:$(s,D=>{D.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,me.jsx)(wi,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:v,children:(0,me.jsx)(Wc,{asChild:!0,...y,dir:p.dir,orientation:"vertical",loop:o,currentTabStopId:b,onCurrentTabStopIdChange:R,onEntryFocus:$(u,D=>{p.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,me.jsx)(Hc,{role:"menu","aria-orientation":"vertical","data-state":fg(m.open),"data-radix-menu-content":"",dir:p.dir,...g,...w,ref:M,style:{outline:"none",...w.style},onKeyDown:$(w.onKeyDown,D=>{let ve=D.target.closest("[data-radix-menu-content]")===D.currentTarget,j=D.ctrlKey||D.altKey||D.metaKey,Re=D.key.length===1;ve&&(D.key==="Tab"&&D.preventDefault(),!j&&Re&&V(D.key));let Pe=k.current;if(D.target!==Pe||!e_.includes(D.key))return;D.preventDefault();let qe=L().filter(J=>!J.disabled).map(J=>J.ref.current);dI.includes(D.key)&&qe.reverse(),SI(qe)}),onBlur:$(t.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(E.current),O.current="")}),onPointerMove:$(t.onPointerMove,Ai(D=>{let ge=D.target,ve=N.current!==D.clientX;if(D.currentTarget.contains(ge)&&ve){let j=D.clientX>N.current?"right":"left";A.current=j,N.current=D.clientX}}))})})})})})})},"MenuContentImpl")),gI=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t;return(0,me.jsx)(se.div,{role:"group",...o,ref:a})},"MenuGroup")),m_=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t;return(0,me.jsx)(se.div,{...o,ref:a})},"MenuLabel")),ig="MenuItem",uI="menu.itemSelect",cg=re.forwardRef(Ae(function(t,a){let{disabled:r=!1,onSelect:o,...n}=t,s=re.useRef(null),i=yu(ig,t.__scopeMenu),l=ug(ig,t.__scopeMenu),u=pe(a,s),c=re.useRef(!1),d=Ae(()=>{let f=s.current;if(!r&&f){let h=new CustomEvent(uI,{bubbles:!0,cancelable:!0});f.addEventListener(uI,v=>o?.(v),{once:!0}),tu(f,h),h.defaultPrevented?c.current=!1:i.onClose()}},"handleSelect");return(0,me.jsx)(vI,{...n,ref:u,disabled:r,onClick:$(t.onClick,d),onPointerDown:f=>{t.onPointerDown?.(f),c.current=!0},onPointerUp:$(t.onPointerUp,f=>{c.current||f.currentTarget?.click()}),onKeyDown:$(t.onKeyDown,f=>{r||f.target!==f.currentTarget||l.searchRef.current!==""&&f.key===" "||sg.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})},"MenuItem")),vI=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,disabled:o=!1,textValue:n,...s}=t,i=ug(ig,r),l=cI(r),u=re.useRef(null),c=pe(a,u),[d,f]=re.useState(!1),[h,v]=re.useState("");return re.useEffect(()=>{let x=u.current;x&&v((x.textContent??"").trim())},[s.children]),(0,me.jsx)(gu.ItemSlot,{scope:r,disabled:o,textValue:n??h,children:(0,me.jsx)(Gc,{asChild:!0,...l,focusable:!o,children:(0,me.jsx)(se.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:c,onPointerMove:$(t.onPointerMove,Ai(x=>{o?i.onItemLeave(x):(i.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$(t.onPointerLeave,Ai(x=>i.onItemLeave(x))),onFocus:$(t.onFocus,()=>f(!0)),onBlur:$(t.onBlur,()=>f(!1))})})})},"MenuItemImpl")),h_=re.forwardRef(Ae(function(t,a){let{checked:r=!1,onCheckedChange:o,...n}=t;return(0,me.jsx)(yI,{scope:t.__scopeMenu,checked:r,children:(0,me.jsx)(cg,{role:"menuitemcheckbox","aria-checked":vu(r)?"mixed":r,...n,ref:a,"data-state":Xc(r),onSelect:$(n.onSelect,()=>o?.(vu(r)?!0:!r),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),g_="MenuRadioGroup",[v_,x_]=Yn(g_,{value:void 0,onValueChange:Ae(()=>{},"onValueChange")}),y_=re.forwardRef(Ae(function(t,a){let{value:r,onValueChange:o,...n}=t,s=ct(o);return(0,me.jsx)(v_,{scope:t.__scopeMenu,value:r,onValueChange:s,children:(0,me.jsx)(gI,{...n,ref:a})})},"MenuRadioGroup")),w_="MenuRadioItem",C_=re.forwardRef(Ae(function(t,a){let{value:r,...o}=t,n=x_(w_,t.__scopeMenu),s=r===n.value;return(0,me.jsx)(yI,{scope:t.__scopeMenu,checked:s,children:(0,me.jsx)(cg,{role:"menuitemradio","aria-checked":s,...o,ref:a,"data-state":Xc(s),onSelect:$(o.onSelect,()=>n.onValueChange?.(r),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),xI="MenuItemIndicator",[yI,S_]=Yn(xI,{checked:!1}),L_=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,forceMount:o,...n}=t,s=S_(xI,r);return(0,me.jsx)(ua,{present:o||vu(s.checked)||s.checked===!0,children:(0,me.jsx)(se.span,{...n,ref:a,"data-state":Xc(s.checked)})})},"MenuItemIndicator")),I_=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t;return(0,me.jsx)(se.div,{role:"separator","aria-orientation":"horizontal",...o,ref:a})},"MenuSeparator")),b_=re.forwardRef(Ae(function(t,a){let{__scopeMenu:r,...o}=t,n=xu(r);return(0,me.jsx)(jc,{...n,...o,ref:a})},"MenuArrow")),wI="MenuSub",[k_,CI]=Yn(wI),R_=Ae(e=>{let{__scopeMenu:t,children:a,open:r=!1,onOpenChange:o}=e,n=un(wI,t),s=xu(t),[i,l]=re.useState(null),[u,c]=re.useState(null),d=ct(o);return re.useEffect(()=>(n.open===!1&&d(!1),()=>d(!1)),[n.open,d]),(0,me.jsx)(hu,{...s,children:(0,me.jsx)(fI,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:c,children:(0,me.jsx)(k_,{scope:t,contentId:bt(),triggerId:bt(),trigger:i,onTriggerChange:l,children:a})})})},"MenuSub"),$c="MenuSubTrigger",P_=re.forwardRef(Ae(function(t,a){let r=un($c,t.__scopeMenu),o=yu($c,t.__scopeMenu),n=CI($c,t.__scopeMenu),s=ug($c,t.__scopeMenu),i=re.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,c={__scopeMenu:t.__scopeMenu},d=re.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);re.useEffect(()=>d,[d]),re.useEffect(()=>{let h=l.current;return()=>{window.clearTimeout(h),u(null)}},[l,u]);let f=pe(a,n.onTriggerChange);return(0,me.jsx)(pI,{asChild:!0,...c,children:(0,me.jsx)(vI,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?n.contentId:void 0,"data-state":fg(r.open),...t,ref:f,onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:$(t.onPointerMove,Ai(h=>{s.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!r.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:$(t.onPointerLeave,Ai(h=>{d();let v=r.content?.getBoundingClientRect();if(v){let x=r.content?.dataset.side,w=x==="right",m=w?-5:5,p=v[w?"left":"right"],g=v[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+m,y:h.clientY},{x:p,y:v.top},{x:g,y:v.top},{x:g,y:v.bottom},{x:p,y:v.bottom}],side:x}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:$(t.onKeyDown,h=>{t.disabled||h.target!==h.currentTarget||s.searchRef.current!==""&&h.key===" "||t_[o.dir].includes(h.key)&&(r.onOpenChange(!0),r.content?.focus(),h.preventDefault())})})})},"MenuSubTrigger")),D_="MenuSubContent",T_=re.forwardRef(Ae(function(t,a){let r=hI(yr,t.__scopeMenu),{forceMount:o=r.forceMount,align:n="start",...s}=t,i=un(yr,t.__scopeMenu),l=yu(yr,t.__scopeMenu),u=CI(D_,t.__scopeMenu),c=re.useRef(null),d=pe(a,c);return(0,me.jsx)(gu.Provider,{scope:t.__scopeMenu,children:(0,me.jsx)(ua,{present:o||i.open,children:(0,me.jsx)(gu.Slot,{scope:t.__scopeMenu,children:(0,me.jsx)(dg,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:d,align:n,side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{l.isUsingKeyboardRef.current&&c.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:$(t.onFocusOutside,f=>{f.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:$(t.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:$(t.onKeyDown,f=>{let h=f.currentTarget.contains(f.target),v=a_[l.dir].includes(f.key);h&&v&&(i.onOpenChange(!1),u.trigger?.focus(),f.preventDefault())})})})})})},"MenuSubContent"));function fg(e){return e?"open":"closed"}Ae(fg,"getOpenState");function vu(e){return e==="indeterminate"}Ae(vu,"isIndeterminate");function Xc(e){return vu(e)?"indeterminate":e?"checked":"unchecked"}Ae(Xc,"getCheckedState");function SI(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}Ae(SI,"focusFirst");function LI(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Ae(LI,"wrapArray");function II(e,t,a){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=LI(e,Math.max(n,0));o.length===1&&(s=s.filter(u=>u!==a));let l=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==a?l:void 0}Ae(II,"getNextMatch");function bI(e,t){let{x:a,y:r}=e,o=!1;for(let n=0,s=t.length-1;n<t.length;s=n++){let i=t[n],l=t[s],u=i.x,c=i.y,d=l.x,f=l.y;c>r!=f>r&&a<(d-u)*(r-c)/(f-c)+u&&(o=!o)}return o}Ae(bI,"isPointInPolygon");function kI(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return bI(a,t)}Ae(kI,"isPointerInGraceArea");function Ai(e){return t=>t.pointerType==="mouse"?e(t):void 0}Ae(Ai,"whenMouse");var RI=s_,PI=pI,DI=l_,TI=d_,MI=gI,_I=m_,AI=cg,EI=h_,OI=y_,NI=C_,FI=L_,zI=I_,BI=b_,UI=R_,HI=P_,jI=T_;var zr={};_o(zr,{Arrow:()=>Z_,CheckboxItem:()=>W_,Content:()=>H_,DropdownMenu:()=>qI,DropdownMenuArrow:()=>ab,DropdownMenuCheckboxItem:()=>QI,DropdownMenuContent:()=>$I,DropdownMenuGroup:()=>KI,DropdownMenuItem:()=>ZI,DropdownMenuItemIndicator:()=>eb,DropdownMenuLabel:()=>XI,DropdownMenuPortal:()=>GI,DropdownMenuRadioGroup:()=>YI,DropdownMenuRadioItem:()=>JI,DropdownMenuSeparator:()=>tb,DropdownMenuSub:()=>rb,DropdownMenuSubContent:()=>nb,DropdownMenuSubTrigger:()=>ob,DropdownMenuTrigger:()=>WI,Group:()=>j_,Item:()=>q_,ItemIndicator:()=>K_,Label:()=>V_,Portal:()=>U_,RadioGroup:()=>G_,RadioItem:()=>$_,Root:()=>z_,Separator:()=>X_,Sub:()=>Q_,SubContent:()=>J_,SubTrigger:()=>Y_,Trigger:()=>B_,createDropdownMenuScope:()=>E_});var Rt=F(ee(),1);var kt=F(fe(),1),__=Object.defineProperty,Yt=(e,t)=>__(e,"name",{value:t,configurable:!0}),pg="DropdownMenu",[A_,E_]=ut(pg,[lg]),Jt=lg(),[O_,VI]=A_(pg),qI=Yt(e=>{let{__scopeDropdownMenu:t,children:a,dir:r,open:o,defaultOpen:n,onOpenChange:s,modal:i=!0}=e,l=Jt(t),u=Rt.useRef(null),[c,d]=la({prop:o,defaultProp:n??!1,onChange:s,caller:pg});return(0,kt.jsx)(O_,{scope:t,triggerId:bt(),triggerRef:u,contentId:bt(),open:c,onOpenChange:d,onOpenToggle:Rt.useCallback(()=>d(f=>!f),[d]),modal:i,children:(0,kt.jsx)(RI,{...l,open:c,onOpenChange:d,dir:r,modal:i,children:a})})},"DropdownMenu"),N_="DropdownMenuTrigger",WI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,disabled:o=!1,...n}=t,s=VI(N_,r),i=Jt(r),l=pe(a,s.triggerRef);return(0,kt.jsx)(PI,{asChild:!0,...i,children:(0,kt.jsx)(se.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...n,ref:l,onPointerDown:$(t.onPointerDown,u=>{!o&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:$(t.onKeyDown,u=>{o||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})},"DropdownMenuTrigger")),GI=Yt(e=>{let{__scopeDropdownMenu:t,...a}=e,r=Jt(t);return(0,kt.jsx)(DI,{...r,...a})},"DropdownMenuPortal"),F_="DropdownMenuContent",$I=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=VI(F_,r),s=Jt(r),i=Rt.useRef(!1);return(0,kt.jsx)(TI,{id:n.contentId,"aria-labelledby":n.triggerId,...s,...o,ref:a,onCloseAutoFocus:$(t.onCloseAutoFocus,l=>{i.current||n.triggerRef.current?.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:$(t.onInteractOutside,l=>{let u=l.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,d=u.button===2||c;(!n.modal||d)&&(i.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),KI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(MI,{...n,...o,ref:a})},"DropdownMenuGroup")),XI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(_I,{...n,...o,ref:a})},"DropdownMenuLabel")),ZI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(AI,{...n,...o,ref:a})},"DropdownMenuItem")),QI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(EI,{...n,...o,ref:a})},"DropdownMenuCheckboxItem")),YI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(OI,{...n,...o,ref:a})},"DropdownMenuRadioGroup")),JI=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(NI,{...n,...o,ref:a})},"DropdownMenuRadioItem")),eb=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(FI,{...n,...o,ref:a})},"DropdownMenuItemIndicator")),tb=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(zI,{...n,...o,ref:a})},"DropdownMenuSeparator")),ab=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(BI,{...n,...o,ref:a})},"DropdownMenuArrow")),rb=Yt(e=>{let{__scopeDropdownMenu:t,children:a,open:r,onOpenChange:o,defaultOpen:n}=e,s=Jt(t),[i,l]=la({prop:r,defaultProp:n??!1,onChange:o,caller:"DropdownMenuSub"});return(0,kt.jsx)(UI,{...s,open:i,onOpenChange:l,children:a})},"DropdownMenuSub"),ob=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(HI,{...n,...o,ref:a})},"DropdownMenuSubTrigger")),nb=Rt.forwardRef(Yt(function(t,a){let{__scopeDropdownMenu:r,...o}=t,n=Jt(r);return(0,kt.jsx)(jI,{...n,...o,ref:a,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),z_=qI,B_=WI,U_=GI,H_=$I,j_=KI,V_=XI,q_=ZI,W_=QI,G_=YI,$_=JI,K_=eb,X_=tb,Z_=ab,Q_=rb,Y_=ob,J_=nb;var Zc={};_o(Zc,{Label:()=>lb,Root:()=>aA});var sb=F(ee(),1);var ib=F(fe(),1),eA=Object.defineProperty,tA=(e,t)=>eA(e,"name",{value:t,configurable:!0}),lb=sb.forwardRef(tA(function(t,a){return(0,ib.jsx)(se.label,{...t,ref:a,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(t.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}})},"Label")),aA=lb;var Qc=F(ee(),1),rA=Object.defineProperty,oA=(e,t)=>rA(e,"name",{value:t,configurable:!0});function mg(e){let t=Qc.useRef({value:e,previous:e});return Qc.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}oA(mg,"usePrevious");var nA=Object.defineProperty,sA=(e,t)=>nA(e,"name",{value:t,configurable:!0});function Yc(e,[t,a]){return Math.min(a,Math.max(t,e))}sA(Yc,"clamp");var fa={};_o(fa,{Arrow:()=>$A,Content:()=>bA,Group:()=>OA,Icon:()=>wA,Item:()=>BA,ItemIndicator:()=>jA,ItemText:()=>UA,Label:()=>FA,Portal:()=>IA,Root:()=>hA,ScrollDownButton:()=>qA,ScrollUpButton:()=>VA,Select:()=>hA,SelectArrow:()=>$A,SelectContent:()=>bA,SelectGroup:()=>OA,SelectIcon:()=>wA,SelectItem:()=>BA,SelectItemIndicator:()=>jA,SelectItemText:()=>UA,SelectLabel:()=>FA,SelectPortal:()=>IA,SelectScrollDownButton:()=>qA,SelectScrollUpButton:()=>VA,SelectSeparator:()=>WA,SelectTrigger:()=>vA,SelectValue:()=>yA,SelectViewport:()=>MA,Separator:()=>WA,Trigger:()=>vA,Value:()=>yA,Viewport:()=>MA,createSelectScope:()=>cA,unstable_BubbleInput:()=>gb,unstable_Provider:()=>vg,unstable_SelectBubbleInput:()=>gb,unstable_SelectProvider:()=>vg});var q=F(ee(),1),gg=F(hi(),1);var ne=F(fe(),1),iA=Object.defineProperty,Te=(e,t)=>iA(e,"name",{value:t,configurable:!0}),lA=[" ","Enter","ArrowUp","ArrowDown"],uA=[" ","Enter"],Ei="Select",[ef,tf,dA]=Un(Ei),[es,cA]=ut(Ei,[dA,Mi]),af=Mi(),[fA,dn]=es(Ei),[pA,mA]=es(Ei);function vg(e){let{__scopeSelect:t,children:a,open:r,defaultOpen:o,onOpenChange:n,value:s,defaultValue:i,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:f,required:h,form:v,internal_do_not_use_render:x}=e,w=af(t),[m,p]=q.useState(null),[g,y]=q.useState(null),[L,b]=q.useState(!1),R=go(u),[k,M]=la({prop:r,defaultProp:o??!1,onChange:n,caller:Ei}),[E,O]=la({prop:s,defaultProp:i,onChange:l,caller:Ei}),T=q.useRef(null),_=q.useRef(E);q.useEffect(()=>{let ve=v?m?.ownerDocument.getElementById(v):m?.form;if(ve instanceof HTMLFormElement){let j=Te(()=>O(_.current),"reset");return ve.addEventListener("reset",j),()=>ve.removeEventListener("reset",j)}},[v,m,O]);let A=m?!!v||!!m.closest("form"):!0,[N,z]=q.useState(new Set),H=bt(),V=Array.from(N).map(ve=>ve.props.value).join(";"),ae=q.useCallback(ve=>{z(j=>new Set(j).add(ve))},[]),D=q.useCallback(ve=>{z(j=>{let Re=new Set(j);return Re.delete(ve),Re})},[]),ge={required:h,trigger:m,onTriggerChange:p,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:L,onValueNodeHasChildrenChange:b,contentId:H,value:E,onValueChange:O,open:k,onOpenChange:M,dir:R,triggerPointerDownPosRef:T,disabled:f,name:c,autoComplete:d,form:v,nativeOptions:N,nativeSelectKey:V,isFormControl:A};return(0,ne.jsx)(hu,{...w,children:(0,ne.jsx)(fA,{scope:t,...ge,children:(0,ne.jsx)(ef.Provider,{scope:t,children:(0,ne.jsx)(pA,{scope:t,onNativeOptionAdd:ae,onNativeOptionRemove:D,children:vb(x)?x(ge):a})})})})}Te(vg,"SelectProvider");var hA=Te(e=>{let{__scopeSelect:t,children:a,...r}=e;return(0,ne.jsx)(vg,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:o})=>(0,ne.jsxs)(ne.Fragment,{children:[a,o?(0,ne.jsx)(gb,{__scopeSelect:t}):null]})})},"Select"),gA="SelectTrigger",vA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,disabled:o=!1,...n}=t,s=af(r),i=dn(gA,r),l=i.disabled||o,u=pe(a,i.onTriggerChange),c=tf(r),d=q.useRef("touch"),[f,h,v]=yg(w=>{let m=c().filter(y=>!y.disabled),p=m.find(y=>y.value===i.value),g=wg(m,w,p);g!==void 0&&i.onValueChange(g.value)}),x=Te(w=>{l||(i.onOpenChange(!0),v()),w&&(i.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})},"handleOpen");return(0,ne.jsx)(Uc,{asChild:!0,...s,children:(0,ne.jsx)(se.button,{type:"button",role:"combobox","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":wu(i.value)?"":void 0,...n,ref:u,onClick:$(n.onClick,w=>{w.currentTarget.focus(),d.current!=="mouse"&&x(w)}),onPointerDown:$(n.onPointerDown,w=>{d.current=w.pointerType;let m=w.target;m.hasPointerCapture(w.pointerId)&&m.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(x(w),w.preventDefault())}),onKeyDown:$(n.onKeyDown,w=>{let m=f.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&h(w.key),!(m&&w.key===" ")&&lA.includes(w.key)&&(x(),w.preventDefault())})})})},"SelectTrigger")),xA="SelectValue",yA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,className:o,style:n,children:s,placeholder:i="",...l}=t,u=dn(xA,r),{onValueNodeHasChildrenChange:c}=u,d=s!==void 0,f=pe(a,u.onValueNodeChange);Ue(()=>{c(d)},[c,d]);let h=wu(u.value);return(0,ne.jsx)(se.span,{...l,asChild:h?!1:l.asChild,ref:f,style:{pointerEvents:"none"},children:(0,ne.jsx)(q.Fragment,{children:h?i:s},h?"placeholder":"value")})},"SelectValue")),wA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,children:o,...n}=t;return(0,ne.jsx)(se.span,{"aria-hidden":!0,...n,ref:a,children:o||"\u25BC"})},"SelectIcon")),CA="SelectPortal",[SA,LA]=es(CA,{forceMount:void 0}),IA=Te(e=>{let{__scopeSelect:t,forceMount:a,...r}=e;return(0,ne.jsx)(SA,{scope:e.__scopeSelect,forceMount:a,children:(0,ne.jsx)(Si,{asChild:!0,...r})})},"SelectPortal"),Jn="SelectContent",bA=q.forwardRef(Te(function(t,a){let r=LA(Jn,t.__scopeSelect),{forceMount:o=r.forceMount,...n}=t,s=dn(Jn,t.__scopeSelect),[i,l]=q.useState();return Ue(()=>{l(new DocumentFragment)},[]),(0,ne.jsx)(ua,{present:o||s.open,children:({present:u})=>u?(0,ne.jsx)(PA,{...n,ref:a}):(0,ne.jsx)(kA,{...n,fragment:i})})},"SelectContent")),kA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,children:o,fragment:n}=t;return n?gg.createPortal((0,ne.jsx)(pb,{scope:r,children:(0,ne.jsx)(ef.Slot,{scope:r,children:(0,ne.jsx)("div",{ref:a,children:o})})}),n):null},"SelectContentFragment")),wr=10,[pb,cn]=es(Jn),RA=Ht("SelectContent.RemoveScroll"),PA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r}=t,{position:o="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:s,onPointerDownOutside:i,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:m,...p}=t,g=dn(Jn,r),[y,L]=q.useState(null),[b,R]=q.useState(null),k=pe(a,L),[M,E]=q.useState(null),[O,T]=q.useState(null),_=tf(r),[A,N]=q.useState(!1),z=q.useRef(!1);q.useEffect(()=>{if(y)return Pi(y)},[y]),on();let H=q.useCallback(J=>{let[ue,...He]=_().map(Oe=>Oe.ref.current),[Fe]=He.slice(-1),ze=document.activeElement;for(let Oe of J)if(Oe===ze||(Oe?.scrollIntoView({block:"nearest"}),Oe===ue&&b&&(b.scrollTop=0),Oe===Fe&&b&&(b.scrollTop=b.scrollHeight),Oe?.focus(),document.activeElement!==ze))return},[_,b]),V=q.useCallback(()=>H([M,y]),[H,M,y]);q.useEffect(()=>{A&&V()},[A,V]);let{onOpenChange:ae,triggerPointerDownPosRef:D}=g;q.useEffect(()=>{if(y){let J={x:0,y:0},ue=Te(Fe=>{J={x:Math.abs(Math.round(Fe.pageX)-(D.current?.x??0)),y:Math.abs(Math.round(Fe.pageY)-(D.current?.y??0))}},"handlePointerMove"),He=Te(Fe=>{J.x<=10&&J.y<=10?Fe.preventDefault():Fe.composedPath().includes(y)||ae(!1),document.removeEventListener("pointermove",ue),D.current=null},"handlePointerUp");return D.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",He,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",He,{capture:!0})}}},[y,ae,D]),q.useEffect(()=>{let J=Te(()=>ae(!1),"close");return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[ae]);let[ge,ve]=yg(J=>{let ue=_().filter(ze=>!ze.disabled),He=ue.find(ze=>ze.ref.current===document.activeElement),Fe=wg(ue,J,He);Fe&&setTimeout(()=>Fe.ref.current?.focus())}),j=q.useCallback((J,ue,He)=>{let Fe=!z.current&&!He;(g.value!==void 0&&g.value===ue||Fe)&&(E(J),Fe&&(z.current=!0))},[g.value]),Re=q.useCallback(()=>y?.focus(),[y]),Pe=q.useCallback((J,ue,He)=>{let Fe=!z.current&&!He;(g.value!==void 0&&g.value===ue||Fe)&&T(J)},[g.value]),Se=o==="popper"?ub:DA,qe=Se===ub?{side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:m}:{};return(0,ne.jsx)(pb,{scope:r,content:y,viewport:b,onViewportChange:R,itemRefCallback:j,selectedItem:M,onItemLeave:Re,itemTextRefCallback:Pe,focusSelectedItem:V,selectedItemText:O,position:o,isPositioned:A,searchRef:ge,children:(0,ne.jsx)(qn,{as:RA,allowPinchZoom:!0,children:(0,ne.jsx)(Ci,{asChild:!0,trapped:g.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:$(n,J=>{g.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:(0,ne.jsx)(wi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:(0,ne.jsx)(Se,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:J=>J.preventDefault(),...p,...qe,onPlaced:()=>N(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...p.style},onKeyDown:$(p.onKeyDown,J=>{let ue=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ue&&J.key.length===1&&ve(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let Fe=_().filter(ze=>!ze.disabled).map(ze=>ze.ref.current);if(["ArrowUp","End"].includes(J.key)&&(Fe=Fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){let ze=J.target,Oe=Fe.indexOf(ze);Fe=Fe.slice(Oe+1)}setTimeout(()=>H(Fe)),J.preventDefault()}})})})})})})},"SelectContentImpl")),DA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,onPlaced:o,...n}=t,s=dn(Jn,r),i=cn(Jn,r),[l,u]=q.useState(null),[c,d]=q.useState(null),f=pe(a,d),h=tf(r),v=q.useRef(!1),x=q.useRef(!0),{viewport:w,selectedItem:m,selectedItemText:p,focusSelectedItem:g}=i,y=q.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&c&&w&&m&&p){let k=s.trigger.getBoundingClientRect(),M=c.getBoundingClientRect(),E=s.valueNode.getBoundingClientRect(),O=p.getBoundingClientRect();if(s.dir!=="rtl"){let ze=O.left-M.left,Oe=E.left-ze,We=k.left-Oe,ra=k.width+We,Au=Math.max(ra,M.width),nl=window.innerWidth-wr,Ps=Yc(Oe,[wr,Math.max(wr,nl-Au)]);l.style.minWidth=ra+"px",l.style.left=Ps+"px"}else{let ze=M.right-O.right,Oe=window.innerWidth-E.right-ze,We=window.innerWidth-k.right-Oe,ra=k.width+We,Au=Math.max(ra,M.width),nl=window.innerWidth-wr,Ps=Yc(Oe,[wr,Math.max(wr,nl-Au)]);l.style.minWidth=ra+"px",l.style.right=Ps+"px"}let T=h(),_=window.innerHeight-wr*2,A=w.scrollHeight,N=window.getComputedStyle(c),z=parseInt(N.borderTopWidth,10),H=parseInt(N.paddingTop,10),V=parseInt(N.borderBottomWidth,10),ae=parseInt(N.paddingBottom,10),D=z+H+A+ae+V,ge=Math.min(m.offsetHeight*5,D),ve=window.getComputedStyle(w),j=parseInt(ve.paddingTop,10),Re=parseInt(ve.paddingBottom,10),Pe=k.top+k.height/2-wr,Se=_-Pe,qe=m.offsetHeight/2,J=m.offsetTop+qe,ue=z+H+J,He=D-ue;if(ue<=Pe){let ze=T.length>0&&m===T[T.length-1].ref.current;l.style.bottom="0px";let Oe=c.clientHeight-w.offsetTop-w.offsetHeight,We=Math.max(Se,qe+(ze?Re:0)+Oe+V),ra=ue+We;l.style.height=ra+"px"}else{let ze=T.length>0&&m===T[0].ref.current;l.style.top="0px";let We=Math.max(Pe,z+w.offsetTop+(ze?j:0)+qe)+He;l.style.height=We+"px",w.scrollTop=ue-Pe+w.offsetTop}l.style.margin=`${wr}px 0`,l.style.minHeight=ge+"px",l.style.maxHeight=_+"px",o?.(),requestAnimationFrame(()=>v.current=!0)}},[h,s.trigger,s.valueNode,l,c,w,m,p,s.dir,o]);Ue(()=>y(),[y]);let[L,b]=q.useState();Ue(()=>{c&&b(window.getComputedStyle(c).zIndex)},[c]);let R=q.useCallback(k=>{k&&x.current===!0&&(y(),g?.(),x.current=!1)},[y,g]);return(0,ne.jsx)(TA,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:R,children:(0,ne.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:(0,ne.jsx)(se.div,{...n,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})},"SelectItemAlignedPosition")),ub=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,align:o="start",collisionPadding:n=wr,...s}=t,i=af(r);return(0,ne.jsx)(Hc,{...i,...s,ref:a,align:o,collisionPadding:n,style:{boxSizing:"border-box",...s.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")),[TA,xg]=es(Jn,{}),db="SelectViewport",MA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,nonce:o,...n}=t,s=cn(db,r),i=xg(db,r),l=pe(a,s.onViewportChange),u=q.useRef(0);return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.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:o}),(0,ne.jsx)(ef.Slot,{scope:r,children:(0,ne.jsx)(se.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:$(n.onScroll,c=>{let d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h?.current&&f){let v=Math.abs(u.current-d.scrollTop);if(v>0){let x=window.innerHeight-wr*2,w=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),p=Math.max(w,m);if(p<x){let g=p+v,y=Math.min(x,g),L=g-y;f.style.height=y+"px",f.style.bottom==="0px"&&(d.scrollTop=L>0?L:0,f.style.justifyContent="flex-end")}}}u.current=d.scrollTop})})})]})},"SelectViewport")),_A="SelectGroup",[AA,EA]=es(_A),OA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t,n=bt();return(0,ne.jsx)(AA,{scope:r,id:n,children:(0,ne.jsx)(se.div,{role:"group","aria-labelledby":n,...o,ref:a})})},"SelectGroup")),NA="SelectLabel",FA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t,n=EA(NA,r);return(0,ne.jsx)(se.div,{id:n.id,...o,ref:a})},"SelectLabel")),hg="SelectItem",[zA,mb]=es(hg),BA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,value:o,disabled:n=!1,textValue:s,...i}=t,l=dn(hg,r),u=cn(hg,r),c=l.value===o,[d,f]=q.useState(s??""),[h,v]=q.useState(!1),x=ct(y=>u.itemRefCallback?.(y,o,n)),w=pe(a,x),m=bt(),p=q.useRef("touch"),g=Te(()=>{n||(l.onValueChange(o),l.onOpenChange(!1))},"handleSelect");return(0,ne.jsx)(zA,{scope:r,value:o,disabled:n,textId:m,isSelected:c,onItemTextChange:q.useCallback(y=>{f(L=>L||(y?.textContent??"").trim())},[]),children:(0,ne.jsx)(ef.ItemSlot,{scope:r,value:o,disabled:n,textValue:d,children:(0,ne.jsx)(se.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...i,ref:w,onFocus:$(i.onFocus,()=>v(!0)),onBlur:$(i.onBlur,()=>v(!1)),onClick:$(i.onClick,()=>{p.current!=="mouse"&&g()}),onPointerUp:$(i.onPointerUp,()=>{p.current==="mouse"&&g()}),onPointerDown:$(i.onPointerDown,y=>{p.current=y.pointerType}),onPointerMove:$(i.onPointerMove,y=>{p.current=y.pointerType,n?u.onItemLeave?.():p.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:$(i.onKeyDown,y=>{n||y.target!==y.currentTarget||u.searchRef?.current!==""&&y.key===" "||(uA.includes(y.key)&&g(),y.key===" "&&y.preventDefault())})})})})},"SelectItem")),Jc="SelectItemText",UA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,className:o,style:n,...s}=t,i=dn(Jc,r),l=cn(Jc,r),u=mb(Jc,r),c=mA(Jc,r),[d,f]=q.useState(null),h=ct(g=>l.itemTextRefCallback?.(g,u.value,u.disabled)),v=pe(a,f,u.onItemTextChange,h),x=d?.textContent,w=q.useMemo(()=>(0,ne.jsx)("option",{value:u.value,disabled:u.disabled,children:x},u.value),[u.disabled,u.value,x]),{onNativeOptionAdd:m,onNativeOptionRemove:p}=c;return Ue(()=>(m(w),()=>p(w)),[m,p,w]),(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(se.span,{id:u.textId,...s,ref:v}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren&&!wu(i.value)?gg.createPortal(s.children,i.valueNode):null]})},"SelectItemText")),HA="SelectItemIndicator",jA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t;return mb(HA,r).isSelected?(0,ne.jsx)(se.span,{"aria-hidden":!0,...o,ref:a}):null},"SelectItemIndicator")),cb="SelectScrollUpButton",VA=q.forwardRef(Te(function(t,a){let r=cn(cb,t.__scopeSelect),o=xg(cb,t.__scopeSelect),[n,s]=q.useState(!1),i=pe(a,o.onScrollButtonChange);return Ue(()=>{if(r.viewport&&r.isPositioned){let u=function(){let d=c.scrollTop>0;s(d)};var l=u;Te(u,"handleScroll");let c=r.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),n?(0,ne.jsx)(hb,{...t,ref:i,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null},"SelectScrollUpButton")),fb="SelectScrollDownButton",qA=q.forwardRef(Te(function(t,a){let r=cn(fb,t.__scopeSelect),o=xg(fb,t.__scopeSelect),[n,s]=q.useState(!1),i=pe(a,o.onScrollButtonChange);return Ue(()=>{if(r.viewport&&r.isPositioned){let u=function(){let d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;s(f)};var l=u;Te(u,"handleScroll");let c=r.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),n?(0,ne.jsx)(hb,{...t,ref:i,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null},"SelectScrollDownButton")),hb=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,onAutoScroll:o,...n}=t,s=cn("SelectScrollButton",r),i=q.useRef(null),l=tf(r),u=q.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return q.useEffect(()=>()=>u(),[u]),Ue(()=>{l().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,ne.jsx)(se.div,{"aria-hidden":!0,...n,ref:a,style:{flexShrink:0,...n.style},onPointerDown:$(n.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:$(n.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:$(n.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),WA=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t;return(0,ne.jsx)(se.div,{"aria-hidden":!0,...o,ref:a})},"SelectSeparator")),GA="SelectArrow",$A=q.forwardRef(Te(function(t,a){let{__scopeSelect:r,...o}=t,n=af(r);return cn(GA,r).position==="popper"?(0,ne.jsx)(jc,{...n,...o,ref:a}):null},"SelectArrow")),KA="SelectBubbleInput",gb=q.forwardRef(Te(function({__scopeSelect:t,...a},r){let o=dn(KA,t),{value:n,onValueChange:s,required:i,disabled:l,name:u,autoComplete:c,form:d}=o,{nativeOptions:f,nativeSelectKey:h}=o,v=q.useRef(null),x=pe(r,v),w=n??"",m=mg(w),p=Array.from(f).some(g=>(g.props.value??"")==="");return q.useEffect(()=>{let g=v.current;if(!g)return;let y=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(y,"value").set;if(m!==w&&b){let R=new Event("change",{bubbles:!0});b.call(g,w),g.dispatchEvent(R)}},[m,w]),(0,ne.jsxs)(se.select,{"aria-hidden":!0,required:i,tabIndex:-1,name:u,autoComplete:c,disabled:l,form:d,onChange:g=>s(g.target.value),...a,style:{...FC,...a.style},ref:x,defaultValue:w,children:[wu(n)&&!p?(0,ne.jsx)("option",{value:""}):null,Array.from(f)]},h)},"SelectBubbleInput"));function vb(e){return typeof e=="function"}Te(vb,"isFunction");function wu(e){return e===""||e===void 0}Te(wu,"shouldShowPlaceholder");function yg(e){let t=ct(e),a=q.useRef(""),r=q.useRef(0),o=q.useCallback(s=>{let i=a.current+s;t(i),Te((function l(u){a.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}),"updateSearch")(i)},[t]),n=q.useCallback(()=>{a.current="",window.clearTimeout(r.current)},[]);return q.useEffect(()=>()=>window.clearTimeout(r.current),[]),[a,o,n]}Te(yg,"useTypeaheadSearch");function wg(e,t,a){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=xb(e,Math.max(n,0));o.length===1&&(s=s.filter(u=>u!==a));let l=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==a?l:void 0}Te(wg,"findNextItem");function xb(e,t){return e.map((a,r)=>e[(t+r)%e.length])}Te(xb,"wrapArray");var ts={};_o(ts,{Content:()=>nE,List:()=>rE,Root:()=>aE,Tabs:()=>wb,TabsContent:()=>Lb,TabsList:()=>Cb,TabsTrigger:()=>Sb,Trigger:()=>oE,createTabsScope:()=>QA});var Io=F(ee(),1);var Lo=F(fe(),1),XA=Object.defineProperty,Oi=(e,t)=>XA(e,"name",{value:t,configurable:!0}),Cg="Tabs",[ZA,QA]=ut(Cg,[_i]),yb=_i(),[YA,Sg]=ZA(Cg),wb=Io.forwardRef(Oi(function(t,a){let{__scopeTabs:r,value:o,onValueChange:n,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:u="automatic",...c}=t,d=go(l),[f,h]=la({prop:o,onChange:n,defaultProp:s??"",caller:Cg});return(0,Lo.jsx)(YA,{scope:r,baseId:bt(),value:f,onValueChange:h,orientation:i,dir:d,activationMode:u,children:(0,Lo.jsx)(se.div,{dir:d,"data-orientation":i,...c,ref:a})})},"Tabs")),JA="TabsList",Cb=Io.forwardRef(Oi(function(t,a){let{__scopeTabs:r,loop:o=!0,...n}=t,s=Sg(JA,r),i=yb(r);return(0,Lo.jsx)(Wc,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:(0,Lo.jsx)(se.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:a})})},"TabsList")),eE="TabsTrigger",Sb=Io.forwardRef(Oi(function(t,a){let{__scopeTabs:r,value:o,disabled:n=!1,...s}=t,i=Sg(eE,r),l=yb(r),u=Lg(i.baseId,o),c=Ig(i.baseId,o),d=o===i.value;return(0,Lo.jsx)(Gc,{asChild:!0,...l,focusable:!n,active:d,children:(0,Lo.jsx)(se.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:u,...s,ref:a,onMouseDown:$(t.onMouseDown,f=>{!n&&f.button===0&&f.ctrlKey===!1?i.onValueChange(o):f.preventDefault()}),onKeyDown:$(t.onKeyDown,f=>{n||f.target!==f.currentTarget||[" ","Enter"].includes(f.key)&&i.onValueChange(o)}),onFocus:$(t.onFocus,()=>{let f=i.activationMode!=="manual";!d&&!n&&f&&i.onValueChange(o)})})})},"TabsTrigger")),tE="TabsContent",Lb=Io.forwardRef(Oi(function(t,a){let{__scopeTabs:r,value:o,forceMount:n,children:s,...i}=t,l=Sg(tE,r),u=Lg(l.baseId,o),c=Ig(l.baseId,o),d=o===l.value,f=Io.useRef(d);return Io.useEffect(()=>{let h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),(0,Lo.jsx)(ua,{present:n||d,children:({present:h})=>(0,Lo.jsx)(se.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!h,id:c,tabIndex:0,...i,ref:a,style:{...t.style,animationDuration:f.current?"0s":void 0},children:h&&s})})},"TabsContent"));function Lg(e,t){return`${e}-trigger-${t}`}Oi(Lg,"makeTriggerId");function Ig(e,t){return`${e}-content-${t}`}Oi(Ig,"makeContentId");var aE=wb,rE=Cb,oE=Sb,nE=Lb;var jr=F(ee(),1);var Ib=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bb=Fu,fn=(e,t)=>a=>{var r;if(t?.variants==null)return bb(e,a?.class,a?.className);let{variants:o,defaultVariants:n}=t,s=Object.keys(o).map(u=>{let c=a?.[u],d=n?.[u];if(c===null)return null;let f=Ib(c)||Ib(d);return o[u][f]}),i=a&&Object.entries(a).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(v=>{let[x,w]=v;return Array.isArray(w)?w.includes({...n,...i}[x]):{...n,...i}[x]===w})?[...u,d,f]:u},[]);return bb(e,s,l,a?.class,a?.className)};var jb=F(fe(),1);var he=e=>typeof e=="string",Cu=()=>{let e,t,a=new Promise((r,o)=>{e=r,t=o});return a.resolve=e,a.reject=t,a},kb=e=>e==null?"":""+e,sE=(e,t,a)=>{e.forEach(r=>{t[r]&&(a[r]=t[r])})},iE=/###/g,Rb=e=>e&&e.indexOf("###")>-1?e.replace(iE,"."):e,Pb=e=>!e||he(e),Su=(e,t,a)=>{let r=he(t)?t.split("."):t,o=0;for(;o<r.length-1;){if(Pb(e))return{};let n=Rb(r[o]);!e[n]&&a&&(e[n]=new a),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++o}return Pb(e)?{}:{obj:e,k:Rb(r[o])}},Db=(e,t,a)=>{let{obj:r,k:o}=Su(e,t,Object);if(r!==void 0||t.length===1){r[o]=a;return}let n=t[t.length-1],s=t.slice(0,t.length-1),i=Su(e,s,Object);for(;i.obj===void 0&&s.length;)n=`${s[s.length-1]}.${n}`,s=s.slice(0,s.length-1),i=Su(e,s,Object),i?.obj&&typeof i.obj[`${i.k}.${n}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${n}`]=a},lE=(e,t,a,r)=>{let{obj:o,k:n}=Su(e,t,Object);o[n]=o[n]||[],o[n].push(a)},of=(e,t)=>{let{obj:a,k:r}=Su(e,t);if(a&&Object.prototype.hasOwnProperty.call(a,r))return a[r]},uE=(e,t,a)=>{let r=of(e,a);return r!==void 0?r:of(t,a)},Fb=(e,t,a)=>{for(let r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?he(e[r])||e[r]instanceof String||he(t[r])||t[r]instanceof String?a&&(e[r]=t[r]):Fb(e[r],t[r],a):e[r]=t[r]);return e},Ni=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),dE={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},cE=e=>he(e)?e.replace(/[&<>"'\/]/g,t=>dE[t]):e,Rg=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let a=this.regExpMap.get(t);if(a!==void 0)return a;let r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}},fE=[" ",",","?","!",";"],pE=new Rg(20),mE=(e,t,a)=>{t=t||"",a=a||"";let r=fE.filter(s=>t.indexOf(s)<0&&a.indexOf(s)<0);if(r.length===0)return!0;let o=pE.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`),n=!o.test(e);if(!n){let s=e.indexOf(a);s>0&&!o.test(e.substring(0,s))&&(n=!0)}return n},Pg=(e,t,a=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(a),o=e;for(let n=0;n<r.length;){if(!o||typeof o!="object")return;let s,i="";for(let l=n;l<r.length;++l)if(l!==n&&(i+=a),i+=r[l],s=o[i],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;n+=l-n+1;break}o=s}return o},Lu=e=>e?.replace("_","-"),hE={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},Dg=class e{constructor(t,a={}){this.init(t,a)}init(t,a={}){this.prefix=a.prefix||"i18next:",this.logger=t||hE,this.options=a,this.debug=a.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,a,r,o){return o&&!this.debug?null:(he(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Br=new Dg,Fi=class{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);let o=this.observers[r].get(a)||0;this.observers[r].set(a,o+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t,...a){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,n])=>{for(let s=0;s<n;s++)o(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,n])=>{for(let s=0;s<n;s++)o.apply(o,[t,...a])})}},nf=class extends Fi{constructor(t,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=a,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){let a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,r,o={}){let n=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,i;t.indexOf(".")>-1?i=t.split("."):(i=[t,a],r&&(Array.isArray(r)?i.push(...r):he(r)&&n?i.push(...r.split(n)):i.push(r)));let l=of(this.data,i);return!l&&!a&&!r&&t.indexOf(".")>-1&&(t=i[0],a=i[1],r=i.slice(2).join(".")),l||!s||!he(r)?l:Pg(this.data?.[t]?.[a],r,n)}addResource(t,a,r,o,n={silent:!1}){let s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=[t,a];r&&(i=i.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(i=t.split("."),o=a,a=i[1]),this.addNamespaces(a),Db(this.data,i,o),n.silent||this.emit("added",t,a,r,o)}addResources(t,a,r,o={silent:!1}){for(let n in r)(he(r[n])||Array.isArray(r[n]))&&this.addResource(t,a,n,r[n],{silent:!0});o.silent||this.emit("added",t,a,r)}addResourceBundle(t,a,r,o,n,s={silent:!1,skipCopy:!1}){let i=[t,a];t.indexOf(".")>-1&&(i=t.split("."),o=r,r=a,a=i[1]),this.addNamespaces(a);let l=of(this.data,i)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Fb(l,r,n):l={...l,...r},Db(this.data,i,l),s.silent||this.emit("added",t,a,r)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(o=>a[o]&&Object.keys(a[o]).length>0)}toJSON(){return this.data}},zb={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,r,o){return e.forEach(n=>{t=this.processors[n]?.process(t,a,r,o)??t}),t}},Bb=Symbol("i18next/PATH_KEY");function gE(){let e=[],t=Object.create(null),a;return t.get=(r,o)=>(a?.revoke?.(),o===Bb?e:(e.push(o),a=Proxy.revocable(r,t),a.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Tg(e,t){let{[Bb]:a}=e(gE());return a.join(t?.keySeparator??".")}var Tb={},bg=e=>!he(e)&&typeof e!="boolean"&&typeof e!="number",sf=class e extends Fi{constructor(t,a={}){super(),sE(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Br.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,a={interpolation:{}}){let r={...a};if(t==null)return!1;let o=this.resolve(t,r);if(o?.res===void 0)return!1;let n=bg(o.res);return!(r.returnObjects===!1&&n)}extractFromKey(t,a){let r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");let o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,n=a.ns||this.options.defaultNS||[],s=r&&t.indexOf(r)>-1,i=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!mE(t,r,o);if(s&&!i){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:he(n)?[n]:n};let u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(n=u.shift()),t=u.join(o)}return{key:t,namespaces:he(n)?[n]:n}}translate(t,a,r){let o=typeof a=="object"?{...a}:a;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=Tg(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);let n=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],o),u=l[l.length-1],c=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");let d=o.lng||this.language,f=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?n?{res:`${u}${c}${i}`,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:`${u}${c}${i}`:n?{res:i,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(o)}:i;let h=this.resolve(t,o),v=h?.res,x=h?.usedKey||i,w=h?.exactUsedKey||i,m=["[object Number]","[object Function]","[object RegExp]"],p=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,y=o.count!==void 0&&!he(o.count),L=e.hasDefaultValue(o),b=y?this.pluralResolver.getSuffix(d,o.count,o):"",R=o.ordinal&&y?this.pluralResolver.getSuffix(d,o.count,{ordinal:!1}):"",k=y&&!o.ordinal&&o.count===0,M=k&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${b}`]||o[`defaultValue${R}`]||o.defaultValue,E=v;g&&!v&&L&&(E=M);let O=bg(E),T=Object.prototype.toString.apply(E);if(g&&E&&O&&m.indexOf(T)<0&&!(he(p)&&Array.isArray(E))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,E,{...o,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(h.res=_,h.usedParams=this.getUsedParamsDetails(o),h):_}if(s){let _=Array.isArray(E),A=_?[]:{},N=_?w:x;for(let z in E)if(Object.prototype.hasOwnProperty.call(E,z)){let H=`${N}${s}${z}`;L&&!v?A[z]=this.translate(H,{...o,defaultValue:bg(M)?M[z]:void 0,joinArrays:!1,ns:l}):A[z]=this.translate(H,{...o,joinArrays:!1,ns:l}),A[z]===H&&(A[z]=E[z])}v=A}}else if(g&&he(p)&&Array.isArray(v))v=v.join(p),v&&(v=this.extendTranslation(v,t,o,r));else{let _=!1,A=!1;!this.isValidLookup(v)&&L&&(_=!0,v=M),this.isValidLookup(v)||(A=!0,v=i);let z=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:v,H=L&&M!==v&&this.options.updateMissing;if(A||_||H){if(this.logger.log(H?"updateKey":"missingKey",d,u,i,H?M:v),s){let ge=this.resolve(i,{...o,keySeparator:!1});ge&&ge.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 V=[],ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ae&&ae[0])for(let ge=0;ge<ae.length;ge++)V.push(ae[ge]);else this.options.saveMissingTo==="all"?V=this.languageUtils.toResolveHierarchy(o.lng||this.language):V.push(o.lng||this.language);let D=(ge,ve,j)=>{let Re=L&&j!==v?j:z;this.options.missingKeyHandler?this.options.missingKeyHandler(ge,u,ve,Re,H,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ge,u,ve,Re,H,o),this.emit("missingKey",ge,u,ve,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?V.forEach(ge=>{let ve=this.pluralResolver.getSuffixes(ge,o);k&&o[`defaultValue${this.options.pluralSeparator}zero`]&&ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&ve.push(`${this.options.pluralSeparator}zero`),ve.forEach(j=>{D([ge],i+j,o[`defaultValue${j}`]||M)})}):D(V,i,M))}v=this.extendTranslation(v,t,o,h,r),A&&v===i&&this.options.appendNamespaceToMissingKey&&(v=`${u}${c}${i}`),(A||_)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${i}`:i,_?v:void 0,o))}return n?(h.res=v,h.usedParams=this.getUsedParamsDetails(o),h):v}extendTranslation(t,a,r,o,n){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let l=he(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(l){let d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let c=r.replace&&!he(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,r.lng||this.language||o.usedLng,r),l){let d=t.match(this.interpolator.nestingRegexp),f=d&&d.length;u<f&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>n?.[0]===d[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${a[0]}`),null):this.translate(...d,a),r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,i=he(s)?[s]:s;return t!=null&&i?.length&&r.applyPostProcessor!==!1&&(t=zb.handle(i,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,a={}){let r,o,n,s,i;return he(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;let u=this.extractFromKey(l,a),c=u.key;o=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let f=a.count!==void 0&&!he(a.count),h=f&&!a.ordinal&&a.count===0,v=a.context!==void 0&&(he(a.context)||typeof a.context=="number")&&a.context!=="",x=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);d.forEach(w=>{this.isValidLookup(r)||(i=w,!Tb[`${x[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(i)&&(Tb[`${x[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${x.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),x.forEach(m=>{if(this.isValidLookup(r))return;s=m;let p=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(p,c,m,w,a);else{let y;f&&(y=this.pluralResolver.getSuffix(m,a.count,a));let L=`${this.options.pluralSeparator}zero`,b=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(a.ordinal&&y.indexOf(b)===0&&p.push(c+y.replace(b,this.options.pluralSeparator)),p.push(c+y),h&&p.push(c+L)),v){let R=`${c}${this.options.contextSeparator||"_"}${a.context}`;p.push(R),f&&(a.ordinal&&y.indexOf(b)===0&&p.push(R+y.replace(b,this.options.pluralSeparator)),p.push(R+y),h&&p.push(R+L))}}let g;for(;g=p.pop();)this.isValidLookup(r)||(n=g,r=this.getResource(m,w,g,a))}))})}),{res:r,usedKey:o,exactUsedKey:n,usedLng:s,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,a,r,o):this.resourceStore.getResource(t,a,r,o)}getUsedParamsDetails(t={}){let a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!he(t.replace),o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(let n of a)delete o[n]}return o}static hasDefaultValue(t){let a="defaultValue";for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&a===r.substring(0,a.length)&&t[r]!==void 0)return!0;return!1}},lf=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Br.create("languageUtils")}getScriptPartFromCode(t){if(t=Lu(t),!t||t.indexOf("-")<0)return null;let a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=Lu(t),!t||t.indexOf("-")<0)return t;let a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(he(t)&&t.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(t)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(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 a;return t.forEach(r=>{if(a)return;let o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(a=o)}),!a&&this.options.supportedLngs&&t.forEach(r=>{if(a)return;let o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return a=o;let n=this.getLanguagePartFromCode(r);if(this.isSupportedCode(n))return a=n;a=this.options.supportedLngs.find(s=>{if(s===n)return s;if(!(s.indexOf("-")<0&&n.indexOf("-")<0)&&(s.indexOf("-")>0&&n.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===n||s.indexOf(n)===0&&n.length>1))return s})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),he(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let r=t[a];return r||(r=t[this.getScriptPartFromCode(a)]),r||(r=t[this.formatLanguageCode(a)]),r||(r=t[this.getLanguagePartFromCode(a)]),r||(r=t.default),r||[]}toResolveHierarchy(t,a){let r=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],t),o=[],n=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return he(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(t))):he(t)&&n(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&n(this.formatLanguageCode(s))}),o}},Mb={zero:0,one:1,two:2,few:3,many:4,other:5},_b={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},Mg=class{constructor(t,a={}){this.languageUtils=t,this.options=a,this.logger=Br.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,a){this.rules[t]=a}clearCache(){this.pluralRulesCache={}}getRule(t,a={}){let r=Lu(t==="dev"?"en":t),o=a.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:r,type:o});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),_b;if(!t.match(/-|_/))return _b;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,a)}return this.pluralRulesCache[n]=s,s}needsPlural(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,a,r={}){return this.getSuffixes(t,r).map(o=>`${a}${o}`)}getSuffixes(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?r.resolvedOptions().pluralCategories.sort((o,n)=>Mb[o]-Mb[n]).map(o=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,a,r={}){let o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(a)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",a,r))}},Ab=(e,t,a,r=".",o=!0)=>{let n=uE(e,t,a);return!n&&o&&he(a)&&(n=Pg(e,a,r),n===void 0&&(n=Pg(t,a,r))),n},kg=e=>e.replace(/\$/g,"$$$$"),_g=class{constructor(t={}){this.logger=Br.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:a,escapeValue:r,useRawValueToEscape:o,prefix:n,prefixEscaped:s,suffix:i,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:v,nestingSuffixEscaped:x,nestingOptionsSeparator:w,maxReplaces:m,alwaysFormat:p}=t.interpolation;this.escape=a!==void 0?a:cE,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=n?Ni(n):s||"{{",this.suffix=i?Ni(i):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Ni(f):h||Ni("$t("),this.nestingSuffix=v?Ni(v):x||Ni(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=m||1e3,this.alwaysFormat=p!==void 0?p:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(a,r)=>a?.source===r?(a.lastIndex=0,a):new RegExp(r,"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,a,r,o){let n,s,i,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){let m=Ab(a,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...o,...a,interpolationkey:h}):m}let v=h.split(this.formatSeparator),x=v.shift().trim(),w=v.join(this.formatSeparator).trim();return this.format(Ab(a,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...a,interpolationkey:x})};this.resetRegExp();let c=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>kg(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?kg(this.escape(h)):kg(h)}].forEach(h=>{for(i=0;n=h.regex.exec(t);){let v=n[1].trim();if(s=u(v),s===void 0)if(typeof c=="function"){let w=c(t,n,o);s=he(w)?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,v))s="";else if(d){s=n[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),s="";else!he(s)&&!this.useRawValueToEscape&&(s=kb(s));let x=h.safeValue(s);if(t=t.replace(n[0],x),d?(h.regex.lastIndex+=s.length,h.regex.lastIndex-=n[0].length):h.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,a,r={}){let o,n,s,i=(l,u)=>{let c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;let d=l.split(new RegExp(`${c}[ ]*{`)),f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);let h=f.match(/'/g),v=f.match(/"/g);((h?.length??0)%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,x),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!he(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(u!==-1&&(l=o[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),o[1]=o[1].slice(0,u)),n=a(i.call(this,o[1].trim(),s),s),n&&o[0]===t&&!he(n))return n;he(n)||(n=kb(n)),n||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),n=""),l.length&&(n=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:o[1].trim()}),n.trim())),t=t.replace(o[0],n),this.regexp.lastIndex=0}return t}},vE=e=>{let t=e.toLowerCase().trim(),a={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?a.currency||(a.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?a.range||(a.range=o.trim()):o.split(";").forEach(s=>{if(s){let[i,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=i.trim();a[c]||(a[c]=u),u==="false"&&(a[c]=!1),u==="true"&&(a[c]=!0),isNaN(u)||(a[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:a}},Eb=e=>{let t={};return(a,r,o)=>{let n=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(n={...n,[o.interpolationkey]:void 0});let s=r+JSON.stringify(n),i=t[s];return i||(i=e(Lu(r),o),t[s]=i),i(a)}},xE=e=>(t,a,r)=>e(Lu(a),r)(t),Ag=class{constructor(t={}){this.logger=Br.create("formatter"),this.options=t,this.init(t)}init(t,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";let r=a.cacheInBuiltFormats?Eb:xE;this.formats={number:r((o,n)=>{let s=new Intl.NumberFormat(o,{...n});return i=>s.format(i)}),currency:r((o,n)=>{let s=new Intl.NumberFormat(o,{...n,style:"currency"});return i=>s.format(i)}),datetime:r((o,n)=>{let s=new Intl.DateTimeFormat(o,{...n});return i=>s.format(i)}),relativetime:r((o,n)=>{let s=new Intl.RelativeTimeFormat(o,{...n});return i=>s.format(i,n.range||"day")}),list:r((o,n)=>{let s=new Intl.ListFormat(o,{...n});return i=>s.format(i)})}}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=Eb(a)}format(t,a,r,o={}){let n=a.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(i=>i.indexOf(")")>-1)){let i=n.findIndex(l=>l.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,i)].join(this.formatSeparator)}return n.reduce((i,l)=>{let{formatName:u,formatOptions:c}=vE(l);if(this.formats[u]){let d=i;try{let f=o?.formatParams?.[o.interpolationkey]||{},h=f.locale||f.lng||o.locale||o.lng||r;d=this.formats[u](i,h,{...c,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return i},t)}},yE=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Eg=class extends Fi{constructor(t,a,r,o={}){super(),this.backend=t,this.store=a,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Br.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,a,r,o){let n={},s={},i={},l={};return t.forEach(u=>{let c=!0;a.forEach(d=>{let f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),n[f]===void 0&&(n[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(i[u]=!0)}),(Object.keys(n).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(n),pending:Object.keys(s),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(t,a,r){let o=t.split("|"),n=o[0],s=o[1];a&&this.emit("failedLoading",n,s,a),!a&&r&&this.store.addResourceBundle(n,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&r&&(this.state[t]=0);let i={};this.queue.forEach(l=>{lE(l.loaded,[n],s),yE(l,t),a&&l.errors.push(a),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{i[u]||(i[u]={});let c=l.loaded[u];c.length&&c.forEach(d=>{i[u][d]===void 0&&(i[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(t,a,r,o=0,n=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:r,tried:o,wait:n,callback:s});return}this.readingCalls++;let i=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,r,o+1,n*2,s)},n);return}s(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{let u=l(t,a);u&&typeof u.then=="function"?u.then(c=>i(null,c)).catch(i):i(null,u)}catch(u){i(u)}return}return l(t,a,i)}prepareLoading(t,a,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();he(t)&&(t=this.languageUtils.toResolveHierarchy(t)),he(a)&&(a=[a]);let n=this.queueLoad(t,a,r,o);if(!n.toLoad.length)return n.pending.length||o(),null;n.toLoad.forEach(s=>{this.loadOne(s)})}load(t,a,r){this.prepareLoading(t,a,{},r)}reload(t,a,r){this.prepareLoading(t,a,{reload:!0},r)}loadOne(t,a=""){let r=t.split("|"),o=r[0],n=r[1];this.read(o,n,"read",void 0,void 0,(s,i)=>{s&&this.logger.warn(`${a}loading namespace ${n} for language ${o} failed`,s),!s&&i&&this.logger.log(`${a}loaded namespace ${n} for language ${o}`,i),this.loaded(t,s,i)})}saveMissing(t,a,r,o,n,s={},i=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${r}" as the namespace "${a}" 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(!(r==null||r==="")){if(this.backend?.create){let l={...s,isUpdate:n},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,a,r,o,l):c=u(t,a,r,o),c&&typeof c.then=="function"?c.then(d=>i(null,d)).catch(i):i(null,c)}catch(c){i(c)}else u(t,a,r,o,i,l)}!t||!t[0]||this.store.addResource(t[0],a,r,o)}}},Ob=()=>({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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),he(e[1])&&(t.defaultValue=e[1]),he(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let a=e[3]||e[2];Object.keys(a).forEach(r=>{t[r]=a[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Nb=e=>(he(e.ns)&&(e.ns=[e.ns]),he(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),he(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),rf=()=>{},wE=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})},uf=class e extends Fi{constructor(t={},a){if(super(),this.options=Nb(t),this.services={},this.logger=Br,this.modules={external:[]},wE(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(t={},a){this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(he(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let r=Ob();this.options={...r,...this.options,...Nb(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Br.init(o(this.modules.logger),this.options):Br.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Ag;let c=new lf(this.options);this.store=new nf(this.options.resources,this.options);let d=this.services;d.logger=Br,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new Mg(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.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"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=o(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new _g(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Eg(o(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(h,...v)=>{this.emit(h,...v)}),this.modules.languageDetector&&(d.languageDetector=o(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=o(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new sf(this.services,this.options),this.translator.on("*",(h,...v)=>{this.emit(h,...v)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,a||(a=rf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});let i=Cu(),l=()=>{let u=(c,d)=>{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),i.resolve(d),a(c,d)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),i}loadResources(t,a=rf){let r=a,o=he(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();let n=[],s=i=>{if(!i||i==="cimode")return;this.services.languageUtils.toResolveHierarchy(i).forEach(u=>{u!=="cimode"&&n.indexOf(u)<0&&n.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(i=>s(i)),this.services.backendConnector.load(n,this.options.ns,i=>{!i&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(i)})}else r(null)}reloadResources(t,a,r){let o=Cu();return typeof t=="function"&&(r=t,t=void 0),typeof a=="function"&&(r=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),r||(r=rf),this.services.backendConnector.reload(t,a,n=>{o.resolve(),r(n)}),o}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"&&zb.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 a=0;a<this.languages.length;a++){let r=this.languages[a];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,a){this.isLanguageChangingTo=t;let r=Cu();this.emit("languageChanging",t);let o=i=>{this.language=i,this.languages=this.services.languageUtils.toResolveHierarchy(i),this.resolvedLanguage=void 0,this.setResolvedLanguage(i)},n=(i,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),a&&a(i,(...u)=>this.t(...u))},s=i=>{!t&&!i&&this.services.languageDetector&&(i=[]);let l=he(i)?i:i&&i[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(he(i)?[i]:i);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,c=>{n(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,a,r){let o=(n,s,...i)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([n,s].concat(i)):l={...s},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);let u=this.options.keySeparator||".",c;return l.keyPrefix&&Array.isArray(n)?c=n.map(d=>(typeof d=="function"&&(d=Tg(d,{...this.options,...s})),`${l.keyPrefix}${u}${d}`)):(typeof n=="function"&&(n=Tg(n,{...this.options,...s})),c=l.keyPrefix?`${l.keyPrefix}${u}${n}`:n),this.t(c,l)};return he(t)?o.lng=t:o.lngs=t,o.ns=a,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,a={}){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;let r=a.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;let s=(i,l)=>{let u=this.services.backendConnector.state[`${i}|${l}`];return u===-1||u===0||u===2};if(a.precheck){let i=a.precheck(this,s);if(i!==void 0)return i}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(n,t)))}loadNamespaces(t,a){let r=Cu();return this.options.ns?(he(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),a&&a(o)}),r):(a&&a(),Promise.resolve())}loadLanguages(t,a){let r=Cu();he(t)&&(t=[t]);let o=this.options.preload||[],n=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return n.length?(this.options.preload=o.concat(n),this.loadResources(s=>{r.resolve(),a&&a(s)}),r):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let o=new Intl.Locale(t);if(o&&o.getTextInfo){let n=o.getTextInfo();if(n&&n.direction)return n.direction}}catch{}let a=["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"],r=this.services?.languageUtils||new lf(Ob());return t.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},a){return new e(t,a)}cloneInstance(t={},a=rf){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},n=new e(o);if((t.debug!==void 0||t.prefix!==void 0)&&(n.logger=n.logger.clone(t)),["store","services","language"].forEach(i=>{n[i]=this[i]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},r){let i=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,d)=>(c[d]={...l[u][d]},c),l[u]),l),{});n.store=new nf(i,o),n.services.resourceStore=n.store}return n.translator=new sf(n.services,o),n.translator.on("*",(i,...l)=>{n.emit(i,...l)}),n.init(o,a),n.translator.options=o,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},pa=uf.createInstance();pa.createInstance=uf.createInstance;var Ub=pa.createInstance,TH=pa.dir,MH=pa.init,_H=pa.loadResources,AH=pa.reloadResources,EH=pa.use,OH=pa.changeLanguage,NH=pa.getFixedT,FH=pa.t,zH=pa.exists,BH=pa.setDefaultNamespace,UH=pa.hasLoadedNamespace,HH=pa.loadNamespaces,jH=pa.loadLanguages;var pn=F(ee(),1),CE=Symbol("remote-view.message"),Ng=class extends Error{constructor(t,a,r){super(),this.key=t,this.values=a,Object.defineProperty(this,"message",{configurable:!0,get:()=>r(t,a)}),this.name="ViewMessageError"}key;values},Og={en:{close:"Close",commandTitle:"Command palette",commandDescription:"Search for a command to run\u2026"},"zh-Hans":{close:"\u5173\u95ED",commandTitle:"\u547D\u4EE4\u9762\u677F",commandDescription:"\u641C\u7D22\u8981\u8FD0\u884C\u7684\u547D\u4EE4\u2026"},"zh-Hant":{close:"\u95DC\u9589",commandTitle:"\u547D\u4EE4\u9762\u677F",commandDescription:"\u641C\u5C0B\u8981\u57F7\u884C\u7684\u547D\u4EE4\u2026"}};function Hb(e){try{let t=new Intl.Locale((e||"en").replaceAll("_","-"));return t.language==="zh"?t.maximize().script==="Hant"?"zh-Hant":"zh-Hans":"en"}catch{return"en"}}function Fg(e,t=typeof navigator>"u"?"en":navigator.language){let a=i=>{let l=Hb(i);return l==="zh-Hant"&&!e["zh-Hant"]?"zh-Hans":l},r=Ub();r.init({lng:a(t),fallbackLng:"en",supportedLngs:["en","zh-Hans","zh-Hant"],load:"currentOnly",initAsync:!1,keySeparator:!1,defaultNS:"view",interpolation:{escapeValue:!1},resources:{en:{view:e.en,ui:Og.en},"zh-Hans":{view:e["zh-Hans"],ui:Og["zh-Hans"]},"zh-Hant":{view:e["zh-Hant"]??e["zh-Hans"],ui:Og["zh-Hant"]}}});let o=()=>a(r.resolvedLanguage??r.language),n=i=>(r.on("languageChanged",i),()=>{r.off("languageChanged",i)}),s=(i,l)=>String(r.t(i,l));return{getLocale:o,subscribe:n,setLocale(i){i!==void 0&&r.changeLanguage(a(i)),typeof document<"u"&&(document.documentElement.lang=o())},t:(i,l)=>s(i,l),message:(i,l)=>({[CE]:!0,key:i,values:l}),error:(i,l)=>new Ng(i,l,s),format(i){return typeof i=="string"?i:i instanceof Error?i.message:s(i.key,i.values)},ui:i=>String(r.t(i,{ns:"ui"})),date(i,l={}){let u=new Date(i);return Number.isNaN(u.getTime())?"":new Intl.DateTimeFormat(o(),l).format(u)},number(i,l){return new Intl.NumberFormat(o(),l).format(i)},label(i,l=""){if(typeof i=="string")return i;let u=Object.entries(i),c=o();return u.find(([d])=>Hb(d)===c&&/^(en|zh)([-_]|$)/i.test(d))?.[1]??i.en_US??i.en??i["en-US"]??l}}}var SE=Fg({en:{},"zh-Hans":{}},"en"),Vb=(0,pn.createContext)(SE);function qb({i18n:e,children:t}){return(0,jb.jsx)(Vb.Provider,{value:e,children:t})}function df(e){return(0,pn.useSyncExternalStore)(e.subscribe,e.getLocale,e.getLocale)}function Wb(e,t=""){df(e);let[a,r]=(0,pn.useState)(t);return[e.format(a),r]}function zg(){let e=(0,pn.useContext)(Vb);return df(e),e.ui}var ji=F(fe(),1),be=F(ee(),1);function LE(e,t){let a=getComputedStyle(e),r=parseFloat(a.fontSize);return t*r}function IE(e,t){let a=getComputedStyle(e.ownerDocument.documentElement),r=parseFloat(a.fontSize);return t*r}function bE(e){return e/100*window.innerHeight}function kE(e){return e/100*window.innerWidth}function RE(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Iu({groupSize:e,panelElement:t,styleProp:a}){let r,[o,n]=RE(a);switch(n){case"%":{r=o/100*e;break}case"px":{r=o;break}case"rem":{r=IE(t,o);break}case"em":{r=LE(t,o);break}case"vh":{r=bE(o);break}case"vw":{r=kE(o);break}}return r}function ma(e){return parseFloat(e.toFixed(3))}function Vi({group:e}){let{orientation:t,panels:a}=e;return a.reduce((r,o)=>(r+=t==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,r),0)}function Ug(e){let{panels:t}=e,a=Vi({group:e});return a===0?t.map(r=>({groupResizeBehavior:r.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:r.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:r.panelConstraints.disabled,minSize:0,maxSize:100,panelId:r.id})):t.map(r=>{let{element:o,panelConstraints:n}=r,s=0;if(n.collapsedSize!==void 0){let c=Iu({groupSize:a,panelElement:o,styleProp:n.collapsedSize});s=ma(c/a*100)}let i;if(n.defaultSize!==void 0){let c=Iu({groupSize:a,panelElement:o,styleProp:n.defaultSize});i=ma(c/a*100)}let l=0;if(n.minSize!==void 0){let c=Iu({groupSize:a,panelElement:o,styleProp:n.minSize});l=ma(c/a*100)}let u=100;if(n.maxSize!==void 0){let c=Iu({groupSize:a,panelElement:o,styleProp:n.maxSize});u=ma(c/a*100)}return{groupResizeBehavior:n.groupResizeBehavior,collapsedSize:s,collapsible:n.collapsible===!0,defaultSize:i,disabled:n.disabled,minSize:l,maxSize:u,panelId:r.id}})}function $e(e,t="Assertion error"){if(!e)throw Error(t)}function Hg(e,t){return Array.from(t).sort(e==="horizontal"?PE:DE)}function PE(e,t){let a=e.element.offsetLeft-t.element.offsetLeft;return a!==0?a:e.element.offsetWidth-t.element.offsetWidth}function DE(e,t){let a=e.element.offsetTop-t.element.offsetTop;return a!==0?a:e.element.offsetHeight-t.element.offsetHeight}function uk(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function dk(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function TE({orientation:e,rects:t,targetRect:a}){let r={x:a.x+a.width/2,y:a.y+a.height/2},o,n=Number.MAX_VALUE;for(let s of t){let{x:i,y:l}=dk(r,s),u=e==="horizontal"?i:l;u<n&&(n=u,o=s)}return $e(o,"No rect found"),o}var cf;function ME(){return cf===void 0&&(typeof matchMedia=="function"?cf=!!matchMedia("(pointer:coarse)").matches:cf=!1),cf}function ck(e){let{element:t,orientation:a,panels:r,separators:o}=e,n=Hg(a,Array.from(t.children).filter(uk).map(v=>({element:v}))).map(({element:v})=>v),s=[],i=!1,l=!1,u=-1,c=-1,d=0,f,h=[];{let v=-1;for(let x of n)x.hasAttribute("data-panel")&&(v++,x.hasAttribute("data-disabled")||(d++,u===-1&&(u=v),c=v))}if(d>1){let v=-1;for(let x of n)if(x.hasAttribute("data-panel")){v++;let w=r.find(m=>m.element===x);if(w){if(f){let m=f.element.getBoundingClientRect(),p=x.getBoundingClientRect(),g;if(l){let y=a==="horizontal"?new DOMRect(m.right,m.top,0,m.height):new DOMRect(m.left,m.bottom,m.width,0),L=a==="horizontal"?new DOMRect(p.left,p.top,0,p.height):new DOMRect(p.left,p.top,p.width,0);switch(h.length){case 0:{g=[y,L];break}case 1:{let b=h[0],R=TE({orientation:a,rects:[m,p],targetRect:b.element.getBoundingClientRect()});g=[b,R===m?L:y];break}default:{g=h;break}}}else h.length?g=h:g=[a==="horizontal"?new DOMRect(m.right,p.top,p.left-m.right,p.height):new DOMRect(p.left,m.bottom,p.width,p.top-m.bottom)];for(let y of g){let L="width"in y?y:y.element.getBoundingClientRect(),b=ME()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(L.width<b){let k=b-L.width;L=new DOMRect(L.x-k/2,L.y,L.width+k,L.height)}if(L.height<b){let k=b-L.height;L=new DOMRect(L.x,L.y-k/2,L.width,L.height+k)}let R=v<=u||v>c;!i&&!R&&s.push({group:e,groupSize:Vi({group:e}),panels:[f,w],separator:"width"in y?void 0:y,rect:L}),i=!1}}l=!1,f=w,h=[]}}else if(x.hasAttribute("data-separator")){x.ariaDisabled!==null&&(i=!0);let w=o.find(m=>m.element===x);w?h.push(w):(f=void 0,h=[])}else l=!0}return s}var mf=class{#e={};addListener(t,a){let r=this.#e[t];return r===void 0?this.#e[t]=[a]:r.includes(a)||r.push(a),()=>{this.removeListener(t,a)}}emit(t,a){let r=this.#e[t];if(r!==void 0)if(r.length===1)r[0].call(null,a);else{let o=!1,n=null,s=Array.from(r);for(let i=0;i<s.length;i++){let l=s[i];try{l.call(null,a)}catch(u){n===null&&(o=!0,n=u)}}if(o)throw n}}removeAllListeners(){this.#e={}}removeListener(t,a){let r=this.#e[t];if(r!==void 0){let o=r.indexOf(a);o>=0&&r.splice(o,1)}}},Ui={cursorFlags:0,state:"inactive"},jg=new mf;function rs(){return Ui}function _E(e){return jg.addListener("change",e)}function AE(e){let t=Ui,a={...Ui};a.cursorFlags=e,Ui=a,jg.emit("change",{prev:t,next:a})}function Hi(e){let t=Ui;Ui=e,jg.emit("change",{prev:t,next:e})}var EE=e=>e,Bg=()=>{},fk=1,pk=2,mk=4,hk=8,Gb=3,$b=12,ff;function Kb(){return ff===void 0&&(ff=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(ff=!0)),ff}function OE({cursorFlags:e,groups:t,state:a}){let r=0,o=0;switch(a){case"active":case"hover":t.forEach(n=>{if(!n.mutableState.disableCursor)switch(n.orientation){case"horizontal":{r++;break}case"vertical":{o++;break}}})}if(!(r===0&&o===0)){switch(a){case"active":{if(e&&Kb()){let n=(e&fk)!==0,s=(e&pk)!==0,i=(e&mk)!==0,l=(e&hk)!==0;if(n)return i?"se-resize":l?"ne-resize":"e-resize";if(s)return i?"sw-resize":l?"nw-resize":"w-resize";if(i)return"s-resize";if(l)return"n-resize"}break}}return Kb()?r>0&&o>0?"move":r>0?"ew-resize":"ns-resize":r>0&&o>0?"grab":r>0?"col-resize":"row-resize"}}var Xb=new WeakMap;function Vg(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:a}=Xb.get(e)??{};a===void 0&&(a=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(a):e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]));let r=rs();switch(r.state){case"active":case"hover":{let o=OE({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(s=>s.group),state:r.state}),n=`*, *:hover {cursor: ${o} !important; }`;if(t===n)return;t=n,o?a.cssRules.length===0?a.insertRule(n):a.replaceSync(n):a.cssRules.length===1&&a.deleteRule(0);break}case"inactive":{t=void 0,a.cssRules.length===1&&a.deleteRule(0);break}}Xb.set(e,{prevStyle:t,styleSheet:a})}var Hr=new Map,gk=new mf;function NE(e){Hr=new Map(Hr),Hr.delete(e)}function Zb(e,t){for(let[a]of Hr)if(a.id===e)return a}function mn(e,t){for(let[a,r]of Hr)if(a.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function ss(){return Hr}function qg(e,t){return gk.addListener("groupChange",a=>{a.group.id===e&&t(a)})}function bo(e,t,a){let r=Hr.get(e);Hr=new Map(Hr),Hr.set(e,t),gk.emit("groupChange",{group:e,isUserInteraction:a?.isUserInteraction===!0,prev:r,next:t})}function vk(e){let t=rs(),a=!1;return t.state==="active"&&(Hi({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(Vg(e),a=!0,t.hitRegions.forEach(r=>{let o=mn(r.group.id,!0);bo(r.group,o,{isUserInteraction:!0})}))),a}function Qb(e){e.defaultPrevented||vk(e.currentTarget)}function FE(e,t,a){let r,o={x:1/0,y:1/0};for(let n of t){let s=dk(a,n.rect);switch(e){case"horizontal":{s.x<=o.x&&(r=n,o=s);break}case"vertical":{s.y<=o.y&&(r=n,o=s);break}}}return r?{distance:o,hitRegion:r}:void 0}function zE(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function BE(e,t){if(e===t)throw new Error("Cannot compare node with itself");let a={a:ek(e),b:ek(t)},r;for(;a.a.at(-1)===a.b.at(-1);)r=a.a.pop(),a.b.pop();$e(r,"Stacking order can only be calculated for elements with a common ancestor");let o={a:Jb(Yb(a.a)),b:Jb(Yb(a.b))};if(o.a===o.b){let n=r.childNodes,s={a:a.a.at(-1),b:a.b.at(-1)},i=n.length;for(;i--;){let l=n[i];if(l===s.a)return 1;if(l===s.b)return-1}}return Math.sign(o.a-o.b)}var UE=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function HE(e){let t=getComputedStyle(xk(e)??e).display;return t==="flex"||t==="inline-flex"}function jE(e){let t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||HE(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||UE.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Yb(e){let t=e.length;for(;t--;){let a=e[t];if($e(a,"Missing node"),jE(a))return a}return null}function Jb(e){return e&&Number(getComputedStyle(e).zIndex)||0}function ek(e){let t=[];for(;e;)t.push(e),e=xk(e);return t}function xk(e){let{parentNode:t}=e;return zE(t)?t.host:t}function VE(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function qE({groupElement:e,hitRegion:t,pointerEventTarget:a}){if(!uk(a)||a.contains(e)||e.contains(a))return!0;if(BE(a,e)>0){let r=a;for(;r;){if(r.contains(e))return!0;if(VE(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function Wg(e,t){let a=[];return t.forEach((r,o)=>{if(o.disabled)return;let n=ck(o),s=FE(o.orientation,n,{x:e.clientX,y:e.clientY});s&&s.distance.x<=0&&s.distance.y<=0&&qE({groupElement:o.element,hitRegion:s.hitRegion.rect,pointerEventTarget:e.target})&&a.push(s.hitRegion)}),a}function WE(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return!1;return!0}function ea(e,t,a=0){return Math.abs(ma(e)-ma(t))<=a}function Ur(e,t){return ea(e,t)?0:e>t?1:-1}function Bi({overrideDisabledPanels:e,panelConstraints:t,prevSize:a,size:r}){let{collapsedSize:o=0,collapsible:n,disabled:s,maxSize:i=100,minSize:l=0}=t;if(s&&!e)return a;if(Ur(r,l)<0)if(n){let u=(o+l)/2;Ur(r,u)<0?r=o:r=l}else r=l;return r=Math.min(i,r),r=ma(r),r}function ku({delta:e,initialLayout:t,panelConstraints:a,pivotIndices:r,prevLayout:o,trigger:n}){if(ea(e,0))return t;let s=n==="imperative-api",i=Object.values(t),l=Object.values(o),u=[...i],[c,d]=r;$e(c!=null,"Invalid first pivot index"),$e(d!=null,"Invalid second pivot index");let f=0;switch(n){case"keyboard":{{let x=e<0?d:c,w=a[x];$e(w,`Panel constraints not found for index ${x}`);let{collapsedSize:m=0,collapsible:p,minSize:g=0}=w;if(p){let y=i[x];if($e(y!=null,`Previous layout not found for panel index ${x}`),ea(y,m)){let L=g-y;Ur(L,Math.abs(e))>0&&(e=e<0?0-L:L)}}}{let x=e<0?c:d,w=a[x];$e(w,`No panel constraints found for index ${x}`);let{collapsedSize:m=0,collapsible:p,minSize:g=0}=w;if(p){let y=i[x];if($e(y!=null,`Previous layout not found for panel index ${x}`),ea(y,g)){let L=y-m;Ur(L,Math.abs(e))>0&&(e=e<0?0-L:L)}}}break}default:{let x=e<0?d:c,w=a[x];$e(w,`Panel constraints not found for index ${x}`);let m=i[x],{collapsible:p,collapsedSize:g,minSize:y}=w;if(p&&Ur(m,y)<0)if(e>0){let L=y-g,b=L/2,R=m+e;Ur(R,y)<0&&(e=Ur(e,b)<=0?0:L)}else{let L=y-g,b=100-L/2,R=m-e;Ur(R,y)<0&&(e=Ur(100+e,b)>0?0:-L)}break}}{let x=e<0?1:-1,w=e<0?d:c,m=0;for(;;){let g=i[w];$e(g!=null,`Previous layout not found for panel index ${w}`);let y=Bi({overrideDisabledPanels:s,panelConstraints:a[w],prevSize:g,size:100})-g;if(m+=y,w+=x,w<0||w>=a.length)break}let p=Math.min(Math.abs(e),Math.abs(m));e=e<0?0-p:p}{let x=e<0?c:d;for(;x>=0&&x<a.length;){let w=Math.abs(e)-Math.abs(f),m=i[x];$e(m!=null,`Previous layout not found for panel index ${x}`);let p=m-w,g=Bi({overrideDisabledPanels:s,panelConstraints:a[x],prevSize:m,size:p});if(!ea(m,g)&&(f+=m-g,u[x]=g,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?x--:x++}}if(WE(l,u))return o;{let x=e<0?d:c,w=i[x];$e(w!=null,`Previous layout not found for panel index ${x}`);let m=w+f,p=Bi({overrideDisabledPanels:s,panelConstraints:a[x],prevSize:w,size:m});if(u[x]=p,!ea(p,m)){let g=m-p,y=e<0?d:c;for(;y>=0&&y<a.length;){let L=u[y];$e(L!=null,`Previous layout not found for panel index ${y}`);let b=L+g,R=Bi({overrideDisabledPanels:s,panelConstraints:a[y],prevSize:L,size:b});if(ea(L,R)||(g-=R-L,u[y]=R),ea(g,0))break;e>0?y--:y++}}}let h=Object.values(u).reduce((x,w)=>w+x,0);if(!ea(h,100,.1))return o;let v=Object.keys(o);return u.reduce((x,w,m)=>(x[v[m]]=w,x),{})}function os(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t[a]===void 0||Ur(e[a],t[a])!==0)return!1;return!0}function ns({layout:e,panelConstraints:t}){let a=Object.values(e),r=[...a],o=r.reduce((i,l)=>i+l,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(i=>`${i}%`).join(", ")}`);if(!ea(o,100)&&r.length>0)for(let i=0;i<t.length;i++){let l=r[i];$e(l!=null,`No layout data found for index ${i}`);let u=100/o*l;r[i]=u}let n=0;for(let i=0;i<t.length;i++){let l=a[i];$e(l!=null,`No layout data found for index ${i}`);let u=r[i];$e(u!=null,`No layout data found for index ${i}`);let c=Bi({overrideDisabledPanels:!0,panelConstraints:t[i],prevSize:l,size:u});u!=c&&(n+=u-c,r[i]=c)}if(!ea(n,0))for(let i=0;i<t.length;i++){let l=r[i];$e(l!=null,`No layout data found for index ${i}`);let u=l+n,c=Bi({overrideDisabledPanels:!0,panelConstraints:t[i],prevSize:l,size:u});if(l!==c&&(n-=c-l,r[i]=c,ea(n,0)))break}let s=Object.keys(e);return r.reduce((i,l,u)=>(i[s[u]]=l,i),{})}function yk({groupId:e,panelId:t}){let a=()=>{let l=ss();for(let[u,{defaultLayoutDeferred:c,derivedPanelConstraints:d,layout:f,groupSize:h,separatorToPanels:v}]of l)if(u.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:d,group:u,groupSize:h,layout:f,separatorToPanels:v};throw Error(`Group ${e} not found`)},r=()=>{let l=a().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},o=()=>{let l=a().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},n=()=>{let l=a().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=({nextSize:l,panels:u,prevLayout:c,derivedPanelConstraints:d})=>{let f=n(),h=u.findIndex(w=>w.id===t),v=h===0,x=h===u.length-1;if(x&&l<f&&(v||u.slice(0,h).every((w,m)=>{let p=d[m];return p?.collapsible&&ea(p.collapsedSize,c[p.panelId])}))){let w=u.slice(0,h).reduce((m,p)=>m+c[p.id],0);return{...c,[t]:ma(100-w)}}return ku({delta:x?f-l:l-f,initialLayout:c,panelConstraints:d,pivotIndices:x?[h-1,h]:[h,h+1],prevLayout:c,trigger:"imperative-api"})},i=l=>{let u=n();if(l===u)return;let{defaultLayoutDeferred:c,derivedPanelConstraints:d,group:f,groupSize:h,layout:v,separatorToPanels:x}=a(),w=s({nextSize:l,panels:f.panels,prevLayout:v,derivedPanelConstraints:d}),m=ns({layout:w,panelConstraints:d});os(v,m)||bo(f,{defaultLayoutDeferred:c,derivedPanelConstraints:d,groupSize:h,layout:m,separatorToPanels:x})};return{collapse:()=>{let{collapsible:l,collapsedSize:u}=r(),{mutableValues:c}=o(),d=n();l&&d!==u&&(c.expandToSize=d,i(u))},expand:()=>{let{collapsible:l,collapsedSize:u,minSize:c}=r(),{mutableValues:d}=o(),f=n();if(l&&f===u){let h=d.expandToSize??c;h===0&&(h=1),i(h)}},getSize:()=>{let{group:l}=a(),u=n(),{element:c}=o(),d=l.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:u,inPixels:d}},isCollapsed:()=>{let{collapsible:l,collapsedSize:u}=r(),c=n();return l&&ea(u,c)},resize:l=>{let{group:u}=a(),{element:c}=o(),d=Vi({group:u}),f=Iu({groupSize:d,panelElement:c,styleProp:l}),h=ma(f/d*100);i(h)}}}function tk(e){if(e.defaultPrevented)return;let t=ss();Wg(e,t).forEach(a=>{if(a.separator&&!a.separator.disableDoubleClick){let r=a.panels.find(o=>o.panelConstraints.defaultSize!==void 0);if(r){let o=r.panelConstraints.defaultSize,n=yk({groupId:a.group.id,panelId:r.id});n&&o!==void 0&&(n.resize(o),e.preventDefault())}}})}function pf(e){let t=ss();for(let[a]of t)if(a.separators.some(r=>r.element===e))return a;throw Error("Could not find parent Group for separator element")}function wk({groupId:e}){let t=()=>{let a=ss();for(let[r,o]of a)if(r.id===e)return{group:r,...o};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:a,layout:r}=t();return a?{}:r},setLayout(a){let{defaultLayoutDeferred:r,derivedPanelConstraints:o,group:n,groupSize:s,layout:i,separatorToPanels:l}=t(),u=ns({layout:a,panelConstraints:o});return r?i:(os(i,u)||bo(n,{defaultLayoutDeferred:r,derivedPanelConstraints:o,groupSize:s,layout:u,separatorToPanels:l}),u)}}}function as(e,t){let a=pf(e),r=mn(a.id,!0),o=a.separators.find(c=>c.element===e);$e(o,"Matching separator not found");let n=r.separatorToPanels.get(o);$e(n,"Matching panels not found");let s=n.map(c=>a.panels.indexOf(c)),i=wk({groupId:a.id}).getLayout(),l=ku({delta:t,initialLayout:i,panelConstraints:r.derivedPanelConstraints,pivotIndices:s,prevLayout:i,trigger:"keyboard"}),u=ns({layout:l,panelConstraints:r.derivedPanelConstraints});os(i,u)||bo(a,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:u,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function ak(e){if(e.defaultPrevented)return;let t=e.currentTarget,a=pf(t);if(!a.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),a.orientation==="vertical"&&as(t,5);break}case"ArrowLeft":{e.preventDefault(),a.orientation==="horizontal"&&as(t,-5);break}case"ArrowRight":{e.preventDefault(),a.orientation==="horizontal"&&as(t,5);break}case"ArrowUp":{e.preventDefault(),a.orientation==="vertical"&&as(t,-5);break}case"End":{e.preventDefault(),as(t,100);break}case"Enter":{e.preventDefault();let r=pf(t),o=mn(r.id,!0),{derivedPanelConstraints:n,layout:s,separatorToPanels:i}=o,l=r.separators.find(f=>f.element===t);$e(l,"Matching separator not found");let u=i.get(l);$e(u,"Matching panels not found");let c=u[0],d=n.find(f=>f.panelId===c.id);if($e(d,"Panel metadata not found"),d.collapsible){let f=s[c.id],h=d.collapsedSize===f?r.mutableState.expandedPanelSizes[c.id]??d.minSize:d.collapsedSize;as(t,h-f)}break}case"F6":{e.preventDefault();let r=pf(t).separators.map(s=>s.element),o=Array.from(r).findIndex(s=>s===e.currentTarget);$e(o!==null,"Index not found");let n=e.shiftKey?o>0?o-1:r.length-1:o+1<r.length?o+1:0;r[n].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),as(t,-100);break}}}function rk(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;let t=ss(),a=Wg(e,t),r=new Map,o=!1;a.forEach(n=>{n.separator&&(o||(o=!0,n.separator.element.focus({focusVisible:!1,preventScroll:!0})));let s=t.get(n.group);s&&r.set(n.group,s.layout)}),Hi({cursorFlags:0,hitRegions:a,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),a.length&&e.preventDefault()}function Ck({document:e,event:t,hitRegions:a,initialLayoutMap:r,mountedGroups:o,pointerDownAtPoint:n,prevCursorFlags:s}){let i=0;a.forEach(u=>{let{group:c,groupSize:d}=u,{orientation:f,panels:h}=c,{disableCursor:v}=c.mutableState,x=0;n?f==="horizontal"?x=(t.clientX-n.x)/d*100:x=(t.clientY-n.y)/d*100:f==="horizontal"?x=t.clientX<0?-100:100:x=t.clientY<0?-100:100;let w=r.get(c),m=o.get(c);if(!w||!m)return;let{defaultLayoutDeferred:p,derivedPanelConstraints:g,groupSize:y,layout:L,separatorToPanels:b}=m;if(g&&L&&b){let R=ku({delta:x,initialLayout:w,panelConstraints:g,pivotIndices:u.panels.map(k=>h.indexOf(k)),prevLayout:L,trigger:"mouse-or-touch"});if(os(R,L)){if(x!==0&&!v)switch(f){case"horizontal":{i|=x<0?fk:pk;break}case"vertical":{i|=x<0?mk:hk;break}}}else bo(u.group,{defaultLayoutDeferred:p,derivedPanelConstraints:g,groupSize:y,layout:R,separatorToPanels:b})}});let l=0;t.movementX===0?l|=s&Gb:l|=i&Gb,t.movementY===0?l|=s&$b:l|=i&$b,AE(l),Vg(e)}function ok(e){let t=ss(),a=rs();a.state==="active"&&Ck({document:e.currentTarget,event:e,hitRegions:a.hitRegions,initialLayoutMap:a.initialLayoutMap,mountedGroups:t,prevCursorFlags:a.cursorFlags})}function nk(e){if(e.defaultPrevented)return;let t=rs(),a=ss();switch(t.state){case"active":{if(e.buttons===0){Hi({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(r=>{let o=mn(r.group.id,!0);bo(r.group,o,{isUserInteraction:!0})});return}for(let r of t.hitRegions)if(r.separator){let{element:o}=r.separator;o.hasPointerCapture?.(e.pointerId)||o.setPointerCapture?.(e.pointerId)}Ck({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:a,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{let r=Wg(e,a);r.length===0?t.state!=="inactive"&&Hi({cursorFlags:0,state:"inactive"}):Hi({cursorFlags:0,hitRegions:r,state:"hover"}),Vg(e.currentTarget);break}}}function sk(e){e.relatedTarget instanceof HTMLIFrameElement&&rs().state==="hover"&&Hi({cursorFlags:0,state:"inactive"})}function ik(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||vk(e.currentTarget)&&e.preventDefault()}function lk(e){let t=0,a=0,r={};for(let n of e)if(n.defaultSize!==void 0){t++;let s=ma(n.defaultSize);a+=s,r[n.panelId]=s}else r[n.panelId]=void 0;let o=e.length-t;if(o!==0){let n=ma((100-a)/o);for(let s of e)s.defaultSize===void 0&&(r[s.panelId]=n)}return r}function GE(e,t,a){if(!a[0])return;let r=e.panels.find(l=>l.element===t);if(!r||!r.onResize)return;let o=Vi({group:e}),n=e.orientation==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,s=r.mutableValues.prevSize,i={asPercentage:ma(n/o*100),inPixels:n};r.mutableValues.prevSize=i,r.onResize(i,r.id,s)}function $E(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(e[a]!==t[a])return!1;return!0}function KE({group:e,nextGroupSize:t,prevGroupSize:a,prevLayout:r}){if(a<=0||t<=0||a===t)return r;let o=0,n=0,s=!1,i=new Map,l=[];for(let d of e.panels){let f=r[d.id]??0;if(d.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){s=!0;let h=f/100*a,v=ma(h/t*100);i.set(d.id,v),o+=v}else l.push(d.id),n+=f}if(!s||l.length===0)return r;let u=100-o,c={...r};if(i.forEach((d,f)=>{c[f]=d}),n>0)for(let d of l){let f=r[d]??0;c[d]=ma(f/n*u)}else{let d=ma(u/l.length);for(let f of l)c[f]=d}return c}function XE(e,t){let a=e.map(o=>o.id),r=Object.keys(t);if(a.length!==r.length)return!1;for(let o of a)if(!r.includes(o))return!1;return!0}var zi=new Map;function ZE(e){let t=!0;$e(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");let a=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,o=new Set,n=new a(v=>{for(let x of v){let{borderBoxSize:w,target:m}=x;if(m===e.element){if(t){let p=Vi({group:e});if(p===0)return;let g=mn(e.id);if(!g)return;let y=Ug(e),L=g.defaultLayoutDeferred?lk(y):g.layout,b=KE({group:e,nextGroupSize:p,prevGroupSize:g.groupSize,prevLayout:L}),R=ns({layout:b,panelConstraints:y});if(!g.defaultLayoutDeferred&&os(g.layout,R)&&$E(g.derivedPanelConstraints,y)&&g.groupSize===p)return;bo(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:y,groupSize:p,layout:R,separatorToPanels:g.separatorToPanels})}}else GE(e,m,w)}});n.observe(e.element),e.panels.forEach(v=>{$e(!r.has(v.id),`Panel ids must be unique; id "${v.id}" was used more than once`),r.add(v.id),v.onResize&&n.observe(v.element)});let s=Vi({group:e}),i=Ug(e),l=e.panels.map(({id:v})=>v).join(","),u=e.mutableState.defaultLayout;u&&(XE(e.panels,u)||(u=void 0));let c=e.mutableState.layouts[l]??u??lk(i),d=ns({layout:c,panelConstraints:i}),f=e.element.ownerDocument;zi.set(f,(zi.get(f)??0)+1);let h=new Map;return ck(e).forEach(v=>{v.separator&&h.set(v.separator,v.panels)}),bo(e,{defaultLayoutDeferred:s===0,derivedPanelConstraints:i,groupSize:s,layout:d,separatorToPanels:h}),e.separators.forEach(v=>{$e(!o.has(v.id),`Separator ids must be unique; id "${v.id}" was used more than once`),o.add(v.id),v.element.addEventListener("keydown",ak)}),zi.get(f)===1&&(f.addEventListener("contextmenu",Qb,!0),f.addEventListener("dblclick",tk,!0),f.addEventListener("pointerdown",rk,!0),f.addEventListener("pointerleave",ok),f.addEventListener("pointermove",nk),f.addEventListener("pointerout",sk),f.addEventListener("pointerup",ik,!0)),function(){t=!1,zi.set(f,Math.max(0,(zi.get(f)??0)-1)),NE(e),e.separators.forEach(v=>{v.element.removeEventListener("keydown",ak)}),zi.get(f)||(f.removeEventListener("contextmenu",Qb,!0),f.removeEventListener("dblclick",tk,!0),f.removeEventListener("pointerdown",rk,!0),f.removeEventListener("pointerleave",ok),f.removeEventListener("pointermove",nk),f.removeEventListener("pointerout",sk),f.removeEventListener("pointerup",ik,!0)),n.disconnect()}}function QE(){let[e,t]=(0,be.useState)({}),a=(0,be.useCallback)(()=>t({}),[]);return[e,a]}function Gg(e){let t=(0,be.useId)();return`${e??t}`}var is=typeof window<"u"?be.useLayoutEffect:be.useEffect;function bu(e){let t=(0,be.useRef)(e);return is(()=>{t.current=e},[e]),(0,be.useCallback)((...a)=>t.current?.(...a),[t])}function $g(...e){return bu(t=>{e.forEach(a=>{if(a)switch(typeof a){case"function":{a(t);break}case"object":{a.current=t;break}}})})}function Kg(e){let t=(0,be.useRef)({...e});return is(()=>{for(let a in e)t.current[a]=e[a]},[e]),t.current}var Sk=(0,be.createContext)(null);function YE(e,t){let a=(0,be.useRef)({getLayout:()=>({}),setLayout:EE});(0,be.useImperativeHandle)(t,()=>a.current,[]),is(()=>{Object.assign(a.current,wk({groupId:e}))})}function Lk({children:e,className:t,defaultLayout:a,disableCursor:r,disabled:o,elementRef:n,groupRef:s,id:i,onLayoutChange:l,onLayoutChanged:u,orientation:c="horizontal",resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...h}){let v=(0,be.useRef)({onLayoutChange:{},onLayoutChanged:{}}),x=bu(O=>{os(v.current.onLayoutChange,O)||(v.current.onLayoutChange=O,l?.(O))}),w=bu((O,T)=>{os(v.current.onLayoutChanged,O)||(v.current.onLayoutChanged=O,u?.(O,{isUserInteraction:T}))}),m=Gg(i),p=(0,be.useRef)(null),[g,y]=QE(),L=(0,be.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),b=$g(p,n);YE(m,s);let R=bu((O,T)=>{let _=rs(),A=Zb(O),N=mn(O);if(N){let z=!1;return _.state==="active"&&(z=_.hitRegions.some(H=>H.group===A)),{flexGrow:N.layout[T]??1,pointerEvents:z?"none":void 0}}if(a?.[T])return{flexGrow:a?.[T]}}),k=Kg({defaultLayout:a,disableCursor:r}),M=(0,be.useMemo)(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:R,id:m,orientation:c,registerPanel:O=>{let T=L.current;return T.panels=Hg(c,[...T.panels,O]),y(),()=>{T.panels=T.panels.filter(_=>_!==O),y()}},registerSeparator:O=>{let T=L.current;return T.separators=Hg(c,[...T.separators,O]),y(),()=>{T.separators=T.separators.filter(_=>_!==O),y()}},updatePanelProps:(O,{disabled:T})=>{let _=L.current.panels.find(z=>z.id===O);_&&(_.panelConstraints.disabled=T);let A=Zb(m),N=mn(m);A&&N&&bo(A,{...N,derivedPanelConstraints:Ug(A)})},updateSeparatorProps:(O,{disabled:T,disableDoubleClick:_})=>{let A=L.current.separators.find(N=>N.id===O);A&&(A.disabled=T,A.disableDoubleClick=_)}}),[R,m,y,c,k]),E=(0,be.useRef)(null);return is(()=>{let O=p.current;if(O===null)return;let T=L.current,_;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===T.panels.length){_={};for(let D of T.panels){let ge=k.defaultLayout[D.id];ge!==void 0&&(_[D.id]=ge)}}let A={disabled:!!o,element:O,id:m,mutableState:{defaultLayout:_,disableCursor:!!k.disableCursor,expandedPanelSizes:L.current.lastExpandedPanelSizes,layouts:L.current.layouts},orientation:c,panels:T.panels,resizeTargetMinimumSize:T.resizeTargetMinimumSize,separators:T.separators};E.current=A;let N=ZE(A),{defaultLayoutDeferred:z,derivedPanelConstraints:H,layout:V}=mn(A.id,!0);!z&&H.length>0&&(x(V),w(V,!1));let ae=qg(m,D=>{let{defaultLayoutDeferred:ge,derivedPanelConstraints:ve,layout:j}=D.next;if(ge||ve.length===0)return;let Re=A.panels.map(({id:Se})=>Se).join(",");A.mutableState.layouts[Re]=j,ve.forEach(Se=>{if(Se.collapsible){let{layout:qe}=D.prev??{};if(qe){let J=ea(Se.collapsedSize,j[Se.panelId]),ue=ea(Se.collapsedSize,qe[Se.panelId]);J&&!ue&&(A.mutableState.expandedPanelSizes[Se.panelId]=qe[Se.panelId])}}});let Pe=rs().state!=="active";x(j),Pe&&w(j,D.isUserInteraction)});return()=>{E.current=null,N(),ae()}},[o,m,w,x,c,g,k]),(0,be.useEffect)(()=>{let O=E.current;O&&(O.mutableState.defaultLayout=a,O.mutableState.disableCursor=!!r)}),(0,ji.jsx)(Sk.Provider,{value:M,children:(0,ji.jsx)("div",{...h,className:t,"data-group":!0,"data-testid":m,id:m,ref:b,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}Lk.displayName="Group";function Xg(){let e=(0,be.useContext)(Sk);return $e(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function JE(e,t){let{id:a}=Xg(),r=(0,be.useRef)({collapse:Bg,expand:Bg,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Bg});(0,be.useImperativeHandle)(t,()=>r.current,[]),is(()=>{Object.assign(r.current,yk({groupId:a,panelId:e}))})}function Ik({children:e,className:t,collapsedSize:a="0%",collapsible:r=!1,defaultSize:o,disabled:n,elementRef:s,groupResizeBehavior:i="preserve-relative-size",id:l,maxSize:u="100%",minSize:c="0%",onResize:d,panelRef:f,style:h,...v}){let x=!!l,w=Gg(l),m=Kg({disabled:n}),p=(0,be.useRef)(null),g=$g(p,s),{getPanelStyles:y,id:L,orientation:b,registerPanel:R,updatePanelProps:k}=Xg(),M=d!==null,E=bu((A,N,z)=>{d?.(A,l,z)});is(()=>{let A=p.current;if(A!==null){let N={element:A,id:w,idIsStable:x,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:M?E:void 0,panelConstraints:{groupResizeBehavior:i,collapsedSize:a,collapsible:r,defaultSize:o,disabled:m.disabled,maxSize:u,minSize:c}};return R(N)}},[i,a,r,o,M,w,x,u,c,E,R,m]),(0,be.useEffect)(()=>{k(w,{disabled:n})},[n,w,k]),JE(w,f);let O=()=>{let A=y(L,w);if(A)return JSON.stringify(A)},T=(0,be.useSyncExternalStore)(A=>qg(L,A),O,O),_;return T?_=JSON.parse(T):o!==void 0?_={flexGrow:void 0,flexShrink:void 0,flexBasis:o}:_={flexGrow:1},(0,ji.jsx)("div",{...v,"data-disabled":n||void 0,"data-panel":!0,"data-testid":w,id:w,ref:g,style:{...eO,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",..._},children:(0,ji.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...h,touchAction:b==="horizontal"?"pan-y":"pan-x"},children:e})})}Ik.displayName="Panel";var eO={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function tO({layout:e,panelConstraints:t,panelId:a,panelIndex:r}){let o,n,s=e[a],i=t.find(l=>l.panelId===a);if(i){let l=i.maxSize,u=i.collapsible?i.collapsedSize:i.minSize,c=[r,r+1];n=ns({layout:ku({delta:u-s,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[a],o=ns({layout:ku({delta:l-s,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[a]}return{valueControls:a,valueMax:o,valueMin:n,valueNow:s}}function bk({children:e,className:t,disabled:a,disableDoubleClick:r,elementRef:o,id:n,style:s,...i}){let l=Gg(n),u=Kg({disabled:a,disableDoubleClick:r}),[c,d]=(0,be.useState)({}),[f,h]=(0,be.useState)("inactive"),[v,x]=(0,be.useState)(!1),w=(0,be.useRef)(null),m=$g(w,o),{disableCursor:p,id:g,orientation:y,registerSeparator:L,updateSeparatorProps:b}=Xg(),R=y==="horizontal"?"vertical":"horizontal";is(()=>{let E=w.current;if(E!==null){let O={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:E,id:l},T=L(O),_=_E(N=>{h(N.next.state!=="inactive"&&N.next.hitRegions.some(z=>z.separator===O)?N.next.state:"inactive")}),A=qg(g,N=>{let{derivedPanelConstraints:z,layout:H,separatorToPanels:V}=N.next,ae=V.get(O);if(ae){let D=ae[0],ge=ae.indexOf(D);d(tO({layout:H,panelConstraints:z,panelId:D.id,panelIndex:ge}))}});return()=>{_(),A(),T()}}},[g,l,L,u]),(0,be.useEffect)(()=>{b(l,{disabled:a,disableDoubleClick:r})},[a,r,l,b]);let k;a&&!p&&(k="not-allowed");let M;return a?M="disabled":f==="active"?M="active":v?M="focus":M=f,(0,ji.jsx)("div",{...i,"aria-controls":c.valueControls,"aria-disabled":a||void 0,"aria-orientation":R,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":M,"data-testid":l,id:l,onBlur:()=>x(!1),onFocus:()=>x(!0),ref:m,role:"separator",style:{flexBasis:"auto",cursor:k,...s,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:a?void 0:0})}bk.displayName="Separator";function ke(...e){return Hv(Fu(e))}var oO=fn("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"}}),G=jr.forwardRef(function({className:e,variant:t="default",size:a="default",asChild:r=!1,...o},n){let s=r?eu.Root:"button";return(0,X.jsx)(s,{ref:n,"data-slot":"button","data-variant":t,"data-size":a,className:ke(oO({variant:t,size:a,className:e})),...o})});var nO=fn("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Zg({className:e,variant:t="default",asChild:a=!1,...r}){let o=a?eu.Root:"span";return(0,X.jsx)(o,{"data-slot":"badge","data-variant":t,className:ke(nO({variant:t}),e),...r})}function kk({className:e,size:t="default",...a}){return(0,X.jsx)("div",{"data-slot":"card","data-size":t,className:ke("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}function Rk({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"card-header",className:ke("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...t})}function Pk({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"card-content",className:ke("px-(--card-spacing)",e),...t})}function Dk({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"card-footer",className:ke("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...t})}function hf({className:e,...t}){return(0,X.jsx)(lu.Root,{"data-slot":"checkbox",className:ke("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 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 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...t,children:(0,X.jsx)(lu.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,X.jsx)(Qr,{})})})}function mt({...e}){return(0,X.jsx)(mr.Root,{"data-slot":"dialog",...e})}function sO({...e}){return(0,X.jsx)(mr.Portal,{"data-slot":"dialog-portal",...e})}function iO({className:e,...t}){return(0,X.jsx)(mr.Overlay,{"data-slot":"dialog-overlay",className:ke("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",e),...t})}function ht({className:e,children:t,showCloseButton:a=!0,...r}){let o=zg();return(0,X.jsxs)(sO,{children:[(0,X.jsx)(iO,{}),(0,X.jsxs)(mr.Content,{"data-slot":"dialog-content",className:ke("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",e),...r,children:[t,a&&(0,X.jsx)(mr.Close,{"data-slot":"dialog-close",asChild:!0,children:(0,X.jsxs)(G,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[(0,X.jsx)(ro,{}),(0,X.jsx)("span",{className:"sr-only",children:o("close")})]})})]})]})}function gt({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"dialog-header",className:ke("flex flex-col gap-2",e),...t})}function Ot({className:e,showCloseButton:t=!1,children:a,...r}){let o=zg();return(0,X.jsxs)("div",{"data-slot":"dialog-footer",className:ke("-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",e),...r,children:[a,t&&(0,X.jsx)(mr.Close,{asChild:!0,children:(0,X.jsx)(G,{variant:"outline",children:o("close")})})]})}function vt({className:e,...t}){return(0,X.jsx)(mr.Title,{"data-slot":"dialog-title",className:ke("text-base leading-none font-medium",e),...t})}function xt({className:e,...t}){return(0,X.jsx)(mr.Description,{"data-slot":"dialog-description",className:ke("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function qt({className:e,type:t,...a}){return(0,X.jsx)("input",{type:t,"data-slot":"input",className:ke("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",e),...a})}function Qg({className:e,...t}){return(0,X.jsx)("textarea",{"data-slot":"textarea",className:ke("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",e),...t})}function Tk({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"input-group",role:"group",className:ke("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",e),...t})}var lO=fn("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 Mk({className:e,align:t="inline-start",...a}){return(0,X.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:ke(lO({align:t}),e),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}var dV=fn("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function _k({className:e,...t}){return(0,X.jsx)(qt,{"data-slot":"input-group-control",className:ke("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function gf({...e}){return(0,X.jsx)(zr.Root,{"data-slot":"dropdown-menu",...e})}function vf({...e}){return(0,X.jsx)(zr.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function xf({className:e,align:t="start",sideOffset:a=4,...r}){return(0,X.jsx)(zr.Portal,{children:(0,X.jsx)(zr.Content,{"data-slot":"dropdown-menu-content",sideOffset:a,align:t,className:ke("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 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-[state=closed]:overflow-hidden 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",e),...r})})}function yt({className:e,inset:t,variant:a="default",...r}){return(0,X.jsx)(zr.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:ke("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})}function Ak({className:e,inset:t,...a}){return(0,X.jsx)(zr.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:ke("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",e),...a})}function Yg({className:e,...t}){return(0,X.jsx)(zr.Separator,{"data-slot":"dropdown-menu-separator",className:ke("-mx-1 my-1 h-px bg-border",e),...t})}function wt({className:e,...t}){return(0,X.jsx)(Zc.Root,{"data-slot":"label",className:ke("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function ba({...e}){return(0,X.jsx)(fa.Root,{"data-slot":"select",...e})}function ka({...e}){return(0,X.jsx)(fa.Value,{"data-slot":"select-value",...e})}function Ra({className:e,size:t="default",children:a,...r}){return(0,X.jsxs)(fa.Trigger,{"data-slot":"select-trigger","data-size":t,className:ke("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",e),...r,children:[a,(0,X.jsx)(fa.Icon,{asChild:!0,children:(0,X.jsx)(Yr,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Pa({className:e,children:t,position:a="item-aligned",align:r="center",...o}){return(0,X.jsx)(fa.Portal,{children:(0,X.jsxs)(fa.Content,{"data-slot":"select-content","data-align-trigger":a==="item-aligned",className:ke("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",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:r,...o,children:[(0,X.jsx)(uO,{}),(0,X.jsx)(fa.Viewport,{"data-position":a,className:ke("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",a==="popper"&&""),children:t}),(0,X.jsx)(dO,{})]})})}function Pt({className:e,children:t,...a}){return(0,X.jsxs)(fa.Item,{"data-slot":"select-item",className:ke("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",e),...a,children:[(0,X.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:(0,X.jsx)(fa.ItemIndicator,{children:(0,X.jsx)(Qr,{className:"pointer-events-none"})})}),(0,X.jsx)(fa.ItemText,{children:t})]})}function uO({className:e,...t}){return(0,X.jsx)(fa.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:ke("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,X.jsx)(Ns,{})})}function dO({className:e,...t}){return(0,X.jsx)(fa.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:ke("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,X.jsx)(Yr,{})})}var cV=3600*24*7;var fV=jr.createContext(null);var pV=fn("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ek({className:e,...t}){return(0,X.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,X.jsx)("table",{"data-slot":"table",className:ke("w-full caption-bottom text-sm",e),...t})})}function Ok({className:e,...t}){return(0,X.jsx)("thead",{"data-slot":"table-header",className:ke("[&_tr]:border-b",e),...t})}function Nk({className:e,...t}){return(0,X.jsx)("tbody",{"data-slot":"table-body",className:ke("[&_tr:last-child]:border-0",e),...t})}function Jg({className:e,...t}){return(0,X.jsx)("tr",{"data-slot":"table-row",className:ke("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}function ls({className:e,...t}){return(0,X.jsx)("th",{"data-slot":"table-head",className:ke("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})}function us({className:e,...t}){return(0,X.jsx)("td",{"data-slot":"table-cell",className:ke("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})}function yf({className:e,orientation:t="horizontal",...a}){return(0,X.jsx)(ts.Root,{"data-slot":"tabs","data-orientation":t,className:ke("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var cO=fn("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function wf({className:e,variant:t="default",...a}){return(0,X.jsx)(ts.List,{"data-slot":"tabs-list","data-variant":t,className:ke(cO({variant:t}),e),...a})}function qi({className:e,...t}){return(0,X.jsx)(ts.Trigger,{"data-slot":"tabs-trigger",className:ke("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}function Wi({className:e,...t}){return(0,X.jsx)(ts.Content,{"data-slot":"tabs-content",className:ke("flex-1 text-sm outline-none",e),...t})}var mV=fn("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] 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 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}});var hV=jr.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});var I={};_o(I,{BRAND:()=>FO,DIRTY:()=>ds,EMPTY_PATH:()=>hO,INVALID:()=>le,NEVER:()=>CN,OK:()=>ta,ParseStatus:()=>Wt,Schema:()=>Le,ZodAny:()=>vn,ZodArray:()=>Do,ZodBigInt:()=>fs,ZodBoolean:()=>ps,ZodBranded:()=>Pu,ZodCatch:()=>Is,ZodDate:()=>ms,ZodDefault:()=>Ls,ZodDiscriminatedUnion:()=>Lf,ZodEffects:()=>Ja,ZodEnum:()=>Cs,ZodError:()=>Da,ZodFirstPartyTypeKind:()=>de,ZodFunction:()=>bf,ZodIntersection:()=>xs,ZodIssueCode:()=>B,ZodLazy:()=>ys,ZodLiteral:()=>ws,ZodMap:()=>Qi,ZodNaN:()=>Ji,ZodNativeEnum:()=>Ss,ZodNever:()=>Cr,ZodNull:()=>gs,ZodNullable:()=>Wr,ZodNumber:()=>cs,ZodObject:()=>Ta,ZodOptional:()=>Qa,ZodParsedType:()=>K,ZodPipeline:()=>Du,ZodPromise:()=>xn,ZodReadonly:()=>bs,ZodRecord:()=>If,ZodSchema:()=>Le,ZodSet:()=>Yi,ZodString:()=>gn,ZodSymbol:()=>Xi,ZodTransformer:()=>Ja,ZodTuple:()=>qr,ZodType:()=>Le,ZodUndefined:()=>hs,ZodUnion:()=>vs,ZodUnknown:()=>Po,ZodVoid:()=>Zi,addIssueToContext:()=>W,any:()=>GO,array:()=>ZO,bigint:()=>HO,boolean:()=>$k,coerce:()=>wN,custom:()=>qk,date:()=>jO,datetimeRegex:()=>jk,defaultErrorMap:()=>ko,discriminatedUnion:()=>eN,effect:()=>fN,enum:()=>uN,function:()=>sN,getErrorMap:()=>Gi,getParsedType:()=>Vr,instanceof:()=>BO,intersection:()=>tN,isAborted:()=>Cf,isAsync:()=>$i,isDirty:()=>Sf,isValid:()=>hn,late:()=>zO,lazy:()=>iN,literal:()=>lN,makeIssue:()=>Ru,map:()=>oN,nan:()=>UO,nativeEnum:()=>dN,never:()=>KO,null:()=>WO,nullable:()=>mN,number:()=>Gk,object:()=>QO,objectUtil:()=>ev,oboolean:()=>yN,onumber:()=>xN,optional:()=>pN,ostring:()=>vN,pipeline:()=>gN,preprocess:()=>hN,promise:()=>cN,quotelessJson:()=>fO,record:()=>rN,set:()=>nN,setErrorMap:()=>mO,strictObject:()=>YO,string:()=>Wk,symbol:()=>VO,transformer:()=>fN,tuple:()=>aN,undefined:()=>qO,union:()=>JO,unknown:()=>$O,util:()=>Me,void:()=>XO});var Me;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function a(o){throw new Error}e.assertNever=a,e.arrayToEnum=o=>{let n={};for(let s of o)n[s]=s;return n},e.getValidEnumValues=o=>{let n=e.objectKeys(o).filter(i=>typeof o[o[i]]!="number"),s={};for(let i of n)s[i]=o[i];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(n){return o[n]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let n=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&n.push(s);return n},e.find=(o,n)=>{for(let s of o)if(n(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,n=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(n)}e.joinValues=r,e.jsonStringifyReplacer=(o,n)=>typeof n=="bigint"?n.toString():n})(Me||(Me={}));var ev;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(ev||(ev={}));var K=Me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vr=e=>{switch(typeof e){case"undefined":return K.undefined;case"string":return K.string;case"number":return Number.isNaN(e)?K.nan:K.number;case"boolean":return K.boolean;case"function":return K.function;case"bigint":return K.bigint;case"symbol":return K.symbol;case"object":return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?K.promise:typeof Map<"u"&&e instanceof Map?K.map:typeof Set<"u"&&e instanceof Set?K.set:typeof Date<"u"&&e instanceof Date?K.date:K.object;default:return K.unknown}};var B=Me.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"]),fO=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Da=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=t}format(t){let a=t||function(n){return n.message},r={_errors:[]},o=n=>{for(let s of n.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(a(s));else{let i=r,l=0;for(;l<s.path.length;){let u=s.path[l];l===s.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(a(s))):i[u]=i[u]||{_errors:[]},i=i[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=a=>a.message){let a={},r=[];for(let o of this.issues)o.path.length>0?(a[o.path[0]]=a[o.path[0]]||[],a[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}};Da.create=e=>new Da(e);var pO=(e,t)=>{let a;switch(e.code){case B.invalid_type:e.received===K.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case B.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,Me.jsonStringifyReplacer)}`;break;case B.unrecognized_keys:a=`Unrecognized key(s) in object: ${Me.joinValues(e.keys,", ")}`;break;case B.invalid_union:a="Invalid input";break;case B.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${Me.joinValues(e.options)}`;break;case B.invalid_enum_value:a=`Invalid enum value. Expected ${Me.joinValues(e.options)}, received '${e.received}'`;break;case B.invalid_arguments:a="Invalid function arguments";break;case B.invalid_return_type:a="Invalid function return type";break;case B.invalid_date:a="Invalid date";break;case B.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:Me.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case B.too_small:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:a="Invalid input";break;case B.too_big:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?a=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:a="Invalid input";break;case B.custom:a="Invalid input";break;case B.invalid_intersection_types:a="Intersection results could not be merged";break;case B.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case B.not_finite:a="Number must be finite";break;default:a=t.defaultError,Me.assertNever(e)}return{message:a}},ko=pO;var Fk=ko;function mO(e){Fk=e}function Gi(){return Fk}var Ru=e=>{let{data:t,path:a,errorMaps:r,issueData:o}=e,n=[...a,...o.path||[]],s={...o,path:n};if(o.message!==void 0)return{...o,path:n,message:o.message};let i="",l=r.filter(u=>!!u).slice().reverse();for(let u of l)i=u(s,{data:t,defaultError:i}).message;return{...o,path:n,message:i}},hO=[];function W(e,t){let a=Gi(),r=Ru({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===ko?void 0:ko].filter(o=>!!o)});e.common.issues.push(r)}var Wt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,a){let r=[];for(let o of a){if(o.status==="aborted")return le;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,a){let r=[];for(let o of a){let n=await o.key,s=await o.value;r.push({key:n,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,a){let r={};for(let o of a){let{key:n,value:s}=o;if(n.status==="aborted"||s.status==="aborted")return le;n.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),n.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[n.value]=s.value)}return{status:t.value,value:r}}},le=Object.freeze({status:"aborted"}),ds=e=>({status:"dirty",value:e}),ta=e=>({status:"valid",value:e}),Cf=e=>e.status==="aborted",Sf=e=>e.status==="dirty",hn=e=>e.status==="valid",$i=e=>typeof Promise<"u"&&e instanceof Promise;var te;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(te||(te={}));var Ya=class{constructor(t,a,r,o){this._cachedPath=[],this.parent=t,this.data=a,this._path=r,this._key=o}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}},zk=(e,t)=>{if(hn(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let a=new Da(e.common.issues);return this._error=a,this._error}}};function ye(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:r,description:o}=e;if(t&&(a||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,i)=>{let{message:l}=e;return s.code==="invalid_enum_value"?{message:l??i.defaultError}:typeof i.data>"u"?{message:l??r??i.defaultError}:s.code!=="invalid_type"?{message:i.defaultError}:{message:l??a??i.defaultError}},description:o}}var Le=class{get description(){return this._def.description}_getType(t){return Vr(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:Vr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Wt,ctx:{common:t.parent.common,data:t.data,parsedType:Vr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if($i(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(t){let a=this._parse(t);return Promise.resolve(a)}parse(t,a){let r=this.safeParse(t,a);if(r.success)return r.data;throw r.error}safeParse(t,a){let r={common:{issues:[],async:a?.async??!1,contextualErrorMap:a?.errorMap},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vr(t)},o=this._parseSync({data:t,path:r.path,parent:r});return zk(r,o)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vr(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:a});return hn(r)?{value:r.value}:{issues:a.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(r=>hn(r)?{value:r.value}:{issues:a.common.issues})}async parseAsync(t,a){let r=await this.safeParseAsync(t,a);if(r.success)return r.data;throw r.error}async safeParseAsync(t,a){let r={common:{issues:[],contextualErrorMap:a?.errorMap,async:!0},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Vr(t)},o=this._parse({data:t,path:r.path,parent:r}),n=await($i(o)?o:Promise.resolve(o));return zk(r,n)}refine(t,a){let r=o=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(o):a;return this._refinement((o,n)=>{let s=t(o),i=()=>n.addIssue({code:B.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(i(),!1)):s?!0:(i(),!1)})}refinement(t,a){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof a=="function"?a(r,o):a),!1))}_refinement(t){return new Ja({schema:this,typeName:de.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:a=>this["~validate"](a)}}optional(){return Qa.create(this,this._def)}nullable(){return Wr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Do.create(this)}promise(){return xn.create(this,this._def)}or(t){return vs.create([this,t],this._def)}and(t){return xs.create(this,t,this._def)}transform(t){return new Ja({...ye(this._def),schema:this,typeName:de.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new Ls({...ye(this._def),innerType:this,defaultValue:a,typeName:de.ZodDefault})}brand(){return new Pu({typeName:de.ZodBranded,type:this,...ye(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new Is({...ye(this._def),innerType:this,catchValue:a,typeName:de.ZodCatch})}describe(t){let a=this.constructor;return new a({...this._def,description:t})}pipe(t){return Du.create(this,t)}readonly(){return bs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},gO=/^c[^\s-]{8,}$/i,vO=/^[0-9a-z]+$/,xO=/^[0-9A-HJKMNP-TV-Z]{26}$/i,yO=/^[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,wO=/^[a-z0-9_-]{21}$/i,CO=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,SO=/^[-+]?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)?)??$/,LO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,IO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",tv,bO=/^(?:(?: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])$/,kO=/^(?:(?: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])$/,RO=/^(([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]))$/,PO=/^(([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])$/,DO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,TO=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uk="((\\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])))",MO=new RegExp(`^${Uk}$`);function Hk(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function _O(e){return new RegExp(`^${Hk(e)}$`)}function jk(e){let t=`${Uk}T${Hk(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function AO(e,t){return!!((t==="v4"||!t)&&bO.test(e)||(t==="v6"||!t)&&RO.test(e))}function EO(e,t){if(!CO.test(e))return!1;try{let[a]=e.split("."),r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function OO(e,t){return!!((t==="v4"||!t)&&kO.test(e)||(t==="v6"||!t)&&PO.test(e))}var gn=class e extends Le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==K.string){let n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_type,expected:K.string,received:n.parsedType}),le}let r=new Wt,o;for(let n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:B.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="max")t.data.length>n.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:B.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="length"){let s=t.data.length>n.value,i=t.data.length<n.value;(s||i)&&(o=this._getOrReturnCtx(t,o),s?W(o,{code:B.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&W(o,{code:B.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if(n.kind==="email")LO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"email",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="emoji")tv||(tv=new RegExp(IO,"u")),tv.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"emoji",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="uuid")yO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"uuid",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="nanoid")wO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"nanoid",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid")gO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"cuid",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid2")vO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"cuid2",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="ulid")xO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"ulid",code:B.invalid_string,message:n.message}),r.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),W(o,{validation:"url",code:B.invalid_string,message:n.message}),r.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"regex",code:B.invalid_string,message:n.message}),r.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):n.kind==="datetime"?jk(n).test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:"datetime",message:n.message}),r.dirty()):n.kind==="date"?MO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:"date",message:n.message}),r.dirty()):n.kind==="time"?_O(n).test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{code:B.invalid_string,validation:"time",message:n.message}),r.dirty()):n.kind==="duration"?SO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"duration",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="ip"?AO(t.data,n.version)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"ip",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="jwt"?EO(t.data,n.alg)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"jwt",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="cidr"?OO(t.data,n.version)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"cidr",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="base64"?DO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"base64",code:B.invalid_string,message:n.message}),r.dirty()):n.kind==="base64url"?TO.test(t.data)||(o=this._getOrReturnCtx(t,o),W(o,{validation:"base64url",code:B.invalid_string,message:n.message}),r.dirty()):Me.assertNever(n);return{status:r.value,value:t.data}}_regex(t,a,r){return this.refinement(o=>t.test(o),{validation:a,code:B.invalid_string,...te.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...te.errToObj(t)})}url(t){return this._addCheck({kind:"url",...te.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...te.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...te.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...te.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...te.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...te.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...te.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...te.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...te.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...te.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...te.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...te.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,...te.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,...te.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...te.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...te.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...te.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...te.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...te.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...te.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...te.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...te.errToObj(a)})}nonempty(t){return this.min(1,te.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...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(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxLength(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};gn.create=e=>new gn({checks:[],typeName:de.ZodString,coerce:e?.coerce??!1,...ye(e)});function NO(e,t){let a=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=a>r?a:r,n=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return n%s/10**o}var cs=class e extends Le{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)!==K.number){let n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_type,expected:K.number,received:n.parsedType}),le}let r,o=new Wt;for(let n of this._def.checks)n.kind==="int"?Me.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:B.invalid_type,expected:"integer",received:"float",message:n.message}),o.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),o.dirty()):n.kind==="multipleOf"?NO(t.data,n.value)!==0&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_finite,message:n.message}),o.dirty()):Me.assertNever(n);return{status:o.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,te.toString(a))}gt(t,a){return this.setLimit("min",t,!1,te.toString(a))}lte(t,a){return this.setLimit("max",t,!0,te.toString(a))}lt(t,a){return this.setLimit("max",t,!1,te.toString(a))}setLimit(t,a,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:r,message:te.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:te.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:te.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:te.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:te.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:te.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:te.toString(t)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Me.isInteger(t.value))}get isFinite(){let t=null,a=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(a===null||r.value>a)&&(a=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(a)&&Number.isFinite(t)}};cs.create=e=>new cs({checks:[],typeName:de.ZodNumber,coerce:e?.coerce||!1,...ye(e)});var fs=class e extends Le{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)!==K.bigint)return this._getInvalidInput(t);let r,o=new Wt;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),o.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),W(r,{code:B.not_multiple_of,multipleOf:n.value,message:n.message}),o.dirty()):Me.assertNever(n);return{status:o.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return W(a,{code:B.invalid_type,expected:K.bigint,received:a.parsedType}),le}gte(t,a){return this.setLimit("min",t,!0,te.toString(a))}gt(t,a){return this.setLimit("min",t,!1,te.toString(a))}lte(t,a){return this.setLimit("max",t,!0,te.toString(a))}lt(t,a){return this.setLimit("max",t,!1,te.toString(a))}setLimit(t,a,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:r,message:te.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:te.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:te.toString(a)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};fs.create=e=>new fs({checks:[],typeName:de.ZodBigInt,coerce:e?.coerce??!1,...ye(e)});var ps=class extends Le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==K.boolean){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.boolean,received:r.parsedType}),le}return ta(t.data)}};ps.create=e=>new ps({typeName:de.ZodBoolean,coerce:e?.coerce||!1,...ye(e)});var ms=class e extends Le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==K.date){let n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_type,expected:K.date,received:n.parsedType}),le}if(Number.isNaN(t.data.getTime())){let n=this._getOrReturnCtx(t);return W(n,{code:B.invalid_date}),le}let r=new Wt,o;for(let n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:B.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(o=this._getOrReturnCtx(t,o),W(o,{code:B.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):Me.assertNever(n);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,a){return this._addCheck({kind:"min",value:t.getTime(),message:te.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:te.toString(a)})}get minDate(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t!=null?new Date(t):null}};ms.create=e=>new ms({checks:[],coerce:e?.coerce||!1,typeName:de.ZodDate,...ye(e)});var Xi=class extends Le{_parse(t){if(this._getType(t)!==K.symbol){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.symbol,received:r.parsedType}),le}return ta(t.data)}};Xi.create=e=>new Xi({typeName:de.ZodSymbol,...ye(e)});var hs=class extends Le{_parse(t){if(this._getType(t)!==K.undefined){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.undefined,received:r.parsedType}),le}return ta(t.data)}};hs.create=e=>new hs({typeName:de.ZodUndefined,...ye(e)});var gs=class extends Le{_parse(t){if(this._getType(t)!==K.null){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.null,received:r.parsedType}),le}return ta(t.data)}};gs.create=e=>new gs({typeName:de.ZodNull,...ye(e)});var vn=class extends Le{constructor(){super(...arguments),this._any=!0}_parse(t){return ta(t.data)}};vn.create=e=>new vn({typeName:de.ZodAny,...ye(e)});var Po=class extends Le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ta(t.data)}};Po.create=e=>new Po({typeName:de.ZodUnknown,...ye(e)});var Cr=class extends Le{_parse(t){let a=this._getOrReturnCtx(t);return W(a,{code:B.invalid_type,expected:K.never,received:a.parsedType}),le}};Cr.create=e=>new Cr({typeName:de.ZodNever,...ye(e)});var Zi=class extends Le{_parse(t){if(this._getType(t)!==K.undefined){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.void,received:r.parsedType}),le}return ta(t.data)}};Zi.create=e=>new Zi({typeName:de.ZodVoid,...ye(e)});var Do=class e extends Le{_parse(t){let{ctx:a,status:r}=this._processInputParams(t),o=this._def;if(a.parsedType!==K.array)return W(a,{code:B.invalid_type,expected:K.array,received:a.parsedType}),le;if(o.exactLength!==null){let s=a.data.length>o.exactLength.value,i=a.data.length<o.exactLength.value;(s||i)&&(W(a,{code:s?B.too_big:B.too_small,minimum:i?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&a.data.length<o.minLength.value&&(W(a,{code:B.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&a.data.length>o.maxLength.value&&(W(a,{code:B.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),a.common.async)return Promise.all([...a.data].map((s,i)=>o.type._parseAsync(new Ya(a,s,a.path,i)))).then(s=>Wt.mergeArray(r,s));let n=[...a.data].map((s,i)=>o.type._parseSync(new Ya(a,s,a.path,i)));return Wt.mergeArray(r,n)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:te.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:te.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:te.toString(a)}})}nonempty(t){return this.min(1,t)}};Do.create=(e,t)=>new Do({type:e,minLength:null,maxLength:null,exactLength:null,typeName:de.ZodArray,...ye(t)});function Ki(e){if(e instanceof Ta){let t={};for(let a in e.shape){let r=e.shape[a];t[a]=Qa.create(Ki(r))}return new Ta({...e._def,shape:()=>t})}else return e instanceof Do?new Do({...e._def,type:Ki(e.element)}):e instanceof Qa?Qa.create(Ki(e.unwrap())):e instanceof Wr?Wr.create(Ki(e.unwrap())):e instanceof qr?qr.create(e.items.map(t=>Ki(t))):e}var Ta=class e extends Le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),a=Me.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==K.object){let u=this._getOrReturnCtx(t);return W(u,{code:B.invalid_type,expected:K.object,received:u.parsedType}),le}let{status:r,ctx:o}=this._processInputParams(t),{shape:n,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof Cr&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||i.push(u);let l=[];for(let u of s){let c=n[u],d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ya(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Cr){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of i)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")i.length>0&&(W(o,{code:B.unrecognized_keys,keys:i}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of i){let d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ya(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>Wt.mergeObjectSync(r,u)):Wt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return te.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(a,r)=>{let o=this._def.errorMap?.(a,r).message??r.defaultError;return a.code==="unrecognized_keys"?{message:te.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:de.ZodObject})}setKey(t,a){return this.augment({[t]:a})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let a={};for(let r of Me.objectKeys(t))t[r]&&this.shape[r]&&(a[r]=this.shape[r]);return new e({...this._def,shape:()=>a})}omit(t){let a={};for(let r of Me.objectKeys(this.shape))t[r]||(a[r]=this.shape[r]);return new e({...this._def,shape:()=>a})}deepPartial(){return Ki(this)}partial(t){let a={};for(let r of Me.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?a[r]=o:a[r]=o.optional()}return new e({...this._def,shape:()=>a})}required(t){let a={};for(let r of Me.objectKeys(this.shape))if(t&&!t[r])a[r]=this.shape[r];else{let n=this.shape[r];for(;n instanceof Qa;)n=n._def.innerType;a[r]=n}return new e({...this._def,shape:()=>a})}keyof(){return Vk(Me.objectKeys(this.shape))}};Ta.create=(e,t)=>new Ta({shape:()=>e,unknownKeys:"strip",catchall:Cr.create(),typeName:de.ZodObject,...ye(t)});Ta.strictCreate=(e,t)=>new Ta({shape:()=>e,unknownKeys:"strict",catchall:Cr.create(),typeName:de.ZodObject,...ye(t)});Ta.lazycreate=(e,t)=>new Ta({shape:e,unknownKeys:"strip",catchall:Cr.create(),typeName:de.ZodObject,...ye(t)});var vs=class extends Le{_parse(t){let{ctx:a}=this._processInputParams(t),r=this._def.options;function o(n){for(let i of n)if(i.result.status==="valid")return i.result;for(let i of n)if(i.result.status==="dirty")return a.common.issues.push(...i.ctx.common.issues),i.result;let s=n.map(i=>new Da(i.ctx.common.issues));return W(a,{code:B.invalid_union,unionErrors:s}),le}if(a.common.async)return Promise.all(r.map(async n=>{let s={...a,common:{...a.common,issues:[]},parent:null};return{result:await n._parseAsync({data:a.data,path:a.path,parent:s}),ctx:s}})).then(o);{let n,s=[];for(let l of r){let u={...a,common:{...a.common,issues:[]},parent:null},c=l._parseSync({data:a.data,path:a.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!n&&(n={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(n)return a.common.issues.push(...n.ctx.common.issues),n.result;let i=s.map(l=>new Da(l));return W(a,{code:B.invalid_union,unionErrors:i}),le}}get options(){return this._def.options}};vs.create=(e,t)=>new vs({options:e,typeName:de.ZodUnion,...ye(t)});var Ro=e=>e instanceof ys?Ro(e.schema):e instanceof Ja?Ro(e.innerType()):e instanceof ws?[e.value]:e instanceof Cs?e.options:e instanceof Ss?Me.objectValues(e.enum):e instanceof Ls?Ro(e._def.innerType):e instanceof hs?[void 0]:e instanceof gs?[null]:e instanceof Qa?[void 0,...Ro(e.unwrap())]:e instanceof Wr?[null,...Ro(e.unwrap())]:e instanceof Pu||e instanceof bs?Ro(e.unwrap()):e instanceof Is?Ro(e._def.innerType):[],Lf=class e extends Le{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==K.object)return W(a,{code:B.invalid_type,expected:K.object,received:a.parsedType}),le;let r=this.discriminator,o=a.data[r],n=this.optionsMap.get(o);return n?a.common.async?n._parseAsync({data:a.data,path:a.path,parent:a}):n._parseSync({data:a.data,path:a.path,parent:a}):(W(a,{code:B.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),le)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,a,r){let o=new Map;for(let n of a){let s=Ro(n.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let i of s){if(o.has(i))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(i)}`);o.set(i,n)}}return new e({typeName:de.ZodDiscriminatedUnion,discriminator:t,options:a,optionsMap:o,...ye(r)})}};function av(e,t){let a=Vr(e),r=Vr(t);if(e===t)return{valid:!0,data:e};if(a===K.object&&r===K.object){let o=Me.objectKeys(t),n=Me.objectKeys(e).filter(i=>o.indexOf(i)!==-1),s={...e,...t};for(let i of n){let l=av(e[i],t[i]);if(!l.valid)return{valid:!1};s[i]=l.data}return{valid:!0,data:s}}else if(a===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let n=0;n<e.length;n++){let s=e[n],i=t[n],l=av(s,i);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return a===K.date&&r===K.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var xs=class extends Le{_parse(t){let{status:a,ctx:r}=this._processInputParams(t),o=(n,s)=>{if(Cf(n)||Cf(s))return le;let i=av(n.value,s.value);return i.valid?((Sf(n)||Sf(s))&&a.dirty(),{status:a.value,value:i.data}):(W(r,{code:B.invalid_intersection_types}),le)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([n,s])=>o(n,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};xs.create=(e,t,a)=>new xs({left:e,right:t,typeName:de.ZodIntersection,...ye(a)});var qr=class e extends Le{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.array)return W(r,{code:B.invalid_type,expected:K.array,received:r.parsedType}),le;if(r.data.length<this._def.items.length)return W(r,{code:B.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),le;!this._def.rest&&r.data.length>this._def.items.length&&(W(r,{code:B.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let n=[...r.data].map((s,i)=>{let l=this._def.items[i]||this._def.rest;return l?l._parse(new Ya(r,s,r.path,i)):null}).filter(s=>!!s);return r.common.async?Promise.all(n).then(s=>Wt.mergeArray(a,s)):Wt.mergeArray(a,n)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};qr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qr({items:e,typeName:de.ZodTuple,rest:null,...ye(t)})};var If=class e extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.object)return W(r,{code:B.invalid_type,expected:K.object,received:r.parsedType}),le;let o=[],n=this._def.keyType,s=this._def.valueType;for(let i in r.data)o.push({key:n._parse(new Ya(r,i,r.path,i)),value:s._parse(new Ya(r,r.data[i],r.path,i)),alwaysSet:i in r.data});return r.common.async?Wt.mergeObjectAsync(a,o):Wt.mergeObjectSync(a,o)}get element(){return this._def.valueType}static create(t,a,r){return a instanceof Le?new e({keyType:t,valueType:a,typeName:de.ZodRecord,...ye(r)}):new e({keyType:gn.create(),valueType:t,typeName:de.ZodRecord,...ye(a)})}},Qi=class extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.map)return W(r,{code:B.invalid_type,expected:K.map,received:r.parsedType}),le;let o=this._def.keyType,n=this._def.valueType,s=[...r.data.entries()].map(([i,l],u)=>({key:o._parse(new Ya(r,i,r.path,[u,"key"])),value:n._parse(new Ya(r,l,r.path,[u,"value"]))}));if(r.common.async){let i=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return le;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),i.set(u.value,c.value)}return{status:a.value,value:i}})}else{let i=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return le;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),i.set(u.value,c.value)}return{status:a.value,value:i}}}};Qi.create=(e,t,a)=>new Qi({valueType:t,keyType:e,typeName:de.ZodMap,...ye(a)});var Yi=class e extends Le{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.parsedType!==K.set)return W(r,{code:B.invalid_type,expected:K.set,received:r.parsedType}),le;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(W(r,{code:B.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),a.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(W(r,{code:B.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),a.dirty());let n=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return le;c.status==="dirty"&&a.dirty(),u.add(c.value)}return{status:a.value,value:u}}let i=[...r.data.values()].map((l,u)=>n._parse(new Ya(r,l,r.path,u)));return r.common.async?Promise.all(i).then(l=>s(l)):s(i)}min(t,a){return new e({...this._def,minSize:{value:t,message:te.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:te.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};Yi.create=(e,t)=>new Yi({valueType:e,minSize:null,maxSize:null,typeName:de.ZodSet,...ye(t)});var bf=class e extends Le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==K.function)return W(a,{code:B.invalid_type,expected:K.function,received:a.parsedType}),le;function r(i,l){return Ru({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Gi(),ko].filter(u=>!!u),issueData:{code:B.invalid_arguments,argumentsError:l}})}function o(i,l){return Ru({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Gi(),ko].filter(u=>!!u),issueData:{code:B.invalid_return_type,returnTypeError:l}})}let n={errorMap:a.common.contextualErrorMap},s=a.data;if(this._def.returns instanceof xn){let i=this;return ta(async function(...l){let u=new Da([]),c=await i._def.args.parseAsync(l,n).catch(h=>{throw u.addIssue(r(l,h)),u}),d=await Reflect.apply(s,this,c);return await i._def.returns._def.type.parseAsync(d,n).catch(h=>{throw u.addIssue(o(d,h)),u})})}else{let i=this;return ta(function(...l){let u=i._def.args.safeParse(l,n);if(!u.success)throw new Da([r(l,u.error)]);let c=Reflect.apply(s,this,u.data),d=i._def.returns.safeParse(c,n);if(!d.success)throw new Da([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:qr.create(t).rest(Po.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,a,r){return new e({args:t||qr.create([]).rest(Po.create()),returns:a||Po.create(),typeName:de.ZodFunction,...ye(r)})}},ys=class extends Le{get schema(){return this._def.getter()}_parse(t){let{ctx:a}=this._processInputParams(t);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}};ys.create=(e,t)=>new ys({getter:e,typeName:de.ZodLazy,...ye(t)});var ws=class extends Le{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return W(a,{received:a.data,code:B.invalid_literal,expected:this._def.value}),le}return{status:"valid",value:t.data}}get value(){return this._def.value}};ws.create=(e,t)=>new ws({value:e,typeName:de.ZodLiteral,...ye(t)});function Vk(e,t){return new Cs({values:e,typeName:de.ZodEnum,...ye(t)})}var Cs=class e extends Le{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),r=this._def.values;return W(a,{expected:Me.joinValues(r),received:a.parsedType,code:B.invalid_type}),le}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let a=this._getOrReturnCtx(t),r=this._def.values;return W(a,{received:a.data,code:B.invalid_enum_value,options:r}),le}return ta(t.data)}get options(){return this._def.values}get enum(){let t={};for(let a of this._def.values)t[a]=a;return t}get Values(){let t={};for(let a of this._def.values)t[a]=a;return t}get Enum(){let t={};for(let a of this._def.values)t[a]=a;return t}extract(t,a=this._def){return e.create(t,{...this._def,...a})}exclude(t,a=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...a})}};Cs.create=Vk;var Ss=class extends Le{_parse(t){let a=Me.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==K.string&&r.parsedType!==K.number){let o=Me.objectValues(a);return W(r,{expected:Me.joinValues(o),received:r.parsedType,code:B.invalid_type}),le}if(this._cache||(this._cache=new Set(Me.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=Me.objectValues(a);return W(r,{received:r.data,code:B.invalid_enum_value,options:o}),le}return ta(t.data)}get enum(){return this._def.values}};Ss.create=(e,t)=>new Ss({values:e,typeName:de.ZodNativeEnum,...ye(t)});var xn=class extends Le{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==K.promise&&a.common.async===!1)return W(a,{code:B.invalid_type,expected:K.promise,received:a.parsedType}),le;let r=a.parsedType===K.promise?a.data:Promise.resolve(a.data);return ta(r.then(o=>this._def.type.parseAsync(o,{path:a.path,errorMap:a.common.contextualErrorMap})))}};xn.create=(e,t)=>new xn({type:e,typeName:de.ZodPromise,...ye(t)});var Ja=class extends Le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===de.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:a,ctx:r}=this._processInputParams(t),o=this._def.effect||null,n={addIssue:s=>{W(r,s),s.fatal?a.abort():a.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),o.type==="preprocess"){let s=o.transform(r.data,n);if(r.common.async)return Promise.resolve(s).then(async i=>{if(a.value==="aborted")return le;let l=await this._def.schema._parseAsync({data:i,path:r.path,parent:r});return l.status==="aborted"?le:l.status==="dirty"?ds(l.value):a.value==="dirty"?ds(l.value):l});{if(a.value==="aborted")return le;let i=this._def.schema._parseSync({data:s,path:r.path,parent:r});return i.status==="aborted"?le:i.status==="dirty"?ds(i.value):a.value==="dirty"?ds(i.value):i}}if(o.type==="refinement"){let s=i=>{let l=o.refinement(i,n);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?le:(i.status==="dirty"&&a.dirty(),s(i.value),{status:a.value,value:i.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>i.status==="aborted"?le:(i.status==="dirty"&&a.dirty(),s(i.value).then(()=>({status:a.value,value:i.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!hn(s))return le;let i=o.transform(s.value,n);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:i}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>hn(s)?Promise.resolve(o.transform(s.value,n)).then(i=>({status:a.value,value:i})):le);Me.assertNever(o)}};Ja.create=(e,t,a)=>new Ja({schema:e,typeName:de.ZodEffects,effect:t,...ye(a)});Ja.createWithPreprocess=(e,t,a)=>new Ja({schema:t,effect:{type:"preprocess",transform:e},typeName:de.ZodEffects,...ye(a)});var Qa=class extends Le{_parse(t){return this._getType(t)===K.undefined?ta(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Qa.create=(e,t)=>new Qa({innerType:e,typeName:de.ZodOptional,...ye(t)});var Wr=class extends Le{_parse(t){return this._getType(t)===K.null?ta(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Wr.create=(e,t)=>new Wr({innerType:e,typeName:de.ZodNullable,...ye(t)});var Ls=class extends Le{_parse(t){let{ctx:a}=this._processInputParams(t),r=a.data;return a.parsedType===K.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};Ls.create=(e,t)=>new Ls({innerType:e,typeName:de.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ye(t)});var Is=class extends Le{_parse(t){let{ctx:a}=this._processInputParams(t),r={...a,common:{...a.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return $i(o)?o.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Da(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Da(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};Is.create=(e,t)=>new Is({innerType:e,typeName:de.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ye(t)});var Ji=class extends Le{_parse(t){if(this._getType(t)!==K.nan){let r=this._getOrReturnCtx(t);return W(r,{code:B.invalid_type,expected:K.nan,received:r.parsedType}),le}return{status:"valid",value:t.data}}};Ji.create=e=>new Ji({typeName:de.ZodNaN,...ye(e)});var FO=Symbol("zod_brand"),Pu=class extends Le{_parse(t){let{ctx:a}=this._processInputParams(t),r=a.data;return this._def.type._parse({data:r,path:a.path,parent:a})}unwrap(){return this._def.type}},Du=class e extends Le{_parse(t){let{status:a,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return n.status==="aborted"?le:n.status==="dirty"?(a.dirty(),ds(n.value)):this._def.out._parseAsync({data:n.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?le:o.status==="dirty"?(a.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,a){return new e({in:t,out:a,typeName:de.ZodPipeline})}},bs=class extends Le{_parse(t){let a=this._def.innerType._parse(t),r=o=>(hn(o)&&(o.value=Object.freeze(o.value)),o);return $i(a)?a.then(o=>r(o)):r(a)}unwrap(){return this._def.innerType}};bs.create=(e,t)=>new bs({innerType:e,typeName:de.ZodReadonly,...ye(t)});function Bk(e,t){let a=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof a=="string"?{message:a}:a}function qk(e,t={},a){return e?vn.create().superRefine((r,o)=>{let n=e(r);if(n instanceof Promise)return n.then(s=>{if(!s){let i=Bk(t,r),l=i.fatal??a??!0;o.addIssue({code:"custom",...i,fatal:l})}});if(!n){let s=Bk(t,r),i=s.fatal??a??!0;o.addIssue({code:"custom",...s,fatal:i})}}):vn.create()}var zO={object:Ta.lazycreate},de;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(de||(de={}));var BO=(e,t={message:`Input not instance of ${e.name}`})=>qk(a=>a instanceof e,t),Wk=gn.create,Gk=cs.create,UO=Ji.create,HO=fs.create,$k=ps.create,jO=ms.create,VO=Xi.create,qO=hs.create,WO=gs.create,GO=vn.create,$O=Po.create,KO=Cr.create,XO=Zi.create,ZO=Do.create,QO=Ta.create,YO=Ta.strictCreate,JO=vs.create,eN=Lf.create,tN=xs.create,aN=qr.create,rN=If.create,oN=Qi.create,nN=Yi.create,sN=bf.create,iN=ys.create,lN=ws.create,uN=Cs.create,dN=Ss.create,cN=xn.create,fN=Ja.create,pN=Qa.create,mN=Wr.create,hN=Ja.createWithPreprocess,gN=Du.create,vN=()=>Wk().optional(),xN=()=>Gk().optional(),yN=()=>$k().optional(),wN={string:(e=>gn.create({...e,coerce:!0})),number:(e=>cs.create({...e,coerce:!0})),boolean:(e=>ps.create({...e,coerce:!0})),bigint:(e=>fs.create({...e,coerce:!0})),date:(e=>ms.create({...e,coerce:!0}))};var CN=le;var Kk={"bridge.contextChanged":"The space context has changed.","bridge.requestFailed":"The request failed.","bridge.closed":"The space is closed.","bridge.notConnected":"The space is not connected yet.","bridge.timeout":"The request timed out. Please try again.","common.actionFailed":"The action failed.","bridge.uploadFailed":"File upload failed.","bridge.editorUnavailable":"Unable to open the document editor.","templates.project.title":"Project brief","templates.project.description":"Align the team on the project background, goals, and key plans.","templates.project.content":`## Project goals
|
|
104
|
+
|
|
105
|
+
Describe what this project should achieve.
|
|
106
|
+
|
|
107
|
+
## Key deliverables
|
|
108
|
+
|
|
109
|
+
- First deliverable
|
|
110
|
+
- Second deliverable
|
|
111
|
+
|
|
112
|
+
## Next steps
|
|
113
|
+
|
|
114
|
+
Identify owners and the next review date.`,"templates.meeting.title":"Meeting notes","templates.meeting.description":"Capture decisions and next steps, with owners and deadlines.","templates.meeting.content":`## Discussion
|
|
115
|
+
|
|
116
|
+
Record the meeting context and conclusions.
|
|
117
|
+
|
|
118
|
+
## Action items
|
|
119
|
+
|
|
120
|
+
- Task \xB7 Owner \xB7 Due date
|
|
121
|
+
|
|
122
|
+
## Open questions
|
|
123
|
+
|
|
124
|
+
Record questions that need follow-up.`,"templates.weekly.title":"Weekly update","templates.weekly.description":"Summarize progress, blockers, and plans for next week.","templates.weekly.content":`## This week
|
|
125
|
+
|
|
126
|
+
- Completed work
|
|
127
|
+
|
|
128
|
+
## Blockers
|
|
129
|
+
|
|
130
|
+
Record risks, blockers, and support needed.
|
|
131
|
+
|
|
132
|
+
## Next week
|
|
133
|
+
|
|
134
|
+
- Next steps`,"folder.location":"Location","folder.root":"Space root","create.renameMove":"Rename and move","create.page":"New page","create.folder":"New folder","create.pageDescription":"Start with a blank page or a team template.","library.storageNote":"Content is saved in this project's file workspace.","create.startingPoint":"Page starting point","create.templates":"Page templates","create.blank":"Blank page","create.blankDescription":"Create a blank document.","create.pageName":"Page name","common.name":"Name","create.namePlaceholder":"Give this content a name","create.permissions":"Inherits project members' viewing and editing permissions","common.cancel":"Cancel","common.save":"Save","create.createPage":"Create page","common.create":"Create","download.preparing":"Preparing download\u2026","download.saveFile":"Save file","editor.connecting":"Connecting\u2026","editor.saving":"Saving\u2026","editor.fileSyncFailed":"Document edits are preserved, but file sync failed. Check file conflicts and try again.","editor.saveFailed":"Save failed. Please reopen the page.","editor.saved":"Saved","editor.offline":"Disconnected. Editing is paused and will sync when the connection returns.","editor.readOnly":"Read only","editor.externalChange":"The file has changed. Review its versions.","editor.reviewChanges":"File updated; review required","editor.reauthorize":"Disconnected. Reopen to verify access.","editor.accessFailed":"Access or sync failed. Please reopen the page.","editor.loadFailed":"Unable to load the page.","editor.label":"Page editor","editor.reviewVersions":"Review file versions","editor.blockType":"Block type","block.paragraph":"Text","block.heading":"Heading","block.list":"List","block.code":"Code","editor.headingPlaceholder":"Heading text","editor.paragraphPlaceholder":"Paragraph text","editor.addParagraph":"\uFF0B Add paragraph","conflict.title":"The file content has changed","conflict.description":"The file workspace and collaborative page have different versions. Choose which content to continue with; both versions remain in history.","conflict.fileVersion":"File workspace version","conflict.useFile":"Use file version","conflict.pageVersion":"Collaborative page version (including local edits)","conflict.keepPage":"Keep page version","conflict.loading":"Loading both versions\u2026","navigation.waitForSave":"Saving. Please wait before switching.","navigation.trash":"Trash","kind.folder":"Folder","kind.page":"Page","navigation.files":"Files and artifacts","navigation.all":"All content","common.dismiss":"Dismiss notification","common.processing":"Working\u2026","project.choose":"Choose a collaboration project","project.chooseDescription":"Create a Collaboration Space in the Workbench project picker, or choose an existing project.","project.sharing":"Project members and connected Assistants share the files and documents here.","common.reload":"Reload","navigation.label":"Space navigation","space.title":"Collaboration space","navigation.search":"Search space","common.opening":"Opening\u2026","space.sharedSuffix":"\xB7 Shared with project members","navigation.findDocument":"Find documents","knowledge.title":"Document search","navigation.back":"Back to content","document.actions":"Document actions","document.renameMove":"Rename / move","access.title":"Access","trash.restore":"Restore content","trash.move":"Move to trash","document.projectFileSuffix":"\xB7 Project file","trash.documentNotice":"This content is in the trash. Restore it to continue using it.","document.editorUnavailable":"The collaboration editor is temporarily unavailable. The original file is preserved and can be downloaded.","document.reopenEditor":"Reopen editor","document.originalFormat":"The file retains its original format and is available in the project file workspace.","document.download":"Download file","library.description":"Build, maintain, and use content with your team and AI.","library.search":"Search this space","library.new":"New","materials.title":"Add materials","source.title":"Import from a document platform","library.recent":"Recently updated","library.refresh":"Refresh list","library.loading":"Loading content\u2026","library.type":"Type","library.source":"Source","library.updated":"Updated","library.actions":"Actions","source.copyType":"External text copy","library.spacePage":"Space page","materials.assistantArtifacts":"Assistant artifacts","library.projectFile":"Project file","common.open":"Open","source.viewOrigin":"View import source","library.noResults":"No matching content","trash.empty":"Trash is empty","library.empty":"Write your first document together","library.searchHint":"Try another name or file path.","library.createHint":"Create a page or add files to start collaborating with your team and AI.","common.closePanel":"Close panel","source.originTitle":"Import source","source.copyDescription":"This document is an independent copy in this project, governed by project permissions.","source.openPlatform":"View original on source platform","common.close":"Close","access.description":"Maintain documents, files, and artifacts with your team and AI \xB7 Provided by the Spaces plugin","access.entry":"Workbench entry","access.views":"Views","access.entryDescription":"After an Assistant adds and publishes this capability, open the view in a connected collaboration project.","access.shared":"Shared with project members","access.roles":"Owners and admins manage members, Assistants, and content. Editors collaborate; other members view and download. Archived spaces are read only.","access.projectPermissions":"Manage members and Assistants in project settings. Assistant access alone does not grant access to project content.","access.capabilities":"Capabilities","access.pages":"Page collaboration","access.pagesDescription":"Independent Markdown editor with real-time collaboration and version history","access.ai":"Create with AI","access.aiDescription":"Generate, comment on, and review changes in the Assistant","access.filesDescription":"Project files, uploads, and collected artifact versions","access.searchDescription":"Search and reference space content with the project knowledge base","access.sheetDescription":"Spreadsheet editing is provided by installed editor plugins.","common.done":"Got it","common.image":"Image","materials.description":"Add files and existing artifacts to this space.","materials.source":"Material source","materials.local":"Local files","materials.chooseFiles":"Choose files to add","materials.fileLimit":"Up to 25 MiB per file","materials.editor":"Editing method","materials.keepOriginal":"Keep as original file","materials.search":"Search available artifacts","materials.loading":"Loading artifacts\u2026","materials.untitled":"Untitled artifact","materials.noFileVersion":"No file version available","materials.noVersion":"No versions","materials.empty":"No artifacts available. Generate a file in chat, then return here to add it.","common.previousPage":"Previous page","common.nextPage":"Next page","materials.versionNote":"Collect the selected version. Source updates will not overwrite the project file.","materials.add":"Add to space","error.retry":"The action failed. Please try again.","error.conflict":"Content has changed. Your content is preserved; refresh and review the files and version history.","error.denied":"You do not have permission, or your project access has been revoked.","error.timeout":"The response timed out. Please try again later.","error.model":"The model is unavailable. Check your organization's model configuration.","kind.file":"File","kind.sheet":"Spreadsheet","kind.artifact":"Artifact","panel.choosePage":"Select a page to view comments, AI suggestions, and version history.","proposal.request":"Describe the change","proposal.defaultRequest":"Make the next steps more specific","proposal.selectedOnly":"Only the selected paragraph is changed, after you accept the suggestion.","proposal.selectBlock":"Select a paragraph first.","proposal.generate":"Generate suggestion","proposal.original":"Original","proposal.suggestion":"Suggested change","proposal.accept":"Accept change","proposal.reject":"Reject","proposal.accepted":"Accepted","proposal.rejected":"Rejected","comments.resolved":"Resolved","comments.pending":"Open","comments.reopen":"Reopen","comments.resolve":"Mark resolved","comments.empty":"No comments yet. Leave a question or record a conclusion.","comments.body":"Comment","comments.placeholder":"Add a comment\u2026","comments.post":"Post comment","history.checkpointLabel":"Manual checkpoint","history.createCheckpoint":"Create checkpoint","history.current":"Current version","history.preserveNote":"The current version will be preserved before restoring.","history.restoreVersion":"Restore this version","history.confirmNext":"Review the content to restore next.","history.restoreDescription":"This content will become a new version. The current version remains in history.","history.confirmRestore":"Confirm restore","knowledge.description":"The project's built-in knowledge base indexes documents and inherits project permissions.","knowledge.enable":"Enable built-in knowledge base","knowledge.linked":"Built-in knowledge base connected \xB7 Keyword search","knowledge.sync":"Sync / retry indexing","knowledge.refresh":"Refresh status","knowledge.askTitle":"Ask this space","knowledge.accessNote":"Answers use only content you can access in this project.","knowledge.question":"Question","knowledge.placeholder":"What should this project do next?","knowledge.ask":"Ask","knowledge.noSources":"No usable sources found.","error.save":"Save failed.","error.download":"Download failed.","source.error.locator":"Paste a Feishu /docx/ or /wiki/ document link.","source.error.type":"This wiki link does not point to a new document. Only docx text copies are supported.","source.error.access":"The account authorized for this connection cannot read the document. Check the connection and document accounts, or choose an accessible document.","source.error.connection":"Unable to read the source. Check the connection, app permissions, and the authorized account's document access.","source.error.changed":"The Feishu document has changed. Preview it again before importing.","source.error.size":"The document exceeds the current 100 KB text limit.","source.description":"Copy text from an authorized source into this project to edit with project members.","source.retryConnections":"Retry loading connections","source.noConnections":"This Assistant / project has no connection that supports document reading.","source.setupHint":"Ask an administrator to install the Feishu connector and authorize a shared account in connection management. Then select Recheck.","source.recheck":"Recheck","source.provider":"Document source","source.chooseConnection":"Choose an authorized connection","source.projectScope":"Project","source.workspaceScope":"Assistant workspace","source.recheckConnections":"Recheck connections","source.searchHint":"Available documents depend on the account authorized for this shared connection. An empty query lists the drive root; keyword searches return up to 199 new documents.","source.searchLabel":"Search source documents","source.searchPlaceholder":"Search document titles","source.search":"Search / list","source.linkLabel":"Feishu document link","source.linkPlaceholder":"Paste a Feishu /docx/ or /wiki/ link","common.preview":"Preview","source.emptyPage":"No importable documents on this page. Continue to the next page or paste a document link.","common.loadMore":"Load more","source.openOriginal":"View original","source.emptyText":"(This document has no importable text.)","source.confirmation":"I have reviewed the preview and agree to share this text copy with project members. The copy is stored independently and will not be deleted automatically if remote access is revoked.","source.import":"Import text copy","library.subpage":"Subpage \xB7 {{title}}","library.moreActions":"More actions for {{title}}","source.destination":"{{space}} / {{folder}}","source.originRevision":"{{provider}} \xB7 Source revision {{revision}}","source.importedAt":"Imported: {{date}}","source.id":"Source ID: {{id}}","source.previewMeta":"Source revision {{revision}} \xB7 Destination: {{destination}}","source.connectionLabel":"{{provider}} \xB7 Shared with {{scope}}","source.disconnected":"{{label}} \xB7 Not connected","materials.importWith":"Import with {{editor}}","materials.chooseArtifact":"Select {{title}}","materials.artifactVersion":"Version of {{title}}","materials.selected":"{{count}} items selected","materials.selected_one":"{{count}} item selected","materials.selected_other":"{{count}} items selected","common.pageNumber":"Page {{page}}","history.restoreTitle":"Restore \u201C{{title}}\u201D?","editor.people":"{{count}} online: {{names}}","common.workbench":"Workbench","materials.fileSize":"{{size}} KB","common.version":"v{{version}}","history.versionMeta":"{{date}} \xB7 v{{version}}","create.document":"Create document","catalog.create":"Create {{type}}","catalog.permissions":"Owned by this project and shared with its members.","catalog.resource":"Project resource","catalog.more":"Load more resources","catalog.rename":"Rename","catalog.openWith":"Open with","catalog.recycleDescription":"Move \u201C{{title}}\u201D to trash? Editing will stop and published share links will be revoked. Source files and versions are retained.","catalog.restoreDescription":"Restore \u201C{{title}}\u201D for editing. Previous share links will remain revoked.","catalog.move":"Move to folder","catalog.moveDescription":"Organize this resource in the current space. Its identity, source bundle and shared links stay the same.","catalog.folderNotEmpty":"Move the resources out of this folder before recycling it.","knowledge.searchQuery":"Search indexed content","knowledge.searchAction":"Search","catalog.editorDefaults":"Default editor","catalog.editorDefaultsDescription":"An explicit Open with choice takes precedence, followed by resource, project and organization defaults. Only compatible editors can open this model.","catalog.defaultScope":"Applies to","catalog.defaultEditor":"Editor","catalog.inheritEditor":"Inherit default","catalog.scope.resource":"This resource","catalog.scope.project":"This model in this project","catalog.scope.organization":"This model in this organization","catalog.unavailable":"Content provider unavailable","catalog.unavailableDescription":"The source files are retained in this project. Re-enable the provider to continue editing, or download the retained source backup. It may be older than the last editing state.","catalog.downloadBackup":"Download source backup","knowledge.pending":"Waiting to sync","knowledge.processing":"Indexing","knowledge.ready":"Ready","knowledge.failed":"Index failed","knowledge.failureNote":"Indexing failed. Sync again to retry.","catalog.duplicate":"Duplicate","catalog.copyTitle":"{{title}} \u2014 copy","catalog.implementation":"Editor implementation","catalog.startFrom":"Start from","catalog.blank":"Blank document","catalog.creationMode":"Next step","catalog.editMyself":"Edit myself","catalog.withAssistant":"Generate with Assistant","catalog.brief":"What would you like to create?","catalog.assistantNotice":"Sends your brief to the current Assistant. Its configured capabilities and permissions apply.","catalog.generate":"Create and send to Assistant","catalog.generatePrompt":"Please edit the existing Project resource \u201C{{title}}\u201D (contentId: {{contentId}}). Read its current content and use the configured type tools. Do not create another copy or publish it. Requirements: {{prompt}}","library.listView":"List view","library.gridView":"Grid view","library.state":"Access / sync","catalog.projectAccess":"Project members","catalog.readOnly":"Read only","catalog.synced":"Source synced","catalog.pending":"Source sync pending","catalog.failed":"Source sync failed; retry scheduled","catalog.sourceRevision":"Source revision: {{revision}}","catalog.outlinePreview":"Structure preview"};var Xk={"bridge.contextChanged":"\u7A7A\u95F4\u4E0A\u4E0B\u6587\u5DF2\u5207\u6362","bridge.requestFailed":"\u8BF7\u6C42\u5931\u8D25","bridge.closed":"\u7A7A\u95F4\u5DF2\u5173\u95ED","bridge.notConnected":"\u7A7A\u95F4\u5C1A\u672A\u8FDE\u63A5","bridge.timeout":"\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5","common.actionFailed":"\u64CD\u4F5C\u5931\u8D25","bridge.uploadFailed":"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25","bridge.editorUnavailable":"\u65E0\u6CD5\u6253\u5F00\u6587\u6863\u7F16\u8F91\u5668","templates.project.title":"\u9879\u76EE\u7B80\u62A5","templates.project.description":"\u68B3\u7406\u9879\u76EE\u80CC\u666F\u3001\u76EE\u6807\u4E0E\u5173\u952E\u8BA1\u5212\uFF0C\u8BA9\u56E2\u961F\u5BF9\u9F50\u3002","templates.project.content":`## \u9879\u76EE\u76EE\u6807
|
|
135
|
+
|
|
136
|
+
\u63CF\u8FF0\u672C\u9879\u76EE\u5E0C\u671B\u8FBE\u6210\u7684\u76EE\u6807\u3002
|
|
137
|
+
|
|
138
|
+
## \u5173\u952E\u4EA4\u4ED8
|
|
139
|
+
|
|
140
|
+
- \u7B2C\u4E00\u9879\u4EA4\u4ED8
|
|
141
|
+
- \u7B2C\u4E8C\u9879\u4EA4\u4ED8
|
|
142
|
+
|
|
143
|
+
## \u4E0B\u4E00\u6B65
|
|
144
|
+
|
|
145
|
+
\u660E\u786E\u8D1F\u8D23\u4EBA\u548C\u4E0B\u4E00\u6B21\u68C0\u67E5\u65F6\u95F4\u3002`,"templates.meeting.title":"\u4F1A\u8BAE\u7EAA\u8981","templates.meeting.description":"\u8BB0\u5F55\u8BA8\u8BBA\u8981\u70B9\u4E0E\u540E\u7EED\u884C\u52A8\uFF0C\u660E\u786E\u8D23\u4EFB\u4E0E\u65F6\u95F4\u3002","templates.meeting.content":`## \u8BA8\u8BBA\u8981\u70B9
|
|
146
|
+
|
|
147
|
+
\u8BB0\u5F55\u4F1A\u8BAE\u80CC\u666F\u4E0E\u8BA8\u8BBA\u7ED3\u8BBA\u3002
|
|
148
|
+
|
|
149
|
+
## \u884C\u52A8\u4E8B\u9879
|
|
150
|
+
|
|
151
|
+
- \u5F85\u529E\u4E8B\u9879 \xB7 \u8D1F\u8D23\u4EBA \xB7 \u622A\u6B62\u65E5\u671F
|
|
152
|
+
|
|
153
|
+
## \u5F85\u786E\u8BA4
|
|
154
|
+
|
|
155
|
+
\u8BB0\u5F55\u9700\u8981\u540E\u7EED\u786E\u8BA4\u7684\u95EE\u9898\u3002`,"templates.weekly.title":"\u56E2\u961F\u5468\u62A5","templates.weekly.description":"\u603B\u7ED3\u672C\u5468\u8FDB\u5C55\u3001\u5F85\u89E3\u51B3\u95EE\u9898\u4E0E\u4E0B\u5468\u5B89\u6392\u3002","templates.weekly.content":`## \u672C\u5468\u8FDB\u5C55
|
|
156
|
+
|
|
157
|
+
- \u5DF2\u5B8C\u6210\u7684\u5DE5\u4F5C
|
|
158
|
+
|
|
159
|
+
## \u5F85\u89E3\u51B3
|
|
160
|
+
|
|
161
|
+
\u8BB0\u5F55\u98CE\u9669\u3001\u963B\u788D\u4E0E\u9700\u8981\u7684\u652F\u6301\u3002
|
|
162
|
+
|
|
163
|
+
## \u4E0B\u5468\u5B89\u6392
|
|
164
|
+
|
|
165
|
+
- \u4E0B\u4E00\u6B65\u8BA1\u5212`,"folder.location":"\u5B58\u653E\u4F4D\u7F6E","folder.root":"\u7A7A\u95F4\u6839\u76EE\u5F55","create.renameMove":"\u91CD\u547D\u540D\u4E0E\u79FB\u52A8","create.page":"\u65B0\u5EFA\u9875\u9762","create.folder":"\u65B0\u5EFA\u6587\u4EF6\u5939","create.pageDescription":"\u4ECE\u7A7A\u767D\u9875\u9762\u5F00\u59CB\uFF0C\u6216\u4F7F\u7528\u56E2\u961F\u5E38\u7528\u6A21\u677F","library.storageNote":"\u5185\u5BB9\u4FDD\u5B58\u5728\u5F53\u524D\u9879\u76EE\u7684\u6587\u4EF6\u5DE5\u4F5C\u533A\u4E2D","create.startingPoint":"\u9875\u9762\u8D77\u70B9","create.templates":"\u9875\u9762\u6A21\u677F","create.blank":"\u7A7A\u767D\u9875\u9762","create.blankDescription":"\u521B\u5EFA\u4E00\u4EFD\u7A7A\u767D\u6587\u6863\u3002","create.pageName":"\u9875\u9762\u540D\u79F0","common.name":"\u540D\u79F0","create.namePlaceholder":"\u4E3A\u8FD9\u4EFD\u5185\u5BB9\u547D\u540D","create.permissions":"\u7EE7\u627F\u9879\u76EE\u6210\u5458\u7684\u67E5\u770B\u4E0E\u7F16\u8F91\u6743\u9650","common.cancel":"\u53D6\u6D88","common.save":"\u4FDD\u5B58","create.createPage":"\u521B\u5EFA\u9875\u9762","common.create":"\u521B\u5EFA","download.preparing":"\u6B63\u5728\u51C6\u5907\u4E0B\u8F7D\u2026","download.saveFile":"\u4FDD\u5B58\u6587\u4EF6","editor.connecting":"\u6B63\u5728\u8FDE\u63A5\u2026","editor.saving":"\u6B63\u5728\u4FDD\u5B58\u2026","editor.fileSyncFailed":"\u6587\u6863\u4FEE\u6539\u5DF2\u4FDD\u7559\uFF0C\u4F46\u6587\u4EF6\u540C\u6B65\u5931\u8D25\u3002\u8BF7\u68C0\u67E5\u6587\u4EF6\u51B2\u7A81\u540E\u91CD\u8BD5\u3002","editor.saveFailed":"\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u9875\u9762","editor.saved":"\u5DF2\u4FDD\u5B58","editor.offline":"\u7F51\u7EDC\u5DF2\u65AD\u5F00\uFF0C\u7F16\u8F91\u5DF2\u6682\u505C\uFF1B\u8FDE\u63A5\u6062\u590D\u540E\u81EA\u52A8\u540C\u6B65","editor.readOnly":"\u53EA\u8BFB","editor.externalChange":"\u6587\u4EF6\u5DF2\u88AB\u4FEE\u6539\uFF0C\u7B49\u5F85\u6838\u5BF9\u7248\u672C","editor.reviewChanges":"\u6587\u4EF6\u6709\u66F4\u65B0\uFF0C\u5F85\u6838\u5BF9","editor.reauthorize":"\u8FDE\u63A5\u5DF2\u65AD\u5F00\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u4EE5\u9A8C\u8BC1\u8BBF\u95EE\u6743\u9650","editor.accessFailed":"\u8BBF\u95EE\u6216\u540C\u6B65\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u9875\u9762","editor.loadFailed":"\u9875\u9762\u52A0\u8F7D\u5931\u8D25","editor.label":"\u9875\u9762\u7F16\u8F91\u5668","editor.reviewVersions":"\u6838\u5BF9\u6587\u4EF6\u7248\u672C","editor.blockType":"\u6BB5\u843D\u7C7B\u578B","block.paragraph":"\u6B63\u6587","block.heading":"\u6807\u9898","block.list":"\u5217\u8868","block.code":"\u4EE3\u7801","editor.headingPlaceholder":"\u6807\u9898\u5185\u5BB9","editor.paragraphPlaceholder":"\u6BB5\u843D\u5185\u5BB9","editor.addParagraph":"\uFF0B \u6DFB\u52A0\u6BB5\u843D","conflict.title":"\u6587\u4EF6\u5185\u5BB9\u5DF2\u53D1\u751F\u53D8\u5316","conflict.description":"\u6587\u4EF6\u5DE5\u4F5C\u533A\u548C\u534F\u4F5C\u9875\u9762\u6709\u4E0D\u540C\u7248\u672C\u3002\u9009\u62E9\u8981\u7EE7\u7EED\u4F7F\u7528\u7684\u5185\u5BB9\uFF1B\u4E24\u4EFD\u5185\u5BB9\u90FD\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002","conflict.fileVersion":"\u6587\u4EF6\u5DE5\u4F5C\u533A\u7248\u672C","conflict.useFile":"\u91C7\u7528\u6587\u4EF6\u7248\u672C","conflict.pageVersion":"\u534F\u4F5C\u9875\u9762\u7248\u672C\uFF08\u542B\u672C\u5730\u4FEE\u6539\uFF09","conflict.keepPage":"\u4FDD\u7559\u9875\u9762\u7248\u672C","conflict.loading":"\u6B63\u5728\u8BFB\u53D6\u4E24\u4E2A\u7248\u672C\u2026","navigation.waitForSave":"\u6B63\u5728\u4FDD\u5B58\uFF0C\u8BF7\u7B49\u5F85\u5B8C\u6210\u540E\u518D\u5207\u6362\u3002","navigation.trash":"\u56DE\u6536\u7AD9","kind.folder":"\u6587\u4EF6\u5939","kind.page":"\u9875\u9762","navigation.files":"\u6587\u4EF6\u4E0E\u6210\u679C","navigation.all":"\u5168\u90E8\u5185\u5BB9","common.dismiss":"\u5173\u95ED\u63D0\u793A","common.processing":"\u6B63\u5728\u5904\u7406\u2026","project.choose":"\u9009\u62E9\u4E00\u4E2A\u534F\u4F5C\u7A7A\u95F4\u9879\u76EE","project.chooseDescription":"\u5728 Workbench \u7684\u9879\u76EE\u9009\u62E9\u5668\u4E2D\u521B\u5EFA\u201C\u534F\u4F5C\u7A7A\u95F4\u201D\uFF0C\u6216\u9009\u62E9\u5DF2\u6709\u9879\u76EE\u3002","project.sharing":"\u9879\u76EE\u6210\u5458\u548C\u7ED1\u5B9A\u7684\u591A\u4E2A Assistant \u5C06\u5171\u540C\u4F7F\u7528\u8FD9\u91CC\u7684\u6587\u4EF6\u4E0E\u6587\u6863\u3002","common.reload":"\u91CD\u65B0\u52A0\u8F7D","navigation.label":"\u7A7A\u95F4\u5BFC\u822A","space.title":"\u534F\u4F5C\u7A7A\u95F4","navigation.search":"\u641C\u7D22\u7A7A\u95F4","common.opening":"\u6B63\u5728\u6253\u5F00\u2026","space.sharedSuffix":"\xB7 \u9879\u76EE\u6210\u5458\u5171\u4EAB","navigation.findDocument":"\u67E5\u627E\u6587\u6863","knowledge.title":"\u6587\u6863\u68C0\u7D22","navigation.back":"\u8FD4\u56DE\u5185\u5BB9\u5217\u8868","document.actions":"\u6587\u6863\u64CD\u4F5C","document.renameMove":"\u91CD\u547D\u540D / \u79FB\u52A8","access.title":"\u8BBF\u95EE\u8303\u56F4","trash.restore":"\u6062\u590D\u5185\u5BB9","trash.move":"\u79FB\u5165\u56DE\u6536\u7AD9","document.projectFileSuffix":"\xB7 \u9879\u76EE\u6587\u4EF6","trash.documentNotice":"\u6B64\u5185\u5BB9\u5DF2\u79FB\u5165\u56DE\u6536\u7AD9\uFF0C\u6062\u590D\u540E\u53EF\u7EE7\u7EED\u4F7F\u7528\u3002","document.editorUnavailable":"\u6B64\u6587\u6863\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u534F\u4F5C\u7F16\u8F91\u5668\u6253\u5F00\u3002\u539F\u59CB\u6587\u4EF6\u4FDD\u7559\uFF0C\u53EF\u4E0B\u8F7D\u67E5\u770B\u3002","document.reopenEditor":"\u91CD\u65B0\u6253\u5F00\u7F16\u8F91\u5668","document.originalFormat":"\u6587\u4EF6\u4FDD\u7559\u539F\u59CB\u683C\u5F0F\uFF0C\u53EF\u5728\u9879\u76EE\u6587\u4EF6\u5DE5\u4F5C\u533A\u4E2D\u7EE7\u7EED\u4F7F\u7528\u3002","document.download":"\u4E0B\u8F7D\u6587\u4EF6","library.description":"\u4E0E\u56E2\u961F\u548C AI \u4E00\u8D77\u79EF\u7D2F\u3001\u7EF4\u62A4\u548C\u4F7F\u7528\u5185\u5BB9","library.search":"\u641C\u7D22\u5F53\u524D\u7A7A\u95F4","library.new":"\u65B0\u5EFA","materials.title":"\u6DFB\u52A0\u8D44\u6599","source.title":"\u4ECE\u6587\u6863\u5E73\u53F0\u5BFC\u5165","library.recent":"\u6700\u8FD1\u66F4\u65B0","library.refresh":"\u5237\u65B0\u5217\u8868","library.loading":"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9\u2026","library.type":"\u7C7B\u578B","library.source":"\u6765\u6E90","library.updated":"\u66F4\u65B0\u65F6\u95F4","library.actions":"\u64CD\u4F5C","source.copyType":"\u5916\u90E8\u6587\u672C\u526F\u672C","library.spacePage":"\u7A7A\u95F4\u9875\u9762","materials.assistantArtifacts":"Assistant \u6210\u679C","library.projectFile":"\u9879\u76EE\u6587\u4EF6","common.open":"\u6253\u5F00","source.viewOrigin":"\u67E5\u770B\u5BFC\u5165\u6765\u6E90","library.noResults":"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684\u5185\u5BB9","trash.empty":"\u56DE\u6536\u7AD9\u4E3A\u7A7A","library.empty":"\u4E00\u8D77\u5199\u4E0B\u7B2C\u4E00\u7BC7\u6587\u6863","library.searchHint":"\u8BD5\u8BD5\u5176\u4ED6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\u3002","library.createHint":"\u521B\u5EFA\u9875\u9762\uFF0C\u6216\u6DFB\u52A0\u5DF2\u6709\u6587\u4EF6\uFF0C\u5F00\u59CB\u4E0E\u56E2\u961F\u548C AI \u534F\u4F5C\u3002","common.closePanel":"\u5173\u95ED\u4FA7\u680F","source.originTitle":"\u5BFC\u5165\u6765\u6E90","source.copyDescription":"\u6B64\u6587\u6863\u662F\u5F53\u524D\u9879\u76EE\u4E2D\u7684\u72EC\u7ACB\u526F\u672C\uFF0C\u7531\u9879\u76EE\u6743\u9650\u7BA1\u7406\u3002","source.openPlatform":"\u5728\u6765\u6E90\u5E73\u53F0\u67E5\u770B\u539F\u6587","common.close":"\u5173\u95ED","access.description":"\u4E0E\u56E2\u961F\u548C AI \u5171\u540C\u7EF4\u62A4\u6587\u6863\u3001\u6587\u4EF6\u548C\u6210\u679C \xB7 \u7531 Spaces \u63D2\u4EF6\u63D0\u4F9B","access.entry":"\u5DE5\u4F5C\u53F0\u5165\u53E3","access.views":"\u89C6\u56FE","access.entryDescription":"Assistant \u6DFB\u52A0\u5E76\u53D1\u5E03\u6B64\u80FD\u529B\u540E\uFF0C\u53EF\u5728\u5DF2\u7ED1\u5B9A\u7684\u534F\u4F5C\u7A7A\u95F4\u9879\u76EE\u4E2D\u6253\u5F00\u89C6\u56FE\u3002","access.shared":"\u9879\u76EE\u6210\u5458\u5171\u4EAB","access.roles":"\u6240\u6709\u8005\u548C\u7BA1\u7406\u5458\u7BA1\u7406\u6210\u5458\u3001Assistant \u4E0E\u5185\u5BB9\uFF1B\u7F16\u8F91\u8005\u5171\u540C\u7F16\u8F91\uFF0C\u666E\u901A\u6210\u5458\u67E5\u770B\u548C\u4E0B\u8F7D\u3002\u5F52\u6863\u540E\u7A7A\u95F4\u53EA\u8BFB\u3002","access.projectPermissions":"\u5728\u9879\u76EE\u8BBE\u7F6E\u4E2D\u7BA1\u7406\u6210\u5458\u4E0E\u591A\u4E2A Assistant\u3002\u4EC5\u62E5\u6709 Assistant \u6743\u9650\u4E0D\u4F1A\u83B7\u5F97\u8BE5\u9879\u76EE\u7684\u5185\u5BB9\u3002","access.capabilities":"\u5305\u542B\u7684\u80FD\u529B","access.pages":"\u9875\u9762\u534F\u4F5C","access.pagesDescription":"\u72EC\u7ACB Markdown \u7F16\u8F91\u5668\uFF0C\u5B9E\u65F6\u534F\u4F5C\u4E0E\u7248\u672C\u5386\u53F2","access.ai":"AI \u5171\u521B","access.aiDescription":"\u5728 Assistant \u4E2D\u751F\u6210\u3001\u8BC4\u8BBA\u4E0E\u5BA1\u9605\u4FEE\u6539","access.filesDescription":"\u9879\u76EE\u6587\u4EF6\u3001\u4E0A\u4F20\u4E0E\u56FA\u5B9A\u7248\u672C\u5F52\u96C6","access.searchDescription":"\u7ED1\u5B9A\u9879\u76EE\u77E5\u8BC6\u5E93\uFF0C\u68C0\u7D22\u4E0E\u5F15\u7528\u7A7A\u95F4\u5185\u5BB9","access.sheetDescription":"\u8868\u683C\u7F16\u8F91\u7531\u5DF2\u5B89\u88C5\u7684\u7F16\u8F91\u5668\u63D2\u4EF6\u63D0\u4F9B\u3002","common.done":"\u77E5\u9053\u4E86","common.image":"\u56FE\u7247","materials.description":"\u5C06\u6587\u4EF6\u4E0E\u5DF2\u6709\u6210\u679C\u653E\u8FDB\u5F53\u524D\u7A7A\u95F4","materials.source":"\u8D44\u6599\u6765\u6E90","materials.local":"\u672C\u5730\u6587\u4EF6","materials.chooseFiles":"\u9009\u62E9\u8981\u6DFB\u52A0\u7684\u6587\u4EF6","materials.fileLimit":"\u6BCF\u4E2A\u6587\u4EF6\u6700\u591A 25 MiB","materials.editor":"\u7F16\u8F91\u65B9\u5F0F","materials.keepOriginal":"\u4FDD\u7559\u4E3A\u539F\u59CB\u6587\u4EF6","materials.search":"\u641C\u7D22\u53EF\u5F52\u96C6\u7684\u6210\u679C","materials.loading":"\u6B63\u5728\u52A0\u8F7D\u6210\u679C\u2026","materials.untitled":"\u672A\u547D\u540D\u6210\u679C","materials.noFileVersion":"\u6682\u65E0\u6587\u4EF6\u7248\u672C","materials.noVersion":"\u6682\u65E0\u7248\u672C","materials.empty":"\u6682\u65E0\u53EF\u5F52\u96C6\u7684\u6210\u679C\u3002\u5728\u804A\u5929\u4E2D\u751F\u6210\u6587\u4EF6\u540E\uFF0C\u53EF\u56DE\u5230\u8FD9\u91CC\u6DFB\u52A0\u3002","common.previousPage":"\u4E0A\u4E00\u9875","common.nextPage":"\u4E0B\u4E00\u9875","materials.versionNote":"\u5F52\u96C6\u6240\u9009\u7248\u672C\uFF0C\u6765\u6E90\u66F4\u65B0\u4E0D\u4F1A\u81EA\u52A8\u8986\u76D6\u5F53\u524D\u9879\u76EE\u6587\u4EF6\u3002","materials.add":"\u6DFB\u52A0\u5230\u7A7A\u95F4","error.retry":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5","error.conflict":"\u5185\u5BB9\u5DF2\u53D1\u751F\u53D8\u5316\u3002\u5DF2\u4FDD\u7559\u5F53\u524D\u5185\u5BB9\uFF0C\u8BF7\u5237\u65B0\u540E\u68C0\u67E5\u6587\u4EF6\u548C\u7248\u672C\u8BB0\u5F55\u3002","error.denied":"\u6CA1\u6709\u6267\u884C\u6B64\u64CD\u4F5C\u7684\u6743\u9650\uFF0C\u6216\u9879\u76EE\u8BBF\u95EE\u6743\u9650\u5DF2\u88AB\u64A4\u9500\u3002","error.timeout":"\u54CD\u5E94\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002","error.model":"\u6A21\u578B\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u68C0\u67E5\u7EC4\u7EC7\u7684\u6A21\u578B\u914D\u7F6E\u3002","kind.file":"\u6587\u4EF6","kind.sheet":"\u8868\u683C","kind.artifact":"\u6210\u679C","panel.choosePage":"\u9009\u62E9\u9875\u9762\u4EE5\u67E5\u770B\u8BC4\u8BBA\u3001AI \u5EFA\u8BAE\u548C\u7248\u672C\u5386\u53F2\u3002","proposal.request":"\u63CF\u8FF0\u4FEE\u6539\u8981\u6C42","proposal.defaultRequest":"\u8BA9\u4E0B\u4E00\u6B65\u66F4\u5177\u4F53","proposal.selectedOnly":"\u53EA\u4FEE\u6539\u9009\u4E2D\u7684\u6BB5\u843D\uFF0C\u63A5\u53D7\u540E\u5199\u5165\u6B63\u6587\u3002","proposal.selectBlock":"\u5148\u70B9\u51FB\u6B63\u6587\u4E2D\u7684\u6BB5\u843D\u3002","proposal.generate":"\u751F\u6210\u4FEE\u6539\u5EFA\u8BAE","proposal.original":"\u539F\u6587","proposal.suggestion":"\u5EFA\u8BAE\u4FEE\u6539","proposal.accept":"\u63A5\u53D7\u4FEE\u6539","proposal.reject":"\u62D2\u7EDD","proposal.accepted":"\u5DF2\u63A5\u53D7","proposal.rejected":"\u5DF2\u62D2\u7EDD","comments.resolved":"\u5DF2\u89E3\u51B3","comments.pending":"\u5F85\u5904\u7406","comments.reopen":"\u91CD\u65B0\u6253\u5F00","comments.resolve":"\u6807\u8BB0\u89E3\u51B3","comments.empty":"\u8FD8\u6CA1\u6709\u8BC4\u8BBA\u3002\u7559\u4E0B\u95EE\u9898\u6216\u8BB0\u5F55\u8BA8\u8BBA\u7ED3\u8BBA\u3002","comments.body":"\u8BC4\u8BBA\u5185\u5BB9","comments.placeholder":"\u6DFB\u52A0\u8BC4\u8BBA\u2026","comments.post":"\u53D1\u8868\u8BC4\u8BBA","history.checkpointLabel":"\u624B\u52A8\u68C0\u67E5\u70B9","history.createCheckpoint":"\u521B\u5EFA\u68C0\u67E5\u70B9","history.current":"\u5F53\u524D\u7248\u672C","history.preserveNote":"\u6062\u590D\u524D\u4F1A\u4FDD\u7559\u5F53\u524D\u7248\u672C","history.restoreVersion":"\u6062\u590D\u6B64\u7248\u672C","history.confirmNext":"\u4E0B\u4E00\u6B65\u5C06\u786E\u8BA4\u6062\u590D\u5185\u5BB9","history.restoreDescription":"\u5C06\u4EE5\u6B64\u5185\u5BB9\u751F\u6210\u65B0\u7248\u672C\uFF0C\u5F53\u524D\u7248\u672C\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002","history.confirmRestore":"\u786E\u8BA4\u6062\u590D","knowledge.description":"\u9879\u76EE\u5185\u7F6E\u77E5\u8BC6\u5E93\u7D22\u5F15\u5F53\u524D\u6587\u6863\uFF0C\u8BBF\u95EE\u6743\u9650\u59CB\u7EC8\u7EE7\u627F\u9879\u76EE\u3002","knowledge.enable":"\u542F\u7528\u5185\u7F6E\u77E5\u8BC6\u5E93","knowledge.linked":"\u5DF2\u7ED1\u5B9A\u5185\u7F6E\u77E5\u8BC6\u5E93 \xB7 \u5173\u952E\u8BCD\u68C0\u7D22","knowledge.sync":"\u540C\u6B65 / \u91CD\u8BD5\u7D22\u5F15","knowledge.refresh":"\u5237\u65B0\u72B6\u6001","knowledge.askTitle":"\u5411\u7A7A\u95F4\u63D0\u95EE","knowledge.accessNote":"\u4EC5\u6839\u636E\u5F53\u524D\u9879\u76EE\u4E2D\u4F60\u6709\u6743\u8BBF\u95EE\u7684\u5185\u5BB9\u56DE\u7B54\u3002","knowledge.question":"\u95EE\u9898","knowledge.placeholder":"\u8FD9\u4E2A\u9879\u76EE\u4E0B\u4E00\u6B65\u9700\u8981\u505A\u4EC0\u4E48\uFF1F","knowledge.ask":"\u63D0\u95EE","knowledge.noSources":"\u6CA1\u6709\u627E\u5230\u53EF\u7528\u6765\u6E90\u3002","error.save":"\u4FDD\u5B58\u5931\u8D25","error.download":"\u4E0B\u8F7D\u5931\u8D25","source.error.locator":"\u8BF7\u7C98\u8D34\u98DE\u4E66\u65B0\u7248\u6587\u6863\u7684 /docx/ \u6216 /wiki/ \u94FE\u63A5\u3002","source.error.type":"\u8BE5\u77E5\u8BC6\u5E93\u94FE\u63A5\u6307\u5411\u7684\u4E0D\u662F\u65B0\u7248\u6587\u6863\uFF0C\u5F53\u524D\u4EC5\u652F\u6301\u5BFC\u5165 docx \u6587\u672C\u526F\u672C\u3002","source.error.access":"\u5F53\u524D\u8FDE\u63A5\u7684\u6388\u6743\u8D26\u6237\u6CA1\u6709\u8BE5\u6587\u6863\u7684\u9605\u8BFB\u6743\u9650\u3002\u8BF7\u6838\u5BF9\u8FDE\u63A5\u8D26\u53F7\u4E0E\u6587\u6863\u8D26\u53F7\uFF0C\u6216\u9009\u62E9\u8BE5\u8D26\u53F7\u53EF\u4EE5\u8BFB\u53D6\u7684\u6587\u6863\u3002","source.error.connection":"\u65E0\u6CD5\u8BFB\u53D6\u6765\u6E90\u3002\u8BF7\u68C0\u67E5\u8FDE\u63A5\u662F\u5426\u6709\u6548\u3001\u5E94\u7528\u6743\u9650\uFF0C\u4EE5\u53CA\u6388\u6743\u8D26\u6237\u662F\u5426\u80FD\u8BBF\u95EE\u8BE5\u6587\u6863\u3002","source.error.changed":"\u98DE\u4E66\u539F\u6587\u5DF2\u53D8\u5316\uFF0C\u8BF7\u91CD\u65B0\u9884\u89C8\u540E\u518D\u5BFC\u5165\u3002","source.error.size":"\u6587\u6863\u8D85\u8FC7\u672C\u6279\u652F\u6301\u7684 100 KB \u6587\u672C\u4E0A\u9650\u3002","source.description":"\u5C06\u6388\u6743\u6765\u6E90\u7684\u6587\u672C\u590D\u5236\u5230\u5F53\u524D\u9879\u76EE\uFF0C\u4E0E\u9879\u76EE\u6210\u5458\u5171\u540C\u7F16\u8F91\u3002","source.retryConnections":"\u91CD\u8BD5\u52A0\u8F7D\u8FDE\u63A5","source.noConnections":"\u5F53\u524D Assistant / \u9879\u76EE\u6CA1\u6709\u652F\u6301\u6587\u6863\u8BFB\u53D6\u7684\u8FDE\u63A5\u3002","source.setupHint":"\u8BF7\u7BA1\u7406\u5458\u5B89\u88C5\u98DE\u4E66\u8FDE\u63A5\u5668\uFF0C\u5E76\u5728\u8FDE\u63A5\u7BA1\u7406\u4E2D\u5B8C\u6210\u5171\u4EAB\u8D26\u6237\u6388\u6743\u3002\u6388\u6743\u5B8C\u6210\u540E\uFF0C\u70B9\u51FB\u201C\u91CD\u65B0\u68C0\u67E5\u201D\u3002","source.recheck":"\u91CD\u65B0\u68C0\u67E5","source.provider":"\u6587\u6863\u6765\u6E90","source.chooseConnection":"\u9009\u62E9\u5DF2\u6388\u6743\u8FDE\u63A5","source.projectScope":"\u9879\u76EE","source.workspaceScope":"Assistant \u5DE5\u4F5C\u533A","source.recheckConnections":"\u91CD\u65B0\u68C0\u67E5\u8FDE\u63A5","source.searchHint":"\u6587\u6863\u8303\u56F4\u7531\u8BE5\u5171\u4EAB\u8FDE\u63A5\u7684\u6388\u6743\u8D26\u6237\u51B3\u5B9A\u3002\u7A7A\u67E5\u8BE2\u5217\u51FA\u4E91\u76D8\u6839\u76EE\u5F55\uFF1B\u5173\u952E\u8BCD\u641C\u7D22\u6700\u591A\u8FD4\u56DE\u524D 199 \u9879\u65B0\u7248\u6587\u6863\u3002","source.searchLabel":"\u641C\u7D22\u6765\u6E90\u6587\u6863","source.searchPlaceholder":"\u641C\u7D22\u6587\u6863\u6807\u9898","source.search":"\u641C\u7D22 / \u5217\u51FA","source.linkLabel":"\u98DE\u4E66\u6587\u6863\u94FE\u63A5","source.linkPlaceholder":"\u7C98\u8D34\u98DE\u4E66 /docx/ \u6216 /wiki/ \u94FE\u63A5","common.preview":"\u9884\u89C8","source.emptyPage":"\u672C\u9875\u6CA1\u6709\u53EF\u5BFC\u5165\u7684\u65B0\u7248\u6587\u6863\u3002\u53EF\u7EE7\u7EED\u7FFB\u9875\uFF0C\u6216\u7C98\u8D34\u6587\u6863\u94FE\u63A5\u3002","common.loadMore":"\u52A0\u8F7D\u66F4\u591A","source.openOriginal":"\u67E5\u770B\u539F\u6587","source.emptyText":"\uFF08\u6587\u6863\u6CA1\u6709\u53EF\u5BFC\u5165\u7684\u6587\u672C\uFF09","source.confirmation":"\u6211\u5DF2\u6838\u5BF9\u9884\u89C8\uFF0C\u540C\u610F\u5C06\u6B64\u6587\u672C\u526F\u672C\u5171\u4EAB\u7ED9\u9879\u76EE\u6210\u5458\u3002\u526F\u672C\u72EC\u7ACB\u4FDD\u5B58\uFF0C\u8FDC\u7AEF\u64A4\u6743\u4E0D\u4F1A\u81EA\u52A8\u5220\u9664\u526F\u672C\u3002","source.import":"\u5BFC\u5165\u6587\u672C\u526F\u672C","library.subpage":"\u5B50\u9875\u9762 \xB7 {{title}}","library.moreActions":"\u66F4\u591A\u64CD\u4F5C {{title}}","source.destination":"{{space}} / {{folder}}","source.originRevision":"{{provider}} \xB7 \u539F\u6587\u7248\u672C {{revision}}","source.importedAt":"\u5BFC\u5165\u65F6\u95F4\uFF1A{{date}}","source.id":"\u539F\u6587 ID\uFF1A{{id}}","source.previewMeta":"\u539F\u6587\u7248\u672C {{revision}} \xB7 \u76EE\u6807\uFF1A{{destination}}","source.connectionLabel":"{{provider}} \xB7 {{scope}}\u5171\u4EAB","source.disconnected":"{{label}} \xB7 \u672A\u8FDE\u63A5","materials.importWith":"\u4F7F\u7528 {{editor}} \u5BFC\u5165","materials.chooseArtifact":"\u9009\u62E9 {{title}}","materials.artifactVersion":"{{title}} \u7684\u7248\u672C","materials.selected":"\u5DF2\u9009\u62E9 {{count}} \u9879","materials.selected_one":"\u5DF2\u9009\u62E9 {{count}} \u9879","materials.selected_other":"\u5DF2\u9009\u62E9 {{count}} \u9879","common.pageNumber":"\u7B2C {{page}} \u9875","history.restoreTitle":"\u6062\u590D\u201C{{title}}\u201D\uFF1F","editor.people":"{{count}} \u4EBA\u5728\u7EBF\uFF1A{{names}}","common.workbench":"Workbench","materials.fileSize":"{{size}} KB","common.version":"v{{version}}","history.versionMeta":"{{date}} \xB7 v{{version}}","create.document":"\u521B\u5EFA\u6587\u6863","catalog.create":"\u65B0\u5EFA{{type}}","catalog.permissions":"\u5185\u5BB9\u5F52\u5C5E\u4E8E\u5F53\u524D\u9879\u76EE\uFF0C\u4E0E\u9879\u76EE\u6210\u5458\u5171\u4EAB\u3002","catalog.resource":"\u9879\u76EE\u8D44\u6E90","catalog.more":"\u52A0\u8F7D\u66F4\u591A\u8D44\u6E90","catalog.rename":"\u91CD\u547D\u540D","catalog.openWith":"\u6253\u5F00\u65B9\u5F0F","catalog.recycleDescription":"\u5C06\u201C{{title}}\u201D\u79FB\u5165\u56DE\u6536\u7AD9\uFF1F\u7F16\u8F91\u5C06\u505C\u6B62\uFF0C\u5DF2\u53D1\u5E03\u7684\u5206\u4EAB\u94FE\u63A5\u5C06\u64A4\u9500\uFF0C\u6E90\u6587\u4EF6\u4E0E\u7248\u672C\u4F1A\u4FDD\u7559\u3002","catalog.restoreDescription":"\u6062\u590D\u201C{{title}}\u201D\u5E76\u7EE7\u7EED\u7F16\u8F91\u3002\u4E4B\u524D\u7684\u5206\u4EAB\u94FE\u63A5\u4E0D\u4F1A\u81EA\u52A8\u91CD\u65B0\u53D1\u5E03\u3002","catalog.move":"\u79FB\u52A8\u5230\u6587\u4EF6\u5939","catalog.moveDescription":"\u8C03\u6574\u8D44\u6E90\u5728\u5F53\u524D\u7A7A\u95F4\u4E2D\u7684\u4F4D\u7F6E\uFF0C\u4FDD\u7559\u8D44\u6E90\u8EAB\u4EFD\u3001\u6E90\u6587\u4EF6\u5305\u548C\u5171\u4EAB\u94FE\u63A5\u3002","catalog.folderNotEmpty":"\u8BF7\u5148\u79FB\u51FA\u6B64\u6587\u4EF6\u5939\u4E2D\u7684\u8D44\u6E90\uFF0C\u518D\u56DE\u6536\u6587\u4EF6\u5939\u3002","knowledge.searchQuery":"\u68C0\u7D22\u5DF2\u7D22\u5F15\u5185\u5BB9","knowledge.searchAction":"\u641C\u7D22","catalog.editorDefaults":"\u9ED8\u8BA4\u7F16\u8F91\u5668","catalog.editorDefaultsDescription":"\u672C\u6B21\u6253\u5F00\u65B9\u5F0F\u4F18\u5148\uFF0C\u5176\u6B21\u4F9D\u6B21\u4F7F\u7528\u5185\u5BB9\u3001\u9879\u76EE\u3001\u7EC4\u7EC7\u7684\u9ED8\u8BA4\u7F16\u8F91\u5668\u3002\u53EA\u5141\u8BB8\u4F7F\u7528\u517C\u5BB9\u5F53\u524D\u6A21\u578B\u7684\u7F16\u8F91\u5668\u3002","catalog.defaultScope":"\u9002\u7528\u8303\u56F4","catalog.defaultEditor":"\u7F16\u8F91\u5668","catalog.inheritEditor":"\u7EE7\u627F\u9ED8\u8BA4\u8BBE\u7F6E","catalog.scope.resource":"\u5F53\u524D\u5185\u5BB9","catalog.scope.project":"\u5F53\u524D\u9879\u76EE\u7684\u6B64\u7C7B\u6A21\u578B","catalog.scope.organization":"\u5F53\u524D\u7EC4\u7EC7\u7684\u6B64\u7C7B\u6A21\u578B","catalog.unavailable":"\u5185\u5BB9\u63D0\u4F9B\u8005\u6682\u4E0D\u53EF\u7528","catalog.unavailableDescription":"\u9879\u76EE\u4E2D\u7684\u6E90\u6587\u4EF6\u4ECD\u88AB\u4FDD\u7559\u3002\u91CD\u65B0\u542F\u7528\u63D0\u4F9B\u8005\u540E\u53EF\u7EE7\u7EED\u7F16\u8F91\uFF0C\u4E5F\u53EF\u4EE5\u4E0B\u8F7D\u4FDD\u7559\u7684\u6E90\u5907\u4EFD\u3002\u5907\u4EFD\u53EF\u80FD\u65E9\u4E8E\u6700\u540E\u7684\u7F16\u8F91\u72B6\u6001\u3002","catalog.downloadBackup":"\u4E0B\u8F7D\u6E90\u5907\u4EFD","knowledge.pending":"\u5F85\u540C\u6B65","knowledge.processing":"\u7D22\u5F15\u4E2D","knowledge.ready":"\u5DF2\u5C31\u7EEA","knowledge.failed":"\u7D22\u5F15\u5931\u8D25","knowledge.failureNote":"\u7D22\u5F15\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u540C\u6B65\u91CD\u8BD5\u3002","catalog.duplicate":"\u521B\u5EFA\u526F\u672C","catalog.copyTitle":"{{title}} \xB7 \u526F\u672C","catalog.implementation":"\u521B\u5EFA\u5B9E\u73B0","catalog.startFrom":"\u521D\u59CB\u5185\u5BB9","catalog.blank":"\u7A7A\u767D\u6587\u6863","catalog.creationMode":"\u521B\u5EFA\u540E","catalog.editMyself":"\u81EA\u5DF1\u7F16\u8F91","catalog.withAssistant":"\u4EA4\u7ED9 Assistant \u751F\u6210","catalog.brief":"\u5E0C\u671B\u751F\u6210\u4EC0\u4E48\u5185\u5BB9\uFF1F","catalog.assistantNotice":"\u5C06\u9700\u6C42\u53D1\u9001\u7ED9\u5F53\u524D Assistant\uFF0C\u4F7F\u7528\u5176\u5DF2\u914D\u7F6E\u7684\u80FD\u529B\u548C\u6743\u9650\u3002","catalog.generate":"\u521B\u5EFA\u5E76\u53D1\u9001\u7ED9 Assistant","catalog.generatePrompt":"\u8BF7\u7F16\u8F91\u5F53\u524D\u9879\u76EE\u4E2D\u5DF2\u521B\u5EFA\u7684\u8D44\u6E90\u201C{{title}}\u201D\uFF08contentId\uFF1A{{contentId}}\uFF09\u3002\u5148\u8BFB\u53D6\u73B0\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5DF2\u914D\u7F6E\u7684\u7C7B\u578B\u5DE5\u5177\u7F16\u8F91\u3002\u4E0D\u8981\u53E6\u5EFA\u526F\u672C\u6216\u53D1\u5E03\u3002\u9700\u6C42\uFF1A{{prompt}}","library.listView":"\u5217\u8868\u89C6\u56FE","library.gridView":"\u7F51\u683C\u89C6\u56FE","library.state":"\u6743\u9650 / \u540C\u6B65","catalog.projectAccess":"\u9879\u76EE\u6210\u5458\u5171\u4EAB","catalog.readOnly":"\u53EA\u8BFB","catalog.synced":"\u6E90\u6587\u4EF6\u5DF2\u540C\u6B65","catalog.pending":"\u6E90\u6587\u4EF6\u540C\u6B65\u4E2D","catalog.failed":"\u6E90\u6587\u4EF6\u540C\u6B65\u5931\u8D25\uFF0C\u7B49\u5F85\u91CD\u8BD5","catalog.sourceRevision":"\u6E90\u6587\u4EF6\u7248\u672C\uFF1A{{revision}}","catalog.outlinePreview":"\u7ED3\u6784\u9884\u89C8"};var Be=Fg({en:Kk,"zh-Hans":Xk}),C=Be.t,it=()=>df(Be),yn=(e="")=>Wb(Be,e);var Zk="xpertai.remote_component",IN=I.object({channel:I.literal(Zk),protocolVersion:I.literal(1),type:I.string(),instanceId:I.string().optional(),scopeRevision:I.number().optional(),requestId:I.string().optional(),data:I.unknown(),result:I.unknown(),message:I.string().optional(),code:I.string().optional(),event:I.object({type:I.string(),data:I.object({revision:I.number().int().nonnegative().optional()}).optional()}).optional(),locale:I.string().optional(),theme:I.object({mode:I.enum(["light","dark"]).optional(),tokens:I.record(I.string()).optional()}).optional()}).passthrough(),aa=null,bN=0,wn=new Map;function rv(e,t={}){window.parent.postMessage({channel:Zk,protocolVersion:1,...aa,type:e,...t},"*")}function Qk(e){let t,a,r=!1,o=0,n,s=()=>{r||(rv("ready"),++o<60&&(n=setTimeout(s,1e3)))},i=()=>{for(let u of wn.values())clearTimeout(u.timer),u.reject(new DOMException(C("bridge.contextChanged"),"AbortError"));wn.clear()},l=u=>{if(u.source!==window.parent)return;let c=IN.safeParse(u.data);if(!c.success)return;let d=c.data;if(d.type==="init"){if(!d.instanceId)return;r=!0,clearTimeout(n),Be.setLocale(d.locale);let h=!aa||d.instanceId!==aa.instanceId||d.scopeRevision!==aa.scopeRevision;h&&(i(),aa={instanceId:d.instanceId,scopeRevision:d.scopeRevision});let v=d.theme?.tokens??{};document.documentElement.classList.toggle("dark",d.theme?.mode==="dark");for(let[m,p]of Object.entries(v)){let g=m.startsWith("--xui-")?m:"--xui-"+m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase());document.documentElement.style.setProperty(g,p)}Nf();let x={colorBackground:"--background",colorForeground:"--foreground",colorBorder:"--border",colorMuted:"--muted",colorMutedForeground:"--muted-foreground",colorSecondary:"--secondary",colorPrimary:"--ring"};for(let[m,p]of Object.entries(x))v[m]&&document.documentElement.style.setProperty(p,v[m]);document.documentElement.style.colorScheme=d.theme?.mode??"light";let w=JSON.stringify(d.initialQuery);a=d.initialQuery,(h||w!==t)&&(t=w,e(d.initialQuery)),rv("resize",{height:window.innerHeight,viewportBound:!0});return}if(aa&&d.instanceId===aa.instanceId&&d.type==="hostEvent"&&d.event?.type==="view.context.changed"){let h=d.event.data?.revision;h!==void 0&&h>(aa.scopeRevision??-1)&&(i(),aa={...aa,scopeRevision:h},e(a));return}if(d.instanceId!==aa?.instanceId||d.scopeRevision!==aa?.scopeRevision&&d.type!=="error"||!d.requestId)return;let f=wn.get(d.requestId);f&&(clearTimeout(f.timer),wn.delete(d.requestId),d.type==="error"?f.reject(new Error(d.message??d.code??C("bridge.requestFailed"))):f.resolve(d.data??d.result))};return window.addEventListener("message",l),s(),()=>{r=!0,clearTimeout(n),window.removeEventListener("message",l);for(let u of wn.values())clearTimeout(u.timer),u.reject(Be.error("bridge.closed"));wn.clear(),aa=null}}function el(e,t){if(!aa)return Promise.reject(Be.error("bridge.notConnected"));let a=`spaces-${++bN}`;return new Promise((r,o)=>{let n=setTimeout(()=>{wn.delete(a),o(Be.error("bridge.timeout"))},12e4);wn.set(a,{resolve:r,reject:o,timer:n}),rv(e,{requestId:a,...t})})}var Yk=e=>el("requestData",{query:e});async function Ee(e,t){let a=I.object({success:I.boolean(),data:I.unknown(),message:I.string().optional()}).parse(await el("executeAction",{actionKey:e,input:t}));if(!a.success)throw new Error(a.message??C("common.actionFailed"));return a.data}async function Jk(e,t,a="file.upload"){let r=I.object({success:I.boolean(),data:I.unknown()}).parse(await el("executeFileAction",{actionKey:a,input:e,file:{name:t.name,type:t.type,size:t.size,buffer:await t.arrayBuffer()}}));if(!r.success)throw Be.error("bridge.uploadFailed");return r.data}async function e0(e){let t=I.object({url:I.string(),fileName:I.string()}).parse(await el("requestFileAccess",{fileKey:e,purpose:"download"})),a=document.createElement("a");return a.href=t.url,a.download=t.fileName,a.rel="noopener",document.body.append(a),a.click(),a.remove(),t}var Tu=e=>el("invokeClientCommand",{commandKey:"assistant.context.set",payload:e});async function tl(e,t,a){let r=aa,o=await ov("workbench.content.resolve",{resourceId:e,...t?{providerKey:t}:{},...a?{editorKey:a}:{}});if(r!==aa)throw new DOMException(C("bridge.contextChanged"),"AbortError");let{navigation:n}=I.object({navigation:I.object({target:I.literal("workbench.view"),viewKey:I.string().min(1),selectionId:t==="platform.content.catalog"?I.string().min(1):I.literal(e),parameters:I.record(I.unknown()).optional()})}).parse(o);return ov("workbench.navigation.open",n)}async function ov(e,t){let a=await el("invokeClientCommand",{commandKey:e,payload:t}),r=I.object({success:I.boolean(),message:I.string().optional(),code:I.string().optional()}).parse(a);if(!r.success)throw new Error(r.message??r.code??C("bridge.editorUnavailable"));return a}var t0=(e,t)=>ov("assistant.chat.send_message",{text:e,clientMessageId:t});var Sr=F(fe(),1);function a0({item:e,onClose:t,run:a,busy:r}){return it(),(0,Sr.jsx)(mt,{open:!0,onOpenChange:t,children:(0,Sr.jsxs)(ht,{children:[(0,Sr.jsxs)(gt,{children:[(0,Sr.jsx)(vt,{children:C("catalog.unavailable")}),(0,Sr.jsx)(xt,{children:C("catalog.unavailableDescription")})]}),(0,Sr.jsx)("p",{children:e.title}),(0,Sr.jsxs)(Ot,{children:[(0,Sr.jsx)(G,{variant:"outline",onClick:t,children:C("common.cancel")}),(0,Sr.jsx)(G,{disabled:r,onClick:()=>{a(async()=>{let o=I.object({fileName:I.string(),content:I.string()}).parse(await Ee("catalog.backup",{contentId:e.id})),n=URL.createObjectURL(new Blob([o.content],{type:"application/json"})),s=document.createElement("a");s.href=n,s.download=o.fileName,s.click(),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)})},children:C("catalog.downloadBackup")})]})]})})}var al=F(ee(),1);var nt=F(fe(),1),kN=I.array(I.object({scope:I.enum(["resource","project","organization"]),editorKey:I.string().nullable(),revision:I.number(),canSet:I.boolean()}));function r0({item:e,onClose:t,run:a,busy:r}){it();let[o,n]=(0,al.useState)([]),[s,i]=(0,al.useState)("resource"),[l,u]=(0,al.useState)("inherit"),c=o.find(d=>d.scope===s);return(0,al.useEffect)(()=>{a(async()=>{let d=kN.parse(await Ee("catalog.preferences",{contentId:e.id}));n(d),u(d[0]?.editorKey??"inherit")})},[e.id]),(0,nt.jsx)(mt,{open:!0,onOpenChange:t,children:(0,nt.jsxs)(ht,{children:[(0,nt.jsxs)(gt,{children:[(0,nt.jsx)(vt,{children:C("catalog.editorDefaults")}),(0,nt.jsx)(xt,{children:C("catalog.editorDefaultsDescription")})]}),(0,nt.jsx)(wt,{children:C("catalog.defaultScope")}),(0,nt.jsxs)(ba,{value:s,onValueChange:d=>{i(d),u(o.find(f=>f.scope===d)?.editorKey??"inherit")},children:[(0,nt.jsx)(Ra,{children:(0,nt.jsx)(ka,{})}),(0,nt.jsx)(Pa,{children:o.map(d=>(0,nt.jsx)(Pt,{value:d.scope,children:C(`catalog.scope.${d.scope}`)},d.scope))})]}),(0,nt.jsx)(wt,{children:C("catalog.defaultEditor")}),(0,nt.jsxs)(ba,{value:l,onValueChange:u,disabled:!c?.canSet,children:[(0,nt.jsx)(Ra,{children:(0,nt.jsx)(ka,{})}),(0,nt.jsxs)(Pa,{children:[(0,nt.jsx)(Pt,{value:"inherit",children:C("catalog.inheritEditor")}),e.compatibleEditors?.map(d=>(0,nt.jsx)(Pt,{value:d.key,children:d.title},d.key))]})]}),(0,nt.jsxs)(Ot,{children:[(0,nt.jsx)(G,{variant:"outline",onClick:t,children:C("common.cancel")}),(0,nt.jsx)(G,{disabled:r||!c?.canSet,onClick:()=>{a(async()=>{await Ee("catalog.preference.set",{contentId:e.id,scope:s,editorKey:l==="inherit"?null:l,expectedRevision:c.revision}),t()})},children:C("common.save")})]})]})})}var Df=F(ee(),1);var Mu=F(ee(),1);var To=I.object({importOrigin:I.object({provider:I.string(),documentId:I.string(),url:I.string().nullable(),revision:I.string(),importedAt:I.string(),warnings:I.array(I.string())}).nullable().optional(),canWrite:I.boolean().optional(),sourceSync:I.object({status:I.enum(["synced","pending","failed"]),revision:I.string().optional()}).optional(),preview:I.object({kind:I.literal("outline"),revision:I.string(),lines:I.array(I.string())}).optional(),resourceRevision:I.string().optional(),allowedActions:I.array(I.string()).optional(),availability:I.enum(["available","provider-unavailable"]).optional(),resourceTypeId:I.string().optional(),compatibleEditors:I.array(I.object({key:I.string(),title:I.string()})).optional(),id:I.string(),spaceId:I.string().optional(),parentId:I.string().nullable().optional(),parentPageId:I.string().nullable().optional(),editorKey:I.string().nullable().optional(),title:I.string(),kind:I.string().optional(),version:I.number(),role:I.string().optional(),deleted:I.boolean().optional(),filePath:I.string().nullable().optional(),updatedAt:I.string().optional(),syncStatus:I.string().optional(),knowledgebaseId:I.string().nullable().optional()}),o0=I.object({meta:I.object({root:To,items:I.array(To),role:I.string(),canWrite:I.boolean(),canManage:I.boolean(),project:I.object({id:I.string(),title:I.string()})})}),RN=I.object({id:I.string(),status:I.string(),patch:I.object({before:I.string(),after:I.string(),reason:I.string()})}),PN=I.object({id:I.string(),body:I.string(),resolved:I.boolean()}),n0=I.object({id:I.string(),sequence:I.number(),label:I.string(),createdAt:I.string().optional()}),DN=n0.extend({markdown:I.string(),blocks:I.array(I.object({id:I.string(),kind:I.string(),text:I.string()}))}),Lr=e=>{if(e instanceof Error&&e.name==="AbortError")return"";let t=e instanceof Error?e.message:C("error.retry");return/folder_contains_resources/u.test(t)?Be.message("catalog.folderNotEmpty"):/conflict|sources_changed|file.changed/iu.test(t)?Be.message("error.conflict"):/denied|Forbidden|403/u.test(t)?Be.message("error.denied"):/ai_timeout|aborted|timeout/iu.test(t)?Be.message("error.timeout"):/model|copilot/iu.test(t)?Be.message("error.model"):e instanceof Error?e:Be.message("error.retry")},s0=e=>({page:C("kind.page"),folder:C("kind.folder"),file:C("kind.file"),artifact:C("kind.artifact")})[e??"file"]??C("kind.file"),rl=e=>e?Be.date(e,{month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"";var we=F(fe(),1),TN=()=>[{title:C("templates.project.title"),description:C("templates.project.description"),content:C("templates.project.content")},{title:C("templates.meeting.title"),description:C("templates.meeting.description"),content:C("templates.meeting.content")},{title:C("templates.weekly.title"),description:C("templates.weekly.description"),content:C("templates.weekly.content")}];function ks({items:e,value:t,onChange:a,disabled:r}){return it(),(0,we.jsxs)("div",{className:"form-field",children:[(0,we.jsx)(wt,{htmlFor:"folder-location",children:C("folder.location")}),(0,we.jsxs)(ba,{disabled:r,value:t||"root",onValueChange:o=>a(o==="root"?"":o),children:[(0,we.jsx)(Ra,{id:"folder-location",className:"w-full",children:(0,we.jsx)(ka,{})}),(0,we.jsxs)(Pa,{position:"popper",children:[(0,we.jsx)(Pt,{value:"root",children:C("folder.root")}),e.filter(o=>o.kind==="folder"&&!o.deleted).map(o=>(0,we.jsx)(Pt,{value:o.id,children:o.filePath??o.title},o.id))]})]})]})}function i0({root:e,items:t,initialParent:a,kind:r,editors:o,editing:n,onClose:s,onDone:i,run:l,busy:u}){it();let c=TN(),[d,f]=(0,Mu.useState)(0),[h,v]=(0,Mu.useState)(!1),[x,w]=(0,Mu.useState)(n?.title??""),[m,p]=(0,Mu.useState)(n?.parentId??a),g=r==="page"&&!n;return(0,we.jsx)(mt,{open:!0,onOpenChange:y=>{y||s()},children:(0,we.jsxs)(ht,{className:g?"space-dialog template-dialog":"space-dialog",children:[(0,we.jsxs)(gt,{children:[(0,we.jsx)(vt,{children:n?C("create.renameMove"):g?C("create.page"):r==="folder"?C("create.folder"):C("create.document")}),(0,we.jsx)(xt,{children:g?C("create.pageDescription"):C("library.storageNote")})]}),g&&(0,we.jsxs)(yf,{value:h?"blank":"templates",onValueChange:y=>v(y==="blank"),children:[(0,we.jsxs)(wf,{"aria-label":C("create.startingPoint"),children:[(0,we.jsx)(qi,{value:"templates",children:C("create.templates")}),(0,we.jsx)(qi,{value:"blank",children:C("create.blank")})]}),(0,we.jsx)(Wi,{value:"templates",children:(0,we.jsx)("div",{className:"template-grid",children:c.map((y,L)=>(0,we.jsxs)(G,{type:"button",variant:d===L?"secondary":"outline",className:"template-option","aria-pressed":d===L,onClick:()=>{f(L),x||w(y.title)},children:[(0,we.jsxs)("div",{className:`template-paper ${d===L?"chosen":""}`,children:[d===L&&(0,we.jsx)(Qr,{className:"template-check"}),(0,we.jsx)("strong",{children:y.title}),y.content.split(`
|
|
166
|
+
|
|
167
|
+
`).slice(0,6).map((b,R)=>b.startsWith("## ")?(0,we.jsx)("h4",{children:b.slice(3)},R):(0,we.jsx)("p",{children:b},R))]}),(0,we.jsx)("h3",{children:y.title}),(0,we.jsx)("p",{children:y.description})]},y.title))})}),(0,we.jsx)(Wi,{value:"blank",children:(0,we.jsx)("p",{className:"muted",children:C("create.blankDescription")})})]}),(0,we.jsxs)("form",{className:"create-form",onSubmit:y=>{y.preventDefault(),l(async()=>{let L=o.find(R=>R.key===r),b=n?await Ee("item.edit",{itemId:n.id,expectedVersion:n.version,title:x,parentId:m||null}):await Ee(L?"editor.create":"item.create",{spaceId:e.id,parentId:m||null,title:x,...L?{editorKey:L.key}:{kind:r,...g?{content:h?"":c[d].content}:{}}});await i(To.parse(b)),s()})},children:[(0,we.jsxs)("div",{className:"form-columns",children:[(0,we.jsxs)(wt,{children:[g?C("create.pageName"):C("common.name"),(0,we.jsx)(qt,{required:!0,autoFocus:!0,maxLength:200,value:x,onChange:y=>w(y.target.value),placeholder:C("create.namePlaceholder")})]}),(0,we.jsx)(ks,{items:t.filter(y=>y.id!==n?.id),value:m,onChange:p})]}),(0,we.jsxs)(Ot,{children:[(0,we.jsxs)("span",{className:"muted mr-auto flex items-center gap-2",children:[(0,we.jsx)(eo,{}),C("create.permissions")]}),(0,we.jsx)(G,{type:"button",variant:"outline",onClick:s,children:C("common.cancel")}),(0,we.jsx)(G,{disabled:u,children:n?C("common.save"):g?C("create.createPage"):C("common.create")})]})]})]})})}var Mo=F(ee(),1);var xe=F(fe(),1);function nv({implementation:e,implementations:t,items:a,initialParent:r,onClose:o,onDone:n,run:s,busy:i}){let l=Rf(),u=t.filter(_=>_.typeId===e.typeId),c=_=>`${_.providerKey}/${_.implementationKey}`,[d,f]=(0,Mo.useState)(c(e)),[h,v]=(0,Mo.useState)("blank"),x=u.find(_=>c(_)===d)??e,[w,m]=(0,Mo.useState)("create"),[p,g]=(0,Mo.useState)(""),[y,L]=(0,Mo.useState)(r??""),[b,R]=(0,Mo.useState)(""),[k,M]=(0,Mo.useState)(()=>crypto.randomUUID()),[E,O]=(0,Mo.useState)(null),T=()=>{M(crypto.randomUUID()),O(null)};return(0,xe.jsx)(mt,{open:!0,onOpenChange:_=>{!_&&!i&&o()},children:(0,xe.jsxs)(ht,{children:[(0,xe.jsxs)(gt,{children:[(0,xe.jsx)(vt,{children:C("catalog.create",{type:l(x.title)})}),(0,xe.jsx)(xt,{children:C("catalog.permissions")})]}),(0,xe.jsxs)("form",{className:"grid gap-4",onSubmit:_=>{_.preventDefault(),s(async()=>{let A=E;A||(A=kf.parse(await Ee("catalog.create",{providerKey:x.providerKey,implementationKey:x.implementationKey,requestId:k,title:b,parentId:y||null,...h!=="blank"?{templateId:h}:{}})).contentId,O(A)),await n(),w==="assistant"?(await Tu({key:"spaces.creation",context:{contentId:A,title:b,typeId:x.typeId}}),await Rs(A),await t0(C("catalog.generatePrompt",{title:b,contentId:A,prompt:p}),k)):await Rs(A),o()})},children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{htmlFor:"resource-title",children:C("common.name")}),(0,xe.jsx)(qt,{id:"resource-title",disabled:i,required:!0,maxLength:160,value:b,onChange:_=>{T(),R(_.target.value)}})]}),u.length>1&&(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{children:C("catalog.implementation")}),(0,xe.jsxs)(ba,{disabled:i,value:d,onValueChange:_=>{T(),f(_),v("blank")},children:[(0,xe.jsx)(Ra,{"aria-label":C("catalog.implementation"),children:(0,xe.jsx)(ka,{})}),(0,xe.jsx)(Pa,{children:u.map(_=>(0,xe.jsx)(Pt,{value:c(_),children:l(_.implementationTitle)},c(_)))})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{children:C("catalog.startFrom")}),(0,xe.jsxs)(ba,{disabled:i,value:h,onValueChange:_=>{T(),v(_)},children:[(0,xe.jsx)(Ra,{"aria-label":C("catalog.startFrom"),children:(0,xe.jsx)(ka,{})}),(0,xe.jsxs)(Pa,{children:[(0,xe.jsx)(Pt,{value:"blank",children:C("catalog.blank")}),x.templates?.map(_=>(0,xe.jsx)(Pt,{value:_.id,children:l(_.title)},_.id))]})]}),x.templates?.find(_=>_.id===h)?.description&&(0,xe.jsx)("p",{children:l(x.templates.find(_=>_.id===h).description)})]}),(0,xe.jsx)(ks,{disabled:i,items:a,value:y,onChange:_=>{T(),L(_)}}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{children:C("catalog.creationMode")}),(0,xe.jsxs)(ba,{disabled:i,value:w,onValueChange:m,children:[(0,xe.jsx)(Ra,{"aria-label":C("catalog.creationMode"),children:(0,xe.jsx)(ka,{})}),(0,xe.jsxs)(Pa,{children:[(0,xe.jsx)(Pt,{value:"create",children:C("catalog.editMyself")}),(0,xe.jsx)(Pt,{value:"assistant",children:C("catalog.withAssistant")})]})]})]}),w==="assistant"&&(0,xe.jsxs)("div",{children:[(0,xe.jsx)(wt,{htmlFor:"creation-brief",children:C("catalog.brief")}),(0,xe.jsx)(Qg,{id:"creation-brief",disabled:i,required:!0,maxLength:4e3,value:p,onChange:_=>g(_.target.value)}),(0,xe.jsx)("p",{children:C("catalog.assistantNotice")})]}),(0,xe.jsxs)(Ot,{children:[(0,xe.jsx)(G,{type:"button",variant:"outline",disabled:i,onClick:o,children:C("common.cancel")}),(0,xe.jsx)(G,{disabled:i||!b.trim()||w==="assistant"&&!p.trim(),children:w==="assistant"?C("catalog.generate"):C("common.create")})]})]})]})})}var je=F(fe(),1),Pf=I.object({en_US:I.string(),zh_Hans:I.string().optional(),zh_Hant:I.string().optional()}),l0=I.object({typeId:I.string(),title:Pf,providerKey:I.string(),implementationKey:I.string(),implementationTitle:Pf,templates:I.array(I.object({id:I.string(),title:Pf,description:Pf.optional()})).optional()}),kf=I.object({contentId:I.string(),sourceSync:To.shape.sourceSync,preview:To.shape.preview,availability:To.shape.availability,parentId:I.string().nullable().optional(),placementVersion:I.number().optional(),canWrite:I.boolean(),title:I.string(),typeId:I.string(),revision:I.string(),updatedAt:I.string(),deleted:I.boolean(),defaultEditorKey:I.string(),allowedActions:I.array(I.string()),compatibleEditors:To.shape.compatibleEditors}),sv=I.object({items:I.array(kf),hasMore:I.boolean()});function Rf(){return it(),e=>Be.label({...e})}function iv(e){return{id:e.contentId,sourceSync:e.sourceSync,preview:e.preview,availability:e.availability,title:e.title,kind:"resource",version:e.placementVersion??0,parentId:e.parentId??null,canWrite:e.canWrite,editorKey:e.defaultEditorKey,updatedAt:e.updatedAt,deleted:e.deleted,resourceTypeId:e.typeId,resourceRevision:e.revision,allowedActions:e.allowedActions,compatibleEditors:e.compatibleEditors}}var Rs=(e,t)=>tl(e,"platform.content.catalog",t);function lv({item:e,duplicate:t=!1,onClose:a,onDone:r,run:o,busy:n}){let[s,i]=(0,Df.useState)(t?C("catalog.copyTitle",{title:e.title}):e.title),[l]=(0,Df.useState)(()=>crypto.randomUUID());return(0,je.jsx)(mt,{open:!0,onOpenChange:u=>{!u&&!n&&a()},children:(0,je.jsxs)(ht,{children:[(0,je.jsxs)(gt,{children:[(0,je.jsx)(vt,{children:t?C("catalog.duplicate"):C("catalog.rename")}),(0,je.jsx)(xt,{children:C("catalog.permissions")})]}),(0,je.jsxs)("form",{onSubmit:u=>{u.preventDefault(),o(async()=>{let c=await Ee(t?"catalog.duplicate":"catalog.rename",{contentId:e.id,expectedRevision:e.resourceRevision,title:s,...t?{requestId:l,parentId:e.parentId??null}:{}});await r(),a(),t&&await Rs(kf.parse(c).contentId)})},children:[(0,je.jsx)(wt,{htmlFor:"rename-resource",children:C("common.name")}),(0,je.jsx)(qt,{id:"rename-resource",required:!0,maxLength:200,value:s,onChange:u=>i(u.target.value)}),(0,je.jsxs)(Ot,{className:"mt-4",children:[(0,je.jsx)(G,{type:"button",variant:"outline",disabled:n,onClick:a,children:C("common.cancel")}),(0,je.jsx)(G,{disabled:n||!s.trim(),children:C("common.save")})]})]})]})})}function u0({item:e,operation:t,onClose:a,onDone:r,run:o,busy:n}){return(0,je.jsx)(mt,{open:!0,onOpenChange:s=>{!s&&!n&&a()},children:(0,je.jsxs)(ht,{children:[(0,je.jsxs)(gt,{children:[(0,je.jsx)(vt,{children:t==="trash"?C("trash.move"):C("trash.restore")}),(0,je.jsx)(xt,{children:t==="trash"?C("catalog.recycleDescription",{title:e.title}):C("catalog.restoreDescription",{title:e.title})})]}),(0,je.jsxs)(Ot,{children:[(0,je.jsx)(G,{variant:"outline",disabled:n,onClick:a,children:C("common.cancel")}),(0,je.jsx)(G,{variant:t==="trash"?"destructive":"default",disabled:n,onClick:()=>{o(async()=>{await Ee("catalog.lifecycle",{contentId:e.id,expectedRevision:e.resourceRevision,action:t}),await r(),a()})},children:t==="trash"?C("trash.move"):C("trash.restore")})]})]})})}function d0({item:e,items:t,onClose:a,onDone:r,run:o,busy:n}){let[s,i]=(0,Df.useState)(e.parentId??"");return(0,je.jsx)(mt,{open:!0,onOpenChange:l=>{!l&&!n&&a()},children:(0,je.jsxs)(ht,{children:[(0,je.jsxs)(gt,{children:[(0,je.jsx)(vt,{children:C("catalog.move")}),(0,je.jsx)(xt,{children:C("catalog.moveDescription")})]}),(0,je.jsx)(ks,{items:t,value:s,onChange:i}),(0,je.jsxs)(Ot,{children:[(0,je.jsx)(G,{variant:"outline",disabled:n,onClick:a,children:C("common.cancel")}),(0,je.jsx)(G,{disabled:n,onClick:()=>{o(async()=>{await Ee("catalog.move",{contentId:e.id,parentId:s||null,expectedVersion:e.version}),await r(),a()})},children:C("common.save")})]})]})})}var Nt=F(ee(),1);var ce=F(fe(),1),MN=I.object({items:I.array(I.object({bindingId:I.string(),provider:I.string(),available:I.boolean(),status:I.string(),label:I.union([I.string(),I.record(I.string())]),scope:I.object({type:I.enum(["workspace","project"])})}))}),_N=I.object({items:I.array(I.object({id:I.string(),title:I.string(),url:I.string().nullable()})),nextCursor:I.string().nullable()}),AN=I.object({id:I.string(),title:I.string(),url:I.string().nullable(),revision:I.string(),contentHash:I.string(),provider:I.string(),format:I.literal("text/plain"),content:I.string(),warnings:I.array(I.string())}),Tf=e=>{let t=e instanceof Error?e.message:"";return/unsupported_locator/u.test(t)?Be.message("source.error.locator"):/unsupported_document_type/u.test(t)?Be.message("source.error.type"):/source_access_denied/u.test(t)?Be.message("source.error.access"):/provider_rejected|connection_required|request_failed/u.test(t)?Be.message("source.error.connection"):/source_changed/u.test(t)?Be.message("source.error.changed"):/too_large/u.test(t)?Be.message("source.error.size"):Lr(e)};function c0({spaceId:e,parentId:t,destination:a,onClose:r,onDone:o,returnFocus:n}){it();let s=j=>{let Re=C("source.connectionLabel",{provider:Be.label(j.label,j.provider),scope:j.scope.type==="project"?C("source.projectScope"):C("source.workspaceScope")});return j.available?Re:C("source.disconnected",{label:Re})},[i,l]=(0,Nt.useState)([]),[u,c]=(0,Nt.useState)(""),[d,f]=(0,Nt.useState)(""),[h,v]=(0,Nt.useState)(""),[x,w]=(0,Nt.useState)(""),[m,p]=(0,Nt.useState)([]),[g,y]=(0,Nt.useState)(null),[L,b]=(0,Nt.useState)(!1),[R,k]=(0,Nt.useState)(null),[M,E]=(0,Nt.useState)(!1),[O,T]=(0,Nt.useState)(!0),[_,A]=yn(""),[N,z]=(0,Nt.useState)(!1),H=(0,Nt.useRef)(crypto.randomUUID()),V=(0,Nt.useRef)(!0);async function ae(){T(!0),A("");try{let j=MN.parse(await Ee("source.list",{}));V.current&&(l(j.items),c(j.items.find(Re=>Re.available)?.bindingId??""),z(!0))}catch(j){V.current&&A(Tf(j))}finally{V.current&&T(!1)}}(0,Nt.useEffect)(()=>(V.current=!0,ae(),()=>{V.current=!1}),[]);function D(){k(null),E(!1),H.current=crypto.randomUUID()}async function ge(j=!1){T(!0),A(""),D();try{let Re=j?h:d,Pe=_N.parse(await Ee("source.search",{bindingId:u,query:Re,...j&&g?{cursor:g}:{},pageSize:25}));V.current&&(p(Se=>j?[...new Map([...Se,...Pe.items].map(qe=>[qe.id,qe])).values()]:Pe.items),y(Pe.nextCursor),v(Re),b(!0))}catch(Re){A(Tf(Re))}finally{T(!1)}}async function ve(j){w(j),D(),T(!0),A("");try{let Re=AN.parse(await Ee("source.preview",{bindingId:u,locator:j}));V.current&&k(Re)}catch(Re){A(Tf(Re))}finally{T(!1)}}return(0,ce.jsx)(mt,{open:!0,onOpenChange:j=>{!j&&!O&&r()},children:(0,ce.jsxs)(ht,{className:"space-dialog max-h-[85vh] overflow-y-auto",onCloseAutoFocus:j=>{j.preventDefault(),n()},children:[(0,ce.jsxs)(gt,{children:[(0,ce.jsx)(vt,{children:C("source.title")}),(0,ce.jsx)(xt,{children:C("source.description")})]}),_&&(0,ce.jsx)("p",{role:"alert",children:_}),!N&&!O&&(0,ce.jsx)(G,{variant:"outline",onClick:()=>{ae()},children:C("source.retryConnections")}),N&&!i.length?(0,ce.jsxs)("div",{children:[(0,ce.jsx)("p",{children:C("source.noConnections")}),(0,ce.jsx)("p",{className:"muted",children:C("source.setupHint")}),(0,ce.jsx)(G,{variant:"outline",disabled:O,onClick:()=>{ae()},children:C("source.recheck")})]}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)("div",{className:"form-field",children:[(0,ce.jsx)(wt,{htmlFor:"document-source",children:C("source.provider")}),(0,ce.jsxs)(ba,{value:u,disabled:O,onValueChange:j=>{c(j),p([]),y(null),b(!1),w(""),D()},children:[(0,ce.jsx)(Ra,{id:"document-source",className:"w-full",children:(0,ce.jsx)(ka,{placeholder:C("source.chooseConnection")})}),(0,ce.jsx)(Pa,{position:"popper",children:i.map(j=>(0,ce.jsx)(Pt,{value:j.bindingId,disabled:!j.available,children:s(j)},j.bindingId))})]})]}),(0,ce.jsx)(G,{variant:"outline",disabled:O,onClick:()=>{D(),p([]),y(null),b(!1),ae()},children:C("source.recheckConnections")}),(0,ce.jsx)("p",{className:"muted text-sm",children:C("source.searchHint")}),(0,ce.jsxs)("form",{className:"flex gap-2",onSubmit:j=>{j.preventDefault(),ge()},children:[(0,ce.jsx)(qt,{"aria-label":C("source.searchLabel"),value:d,maxLength:200,onChange:j=>f(j.target.value),placeholder:C("source.searchPlaceholder"),disabled:O}),(0,ce.jsx)(G,{disabled:O||!u,children:C("source.search")})]}),(0,ce.jsxs)("div",{className:"flex gap-2",children:[(0,ce.jsx)(qt,{"aria-label":C("source.linkLabel"),value:x,onChange:j=>{w(j.target.value),D()},placeholder:C("source.linkPlaceholder"),disabled:O}),(0,ce.jsx)(G,{variant:"outline",disabled:O||!u||!x.trim(),onClick:()=>{ve(x.trim())},children:C("common.preview")})]}),!!m.length&&(0,ce.jsx)("ul",{className:"max-h-48 overflow-y-auto",children:m.map(j=>(0,ce.jsx)("li",{children:(0,ce.jsx)(G,{className:"max-w-full justify-start truncate",variant:"ghost",disabled:O,onClick:()=>{ve(j.url??j.id)},children:j.title})},j.id))}),L&&!m.length&&(0,ce.jsx)("p",{className:"muted",children:C("source.emptyPage")}),g&&(0,ce.jsx)(G,{variant:"outline",disabled:O,onClick:()=>{ge(!0)},children:C("common.loadMore")}),R&&(0,ce.jsxs)("section",{className:"space-y-3",children:[(0,ce.jsx)("h3",{children:R.title}),(0,ce.jsx)("p",{className:"muted text-sm",children:C("source.previewMeta",{revision:R.revision,destination:a})}),R.url&&(0,ce.jsx)("a",{href:R.url,target:"_blank",rel:"noopener noreferrer",className:"underline",children:C("source.openOriginal")}),R.warnings.map(j=>(0,ce.jsx)("p",{role:"note",children:j},j)),(0,ce.jsx)("pre",{className:"max-h-56 overflow-auto whitespace-pre-wrap rounded border p-3 text-sm",children:R.content||C("source.emptyText")}),(0,ce.jsxs)("div",{className:"confirmation-field",children:[(0,ce.jsx)(hf,{id:"confirm-source-import",disabled:O,checked:M,onCheckedChange:j=>E(j===!0)}),(0,ce.jsx)(wt,{htmlFor:"confirm-source-import",children:C("source.confirmation")})]})]})]}),(0,ce.jsxs)(Ot,{children:[(0,ce.jsx)(G,{variant:"outline",disabled:O,onClick:r,children:C("common.cancel")}),(0,ce.jsx)(G,{disabled:O||!R||!M,onClick:()=>{R&&(T(!0),A(""),Ee("source.import",{bindingId:u,locator:x,spaceId:e,parentId:t,requestId:H.current,expectedRevision:R.revision,expectedHash:R.contentHash,confirmed:!0}).then(async()=>{await o(),r()}).catch(j=>A(Tf(j))).finally(()=>T(!1)))},children:O?C("common.processing"):C("source.import")})]})]})})}var Ce=F(ee(),1),x0=F(p0(),1);var dv=F(ee(),1);var _u=F(fe(),1);function m0({fileKey:e,children:t,disabled:a,onError:r}){it();let[o,n]=(0,dv.useState)(!1),[s,i]=(0,dv.useState)(null);async function l(){n(!0);try{i({key:e,...await e0(e)})}catch(u){r(u)}finally{n(!1)}}return(0,_u.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-2",children:[(0,_u.jsx)(G,{variant:"outline",disabled:a||o,onClick:()=>{l()},children:o?C("download.preparing"):t}),s?.key===e&&(0,_u.jsx)("a",{className:"text-sm underline underline-offset-4",href:s.url,download:s.fileName,rel:"noopener",children:C("download.saveFile")})]})}var ha=F(ee(),1);var oe=F(fe(),1),EN=I.object({items:I.array(I.object({id:I.string(),title:I.string().nullable().optional(),versions:I.array(I.object({id:I.string(),version:I.number().optional(),fileName:I.string().nullable().optional()}))})),total:I.number()});function h0({root:e,items:t,parentId:a,editors:r,onClose:o,onDone:n,run:s,busy:i}){it();let l=(0,ha.useRef)(null),[u,c]=(0,ha.useState)("local"),[d,f]=(0,ha.useState)(a),[h,v]=(0,ha.useState)([]),[x,w]=(0,ha.useState)(""),[m,p]=(0,ha.useState)([]),[g,y]=(0,ha.useState)({}),[L,b]=(0,ha.useState)(""),[R,k]=yn(""),[M,E]=(0,ha.useState)(1),[O,T]=(0,ha.useState)(0),[_,A]=(0,ha.useState)(!1);return(0,ha.useEffect)(()=>{if(u!=="artifacts")return;let N=!0;return A(!0),k(""),Ee("artifact.list",{page:M}).then(z=>{let H=EN.parse(z);N&&(p(H.items),T(H.total))}).catch(z=>N&&k(Lr(z))).finally(()=>N&&A(!1)),()=>{N=!1}},[u,M]),(0,oe.jsx)(mt,{open:!0,onOpenChange:N=>{N||o()},children:(0,oe.jsxs)(ht,{className:"space-dialog materials-dialog",children:[(0,oe.jsxs)(gt,{children:[(0,oe.jsx)(vt,{children:C("materials.title")}),(0,oe.jsx)(xt,{children:C("materials.description")})]}),(0,oe.jsxs)(yf,{value:u,onValueChange:c,children:[(0,oe.jsxs)(wf,{"aria-label":C("materials.source"),children:[(0,oe.jsx)(qi,{value:"local",children:C("materials.local")}),(0,oe.jsx)(qi,{value:"artifacts",children:C("materials.assistantArtifacts")})]}),(0,oe.jsxs)(Wi,{value:"local",children:[(0,oe.jsxs)("div",{className:"upload-area",children:[(0,oe.jsx)(Bs,{}),(0,oe.jsx)("strong",{children:C("materials.chooseFiles")}),(0,oe.jsx)("span",{children:C("materials.fileLimit")}),(0,oe.jsx)(G,{variant:"outline",type:"button",onClick:()=>l.current?.click(),children:C("materials.chooseFiles")}),(0,oe.jsx)(qt,{ref:l,className:"hidden",type:"file",multiple:!0,onChange:N=>v(Array.from(N.target.files??[]))})]}),h.map(N=>(0,oe.jsxs)("p",{children:[N.name," ",(0,oe.jsx)("span",{className:"muted",children:C("materials.fileSize",{size:Be.number(Math.ceil(N.size/1024))})})]},N.name)),r.length>0&&(0,oe.jsxs)("div",{className:"form-field",children:[(0,oe.jsx)(wt,{htmlFor:"import-editor",children:C("materials.editor")}),(0,oe.jsxs)(ba,{value:x||"original",onValueChange:N=>w(N==="original"?"":N),children:[(0,oe.jsx)(Ra,{id:"import-editor",className:"w-full",children:(0,oe.jsx)(ka,{})}),(0,oe.jsxs)(Pa,{position:"popper",children:[(0,oe.jsx)(Pt,{value:"original",children:C("materials.keepOriginal")}),r.map(N=>(0,oe.jsx)(Pt,{value:N.key,children:C("materials.importWith",{editor:N.title})},N.key))]})]})]})]}),(0,oe.jsxs)(Wi,{value:"artifacts",children:[(0,oe.jsxs)("div",{className:"search-field",children:[(0,oe.jsx)(Ba,{}),(0,oe.jsx)(qt,{"aria-label":C("materials.search"),placeholder:C("materials.search"),value:L,onChange:N=>b(N.target.value)})]}),R&&(0,oe.jsx)("p",{role:"alert",children:R}),_&&(0,oe.jsx)("p",{role:"status",children:C("materials.loading")}),(0,oe.jsxs)("div",{className:"artifact-list",children:[m.filter(N=>(N.title??"").toLowerCase().includes(L.toLowerCase())).map(N=>(0,oe.jsxs)("div",{className:`artifact-option ${g[N.id]?"checked":""}`,children:[(0,oe.jsx)(hf,{"aria-label":C("materials.chooseArtifact",{title:N.title??C("materials.untitled")}),disabled:!N.versions.length,checked:!!g[N.id],onCheckedChange:z=>y(H=>{let V={...H};return z===!0?V[N.id]=N.versions[0].id:delete V[N.id],V})}),(0,oe.jsx)(ga,{}),(0,oe.jsxs)("span",{children:[(0,oe.jsx)("strong",{children:N.title??C("materials.untitled")}),(0,oe.jsx)("small",{children:N.versions[0]?.fileName??C("materials.noFileVersion")})]}),(0,oe.jsxs)(ba,{disabled:!N.versions.length,value:g[N.id]??N.versions[0]?.id??"",onValueChange:z=>y(H=>({...H,[N.id]:z})),children:[(0,oe.jsx)(Ra,{"aria-label":C("materials.artifactVersion",{title:N.title??C("materials.untitled")}),children:(0,oe.jsx)(ka,{placeholder:C("materials.noVersion")})}),(0,oe.jsx)(Pa,{position:"popper",children:N.versions.map((z,H)=>(0,oe.jsx)(Pt,{value:z.id,children:C("common.version",{version:z.version??N.versions.length-H})},z.id))})]})]},N.id)),!_&&!R&&!m.length&&(0,oe.jsx)("p",{className:"empty-message",children:C("materials.empty")})]}),O>40&&(0,oe.jsxs)("div",{className:"row",children:[(0,oe.jsx)(G,{variant:"outline",disabled:M===1,onClick:()=>E(M-1),children:C("common.previousPage")}),(0,oe.jsx)("span",{children:C("common.pageNumber",{page:M})}),(0,oe.jsx)(G,{variant:"outline",disabled:M*40>=O,onClick:()=>E(M+1),children:C("common.nextPage")})]}),(0,oe.jsxs)("p",{className:"muted inline-note",children:[(0,oe.jsx)(Jr,{}),C("materials.versionNote")]})]})]}),(0,oe.jsx)(ks,{items:t,value:d,onChange:f}),(0,oe.jsxs)(Ot,{children:[(0,oe.jsx)("span",{className:"muted mr-auto",children:C("materials.selected",{count:u==="local"?h.length:Object.keys(g).length})}),(0,oe.jsx)(G,{variant:"outline",onClick:o,children:C("common.cancel")}),(0,oe.jsx)(G,{disabled:i||!(u==="local"?h.length:Object.keys(g).length),onClick:()=>{s(async()=>{if(u==="local")for(let N of h)await Jk({spaceId:e.id,parentId:d||null,...x?{editorKey:x}:{}},N,x?"editor.import":"file.upload");else for(let[N,z]of Object.entries(g))await Ee("artifact.collect",{spaceId:e.id,parentId:d||null,artifactId:N,versionId:z});await n(),o()})},children:C("materials.add")})]})]})})}var cv=F(ee(),1);var Gr=F(fe(),1),ON=I.array(I.object({itemId:I.string(),contentId:I.string().optional(),title:I.string(),text:I.string(),anchor:I.object({kind:I.string(),id:I.string()}).optional()}));function g0({spaceId:e,run:t,busy:a}){it();let[r,o]=(0,cv.useState)(""),[n,s]=(0,cv.useState)(null);return(0,Gr.jsxs)("div",{className:"grid gap-2",children:[(0,Gr.jsxs)("form",{className:"flex gap-2",onSubmit:i=>{i.preventDefault(),t(async()=>s(ON.parse(await Ee("knowledge.search",{spaceId:e,query:r}))))},children:[(0,Gr.jsx)(qt,{"aria-label":C("knowledge.searchQuery"),placeholder:C("knowledge.searchQuery"),value:r,onChange:i=>o(i.target.value),required:!0,maxLength:200}),(0,Gr.jsx)(G,{disabled:a,children:C("knowledge.searchAction")})]}),n?.length===0&&(0,Gr.jsx)("p",{children:C("knowledge.noSources")}),n?.map((i,l)=>(0,Gr.jsxs)("div",{className:"grid gap-1",children:[(0,Gr.jsx)(G,{variant:"link",className:"justify-start",onClick:()=>{t(async()=>{await tl(i.contentId??i.itemId,i.contentId?"platform.content.catalog":"spaces")})},children:i.title}),(0,Gr.jsx)("p",{children:i.text.slice(0,360)})]},`${i.itemId}:${l}`))]})}var ol=F(ee(),1);var NN=F(fe(),1);var Dt=F(fe(),1);var FN=I.object({knowledgebaseId:I.string().nullable(),items:I.array(I.object({itemId:I.string(),title:I.string(),status:I.string(),error:I.string().nullable(),document:I.object({status:I.string().nullable().optional()}).nullable()}))}),zN={pending:"knowledge.pending",processing:"knowledge.processing",ready:"knowledge.ready",failed:"knowledge.failed"},BN=e=>C(zN[e]??"knowledge.pending");function v0({root:e,canWrite:t,canManage:a,run:r,busy:o}){it();let[n,s]=(0,ol.useState)(null),[i,l]=yn(""),u=(0,ol.useCallback)(async()=>s(FN.parse(await Ee("knowledge.status",{spaceId:e.id}))),[e.id]);return(0,ol.useEffect)(()=>{u().catch(c=>l(Lr(c)))},[u]),(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)("p",{className:"muted",children:C("knowledge.description")}),i&&(0,Dt.jsx)("p",{role:"alert",children:i}),n?.knowledgebaseId?(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)("p",{children:C("knowledge.linked")}),(0,Dt.jsxs)(G,{variant:"outline",disabled:!t||o,onClick:()=>{r(async()=>{await Ee("knowledge.refresh",{spaceId:e.id}),await u()})},children:[(0,Dt.jsx)(to,{}),C("knowledge.sync")]}),(0,Dt.jsx)(G,{variant:"ghost",onClick:()=>{r(u)},children:C("knowledge.refresh")})]}):(0,Dt.jsx)(G,{disabled:!a||o,onClick:()=>{r(async()=>{await Ee("knowledge.enable",{spaceId:e.id}),await u()})},children:C("knowledge.enable")}),n?.knowledgebaseId&&(0,Dt.jsx)(g0,{spaceId:e.id,run:r,busy:o}),n?.items.map(c=>(0,Dt.jsxs)("div",{className:"index-item",children:[(0,Dt.jsx)("strong",{children:c.title}),(0,Dt.jsx)("small",{children:BN(c.status)}),c.error&&(0,Dt.jsx)("p",{role:"status",children:C("knowledge.failureNote")})]},c.itemId))]})}var S=F(fe(),1),Mf=({kind:e})=>e==="folder"?(0,S.jsx)(Rr,{}):(0,S.jsx)(ga,{});function UN(){it();let e=Rf(),[t,a]=(0,Ce.useState)([]),[r,o]=(0,Ce.useState)([]),[n,s]=(0,Ce.useState)(!1),[i,l]=(0,Ce.useState)(null),[u,c]=(0,Ce.useState)(null),[d,f]=(0,Ce.useState)(null),[h,v]=(0,Ce.useState)(null),[x,w]=(0,Ce.useState)("list"),[m,p]=(0,Ce.useState)(null),g=(0,Ce.useRef)(null),[y,L]=(0,Ce.useState)(null),[b,R]=(0,Ce.useState)([]),[k,M]=(0,Ce.useState)(null),[E,O]=(0,Ce.useState)(!1),[T,_]=(0,Ce.useState)(null),[A,N]=(0,Ce.useState)(null),[z,H]=(0,Ce.useState)("all"),[V,ae]=(0,Ce.useState)(""),[D,ge]=(0,Ce.useState)(!1),[ve,j]=(0,Ce.useState)({canWrite:!1,canManage:!1}),[Re,Pe]=(0,Ce.useState)(!1),[Se,qe]=(0,Ce.useState)(!0),[J,ue]=(0,Ce.useState)([]),[He,Fe]=(0,Ce.useState)(!0),[ze,Oe]=yn(""),[We,ra]=(0,Ce.useState)(!1),[Au,nl]=(0,Ce.useState)(0),[Ps,fv]=(0,Ce.useState)(null),[pv,mv]=(0,Ce.useState)(null),[hv,Ds]=(0,Ce.useState)(null),[er,Ir]=(0,Ce.useState)(null),$r=P=>{window.setTimeout(()=>Ir(P),0)},{canWrite:Ts,canManage:Eu}=ve,Ct=async P=>{ra(!0),Oe("");try{await P()}catch(ie){Oe(Lr(ie))}finally{ra(!1)}},Ms=(0,Ce.useCallback)(async(P=!1)=>{qe(!0);try{let ie=await Yk({selectionId:"root",parameters:{trash:P}});if(I.object({meta:I.object({requiresProject:I.literal(!0)})}).safeParse(ie).success)return Pe(!0),L(null),R([]),o([]),a([]),!1;let Ma=o0.parse(ie).meta;return Pe(!1),L(Ma.root),R(Ma.items),j(Ma),ge(P),a(I.array(l0).parse(await Ee("catalog.types",{}))),!0}finally{qe(!1)}},[]),tr=async()=>{await Ms(D)},_s=(0,Ce.useRef)(0),gv={...A?{parentId:A}:{},deleted:D,search:V,...["all","page","files"].includes(z)?{}:{typeId:z}};(0,Ce.useEffect)(()=>{let P=++_s.current;if(o([]),s(!1),!y||["page","files"].includes(z))return;let ie=window.setTimeout(()=>{Ee("catalog.list",gv).then(Ma=>{if(P!==_s.current)return;let Nu=sv.parse(Ma);o(Nu.items.map(iv)),s(Nu.hasMore)}).catch(Ma=>{P===_s.current&&Oe(Lr(Ma))})},V?200:0);return()=>{window.clearTimeout(ie),_s.current++}},[y,A,z,V,D]),(0,Ce.useEffect)(()=>Qk(P=>{O(I.object({parameters:I.object({presentation:I.literal("navigation")})}).safeParse(P).success),_(null),Fe(!0),Oe(""),Ds(null),Ms().then(async ie=>{ie&&ue(I.array(I.object({key:I.string(),title:I.string()})).parse(await Ee("editor.list",{})))}).catch(ie=>Oe(Lr(ie)))}),[Ms]),(0,Ce.useEffect)(()=>{if(y)return Tu({key:"spaces",context:{spaceId:y.id,itemId:T?.id,filePath:T?.filePath,title:T?.title,kind:T?.kind,saved:He}}).catch(()=>{}),()=>{Tu({key:"spaces",clear:!0}).catch(()=>{})}},[y?.id,T?.id,He]);function Kr(P){if(P?.availability==="provider-unavailable"){fv(P);return}if(!He){Oe(Be.message("navigation.waitForSave"));return}if(P?.editorKey&&!P.deleted){Ct(async()=>{try{await(P.kind==="resource"?Rs(P.id):tl(P.id,"spaces"))}catch(ie){throw _(P),ie}});return}P?.kind==="folder"?(N(P.id),_(null),Ds(null)):(_(P),nl(ie=>ie+1))}function vv(P,ie=null){He&&(_(null),N(ie),H(P),Ds(null),D&&Ct(()=>Ms(!1)))}let Ou=[...b,...r].filter(P=>(!A||P.parentId===A)&&(z==="all"||(z==="page"?P.kind==="page":z==="files"?["file","artifact"].includes(P.kind??""):P.resourceTypeId===z))&&(P.title+" "+(P.filePath??"")).toLowerCase().includes(V.toLowerCase())).sort((P,ie)=>(ie.updatedAt??"").localeCompare(P.updatedAt??"")),xv=t.find(P=>P.typeId===z)?.title,y0=xv?e(xv):D?C("navigation.trash"):A?b.find(P=>P.id===A)?.title??C("kind.folder"):z==="page"?C("kind.page"):z==="files"?C("navigation.files"):C("navigation.all"),yv=P=>(0,S.jsxs)(gf,{modal:!1,children:[(0,S.jsx)(vf,{asChild:!0,children:(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("library.moreActions",{title:P.title}),children:(0,S.jsx)(kr,{})})}),(0,S.jsxs)(xf,{align:"end",children:[!P.deleted&&(0,S.jsx)(yt,{onSelect:()=>Kr(P),children:C("common.open")}),P.kind==="resource"&&(P.compatibleEditors?.length??0)>1&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Ak,{children:C("catalog.openWith")}),(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>mv(P),0),children:C("catalog.editorDefaults")}),P.compatibleEditors?.map(ie=>(0,S.jsx)(yt,{onSelect:()=>{Ct(()=>Rs(P.id,ie.key).then(()=>{}))},children:ie.title},ie.key)),(0,S.jsx)(Yg,{})]}),P.kind==="resource"&&["trash","restore"].filter(ie=>P.allowedActions?.includes(ie)).map(ie=>(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>l({item:P,operation:ie}),0),children:ie==="trash"?C("trash.move"):C("trash.restore")},ie)),P.kind==="resource"&&!P.deleted&&P.canWrite&&(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>c(P),0),children:C("catalog.move")}),P.kind==="resource"&&P.allowedActions?.includes("rename")&&(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>f(P),0),children:C("catalog.rename")}),P.kind==="resource"&&P.allowedActions?.includes("duplicate")&&(0,S.jsx)(yt,{onSelect:()=>window.setTimeout(()=>v(P),0),children:C("catalog.duplicate")}),P.importOrigin&&(0,S.jsx)(yt,{onSelect:()=>{M(P),$r("origin")},children:C("source.viewOrigin")}),P.kind!=="resource"&&Ts&&!D&&(0,S.jsx)(yt,{onSelect:()=>{M(P),$r("edit")},children:C("document.renameMove")}),P.kind!=="resource"&&Eu&&(0,S.jsx)(yt,{onSelect:()=>{Ct(async()=>{await Ee("item.edit",{itemId:P.id,expectedVersion:P.version,deleted:!D}),await tr()})},children:D?C("trash.restore"):C("trash.move")})]})]}),wv=P=>(0,S.jsxs)("div",{className:"flex flex-wrap gap-2",title:P.sourceSync?.revision?C("catalog.sourceRevision",{revision:P.sourceSync.revision}):void 0,children:[(0,S.jsx)(Zg,{variant:"outline",children:P.canWrite===!1?C("catalog.readOnly"):C("catalog.projectAccess")}),P.sourceSync&&(0,S.jsx)(Zg,{variant:P.sourceSync.status==="failed"?"destructive":"secondary",children:C({synced:"catalog.synced",pending:"catalog.pending",failed:"catalog.failed"}[P.sourceSync.status])})]});return(0,S.jsxs)("div",{className:`app ${E?"compact-navigation":""}`,children:[ze&&(0,S.jsxs)("div",{className:"notice",role:"alert",children:[(0,S.jsx)("span",{children:ze}),(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("common.dismiss"),onClick:()=>Oe(""),children:(0,S.jsx)(ro,{})})]}),We&&(0,S.jsx)("div",{className:"progress-message",role:"status",children:C("common.processing")}),Re?(0,S.jsxs)("main",{className:"project-empty",children:[(0,S.jsx)(Rr,{}),(0,S.jsx)("h1",{children:C("project.choose")}),(0,S.jsx)("p",{children:C("project.chooseDescription")}),(0,S.jsx)("p",{className:"muted",children:C("project.sharing")}),(0,S.jsxs)(G,{variant:"outline",onClick:()=>{Ct(()=>Ms())},children:[(0,S.jsx)(to,{}),C("common.reload")]})]}):(0,S.jsxs)("div",{className:"body",children:[(0,S.jsxs)("aside",{className:"tree","aria-label":C("navigation.label"),children:[(0,S.jsxs)("div",{className:"space-name",children:[(0,S.jsx)("h2",{children:C("space.title")}),(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("navigation.search"),onClick:()=>document.getElementById("space-search")?.focus(),children:(0,S.jsx)(Ba,{})})]}),(0,S.jsxs)("p",{className:"space-subtitle",children:[y?.title??C("common.opening"),C("space.sharedSuffix")]}),E&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(qt,{"aria-label":C("navigation.findDocument"),placeholder:C("navigation.findDocument"),value:V,onChange:P=>ae(P.target.value)}),(0,S.jsx)("div",{className:"compact-documents",children:Ou.filter(P=>P.kind==="page").map(P=>(0,S.jsxs)(G,{type:"button",variant:"ghost",className:"nav-item",title:P.filePath??P.title,onClick:()=>Kr(P),children:[(0,S.jsx)(ga,{}),(0,S.jsx)("span",{className:"truncate",children:P.title})]},P.id))})]}),(0,S.jsx)("nav",{children:[["all",C("navigation.all")],["page",C("kind.page")],["files",C("navigation.files")],...Array.from(new Map(t.map(P=>[P.typeId,[P.typeId,e(P.title)]])).values())].map(([P,ie])=>(0,S.jsxs)(G,{type:"button",variant:!T&&!A&&!D&&z===P?"secondary":"ghost",className:!T&&!A&&!D&&z===P?"nav-item selected":"nav-item",onClick:()=>vv(P),disabled:!He,children:[P==="all"?(0,S.jsx)(Ln,{}):P==="page"?(0,S.jsx)(ga,{}):(0,S.jsx)(Rr,{}),ie]},P))}),(0,S.jsx)("p",{className:"nav-label",children:C("kind.folder")}),(0,S.jsx)("div",{className:"folder-tree",children:b.filter(P=>P.kind==="folder"&&!P.deleted).sort((P,ie)=>(P.filePath??P.title).localeCompare(ie.filePath??ie.title)).map(P=>(0,S.jsxs)(Ce.default.Fragment,{children:[(0,S.jsxs)(G,{type:"button",variant:A===P.id&&!T?"secondary":"ghost",className:`nav-item ${A===P.id&&!T?"selected":""}`,title:P.filePath??P.title,style:{paddingLeft:`calc(var(--spacing) * ${3+Math.min(4,(P.filePath?.split("/").length??1)-1)*4.5})`},onClick:()=>vv("all",P.id),disabled:!He,children:[(0,S.jsx)(Rr,{}),(0,S.jsx)("span",{className:"truncate",children:P.title})]}),T&&T.parentId===P.id&&(0,S.jsxs)(G,{type:"button",variant:"secondary",className:"nav-item selected nested",onClick:()=>Kr(T),children:[(0,S.jsx)(ga,{}),T.title]})]},P.id))}),(0,S.jsxs)("div",{className:"nav-bottom",children:[(0,S.jsxs)(G,{type:"button",variant:"ghost",className:`nav-item ${hv==="knowledge"?"selected":""}`,onClick:()=>Ds("knowledge"),children:[(0,S.jsx)(Ba,{}),C("knowledge.title")]}),Eu&&(0,S.jsxs)(G,{type:"button",variant:"ghost",className:`nav-item ${D?"selected":""}`,disabled:!He,onClick:()=>{Ct(async()=>{_(null),N(null),Ds(null),await Ms(!D)})},children:[(0,S.jsx)(zs,{}),C("navigation.trash")]})]})]}),(0,S.jsx)("main",{className:`workspace ${T?"document-workspace":""}`,children:T?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("header",{className:"document-bar",children:[(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("navigation.back"),onClick:()=>Kr(null),children:(0,S.jsx)(Os,{})}),(0,S.jsx)("span",{className:"breadcrumb",children:T.filePath?.split("/").slice(0,-1).join(" / ")||C("navigation.all")}),(0,S.jsx)("span",{className:"save-state",children:He?Ts?C("editor.saved"):C("editor.readOnly"):C("editor.saving")}),(0,S.jsxs)(gf,{modal:!1,children:[(0,S.jsx)(vf,{asChild:!0,children:(0,S.jsx)(G,{variant:"outline",size:"icon","aria-label":C("document.actions"),children:(0,S.jsx)(kr,{})})}),(0,S.jsxs)(xf,{align:"end",children:[T.kind!=="resource"&&Ts&&(0,S.jsx)(yt,{disabled:!He,onSelect:()=>{M(T),$r("edit")},children:C("document.renameMove")}),(0,S.jsx)(yt,{onSelect:()=>$r("access"),children:C("access.title")}),T.kind!=="resource"&&Eu&&(0,S.jsx)(yt,{disabled:!He,onSelect:()=>{Ct(async()=>{await Ee("item.edit",{itemId:T.id,expectedVersion:T.version,deleted:!D}),Kr(null),await tr()})},children:D?C("trash.restore"):C("trash.move")})]})]})]}),(0,S.jsxs)("article",{className:"document-canvas",children:[(0,S.jsx)("h1",{children:T.title}),(0,S.jsxs)("p",{className:"document-meta",children:[rl(T.updatedAt),C("document.projectFileSuffix")]}),D?(0,S.jsx)("p",{className:"empty-message",children:C("trash.documentNotice")}):(0,S.jsxs)(S.Fragment,{children:[T.editorKey&&(0,S.jsxs)("div",{className:"file-preview",children:[(0,S.jsx)(ga,{}),(0,S.jsx)("p",{children:C("document.editorUnavailable")}),(0,S.jsx)(G,{variant:"outline",onClick:()=>Kr(T),children:C("document.reopenEditor")})]}),!T.editorKey&&(0,S.jsxs)("div",{className:"file-preview",children:[(0,S.jsx)(Mf,{kind:T.kind}),(0,S.jsx)("p",{children:T.filePath??T.title}),(0,S.jsx)("p",{className:"muted",children:C("document.originalFormat")})]}),T.kind!=="resource"&&(0,S.jsx)("div",{className:"document-download",children:(0,S.jsxs)(m0,{fileKey:`item:${T.id}`,onError:P=>Oe(Lr(P)),children:[(0,S.jsx)(Fs,{}),C("document.download")]})})]})]})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("header",{className:"library-header",children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("h1",{children:y0}),(0,S.jsx)("p",{children:C("library.description")})]}),(0,S.jsxs)("div",{className:"library-actions",children:[(0,S.jsxs)(Tk,{className:"library-search",children:[(0,S.jsx)(Mk,{children:(0,S.jsx)(Ba,{})}),(0,S.jsx)(_k,{id:"space-search","aria-label":C("library.search"),placeholder:C("library.search"),value:V,onChange:P=>ae(P.target.value)})]}),(0,S.jsxs)(G,{variant:"outline",onClick:()=>Ir("access"),children:[(0,S.jsx)(eo,{}),C("access.title")]}),Ts&&!D&&(0,S.jsxs)(gf,{modal:!1,children:[(0,S.jsx)(vf,{asChild:!0,children:(0,S.jsxs)(G,{ref:g,children:[(0,S.jsx)(Oo,{}),C("library.new"),(0,S.jsx)(Yr,{})]})}),(0,S.jsxs)(xf,{align:"end",className:"min-w-64",children:[(0,S.jsx)(yt,{onSelect:()=>$r("page"),children:C("kind.page")}),(0,S.jsx)(yt,{onSelect:()=>$r("folder"),children:C("kind.folder")}),t.filter((P,ie,Ma)=>Ma.findIndex(Nu=>Nu.typeId===P.typeId)===ie).map(P=>(0,S.jsxs)(yt,{onSelect:()=>window.setTimeout(()=>p(P),0),children:[e(P.title),e(P.title)!==e(P.implementationTitle)&&(0,S.jsxs)(S.Fragment,{children:[" \xB7 ",e(P.implementationTitle)]})]},`${P.providerKey}/${P.implementationKey}`)),J.map(P=>(0,S.jsx)(yt,{onSelect:()=>$r(P.key),children:P.title},P.key)),(0,S.jsx)(Yg,{}),(0,S.jsx)(yt,{onSelect:()=>$r("materials"),children:C("materials.title")}),(0,S.jsx)(yt,{onSelect:()=>$r("source"),children:C("source.title")})]})]})]})]}),(0,S.jsxs)("div",{className:"list-toolbar",children:[(0,S.jsx)("span",{children:C("library.recent")}),(0,S.jsxs)("div",{className:"flex items-center gap-2",children:[(0,S.jsx)(G,{variant:x==="list"?"secondary":"ghost","aria-pressed":x==="list",onClick:()=>w("list"),children:C("library.listView")}),(0,S.jsx)(G,{variant:x==="grid"?"secondary":"ghost","aria-pressed":x==="grid",onClick:()=>w("grid"),children:C("library.gridView")}),(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("library.refresh"),disabled:We||Se,onClick:()=>{Ct(tr)},children:(0,S.jsx)(to,{})})]})]}),Se?(0,S.jsx)("div",{className:"empty-message",role:"status",children:C("library.loading")}):(0,S.jsxs)("div",{className:"table-scroll",children:[x==="grid"?(0,S.jsx)("div",{className:"grid gap-4 p-1",style:{gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 16rem), 1fr))"},children:Ou.map(P=>(0,S.jsxs)(kk,{children:[(0,S.jsx)(Rk,{children:(0,S.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,S.jsxs)(G,{variant:"ghost",className:"min-w-0",onClick:()=>Kr(P),children:[(0,S.jsx)(Mf,{kind:P.kind}),(0,S.jsx)("span",{className:"truncate",children:P.title})]}),yv(P)]})}),(0,S.jsxs)(Pk,{children:[(0,S.jsx)("div",{className:"aspect-video overflow-hidden","aria-label":C("catalog.outlinePreview"),children:P.preview&&P.preview.revision===P.resourceRevision?(0,S.jsx)("ol",{children:P.preview.lines.map((ie,Ma)=>(0,S.jsx)("li",{className:"truncate",children:ie},Ma))}):(0,S.jsx)(Mf,{kind:P.kind})}),wv(P)]}),(0,S.jsx)(Dk,{children:rl(P.updatedAt)})]},P.id))}):(0,S.jsxs)(Ek,{className:"library-table",children:[(0,S.jsx)(Ok,{children:(0,S.jsxs)(Jg,{children:[(0,S.jsx)(ls,{children:C("common.name")}),(0,S.jsx)(ls,{children:C("library.type")}),(0,S.jsx)(ls,{children:C("library.source")}),(0,S.jsx)(ls,{children:C("library.updated")}),(0,S.jsx)(ls,{children:C("library.state")}),(0,S.jsx)(ls,{children:(0,S.jsx)("span",{className:"sr-only",children:C("library.actions")})})]})}),(0,S.jsx)(Nk,{children:Ou.map(P=>(0,S.jsxs)(Jg,{children:[(0,S.jsx)(us,{children:(0,S.jsxs)(G,{type:"button",variant:"ghost",className:"file-title",onClick:()=>Kr(P),children:[(0,S.jsx)("span",{className:`file-icon ${P.kind}`,children:(0,S.jsx)(Mf,{kind:P.kind})}),(0,S.jsxs)("span",{children:[(0,S.jsx)("strong",{children:P.title}),(0,S.jsx)("small",{children:P.parentPageId&&b.some(ie=>ie.id===P.parentPageId&&!ie.deleted)?C("library.subpage",{title:b.find(ie=>ie.id===P.parentPageId)?.title??""}):(P.kind==="resource"?b.find(ie=>ie.id===P.parentId)?.filePath??b.find(ie=>ie.id===P.parentId)?.title:P.filePath?.split("/").slice(0,-1).join(" / "))||C("folder.root")})]})]})}),(0,S.jsx)(us,{children:P.resourceTypeId?e(t.find(ie=>ie.typeId===P.resourceTypeId)?.title??{en_US:P.resourceTypeId,zh_Hans:P.resourceTypeId}):s0(P.kind)}),(0,S.jsx)(us,{children:P.kind==="resource"?C("catalog.resource"):P.importOrigin?C("source.copyType"):P.kind==="page"?C("library.spacePage"):P.kind==="artifact"?C("materials.assistantArtifacts"):C("library.projectFile")}),(0,S.jsx)(us,{children:rl(P.updatedAt)}),(0,S.jsx)(us,{children:wv(P)}),(0,S.jsx)(us,{children:yv(P)})]},P.id))})]}),!Ou.length&&(0,S.jsxs)("div",{className:"empty-message",children:[(0,S.jsx)(ga,{}),(0,S.jsx)("h2",{children:V?C("library.noResults"):D?C("trash.empty"):C("library.empty")}),(0,S.jsx)("p",{children:V?C("library.searchHint"):C("library.createHint")}),Ts&&!D&&!V&&(0,S.jsxs)(G,{onClick:()=>Ir("page"),children:[(0,S.jsx)(Oo,{}),C("create.page")]})]})]}),n&&(0,S.jsx)(G,{variant:"outline",disabled:We,onClick:()=>{Ct(async()=>{let P=_s.current,ie=sv.parse(await Ee("catalog.list",{...gv,offset:r.length}));P===_s.current&&(o(Ma=>[...Ma,...ie.items.map(iv)]),s(ie.hasMore))})},children:C("catalog.more")}),(0,S.jsxs)("p",{className:"library-footnote",children:[(0,S.jsx)(Jr,{}),C("library.storageNote")]})]})}),hv==="knowledge"&&(0,S.jsxs)("aside",{className:"panel","aria-label":C("knowledge.title"),children:[(0,S.jsxs)("header",{children:[(0,S.jsx)("h2",{children:C("knowledge.title")}),(0,S.jsx)(G,{variant:"ghost",size:"icon","aria-label":C("common.closePanel"),onClick:()=>Ds(null),children:(0,S.jsx)(ro,{})})]}),y&&(0,S.jsx)(v0,{root:y,canWrite:Ts,canManage:Eu,run:Ct,busy:We})]})]}),Ps&&(0,S.jsx)(a0,{item:Ps,onClose:()=>fv(null),run:Ct,busy:We}),pv&&(0,S.jsx)(r0,{item:pv,onClose:()=>mv(null),run:Ct,busy:We}),i&&(0,S.jsx)(u0,{...i,busy:We,run:Ct,onClose:()=>l(null),onDone:tr}),u&&(0,S.jsx)(d0,{item:u,items:b,onClose:()=>c(null),onDone:tr,run:Ct,busy:We}),h&&(0,S.jsx)(lv,{item:h,duplicate:!0,busy:We,run:Ct,onClose:()=>v(null),onDone:tr}),d&&(0,S.jsx)(lv,{item:d,busy:We,run:Ct,onClose:()=>f(null),onDone:tr}),m&&(0,S.jsx)(nv,{implementations:t,items:b,initialParent:A,implementation:m,onClose:()=>p(null),onDone:tr,run:Ct,busy:We}),y&&er&&(er==="page"||er==="folder"||er==="edit"||J.some(P=>P.key===er))&&(0,S.jsx)(i0,{root:y,items:b,initialParent:A??"",kind:er,editors:J,editing:er==="edit"?k??void 0:void 0,onClose:()=>Ir(null),onDone:async P=>{await tr(),Kr(P)},run:Ct,busy:We}),y&&er==="materials"&&(0,S.jsx)(h0,{root:y,items:b,parentId:A??"",editors:J,onClose:()=>Ir(null),onDone:tr,run:Ct,busy:We}),y&&er==="source"&&(0,S.jsx)(c0,{spaceId:y.id,parentId:A,destination:C("source.destination",{space:y.title,folder:b.find(P=>P.id===A)?.title??C("folder.root")}),onClose:()=>Ir(null),onDone:tr,returnFocus:()=>g.current?.focus()}),er==="origin"&&k?.importOrigin&&(0,S.jsx)(mt,{open:!0,onOpenChange:()=>Ir(null),children:(0,S.jsxs)(ht,{className:"space-dialog",children:[(0,S.jsxs)(gt,{children:[(0,S.jsx)(vt,{children:C("source.originTitle")}),(0,S.jsx)(xt,{children:C("source.copyDescription")})]}),(0,S.jsx)("p",{children:C("source.originRevision",{provider:k.importOrigin.provider,revision:k.importOrigin.revision})}),(0,S.jsx)("p",{children:C("source.importedAt",{date:rl(k.importOrigin.importedAt)})}),(0,S.jsx)("p",{className:"break-all text-sm",children:C("source.id",{id:k.importOrigin.documentId})}),k.importOrigin.warnings.map(P=>(0,S.jsx)("p",{children:P},P)),k.importOrigin.url&&(0,S.jsx)("a",{className:"underline",href:k.importOrigin.url,target:"_blank",rel:"noopener noreferrer",children:C("source.openPlatform")}),(0,S.jsx)(G,{onClick:()=>Ir(null),children:C("common.close")})]})}),er==="access"&&(0,S.jsx)(mt,{open:!0,onOpenChange:()=>Ir(null),children:(0,S.jsxs)(ht,{className:"space-dialog capability-dialog",children:[(0,S.jsxs)(gt,{children:[(0,S.jsx)(vt,{children:C("space.title")}),(0,S.jsx)(xt,{children:C("access.description")})]}),(0,S.jsxs)("section",{children:[(0,S.jsx)("h2",{children:C("access.entry")}),(0,S.jsxs)("p",{className:"row",children:[(0,S.jsx)(Ln,{}),C("common.workbench")," ",(0,S.jsx)("span",{className:"muted",children:"/"}),C("access.views"),(0,S.jsx)("span",{className:"muted",children:"/"}),C("space.title")]}),(0,S.jsx)("p",{className:"muted",children:C("access.entryDescription")})]}),(0,S.jsxs)("section",{children:[(0,S.jsx)("h2",{children:C("access.title")}),(0,S.jsxs)("p",{className:"row",children:[(0,S.jsx)(eo,{}),(0,S.jsx)("strong",{children:C("access.shared")})]}),(0,S.jsx)("p",{children:C("access.roles")}),(0,S.jsx)("p",{className:"muted",children:C("access.projectPermissions")})]}),(0,S.jsxs)("section",{children:[(0,S.jsx)("h2",{children:C("access.capabilities")}),(0,S.jsxs)("ul",{className:"capability-list",children:[(0,S.jsxs)("li",{children:[(0,S.jsx)(ga,{}),(0,S.jsx)("strong",{children:C("access.pages")}),(0,S.jsx)("span",{children:C("access.pagesDescription")})]}),(0,S.jsxs)("li",{children:[(0,S.jsx)(ao,{}),(0,S.jsx)("strong",{children:C("access.ai")}),(0,S.jsx)("span",{children:C("access.aiDescription")})]}),(0,S.jsxs)("li",{children:[(0,S.jsx)(Rr,{}),(0,S.jsx)("strong",{children:C("navigation.files")}),(0,S.jsx)("span",{children:C("access.filesDescription")})]}),(0,S.jsxs)("li",{children:[(0,S.jsx)(Ba,{}),(0,S.jsx)("strong",{children:C("knowledge.title")}),(0,S.jsx)("span",{children:C("access.searchDescription")})]})]}),(0,S.jsx)("p",{className:"muted text-sm",children:C("access.sheetDescription")})]}),(0,S.jsxs)(Ot,{children:[(0,S.jsxs)("span",{className:"muted",children:[(0,S.jsx)(Jr,{}),C("library.storageNote")]}),(0,S.jsx)(G,{onClick:()=>Ir(null),children:C("common.done")})]})]})})]})}(0,x0.createRoot)(document.getElementById("root")).render((0,S.jsx)(qb,{i18n:Be,children:(0,S.jsx)(UN,{})}));})();
|